Skip to content

Commit ef74fa0

Browse files
authored
Merge pull request #39 from harness/FFM-3014
Ffm 3014
2 parents 11e1055 + c6bd471 commit ef74fa0

File tree

5 files changed

+18
-105
lines changed

5 files changed

+18
-105
lines changed

example/index.js

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,19 @@ setInterval(async () => {
99
const target = {
1010
identifier: 'harness',
1111
};
12-
const value = await client.boolVariation('test', target, false);
13-
console.log('Evaluation for flag test and target: ', value, target);
12+
13+
const value = await client.boolVariation('flag1', target, false);
14+
console.log('flag1: ', value, target);
15+
16+
const value2 = await client.numberVariation('flag2', target, -1);
17+
console.log('flag2: ', value2, target);
18+
19+
const value3 = await client.stringVariation('flag3', target, "NO_VALUE!!!");
20+
console.log('flag3: ', value3, target);
21+
22+
const value4 = await client.jsonVariation('flag4', target, {"ok": "NO_VALUE!"});
23+
console.log('flag4: ', value4, target);
24+
1425
}, 10000);
1526

1627
console.log('Application started');

example/package-lock.json

Lines changed: 2 additions & 100 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const VERSION = "1.2.1";
1+
export const VERSION = "1.2.2";

0 commit comments

Comments
 (0)