piclist 2.3.3 → 2.3.4
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 +11 -0
- package/dist/core/PicGo.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/types/index.d.ts +2 -1
- package/dist/utils/common.d.ts +1 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ export interface IPicGo extends NodeJS.EventEmitter {
|
|
|
23
23
|
VERSION: string;
|
|
24
24
|
GUI_VERSION?: string;
|
|
25
25
|
request: IRequest['request'];
|
|
26
|
-
rawInputPath
|
|
26
|
+
rawInputPath: string[];
|
|
27
27
|
i18n: II18nManager;
|
|
28
28
|
getConfig: <T>(name?: string) => T;
|
|
29
29
|
saveConfig: (config: IStringKeyMap<any>) => void;
|
|
@@ -32,6 +32,7 @@ export interface IPicGo extends NodeJS.EventEmitter {
|
|
|
32
32
|
unsetConfig: (key: string, propName: string) => void;
|
|
33
33
|
upload: (input?: any[]) => Promise<IImgInfo[] | Error>;
|
|
34
34
|
uploadReturnCtx: (input?: any[]) => Promise<IUploadResultWithBackup>;
|
|
35
|
+
changeCurrentUploader: (type: string, config: IStringKeyMap<any>) => void;
|
|
35
36
|
}
|
|
36
37
|
export interface IPluginConfig {
|
|
37
38
|
name: string;
|
package/dist/utils/common.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export declare const isUrlEncode: (url: string) => boolean;
|
|
|
10
10
|
export declare const handleUrlEncode: (url: string) => string;
|
|
11
11
|
export declare const getImageSize: (file: Buffer) => IImgSize;
|
|
12
12
|
export declare const getFSFile: (filePath: string) => Promise<IPathTransformedImgInfo>;
|
|
13
|
+
export declare function getImageTypeByMagicNumber(buffer: Buffer | Uint8Array): string;
|
|
13
14
|
export declare const getURLFile: (url: string, ctx: IPicGo) => Promise<IPathTransformedImgInfo>;
|
|
14
15
|
export declare const getPluginNameType: (name: string) => IPluginNameType;
|
|
15
16
|
export declare const isSimpleName: (nameOrPath: string) => boolean;
|