i18n-keyless-core 1.17.7 → 2.0.0

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.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { AVAILABLE_LANGS } from "./types";
2
- export type { Lang, PrimaryLang, Translations, TranslationsUsage, HandleTranslateFunction, GetAllTranslationsFunction, SendTranslationsUsageFunction, GetAllTranslationsForAllLanguagesFunction, LanguagesConfig, LastRefresh, UniqueId, I18nKeylessRequestBody, I18nKeylessResponse, I18nKeylessTranslationsUsageRequestBody, I18nKeylessAllTranslationsResponse, FetchTranslationParams, TranslationOptions } from "./types";
3
- export { getTranslationCore, getAllTranslationsFromLanguage, sendTranslationsUsageToI18nKeyless, queue } from "./service";
4
- export { api } from "./api";
1
+ export { AVAILABLE_LANGS } from "./types.ts";
2
+ export type { Lang, PrimaryLang, Translations, TranslationsUsage, HandleTranslateFunction, GetAllTranslationsFunction, SendTranslationsUsageFunction, GetAllTranslationsForAllLanguagesFunction, LanguagesConfig, LastRefresh, UniqueId, I18nKeylessRequestBody, I18nKeylessResponse, I18nKeylessTranslationsUsageRequestBody, I18nKeylessAllTranslationsResponse, FetchTranslationParams, TranslationOptions } from "./types.ts";
3
+ export { getTranslationCore, getAllTranslationsFromLanguage, sendTranslationsUsageToI18nKeyless, queue } from "./service.ts";
4
+ export { api } from "./api.ts";
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- export { AVAILABLE_LANGS } from "./types";
2
- export { getTranslationCore, getAllTranslationsFromLanguage, sendTranslationsUsageToI18nKeyless, queue } from "./service";
3
- export { api } from "./api";
1
+ export { AVAILABLE_LANGS } from "./types.js";
2
+ export { getTranslationCore, getAllTranslationsFromLanguage, sendTranslationsUsageToI18nKeyless, queue } from "./service.js";
3
+ export { api } from "./api.js";
package/dist/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "i18n-keyless-core",
3
3
  "private": false,
4
- "version": "1.17.7",
4
+ "version": "2.0.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",
package/dist/service.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import type { Lang, TranslationOptions, I18nKeylessResponse, FetchTranslationParams, TranslationsUsage } from "./types";
2
- import MyPQueue from "./my-pqueue";
1
+ import type { Lang, TranslationOptions, I18nKeylessResponse, FetchTranslationParams, TranslationsUsage } from "./types.ts";
2
+ import MyPQueue from "./my-pqueue.ts";
3
3
  export declare const queue: MyPQueue;
4
4
  /**
5
5
  * Gets a translation for the specified key from the store
package/dist/service.js CHANGED
@@ -1,6 +1,6 @@
1
- import MyPQueue from "./my-pqueue";
2
- import packageJson from "./package.json";
3
- import { api } from "./api";
1
+ import MyPQueue from "./my-pqueue.js";
2
+ import packageJson from "./package.json" with { type: "json" };
3
+ import { api } from "./api.js";
4
4
  export const queue = new MyPQueue({ concurrency: 30 });
5
5
  /**
6
6
  * Gets a translation for the specified key from the store
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "i18n-keyless-core",
3
3
  "private": false,
4
- "version": "1.17.7",
4
+ "version": "2.0.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.js",