@terai/dev 0.0.0-dev-20240302221955 → 0.0.0-dev-20240607213452

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
@@ -1,4 +1,5 @@
1
1
  import { Config } from '@terai/types';
2
+ export * from '@terai/types';
2
3
  export { createChatGptTranslator, createGoogleCloudTranslator } from '@terai/translator/translators';
3
4
 
4
5
  declare function defineConfig(config: Config): Config;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { Config } from '@terai/types';
2
+ export * from '@terai/types';
2
3
  export { createChatGptTranslator, createGoogleCloudTranslator } from '@terai/translator/translators';
3
4
 
4
5
  declare function defineConfig(config: Config): Config;
package/dist/index.js CHANGED
@@ -1,8 +1,16 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
5
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __esm = (fn, res) => function __init() {
9
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
10
+ };
11
+ var __commonJS = (cb, mod) => function __require() {
12
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
13
+ };
6
14
  var __export = (target, all) => {
7
15
  for (var name in all)
8
16
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -15,8 +23,47 @@ var __copyProps = (to, from, except, desc) => {
15
23
  }
16
24
  return to;
17
25
  };
26
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
27
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
28
+ // If the importer is in node compatibility mode or this is not an ESM
29
+ // file that has been converted to a CommonJS file using a Babel-
30
+ // compatible transform (i.e. "__esModule" has not been set), then set
31
+ // "default" to the CommonJS "module.exports" for node compatibility.
32
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
33
+ mod
34
+ ));
18
35
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
36
 
37
+ // ../../node_modules/.pnpm/tsup@8.1.0_typescript@5.4.5/node_modules/tsup/assets/cjs_shims.js
38
+ var init_cjs_shims = __esm({
39
+ "../../node_modules/.pnpm/tsup@8.1.0_typescript@5.4.5/node_modules/tsup/assets/cjs_shims.js"() {
40
+ "use strict";
41
+ }
42
+ });
43
+
44
+ // ../types/dist/index.js
45
+ var require_dist = __commonJS({
46
+ "../types/dist/index.js"(exports2, module2) {
47
+ "use strict";
48
+ init_cjs_shims();
49
+ var __defProp2 = Object.defineProperty;
50
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
51
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
52
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
53
+ var __copyProps2 = (to, from, except, desc) => {
54
+ if (from && typeof from === "object" || typeof from === "function") {
55
+ for (let key of __getOwnPropNames2(from))
56
+ if (!__hasOwnProp2.call(to, key) && key !== except)
57
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
58
+ }
59
+ return to;
60
+ };
61
+ var __toCommonJS2 = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
62
+ var src_exports2 = {};
63
+ module2.exports = __toCommonJS2(src_exports2);
64
+ }
65
+ });
66
+
20
67
  // src/index.ts
21
68
  var src_exports = {};
