xshell 1.3.12 → 1.3.14
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/antd.development.js +146916 -0
- package/antd.development.js.map +1 -0
- package/antd.production.js +119500 -0
- package/antd.production.js.map +1 -0
- package/builder.js +16 -6
- package/net.js +1 -1
- package/package.json +5 -5
package/builder.js
CHANGED
|
@@ -4,8 +4,9 @@ import { noprint } from "./process.js";
|
|
|
4
4
|
import { Lock, filter_values } from "./utils.js";
|
|
5
5
|
import { fcopy, fmkdir, fwrite, fread, print_info, ramdisk } from "./file.js";
|
|
6
6
|
import { path } from "./path.js";
|
|
7
|
+
const get_target = (production) => production ? 'production' : 'development';
|
|
7
8
|
function get_react_js(production, src, map) {
|
|
8
|
-
return `${src ? import.meta.dirname.fpd : 'vendors/react/'}react.${production
|
|
9
|
+
return `${src ? import.meta.dirname.fpd : 'vendors/react/'}react.${get_target(production)}.js${map ? '.map' : ''}`;
|
|
9
10
|
}
|
|
10
11
|
function get_react_asset(production, map) {
|
|
11
12
|
return {
|
|
@@ -13,6 +14,15 @@ function get_react_asset(production, map) {
|
|
|
13
14
|
out: get_react_js(production, false, map),
|
|
14
15
|
};
|
|
15
16
|
}
|
|
17
|
+
function get_antd_js(production, src, map) {
|
|
18
|
+
return `${src ? import.meta.dirname.fpd : 'vendors/antd/'}antd.${get_target(production)}.js${map ? '.map' : ''}`;
|
|
19
|
+
}
|
|
20
|
+
function get_antd_asset(production, map) {
|
|
21
|
+
return {
|
|
22
|
+
src: get_antd_js(production, true, map),
|
|
23
|
+
out: get_antd_js(production, false, map),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
16
26
|
const dependencies = {
|
|
17
27
|
react: {
|
|
18
28
|
productions: [get_react_asset(true, false)],
|
|
@@ -43,11 +53,11 @@ const dependencies = {
|
|
|
43
53
|
},
|
|
44
54
|
antd: {
|
|
45
55
|
dependencies: ['dayjs', 'react'],
|
|
46
|
-
productions: [
|
|
47
|
-
devs: [
|
|
56
|
+
productions: [get_antd_asset(true, false)],
|
|
57
|
+
devs: [get_antd_asset(false, false)],
|
|
48
58
|
maps: {
|
|
49
|
-
productions: [
|
|
50
|
-
devs: [
|
|
59
|
+
productions: [get_antd_asset(true, true)],
|
|
60
|
+
devs: [get_antd_asset(false, true)],
|
|
51
61
|
}
|
|
52
62
|
},
|
|
53
63
|
'antd-icons': {
|
|
@@ -217,7 +227,7 @@ export class Bundler {
|
|
|
217
227
|
null;
|
|
218
228
|
this.lcompiler.resource = Webpack(this.config = {
|
|
219
229
|
name: this.name,
|
|
220
|
-
mode: this.production
|
|
230
|
+
mode: get_target(this.production),
|
|
221
231
|
devtool: this.source_map ? 'source-map' : false,
|
|
222
232
|
context: this.fpd_root,
|
|
223
233
|
entry: this.entry,
|
package/net.js
CHANGED
|
@@ -90,7 +90,7 @@ export async function request(url, options = {}) {
|
|
|
90
90
|
let headers = {
|
|
91
91
|
'accept-language': 'zh-CN,zh;q=0.9,en-US;q=0.8,en;q=0.7,ja-JP;q=0.6,ja;q=0.5',
|
|
92
92
|
'accept-encoding': 'gzip, deflate, br',
|
|
93
|
-
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/
|
|
93
|
+
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36',
|
|
94
94
|
'sec-ch-ua-platform': '"Windows"',
|
|
95
95
|
'sec-ch-ua-platform-version': '"19.0.0"',
|
|
96
96
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "xshell",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.14",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"bin": {
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"@stylistic/eslint-plugin": "^5.6.1",
|
|
57
57
|
"@svgr/webpack": "^8.1.0",
|
|
58
58
|
"@types/sass-loader": "^8.0.10",
|
|
59
|
-
"@typescript-eslint/eslint-plugin": "^8.48.
|
|
60
|
-
"@typescript-eslint/parser": "^8.48.
|
|
61
|
-
"@typescript-eslint/utils": "^8.48.
|
|
59
|
+
"@typescript-eslint/eslint-plugin": "^8.48.1",
|
|
60
|
+
"@typescript-eslint/parser": "^8.48.1",
|
|
61
|
+
"@typescript-eslint/utils": "^8.48.1",
|
|
62
62
|
"archiver": "^7.0.1",
|
|
63
63
|
"chalk": "^5.6.2",
|
|
64
64
|
"commander": "^14.0.2",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"eslint-plugin-import": "^2.32.0",
|
|
69
69
|
"eslint-plugin-react": "^7.37.5",
|
|
70
70
|
"https-proxy-agent": "^7.0.6",
|
|
71
|
-
"i18next": "^25.
|
|
71
|
+
"i18next": "^25.7.1",
|
|
72
72
|
"i18next-scanner": "^4.6.0",
|
|
73
73
|
"koa": "^3.1.1",
|
|
74
74
|
"koa-compress": "^5.1.1",
|