piclist 0.8.14 → 1.0.0
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/.eslintrc.js +4 -1
- package/dist/core/Lifecycle.d.ts +1 -1
- package/dist/core/PicGo.d.ts +1 -1
- package/dist/i18n/en.d.ts +1 -1
- package/dist/i18n/index.d.ts +4 -4
- package/dist/i18n/zh-CN.d.ts +4 -2
- package/dist/i18n/zh-TW.d.ts +1 -1
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/lib/Commander.d.ts +2 -2
- package/dist/lib/LifecyclePlugins.d.ts +1 -1
- package/dist/lib/Logger.d.ts +1 -1
- package/dist/lib/PluginHandler.d.ts +1 -1
- package/dist/lib/PluginLoader.d.ts +1 -1
- package/dist/lib/Request.d.ts +2 -2
- package/dist/plugins/beforetransformer/compress.d.ts +1 -1
- package/dist/plugins/beforetransformer/watermark.d.ts +1 -1
- package/dist/plugins/beforeupload/buildInRename.d.ts +1 -1
- package/dist/plugins/commander/config.d.ts +1 -1
- package/dist/plugins/commander/i18n.d.ts +1 -1
- package/dist/plugins/commander/index.d.ts +1 -1
- package/dist/plugins/commander/init.d.ts +1 -1
- package/dist/plugins/commander/pluginHandler.d.ts +1 -1
- package/dist/plugins/commander/proxy.d.ts +1 -1
- package/dist/plugins/commander/setting.d.ts +1 -1
- package/dist/plugins/commander/upload.d.ts +1 -1
- package/dist/plugins/commander/use.d.ts +1 -1
- package/dist/plugins/transformer/base64.d.ts +1 -1
- package/dist/plugins/transformer/index.d.ts +1 -1
- package/dist/plugins/transformer/path.d.ts +1 -1
- package/dist/plugins/uploader/aliyun.d.ts +1 -1
- package/dist/plugins/uploader/github.d.ts +1 -1
- package/dist/plugins/uploader/imgur.d.ts +1 -1
- package/dist/plugins/uploader/index.d.ts +1 -1
- package/dist/plugins/uploader/local.d.ts +1 -1
- package/dist/plugins/uploader/qiniu.d.ts +1 -1
- package/dist/plugins/uploader/sftp.d.ts +1 -1
- package/dist/plugins/uploader/smms.d.ts +1 -1
- package/dist/plugins/uploader/tcyun.d.ts +1 -1
- package/dist/plugins/uploader/upyun.d.ts +1 -1
- package/dist/plugins/uploader/webdav.d.ts +1 -1
- package/dist/types/index.d.ts +37 -49
- package/dist/types/oldRequest.d.ts +3 -7
- package/dist/utils/common.d.ts +1 -1
- package/dist/utils/createContext.d.ts +1 -1
- package/dist/utils/db.d.ts +2 -2
- package/dist/utils/getClipboardImage.d.ts +2 -2
- package/dist/utils/initUtils.d.ts +1 -1
- package/dist/utils/interfaces.d.ts +9 -13
- package/dist/utils/sshClient.d.ts +1 -1
- package/package.json +28 -38
- package/rollup.config.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piclist",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0",
|
|
4
4
|
"description": "Modified PicGo core, A tool for picture uploading",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Kuingsmile",
|
|
@@ -22,13 +22,9 @@
|
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"start": "node ./bin/picgo",
|
|
25
|
-
"lint": "eslint src/**/*.ts
|
|
26
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
25
|
+
"lint": "eslint src/**/*.ts",
|
|
27
26
|
"build": "cross-env NODE_ENV=production rimraf ./dist && rollup -c rollup.config.js",
|
|
28
27
|
"dev": "cross-env NODE_ENV=development rollup -c rollup.config.js -w",
|
|
29
|
-
"patch": "npm version patch && git push origin master && git push origin --tags",
|
|
30
|
-
"minor": "npm version minor && git push origin master && git push origin --tags",
|
|
31
|
-
"major": "npm version major && git push origin master && git push origin --tags",
|
|
32
28
|
"cz": "git-cz",
|
|
33
29
|
"release": "bump-version"
|
|
34
30
|
},
|
|
@@ -56,51 +52,47 @@
|
|
|
56
52
|
"license": "MIT",
|
|
57
53
|
"devDependencies": {
|
|
58
54
|
"@picgo/bump-version": "^1.1.2",
|
|
59
|
-
"@rollup/plugin-commonjs": "^
|
|
60
|
-
"@rollup/plugin-json": "^
|
|
61
|
-
"@rollup/plugin-node-resolve": "^
|
|
62
|
-
"@rollup/plugin-replace": "^
|
|
63
|
-
"@types/cross-spawn": "^6.0.
|
|
55
|
+
"@rollup/plugin-commonjs": "^25.0.4",
|
|
56
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
57
|
+
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
58
|
+
"@rollup/plugin-replace": "^5.0.2",
|
|
59
|
+
"@types/cross-spawn": "^6.0.2",
|
|
64
60
|
"@types/ejs": "^3.0.5",
|
|
65
61
|
"@types/fs-extra": "^11.0.1",
|
|
66
62
|
"@types/heic-convert": "^1.2.0",
|
|
67
|
-
"@types/image-size": "^0.0
|
|
63
|
+
"@types/image-size": "^0.8.0",
|
|
68
64
|
"@types/inquirer": "^0.0.42",
|
|
69
65
|
"@types/js-yaml": "^4.0.5",
|
|
70
66
|
"@types/lodash": "^4.14.175",
|
|
71
|
-
"@types/
|
|
72
|
-
"@types/mime-types": "^2.1.0",
|
|
67
|
+
"@types/mime-types": "^2.1.1",
|
|
73
68
|
"@types/minimatch": "^3.0.3",
|
|
74
69
|
"@types/node": "16.11.7",
|
|
75
70
|
"@types/resolve": "^0.0.8",
|
|
76
|
-
"@types/rimraf": "^3.0.0",
|
|
77
|
-
"@types/sharp": "^0.31.1",
|
|
78
71
|
"@types/text-to-svg": "^3.1.1",
|
|
79
72
|
"@types/tunnel": "^0.0.3",
|
|
80
73
|
"@types/uuid": "^9.0.1",
|
|
81
|
-
"@typescript-eslint/eslint-plugin": "
|
|
82
|
-
"@typescript-eslint/parser": "^
|
|
74
|
+
"@typescript-eslint/eslint-plugin": "^6.5.0",
|
|
75
|
+
"@typescript-eslint/parser": "^6.5.0",
|
|
83
76
|
"babel-eslint": "^10.1.0",
|
|
84
77
|
"builtins": "^4.0.0",
|
|
85
78
|
"conventional-changelog": "^3.0.6",
|
|
86
|
-
"copyfiles": "^2.1.0",
|
|
87
79
|
"cross-env": "^7.0.3",
|
|
88
80
|
"cz-customizable": "^5.10.0",
|
|
89
|
-
"eslint": "
|
|
90
|
-
"eslint-config-standard-with-typescript": "^
|
|
91
|
-
"eslint-plugin-import": "2",
|
|
92
|
-
"eslint-plugin-
|
|
93
|
-
"eslint-plugin-
|
|
94
|
-
"eslint-plugin-
|
|
95
|
-
"
|
|
81
|
+
"eslint": "^8.48.0",
|
|
82
|
+
"eslint-config-standard-with-typescript": "^39.0.0",
|
|
83
|
+
"eslint-plugin-import": "^2.28.1",
|
|
84
|
+
"eslint-plugin-n": "^16.0.2",
|
|
85
|
+
"eslint-plugin-node": "^11.1.0",
|
|
86
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
87
|
+
"eslint-plugin-standard": "^5.0.0",
|
|
96
88
|
"husky": "^1.3.1",
|
|
97
89
|
"pre-commit": "^1.2.2",
|
|
98
|
-
"rollup": "^2.
|
|
90
|
+
"rollup": "^2.79.1",
|
|
99
91
|
"rollup-plugin-copy": "^3.4.0",
|
|
100
92
|
"rollup-plugin-string": "^3.0.0",
|
|
101
93
|
"rollup-plugin-terser": "^7.0.2",
|
|
102
|
-
"rollup-plugin-typescript2": "^0.
|
|
103
|
-
"typescript": "^4.
|
|
94
|
+
"rollup-plugin-typescript2": "^0.35.0",
|
|
95
|
+
"typescript": "^4.9.5"
|
|
104
96
|
},
|
|
105
97
|
"dependencies": {
|
|
106
98
|
"@picgo/i18n": "^1.0.0",
|
|
@@ -108,28 +100,26 @@
|
|
|
108
100
|
"axios": "^1.5.0",
|
|
109
101
|
"chalk": "^2.4.1",
|
|
110
102
|
"commander": "^8.1.0",
|
|
111
|
-
"
|
|
112
|
-
"cross-spawn": "^6.0.5",
|
|
103
|
+
"cross-spawn": "^7.0.3",
|
|
113
104
|
"dayjs": "^1.11.9",
|
|
114
105
|
"download-git-repo": "^3.0.2",
|
|
115
106
|
"ejs": "^2.6.1",
|
|
116
107
|
"form-data": "^4.0.0",
|
|
117
108
|
"fs-extra": "^11.1.1",
|
|
118
|
-
"globby": "^11.0
|
|
109
|
+
"globby": "^11.1.0",
|
|
119
110
|
"heic-convert": "^1.2.4",
|
|
120
|
-
"image-size": "^0.
|
|
111
|
+
"image-size": "^1.0.2",
|
|
121
112
|
"inquirer": "^6.0.0",
|
|
122
113
|
"is-wsl": "^2.2.0",
|
|
123
114
|
"js-yaml": "^4.1.0",
|
|
124
115
|
"lodash": "^4.17.21",
|
|
125
|
-
"
|
|
126
|
-
"mime-types": "2.1.33",
|
|
116
|
+
"mime-types": "2.1.35",
|
|
127
117
|
"minimatch": "^3.0.4",
|
|
128
|
-
"minimist": "^1.2.
|
|
118
|
+
"minimist": "^1.2.8",
|
|
129
119
|
"node-ssh-no-cpu-features": "^1.0.1",
|
|
130
120
|
"qiniu": "^7.9.0",
|
|
131
121
|
"resolve": "^1.8.1",
|
|
132
|
-
"rimraf": "^
|
|
122
|
+
"rimraf": "^5.0.1",
|
|
133
123
|
"sharp": "^0.32.1",
|
|
134
124
|
"text-to-svg": "^3.1.5",
|
|
135
125
|
"tunnel": "^0.0.6",
|
|
@@ -144,6 +134,6 @@
|
|
|
144
134
|
},
|
|
145
135
|
"plugins": {},
|
|
146
136
|
"engines": {
|
|
147
|
-
"node": ">=
|
|
137
|
+
"node": ">= 16.0.0"
|
|
148
138
|
}
|
|
149
139
|
}
|
package/rollup.config.js
CHANGED
|
@@ -10,8 +10,8 @@ import replace from '@rollup/plugin-replace'
|
|
|
10
10
|
const version = process.env.VERSION || pkg.version
|
|
11
11
|
const sourcemap = 'inline'
|
|
12
12
|
const banner = `/*
|
|
13
|
-
*
|
|
14
|
-
* (c)
|
|
13
|
+
* piclist@${version}, https://github.com/Kuingsmile/PicList-Core
|
|
14
|
+
* (c) 2022-${new Date().getFullYear()} Kuingsmile
|
|
15
15
|
* Released under the MIT License.
|
|
16
16
|
*/`
|
|
17
17
|
const input = './src/index.ts'
|