piclist 0.9.1 → 1.0.1
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 +2 -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 +33 -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 +31 -39
- 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.1",
|
|
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
|
},
|
|
@@ -38,7 +34,9 @@
|
|
|
38
34
|
"util"
|
|
39
35
|
],
|
|
40
36
|
"husky": {
|
|
41
|
-
"hooks": {
|
|
37
|
+
"hooks": {
|
|
38
|
+
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
39
|
+
}
|
|
42
40
|
},
|
|
43
41
|
"config": {
|
|
44
42
|
"commitizen": {
|
|
@@ -56,51 +54,47 @@
|
|
|
56
54
|
"license": "MIT",
|
|
57
55
|
"devDependencies": {
|
|
58
56
|
"@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.
|
|
57
|
+
"@rollup/plugin-commonjs": "^25.0.4",
|
|
58
|
+
"@rollup/plugin-json": "^6.0.0",
|
|
59
|
+
"@rollup/plugin-node-resolve": "^15.2.1",
|
|
60
|
+
"@rollup/plugin-replace": "^5.0.2",
|
|
61
|
+
"@types/cross-spawn": "^6.0.2",
|
|
64
62
|
"@types/ejs": "^3.0.5",
|
|
65
63
|
"@types/fs-extra": "^11.0.1",
|
|
66
64
|
"@types/heic-convert": "^1.2.0",
|
|
67
|
-
"@types/image-size": "^0.0
|
|
65
|
+
"@types/image-size": "^0.8.0",
|
|
68
66
|
"@types/inquirer": "^0.0.42",
|
|
69
67
|
"@types/js-yaml": "^4.0.5",
|
|
70
68
|
"@types/lodash": "^4.14.175",
|
|
71
|
-
"@types/
|
|
72
|
-
"@types/mime-types": "^2.1.0",
|
|
69
|
+
"@types/mime-types": "^2.1.1",
|
|
73
70
|
"@types/minimatch": "^3.0.3",
|
|
74
71
|
"@types/node": "16.11.7",
|
|
75
72
|
"@types/resolve": "^0.0.8",
|
|
76
|
-
"@types/rimraf": "^3.0.0",
|
|
77
|
-
"@types/sharp": "^0.31.1",
|
|
78
73
|
"@types/text-to-svg": "^3.1.1",
|
|
79
74
|
"@types/tunnel": "^0.0.3",
|
|
80
75
|
"@types/uuid": "^9.0.1",
|
|
81
|
-
"@typescript-eslint/eslint-plugin": "
|
|
82
|
-
"@typescript-eslint/parser": "^
|
|
76
|
+
"@typescript-eslint/eslint-plugin": "^6.5.0",
|
|
77
|
+
"@typescript-eslint/parser": "^6.5.0",
|
|
83
78
|
"babel-eslint": "^10.1.0",
|
|
84
79
|
"builtins": "^4.0.0",
|
|
85
80
|
"conventional-changelog": "^3.0.6",
|
|
86
|
-
"copyfiles": "^2.1.0",
|
|
87
81
|
"cross-env": "^7.0.3",
|
|
88
82
|
"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
|
-
"
|
|
83
|
+
"eslint": "^8.48.0",
|
|
84
|
+
"eslint-config-standard-with-typescript": "^39.0.0",
|
|
85
|
+
"eslint-plugin-import": "^2.28.1",
|
|
86
|
+
"eslint-plugin-n": "^16.0.2",
|
|
87
|
+
"eslint-plugin-node": "^11.1.0",
|
|
88
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
89
|
+
"eslint-plugin-standard": "^5.0.0",
|
|
96
90
|
"husky": "^1.3.1",
|
|
97
91
|
"pre-commit": "^1.2.2",
|
|
98
|
-
"rollup": "^2.
|
|
92
|
+
"rollup": "^2.79.1",
|
|
99
93
|
"rollup-plugin-copy": "^3.4.0",
|
|
100
94
|
"rollup-plugin-string": "^3.0.0",
|
|
101
95
|
"rollup-plugin-terser": "^7.0.2",
|
|
102
|
-
"rollup-plugin-typescript2": "^0.
|
|
103
|
-
"typescript": "^4.
|
|
96
|
+
"rollup-plugin-typescript2": "^0.35.0",
|
|
97
|
+
"typescript": "^4.9.5"
|
|
104
98
|
},
|
|
105
99
|
"dependencies": {
|
|
106
100
|
"@picgo/i18n": "^1.0.0",
|
|
@@ -108,28 +102,26 @@
|
|
|
108
102
|
"axios": "^1.5.0",
|
|
109
103
|
"chalk": "^2.4.1",
|
|
110
104
|
"commander": "^8.1.0",
|
|
111
|
-
"
|
|
112
|
-
"cross-spawn": "^6.0.5",
|
|
105
|
+
"cross-spawn": "^7.0.3",
|
|
113
106
|
"dayjs": "^1.11.9",
|
|
114
107
|
"download-git-repo": "^3.0.2",
|
|
115
108
|
"ejs": "^2.6.1",
|
|
116
109
|
"form-data": "^4.0.0",
|
|
117
110
|
"fs-extra": "^11.1.1",
|
|
118
|
-
"globby": "^11.0
|
|
111
|
+
"globby": "^11.1.0",
|
|
119
112
|
"heic-convert": "^1.2.4",
|
|
120
|
-
"image-size": "^0.
|
|
113
|
+
"image-size": "^1.0.2",
|
|
121
114
|
"inquirer": "^6.0.0",
|
|
122
115
|
"is-wsl": "^2.2.0",
|
|
123
116
|
"js-yaml": "^4.1.0",
|
|
124
117
|
"lodash": "^4.17.21",
|
|
125
|
-
"
|
|
126
|
-
"mime-types": "2.1.33",
|
|
118
|
+
"mime-types": "2.1.35",
|
|
127
119
|
"minimatch": "^3.0.4",
|
|
128
|
-
"minimist": "^1.2.
|
|
120
|
+
"minimist": "^1.2.8",
|
|
129
121
|
"node-ssh-no-cpu-features": "^1.0.1",
|
|
130
122
|
"qiniu": "^7.9.0",
|
|
131
123
|
"resolve": "^1.8.1",
|
|
132
|
-
"rimraf": "^
|
|
124
|
+
"rimraf": "^5.0.1",
|
|
133
125
|
"sharp": "^0.32.1",
|
|
134
126
|
"text-to-svg": "^3.1.5",
|
|
135
127
|
"tunnel": "^0.0.6",
|
|
@@ -144,6 +136,6 @@
|
|
|
144
136
|
},
|
|
145
137
|
"plugins": {},
|
|
146
138
|
"engines": {
|
|
147
|
-
"node": ">=
|
|
139
|
+
"node": ">= 16.0.0"
|
|
148
140
|
}
|
|
149
141
|
}
|
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'
|