piclist 2.3.5 → 2.4.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/bin/picgo-server +5 -0
- package/dist/i18n/zh-CN.d.ts +2 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins/uploader/s3/utils.d.ts +0 -1
- package/dist/types/index.d.ts +3 -0
- package/package.json +16 -16
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { HttpProxyAgent, HttpsProxyAgent } from 'hpagent';
|
|
2
2
|
import { IImgInfo } from '../../../types';
|
|
3
|
-
export declare function formatPath(info: IImgInfo, format?: string): string;
|
|
4
3
|
export declare function extractInfo(info: IImgInfo): Promise<{
|
|
5
4
|
body?: Buffer;
|
|
6
5
|
contentType?: string;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -610,6 +610,8 @@ export interface IBuildInCompressOptions {
|
|
|
610
610
|
reSizeWidthMap?: Record<string, number>;
|
|
611
611
|
reSizeHeight?: number;
|
|
612
612
|
reSizeHeightMap?: Record<string, number>;
|
|
613
|
+
longEdgeAsHeight?: boolean;
|
|
614
|
+
longEdgeAsHeightMap?: Record<string, boolean>;
|
|
613
615
|
skipReSizeOfSmallImg?: boolean;
|
|
614
616
|
skipReSizeOfSmallImgMap?: Record<string, boolean>;
|
|
615
617
|
isReSizeByPercent?: boolean;
|
|
@@ -640,6 +642,7 @@ export interface IBuildInCompressOptionsTreated {
|
|
|
640
642
|
skipReSizeOfSmallImg?: boolean;
|
|
641
643
|
isReSizeByPercent?: boolean;
|
|
642
644
|
reSizePercent?: number;
|
|
645
|
+
longEdgeAsHeight?: boolean;
|
|
643
646
|
isRotate?: boolean;
|
|
644
647
|
rotateDegree?: number;
|
|
645
648
|
isRemoveExif?: boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "piclist",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "Modified PicGo core, A tool for picture uploading",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"picture",
|
|
@@ -61,19 +61,19 @@
|
|
|
61
61
|
"baseline-browser-mapping": "^2.9.13"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@aws-sdk/client-s3": "3.
|
|
65
|
-
"@aws-sdk/lib-storage": "3.
|
|
66
|
-
"@aws-sdk/s3-request-presigner": "3.
|
|
64
|
+
"@aws-sdk/client-s3": "3.1042.0",
|
|
65
|
+
"@aws-sdk/lib-storage": "3.1042.0",
|
|
66
|
+
"@aws-sdk/s3-request-presigner": "3.1042.0",
|
|
67
67
|
"@piclist/i18n": "^2.0.0",
|
|
68
68
|
"@piclist/store": "^3.0.1",
|
|
69
|
-
"@smithy/node-http-handler": "4.
|
|
70
|
-
"axios": "^1.
|
|
69
|
+
"@smithy/node-http-handler": "4.6.1",
|
|
70
|
+
"axios": "^1.16.0",
|
|
71
71
|
"chalk": "^5.6.2",
|
|
72
72
|
"commander": "^8.1.0",
|
|
73
73
|
"cross-spawn": "^7.0.6",
|
|
74
74
|
"dayjs": "^1.11.20",
|
|
75
|
-
"dotenv": "^17.
|
|
76
|
-
"file-type": "
|
|
75
|
+
"dotenv": "^17.4.2",
|
|
76
|
+
"file-type": "22.0.1",
|
|
77
77
|
"form-data": "^4.0.5",
|
|
78
78
|
"fs-extra": "^11.3.4",
|
|
79
79
|
"heic-convert": "^2.1.0",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"inquirer": "^6.0.0",
|
|
83
83
|
"is-wsl": "^3.1.0",
|
|
84
84
|
"js-yaml": "^4.1.1",
|
|
85
|
-
"lodash-es": "^4.
|
|
85
|
+
"lodash-es": "^4.18.1",
|
|
86
86
|
"mime": "4.1.0",
|
|
87
87
|
"minimist": "^1.2.8",
|
|
88
88
|
"multer": "^2.1.1",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"text-to-svg": "^3.1.5",
|
|
94
94
|
"tunnel": "^0.0.6",
|
|
95
95
|
"uuid": "^13.0.0",
|
|
96
|
-
"webdav": "^5.
|
|
96
|
+
"webdav": "^5.10.0"
|
|
97
97
|
},
|
|
98
98
|
"devDependencies": {
|
|
99
99
|
"@eslint/js": "^10.0.1",
|
|
@@ -116,12 +116,12 @@
|
|
|
116
116
|
"@vitest/coverage-v8": "^4.1.0",
|
|
117
117
|
"cross-env": "^10.1.0",
|
|
118
118
|
"dpdm": "^4.0.1",
|
|
119
|
-
"eslint": "^10.
|
|
119
|
+
"eslint": "^10.3.0",
|
|
120
120
|
"eslint-config-prettier": "^10.1.8",
|
|
121
121
|
"eslint-plugin-jsonc": "^3.1.2",
|
|
122
122
|
"eslint-plugin-prettier": "^5.5.5",
|
|
123
|
-
"eslint-plugin-simple-import-sort": "^
|
|
124
|
-
"eslint-plugin-unicorn": "^
|
|
123
|
+
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
124
|
+
"eslint-plugin-unicorn": "^64.0.0",
|
|
125
125
|
"husky": "^9.1.7",
|
|
126
126
|
"jsonc-eslint-parser": "^3.1.0",
|
|
127
127
|
"node-bump-version": "^2.0.0",
|
|
@@ -130,12 +130,12 @@
|
|
|
130
130
|
"rollup": "^4.60.0",
|
|
131
131
|
"rollup-plugin-copy": "^3.5.0",
|
|
132
132
|
"rollup-plugin-string": "^3.0.0",
|
|
133
|
-
"typescript": "^
|
|
134
|
-
"typescript-eslint": "^8.
|
|
133
|
+
"typescript": "^6.0.3",
|
|
134
|
+
"typescript-eslint": "^8.59.2",
|
|
135
135
|
"vitest": "^4.1.0"
|
|
136
136
|
},
|
|
137
137
|
"engines": {
|
|
138
|
-
"node": ">=
|
|
138
|
+
"node": ">=22.0.0"
|
|
139
139
|
},
|
|
140
140
|
"publishConfig": {
|
|
141
141
|
"access": "public"
|