@intlayer/dictionaries-entry 5.1.7 → 5.2.0

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,"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';\n// @ts-ignore intlayer declared for module augmentation\nimport type { IntlayerDictionaryTypesConnector } from 'intlayer';\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<\n IntlayerDictionaryTypesConnector['key'],\n IntlayerDictionaryTypesConnector\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,gBAA2B;AAC3B,kBAAqB;AACrB,oBAAiD;AAIjD,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":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/dictionaries-entry is a package that only returns the dictionary entry file.\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';\n// @ts-ignore intlayer declared for module augmentation\nimport type { IntlayerDictionaryTypesConnector } from 'intlayer';\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<\n IntlayerDictionaryTypesConnector['key'],\n IntlayerDictionaryTypesConnector\n>;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,gBAA2B;AAC3B,kBAAqB;AACrB,oBAAiD;AAIjD,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":[]}
@@ -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';\n// @ts-ignore intlayer declared for module augmentation\nimport type { IntlayerDictionaryTypesConnector } from 'intlayer';\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<\n IntlayerDictionaryTypesConnector['key'],\n IntlayerDictionaryTypesConnector\n>;\n"],"mappings":"AAMA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,kBAAkB,sBAAsB;AAIjD,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":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["/**\n * @intlayer/dictionaries-entry is a package that only returns the dictionary entry file.\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';\n// @ts-ignore intlayer declared for module augmentation\nimport type { IntlayerDictionaryTypesConnector } from 'intlayer';\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<\n IntlayerDictionaryTypesConnector['key'],\n IntlayerDictionaryTypesConnector\n>;\n"],"mappings":"AAMA,SAAS,kBAAkB;AAC3B,SAAS,YAAY;AACrB,SAAS,kBAAkB,sBAAsB;AAIjD,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":[]}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @intlayer/dictionaries-entry is a package that only returns the dictionary entry path.
2
+ * @intlayer/dictionaries-entry is a package that only returns the dictionary entry file.
3
3
  * Using an external package allow to alias it in the bundle configuration (such as webpack).
4
4
  * The alias allow hot reload the app (such as nextjs) on any dictionary change.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/dictionaries-entry",
3
- "version": "5.1.7",
3
+ "version": "5.2.0",
4
4
  "private": false,
5
5
  "description": "Provides the entry path for Intlayer dictionaries, solving filesystem retrieval issues for bundlers like Webpack and Rollup.",
6
6
  "keywords": [
@@ -52,7 +52,7 @@
52
52
  "./package.json"
53
53
  ],
54
54
  "dependencies": {
55
- "@intlayer/config": "5.1.7"
55
+ "@intlayer/config": "5.2.0"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@types/node": "^22.10.6",
@@ -70,8 +70,8 @@
70
70
  "@utils/tsup-config": "1.0.4"
71
71
  },
72
72
  "peerDependencies": {
73
- "@intlayer/config": "5.1.7",
74
- "intlayer": "5.1.7"
73
+ "@intlayer/config": "5.2.0",
74
+ "intlayer": "5.2.0"
75
75
  },
76
76
  "engines": {
77
77
  "node": ">=14.18"