flagsmith-nodejs 2.0.4 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.idea/flagsmith-nodejs-client.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/build/flagsmith-engine/index.d.ts +7 -0
- package/build/flagsmith-engine/index.js +15 -1
- package/build/index.d.ts +2 -1
- package/build/index.js +15 -3
- package/build/sdk/analytics.d.ts +1 -1
- package/build/sdk/analytics.js +2 -2
- package/build/sdk/index.d.ts +5 -0
- package/build/sdk/index.js +11 -1
- package/build/sdk/models.js +1 -1
- package/es6-example/.babelrc +3 -0
- package/es6-example/.eslintrc +8 -0
- package/es6-example/README.md +62 -0
- package/es6-example/package-lock.json +10585 -0
- package/es6-example/package.json +55 -0
- package/es6-example/src/api/index.js +50 -0
- package/es6-example/src/index.js +29 -0
- package/example/package-lock.json +576 -0
- package/example/package.json +4 -1
- package/flagsmith-engine/index.ts +8 -0
- package/index.ts +19 -2
- package/package.json +1 -1
- package/sdk/index.ts +8 -0
package/example/package.json
CHANGED
|
@@ -6,6 +6,14 @@ import { getIdentitySegments } from './segments/evaluators';
|
|
|
6
6
|
import { SegmentModel } from './segments/models';
|
|
7
7
|
import { FeatureStateNotFound } from './utils/errors';
|
|
8
8
|
|
|
9
|
+
export { EnvironmentModel } from './environments/models';
|
|
10
|
+
export { IntegrationModel } from './environments/integrations/models';
|
|
11
|
+
export { FeatureStateModel } from './features/models';
|
|
12
|
+
export { IdentityModel } from './identities/models';
|
|
13
|
+
export { TraitModel } from './identities/traits/models';
|
|
14
|
+
export { SegmentModel } from './segments/models';
|
|
15
|
+
export { OrganisationModel } from './organisations/models';
|
|
16
|
+
|
|
9
17
|
function getIdentityFeatureStatesDict(
|
|
10
18
|
environment: EnvironmentModel,
|
|
11
19
|
identity: IdentityModel,
|
package/index.ts
CHANGED
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
import Flagsmith from './sdk';
|
|
2
2
|
|
|
3
|
-
export {
|
|
4
|
-
|
|
3
|
+
export {
|
|
4
|
+
AnalyticsProcessor,
|
|
5
|
+
FlagsmithAPIError,
|
|
6
|
+
FlagsmithClientError,
|
|
7
|
+
EnvironmentDataPollingManager,
|
|
8
|
+
FlagsmithCache,
|
|
9
|
+
DefaultFlag,
|
|
10
|
+
Flags
|
|
11
|
+
} from './sdk';
|
|
12
|
+
|
|
13
|
+
export {
|
|
14
|
+
EnvironmentModel,
|
|
15
|
+
IntegrationModel,
|
|
16
|
+
FeatureStateModel,
|
|
17
|
+
IdentityModel,
|
|
18
|
+
TraitModel,
|
|
19
|
+
SegmentModel,
|
|
20
|
+
OrganisationModel
|
|
21
|
+
} from './flagsmith-engine';
|
|
5
22
|
|
|
6
23
|
module.exports = Flagsmith;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "flagsmith-nodejs",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Flagsmith lets you manage features flags and remote config across web, mobile and server side applications. Deliver true Continuous Integration. Get builds out faster. Control who has access to new features.",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"repository": {
|
package/sdk/index.ts
CHANGED
|
@@ -14,6 +14,13 @@ import { SegmentModel } from '../flagsmith-engine/segments/models';
|
|
|
14
14
|
import { getIdentitySegments } from '../flagsmith-engine/segments/evaluators';
|
|
15
15
|
import { FlagsmithCache } from './types';
|
|
16
16
|
|
|
17
|
+
export { AnalyticsProcessor } from './analytics';
|
|
18
|
+
export { FlagsmithAPIError, FlagsmithClientError } from './errors';
|
|
19
|
+
|
|
20
|
+
export { DefaultFlag, Flags } from './models';
|
|
21
|
+
export { EnvironmentDataPollingManager } from './polling_manager';
|
|
22
|
+
export { FlagsmithCache } from './types';
|
|
23
|
+
|
|
17
24
|
const DEFAULT_API_URL = 'https://edge.api.flagsmith.com/api/v1/';
|
|
18
25
|
|
|
19
26
|
export class Flagsmith {
|
|
@@ -387,3 +394,4 @@ export class Flagsmith {
|
|
|
387
394
|
}
|
|
388
395
|
|
|
389
396
|
export default Flagsmith;
|
|
397
|
+
|