react-native-intlayer 9.0.0-canary.10 → 9.0.0-canary.11

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.
@@ -43,7 +43,8 @@ const intlayerPolyfill = () => {
43
43
  if (typeof window.removeEventListener !== "function") window.removeEventListener = noop;
44
44
  if (typeof window.postMessage !== "function") window.postMessage = noop;
45
45
  }
46
- if (typeof document === "undefined") {
46
+ const isNativeReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
47
+ if (typeof document === "undefined" && isNativeReactNative) {
47
48
  let cookieJar = "";
48
49
  Object.defineProperty(global, "document", {
49
50
  configurable: true,
@@ -56,7 +57,13 @@ const intlayerPolyfill = () => {
56
57
  const [key, val] = pair?.split("=") ?? [];
57
58
  const name = key?.trim();
58
59
  cookieJar = [...cookieJar.split(";").filter((c) => !c.trim().startsWith(`${name}=`)).filter(Boolean), `${name}=${val ?? ""}`].join("; ");
59
- }
60
+ },
61
+ createElement: () => null,
62
+ getElementById: () => null,
63
+ querySelector: () => null,
64
+ querySelectorAll: () => [],
65
+ addEventListener: () => void 0,
66
+ removeEventListener: () => void 0
60
67
  })
61
68
  });
62
69
  }
