mtranserver 4.0.25 → 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.25",
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,28 +77,30 @@
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
82
  "asar": false,
82
- "asarUnpack": [
83
- "dist/mtranserver*",
84
- "dist/*.exe"
85
- ],
86
83
  "artifactName": "mtranserver-desktop-${version}-${os}-${arch}.${ext}",
87
84
  "files": [
88
- "desktop/**/*",
89
- "scripts/electron-main.js",
90
85
  "dist/**/*",
91
86
  "!dist/mtranserver*",
92
87
  "!dist/*.exe",
93
- "images/**/*",
88
+ "!dist/main.js",
89
+ "!dist/desktop.js",
90
+ "images/icons/**/*",
94
91
  "package.json"
95
92
  ],
96
93
  "directories": {
97
94
  "output": "release"
98
95
  },
99
96
  "mac": {
100
- "target": "dmg",
97
+ "target": {
98
+ "target": "dmg",
99
+ "arch": [
100
+ "x64",
101
+ "arm64"
102
+ ]
103
+ },
101
104
  "icon": "images/icon.icns"
102
105
  },
103
106
  "win": {
@@ -106,9 +109,27 @@
106
109
  },
107
110
  "linux": {
108
111
  "target": [
109
- "AppImage",
110
- "deb",
111
- "rpm"
112
+ {
113
+ "target": "AppImage",
114
+ "arch": [
115
+ "x64",
116
+ "arm64"
117
+ ]
118
+ },
119
+ {
120
+ "target": "deb",
121
+ "arch": [
122
+ "x64",
123
+ "arm64"
124
+ ]
125
+ },
126
+ {
127
+ "target": "rpm",
128
+ "arch": [
129
+ "x64",
130
+ "arm64"
131
+ ]
132
+ }
112
133
  ],
113
134
  "icon": "images/icon.png"
114
135
  },