react-native-intlayer 8.0.0-canary.1 → 8.0.0-canary.2
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/dist/cjs/exclusionList.cjs +1 -1
- package/dist/cjs/exclusionList.cjs.map +1 -1
- package/dist/esm/_virtual/rolldown_runtime.mjs +1 -1
- package/dist/esm/exclusionList.mjs +1 -1
- package/dist/esm/exclusionList.mjs.map +1 -1
- package/dist/types/configMetroIntlayer.d.ts.map +1 -1
- package/dist/types/exclusionList.d.ts.map +1 -1
- package/dist/types/intlayerPolyfill.d.ts.map +1 -1
- package/dist/types/intlayerProvider.d.ts.map +1 -1
- package/package.json +9 -9
|
@@ -8,7 +8,7 @@ const escapeRegExp = (pattern) => {
|
|
|
8
8
|
else if (typeof pattern === "string") return pattern.replace(/[-[\]{}()*+?.\\^$|]/g, "\\$&").replaceAll("/", `\\${node_path.default.sep}`);
|
|
9
9
|
else throw new Error(`Unexpected exclusion pattern: ${pattern}`);
|
|
10
10
|
};
|
|
11
|
-
const exclusionList = (additionalExclusions) =>
|
|
11
|
+
const exclusionList = (additionalExclusions) => new RegExp(`(${(additionalExclusions || []).map(escapeRegExp).join("|")})$`);
|
|
12
12
|
|
|
13
13
|
//#endregion
|
|
14
14
|
exports.exclusionList = exclusionList;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exclusionList.cjs","names":["path"],"sources":["../../src/exclusionList.ts"],"sourcesContent":["import path from 'node:path';\n\nconst escapeRegExp = (pattern: RegExp | string) => {\n if (Object.prototype.toString.call(pattern) === '[object RegExp]') {\n return (pattern as RegExp).source.replace(/\\/|\\\\\\//g, `\\\\${path.sep}`);\n } else if (typeof pattern === 'string') {\n var escaped = pattern.replace(/[-[\\]{}()*+?.\\\\^$|]/g, '\\\\$&');\n return escaped.replaceAll('/', `\\\\${path.sep}`);\n } else {\n throw new Error(`Unexpected exclusion pattern: ${pattern}`);\n }\n};\n\nexport const exclusionList = (additionalExclusions?: (RegExp | string)[]) =>\n new RegExp(`(${(additionalExclusions || []).map(escapeRegExp).join('|')})$`);\n"],"mappings":";;;;;AAEA,MAAM,gBAAgB,YAA6B;AACjD,KAAI,OAAO,UAAU,SAAS,KAAK,QAAQ,KAAK,kBAC9C,QAAQ,QAAmB,OAAO,QAAQ,YAAY,KAAKA,kBAAK,MAAM;UAC7D,OAAO,YAAY,SAE5B,QADc,QAAQ,QAAQ,wBAAwB,OAAO,CAC9C,WAAW,KAAK,KAAKA,kBAAK,MAAM;KAE/C,OAAM,IAAI,MAAM,iCAAiC,UAAU;;AAI/D,MAAa,iBAAiB,
|
|
1
|
+
{"version":3,"file":"exclusionList.cjs","names":["path"],"sources":["../../src/exclusionList.ts"],"sourcesContent":["import path from 'node:path';\n\nconst escapeRegExp = (pattern: RegExp | string) => {\n if (Object.prototype.toString.call(pattern) === '[object RegExp]') {\n return (pattern as RegExp).source.replace(/\\/|\\\\\\//g, `\\\\${path.sep}`);\n } else if (typeof pattern === 'string') {\n var escaped = pattern.replace(/[-[\\]{}()*+?.\\\\^$|]/g, '\\\\$&');\n return escaped.replaceAll('/', `\\\\${path.sep}`);\n } else {\n throw new Error(`Unexpected exclusion pattern: ${pattern}`);\n }\n};\n\nexport const exclusionList = (additionalExclusions?: (RegExp | string)[]) =>\n new RegExp(`(${(additionalExclusions || []).map(escapeRegExp).join('|')})$`);\n"],"mappings":";;;;;AAEA,MAAM,gBAAgB,YAA6B;AACjD,KAAI,OAAO,UAAU,SAAS,KAAK,QAAQ,KAAK,kBAC9C,QAAQ,QAAmB,OAAO,QAAQ,YAAY,KAAKA,kBAAK,MAAM;UAC7D,OAAO,YAAY,SAE5B,QADc,QAAQ,QAAQ,wBAAwB,OAAO,CAC9C,WAAW,KAAK,KAAKA,kBAAK,MAAM;KAE/C,OAAM,IAAI,MAAM,iCAAiC,UAAU;;AAI/D,MAAa,iBAAiB,yBAC5B,IAAI,OAAO,KAAK,wBAAwB,EAAE,EAAE,IAAI,aAAa,CAAC,KAAK,IAAI,CAAC,IAAI"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//#region rolldown:runtime
|
|
2
2
|
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
3
3
|
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
4
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
4
|
+
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
5
5
|
});
|
|
6
6
|
|
|
7
7
|
//#endregion
|
|
@@ -6,7 +6,7 @@ const escapeRegExp = (pattern) => {
|
|
|
6
6
|
else if (typeof pattern === "string") return pattern.replace(/[-[\]{}()*+?.\\^$|]/g, "\\$&").replaceAll("/", `\\${path.sep}`);
|
|
7
7
|
else throw new Error(`Unexpected exclusion pattern: ${pattern}`);
|
|
8
8
|
};
|
|
9
|
-
const exclusionList = (additionalExclusions) =>
|
|
9
|
+
const exclusionList = (additionalExclusions) => new RegExp(`(${(additionalExclusions || []).map(escapeRegExp).join("|")})$`);
|
|
10
10
|
|
|
11
11
|
//#endregion
|
|
12
12
|
export { exclusionList };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exclusionList.mjs","names":[],"sources":["../../src/exclusionList.ts"],"sourcesContent":["import path from 'node:path';\n\nconst escapeRegExp = (pattern: RegExp | string) => {\n if (Object.prototype.toString.call(pattern) === '[object RegExp]') {\n return (pattern as RegExp).source.replace(/\\/|\\\\\\//g, `\\\\${path.sep}`);\n } else if (typeof pattern === 'string') {\n var escaped = pattern.replace(/[-[\\]{}()*+?.\\\\^$|]/g, '\\\\$&');\n return escaped.replaceAll('/', `\\\\${path.sep}`);\n } else {\n throw new Error(`Unexpected exclusion pattern: ${pattern}`);\n }\n};\n\nexport const exclusionList = (additionalExclusions?: (RegExp | string)[]) =>\n new RegExp(`(${(additionalExclusions || []).map(escapeRegExp).join('|')})$`);\n"],"mappings":";;;AAEA,MAAM,gBAAgB,YAA6B;AACjD,KAAI,OAAO,UAAU,SAAS,KAAK,QAAQ,KAAK,kBAC9C,QAAQ,QAAmB,OAAO,QAAQ,YAAY,KAAK,KAAK,MAAM;UAC7D,OAAO,YAAY,SAE5B,QADc,QAAQ,QAAQ,wBAAwB,OAAO,CAC9C,WAAW,KAAK,KAAK,KAAK,MAAM;KAE/C,OAAM,IAAI,MAAM,iCAAiC,UAAU;;AAI/D,MAAa,iBAAiB,
|
|
1
|
+
{"version":3,"file":"exclusionList.mjs","names":[],"sources":["../../src/exclusionList.ts"],"sourcesContent":["import path from 'node:path';\n\nconst escapeRegExp = (pattern: RegExp | string) => {\n if (Object.prototype.toString.call(pattern) === '[object RegExp]') {\n return (pattern as RegExp).source.replace(/\\/|\\\\\\//g, `\\\\${path.sep}`);\n } else if (typeof pattern === 'string') {\n var escaped = pattern.replace(/[-[\\]{}()*+?.\\\\^$|]/g, '\\\\$&');\n return escaped.replaceAll('/', `\\\\${path.sep}`);\n } else {\n throw new Error(`Unexpected exclusion pattern: ${pattern}`);\n }\n};\n\nexport const exclusionList = (additionalExclusions?: (RegExp | string)[]) =>\n new RegExp(`(${(additionalExclusions || []).map(escapeRegExp).join('|')})$`);\n"],"mappings":";;;AAEA,MAAM,gBAAgB,YAA6B;AACjD,KAAI,OAAO,UAAU,SAAS,KAAK,QAAQ,KAAK,kBAC9C,QAAQ,QAAmB,OAAO,QAAQ,YAAY,KAAK,KAAK,MAAM;UAC7D,OAAO,YAAY,SAE5B,QADc,QAAQ,QAAQ,wBAAwB,OAAO,CAC9C,WAAW,KAAK,KAAK,KAAK,MAAM;KAE/C,OAAM,IAAI,MAAM,iCAAiC,UAAU;;AAI/D,MAAa,iBAAiB,yBAC5B,IAAI,OAAO,KAAK,wBAAwB,EAAE,EAAE,IAAI,aAAa,CAAC,KAAK,IAAI,CAAC,IAAI"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configMetroIntlayer.d.ts","names":[],"sources":["../../src/configMetroIntlayer.ts"],"
|
|
1
|
+
{"version":3,"file":"configMetroIntlayer.d.ts","names":[],"sources":["../../src/configMetroIntlayer.ts"],"mappings":";;;KAOK,WAAA,GAAc,UAAA,QAAkB,gBAAA;;AAJqB;;;;;AAmB1D;;;;;;;cAAa,uBAAA,GACX,UAAA,GAAa,WAAA,KACZ,WAAA;;AAyEH;;;;;;;;;;;;;;cAAa,mBAAA,GACX,UAAA,GAAa,WAAA,KACZ,OAAA,CAAQ,WAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"exclusionList.d.ts","names":[],"sources":["../../src/exclusionList.ts"],"
|
|
1
|
+
{"version":3,"file":"exclusionList.d.ts","names":[],"sources":["../../src/exclusionList.ts"],"mappings":";cAaa,aAAA,GAAiB,oBAAA,IAAwB,MAAA,iBAAkB,MAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intlayerPolyfill.d.ts","names":[],"sources":["../../src/intlayerPolyfill.ts"],"
|
|
1
|
+
{"version":3,"file":"intlayerPolyfill.d.ts","names":[],"sources":["../../src/intlayerPolyfill.ts"],"mappings":";;AAQA;;;;;;;cAAa,gBAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intlayerProvider.d.ts","names":[],"sources":["../../src/intlayerProvider.tsx"],"
|
|
1
|
+
{"version":3,"file":"intlayerProvider.d.ts","names":[],"sources":["../../src/intlayerProvider.tsx"],"mappings":";;;;KAQK,uBAAA,GAAwB,IAAA,CAC3B,qBAAA;;;AANsB;;;;;AA6BxB;;;;;;;;;;;;cAAa,gBAAA;EAAoB,QAAA;EAAA,GAAA;AAAA,GAG9B,uBAAA,KAAqB,kBAAA,CAAA,GAAA,CAAA,OAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-intlayer",
|
|
3
|
-
"version": "8.0.0-canary.
|
|
3
|
+
"version": "8.0.0-canary.2",
|
|
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": [
|
|
@@ -87,11 +87,11 @@
|
|
|
87
87
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@intlayer/chokidar": "8.0.0-canary.
|
|
91
|
-
"@intlayer/config": "8.0.0-canary.
|
|
92
|
-
"@intlayer/core": "8.0.0-canary.
|
|
93
|
-
"@intlayer/types": "8.0.0-canary.
|
|
94
|
-
"react-intlayer": "8.0.0-canary.
|
|
90
|
+
"@intlayer/chokidar": "8.0.0-canary.2",
|
|
91
|
+
"@intlayer/config": "8.0.0-canary.2",
|
|
92
|
+
"@intlayer/core": "8.0.0-canary.2",
|
|
93
|
+
"@intlayer/types": "8.0.0-canary.2",
|
|
94
|
+
"react-intlayer": "8.0.0-canary.2"
|
|
95
95
|
},
|
|
96
96
|
"devDependencies": {
|
|
97
97
|
"@types/node": "25.0.9",
|
|
@@ -103,15 +103,15 @@
|
|
|
103
103
|
"metro-resolver": "0.82.0",
|
|
104
104
|
"react": ">=18.0.0",
|
|
105
105
|
"rimraf": "6.1.2",
|
|
106
|
-
"tsdown": "0.
|
|
106
|
+
"tsdown": "0.20.0",
|
|
107
107
|
"typescript": "5.9.3",
|
|
108
|
-
"vitest": "4.0.
|
|
108
|
+
"vitest": "4.0.18"
|
|
109
109
|
},
|
|
110
110
|
"peerDependencies": {
|
|
111
111
|
"expo": ">=52",
|
|
112
112
|
"metro-resolver": ">=0.80",
|
|
113
113
|
"react": ">=18.0.0",
|
|
114
|
-
"react-intlayer": "8.0.0-canary.
|
|
114
|
+
"react-intlayer": "8.0.0-canary.2"
|
|
115
115
|
},
|
|
116
116
|
"engines": {
|
|
117
117
|
"node": ">=14.18"
|