picgo 1.5.0-alpha.6 → 1.5.0-alpha.9

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 CHANGED
@@ -1,3 +1,49 @@
1
+ # :tada: 1.5.0-alpha.9 (2022-09-03)
2
+
3
+
4
+ ### :sparkles: Features
5
+
6
+ * finish request -> axios ([b89cf1e](https://github.com/PicGo/PicGo-Core/commit/b89cf1e))
7
+
8
+
9
+ ### :bug: Bug Fixes
10
+
11
+ * qiniu error msg can't show ([0e4661b](https://github.com/PicGo/PicGo-Core/commit/0e4661b))
12
+ * sm.ms backupDomain message text ([45424d1](https://github.com/PicGo/PicGo-Core/commit/45424d1))
13
+ * when request-options resolveWithFullResponse is false bug ([eb8217a](https://github.com/PicGo/PicGo-Core/commit/eb8217a))
14
+
15
+
16
+
17
+ # :tada: 1.5.0-alpha.8 (2022-08-27)
18
+
19
+
20
+ ### :sparkles: Features
21
+
22
+ * add backupDomain for sm.ms ([c6d54f1](https://github.com/PicGo/PicGo-Core/commit/c6d54f1))
23
+ * add debug logger type ([4342268](https://github.com/PicGo/PicGo-Core/commit/4342268))
24
+ * add picgo.use for easily using plugin ([c0107f1](https://github.com/PicGo/PicGo-Core/commit/c0107f1))
25
+
26
+
27
+ ### :bug: Bug Fixes
28
+
29
+ * sometime tencent-cloud error message is empty ([6355e1b](https://github.com/PicGo/PicGo-Core/commit/6355e1b))
30
+
31
+
32
+
33
+ # :tada: 1.5.0-alpha.7 (2022-08-20)
34
+
35
+
36
+ ### :sparkles: Features
37
+
38
+ * finish i18n text ([11b3197](https://github.com/PicGo/PicGo-Core/commit/11b3197))
39
+
40
+
41
+ ### :bug: Bug Fixes
42
+
43
+ * aliyun content-type -> Content-Type ([a649fcc](https://github.com/PicGo/PicGo-Core/commit/a649fcc))
44
+
45
+
46
+
1
47
  # :tada: 1.5.0-alpha.6 (2022-08-17)
2
48
 
3
49
 
@@ -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 } 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,12 +32,13 @@ export declare class PicGo extends EventEmitter implements IPicGo {
33
32
  private initConfigPath;
34
33
  private initConfig;
35
34
  private init;
35
+ use(plugin: IPicGoPlugin): IPicGoPluginInterface;
36
36
  registerCommands(): void;
37
37
  getConfig<T>(name?: string): T;
38
38
  saveConfig(config: IStringKeyMap<any>): void;
39
39
  removeConfig(key: string, propName: string): void;
40
40
  setConfig(config: IStringKeyMap<any>): void;
41
41
  unsetConfig(key: string, propName: string): void;
42
- get request(): RequestPromiseAPI;
42
+ get request(): IRequest['request'];
43
43
  upload(input?: any[]): Promise<IImgInfo[] | Error>;
44
44
  }
@@ -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;
@@ -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;