piclist 0.3.0 → 0.3.2

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.
@@ -576,5 +576,6 @@ export interface IBuildInCompressOptions {
576
576
  reSizePercent?: number;
577
577
  isRotate?: boolean;
578
578
  rotateDegree?: number;
579
+ isRemoveExif?: boolean;
579
580
  }
580
581
  export {};
@@ -110,3 +110,4 @@ export declare function imageAddWaterMark(img: Buffer, options: IBuildInWaterMar
110
110
  export declare function imageProcess(img: Buffer, options: IBuildInCompressOptions, rawFormat: string): Promise<Buffer>;
111
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,145 +1,145 @@
1
- {
2
- "name": "piclist",
3
- "version": "0.3.0",
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
- }
1
+ {
2
+ "name": "piclist",
3
+ "version": "0.3.2",
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
+ }