@intlayer/dictionaries-entry 3.5.9 → 3.5.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.
@@ -16,11 +16,11 @@ var __copyProps = (to, from, except, desc) => {
16
16
  return to;
17
17
  };
18
18
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
- var src_exports = {};
20
- __export(src_exports, {
21
- default: () => src_default
19
+ var index_exports = {};
20
+ __export(index_exports, {
21
+ default: () => index_default
22
22
  });
23
- module.exports = __toCommonJS(src_exports);
23
+ module.exports = __toCommonJS(index_exports);
24
24
  var import_fs = require("fs");
25
25
  var import_path = require("path");
26
26
  var import_config = require("@intlayer/config");
@@ -31,5 +31,5 @@ if ((0, import_fs.existsSync)(dictionariesPath)) {
31
31
  (0, import_config.ESMxCJSRequire)(dictionariesPath);
32
32
  dictionaries = (0, import_config.ESMxCJSRequire)(dictionariesPath);
33
33
  }
34
- var src_default = dictionaries ?? {};
34
+ var index_default = dictionaries ?? {};
35
35
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/dictionaries-entry is a package that only returns the dictionary entry path.\n * Using an external package allow to alias it in the bundle configuration (such as webpack).\n * The alias allow hot reload the app (such as nextjs) on any dictionary change.\n */\n\nimport { existsSync } from 'fs';\nimport { join } from 'path';\nimport { getConfiguration, ESMxCJSRequire } from '@intlayer/config';\nimport type { Dictionary } from '@intlayer/core';\n\nlet dictionaries = undefined;\n\nconst { content } = getConfiguration();\nconst dictionariesPath = join(content.mainDir, 'dictionaries.cjs');\n\n// Test if the dictionaries file exists\nif (existsSync(dictionariesPath)) {\n ESMxCJSRequire(dictionariesPath);\n dictionaries = ESMxCJSRequire(dictionariesPath);\n}\n\nexport default (dictionaries ?? {}) as Record<Dictionary['key'], Dictionary>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,gBAA2B;AAC3B,kBAAqB;AACrB,oBAAiD;AAGjD,IAAI,eAAe;AAEnB,MAAM,EAAE,QAAQ,QAAI,gCAAiB;AACrC,MAAM,uBAAmB,kBAAK,QAAQ,SAAS,kBAAkB;AAGjE,QAAI,sBAAW,gBAAgB,GAAG;AAChC,oCAAe,gBAAgB;AAC/B,qBAAe,8BAAe,gBAAgB;AAChD;AAEA,IAAO,cAAS,gBAAgB,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/dictionaries-entry is a package that only returns the dictionary entry path.\n * Using an external package allow to alias it in the bundle configuration (such as webpack).\n * The alias allow hot reload the app (such as nextjs) on any dictionary change.\n */\n\nimport { existsSync } from 'fs';\nimport { join } from 'path';\nimport { getConfiguration, ESMxCJSRequire } from '@intlayer/config';\nimport type { Dictionary } from '@intlayer/core';\n\nlet dictionaries = undefined;\n\nconst { content } = getConfiguration();\nconst dictionariesPath = join(content.mainDir, 'dictionaries.cjs');\n\n// Test if the dictionaries file exists\nif (existsSync(dictionariesPath)) {\n ESMxCJSRequire(dictionariesPath);\n dictionaries = ESMxCJSRequire(dictionariesPath);\n}\n\nexport default (dictionaries ?? {}) as Record<Dictionary['key'], Dictionary>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,gBAA2B;AAC3B,kBAAqB;AACrB,oBAAiD;AAGjD,IAAI,eAAe;AAEnB,MAAM,EAAE,QAAQ,QAAI,gCAAiB;AACrC,MAAM,uBAAmB,kBAAK,QAAQ,SAAS,kBAAkB;AAGjE,QAAI,sBAAW,gBAAgB,GAAG;AAChC,oCAAe,gBAAgB;AAC/B,qBAAe,8BAAe,gBAAgB;AAChD;AAEA,IAAO,gBAAS,gBAAgB,CAAC;","names":[]}
@@ -8,8 +8,8 @@ if (existsSync(dictionariesPath)) {
8
8
  ESMxCJSRequire(dictionariesPath);
9
9
  dictionaries = ESMxCJSRequire(dictionariesPath);
10
10
  }
11
- var src_default = dictionaries ?? {};
11
+ var index_default = dictionaries ?? {};
12
12
  export {
13
- src_default as default
13
+ index_default as default
14
14
  };
15
15
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/dictionaries-entry is a package that only returns the dictionary entry path.\n * Using an external package allow to alias it in the bundle configuration (such as webpack).\n * The alias allow hot reload the app (such as nextjs) on any dictionary change.\n */\n\nimport { existsSync } from 'fs';\nimport { join } from 'path';\nimport { getConfiguration, ESMxCJSRequire } from '@intlayer/config';\nimport type { Dictionary } from '@intlayer/core';\n\nlet dictionaries = undefined;\n\nconst { content } = getConfiguration();\nconst dictionariesPath = join(content.mainDir, 'dictionaries.cjs');\n\n// Test if the dictionaries file exists\nif (existsSync(dictionariesPath)) {\n ESMxCJSRequire(dictionariesPath);\n dictionaries = ESMxCJSRequire(dictionariesPath);\n}\n\nexport default (dictionaries ?? {}) as Record<Dictionary['key'], Dictionary>;\n"],"mappings":"AAMA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,kBAAkB,sBAAsB;AAGjD,IAAI,eAAe;AAEnB,MAAM,EAAE,QAAQ,IAAI,iBAAiB;AACrC,MAAM,mBAAmB,KAAK,QAAQ,SAAS,kBAAkB;AAGjE,IAAI,WAAW,gBAAgB,GAAG;AAChC,iBAAe,gBAAgB;AAC/B,iBAAe,eAAe,gBAAgB;AAChD;AAEA,IAAO,cAAS,gBAAgB,CAAC;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/dictionaries-entry is a package that only returns the dictionary entry path.\n * Using an external package allow to alias it in the bundle configuration (such as webpack).\n * The alias allow hot reload the app (such as nextjs) on any dictionary change.\n */\n\nimport { existsSync } from 'fs';\nimport { join } from 'path';\nimport { getConfiguration, ESMxCJSRequire } from '@intlayer/config';\nimport type { Dictionary } from '@intlayer/core';\n\nlet dictionaries = undefined;\n\nconst { content } = getConfiguration();\nconst dictionariesPath = join(content.mainDir, 'dictionaries.cjs');\n\n// Test if the dictionaries file exists\nif (existsSync(dictionariesPath)) {\n ESMxCJSRequire(dictionariesPath);\n dictionaries = ESMxCJSRequire(dictionariesPath);\n}\n\nexport default (dictionaries ?? {}) as Record<Dictionary['key'], Dictionary>;\n"],"mappings":"AAMA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,kBAAkB,sBAAsB;AAGjD,IAAI,eAAe;AAEnB,MAAM,EAAE,QAAQ,IAAI,iBAAiB;AACrC,MAAM,mBAAmB,KAAK,QAAQ,SAAS,kBAAkB;AAGjE,IAAI,WAAW,gBAAgB,GAAG;AAChC,iBAAe,gBAAgB;AAC/B,iBAAe,eAAe,gBAAgB;AAChD;AAEA,IAAO,gBAAS,gBAAgB,CAAC;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/dictionaries-entry",
3
- "version": "3.5.9",
3
+ "version": "3.5.11",
4
4
  "private": false,
5
5
  "description": "IntLayer - Dictionaries Entry. This package only returns the dictionary entry path. For bundle configuration, this packages should be replaced by using an alias.",
6
6
  "keywords": [
@@ -52,26 +52,27 @@
52
52
  "./package.json"
53
53
  ],
54
54
  "dependencies": {
55
- "@intlayer/config": "^3.5.9"
55
+ "@intlayer/config": "^3.5.11"
56
56
  },
57
57
  "devDependencies": {
58
- "@types/node": "^22.10.1",
59
- "concurrently": "^9.1.0",
60
- "eslint": "^9.16.0",
61
- "prettier": "^3.4.1",
58
+ "@types/node": "^22.10.6",
59
+ "@typescript-eslint/parser": "^8.20.0",
60
+ "concurrently": "^9.1.2",
61
+ "eslint": "^9.18.0",
62
+ "prettier": "^3.4.2",
62
63
  "rimraf": "^6.0.1",
63
64
  "tsc-alias": "^1.8.10",
64
65
  "tsup": "^8.3.5",
65
- "typescript": "^5.7.2",
66
- "@utils/ts-config-types": "1.0.4",
67
- "@utils/tsup-config": "1.0.4",
68
- "@utils/ts-config": "1.0.4",
66
+ "typescript": "^5.7.3",
67
+ "@intlayer/core": "3.5.11",
69
68
  "@utils/eslint-config": "1.0.4",
70
- "@intlayer/core": "3.5.9"
69
+ "@utils/ts-config": "1.0.4",
70
+ "@utils/ts-config-types": "1.0.4",
71
+ "@utils/tsup-config": "1.0.4"
71
72
  },
72
73
  "peerDependencies": {
73
- "@intlayer/config": "3.5.9",
74
- "@intlayer/core": "^3.5.9"
74
+ "@intlayer/core": "^3.5.11",
75
+ "@intlayer/config": "3.5.11"
75
76
  },
76
77
  "engines": {
77
78
  "node": ">=14.18"