piclist 1.9.4 → 1.9.6

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.
@@ -19,7 +19,6 @@ export declare const buildInUploaderNames: {
19
19
  sftpplist: string;
20
20
  smms: string;
21
21
  tcyun: string;
22
- telegraphplist: string;
23
22
  upyun: string;
24
23
  webdavplist: string;
25
24
  };
@@ -35,6 +35,10 @@ export interface IPicGo extends NodeJS.EventEmitter {
35
35
  * the origin input
36
36
  */
37
37
  rawInput: any[];
38
+ /**
39
+ * processed input path
40
+ */
41
+ processedInput: any[];
38
42
  /**
39
43
  * register\unregister\get picgo's plugin
40
44
  */
@@ -97,6 +101,10 @@ export interface IPicGo extends NodeJS.EventEmitter {
97
101
  * upload gogogo
98
102
  */
99
103
  upload: (input?: any[]) => Promise<IImgInfo[] | Error>;
104
+ /**
105
+ * transform gogogo
106
+ */
107
+ uploadReturnCtx: (input?: any[]) => Promise<IPicGo>;
100
108
  }
101
109
  /**
102
110
  * for plugin config
@@ -239,7 +247,10 @@ export interface IPathTransformedImgInfo extends IImgInfo {
239
247
  }
240
248
  export type IStringKeyMap<T> = Record<string, T extends T ? T : any>;
241
249
  export type ICLIConfigs = Record<string, IStringKeyMap<any>>;
242
- /** Telegraph 图床配置项 */
250
+ /**
251
+ * Telegraph 图床配置项
252
+ * @deprecated since v1.9.6
253
+ */
243
254
  export interface ITelegraphConfig {
244
255
  proxy?: string;
245
256
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piclist",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "description": "Modified PicGo core, A tool for picture uploading",
5
5
  "author": {
6
6
  "name": "Kuingsmile",
@@ -1,2 +0,0 @@
1
- import { IPicGo } from '../../types';
2
- export default function register(ctx: IPicGo): void;