piclist 0.6.5 → 0.6.7
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/CHANGELOG.md +47 -47
- package/dist/i18n/zh-CN.d.ts +2 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/plugins/beforeupload/buildInRename.d.ts +5 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/utils/common.d.ts +4 -0
- package/package.json +149 -148
package/dist/types/index.d.ts
CHANGED
package/dist/utils/common.d.ts
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import { IImgSize, IPathTransformedImgInfo, IPluginNameType, ILogger, IPicGo, IBuildInCompressOptions, IBuildInWaterMarkOptions } from '../types';
|
|
4
4
|
import sharp from 'sharp';
|
|
5
|
+
export declare function randomStringGenerator(length: number): string;
|
|
6
|
+
export declare function renameFileNameWithTimestamp(oldName: string): string;
|
|
7
|
+
export declare function renameFileNameWithRandomString(oldName: string, length?: number): string;
|
|
8
|
+
export declare function renameFileNameWithCustomString(oldName: string, customFormat: string, affixFileName?: string): string;
|
|
5
9
|
export declare const isUrl: (url: string) => boolean;
|
|
6
10
|
export declare const isUrlEncode: (url: string) => boolean;
|
|
7
11
|
export declare const handleUrlEncode: (url: string) => string;
|
package/package.json
CHANGED
|
@@ -1,148 +1,149 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "piclist",
|
|
3
|
-
"version": "0.6.
|
|
4
|
-
"description": "Modified PicGo core, A tool for picture uploading",
|
|
5
|
-
"author": {
|
|
6
|
-
"name": "Kuingsmile",
|
|
7
|
-
"email": "
|
|
8
|
-
},
|
|
9
|
-
"homepage": "https://piclist.cn",
|
|
10
|
-
"bugs": {
|
|
11
|
-
"url": "https://github.com/Kuingsmile/PicList/issues",
|
|
12
|
-
"email": "
|
|
13
|
-
},
|
|
14
|
-
"main": "dist/index.cjs.js",
|
|
15
|
-
"module": "dist/index.esm.js",
|
|
16
|
-
"typings": "dist/index.d.ts",
|
|
17
|
-
"bin": {
|
|
18
|
-
"picgo": "./bin/picgo"
|
|
19
|
-
},
|
|
20
|
-
"publishConfig": {
|
|
21
|
-
"access": "public"
|
|
22
|
-
},
|
|
23
|
-
"scripts": {
|
|
24
|
-
"start": "node ./bin/picgo",
|
|
25
|
-
"lint": "eslint src/**/*.ts && npm run build",
|
|
26
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
27
|
-
"build": "cross-env NODE_ENV=production rimraf ./dist && rollup -c rollup.config.js",
|
|
28
|
-
"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
|
-
"cz": "git-cz",
|
|
33
|
-
"release": "bump-version"
|
|
34
|
-
},
|
|
35
|
-
"keywords": [
|
|
36
|
-
"picture",
|
|
37
|
-
"upload",
|
|
38
|
-
"util"
|
|
39
|
-
],
|
|
40
|
-
"husky": {
|
|
41
|
-
"hooks": {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
"@
|
|
61
|
-
"@rollup/plugin-
|
|
62
|
-
"@rollup/plugin-
|
|
63
|
-
"@rollup/plugin-
|
|
64
|
-
"@
|
|
65
|
-
"@types/
|
|
66
|
-
"@types/
|
|
67
|
-
"@types/
|
|
68
|
-
"@types/
|
|
69
|
-
"@types/
|
|
70
|
-
"@types/
|
|
71
|
-
"@types/
|
|
72
|
-
"@types/
|
|
73
|
-
"@types/
|
|
74
|
-
"@types/
|
|
75
|
-
"@types/
|
|
76
|
-
"@types/
|
|
77
|
-
"@types/
|
|
78
|
-
"@types/
|
|
79
|
-
"@types/
|
|
80
|
-
"@types/
|
|
81
|
-
"@types/
|
|
82
|
-
"@typescript-eslint/eslint-plugin": "3",
|
|
83
|
-
"@typescript-eslint/parser": "^3.2.0",
|
|
84
|
-
"babel-eslint": "^10.1.0",
|
|
85
|
-
"builtins": "^4.0.0",
|
|
86
|
-
"conventional-changelog": "^3.0.6",
|
|
87
|
-
"copyfiles": "^2.1.0",
|
|
88
|
-
"cross-env": "^7.0.3",
|
|
89
|
-
"cz-customizable": "^5.10.0",
|
|
90
|
-
"eslint": "7",
|
|
91
|
-
"eslint-config-standard-with-typescript": "^18.0.2",
|
|
92
|
-
"eslint-plugin-import": "2",
|
|
93
|
-
"eslint-plugin-node": "11",
|
|
94
|
-
"eslint-plugin-promise": "4",
|
|
95
|
-
"eslint-plugin-standard": "4",
|
|
96
|
-
"execa": "^5.1.1",
|
|
97
|
-
"husky": "^1.3.1",
|
|
98
|
-
"pre-commit": "^1.2.2",
|
|
99
|
-
"rollup": "^2.58.0",
|
|
100
|
-
"rollup-plugin-copy": "^3.4.0",
|
|
101
|
-
"rollup-plugin-string": "^3.0.0",
|
|
102
|
-
"rollup-plugin-terser": "^7.0.2",
|
|
103
|
-
"rollup-plugin-typescript2": "^0.30.0",
|
|
104
|
-
"typescript": "^4.8.2"
|
|
105
|
-
},
|
|
106
|
-
"dependencies": {
|
|
107
|
-
"@picgo/i18n": "^1.0.0",
|
|
108
|
-
"@picgo/store": "^2.0.4",
|
|
109
|
-
"axios": "^1.4.0",
|
|
110
|
-
"chalk": "^2.4.1",
|
|
111
|
-
"commander": "^8.1.0",
|
|
112
|
-
"comment-json": "^2.3.1",
|
|
113
|
-
"cross-spawn": "^6.0.5",
|
|
114
|
-
"dayjs": "^1.11.7",
|
|
115
|
-
"download-git-repo": "^3.0.2",
|
|
116
|
-
"ejs": "^2.6.1",
|
|
117
|
-
"form-data": "^4.0.0",
|
|
118
|
-
"fs-extra": "^11.1.1",
|
|
119
|
-
"globby": "^11.0.4",
|
|
120
|
-
"heic-convert": "^1.2.4",
|
|
121
|
-
"image-size": "^0.8.3",
|
|
122
|
-
"inquirer": "^6.0.0",
|
|
123
|
-
"is-wsl": "^2.2.0",
|
|
124
|
-
"js-yaml": "^4.1.0",
|
|
125
|
-
"lodash": "^4.17.21",
|
|
126
|
-
"md5": "^2.3.0",
|
|
127
|
-
"mime-types": "2.1.33",
|
|
128
|
-
"minimatch": "^3.0.4",
|
|
129
|
-
"minimist": "^1.2.5",
|
|
130
|
-
"qiniu": "^7.8.0",
|
|
131
|
-
"resolve": "^1.8.1",
|
|
132
|
-
"rimraf": "^3.0.2",
|
|
133
|
-
"sharp": "^0.32.1",
|
|
134
|
-
"text-to-svg": "^3.1.5",
|
|
135
|
-
"tunnel": "^0.0.6"
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
"
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
"
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "piclist",
|
|
3
|
+
"version": "0.6.7",
|
|
4
|
+
"description": "Modified PicGo core, A tool for picture uploading",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Kuingsmile",
|
|
7
|
+
"email": "Dr.Strange@strange.phd"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://piclist.cn",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/Kuingsmile/PicList/issues",
|
|
12
|
+
"email": "Dr.Strange@strange.phd"
|
|
13
|
+
},
|
|
14
|
+
"main": "dist/index.cjs.js",
|
|
15
|
+
"module": "dist/index.esm.js",
|
|
16
|
+
"typings": "dist/index.d.ts",
|
|
17
|
+
"bin": {
|
|
18
|
+
"picgo": "./bin/picgo"
|
|
19
|
+
},
|
|
20
|
+
"publishConfig": {
|
|
21
|
+
"access": "public"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"start": "node ./bin/picgo",
|
|
25
|
+
"lint": "eslint src/**/*.ts && npm run build",
|
|
26
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
27
|
+
"build": "cross-env NODE_ENV=production rimraf ./dist && rollup -c rollup.config.js",
|
|
28
|
+
"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
|
+
"cz": "git-cz",
|
|
33
|
+
"release": "bump-version"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"picture",
|
|
37
|
+
"upload",
|
|
38
|
+
"util"
|
|
39
|
+
],
|
|
40
|
+
"husky": {
|
|
41
|
+
"hooks": {
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"config": {
|
|
45
|
+
"commitizen": {
|
|
46
|
+
"path": "./node_modules/cz-customizable"
|
|
47
|
+
},
|
|
48
|
+
"cz-customizable": {
|
|
49
|
+
"config": "./node_modules/@picgo/bump-version/.cz-config.js"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"commitlint": {
|
|
53
|
+
"extends": [
|
|
54
|
+
"./node_modules/@picgo/bump-version/commitlint-picgo"
|
|
55
|
+
]
|
|
56
|
+
},
|
|
57
|
+
"license": "MIT",
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@picgo/bump-version": "^1.1.2",
|
|
60
|
+
"@rollup/plugin-commonjs": "^21.0.0",
|
|
61
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
62
|
+
"@rollup/plugin-node-resolve": "^13.0.5",
|
|
63
|
+
"@rollup/plugin-replace": "^3.0.0",
|
|
64
|
+
"@types/cross-spawn": "^6.0.0",
|
|
65
|
+
"@types/ejs": "^3.0.5",
|
|
66
|
+
"@types/fs-extra": "^11.0.1",
|
|
67
|
+
"@types/heic-convert": "^1.2.0",
|
|
68
|
+
"@types/image-size": "^0.0.29",
|
|
69
|
+
"@types/inquirer": "^0.0.42",
|
|
70
|
+
"@types/js-yaml": "^4.0.5",
|
|
71
|
+
"@types/lodash": "^4.14.175",
|
|
72
|
+
"@types/md5": "^2.3.2",
|
|
73
|
+
"@types/mime-types": "^2.1.0",
|
|
74
|
+
"@types/minimatch": "^3.0.3",
|
|
75
|
+
"@types/node": "16.11.7",
|
|
76
|
+
"@types/resolve": "^0.0.8",
|
|
77
|
+
"@types/rimraf": "^3.0.0",
|
|
78
|
+
"@types/sharp": "^0.31.1",
|
|
79
|
+
"@types/text-to-svg": "^3.1.1",
|
|
80
|
+
"@types/tunnel": "^0.0.3",
|
|
81
|
+
"@types/uuid": "^9.0.1",
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "3",
|
|
83
|
+
"@typescript-eslint/parser": "^3.2.0",
|
|
84
|
+
"babel-eslint": "^10.1.0",
|
|
85
|
+
"builtins": "^4.0.0",
|
|
86
|
+
"conventional-changelog": "^3.0.6",
|
|
87
|
+
"copyfiles": "^2.1.0",
|
|
88
|
+
"cross-env": "^7.0.3",
|
|
89
|
+
"cz-customizable": "^5.10.0",
|
|
90
|
+
"eslint": "7",
|
|
91
|
+
"eslint-config-standard-with-typescript": "^18.0.2",
|
|
92
|
+
"eslint-plugin-import": "2",
|
|
93
|
+
"eslint-plugin-node": "11",
|
|
94
|
+
"eslint-plugin-promise": "4",
|
|
95
|
+
"eslint-plugin-standard": "4",
|
|
96
|
+
"execa": "^5.1.1",
|
|
97
|
+
"husky": "^1.3.1",
|
|
98
|
+
"pre-commit": "^1.2.2",
|
|
99
|
+
"rollup": "^2.58.0",
|
|
100
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
101
|
+
"rollup-plugin-string": "^3.0.0",
|
|
102
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
103
|
+
"rollup-plugin-typescript2": "^0.30.0",
|
|
104
|
+
"typescript": "^4.8.2"
|
|
105
|
+
},
|
|
106
|
+
"dependencies": {
|
|
107
|
+
"@picgo/i18n": "^1.0.0",
|
|
108
|
+
"@picgo/store": "^2.0.4",
|
|
109
|
+
"axios": "^1.4.0",
|
|
110
|
+
"chalk": "^2.4.1",
|
|
111
|
+
"commander": "^8.1.0",
|
|
112
|
+
"comment-json": "^2.3.1",
|
|
113
|
+
"cross-spawn": "^6.0.5",
|
|
114
|
+
"dayjs": "^1.11.7",
|
|
115
|
+
"download-git-repo": "^3.0.2",
|
|
116
|
+
"ejs": "^2.6.1",
|
|
117
|
+
"form-data": "^4.0.0",
|
|
118
|
+
"fs-extra": "^11.1.1",
|
|
119
|
+
"globby": "^11.0.4",
|
|
120
|
+
"heic-convert": "^1.2.4",
|
|
121
|
+
"image-size": "^0.8.3",
|
|
122
|
+
"inquirer": "^6.0.0",
|
|
123
|
+
"is-wsl": "^2.2.0",
|
|
124
|
+
"js-yaml": "^4.1.0",
|
|
125
|
+
"lodash": "^4.17.21",
|
|
126
|
+
"md5": "^2.3.0",
|
|
127
|
+
"mime-types": "2.1.33",
|
|
128
|
+
"minimatch": "^3.0.4",
|
|
129
|
+
"minimist": "^1.2.5",
|
|
130
|
+
"qiniu": "^7.8.0",
|
|
131
|
+
"resolve": "^1.8.1",
|
|
132
|
+
"rimraf": "^3.0.2",
|
|
133
|
+
"sharp": "^0.32.1",
|
|
134
|
+
"text-to-svg": "^3.1.5",
|
|
135
|
+
"tunnel": "^0.0.6",
|
|
136
|
+
"uuid": "^9.0.0"
|
|
137
|
+
},
|
|
138
|
+
"repository": {
|
|
139
|
+
"type": "git",
|
|
140
|
+
"url": "git+https://github.com/Kuingsmile/PicList-Core.git"
|
|
141
|
+
},
|
|
142
|
+
"picBed": {
|
|
143
|
+
"current": "smms"
|
|
144
|
+
},
|
|
145
|
+
"plugins": {},
|
|
146
|
+
"engines": {
|
|
147
|
+
"node": ">= 12.0.0"
|
|
148
|
+
}
|
|
149
|
+
}
|