mtranserver 4.0.26 → 4.0.27

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.
@@ -1 +1 @@
1
- {"version":3,"file":"detector.d.ts","sourceRoot":"","sources":["../../src/services/detector.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;CACpB;AAwND,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,MAA4B,GAAG,OAAO,CAAC,MAAM,CAAC,CAoB1G;AAED,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,MAAM,EACZ,aAAa,GAAE,MAAqC,EACpD,QAAQ,GAAE,MAA4B,GACrC,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAwBnD;AA0DD,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAElF;AAED,wBAAsB,oCAAoC,CACxD,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,WAAW,EAAE,CAAC,CAuFxB"}
1
+ {"version":3,"file":"detector.d.ts","sourceRoot":"","sources":["../../src/services/detector.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;CACpB;AAgND,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,GAAE,MAA4B,GAAG,OAAO,CAAC,MAAM,CAAC,CAyB1G;AAED,wBAAsB,4BAA4B,CAChD,IAAI,EAAE,MAAM,EACZ,aAAa,GAAE,MAAqC,EACpD,QAAQ,GAAE,MAA4B,GACrC,OAAO,CAAC;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC,CAkCnD;AAsDD,wBAAsB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAElF;AAED,wBAAsB,oCAAoC,CACxD,IAAI,EAAE,MAAM,EACZ,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,WAAW,EAAE,CAAC,CAuFxB"}
@@ -1,2 +1,3 @@
1
1
  export declare function NormalizeLanguageCode(code: string): string;
2
+ export declare function isCJKCode(code: string): boolean;
2
3
  //# sourceMappingURL=lang-alias.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"lang-alias.d.ts","sourceRoot":"","sources":["../../src/utils/lang-alias.ts"],"names":[],"mappings":"AAgDA,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAe1D"}
1
+ {"version":3,"file":"lang-alias.d.ts","sourceRoot":"","sources":["../../src/utils/lang-alias.ts"],"names":[],"mappings":"AAgDA,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAe1D;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAI/C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mtranserver",
3
- "version": "4.0.26",
3
+ "version": "4.0.27",
4
4
  "type": "module",
5
5
  "description": "Translation server",
6
6
  "main": "./dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "build:node": "bun scripts/build.ts --node",
32
32
  "build:dev": "bun scripts/build.ts --dev",
33
33
  "build:lib": "bun scripts/build.ts --lib",
34
- "build:electron": "bun run build:node && electron-builder"
34
+ "build:electron": "bun run scripts/electron-build.ts"
35
35
  },
36
36
  "keywords": [
37
37
  "translation",
@@ -68,6 +68,7 @@
68
68
  "node": ">=18.0.0"
69
69
  },
70
70
  "build": {
71
+ "publish": null,
71
72
  "appId": "com.github.xxnuo.mtranserver",
72
73
  "productName": "MTranServer",
73
74
  "executableName": "mtranserver",
@@ -76,17 +77,17 @@
76
77
  "buildDependenciesFromSource": false,
77
78
  "copyright": "Copyright © 2025",
78
79
  "extraMetadata": {
79
- "main": "dist/main-bundled.js"
80
+ "main": "dist/desktop-bundled.js"
80
81
  },
81
- "asar": true,
82
+ "asar": false,
82
83
  "artifactName": "mtranserver-desktop-${version}-${os}-${arch}.${ext}",
83
84
  "files": [
84
- "desktop/**/*",
85
- "scripts/electron-main.js",
86
85
  "dist/**/*",
87
86
  "!dist/mtranserver*",
88
87
  "!dist/*.exe",
89
- "images/**/*",
88
+ "!dist/main.js",
89
+ "!dist/desktop.js",
90
+ "images/icons/**/*",
90
91
  "package.json"
91
92
  ],
92
93
  "directories": {