nuxt-intlayer 7.0.0-canary.2 → 7.0.0-canary.3
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/packages/@intlayer/dictionaries-entry/dist/esm/index.cjs +1 -1
- package/dist/cjs/packages/@intlayer/dictionaries-entry/dist/esm/index.cjs.map +1 -1
- package/dist/esm/packages/@intlayer/dictionaries-entry/dist/esm/index.mjs +2 -2
- package/dist/esm/packages/@intlayer/dictionaries-entry/dist/esm/index.mjs.map +1 -1
- package/package.json +14 -14
|
@@ -15,7 +15,7 @@ const getDictionaries = (configuration = __intlayer_config_built.default) => {
|
|
|
15
15
|
let dictionaries = {};
|
|
16
16
|
if ((0, node_fs.existsSync)(dictionariesPath)) {
|
|
17
17
|
(0, __intlayer_config.clearModuleCache)(dictionariesPath);
|
|
18
|
-
dictionaries = build.require(dictionariesPath);
|
|
18
|
+
dictionaries = (build.require ?? __intlayer_config.ESMxCJSRequire)(dictionariesPath);
|
|
19
19
|
}
|
|
20
20
|
return dictionaries ?? {};
|
|
21
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","names":["config"],"sources":["../../../../../../../../@intlayer/dictionaries-entry/dist/esm/index.mjs"],"sourcesContent":["import { existsSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { clearModuleCache } from \"@intlayer/config\";\nimport config from \"@intlayer/config/built\";\n\n//#region src/index.ts\nconst getDictionaries = (configuration = config) => {\n\tconst { content, build } = configuration;\n\tconst dictionariesPath = join(content.mainDir, `dictionaries.cjs`);\n\tlet dictionaries = {};\n\tif (existsSync(dictionariesPath)) {\n\t\tclearModuleCache(dictionariesPath);\n\t\tdictionaries = build.require(dictionariesPath);\n\t}\n\treturn dictionaries ?? {};\n};\n\n//#endregion\nexport { getDictionaries };\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;AAMA,MAAM,mBAAmB,gBAAgBA,oCAAW;CACnD,MAAM,EAAE,SAAS,UAAU;CAC3B,MAAM,uCAAwB,QAAQ,SAAS,mBAAmB;CAClE,IAAI,eAAe,EAAE;AACrB,6BAAe,iBAAiB,EAAE;AACjC,0CAAiB,iBAAiB;AAClC,
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["config","ESMxCJSRequire"],"sources":["../../../../../../../../@intlayer/dictionaries-entry/dist/esm/index.mjs"],"sourcesContent":["import { existsSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { ESMxCJSRequire, clearModuleCache } from \"@intlayer/config\";\nimport config from \"@intlayer/config/built\";\n\n//#region src/index.ts\nconst getDictionaries = (configuration = config) => {\n\tconst { content, build } = configuration;\n\tconst dictionariesPath = join(content.mainDir, `dictionaries.cjs`);\n\tlet dictionaries = {};\n\tif (existsSync(dictionariesPath)) {\n\t\tclearModuleCache(dictionariesPath);\n\t\tdictionaries = (build.require ?? ESMxCJSRequire)(dictionariesPath);\n\t}\n\treturn dictionaries ?? {};\n};\n\n//#endregion\nexport { getDictionaries };\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;;;;;;AAMA,MAAM,mBAAmB,gBAAgBA,oCAAW;CACnD,MAAM,EAAE,SAAS,UAAU;CAC3B,MAAM,uCAAwB,QAAQ,SAAS,mBAAmB;CAClE,IAAI,eAAe,EAAE;AACrB,6BAAe,iBAAiB,EAAE;AACjC,0CAAiB,iBAAiB;AAClC,kBAAgB,MAAM,WAAWC,kCAAgB,iBAAiB;;AAEnE,QAAO,gBAAgB,EAAE"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { join } from "node:path";
|
|
2
|
-
import { clearModuleCache } from "@intlayer/config";
|
|
2
|
+
import { ESMxCJSRequire, clearModuleCache } from "@intlayer/config";
|
|
3
3
|
import a from "@intlayer/config/built";
|
|
4
4
|
import { existsSync } from "node:fs";
|
|
5
5
|
|
|
@@ -10,7 +10,7 @@ const getDictionaries = (configuration = a) => {
|
|
|
10
10
|
let dictionaries = {};
|
|
11
11
|
if (existsSync(dictionariesPath)) {
|
|
12
12
|
clearModuleCache(dictionariesPath);
|
|
13
|
-
dictionaries = build.require(dictionariesPath);
|
|
13
|
+
dictionaries = (build.require ?? ESMxCJSRequire)(dictionariesPath);
|
|
14
14
|
}
|
|
15
15
|
return dictionaries ?? {};
|
|
16
16
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["config"],"sources":["../../../../../../../../@intlayer/dictionaries-entry/dist/esm/index.mjs"],"sourcesContent":["import { existsSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { clearModuleCache } from \"@intlayer/config\";\nimport config from \"@intlayer/config/built\";\n\n//#region src/index.ts\nconst getDictionaries = (configuration = config) => {\n\tconst { content, build } = configuration;\n\tconst dictionariesPath = join(content.mainDir, `dictionaries.cjs`);\n\tlet dictionaries = {};\n\tif (existsSync(dictionariesPath)) {\n\t\tclearModuleCache(dictionariesPath);\n\t\tdictionaries = build.require(dictionariesPath);\n\t}\n\treturn dictionaries ?? {};\n};\n\n//#endregion\nexport { getDictionaries };\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;AAMA,MAAM,mBAAmB,gBAAgBA,MAAW;CACnD,MAAM,EAAE,SAAS,UAAU;CAC3B,MAAM,mBAAmB,KAAK,QAAQ,SAAS,mBAAmB;CAClE,IAAI,eAAe,EAAE;AACrB,KAAI,WAAW,iBAAiB,EAAE;AACjC,mBAAiB,iBAAiB;AAClC,
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["config"],"sources":["../../../../../../../../@intlayer/dictionaries-entry/dist/esm/index.mjs"],"sourcesContent":["import { existsSync } from \"node:fs\";\nimport { join } from \"node:path\";\nimport { ESMxCJSRequire, clearModuleCache } from \"@intlayer/config\";\nimport config from \"@intlayer/config/built\";\n\n//#region src/index.ts\nconst getDictionaries = (configuration = config) => {\n\tconst { content, build } = configuration;\n\tconst dictionariesPath = join(content.mainDir, `dictionaries.cjs`);\n\tlet dictionaries = {};\n\tif (existsSync(dictionariesPath)) {\n\t\tclearModuleCache(dictionariesPath);\n\t\tdictionaries = (build.require ?? ESMxCJSRequire)(dictionariesPath);\n\t}\n\treturn dictionaries ?? {};\n};\n\n//#endregion\nexport { getDictionaries };\n//# sourceMappingURL=index.mjs.map"],"mappings":";;;;;;AAMA,MAAM,mBAAmB,gBAAgBA,MAAW;CACnD,MAAM,EAAE,SAAS,UAAU;CAC3B,MAAM,mBAAmB,KAAK,QAAQ,SAAS,mBAAmB;CAClE,IAAI,eAAe,EAAE;AACrB,KAAI,WAAW,iBAAiB,EAAE;AACjC,mBAAiB,iBAAiB;AAClC,kBAAgB,MAAM,WAAW,gBAAgB,iBAAiB;;AAEnE,QAAO,gBAAgB,EAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-intlayer",
|
|
3
|
-
"version": "7.0.0-canary.
|
|
3
|
+
"version": "7.0.0-canary.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Easily internationalize i18n your Nuxt applications with type-safe multilingual content management.",
|
|
6
6
|
"keywords": [
|
|
@@ -73,17 +73,17 @@
|
|
|
73
73
|
"typecheck": "tsc --noEmit --project tsconfig.types.json"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@intlayer/chokidar": "7.0.0-canary.
|
|
77
|
-
"@intlayer/config": "7.0.0-canary.
|
|
78
|
-
"@intlayer/core": "7.0.0-canary.
|
|
79
|
-
"@intlayer/types": "7.0.0-canary.
|
|
80
|
-
"vite-intlayer": "7.0.0-canary.
|
|
76
|
+
"@intlayer/chokidar": "7.0.0-canary.3",
|
|
77
|
+
"@intlayer/config": "7.0.0-canary.3",
|
|
78
|
+
"@intlayer/core": "7.0.0-canary.3",
|
|
79
|
+
"@intlayer/types": "7.0.0-canary.3",
|
|
80
|
+
"vite-intlayer": "7.0.0-canary.3"
|
|
81
81
|
},
|
|
82
82
|
"devDependencies": {
|
|
83
83
|
"@types/node": "24.9.1",
|
|
84
|
-
"@utils/ts-config": "7.0.0-canary.
|
|
85
|
-
"@utils/ts-config-types": "7.0.0-canary.
|
|
86
|
-
"@utils/tsdown-config": "7.0.0-canary.
|
|
84
|
+
"@utils/ts-config": "7.0.0-canary.3",
|
|
85
|
+
"@utils/ts-config-types": "7.0.0-canary.3",
|
|
86
|
+
"@utils/tsdown-config": "7.0.0-canary.3",
|
|
87
87
|
"fast-glob": "3.3.3",
|
|
88
88
|
"rimraf": "6.0.1",
|
|
89
89
|
"tsdown": "0.15.9",
|
|
@@ -91,13 +91,13 @@
|
|
|
91
91
|
"vitest": "4.0.3"
|
|
92
92
|
},
|
|
93
93
|
"peerDependencies": {
|
|
94
|
-
"@intlayer/chokidar": "7.0.0-canary.
|
|
95
|
-
"@intlayer/config": "7.0.0-canary.
|
|
96
|
-
"@intlayer/core": "7.0.0-canary.
|
|
97
|
-
"@intlayer/types": "7.0.0-canary.
|
|
94
|
+
"@intlayer/chokidar": "7.0.0-canary.3",
|
|
95
|
+
"@intlayer/config": "7.0.0-canary.3",
|
|
96
|
+
"@intlayer/core": "7.0.0-canary.3",
|
|
97
|
+
"@intlayer/types": "7.0.0-canary.3",
|
|
98
98
|
"@nuxt/kit": ">=3.0.0",
|
|
99
99
|
"@nuxt/schema": ">=3.0.0",
|
|
100
|
-
"vite-intlayer": "7.0.0-canary.
|
|
100
|
+
"vite-intlayer": "7.0.0-canary.3"
|
|
101
101
|
},
|
|
102
102
|
"engines": {
|
|
103
103
|
"node": ">=14.18"
|