@@ -1 +1 @@
1
- {"version":3,"file":"intlayerPolyfill.cjs","names":[],"sources":["../../src/intlayerPolyfill.ts"],"sourcesContent":["/**\n * Applies necessary polyfills for React Native to support Intlayer.\n *\n * This includes:\n * - Polyfilling `structuredClone` if it is missing.\n * - Providing no-op implementations for standard DOM `window` methods\n * (`addEventListener`, `removeEventListener`, `postMessage`).\n * - Providing in-memory stubs for `document.cookie`, `localStorage`, and\n * `sessionStorage` so that `@intlayer/core`'s locale-storage helpers work\n * without crashing in a React Native environment.\n *\n * Note: These stubs are in-memory only. The locale selection will survive\n * hot-reloads but not full app restarts. To persist across restarts, pass a\n * custom `setLocale` to `<IntlayerProvider>` backed by AsyncStorage.\n */\nconst createStorage = () => {\n const store: Record<string, string> = {};\n return {\n getItem: (key: string) => store[key] ?? null,\n setItem: (key: string, value: string) => {\n store[key] = String(value);\n },\n removeItem: (key: string) => {\n delete store[key];\n },\n clear: () => {\n for (const key in store) {\n delete store[key];\n }\n },\n get length() {\n return Object.keys(store).length;\n },\n key: (index: number) => Object.keys(store)[index] ?? null,\n };\n};\n\nexport const intlayerPolyfill = () => {\n if (typeof global.structuredClone !== 'function') {\n global.structuredClone = (obj) => JSON.parse(JSON.stringify(obj));\n }\n\n if (typeof window !== 'undefined') {\n const noop = () => null;\n if (typeof window.addEventListener !== 'function') {\n window.addEventListener = noop;\n }\n if (typeof window.removeEventListener !== 'function') {\n window.removeEventListener = noop;\n }\n if (typeof window.postMessage !== 'function') {\n window.postMessage = noop;\n }\n }\n\n // `@intlayer/core`'s localeStorageOptions accesses document.cookie directly.\n // In React Native, `document` is undefined — we provide a minimal in-memory\n // cookie jar so reads/writes work without throwing.\n if (typeof document === 'undefined') {\n let cookieJar = '';\n Object.defineProperty(global, 'document', {\n configurable: true,\n get: () => ({\n get cookie() {\n return cookieJar;\n },\n set cookie(value: string) {\n // Simplified cookie setter: just append/overwrite the key\n const [pair] = value.split(';');\n const [key, val] = pair?.split('=') ?? [];\n const name = key?.trim();\n const existing = cookieJar\n .split(';')\n .filter((c) => !c.trim().startsWith(`${name}=`))\n .filter(Boolean);\n cookieJar = [...existing, `${name}=${val ?? ''}`].join('; ');\n },\n }),\n });\n }\n\n if (typeof localStorage === 'undefined') {\n Object.defineProperty(global, 'localStorage', {\n configurable: true,\n value: createStorage(),\n });\n }\n\n if (typeof sessionStorage === 'undefined') {\n Object.defineProperty(global, 'sessionStorage', {\n configurable: true,\n value: createStorage(),\n });\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAeA,MAAM,sBAAsB;CAC1B,MAAM,QAAgC,EAAE;AACxC,QAAO;EACL,UAAU,QAAgB,MAAM,QAAQ;EACxC,UAAU,KAAa,UAAkB;AACvC,SAAM,OAAO,OAAO,MAAM;;EAE5B,aAAa,QAAgB;AAC3B,UAAO,MAAM;;EAEf,aAAa;AACX,QAAK,MAAM,OAAO,MAChB,QAAO,MAAM;;EAGjB,IAAI,SAAS;AACX,UAAO,OAAO,KAAK,MAAM,CAAC;;EAE5B,MAAM,UAAkB,OAAO,KAAK,MAAM,CAAC,UAAU;EACtD;;AAGH,MAAa,yBAAyB;AACpC,KAAI,OAAO,OAAO,oBAAoB,WACpC,QAAO,mBAAmB,QAAQ,KAAK,MAAM,KAAK,UAAU,IAAI,CAAC;AAGnE,KAAI,OAAO,WAAW,aAAa;EACjC,MAAM,aAAa;AACnB,MAAI,OAAO,OAAO,qBAAqB,WACrC,QAAO,mBAAmB;AAE5B,MAAI,OAAO,OAAO,wBAAwB,WACxC,QAAO,sBAAsB;AAE/B,MAAI,OAAO,OAAO,gBAAgB,WAChC,QAAO,cAAc;;AAOzB,KAAI,OAAO,aAAa,aAAa;EACnC,IAAI,YAAY;AAChB,SAAO,eAAe,QAAQ,YAAY;GACxC,cAAc;GACd,YAAY;IACV,IAAI,SAAS;AACX,YAAO;;IAET,IAAI,OAAO,OAAe;KAExB,MAAM,CAAC,QAAQ,MAAM,MAAM,IAAI;KAC/B,MAAM,CAAC,KAAK,OAAO,MAAM,MAAM,IAAI,IAAI,EAAE;KACzC,MAAM,OAAO,KAAK,MAAM;AAKxB,iBAAY,CAAC,GAJI,UACd,MAAM,IAAI,CACV,QAAQ,MAAM,CAAC,EAAE,MAAM,CAAC,WAAW,GAAG,KAAK,GAAG,CAAC,CAC/C,OAAO,QACc,EAAE,GAAG,KAAK,GAAG,OAAO,KAAK,CAAC,KAAK,KAAK;;IAE/D;GACF,CAAC;;AAGJ,KAAI,OAAO,iBAAiB,YAC1B,QAAO,eAAe,QAAQ,gBAAgB;EAC5C,cAAc;EACd,OAAO,eAAe;EACvB,CAAC;AAGJ,KAAI,OAAO,mBAAmB,YAC5B,QAAO,eAAe,QAAQ,kBAAkB;EAC9C,cAAc;EACd,OAAO,eAAe;EACvB,CAAC"}
1
+ {"version":3,"file":"intlayerPolyfill.cjs","names":[],"sources":["../../src/intlayerPolyfill.ts"],"sourcesContent":["/**\n * Applies necessary polyfills for React Native to support Intlayer.\n *\n * This includes:\n * - Polyfilling `structuredClone` if it is missing.\n * - Providing no-op implementations for standard DOM `window` methods\n * (`addEventListener`, `removeEventListener`, `postMessage`).\n * - Providing in-memory stubs for `document.cookie`, `localStorage`, and\n * `sessionStorage` so that `@intlayer/core`'s locale-storage helpers work\n * without crashing in a React Native environment.\n *\n * Note: These stubs are in-memory only. The locale selection will survive\n * hot-reloads but not full app restarts. To persist across restarts, pass a\n * custom `setLocale` to `<IntlayerProvider>` backed by AsyncStorage.\n */\nconst createStorage = () => {\n const store: Record<string, string> = {};\n return {\n getItem: (key: string) => store[key] ?? null,\n setItem: (key: string, value: string) => {\n store[key] = String(value);\n },\n removeItem: (key: string) => {\n delete store[key];\n },\n clear: () => {\n for (const key in store) {\n delete store[key];\n }\n },\n get length() {\n return Object.keys(store).length;\n },\n key: (index: number) => Object.keys(store)[index] ?? null,\n };\n};\n\nexport const intlayerPolyfill = () => {\n if (typeof global.structuredClone !== 'function') {\n global.structuredClone = (obj) => JSON.parse(JSON.stringify(obj));\n }\n\n if (typeof window !== 'undefined') {\n const noop = () => null;\n if (typeof window.addEventListener !== 'function') {\n window.addEventListener = noop;\n }\n if (typeof window.removeEventListener !== 'function') {\n window.removeEventListener = noop;\n }\n if (typeof window.postMessage !== 'function') {\n window.postMessage = noop;\n }\n }\n\n // `@intlayer/core`'s localeStorageOptions accesses document.cookie directly.\n // In React Native native, `document` is undefined — we provide a minimal\n // in-memory cookie jar so reads/writes work without throwing.\n //\n // We guard with `navigator.product === 'ReactNative'` to avoid installing\n // the stub in SSR / Expo Web pre-render contexts where `document` is also\n // undefined (Node.js) but browser code will later need the real DOM object\n // (e.g. document.createElement called by third-party RN libraries on web).\n const isNativeReactNative =\n typeof navigator !== 'undefined' &&\n (navigator as Navigator & { product?: string }).product === 'ReactNative';\n\n if (typeof document === 'undefined' && isNativeReactNative) {\n let cookieJar = '';\n Object.defineProperty(global, 'document', {\n configurable: true,\n get: () => ({\n get cookie() {\n return cookieJar;\n },\n set cookie(value: string) {\n // Simplified cookie setter: just append/overwrite the key\n const [pair] = value.split(';');\n const [key, val] = pair?.split('=') ?? [];\n const name = key?.trim();\n const existing = cookieJar\n .split(';')\n .filter((c) => !c.trim().startsWith(`${name}=`))\n .filter(Boolean);\n cookieJar = [...existing, `${name}=${val ?? ''}`].join('; ');\n },\n createElement: () => null,\n getElementById: () => null,\n querySelector: () => null,\n querySelectorAll: () => [],\n addEventListener: () => undefined,\n removeEventListener: () => undefined,\n }),\n });\n }\n\n if (typeof localStorage === 'undefined') {\n Object.defineProperty(global, 'localStorage', {\n configurable: true,\n value: createStorage(),\n });\n }\n\n if (typeof sessionStorage === 'undefined') {\n Object.defineProperty(global, 'sessionStorage', {\n configurable: true,\n value: createStorage(),\n });\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAeA,MAAM,sBAAsB;CAC1B,MAAM,QAAgC,EAAE;AACxC,QAAO;EACL,UAAU,QAAgB,MAAM,QAAQ;EACxC,UAAU,KAAa,UAAkB;AACvC,SAAM,OAAO,OAAO,MAAM;;EAE5B,aAAa,QAAgB;AAC3B,UAAO,MAAM;;EAEf,aAAa;AACX,QAAK,MAAM,OAAO,MAChB,QAAO,MAAM;;EAGjB,IAAI,SAAS;AACX,UAAO,OAAO,KAAK,MAAM,CAAC;;EAE5B,MAAM,UAAkB,OAAO,KAAK,MAAM,CAAC,UAAU;EACtD;;AAGH,MAAa,yBAAyB;AACpC,KAAI,OAAO,OAAO,oBAAoB,WACpC,QAAO,mBAAmB,QAAQ,KAAK,MAAM,KAAK,UAAU,IAAI,CAAC;AAGnE,KAAI,OAAO,WAAW,aAAa;EACjC,MAAM,aAAa;AACnB,MAAI,OAAO,OAAO,qBAAqB,WACrC,QAAO,mBAAmB;AAE5B,MAAI,OAAO,OAAO,wBAAwB,WACxC,QAAO,sBAAsB;AAE/B,MAAI,OAAO,OAAO,gBAAgB,WAChC,QAAO,cAAc;;CAYzB,MAAM,sBACJ,OAAO,cAAc,eACpB,UAA+C,YAAY;AAE9D,KAAI,OAAO,aAAa,eAAe,qBAAqB;EAC1D,IAAI,YAAY;AAChB,SAAO,eAAe,QAAQ,YAAY;GACxC,cAAc;GACd,YAAY;IACV,IAAI,SAAS;AACX,YAAO;;IAET,IAAI,OAAO,OAAe;KAExB,MAAM,CAAC,QAAQ,MAAM,MAAM,IAAI;KAC/B,MAAM,CAAC,KAAK,OAAO,MAAM,MAAM,IAAI,IAAI,EAAE;KACzC,MAAM,OAAO,KAAK,MAAM;AAKxB,iBAAY,CAAC,GAJI,UACd,MAAM,IAAI,CACV,QAAQ,MAAM,CAAC,EAAE,MAAM,CAAC,WAAW,GAAG,KAAK,GAAG,CAAC,CAC/C,OAAO,QACc,EAAE,GAAG,KAAK,GAAG,OAAO,KAAK,CAAC,KAAK,KAAK;;IAE9D,qBAAqB;IACrB,sBAAsB;IACtB,qBAAqB;IACrB,wBAAwB,EAAE;IAC1B,wBAAwB;IACxB,2BAA2B;IAC5B;GACF,CAAC;;AAGJ,KAAI,OAAO,iBAAiB,YAC1B,QAAO,eAAe,QAAQ,gBAAgB;EAC5C,cAAc;EACd,OAAO,eAAe;EACvB,CAAC;AAGJ,KAAI,OAAO,mBAAmB,YAC5B,QAAO,eAAe,QAAQ,kBAAkB;EAC9C,cAAc;EACd,OAAO,eAAe;EACvB,CAAC"}
@@ -41,7 +41,8 @@ const intlayerPolyfill = () => {
41
41
  if (typeof window.removeEventListener !== "function") window.removeEventListener = noop;
42
42
  if (typeof window.postMessage !== "function") window.postMessage = noop;
43
43
  }
44
- if (typeof document === "undefined") {
44
+ const isNativeReactNative = typeof navigator !== "undefined" && navigator.product === "ReactNative";
45
+ if (typeof document === "undefined" && isNativeReactNative) {
45
46
  let cookieJar = "";
46
47
  Object.defineProperty(global, "document", {
47
48
  configurable: true,
@@ -54,7 +55,13 @@ const intlayerPolyfill = () => {
54
55
  const [key, val] = pair?.split("=") ?? [];
55
56
  const name = key?.trim();
56
57
  cookieJar = [...cookieJar.split(";").filter((c) => !c.trim().startsWith(`${name}=`)).filter(Boolean), `${name}=${val ?? ""}`].join("; ");
57
- }
58
+ },
59
+ createElement: () => null,
60
+ getElementById: () => null,
61
+ querySelector: () => null,
62
+ querySelectorAll: () => [],
63
+ addEventListener: () => void 0,
64
+ removeEventListener: () => void 0
58
65
  })
59
66
  });
60
67
  }