22
69
  __export(src_exports, {
@@ -25,7 +72,9 @@ __export(src_exports, {
25
72
  defineConfig: () => defineConfig
26
73
  });
27
74
  module.exports = __toCommonJS(src_exports);
75
+ init_cjs_shims();
28
76
  var import_translators = require("@terai/translator/translators");
77
+ __reExport(src_exports, __toESM(require_dist()), module.exports);
29
78
  function defineConfig(config) {
30
79
  return config;
31
80
  }
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { Config } from '@terai/types'\n\nexport function defineConfig(config: Config) {\n\treturn config\n}\n\nexport {\n createChatGptTranslator,\n createGoogleCloudTranslator\n} from '@terai/translator/translators'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,yBAGO;AAPA,SAAS,aAAa,QAAgB;AAC5C,SAAO;AACR;","names":[]}
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.1.0_typescript@5.4.5/node_modules/tsup/assets/cjs_shims.js","../../types/dist/index.js","../src/index.ts"],"sourcesContent":["// Shim globals in cjs bundle\n// There's a weird bug that esbuild will always inject importMetaUrl\n// if we export it as `const importMetaUrl = ... __filename ...`\n// But using a function will not cause this issue\n\nconst getImportMetaUrl = () =>\n typeof document === 'undefined'\n ? new URL('file:' + __filename).href\n : (document.currentScript && document.currentScript.src) ||\n new URL('main.js', document.baseURI).href\n\nexport const importMetaUrl = /* @__PURE__ */ getImportMetaUrl()\n","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\nmodule.exports = __toCommonJS(src_exports);\n","import type { Config } from '@terai/types'\n\nexport function defineConfig(config: Config) {\n\treturn config\n}\n\nexport {\n\tcreateChatGptTranslator,\n\tcreateGoogleCloudTranslator\n} from '@terai/translator/translators'\n\nexport * from '@terai/types'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA,2BAAAA,UAAAC,SAAA;AAAA;AAAA;AACA,QAAIC,aAAY,OAAO;AACvB,QAAIC,oBAAmB,OAAO;AAC9B,QAAIC,qBAAoB,OAAO;AAC/B,QAAIC,gBAAe,OAAO,UAAU;AACpC,QAAIC,eAAc,CAAC,IAAI,MAAM,QAAQ,SAAS;AAC5C,UAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;AAClE,iBAAS,OAAOF,mBAAkB,IAAI;AACpC,cAAI,CAACC,cAAa,KAAK,IAAI,GAAG,KAAK,QAAQ;AACzC,YAAAH,WAAU,IAAI,KAAK,EAAE,KAAK,MAAM,KAAK,GAAG,GAAG,YAAY,EAAE,OAAOC,kBAAiB,MAAM,GAAG,MAAM,KAAK,WAAW,CAAC;AAAA,MACvH;AACA,aAAO;AAAA,IACT;AACA,QAAII,gBAAe,CAAC,QAAQD,aAAYJ,WAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AAGzF,QAAIM,eAAc,CAAC;AACnB,IAAAP,QAAO,UAAUM,cAAaC,YAAW;AAAA;AAAA;;;ACjBzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMA,yBAGO;AAEP,wBAAc,yBAXd;AAEO,SAAS,aAAa,QAAgB;AAC5C,SAAO;AACR;","names":["exports","module","__defProp","__getOwnPropDesc","__getOwnPropNames","__hasOwnProp","__copyProps","__toCommonJS","src_exports"]}
package/dist/index.mjs CHANGED
@@ -1,4 +1,76 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __esm = (fn, res) => function __init() {
8
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
9
+ };
10
+ var __commonJS = (cb, mod) => function __require() {
11
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
12
+ };
13
+ var __export = (target, all) => {
14
+ for (var name in all)
15
+ __defProp(target, name, { get: all[name], enumerable: true });
16
+ };
17
+ var __copyProps = (to, from, except, desc) => {
18
+ if (from && typeof from === "object" || typeof from === "function") {
19
+ for (let key of __getOwnPropNames(from))
20
+ if (!__hasOwnProp.call(to, key) && key !== except)
21
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
22
+ }
23
+ return to;
24
+ };
25
+ var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
26
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
27
+ // If the importer is in node compatibility mode or this is not an ESM
28
+ // file that has been converted to a CommonJS file using a Babel-
29
+ // compatible transform (i.e. "__esModule" has not been set), then set
30
+ // "default" to the CommonJS "module.exports" for node compatibility.
31
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
32
+ mod
33
+ ));
34
+
35
+ // ../../node_modules/.pnpm/tsup@8.1.0_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js
36
+ var init_esm_shims = __esm({
37
+ "../../node_modules/.pnpm/tsup@8.1.0_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js"() {
38
+ "use strict";
39
+ }
40
+ });
41
+
42
+ // ../types/dist/index.js
43
+ var require_dist = __commonJS({
44
+ "../types/dist/index.js"(exports, module) {
45
+ "use strict";
46
+ init_esm_shims();
47
+ var __defProp2 = Object.defineProperty;
48
+ var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
49
+ var __getOwnPropNames2 = Object.getOwnPropertyNames;
50
+ var __hasOwnProp2 = Object.prototype.hasOwnProperty;
51
+ var __copyProps2 = (to, from, except, desc) => {
52
+ if (from && typeof from === "object" || typeof from === "function") {
53
+ for (let key of __getOwnPropNames2(from))
54
+ if (!__hasOwnProp2.call(to, key) && key !== except)
55
+ __defProp2(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc2(from, key)) || desc.enumerable });
56
+ }
57
+ return to;
58
+ };
59
+ var __toCommonJS = (mod) => __copyProps2(__defProp2({}, "__esModule", { value: true }), mod);
60
+ var src_exports2 = {};
61
+ module.exports = __toCommonJS(src_exports2);
62
+ }
63
+ });
64
+
1
65
  // src/index.ts
