intor 1.0.4 → 1.0.6

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/index.cjs CHANGED
@@ -264,7 +264,7 @@ var defineIntorConfig = (config) => {
264
264
 
265
265
  // src/modules/intor-adapter/load-adapter-runtime.ts
266
266
  var loadAdapterRuntime = async (adapter) => {
267
- return await import(`@intor/${adapter}`);
267
+ return await import(`@intor/${adapter}/runtime`);
268
268
  };
269
269
 
270
270
  // src/modules/intor-adapter/create-adapter-runtime-loader.ts
package/dist/index.d.cts CHANGED
@@ -286,4 +286,12 @@ declare const resolvePreferredLocale: (acceptLanguageHeader: string | undefined,
286
286
  */
287
287
  declare const mergeStaticAndDynamicMessages: (staticMessages?: LocaleNamespaceMessages, dynamicMessages?: LocaleNamespaceMessages) => LocaleNamespaceMessages;
288
288
 
289
- export { type FetchApiMessagesOptions, IntorError, IntorErrorCode, defineIntorConfig, extractPathname, fetchApiMessages, intor, loadLocalMessages, mergeStaticAndDynamicMessages, normalizeLocale, normalizePathname, resolveNamespaces, resolvePreferredLocale, standardizePathname };
289
+ type IntorAdapterRuntime = (options: {
290
+ config: IntorResolvedConfig;
291
+ request?: unknown;
292
+ }) => Promise<{
293
+ locale: Locale;
294
+ pathname: string;
295
+ }>;
296
+
297
+ export { type FetchApiMessagesOptions, type IntorAdapterRuntime, IntorError, IntorErrorCode, type IntorResolvedConfig, type LoaderOptions, type ResolvedCookieOptions, defineIntorConfig, extractPathname, fetchApiMessages, intor, loadLocalMessages, mergeStaticAndDynamicMessages, normalizeLocale, normalizePathname, resolveNamespaces, resolvePreferredLocale, standardizePathname };
package/dist/index.d.ts CHANGED
@@ -286,4 +286,12 @@ declare const resolvePreferredLocale: (acceptLanguageHeader: string | undefined,
286
286
  */
287
287
  declare const mergeStaticAndDynamicMessages: (staticMessages?: LocaleNamespaceMessages, dynamicMessages?: LocaleNamespaceMessages) => LocaleNamespaceMessages;
288
288
 
289
- export { type FetchApiMessagesOptions, IntorError, IntorErrorCode, defineIntorConfig, extractPathname, fetchApiMessages, intor, loadLocalMessages, mergeStaticAndDynamicMessages, normalizeLocale, normalizePathname, resolveNamespaces, resolvePreferredLocale, standardizePathname };
289
+ type IntorAdapterRuntime = (options: {
290
+ config: IntorResolvedConfig;
291
+ request?: unknown;
292
+ }) => Promise<{
293
+ locale: Locale;
294
+ pathname: string;
295
+ }>;
296
+
297
+ export { type FetchApiMessagesOptions, type IntorAdapterRuntime, IntorError, IntorErrorCode, type IntorResolvedConfig, type LoaderOptions, type ResolvedCookieOptions, defineIntorConfig, extractPathname, fetchApiMessages, intor, loadLocalMessages, mergeStaticAndDynamicMessages, normalizeLocale, normalizePathname, resolveNamespaces, resolvePreferredLocale, standardizePathname };
package/dist/index.js CHANGED
@@ -256,7 +256,7 @@ var defineIntorConfig = (config) => {
256
256
 
257
257
  // src/modules/intor-adapter/load-adapter-runtime.ts
258
258
  var loadAdapterRuntime = async (adapter) => {
259
- return await import(`@intor/${adapter}`);
259
+ return await import(`@intor/${adapter}/runtime`);
260
260
  };
261
261
 
262
262
  // src/modules/intor-adapter/create-adapter-runtime-loader.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "intor",
3
- "version": "1.0.4",
3
+ "version": "1.0.6",
4
4
  "description": "A modular and extensible i18n core designed for TypeScript and JavaScript projects. Intor enables custom translation logic with support for both frontend and backend environments, featuring runtime configuration, caching, adapters, and message loaders.",
5
5
  "author": "Yiming Liao",
6
6
  "license": "MIT",