@@ -1 +1 @@
1
- {"version":3,"file":"intlayerPolyfill.mjs","names":[],"sources":["../../src/intlayerPolyfill.ts"],"sourcesContent":["/**\n * Applies necessary polyfills for React Native to support Intlayer.\n *\n * This includes:\n * - Polyfilling `structuredClone` if it is missing.\n * - Providing no-op implementations for standard DOM `window` methods\n * (`addEventListener`, `removeEventListener`, `postMessage`).\n * - Providing in-memory stubs for `document.cookie`, `localStorage`, and\n * `sessionStorage` so that `@intlayer/core`'s locale-storage helpers work\n * without crashing in a React Native environment.\n *\n * Note: These stubs are in-memory only. The locale selection will survive\n * hot-reloads but not full app restarts. To persist across restarts, pass a\n * custom `setLocale` to `<IntlayerProvider>` backed by AsyncStorage.\n */\nconst createStorage = () => {\n const store: Record<string, string> = {};\n return {\n getItem: (key: string) => store[key] ?? null,\n setItem: (key: string, value: string) => {\n store[key] = String(value);\n },\n removeItem: (key: string) => {\n delete store[key];\n },\n clear: () => {\n for (const key in store) {\n delete store[key];\n }\n },\n get length() {\n return Object.keys(store).length;\n },\n key: (index: number) => Object.keys(store)[index] ?? null,\n };\n};\n\nexport const intlayerPolyfill = () => {\n if (typeof global.structuredClone !== 'function') {\n global.structuredClone = (obj) => JSON.parse(JSON.stringify(obj));\n }\n\n if (typeof window !== 'undefined') {\n const noop = () => null;\n if (typeof window.addEventListener !== 'function') {\n window.addEventListener = noop;\n }\n if (typeof window.removeEventListener !== 'function') {\n window.removeEventListener = noop;\n }\n if (typeof window.postMessage !== 'function') {\n window.postMessage = noop;\n }\n }\n\n // `@intlayer/core`'s localeStorageOptions accesses document.cookie directly.\n // In React Native, `document` is undefined — we provide a minimal in-memory\n // cookie jar so reads/writes work without throwing.\n if (typeof document === 'undefined') {\n let cookieJar = '';\n Object.defineProperty(global, 'document', {\n configurable: true,\n get: () => ({\n get cookie() {\n return cookieJar;\n },\n set cookie(value: string) {\n // Simplified cookie setter: just append/overwrite the key\n const [pair] = value.split(';');\n const [key, val] = pair?.split('=') ?? [];\n const name = key?.trim();\n const existing = cookieJar\n .split(';')\n .filter((c) => !c.trim().startsWith(`${name}=`))\n .filter(Boolean);\n cookieJar = [...existing, `${name}=${val ?? ''}`].join('; ');\n },\n }),\n });\n }\n\n if (typeof localStorage === 'undefined') {\n Object.defineProperty(global, 'localStorage', {\n configurable: true,\n value: createStorage(),\n });\n }\n\n if (typeof sessionStorage === 'undefined') {\n Object.defineProperty(global, 'sessionStorage', {\n configurable: true,\n value: createStorage(),\n });\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAeA,MAAM,sBAAsB;CAC1B,MAAM,QAAgC,EAAE;AACxC,QAAO;EACL,UAAU,QAAgB,MAAM,QAAQ;EACxC,UAAU,KAAa,UAAkB;AACvC,SAAM,OAAO,OAAO,MAAM;;EAE5B,aAAa,QAAgB;AAC3B,UAAO,MAAM;;EAEf,aAAa;AACX,QAAK,MAAM,OAAO,MAChB,QAAO,MAAM;;EAGjB,IAAI,SAAS;AACX,UAAO,OAAO,KAAK,MAAM,CAAC;;EAE5B,MAAM,UAAkB,OAAO,KAAK,MAAM,CAAC,UAAU;EACtD;;AAGH,MAAa,yBAAyB;AACpC,KAAI,OAAO,OAAO,oBAAoB,WACpC,QAAO,mBAAmB,QAAQ,KAAK,MAAM,KAAK,UAAU,IAAI,CAAC;AAGnE,KAAI,OAAO,WAAW,aAAa;EACjC,MAAM,aAAa;AACnB,MAAI,OAAO,OAAO,qBAAqB,WACrC,QAAO,mBAAmB;AAE5B,MAAI,OAAO,OAAO,wBAAwB,WACxC,QAAO,sBAAsB;AAE/B,MAAI,OAAO,OAAO,gBAAgB,WAChC,QAAO,cAAc;;AAOzB,KAAI,OAAO,aAAa,aAAa;EACnC,IAAI,YAAY;AAChB,SAAO,eAAe,QAAQ,YAAY;GACxC,cAAc;GACd,YAAY;IACV,IAAI,SAAS;AACX,YAAO;;IAET,IAAI,OAAO,OAAe;KAExB,MAAM,CAAC,QAAQ,MAAM,MAAM,IAAI;KAC/B,MAAM,CAAC,KAAK,OAAO,MAAM,MAAM,IAAI,IAAI,EAAE;KACzC,MAAM,OAAO,KAAK,MAAM;AAKxB,iBAAY,CAAC,GAJI,UACd,MAAM,IAAI,CACV,QAAQ,MAAM,CAAC,EAAE,MAAM,CAAC,WAAW,GAAG,KAAK,GAAG,CAAC,CAC/C,OAAO,QACc,EAAE,GAAG,KAAK,GAAG,OAAO,KAAK,CAAC,KAAK,KAAK;;IAE/D;GACF,CAAC;;AAGJ,KAAI,OAAO,iBAAiB,YAC1B,QAAO,eAAe,QAAQ,gBAAgB;EAC5C,cAAc;EACd,OAAO,eAAe;EACvB,CAAC;AAGJ,KAAI,OAAO,mBAAmB,YAC5B,QAAO,eAAe,QAAQ,kBAAkB;EAC9C,cAAc;EACd,OAAO,eAAe;EACvB,CAAC"}
1
+ {"version":3,"file":"intlayerPolyfill.mjs","names":[],"sources":["../../src/intlayerPolyfill.ts"],"sourcesContent":["/**\n * Applies necessary polyfills for React Native to support Intlayer.\n *\n * This includes:\n * - Polyfilling `structuredClone` if it is missing.\n * - Providing no-op implementations for standard DOM `window` methods\n * (`addEventListener`, `removeEventListener`, `postMessage`).\n * - Providing in-memory stubs for `document.cookie`, `localStorage`, and\n * `sessionStorage` so that `@intlayer/core`'s locale-storage helpers work\n * without crashing in a React Native environment.\n *\n * Note: These stubs are in-memory only. The locale selection will survive\n * hot-reloads but not full app restarts. To persist across restarts, pass a\n * custom `setLocale` to `<IntlayerProvider>` backed by AsyncStorage.\n */\nconst createStorage = () => {\n const store: Record<string, string> = {};\n return {\n getItem: (key: string) => store[key] ?? null,\n setItem: (key: string, value: string) => {\n store[key] = String(value);\n },\n removeItem: (key: string) => {\n delete store[key];\n },\n clear: () => {\n for (const key in store) {\n delete store[key];\n }\n },\n get length() {\n return Object.keys(store).length;\n },\n key: (index: number) => Object.keys(store)[index] ?? null,\n };\n};\n\nexport const intlayerPolyfill = () => {\n if (typeof global.structuredClone !== 'function') {\n global.structuredClone = (obj) => JSON.parse(JSON.stringify(obj));\n }\n\n if (typeof window !== 'undefined') {\n const noop = () => null;\n if (typeof window.addEventListener !== 'function') {\n window.addEventListener = noop;\n }\n if (typeof window.removeEventListener !== 'function') {\n window.removeEventListener = noop;\n }\n if (typeof window.postMessage !== 'function') {\n window.postMessage = noop;\n }\n }\n\n // `@intlayer/core`'s localeStorageOptions accesses document.cookie directly.\n // In React Native native, `document` is undefined — we provide a minimal\n // in-memory cookie jar so reads/writes work without throwing.\n //\n // We guard with `navigator.product === 'ReactNative'` to avoid installing\n // the stub in SSR / Expo Web pre-render contexts where `document` is also\n // undefined (Node.js) but browser code will later need the real DOM object\n // (e.g. document.createElement called by third-party RN libraries on web).\n const isNativeReactNative =\n typeof navigator !== 'undefined' &&\n (navigator as Navigator & { product?: string }).product === 'ReactNative';\n\n if (typeof document === 'undefined' && isNativeReactNative) {\n let cookieJar = '';\n Object.defineProperty(global, 'document', {\n configurable: true,\n get: () => ({\n get cookie() {\n return cookieJar;\n },\n set cookie(value: string) {\n // Simplified cookie setter: just append/overwrite the key\n const [pair] = value.split(';');\n const [key, val] = pair?.split('=') ?? [];\n const name = key?.trim();\n const existing = cookieJar\n .split(';')\n .filter((c) => !c.trim().startsWith(`${name}=`))\n .filter(Boolean);\n cookieJar = [...existing, `${name}=${val ?? ''}`].join('; ');\n },\n createElement: () => null,\n getElementById: () => null,\n querySelector: () => null,\n querySelectorAll: () => [],\n addEventListener: () => undefined,\n removeEventListener: () => undefined,\n }),\n });\n }\n\n if (typeof localStorage === 'undefined') {\n Object.defineProperty(global, 'localStorage', {\n configurable: true,\n value: createStorage(),\n });\n }\n\n if (typeof sessionStorage === 'undefined') {\n Object.defineProperty(global, 'sessionStorage', {\n configurable: true,\n value: createStorage(),\n });\n }\n};\n"],"mappings":";;;;;;;;;;;;;;;;AAeA,MAAM,sBAAsB;CAC1B,MAAM,QAAgC,EAAE;AACxC,QAAO;EACL,UAAU,QAAgB,MAAM,QAAQ;EACxC,UAAU,KAAa,UAAkB;AACvC,SAAM,OAAO,OAAO,MAAM;;EAE5B,aAAa,QAAgB;AAC3B,UAAO,MAAM;;EAEf,aAAa;AACX,QAAK,MAAM,OAAO,MAChB,QAAO,MAAM;;EAGjB,IAAI,SAAS;AACX,UAAO,OAAO,KAAK,MAAM,CAAC;;EAE5B,MAAM,UAAkB,OAAO,KAAK,MAAM,CAAC,UAAU;EACtD;;AAGH,MAAa,yBAAyB;AACpC,KAAI,OAAO,OAAO,oBAAoB,WACpC,QAAO,mBAAmB,QAAQ,KAAK,MAAM,KAAK,UAAU,IAAI,CAAC;AAGnE,KAAI,OAAO,WAAW,aAAa;EACjC,MAAM,aAAa;AACnB,MAAI,OAAO,OAAO,qBAAqB,WACrC,QAAO,mBAAmB;AAE5B,MAAI,OAAO,OAAO,wBAAwB,WACxC,QAAO,sBAAsB;AAE/B,MAAI,OAAO,OAAO,gBAAgB,WAChC,QAAO,cAAc;;CAYzB,MAAM,sBACJ,OAAO,cAAc,eACpB,UAA+C,YAAY;AAE9D,KAAI,OAAO,aAAa,eAAe,qBAAqB;EAC1D,IAAI,YAAY;AAChB,SAAO,eAAe,QAAQ,YAAY;GACxC,cAAc;GACd,YAAY;IACV,IAAI,SAAS;AACX,YAAO;;IAET,IAAI,OAAO,OAAe;KAExB,MAAM,CAAC,QAAQ,MAAM,MAAM,IAAI;KAC/B,MAAM,CAAC,KAAK,OAAO,MAAM,MAAM,IAAI,IAAI,EAAE;KACzC,MAAM,OAAO,KAAK,MAAM;AAKxB,iBAAY,CAAC,GAJI,UACd,MAAM,IAAI,CACV,QAAQ,MAAM,CAAC,EAAE,MAAM,CAAC,WAAW,GAAG,KAAK,GAAG,CAAC,CAC/C,OAAO,QACc,EAAE,GAAG,KAAK,GAAG,OAAO,KAAK,CAAC,KAAK,KAAK;;IAE9D,qBAAqB;IACrB,sBAAsB;IACtB,qBAAqB;IACrB,wBAAwB,EAAE;IAC1B,wBAAwB;IACxB,2BAA2B;IAC5B;GACF,CAAC;;AAGJ,KAAI,OAAO,iBAAiB,YAC1B,QAAO,eAAe,QAAQ,gBAAgB;EAC5C,cAAc;EACd,OAAO,eAAe;EACvB,CAAC;AAGJ,KAAI,OAAO,mBAAmB,YAC5B,QAAO,eAAe,QAAQ,kBAAkB;EAC9C,cAAc;EACd,OAAO,eAAe;EACvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-intlayer",
3
- "version": "9.0.0-canary.10",
3
+ "version": "9.0.0-canary.11",
4
4
  "private": false,
5
5
  "description": "A React Native plugin for seamless internationalization (i18n), providing locale detection, redirection, and environment-based configuration",
6
6
  "keywords": [
@@ -110,11 +110,11 @@
110
110
  "typecheck": "tsc --noEmit --project tsconfig.types.json"
111
111
  },
112
112
  "dependencies": {
113
- "@intlayer/chokidar": "9.0.0-canary.10",
114
- "@intlayer/config": "9.0.0-canary.10",
115
- "@intlayer/core": "9.0.0-canary.10",
116
- "@intlayer/types": "9.0.0-canary.10",
117
- "react-intlayer": "9.0.0-canary.10"
113
+ "@intlayer/chokidar": "9.0.0-canary.11",
114
+ "@intlayer/config": "9.0.0-canary.11",
115
+ "@intlayer/core": "9.0.0-canary.11",
116
+ "@intlayer/types": "9.0.0-canary.11",
117
+ "react-intlayer": "9.0.0-canary.11"
118
118
  },
119
119
  "devDependencies": {
120
120
  "@types/node": "25.9.4",