intlayer 5.3.1 → 5.3.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.
@@ -32,6 +32,7 @@ __export(index_exports, {
32
32
  cond: () => import_core.cond,
33
33
  configuration: () => import_built.default,
34
34
  enu: () => import_core.enu,
35
+ file: () => import_file.file,
35
36
  getConfiguration: () => getConfiguration,
36
37
  getDictionary: () => import_core.getDictionary,
37
38
  getEnumeration: () => import_core.getEnumeration,
@@ -47,6 +48,7 @@ __export(index_exports, {
47
48
  getPathWithoutLocale: () => import_core.getPathWithoutLocale,
48
49
  getTranslation: () => import_core.getTranslation,
49
50
  getTranslationContent: () => import_core.getTranslation,
51
+ insert: () => import_core.insert,
50
52
  localeList: () => import_core.localeList,
51
53
  md: () => import_core.md,
52
54
  nest: () => import_core.nest,
@@ -56,12 +58,14 @@ module.exports = __toCommonJS(index_exports);
56
58
  __reExport(index_exports, require("@intlayer/config/client"), module.exports);
57
59
  var import_built = __toESM(require("@intlayer/config/built"));
58
60
  var import_core = require("@intlayer/core");
61
+ var import_file = require("@intlayer/core/file");
59
62
  const getConfiguration = () => import_built.default;
60
63
  // Annotate the CommonJS export names for ESM import in node:
61
64
  0 && (module.exports = {
62
65
  cond,
63
66
  configuration,
64
67
  enu,
68
+ file,
65
69
  getConfiguration,
66
70
  getDictionary,
67
71
  getEnumeration,
@@ -77,6 +81,7 @@ const getConfiguration = () => import_built.default;
77
81
  getPathWithoutLocale,
78
82
  getTranslation,
79
83
  getTranslationContent,
84
+ insert,
80
85
  localeList,
81
86
  md,
82
87
  nest,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@intlayer/config/client';\nimport { type CustomIntlayerConfig as IntlayerConfig } from '@intlayer/config/client';\nimport type { Dictionary as DictionaryCore } from '@intlayer/core';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\nexport type { Dictionary, DeclarationContent };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\nexport { configuration, getConfiguration, IntlayerConfig };\n\nexport {\n type LanguageContent,\n type ContentNode,\n getLocaleName,\n enu,\n cond,\n md,\n t,\n nest,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getDictionary,\n getIntlayer,\n getIntlayerAsync,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n getNesting,\n getLocaleLang,\n getHTMLTextDir,\n getPathWithoutLocale,\n getMultilingualUrls,\n getLocalizedUrl,\n localeList,\n} from '@intlayer/core';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,oCAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAc,oCAAd;AAeA,mBAA0B;AAO1B,kBA6BO;AAhCP,MAAM,mBAAmB,MAAM,aAAAA;","names":["configuration"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@intlayer/config/client';\nimport { type CustomIntlayerConfig as IntlayerConfig } from '@intlayer/config/client';\nimport type { Dictionary as DictionaryCore } from '@intlayer/core';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\nexport type { Dictionary, DeclarationContent };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\nexport { configuration, getConfiguration, IntlayerConfig };\n\nexport {\n type LanguageContent,\n type ContentNode,\n getLocaleName,\n enu,\n cond,\n md,\n t,\n nest,\n insert,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getDictionary,\n getIntlayer,\n getIntlayerAsync,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n getNesting,\n getLocaleLang,\n getHTMLTextDir,\n getPathWithoutLocale,\n getMultilingualUrls,\n getLocalizedUrl,\n localeList,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA,oCAAAA;AAAA,EAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,0BAAc,oCAAd;AAeA,mBAA0B;AAO1B,kBA8BO;AACP,kBAAqB;AAlCrB,MAAM,mBAAmB,MAAM,aAAAA;","names":["configuration"]}
@@ -8,6 +8,7 @@ import {
8
8
  md,
9
9
  t,
10
10
  nest,
11
+ insert,
11
12
  getEnumeration,
12
13
  getEnumeration as getEnumeration2,
13
14
  getDictionary,
@@ -23,10 +24,12 @@ import {
23
24
  getLocalizedUrl,
24
25
  localeList
25
26
  } from "@intlayer/core";
27
+ import { file } from "@intlayer/core/file";
26
28
  export {
27
29
  cond,
28
30
  configuration,
29
31
  enu,
32
+ file,
30
33
  getConfiguration,
31
34
  getDictionary,
32
35
  getEnumeration,
@@ -42,6 +45,7 @@ export {
42
45
  getPathWithoutLocale,
43
46
  getTranslation,
44
47
  getTranslation2 as getTranslationContent,
48
+ insert,
45
49
  localeList,
46
50
  md,
47
51
  nest,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@intlayer/config/client';\nimport { type CustomIntlayerConfig as IntlayerConfig } from '@intlayer/config/client';\nimport type { Dictionary as DictionaryCore } from '@intlayer/core';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\nexport type { Dictionary, DeclarationContent };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\nexport { configuration, getConfiguration, IntlayerConfig };\n\nexport {\n type LanguageContent,\n type ContentNode,\n getLocaleName,\n enu,\n cond,\n md,\n t,\n nest,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getDictionary,\n getIntlayer,\n getIntlayerAsync,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n getNesting,\n getLocaleLang,\n getHTMLTextDir,\n getPathWithoutLocale,\n getMultilingualUrls,\n getLocalizedUrl,\n localeList,\n} from '@intlayer/core';\n"],"mappings":"AAAA,cAAc;AAed,OAAO,mBAAmB;AAI1B,MAAM,mBAAmB,MAAM;AAG/B;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAIkB,kBAAlBA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAIkB,kBAAlBC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;","names":["getEnumeration","getTranslation"]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * from '@intlayer/config/client';\nimport { type CustomIntlayerConfig as IntlayerConfig } from '@intlayer/config/client';\nimport type { Dictionary as DictionaryCore } from '@intlayer/core';\n\ntype Dictionary<T = undefined> = DictionaryCore<T, true>;\n/**\n * @deprecated Use `Dictionary<T>` instead.\n */\ntype DeclarationContent<T = undefined> = Dictionary<T>;\n\nexport type { Dictionary, DeclarationContent };\n\n/**\n * Rexport using named import because πof Tsup bug in CJS\n */\nimport configuration from '@intlayer/config/built';\n/**\n * @deprecated Use `import { configuration } from 'intlayer'` instead.\n */\nconst getConfiguration = () => configuration;\nexport { configuration, getConfiguration, IntlayerConfig };\n\nexport {\n type LanguageContent,\n type ContentNode,\n getLocaleName,\n enu,\n cond,\n md,\n t,\n nest,\n insert,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getDictionary,\n getIntlayer,\n getIntlayerAsync,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n getNesting,\n getLocaleLang,\n getHTMLTextDir,\n getPathWithoutLocale,\n getMultilingualUrls,\n getLocalizedUrl,\n localeList,\n} from '@intlayer/core';\nexport { file } from '@intlayer/core/file'; // Include specific export for browser because of node js function that can't be used in browser\n"],"mappings":"AAAA,cAAc;AAed,OAAO,mBAAmB;AAI1B,MAAM,mBAAmB,MAAM;AAG/B;AAAA,EAGE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAIkB,kBAAlBA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAIkB,kBAAlBC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AACP,SAAS,YAAY;","names":["getEnumeration","getTranslation"]}
@@ -16,7 +16,7 @@ import configuration from '@intlayer/config/built';
16
16
  */
17
17
  declare const getConfiguration: () => import("@intlayer/config").IntlayerConfig;
18
18
  export { configuration, getConfiguration, IntlayerConfig };
19
- export { type LanguageContent, type ContentNode, getLocaleName, enu, cond, md, t, nest, getEnumeration,
19
+ export { type LanguageContent, type ContentNode, getLocaleName, enu, cond, md, t, nest, insert, getEnumeration,
20
20
  /**
21
21
  * @deprecated Use `getEnumeration` instead.
22
22
  */
@@ -25,4 +25,5 @@ getEnumeration as getEnumerationContent, getDictionary, getIntlayer, getIntlayer
25
25
  * @deprecated Use `getTranslation` instead.
26
26
  */
27
27
  getTranslation as getTranslationContent, getNesting, getLocaleLang, getHTMLTextDir, getPathWithoutLocale, getMultilingualUrls, getLocalizedUrl, localeList, } from '@intlayer/core';
28
+ export { file } from '@intlayer/core/file';
28
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,KAAK,oBAAoB,IAAI,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACtF,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEnE,KAAK,UAAU,CAAC,CAAC,GAAG,SAAS,IAAI,cAAc,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC;AACzD;;GAEG;AACH,KAAK,kBAAkB,CAAC,CAAC,GAAG,SAAS,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;AAEvD,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,CAAC;AAE/C;;GAEG;AACH,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD;;GAEG;AACH,QAAA,MAAM,gBAAgB,iDAAsB,CAAC;AAC7C,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC;AAE3D,OAAO,EACL,KAAK,eAAe,EACpB,KAAK,WAAW,EAChB,aAAa,EACb,GAAG,EACH,IAAI,EACJ,EAAE,EACF,CAAC,EACD,IAAI,EACJ,cAAc;AACd;;GAEG;AACH,cAAc,IAAI,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AAI,EAAE,MAAM,qBAAqB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer",
3
- "version": "5.3.1",
3
+ "version": "5.3.3",
4
4
  "private": false,
5
5
  "description": "Manage internationalization i18n in a simple way, through TypeScript, declaration file, declare your multilingual content every where in your code.",
6
6
  "keywords": [
@@ -59,9 +59,9 @@
59
59
  "./package.json"
60
60
  ],
61
61
  "dependencies": {
62
- "@intlayer/cli": "5.3.1",
63
- "@intlayer/config": "5.3.1",
64
- "@intlayer/core": "5.3.1"
62
+ "@intlayer/cli": "5.3.3",
63
+ "@intlayer/config": "5.3.3",
64
+ "@intlayer/core": "5.3.3"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@changesets/changelog-github": "0.5.0",
@@ -76,14 +76,14 @@
76
76
  "tsup": "^8.3.5",
77
77
  "typescript": "^5.7.3",
78
78
  "@utils/eslint-config": "1.0.4",
79
- "@utils/ts-config": "1.0.4",
80
79
  "@utils/ts-config-types": "1.0.4",
80
+ "@utils/ts-config": "1.0.4",
81
81
  "@utils/tsup-config": "1.0.4"
82
82
  },
83
83
  "peerDependencies": {
84
- "@intlayer/config": "5.3.1",
85
- "@intlayer/core": "5.3.1",
86
- "@intlayer/cli": "5.3.1"
84
+ "@intlayer/cli": "5.3.3",
85
+ "@intlayer/config": "5.3.3",
86
+ "@intlayer/core": "5.3.3"
87
87
  },
88
88
  "engines": {
89
89
  "node": ">=14.18"