flagsmith-nodejs 2.0.0-beta.3 → 2.0.0-beta.6

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.
Files changed (66) hide show
  1. package/.idea/flagsmith-nodejs-client.iml +12 -0
  2. package/.idea/modules.xml +8 -0
  3. package/.idea/vcs.xml +6 -0
  4. package/build/flagsmith-engine/environments/integrations/models.d.ts +4 -0
  5. package/build/flagsmith-engine/environments/integrations/models.js +11 -0
  6. package/build/flagsmith-engine/environments/models.d.ts +25 -0
  7. package/build/flagsmith-engine/environments/models.js +29 -0
  8. package/build/flagsmith-engine/environments/util.d.ts +3 -0
  9. package/build/flagsmith-engine/environments/util.js +21 -0
  10. package/build/flagsmith-engine/features/constants.d.ts +4 -0
  11. package/build/flagsmith-engine/features/constants.js +7 -0
  12. package/build/flagsmith-engine/features/models.d.ts +32 -0
  13. package/build/flagsmith-engine/features/models.js +102 -0
  14. package/build/flagsmith-engine/features/util.d.ts +3 -0
  15. package/build/flagsmith-engine/features/util.js +20 -0
  16. package/build/flagsmith-engine/identities/models.d.ts +15 -0
  17. package/build/flagsmith-engine/identities/models.js +112 -0
  18. package/build/flagsmith-engine/identities/traits/models.d.ts +5 -0
  19. package/build/flagsmith-engine/identities/traits/models.js +11 -0
  20. package/build/flagsmith-engine/identities/util.d.ts +4 -0
  21. package/build/flagsmith-engine/identities/util.js +46 -0
  22. package/build/flagsmith-engine/index.d.ts +8 -0
  23. package/build/flagsmith-engine/index.js +113 -0
  24. package/build/flagsmith-engine/organisations/models.d.ts +9 -0
  25. package/build/flagsmith-engine/organisations/models.js +21 -0
  26. package/build/flagsmith-engine/organisations/util.d.ts +2 -0
  27. package/build/flagsmith-engine/organisations/util.js +8 -0
  28. package/build/flagsmith-engine/projects/models.d.ts +10 -0
  29. package/build/flagsmith-engine/projects/models.js +14 -0
  30. package/build/flagsmith-engine/projects/util.d.ts +2 -0
  31. package/build/flagsmith-engine/projects/util.js +15 -0
  32. package/build/flagsmith-engine/segments/constants.d.ts +26 -0
  33. package/build/flagsmith-engine/segments/constants.js +31 -0
  34. package/build/flagsmith-engine/segments/evaluators.d.ts +6 -0
  35. package/build/flagsmith-engine/segments/evaluators.js +37 -0
  36. package/build/flagsmith-engine/segments/models.d.ts +31 -0
  37. package/build/flagsmith-engine/segments/models.js +92 -0
  38. package/build/flagsmith-engine/segments/util.d.ts +4 -0
  39. package/build/flagsmith-engine/segments/util.js +25 -0
  40. package/build/flagsmith-engine/utils/collections.d.ts +4 -0
  41. package/build/flagsmith-engine/utils/collections.js +97 -0
  42. package/build/flagsmith-engine/utils/errors.d.ts +2 -0
  43. package/build/flagsmith-engine/utils/errors.js +26 -0
  44. package/build/flagsmith-engine/utils/hashing/index.d.ts +9 -0
  45. package/build/flagsmith-engine/utils/hashing/index.js +57 -0
  46. package/build/flagsmith-engine/utils/index.d.ts +1 -0
  47. package/build/flagsmith-engine/utils/index.js +14 -0
  48. package/build/index.d.ts +1 -0
  49. package/build/index.js +11 -0
  50. package/build/sdk/analytics.d.ts +28 -0
  51. package/build/sdk/analytics.js +103 -0
  52. package/build/sdk/errors.d.ts +4 -0
  53. package/build/sdk/errors.js +34 -0
  54. package/build/sdk/index.d.ts +118 -0
  55. package/build/sdk/index.js +386 -0
  56. package/build/sdk/models.d.ts +55 -0
  57. package/build/sdk/models.js +149 -0
  58. package/build/sdk/polling_manager.d.ts +9 -0
  59. package/build/sdk/polling_manager.js +73 -0
  60. package/build/sdk/utils.d.ts +12 -0
  61. package/build/sdk/utils.js +94 -0
  62. package/example/package-lock.json +1 -996
  63. package/example/server/api/index.js +1 -1
  64. package/package.json +2 -1
  65. package/tsconfig.json +2 -1
  66. package/.tool-versions +0 -1
@@ -1,6 +1,6 @@
1
1
  const Router = require('express').Router;
2
2
  const Flagsmith = require('../../../build');
3
- const environmentKey = '';
3
+ const environmentKey = 'ser.dCxh8XoQc3Sw3JqMqMbhXz';
4
4
  if (!environmentKey) {
5
5
  throw new Error(
6
6
  'Please generate a Server Side SDK Key in environment settings to run the example'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "flagsmith-nodejs",
3
- "version": "2.0.0-beta.3",
3
+ "version": "2.0.0-beta.6",
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": {
@@ -46,6 +46,7 @@
46
46
  "test:watch": "jest --coverage --watch --coverageReporters='text'",
47
47
  "test:debug": "node --inspect-brk node_modules/.bin/jest --coverage --watch --coverageReporters='text'",
48
48
  "build": "tsc",
49
+ "prepublish": "npm run build",
49
50
  "prepare": "husky install"
50
51
  },
51
52
  "dependencies": {
package/tsconfig.json CHANGED
@@ -6,7 +6,8 @@
6
6
  ],
7
7
  "compilerOptions": {
8
8
  "outDir": "./build",
9
- "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
9
+ "target": "es5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
10
+ "downlevelIteration": true,
10
11
  /* Modules */
11
12
  "module": "commonjs", /* Specify what module code is generated. */
12
13
  "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
package/.tool-versions DELETED
@@ -1 +0,0 @@
1
- nodejs 16.14.0