picgo 1.5.0-alpha.8 → 1.5.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/CHANGELOG.md +104 -0
- package/dist/core/PicGo.d.ts +8 -4
- package/dist/i18n/zh-TW.d.ts +2 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/lib/Commander.d.ts +10 -4
- package/dist/lib/LifecyclePlugins.d.ts +1 -0
- package/dist/lib/Request.d.ts +6 -5
- package/dist/types/index.d.ts +74 -7
- package/dist/types/oldRequest.d.ts +19 -0
- package/dist/utils/common.d.ts +3 -2
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,107 @@
|
|
|
1
|
+
# :tada: 1.5.0 (2022-11-13)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
# :tada: 1.5.0-alpha.17 (2022-11-13)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### :sparkles: Features
|
|
9
|
+
|
|
10
|
+
* update picgo.use ([e19bb6e](https://github.com/PicGo/PicGo-Core/commit/e19bb6e))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### :bug: Bug Fixes
|
|
14
|
+
|
|
15
|
+
* some case will cause proxy not work ([6272303](https://github.com/PicGo/PicGo-Core/commit/6272303))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
# :tada: 1.5.0-alpha.16 (2022-11-09)
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
### :bug: Bug Fixes
|
|
23
|
+
|
|
24
|
+
* upyun url-options is not required ([9736a11](https://github.com/PicGo/PicGo-Core/commit/9736a11))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
# :tada: 1.5.0-alpha.15 (2022-10-24)
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### :bug: Bug Fixes
|
|
32
|
+
|
|
33
|
+
* tencent cos url encode bug ([eafb70f](https://github.com/PicGo/PicGo-Core/commit/eafb70f))
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
# :tada: 1.5.0-alpha.14 (2022-10-24)
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
### :bug: Bug Fixes
|
|
41
|
+
|
|
42
|
+
* url encode bug ([4c70e9b](https://github.com/PicGo/PicGo-Core/commit/4c70e9b))
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
# :tada: 1.5.0-alpha.13 (2022-10-19)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
### :bug: Bug Fixes
|
|
50
|
+
|
|
51
|
+
* type error ([b934e8a](https://github.com/PicGo/PicGo-Core/commit/b934e8a))
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
### :package: Chore
|
|
55
|
+
|
|
56
|
+
* create oldRequest types ([749359a](https://github.com/PicGo/PicGo-Core/commit/749359a))
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
# :tada: 1.5.0-alpha.12 (2022-10-14)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
### :bug: Bug Fixes
|
|
64
|
+
|
|
65
|
+
* types bug ([d77e6f3](https://github.com/PicGo/PicGo-Core/commit/d77e6f3))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
# :tada: 1.5.0-alpha.11 (2022-10-13)
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
# :tada: 1.5.0-alpha.10 (2022-09-25)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
### :sparkles: Features
|
|
77
|
+
|
|
78
|
+
* add zh-TW ([#135](https://github.com/PicGo/PicGo-Core/issues/135)) ([d111d6a](https://github.com/PicGo/PicGo-Core/commit/d111d6a))
|
|
79
|
+
* update linux.sh ([#134](https://github.com/PicGo/PicGo-Core/issues/134)) ([2910c20](https://github.com/PicGo/PicGo-Core/commit/2910c20))
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
### :bug: Bug Fixes
|
|
83
|
+
|
|
84
|
+
* some texts in zh-TW ([#136](https://github.com/PicGo/PicGo-Core/issues/136)) ([907e6c9](https://github.com/PicGo/PicGo-Core/commit/907e6c9))
|
|
85
|
+
* url image download bug & tencent cos url encode bug ([53d54f8](https://github.com/PicGo/PicGo-Core/commit/53d54f8))
|
|
86
|
+
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
# :tada: 1.5.0-alpha.9 (2022-09-03)
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
### :sparkles: Features
|
|
93
|
+
|
|
94
|
+
* finish request -> axios ([b89cf1e](https://github.com/PicGo/PicGo-Core/commit/b89cf1e))
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
### :bug: Bug Fixes
|
|
98
|
+
|
|
99
|
+
* qiniu error msg can't show ([0e4661b](https://github.com/PicGo/PicGo-Core/commit/0e4661b))
|
|
100
|
+
* sm.ms backupDomain message text ([45424d1](https://github.com/PicGo/PicGo-Core/commit/45424d1))
|
|
101
|
+
* when request-options resolveWithFullResponse is false bug ([eb8217a](https://github.com/PicGo/PicGo-Core/commit/eb8217a))
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
|
|
1
105
|
# :tada: 1.5.0-alpha.8 (2022-08-27)
|
|
2
106
|
|
|
3
107
|
|
package/dist/core/PicGo.d.ts
CHANGED
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
import { EventEmitter } from 'events';
|
|
3
3
|
import Commander from '../lib/Commander';
|
|
4
4
|
import { Logger } from '../lib/Logger';
|
|
5
|
-
import { IHelper, IImgInfo, IPicGo, IStringKeyMap, IPluginLoader, II18nManager, IPicGoPlugin, IPicGoPluginInterface } from '../types';
|
|
5
|
+
import { IHelper, IImgInfo, IPicGo, IStringKeyMap, IPluginLoader, II18nManager, IPicGoPlugin, IPicGoPluginInterface, IRequest } from '../types';
|
|
6
6
|
import Request from '../lib/Request';
|
|
7
7
|
import PluginHandler from '../lib/PluginHandler';
|
|
8
|
-
import { RequestPromiseAPI } from 'request-promise-native';
|
|
9
8
|
export declare class PicGo extends EventEmitter implements IPicGo {
|
|
10
9
|
private _config;
|
|
11
10
|
private lifecycle;
|
|
@@ -33,13 +32,18 @@ export declare class PicGo extends EventEmitter implements IPicGo {
|
|
|
33
32
|
private initConfigPath;
|
|
34
33
|
private initConfig;
|
|
35
34
|
private init;
|
|
36
|
-
|
|
35
|
+
/**
|
|
36
|
+
* easily mannually load a plugin
|
|
37
|
+
* if provide plugin name, will register plugin by name
|
|
38
|
+
* or just instantiate a plugin
|
|
39
|
+
*/
|
|
40
|
+
use(plugin: IPicGoPlugin, name?: string): IPicGoPluginInterface;
|
|
37
41
|
registerCommands(): void;
|
|
38
42
|
getConfig<T>(name?: string): T;
|
|
39
43
|
saveConfig(config: IStringKeyMap<any>): void;
|
|
40
44
|
removeConfig(key: string, propName: string): void;
|
|
41
45
|
setConfig(config: IStringKeyMap<any>): void;
|
|
42
46
|
unsetConfig(key: string, propName: string): void;
|
|
43
|
-
get request():
|
|
47
|
+
get request(): IRequest['request'];
|
|
44
48
|
upload(input?: any[]): Promise<IImgInfo[] | Error>;
|
|
45
49
|
}
|