picgo 1.5.0-alpha.5 → 1.5.0-alpha.8
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 +39 -0
- package/dist/core/PicGo.d.ts +2 -1
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/zh-CN.d.ts +26 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/lib/Logger.d.ts +1 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/utils/common.d.ts +2 -0
- package/package.json +6 -3
- package/rollup.config.js +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,42 @@
|
|
|
1
|
+
# :tada: 1.5.0-alpha.8 (2022-08-27)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### :sparkles: Features
|
|
5
|
+
|
|
6
|
+
* add backupDomain for sm.ms ([c6d54f1](https://github.com/PicGo/PicGo-Core/commit/c6d54f1))
|
|
7
|
+
* add debug logger type ([4342268](https://github.com/PicGo/PicGo-Core/commit/4342268))
|
|
8
|
+
* add picgo.use for easily using plugin ([c0107f1](https://github.com/PicGo/PicGo-Core/commit/c0107f1))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### :bug: Bug Fixes
|
|
12
|
+
|
|
13
|
+
* sometime tencent-cloud error message is empty ([6355e1b](https://github.com/PicGo/PicGo-Core/commit/6355e1b))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# :tada: 1.5.0-alpha.7 (2022-08-20)
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
### :sparkles: Features
|
|
21
|
+
|
|
22
|
+
* finish i18n text ([11b3197](https://github.com/PicGo/PicGo-Core/commit/11b3197))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### :bug: Bug Fixes
|
|
26
|
+
|
|
27
|
+
* aliyun content-type -> Content-Type ([a649fcc](https://github.com/PicGo/PicGo-Core/commit/a649fcc))
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# :tada: 1.5.0-alpha.6 (2022-08-17)
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### :bug: Bug Fixes
|
|
35
|
+
|
|
36
|
+
* tencent cos upload error ([61df53a](https://github.com/PicGo/PicGo-Core/commit/61df53a))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
1
40
|
# :tada: 1.5.0-alpha.5 (2022-07-31)
|
|
2
41
|
|
|
3
42
|
|
package/dist/core/PicGo.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
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 } from '../types';
|
|
5
|
+
import { IHelper, IImgInfo, IPicGo, IStringKeyMap, IPluginLoader, II18nManager, IPicGoPlugin, IPicGoPluginInterface } from '../types';
|
|
6
6
|
import Request from '../lib/Request';
|
|
7
7
|
import PluginHandler from '../lib/PluginHandler';
|
|
8
8
|
import { RequestPromiseAPI } from 'request-promise-native';
|
|
@@ -33,6 +33,7 @@ export declare class PicGo extends EventEmitter implements IPicGo {
|
|
|
33
33
|
private initConfigPath;
|
|
34
34
|
private initConfig;
|
|
35
35
|
private init;
|
|
36
|
+
use(plugin: IPicGoPlugin): IPicGoPluginInterface;
|
|
36
37
|
registerCommands(): void;
|
|
37
38
|
getConfig<T>(name?: string): T;
|
|
38
39
|
saveConfig(config: IStringKeyMap<any>): void;
|
package/dist/i18n/index.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ declare class I18nManager implements II18nManager {
|
|
|
7
7
|
private readonly objectAdapter;
|
|
8
8
|
private readonly ctx;
|
|
9
9
|
constructor(ctx: IPicGo);
|
|
10
|
+
private loadOutterI18n;
|
|
11
|
+
private getOutterI18nFolder;
|
|
10
12
|
translate<T extends string>(key: ILocalesKey | T, args?: IStringKeyMap<string>): string;
|
|
11
13
|
setLanguage(language: string): void;
|
|
12
14
|
addLocale(language: string, locales: ILocale): boolean;
|
package/dist/i18n/zh-CN.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export declare const ZH_CN: {
|
|
|
7
7
|
AUTH_FAILED: string;
|
|
8
8
|
PICBED_SMMS: string;
|
|
9
9
|
PICBED_SMMS_TOKEN: string;
|
|
10
|
+
PICBED_SMMS_BACKUP_DOMAIN: string;
|
|
11
|
+
PICBED_SMMS_MESSAGE_BACKUP_DOMAIN: string;
|
|
10
12
|
PICBED_ALICLOUD: string;
|
|
11
13
|
PICBED_ALICLOUD_ACCESSKEYID: string;
|
|
12
14
|
PICBED_ALICLOUD_ACCESSKEYSECRET: string;
|
|
@@ -15,6 +17,10 @@ export declare const ZH_CN: {
|
|
|
15
17
|
PICBED_ALICLOUD_PATH: string;
|
|
16
18
|
PICBED_ALICLOUD_CUSTOMURL: string;
|
|
17
19
|
PICBED_ALICLOUD_OPTIONS: string;
|
|
20
|
+
PICBED_ALICLOUD_MESSAGE_AREA: string;
|
|
21
|
+
PICBED_ALICLOUD_MESSAGE_PATH: string;
|
|
22
|
+
PICBED_ALICLOUD_MESSAGE_OPTIONS: string;
|
|
23
|
+
PICBED_ALICLOUD_MESSAGE_CUSTOMURL: string;
|
|
18
24
|
PICBED_TENCENTCLOUD: string;
|
|
19
25
|
PICBED_TENCENTCLOUD_VERSION: string;
|
|
20
26
|
PICBED_TENCENTCLOUD_SECRETID: string;
|
|
@@ -23,13 +29,23 @@ export declare const ZH_CN: {
|
|
|
23
29
|
PICBED_TENCENTCLOUD_BUCKET: string;
|
|
24
30
|
PICBED_TENCENTCLOUD_AREA: string;
|
|
25
31
|
PICBED_TENCENTCLOUD_PATH: string;
|
|
32
|
+
PICBED_TENCENTCLOUD_OPTIONS: string;
|
|
26
33
|
PICBED_TENCENTCLOUD_CUSTOMURL: string;
|
|
34
|
+
PICBED_TENCENTCLOUD_MESSAGE_APPID: string;
|
|
35
|
+
PICBED_TENCENTCLOUD_MESSAGE_AREA: string;
|
|
36
|
+
PICBED_TENCENTCLOUD_MESSAGE_PATH: string;
|
|
37
|
+
PICBED_TENCENTCLOUD_MESSAGE_CUSTOMURL: string;
|
|
38
|
+
PICBED_TENCENTCLOUD_MESSAGE_OPTIONS: string;
|
|
27
39
|
PICBED_GITHUB: string;
|
|
28
40
|
PICBED_GITHUB_TOKEN: string;
|
|
29
41
|
PICBED_GITHUB_REPO: string;
|
|
30
42
|
PICBED_GITHUB_PATH: string;
|
|
31
43
|
PICBED_GITHUB_BRANCH: string;
|
|
32
44
|
PICBED_GITHUB_CUSTOMURL: string;
|
|
45
|
+
PICBED_GITHUB_MESSAGE_REPO: string;
|
|
46
|
+
PICBED_GITHUB_MESSAGE_BRANCH: string;
|
|
47
|
+
PICBED_GITHUB_MESSAGE_PATH: string;
|
|
48
|
+
PICBED_GITHUB_MESSAGE_CUSTOMURL: string;
|
|
33
49
|
PICBED_QINIU: string;
|
|
34
50
|
PICBED_QINIU_ACCESSKEY: string;
|
|
35
51
|
PICBED_QINIU_SECRETKEY: string;
|
|
@@ -38,9 +54,14 @@ export declare const ZH_CN: {
|
|
|
38
54
|
PICBED_QINIU_URL: string;
|
|
39
55
|
PICBED_QINIU_OPTIONS: string;
|
|
40
56
|
PICBED_QINIU_AREA: string;
|
|
57
|
+
PICBED_QINIU_MESSAGE_PATH: string;
|
|
58
|
+
PICBED_QINIU_MESSAGE_AREA: string;
|
|
59
|
+
PICBED_QINIU_MESSAGE_OPTIONS: string;
|
|
60
|
+
PICBED_QINIU_MESSAGE_URL: string;
|
|
41
61
|
PICBED_IMGUR: string;
|
|
42
62
|
PICBED_IMGUR_CLIENTID: string;
|
|
43
63
|
PICBED_IMGUR_PROXY: string;
|
|
64
|
+
PICBED_IMGUR_MESSAGE_PROXY: string;
|
|
44
65
|
PICBED_UPYUN: string;
|
|
45
66
|
PICBED_UPYUN_BUCKET: string;
|
|
46
67
|
PICBED_UPYUN_OPERATOR: string;
|
|
@@ -48,6 +69,11 @@ export declare const ZH_CN: {
|
|
|
48
69
|
PICBED_UPYUN_PATH: string;
|
|
49
70
|
PICBED_UPYUN_URL: string;
|
|
50
71
|
PICBED_UPYUN_OPTIONS: string;
|
|
72
|
+
PICBED_UPYUN_MESSAGE_OPERATOR: string;
|
|
73
|
+
PICBED_UPYUN_MESSAGE_PASSWORD: string;
|
|
74
|
+
PICBED_UPYUN_MESSAGE_URL: string;
|
|
75
|
+
PICBED_UPYUN_MESSAGE_OPTIONS: string;
|
|
76
|
+
PICBED_UPYUN_MESSAGE_PATH: string;
|
|
51
77
|
PLUGIN_HANDLER_PLUGIN_INSTALL_SUCCESS: string;
|
|
52
78
|
PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED: string;
|
|
53
79
|
PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED_REASON: string;
|