picgo 1.5.0-alpha.12 → 1.5.0-alpha.13
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 +14 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/types/index.d.ts +5 -2
- package/dist/types/oldRequest.d.ts +19 -0
- package/package.json +1 -2
package/dist/types/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/// <reference types="node" />
|
|
3
3
|
import { Command } from 'commander';
|
|
4
4
|
import { Inquirer } from 'inquirer';
|
|
5
|
-
import {
|
|
5
|
+
import { IRequestPromiseOptions } from './oldRequest';
|
|
6
6
|
export interface IPicGo extends NodeJS.EventEmitter {
|
|
7
7
|
/**
|
|
8
8
|
* picgo configPath
|
|
@@ -155,7 +155,7 @@ export interface IPluginLoader {
|
|
|
155
155
|
export interface IRequestOld {
|
|
156
156
|
request: import('axios').AxiosInstance;
|
|
157
157
|
}
|
|
158
|
-
export declare type IOldReqOptions = Omit<
|
|
158
|
+
export declare type IOldReqOptions = Omit<IRequestPromiseOptions & {
|
|
159
159
|
url: string;
|
|
160
160
|
}, 'auth'>;
|
|
161
161
|
export declare type IOldReqOptionsWithFullResponse = IOldReqOptions & {
|
|
@@ -506,6 +506,9 @@ export interface IConfigChangePayload<T> {
|
|
|
506
506
|
configName: string;
|
|
507
507
|
value: T;
|
|
508
508
|
}
|
|
509
|
+
export interface ILocale {
|
|
510
|
+
[key: string]: any;
|
|
511
|
+
}
|
|
509
512
|
export interface II18nManager {
|
|
510
513
|
/**
|
|
511
514
|
* translate text
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare type IMethod = 'get' | 'GET' | 'delete' | 'DELETE' | 'head' | 'HEAD' | 'options' | 'OPTIONS' | 'post' | 'POST' | 'put' | 'PUT' | 'patch' | 'PATCH' | 'purge' | 'PURGE' | 'link' | 'LINK' | 'unlink' | 'UNLINK';
|
|
2
|
+
export interface IHeaders {
|
|
3
|
+
[key: string]: any;
|
|
4
|
+
}
|
|
5
|
+
export interface IRequestPromiseOptions {
|
|
6
|
+
baseUrl?: string | undefined;
|
|
7
|
+
url?: string;
|
|
8
|
+
method?: IMethod;
|
|
9
|
+
formData?: {
|
|
10
|
+
[key: string]: any;
|
|
11
|
+
} | undefined;
|
|
12
|
+
qs?: any;
|
|
13
|
+
json?: boolean;
|
|
14
|
+
body?: any;
|
|
15
|
+
resolveWithFullResponse?: boolean;
|
|
16
|
+
headers?: IHeaders;
|
|
17
|
+
proxy?: any;
|
|
18
|
+
timeout?: number;
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "picgo",
|
|
3
|
-
"version": "1.5.0-alpha.
|
|
3
|
+
"version": "1.5.0-alpha.13",
|
|
4
4
|
"description": "A tool for picture uploading",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -66,7 +66,6 @@
|
|
|
66
66
|
"@types/mime-types": "^2.1.0",
|
|
67
67
|
"@types/minimatch": "^3.0.3",
|
|
68
68
|
"@types/node": "16.11.7",
|
|
69
|
-
"@types/request-promise-native": "^1.0.15",
|
|
70
69
|
"@types/resolve": "^0.0.8",
|
|
71
70
|
"@types/rimraf": "^3.0.0",
|
|
72
71
|
"@types/tunnel": "^0.0.3",
|