intlayer 5.2.6 → 5.2.8
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/index.cjs +19 -5
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs +4 -5
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/index.d.ts +11 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +8 -8
package/dist/cjs/index.cjs
CHANGED
|
@@ -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: () =>
|
|
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
|
-
|
|
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
|
package/dist/cjs/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["
|
|
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"]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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,
|
package/dist/esm/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/index.ts"],"sourcesContent":["
|
|
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"]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export * from '@intlayer/config/client';
|
|
2
|
+
import { type CustomIntlayerConfig as IntlayerConfig } from '@intlayer/config/client';
|
|
1
3
|
import type { Dictionary as DictionaryCore } from '@intlayer/core';
|
|
2
4
|
type Dictionary<T = undefined> = DictionaryCore<T, true>;
|
|
3
5
|
/**
|
|
@@ -5,7 +7,15 @@ type Dictionary<T = undefined> = DictionaryCore<T, true>;
|
|
|
5
7
|
*/
|
|
6
8
|
type DeclarationContent<T = undefined> = Dictionary<T>;
|
|
7
9
|
export type { Dictionary, DeclarationContent };
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Rexport using named import because πof Tsup bug in CJS
|
|
12
|
+
*/
|
|
13
|
+
import configuration from '@intlayer/config/built';
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Use `import { configuration } from 'intlayer'` instead.
|
|
16
|
+
*/
|
|
17
|
+
declare const getConfiguration: () => import("@intlayer/config").IntlayerConfig;
|
|
18
|
+
export { configuration, getConfiguration, IntlayerConfig };
|
|
9
19
|
export { type LanguageContent, type ContentNode, getLocaleName, enu, cond, md, t, nest, getEnumeration,
|
|
10
20
|
/**
|
|
11
21
|
* @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,
|
|
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,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.
|
|
3
|
+
"version": "5.2.8",
|
|
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/
|
|
62
|
-
"@intlayer/
|
|
63
|
-
"@intlayer/core": "5.2.
|
|
61
|
+
"@intlayer/cli": "5.2.8",
|
|
62
|
+
"@intlayer/config": "5.2.8",
|
|
63
|
+
"@intlayer/core": "5.2.8"
|
|
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",
|
|
78
|
+
"@utils/ts-config": "1.0.4",
|
|
79
79
|
"@utils/tsup-config": "1.0.4",
|
|
80
80
|
"@utils/ts-config-types": "1.0.4"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
|
-
"@intlayer/cli": "5.2.
|
|
84
|
-
"@intlayer/config": "5.2.
|
|
85
|
-
"@intlayer/core": "5.2.
|
|
83
|
+
"@intlayer/cli": "5.2.8",
|
|
84
|
+
"@intlayer/config": "5.2.8",
|
|
85
|
+
"@intlayer/core": "5.2.8"
|
|
86
86
|
},
|
|
87
87
|
"engines": {
|
|
88
88
|
"node": ">=14.18"
|