@statsig/statsig-node-core 0.10.1 → 0.10.2-rc.2510141845

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/index.d.ts CHANGED
@@ -1,5 +1,6 @@
1
- import { StatsigNapiInternal, StatsigOptions } from './statsig-generated';
1
+ import { DynamicConfig, Experiment, Layer, ParameterStore, StatsigNapiInternal, StatsigOptions, StatsigUser } from './statsig-generated';
2
2
  export * from './statsig-generated';
3
+ export { StatsigUser, Experiment, DynamicConfig, Layer, ParameterStore };
3
4
  export declare class Statsig extends StatsigNapiInternal {
4
5
  private static _sharedInstance;
5
6
  static shared(): Statsig;
package/index.js CHANGED
@@ -26,12 +26,33 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
26
26
  return (mod && mod.__esModule) ? mod : { "default": mod };
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.Statsig = void 0;
29
+ exports.Statsig = exports.ParameterStore = exports.Layer = exports.DynamicConfig = exports.Experiment = exports.StatsigUser = void 0;
30
+ // @ts-nocheck
31
+ const statsig_generated_1 = require("./statsig-generated");
32
+ Object.defineProperty(exports, "DynamicConfig", { enumerable: true, get: function () { return statsig_generated_1.DynamicConfig; } });
33
+ Object.defineProperty(exports, "Experiment", { enumerable: true, get: function () { return statsig_generated_1.Experiment; } });
34
+ Object.defineProperty(exports, "Layer", { enumerable: true, get: function () { return statsig_generated_1.Layer; } });
35
+ Object.defineProperty(exports, "ParameterStore", { enumerable: true, get: function () { return statsig_generated_1.ParameterStore; } });
36
+ Object.defineProperty(exports, "StatsigUser", { enumerable: true, get: function () { return statsig_generated_1.StatsigUser; } });
37
+ const error_boundary_1 = require("./error_boundary");
30
38
  const https_proxy_agent_1 = require("https-proxy-agent");
31
39
  const node_fetch_1 = __importDefault(require("node-fetch"));
32
- const error_boundary_1 = require("./error_boundary");
33
- const statsig_generated_1 = require("./statsig-generated");
34
40
  __exportStar(require("./statsig-generated"), exports);
41
+ statsig_generated_1.StatsigUser.prototype[Symbol.for('nodejs.util.inspect.custom')] = function () {
42
+ return this.toJSON();
43
+ };
44
+ statsig_generated_1.Experiment.prototype[Symbol.for('nodejs.util.inspect.custom')] = function () {
45
+ return this.toJSON();
46
+ };
47
+ statsig_generated_1.DynamicConfig.prototype[Symbol.for('nodejs.util.inspect.custom')] = function () {
48
+ return this.toJSON();
49
+ };
50
+ statsig_generated_1.Layer.prototype[Symbol.for('nodejs.util.inspect.custom')] = function () {
51
+ return this.toJSON();
52
+ };
53
+ statsig_generated_1.ParameterStore.prototype[Symbol.for('nodejs.util.inspect.custom')] = function () {
54
+ return this.toJSON();
55
+ };
35
56
  function createProxyAgent(options) {
36
57
  const proxy = options === null || options === void 0 ? void 0 : options.proxyConfig;
37
58
  if ((proxy === null || proxy === void 0 ? void 0 : proxy.proxyHost) && (proxy === null || proxy === void 0 ? void 0 : proxy.proxyProtocol)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@statsig/statsig-node-core",
3
- "version": "0.10.1",
3
+ "version": "0.10.2-rc.2510141845",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "jest --colors"
@@ -32,7 +32,7 @@
32
32
  "form-data": "4.0.4",
33
33
  "jest": "^29.7.0",
34
34
  "on-headers": "1.1.0",
35
- "tar-fs": "^2.1.3",
35
+ "tar-fs": "^2.1.4",
36
36
  "ts-jest": "^29.2.5",
37
37
  "typescript": "^5.7.3"
38
38
  },
@@ -53,13 +53,13 @@
53
53
  ]
54
54
  },
55
55
  "optionalDependencies": {
56
- "@statsig/statsig-node-core-linux-x64-musl": "0.10.1",
57
- "@statsig/statsig-node-core-linux-x64-gnu": "0.10.1",
58
- "@statsig/statsig-node-core-win32-x64-msvc": "0.10.1",
59
- "@statsig/statsig-node-core-darwin-x64": "0.10.1",
60
- "@statsig/statsig-node-core-win32-ia32-msvc": "0.10.1",
61
- "@statsig/statsig-node-core-linux-arm64-musl": "0.10.1",
62
- "@statsig/statsig-node-core-linux-arm64-gnu": "0.10.1",
63
- "@statsig/statsig-node-core-darwin-arm64": "0.10.1"
56
+ "@statsig/statsig-node-core-linux-x64-musl": "0.10.2-rc.2510141845",
57
+ "@statsig/statsig-node-core-linux-x64-gnu": "0.10.2-rc.2510141845",
58
+ "@statsig/statsig-node-core-win32-x64-msvc": "0.10.2-rc.2510141845",
59
+ "@statsig/statsig-node-core-darwin-x64": "0.10.2-rc.2510141845",
60
+ "@statsig/statsig-node-core-win32-ia32-msvc": "0.10.2-rc.2510141845",
61
+ "@statsig/statsig-node-core-linux-arm64-musl": "0.10.2-rc.2510141845",
62
+ "@statsig/statsig-node-core-linux-arm64-gnu": "0.10.2-rc.2510141845",
63
+ "@statsig/statsig-node-core-darwin-arm64": "0.10.2-rc.2510141845"
64
64
  }
65
65
  }
@@ -121,6 +121,7 @@ export declare class StatsigUser {
121
121
  set locale(value: any)
122
122
  get appVersion(): string | null
123
123
  set appVersion(value: any)
124
+ toJSON(): string
124
125
  }
125
126
 
126
127
  export declare function __internal__testDataStore(store: DataStore, path: string, value: string): Promise<[DataStoreResponse | undefined | null, boolean]>