66
+ var src_exports = {};
67
+ __export(src_exports, {
68
+ createChatGptTranslator: () => createChatGptTranslator,
69
+ createGoogleCloudTranslator: () => createGoogleCloudTranslator,
70
+ defineConfig: () => defineConfig
71
+ });
72
+ init_esm_shims();
73
+ __reExport(src_exports, __toESM(require_dist()));
2
74
  import {
3
75
  createChatGptTranslator,
4
76
  createGoogleCloudTranslator
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts"],"sourcesContent":["import type { Config } from '@terai/types'\n\nexport function defineConfig(config: Config) {\n\treturn config\n}\n\nexport {\n createChatGptTranslator,\n createGoogleCloudTranslator\n} from '@terai/translator/translators'\n"],"mappings":";AAMA;AAAA,EACE;AAAA,EACA;AAAA,OACK;AAPA,SAAS,aAAa,QAAgB;AAC5C,SAAO;AACR;","names":[]}
1
+ {"version":3,"sources":["../../../node_modules/.pnpm/tsup@8.1.0_typescript@5.4.5/node_modules/tsup/assets/esm_shims.js","../../types/dist/index.js","../src/index.ts"],"sourcesContent":["// Shim globals in esm bundle\nimport { fileURLToPath } from 'url'\nimport path from 'path'\n\nconst getFilename = () => fileURLToPath(import.meta.url)\nconst getDirname = () => path.dirname(getFilename())\n\nexport const __dirname = /* @__PURE__ */ getDirname()\nexport const __filename = /* @__PURE__ */ getFilename()\n","\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\n\n// src/index.ts\nvar src_exports = {};\nmodule.exports = __toCommonJS(src_exports);\n","import type { Config } from '@terai/types'\n\nexport function defineConfig(config: Config) {\n\treturn config\n}\n\nexport {\n\tcreateChatGptTranslator,\n\tcreateGoogleCloudTranslator\n} from '@terai/translator/translators'\n\nexport * from '@terai/types'\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA;AAAA;AAAA;AAAA;AACA,QAAIA,aAAY,OAAO;AACvB,QAAIC,oBAAmB,OAAO;AAC9B,QAAIC,qBAAoB,OAAO;AAC/B,QAAIC,gBAAe,OAAO,UAAU;AACpC,QAAIC,eAAc,CAAC,IAAI,MAAM,QAAQ,SAAS;AAC5C,UAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;AAClE,iBAAS,OAAOF,mBAAkB,IAAI;AACpC,cAAI,CAACC,cAAa,KAAK,IAAI,GAAG,KAAK,QAAQ;AACzC,YAAAH,WAAU,IAAI,KAAK,EAAE,KAAK,MAAM,KAAK,GAAG,GAAG,YAAY,EAAE,OAAOC,kBAAiB,MAAM,GAAG,MAAM,KAAK,WAAW,CAAC;AAAA,MACvH;AACA,aAAO;AAAA,IACT;AACA,QAAI,eAAe,CAAC,QAAQG,aAAYJ,WAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AAGzF,QAAIK,eAAc,CAAC;AACnB,WAAO,UAAU,aAAaA,YAAW;AAAA;AAAA;;;ACjBzC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWA,wBAAc;AALd;AAAA,EACC;AAAA,EACA;AAAA,OACM;AAPA,SAAS,aAAa,QAAgB;AAC5C,SAAO;AACR;","names":["__defProp","__getOwnPropDesc","__getOwnPropNames","__hasOwnProp","__copyProps","src_exports"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@terai/dev",
3
- "version": "0.0.0-dev-20240302221955",
3
+ "version": "0.0.0-dev-20240607213452",
4
4
  "description": "The user-facing package for Terai",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -33,17 +33,17 @@
33
33
  "kleur": "^4",
34
34
  "perfect-debounce": "^1",
35
35
  "preferred-pm": "^3",
36
- "@terai/extractor": "0.0.0-dev-20240302221955",
37
- "@terai/runtime": "0.0.0-dev-20240302221955",
38
- "@terai/translator": "0.0.0-dev-20240302221955",
39
- "@terai/utils": "0.0.0-dev-20240302221955"
36
+ "@terai/extractor": "0.0.0-dev-20240607213452",
37
+ "@terai/runtime": "0.0.0-dev-20240607213452",
38
+ "@terai/translator": "0.0.0-dev-20240607213452",
39
+ "@terai/utils": "0.0.0-dev-20240607213452"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@types/update-notifier": "^6",
43
43
  "update-notifier": "^6",
44
- "@terai/generator": "0.0.0-dev-20240302221955",
45
- "@terai/logger": "0.0.0-dev-20240302221955",
46
- "@terai/types": "0.0.0-dev-20240302221955"
44
+ "@terai/generator": "0.0.0-dev-20240607213452",
45
+ "@terai/logger": "0.0.0-dev-20240607213452",
46
+ "@terai/types": "0.0.0-dev-20240607213452"
47
47
  },
48
48
  "scripts": {
49
49
  "dev": "tsup --format=esm,cjs --no-dts --watch",