piclist 0.2.4 → 0.3.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/CHANGELOG.md +9 -0
- package/dist/core/Lifecycle.d.ts +3 -0
- 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/types/index.d.ts +1 -0
- package/dist/utils/common.d.ts +4 -3
- package/package.json +145 -137
- package/assets/simhei.ttf +0 -0
- package/dist/assets/simhei.ttf +0 -0
package/dist/types/index.d.ts
CHANGED
package/dist/utils/common.d.ts
CHANGED
|
@@ -105,8 +105,9 @@ export declare function safeParse<T>(str: string): T | string;
|
|
|
105
105
|
export declare const forceNumber: (num?: string | number) => number;
|
|
106
106
|
export declare const isDev: () => boolean;
|
|
107
107
|
export declare const isProd: () => boolean;
|
|
108
|
-
export declare function AddWatermark(img: Buffer, watermarkType: 'text' | 'image', isFullScreenWatermark?: boolean, watermarkDegree?: number, text?: string, watermarkFontPath?: string, watermarkScaleRatio?: number, watermarkColor?: string, watermarkImagePath?: string, position?: sharp.Gravity): Promise<Buffer>;
|
|
109
|
-
export declare function imageAddWaterMark(img: Buffer, options: IBuildInWaterMarkOptions): Promise<Buffer>;
|
|
108
|
+
export declare function AddWatermark(img: Buffer, watermarkType: 'text' | 'image', defaultWatermarkFontPath: string, isFullScreenWatermark?: boolean, watermarkDegree?: number, text?: string, watermarkFontPath?: string, watermarkScaleRatio?: number, watermarkColor?: string, watermarkImagePath?: string, position?: sharp.Gravity): Promise<Buffer>;
|
|
109
|
+
export declare function imageAddWaterMark(img: Buffer, options: IBuildInWaterMarkOptions, defaultWatermarkFontPath: string): Promise<Buffer>;
|
|
110
110
|
export declare function imageProcess(img: Buffer, options: IBuildInCompressOptions, rawFormat: string): Promise<Buffer>;
|
|
111
|
-
export declare const needAddWatermark: (watermarkOptions: IBuildInWaterMarkOptions | undefined) => boolean;
|
|
111
|
+
export declare const needAddWatermark: (watermarkOptions: IBuildInWaterMarkOptions | undefined, fileExt: string) => boolean;
|
|
112
112
|
export declare const needCompress: (compressOptions: IBuildInCompressOptions | undefined, fileExt: string) => boolean;
|
|
113
|
+
export declare const removeExif: (img: Buffer, fileExt: string) => Promise<Buffer>;
|
package/package.json
CHANGED
|
@@ -1,137 +1,145 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "piclist",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "Modified PicGo core, A tool for picture uploading",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
"
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
65
|
-
"@types/
|
|
66
|
-
"@types/
|
|
67
|
-
"@types/
|
|
68
|
-
"@types/
|
|
69
|
-
"@types/
|
|
70
|
-
"@types/
|
|
71
|
-
"@types/
|
|
72
|
-
"@types/
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"eslint": "
|
|
82
|
-
"eslint
|
|
83
|
-
"eslint
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
118
|
-
"
|
|
119
|
-
"
|
|
120
|
-
"
|
|
121
|
-
"
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
"
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
"
|
|
128
|
-
"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
"
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
"
|
|
135
|
-
"
|
|
136
|
-
|
|
137
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "piclist",
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "Modified PicGo core, A tool for picture uploading",
|
|
5
|
+
"author": {
|
|
6
|
+
"name": "Kuingsmile",
|
|
7
|
+
"email": "msq@msq.pub"
|
|
8
|
+
},
|
|
9
|
+
"homepage": "https://piclist.cn",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/Kuingsmile/PicList/issues",
|
|
12
|
+
"email": "msq@msq.pub"
|
|
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
|
+
"pre-commit": "npm run lint"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"config": {
|
|
46
|
+
"commitizen": {
|
|
47
|
+
"path": "./node_modules/cz-customizable"
|
|
48
|
+
},
|
|
49
|
+
"cz-customizable": {
|
|
50
|
+
"config": "./node_modules/@picgo/bump-version/.cz-config.js"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"commitlint": {
|
|
54
|
+
"extends": [
|
|
55
|
+
"./node_modules/@picgo/bump-version/commitlint-picgo"
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"devDependencies": {
|
|
60
|
+
"@picgo/bump-version": "^1.1.2",
|
|
61
|
+
"@rollup/plugin-commonjs": "^21.0.0",
|
|
62
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
63
|
+
"@rollup/plugin-node-resolve": "^13.0.5",
|
|
64
|
+
"@rollup/plugin-replace": "^3.0.0",
|
|
65
|
+
"@types/cross-spawn": "^6.0.0",
|
|
66
|
+
"@types/ejs": "^3.0.5",
|
|
67
|
+
"@types/fs-extra": "^11.0.1",
|
|
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
|
+
"@typescript-eslint/eslint-plugin": "3",
|
|
82
|
+
"@typescript-eslint/parser": "^3.2.0",
|
|
83
|
+
"babel-eslint": "^10.1.0",
|
|
84
|
+
"builtins": "^4.0.0",
|
|
85
|
+
"conventional-changelog": "^3.0.6",
|
|
86
|
+
"copyfiles": "^2.1.0",
|
|
87
|
+
"cross-env": "^7.0.3",
|
|
88
|
+
"cz-customizable": "^5.10.0",
|
|
89
|
+
"eslint": "7",
|
|
90
|
+
"eslint-config-standard-with-typescript": "^18.0.2",
|
|
91
|
+
"eslint-plugin-import": "2",
|
|
92
|
+
"eslint-plugin-node": "11",
|
|
93
|
+
"eslint-plugin-promise": "4",
|
|
94
|
+
"eslint-plugin-standard": "4",
|
|
95
|
+
"execa": "^5.1.1",
|
|
96
|
+
"husky": "^1.3.1",
|
|
97
|
+
"pre-commit": "^1.2.2",
|
|
98
|
+
"rollup": "^2.58.0",
|
|
99
|
+
"rollup-plugin-copy": "^3.4.0",
|
|
100
|
+
"rollup-plugin-string": "^3.0.0",
|
|
101
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
102
|
+
"rollup-plugin-typescript2": "^0.30.0",
|
|
103
|
+
"typescript": "^4.8.2"
|
|
104
|
+
},
|
|
105
|
+
"dependencies": {
|
|
106
|
+
"@picgo/i18n": "^1.0.0",
|
|
107
|
+
"@picgo/store": "^2.0.4",
|
|
108
|
+
"axios": "^1.3.4",
|
|
109
|
+
"chalk": "^2.4.1",
|
|
110
|
+
"commander": "^8.1.0",
|
|
111
|
+
"comment-json": "^2.3.1",
|
|
112
|
+
"cross-spawn": "^6.0.5",
|
|
113
|
+
"dayjs": "^1.11.7",
|
|
114
|
+
"download-git-repo": "^3.0.2",
|
|
115
|
+
"ejs": "^2.6.1",
|
|
116
|
+
"fs-extra": "^11.1.0",
|
|
117
|
+
"globby": "^11.0.4",
|
|
118
|
+
"image-size": "^0.8.3",
|
|
119
|
+
"inquirer": "^6.0.0",
|
|
120
|
+
"is-wsl": "^2.2.0",
|
|
121
|
+
"js-yaml": "^4.1.0",
|
|
122
|
+
"lodash": "^4.17.21",
|
|
123
|
+
"md5": "^2.3.0",
|
|
124
|
+
"mime-types": "2.1.33",
|
|
125
|
+
"minimatch": "^3.0.4",
|
|
126
|
+
"minimist": "^1.2.5",
|
|
127
|
+
"qiniu": "^7.8.0",
|
|
128
|
+
"resolve": "^1.8.1",
|
|
129
|
+
"rimraf": "^3.0.2",
|
|
130
|
+
"sharp": "^0.31.3",
|
|
131
|
+
"text-to-svg": "^3.1.5",
|
|
132
|
+
"tunnel": "^0.0.6"
|
|
133
|
+
},
|
|
134
|
+
"repository": {
|
|
135
|
+
"type": "git",
|
|
136
|
+
"url": "git+https://github.com/Kuingsmile/PicList-Core.git"
|
|
137
|
+
},
|
|
138
|
+
"picBed": {
|
|
139
|
+
"current": "smms"
|
|
140
|
+
},
|
|
141
|
+
"plugins": {},
|
|
142
|
+
"engines": {
|
|
143
|
+
"node": ">= 12.0.0"
|
|
144
|
+
}
|
|
145
|
+
}
|
package/assets/simhei.ttf
DELETED
|
Binary file
|
package/dist/assets/simhei.ttf
DELETED
|
Binary file
|