flagsmith-nodejs 2.0.4 → 2.1.2

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.
@@ -20,5 +20,8 @@
20
20
  "ssg-node-express": "4.16.4",
21
21
  "ssg-util": "0.0.3"
22
22
  },
23
- "keywords": []
23
+ "keywords": [],
24
+ "devDependencies": {
25
+ "nodemon": "^2.0.19"
26
+ }
24
27
  }
@@ -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 { Flagsmith } from './sdk';
4
- // export default Flagsmith;
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.4",
3
+ "version": "2.1.2",
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
+