intlayer 5.2.6 → 5.2.7

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,7 +1,9 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
6
8
  var __export = (target, all) => {
7
9
  for (var name in all)
@@ -15,13 +17,22 @@ var __copyProps = (to, from, except, desc) => {
15
17
  }
16
18
  return to;
17
19
  };
20
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
21
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
22
+ // If the importer is in node compatibility mode or this is not an ESM
23
+ // file that has been converted to a CommonJS file using a Babel-
24
+ // compatible transform (i.e. "__esModule" has not been set), then set
25
+ // "default" to the CommonJS "module.exports" for node compatibility.
26
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
27
+ mod
28
+ ));
18
29
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
30
  var index_exports = {};
20
31
  __export(index_exports, {
21
- Locales: () => import_client.Locales,
22
32
  cond: () => import_core.cond,
33
+ configuration: () => import_built.default,
23
34
  enu: () => import_core.enu,
24
- getConfiguration: () => import_client.getConfiguration,
35
+ getConfiguration: () => getConfiguration,
25
36
  getDictionary: () => import_core.getDictionary,
26
37
  getEnumeration: () => import_core.getEnumeration,
27
38
  getEnumerationContent: () => import_core.getEnumeration,
@@ -42,12 +53,14 @@ __export(index_exports, {
42
53
  t: () => import_core.t
43
54
  });
44
55
  module.exports = __toCommonJS(index_exports);
45
- var import_client = require("@intlayer/config/client");
56
+ __reExport(index_exports, require("@intlayer/config/client"), module.exports);
57
+ var import_built = __toESM(require("@intlayer/config/built"));
46
58
  var import_core = require("@intlayer/core");
59
+ const getConfiguration = () => import_built.default;
47
60
  // Annotate the CommonJS export names for ESM import in node:
48
61
  0 && (module.exports = {
49
- Locales,
50
62
  cond,
63
+ configuration,
51
64
  enu,
52
65
  getConfiguration,
53
66
  getDictionary,
@@ -67,6 +80,7 @@ var import_core = require("@intlayer/core");
67
80
  localeList,
68
81
  md,
69
82
  nest,
70
- t
83
+ t,
84
+ ...require("@intlayer/config/client")
71
85
  });
72
86
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import 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\nexport {\n Locales,\n type CustomIntlayerConfig as IntlayerConfig,\n type LocalesValues,\n getConfiguration,\n} from '@intlayer/config/client';\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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAUA,oBAKO;AACP,kBA6BO;","names":[]}
1
+ {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["export * 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 };\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;AAcA,mBAA0B;AAO1B,kBA6BO;AAhCP,MAAM,mBAAmB,MAAM,aAAAA;","names":["configuration"]}
@@ -1,7 +1,6 @@
1
- import {
2
- Locales,
3
- getConfiguration
4
- } from "@intlayer/config/client";
1
+ export * from "@intlayer/config/client";
2
+ import configuration from "@intlayer/config/built";
3
+ const getConfiguration = () => configuration;
5
4
  import {
6
5
  getLocaleName,
7
6
  enu,
@@ -25,8 +24,8 @@ import {
25
24
  localeList
26
25
  } from "@intlayer/core";
27
26
  export {
28
- Locales,
29
27
  cond,
28
+ configuration,
30
29
  enu,
31
30
  getConfiguration,
32
31
  getDictionary,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/index.ts"],"sourcesContent":["import 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\nexport {\n Locales,\n type CustomIntlayerConfig as IntlayerConfig,\n type LocalesValues,\n getConfiguration,\n} from '@intlayer/config/client';\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":"AAUA;AAAA,EACE;AAAA,EAGA;AAAA,OACK;AACP;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 { 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 };\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;AAcd,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,3 +1,4 @@
1
+ export * from '@intlayer/config/client';
1
2
  import type { Dictionary as DictionaryCore } from '@intlayer/core';
2
3
  type Dictionary<T = undefined> = DictionaryCore<T, true>;
3
4
  /**
@@ -5,7 +6,15 @@ type Dictionary<T = undefined> = DictionaryCore<T, true>;
5
6
  */
6
7
  type DeclarationContent<T = undefined> = Dictionary<T>;
7
8
  export type { Dictionary, DeclarationContent };
8
- export { Locales, type CustomIntlayerConfig as IntlayerConfig, type LocalesValues, getConfiguration, } from '@intlayer/config/client';
9
+ /**
10
+ * Rexport using named import because of Tsup bug in CJS
11
+ */
12
+ import configuration from '@intlayer/config/built';
13
+ /**
14
+ * @deprecated Use `import { configuration } from 'intlayer'` instead.
15
+ */
16
+ declare const getConfiguration: () => import("@intlayer/config").IntlayerConfig;
17
+ export { configuration, getConfiguration };
9
18
  export { type LanguageContent, type ContentNode, getLocaleName, enu, cond, md, t, nest, getEnumeration,
10
19
  /**
11
20
  * @deprecated Use `getEnumeration` instead.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,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,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,IAAI,cAAc,EAC3C,KAAK,aAAa,EAClB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AACjC,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,qBAAqB,EACvC,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,cAAc;AACd;;GAEG;AACH,cAAc,IAAI,qBAAqB,EACvC,UAAU,EACV,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,UAAU,GACX,MAAM,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,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;AAE3C,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,qBAAqB,EACvC,aAAa,EACb,WAAW,EACX,gBAAgB,EAChB,cAAc;AACd;;GAEG;AACH,cAAc,IAAI,qBAAqB,EACvC,UAAU,EACV,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,UAAU,GACX,MAAM,gBAAgB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intlayer",
3
- "version": "5.2.6",
3
+ "version": "5.2.7",
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": [
@@ -58,9 +58,9 @@
58
58
  "./package.json"
59
59
  ],
60
60
  "dependencies": {
61
- "@intlayer/config": "5.2.6",
62
- "@intlayer/cli": "5.2.6",
63
- "@intlayer/core": "5.2.6"
61
+ "@intlayer/cli": "5.2.7",
62
+ "@intlayer/config": "5.2.7",
63
+ "@intlayer/core": "5.2.7"
64
64
  },
65
65
  "devDependencies": {
66
66
  "@changesets/changelog-github": "0.5.0",
@@ -74,15 +74,15 @@
74
74
  "tsc-alias": "^1.8.10",
75
75
  "tsup": "^8.3.5",
76
76
  "typescript": "^5.7.3",
77
- "@utils/ts-config": "1.0.4",
78
77
  "@utils/eslint-config": "1.0.4",
79
- "@utils/tsup-config": "1.0.4",
80
- "@utils/ts-config-types": "1.0.4"
78
+ "@utils/ts-config": "1.0.4",
79
+ "@utils/ts-config-types": "1.0.4",
80
+ "@utils/tsup-config": "1.0.4"
81
81
  },
82
82
  "peerDependencies": {
83
- "@intlayer/cli": "5.2.6",
84
- "@intlayer/config": "5.2.6",
85
- "@intlayer/core": "5.2.6"
83
+ "@intlayer/config": "5.2.7",
84
+ "@intlayer/core": "5.2.7",
85
+ "@intlayer/cli": "5.2.7"
86
86
  },
87
87
  "engines": {
88
88
  "node": ">=14.18"