@kopynator/core 1.0.0 → 1.0.1

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.mts CHANGED
@@ -3,7 +3,8 @@ interface KopyConfig {
3
3
  projectId?: string;
4
4
  baseUrl?: string;
5
5
  defaultLocale?: string;
6
- mode?: 'local' | 'live';
6
+ mode?: 'local' | 'hybrid' | 'live';
7
+ languages?: string[];
7
8
  }
8
9
  interface TranslationResponse {
9
10
  [key: string]: string;
package/dist/index.d.ts CHANGED
@@ -3,7 +3,8 @@ interface KopyConfig {
3
3
  projectId?: string;
4
4
  baseUrl?: string;
5
5
  defaultLocale?: string;
6
- mode?: 'local' | 'live';
6
+ mode?: 'local' | 'hybrid' | 'live';
7
+ languages?: string[];
7
8
  }
8
9
  interface TranslationResponse {
9
10
  [key: string]: string;
package/dist/index.js CHANGED
@@ -33,7 +33,7 @@ module.exports = __toCommonJS(index_exports);
33
33
  var KopyFetcher = class {
34
34
  constructor(config) {
35
35
  this.config = config;
36
- this.baseUrl = config.baseUrl || "http://localhost:7300/api";
36
+ this.baseUrl = config.baseUrl || "https://api.kopynator.com/api";
37
37
  }
38
38
  baseUrl;
39
39
  async fetchTranslations(locale) {
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@
2
2
  var KopyFetcher = class {
3
3
  constructor(config) {
4
4
  this.config = config;
5
- this.baseUrl = config.baseUrl || "http://localhost:7300/api";
5
+ this.baseUrl = config.baseUrl || "https://api.kopynator.com/api";
6
6
  }
7
7
  baseUrl;
8
8
  async fetchTranslations(locale) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kopynator/core",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Core agnostic logic for Kopynator SDKs",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -19,7 +19,10 @@
19
19
  "build": "tsup src/index.ts --format cjs,esm --dts --clean",
20
20
  "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
21
21
  "lint": "eslint src/**/*.ts",
22
- "test": "jest"
22
+ "test": "jest",
23
+ "release:patch": "npm version patch",
24
+ "release:minor": "npm version minor",
25
+ "release:major": "npm version major"
23
26
  },
24
27
  "devDependencies": {
25
28
  "@types/jest": "^29.5.0",