@shipeasy/sdk 2.1.0 → 2.1.1

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.
@@ -32,6 +32,7 @@ __export(server_exports, {
32
32
  version: () => version
33
33
  });
34
34
  module.exports = __toCommonJS(server_exports);
35
+ var import_node_async_hooks = require("async_hooks");
35
36
  var version = "1.0.0";
36
37
  var C1 = 3432918353;
37
38
  var C2 = 461845907;
@@ -352,9 +353,8 @@ var FlagsClient = class {
352
353
  return { flags: flags2, configs, experiments };
353
354
  }
354
355
  };
355
- var { AsyncLocalStorage } = require("async_hooks");
356
356
  var _I18N_SSR_SYM = /* @__PURE__ */ Symbol.for("@shipeasy/sdk:ssr-i18n");
357
- var _i18nALS = new AsyncLocalStorage();
357
+ var _i18nALS = new import_node_async_hooks.AsyncLocalStorage();
358
358
  globalThis[_I18N_SSR_SYM] = () => _i18nALS.getStore() ?? null;
359
359
  var i18n = {
360
360
  /**
@@ -1,11 +1,5 @@
1
- var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
2
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
3
- }) : x)(function(x) {
4
- if (typeof require !== "undefined") return require.apply(this, arguments);
5
- throw Error('Dynamic require of "' + x + '" is not supported');
6
- });
7
-
8
1
  // src/server/index.ts
2
+ import { AsyncLocalStorage } from "async_hooks";
9
3
  var version = "1.0.0";
10
4
  var C1 = 3432918353;
11
5
  var C2 = 461845907;
@@ -326,7 +320,6 @@ var FlagsClient = class {
326
320
  return { flags: flags2, configs, experiments };
327
321
  }
328
322
  };
329
- var { AsyncLocalStorage } = __require("async_hooks");
330
323
  var _I18N_SSR_SYM = /* @__PURE__ */ Symbol.for("@shipeasy/sdk:ssr-i18n");
331
324
  var _i18nALS = new AsyncLocalStorage();
332
325
  globalThis[_I18N_SSR_SYM] = () => _i18nALS.getStore() ?? null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shipeasy/sdk",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Shipeasy SDK — feature gates, runtime configs, experiments, and metrics for the Shipeasy hosted service.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "homepage": "https://shipeasy.ai",