intor 2.4.11 → 2.4.12
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.
|
@@ -4,3 +4,6 @@ import 'logry';
|
|
|
4
4
|
import 'p-limit';
|
|
5
5
|
export { INTOR_MESSAGES_KIND, INTOR_MESSAGES_KIND_KEY, INTOR_PREFIX, getMessagesKind } from '../../src/core/messages/internal-metadata.js';
|
|
6
6
|
import 'intor-translator';
|
|
7
|
+
export { loadMessages } from '../../src/server/messages/load-messages.js';
|
|
8
|
+
import 'node:path';
|
|
9
|
+
import 'node:fs/promises';
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* NOTE: It is not part of the public stable contract and may change without notice.
|
|
3
3
|
*/
|
|
4
|
-
export { resolveLoaderOptions, INTOR_PREFIX, INTOR_MESSAGES_KIND_KEY, INTOR_MESSAGES_KIND, getMessagesKind, type IntorMessagesKind, } from "../../src/core";
|
|
4
|
+
export { resolveLoaderOptions, type DeepMergeOverrideEvent, INTOR_PREFIX, INTOR_MESSAGES_KIND_KEY, INTOR_MESSAGES_KIND, getMessagesKind, type IntorMessagesKind, } from "../../src/core";
|
|
5
|
+
export { loadMessages } from "../../src/server";
|
|
5
6
|
export type { GenConfigKeys, GenConfig, TranslatorInstance, } from "../../src/core";
|
|
6
7
|
export type { TranslatorInstanceReact } from "../../src/client/react/translator/translator-instance";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { intor, type IntorValue } from "./intor";
|
|
2
|
-
export { clearMessagesPool } from "./messages";
|
|
2
|
+
export { loadMessages, clearMessagesPool } from "./messages";
|
|
3
3
|
export { getTranslator, type GetTranslatorParams } from "./helpers";
|
|
4
4
|
export type { MessagesLoader } from "./translator";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "intor",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.12",
|
|
4
4
|
"description": "The i18n library for modern JavaScript",
|
|
5
5
|
"author": "Yiming Liao",
|
|
6
6
|
"homepage": "https://intor.dev",
|
|
@@ -32,9 +32,7 @@
|
|
|
32
32
|
"exports": {
|
|
33
33
|
".": {
|
|
34
34
|
"import": "./dist/core/export/index.js",
|
|
35
|
-
"types": "./dist/types/export/index.d.ts"
|
|
36
|
-
"require": "./dist/core/export/index.js",
|
|
37
|
-
"default": "./dist/core/export/index.js"
|
|
35
|
+
"types": "./dist/types/export/index.d.ts"
|
|
38
36
|
},
|
|
39
37
|
"./internal": {
|
|
40
38
|
"import": "./dist/core/export/internal/index.js",
|
|
@@ -42,9 +40,7 @@
|
|
|
42
40
|
},
|
|
43
41
|
"./server": {
|
|
44
42
|
"import": "./dist/core/export/server/index.js",
|
|
45
|
-
"types": "./dist/types/export/server/index.d.ts"
|
|
46
|
-
"require": "./dist/core/export/server/index.js",
|
|
47
|
-
"default": "./dist/core/export/server/index.js"
|
|
43
|
+
"types": "./dist/types/export/server/index.d.ts"
|
|
48
44
|
},
|
|
49
45
|
"./edge": {
|
|
50
46
|
"import": "./dist/core/export/edge/index.js",
|
|
@@ -76,15 +72,11 @@
|
|
|
76
72
|
},
|
|
77
73
|
"./express": {
|
|
78
74
|
"import": "./dist/express/export/express/index.js",
|
|
79
|
-
"types": "./dist/types/export/express/index.d.ts"
|
|
80
|
-
"require": "./dist/express/export/express/index.js",
|
|
81
|
-
"default": "./dist/express/export/express/index.js"
|
|
75
|
+
"types": "./dist/types/export/express/index.d.ts"
|
|
82
76
|
},
|
|
83
77
|
"./fastify": {
|
|
84
78
|
"import": "./dist/fastify/export/fastify/index.js",
|
|
85
|
-
"types": "./dist/types/export/fastify/index.d.ts"
|
|
86
|
-
"require": "./dist/fastify/export/fastify/index.js",
|
|
87
|
-
"default": "./dist/fastify/export/fastify/index.js"
|
|
79
|
+
"types": "./dist/types/export/fastify/index.d.ts"
|
|
88
80
|
},
|
|
89
81
|
"./hono": {
|
|
90
82
|
"import": "./dist/hono/export/hono/index.js",
|