picgo 1.5.3 → 1.5.5
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 +21 -0
- package/dist/i18n/zh-CN.d.ts +6 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/types/index.d.ts +10 -5
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -285,6 +285,8 @@ export interface ITcyunConfig {
|
|
|
285
285
|
appId: string;
|
|
286
286
|
/** 存储区域,例如 ap-beijing-1 */
|
|
287
287
|
area: string;
|
|
288
|
+
/** 请求的 ENDPOINT,设置后 `area` 字段会失效 */
|
|
289
|
+
endpoint: string;
|
|
288
290
|
/** 自定义存储路径,比如 img/ */
|
|
289
291
|
path: string;
|
|
290
292
|
/** 自定义域名,注意要加 `http://` 或者 `https://` */
|
|
@@ -293,6 +295,8 @@ export interface ITcyunConfig {
|
|
|
293
295
|
version: 'v5' | 'v4';
|
|
294
296
|
/** 针对图片的一些后缀处理参数 PicGo 2.4.0+ PicGo-Core 1.5.0+ */
|
|
295
297
|
options: string;
|
|
298
|
+
/** 是否支持极智压缩 */
|
|
299
|
+
slim: boolean;
|
|
296
300
|
}
|
|
297
301
|
/** GitHub 图床配置项 */
|
|
298
302
|
export interface IGithubConfig {
|
|
@@ -352,12 +356,12 @@ export interface IConfig {
|
|
|
352
356
|
debug?: boolean;
|
|
353
357
|
silent?: boolean;
|
|
354
358
|
settings?: {
|
|
355
|
-
logLevel?: string;
|
|
359
|
+
logLevel?: string[];
|
|
356
360
|
logPath?: string;
|
|
357
361
|
/** for npm */
|
|
358
|
-
|
|
362
|
+
npmRegistry?: string;
|
|
359
363
|
/** for npm */
|
|
360
|
-
|
|
364
|
+
npmProxy?: string;
|
|
361
365
|
[others: string]: any;
|
|
362
366
|
};
|
|
363
367
|
[configOptions: string]: any;
|
|
@@ -395,8 +399,8 @@ export interface IPluginHandlerResult<T> {
|
|
|
395
399
|
body: T extends true ? string[] : string;
|
|
396
400
|
}
|
|
397
401
|
export interface IPluginHandlerOptions {
|
|
398
|
-
|
|
399
|
-
|
|
402
|
+
npmProxy?: string;
|
|
403
|
+
npmRegistry?: string;
|
|
400
404
|
}
|
|
401
405
|
/**
|
|
402
406
|
* for picgo npm plugins
|
|
@@ -457,6 +461,7 @@ export interface IImgSize {
|
|
|
457
461
|
width: number;
|
|
458
462
|
height: number;
|
|
459
463
|
real?: boolean;
|
|
464
|
+
extname?: string;
|
|
460
465
|
}
|
|
461
466
|
/**
|
|
462
467
|
* for initUtils
|