intlayer 6.1.2 → 6.1.4
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 +4 -4
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/index.mjs +2 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +17 -8
package/dist/cjs/index.cjs
CHANGED
|
@@ -17,7 +17,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
17
17
|
}
|
|
18
18
|
return to;
|
|
19
19
|
};
|
|
20
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
21
20
|
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
21
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
22
|
// file that has been converted to a CommonJS file using a Babel-
|
|
@@ -30,6 +29,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
29
|
var index_exports = {};
|
|
31
30
|
__export(index_exports, {
|
|
32
31
|
Intl: () => import_core.Intl,
|
|
32
|
+
Locales: () => import_client2.Locales,
|
|
33
33
|
compact: () => import_core.compact,
|
|
34
34
|
cond: () => import_core.cond,
|
|
35
35
|
configuration: () => import_built.default,
|
|
@@ -69,7 +69,7 @@ __export(index_exports, {
|
|
|
69
69
|
units: () => import_core.units
|
|
70
70
|
});
|
|
71
71
|
module.exports = __toCommonJS(index_exports);
|
|
72
|
-
|
|
72
|
+
var import_client2 = require("@intlayer/config/client");
|
|
73
73
|
var import_built = __toESM(require("@intlayer/config/built"));
|
|
74
74
|
var import_core = require("@intlayer/core");
|
|
75
75
|
var import_file = require("@intlayer/core/file");
|
|
@@ -77,6 +77,7 @@ const getConfiguration = () => import_built.default;
|
|
|
77
77
|
// Annotate the CommonJS export names for ESM import in node:
|
|
78
78
|
0 && (module.exports = {
|
|
79
79
|
Intl,
|
|
80
|
+
Locales,
|
|
80
81
|
compact,
|
|
81
82
|
cond,
|
|
82
83
|
configuration,
|
|
@@ -113,7 +114,6 @@ const getConfiguration = () => import_built.default;
|
|
|
113
114
|
percentage,
|
|
114
115
|
relativeTime,
|
|
115
116
|
t,
|
|
116
|
-
units
|
|
117
|
-
...require("@intlayer/config/client")
|
|
117
|
+
units
|
|
118
118
|
});
|
|
119
119
|
//# 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":["import { 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 { Locales, type LocalesValues } from '@intlayer/config/client';\nexport type { DeclarationContent, Dictionary };\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;\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport { configuration, getConfiguration, IntlayerConfig };\n\nexport {\n compact,\n cond,\n currency,\n date,\n enu,\n gender,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getIntlayerAsync,\n getLocaleFromPath,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n insert,\n Intl,\n localeFlatMap,\n localeList,\n localeMap,\n localeRecord,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n t,\n units,\n type ContentNode,\n type LanguageContent,\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;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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,IAAAC,iBAA4C;AAM5C,mBAA0B;AAU1B,kBA4CO;AACP,kBAAqB;AAnDrB,MAAM,mBAAmB,MAAM,aAAAD;","names":["configuration","import_client"]}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { Locales } from "@intlayer/config/client";
|
|
2
2
|
import configuration from "@intlayer/config/built";
|
|
3
3
|
const getConfiguration = () => configuration;
|
|
4
4
|
import {
|
|
@@ -41,6 +41,7 @@ import {
|
|
|
41
41
|
import { file } from "@intlayer/core/file";
|
|
42
42
|
export {
|
|
43
43
|
Intl,
|
|
44
|
+
Locales,
|
|
44
45
|
compact,
|
|
45
46
|
cond,
|
|
46
47
|
configuration,
|
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":["import { 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 { Locales, type LocalesValues } from '@intlayer/config/client';\nexport type { DeclarationContent, Dictionary };\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;\n\n// Reexport here for CJS compatibility\n// Fix ReferenceError: Cannot access 'xxx' before initialization\nexport { configuration, getConfiguration, IntlayerConfig };\n\nexport {\n compact,\n cond,\n currency,\n date,\n enu,\n gender,\n getDictionary,\n getEnumeration,\n /**\n * @deprecated Use `getEnumeration` instead.\n */\n getEnumeration as getEnumerationContent,\n getHTMLTextDir,\n getIntlayer,\n getIntlayerAsync,\n getLocaleFromPath,\n getLocaleLang,\n getLocaleName,\n getLocalizedUrl,\n getMarkdownMetadata,\n getMultilingualUrls,\n getNesting,\n getPathWithoutLocale,\n getTranslation,\n /**\n * @deprecated Use `getTranslation` instead.\n */\n getTranslation as getTranslationContent,\n insert,\n Intl,\n localeFlatMap,\n localeList,\n localeMap,\n localeRecord,\n md,\n nest,\n number,\n percentage,\n relativeTime,\n t,\n units,\n type ContentNode,\n type LanguageContent,\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":"AASA,SAAS,eAAmC;AAM5C,OAAO,mBAAmB;AAI1B,MAAM,mBAAmB,MAAM;AAM/B;AAAA,EACE;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,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;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,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAGK;AACP,SAAS,YAAY;","names":["getEnumeration","getTranslation"]}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export * from '@intlayer/config/client';
|
|
2
1
|
import { type CustomIntlayerConfig as IntlayerConfig } from '@intlayer/config/client';
|
|
3
2
|
import type { Dictionary as DictionaryCore } from '@intlayer/core';
|
|
4
3
|
type Dictionary<T = undefined> = DictionaryCore<T, true>;
|
|
@@ -6,6 +5,7 @@ type Dictionary<T = undefined> = DictionaryCore<T, true>;
|
|
|
6
5
|
* @deprecated Use `Dictionary<T>` instead.
|
|
7
6
|
*/
|
|
8
7
|
type DeclarationContent<T = undefined> = Dictionary<T>;
|
|
8
|
+
export { Locales, type LocalesValues } from '@intlayer/config/client';
|
|
9
9
|
export type { DeclarationContent, Dictionary };
|
|
10
10
|
/**
|
|
11
11
|
* Rexport using named import because πof Tsup bug in CJS
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,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,OAAO,EAAE,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACtE,YAAY,EAAE,kBAAkB,EAAE,UAAU,EAAE,CAAC;AAE/C;;GAEG;AACH,OAAO,aAAa,MAAM,wBAAwB,CAAC;AACnD;;GAEG;AACH,QAAA,MAAM,gBAAgB,iDAAsB,CAAC;AAI7C,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,cAAc,EAAE,CAAC;AAE3D,OAAO,EACL,OAAO,EACP,IAAI,EACJ,QAAQ,EACR,IAAI,EACJ,GAAG,EACH,MAAM,EACN,aAAa,EACb,cAAc;AACd;;GAEG;AACH,cAAc,IAAI,qBAAqB,EACvC,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,EACb,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,UAAU,EACV,oBAAoB,EACpB,cAAc;AACd;;GAEG;AACH,cAAc,IAAI,qBAAqB,EACvC,MAAM,EACN,IAAI,EACJ,aAAa,EACb,UAAU,EACV,SAAS,EACT,YAAY,EACZ,EAAE,EACF,IAAI,EACJ,MAAM,EACN,UAAU,EACV,YAAY,EACZ,CAAC,EACD,KAAK,EACL,KAAK,WAAW,EAChB,KAAK,eAAe,GACrB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intlayer",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.4",
|
|
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": [
|
|
@@ -51,6 +51,15 @@
|
|
|
51
51
|
"types": "dist/types/index.d.ts",
|
|
52
52
|
"typesVersions": {
|
|
53
53
|
"*": {
|
|
54
|
+
".": [
|
|
55
|
+
"./dist/types/index.d.ts"
|
|
56
|
+
],
|
|
57
|
+
"cli": [
|
|
58
|
+
"./dist/types/cli/index.d.ts"
|
|
59
|
+
],
|
|
60
|
+
"cli/*": [
|
|
61
|
+
"./dist/types/cli/*"
|
|
62
|
+
],
|
|
54
63
|
"package.json": [
|
|
55
64
|
"./package.json"
|
|
56
65
|
]
|
|
@@ -64,9 +73,9 @@
|
|
|
64
73
|
"./package.json"
|
|
65
74
|
],
|
|
66
75
|
"dependencies": {
|
|
67
|
-
"@intlayer/
|
|
68
|
-
"@intlayer/
|
|
69
|
-
"@intlayer/
|
|
76
|
+
"@intlayer/config": "6.1.4",
|
|
77
|
+
"@intlayer/cli": "6.1.4",
|
|
78
|
+
"@intlayer/core": "6.1.4"
|
|
70
79
|
},
|
|
71
80
|
"devDependencies": {
|
|
72
81
|
"@changesets/changelog-github": "0.5.1",
|
|
@@ -81,15 +90,15 @@
|
|
|
81
90
|
"tsup": "^8.5.0",
|
|
82
91
|
"typescript": "^5.9.2",
|
|
83
92
|
"vitest": "^3.2.4",
|
|
84
|
-
"@utils/ts-config": "1.0.4",
|
|
85
93
|
"@utils/eslint-config": "1.0.4",
|
|
86
94
|
"@utils/ts-config-types": "1.0.4",
|
|
95
|
+
"@utils/ts-config": "1.0.4",
|
|
87
96
|
"@utils/tsup-config": "1.0.4"
|
|
88
97
|
},
|
|
89
98
|
"peerDependencies": {
|
|
90
|
-
"@intlayer/
|
|
91
|
-
"@intlayer/cli": "6.1.
|
|
92
|
-
"@intlayer/
|
|
99
|
+
"@intlayer/core": "6.1.4",
|
|
100
|
+
"@intlayer/cli": "6.1.4",
|
|
101
|
+
"@intlayer/config": "6.1.4"
|
|
93
102
|
},
|
|
94
103
|
"engines": {
|
|
95
104
|
"node": ">=14.18"
|