gt-next 0.0.24 → 0.0.25

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.
@@ -1 +1 @@
1
- {"version":3,"file":"getI18NConfig.d.ts","sourceRoot":"","sources":["../../src/utils/getI18NConfig.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,6BAA6B,CAAC;AAE5D,MAAM,CAAC,OAAO,UAAU,aAAa,IAAI,iBAAiB,CASzD"}
1
+ {"version":3,"file":"getI18NConfig.d.ts","sourceRoot":"","sources":["../../src/utils/getI18NConfig.ts"],"names":[],"mappings":"AAAA,OAAO,iBAAiB,MAAM,6BAA6B,CAAC;AAE5D,MAAM,CAAC,OAAO,UAAU,aAAa,IAAI,iBAAiB,CAczD"}
@@ -2,9 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = getI18NConfig;
4
4
  function getI18NConfig() {
5
+ if (!globalThis) {
6
+ throw new Error('Unable to access globalThis.');
7
+ }
5
8
  if (!globalThis.__GENERALTRANSLATION__) {
6
9
  throw new Error('Unable to access gt-next configuration.');
7
10
  }
8
- return globalThis.__GENERALTRANSLATION__;
11
+ return (globalThis === null || globalThis === void 0 ? void 0 : globalThis.__GENERALTRANSLATION__) || (global === null || global === void 0 ? void 0 : global.__GENERALTRANSLATION__);
9
12
  }
10
13
  //# sourceMappingURL=getI18NConfig.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getI18NConfig.js","sourceRoot":"","sources":["../../src/utils/getI18NConfig.ts"],"names":[],"mappings":";;AAEA,gCASC;AATD,SAAwB,aAAa;IACjC,IAAI,CACA,UACH,CAAC,sBAAsB,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAA;IAC9D,CAAC;IACD,OACI,UACH,CAAC,sBAAsB,CAAA;AAC5B,CAAC"}
1
+ {"version":3,"file":"getI18NConfig.js","sourceRoot":"","sources":["../../src/utils/getI18NConfig.ts"],"names":[],"mappings":";;AAEA,gCAcC;AAdD,SAAwB,aAAa;IACjC,IAAI,CAAC,UAAU,EAAE,CAAC;QACd,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAA;IACnD,CAAC;IACD,IAAI,CACA,UACH,CAAC,sBAAsB,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CAAC,yCAAyC,CAAC,CAAA;IAC9D,CAAC;IACD,OAAO,CACH,UACH,aADG,UAAU,uBAAV,UAAU,CACX,sBAAsB,MACrB,MACH,aADG,MAAM,uBAAN,MAAM,CACP,sBAAsB,CAAA,CAAC;AAC9B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gt-next",
3
- "version": "0.0.24",
3
+ "version": "0.0.25",
4
4
  "description": "",
5
5
  "main": "dist/index.server.js",
6
6
  "types": "dist/index.server.d.ts",