picgo 1.5.0-alpha.1 → 1.5.0-alpha.11

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.
@@ -12,7 +12,7 @@ jobs:
12
12
  - name: Setup node
13
13
  uses: actions/setup-node@v1
14
14
  with:
15
- node-version: '12.x'
15
+ node-version: '16.x'
16
16
  registry-url: 'https://registry.npmjs.org'
17
17
  - name: Install modules
18
18
  run: yarn
@@ -12,7 +12,7 @@ jobs:
12
12
  - name: Setup node
13
13
  uses: actions/setup-node@v1
14
14
  with:
15
- node-version: '12.x'
15
+ node-version: '16.x'
16
16
  registry-url: 'https://registry.npmjs.org'
17
17
  - name: Install modules
18
18
  run: yarn
@@ -9,7 +9,7 @@ jobs:
9
9
  - name: Setup node
10
10
  uses: actions/setup-node@v1
11
11
  with:
12
- node-version: '12.x'
12
+ node-version: '16.x'
13
13
  registry-url: 'https://registry.npmjs.org'
14
14
  - name: Install modules
15
15
  run: yarn
package/CHANGELOG.md CHANGED
@@ -1,3 +1,125 @@
1
+ # :tada: 1.5.0-alpha.11 (2022-10-13)
2
+
3
+
4
+
5
+ # :tada: 1.5.0-alpha.10 (2022-09-25)
6
+
7
+
8
+ ### :sparkles: Features
9
+
10
+ * add zh-TW ([#135](https://github.com/PicGo/PicGo-Core/issues/135)) ([d111d6a](https://github.com/PicGo/PicGo-Core/commit/d111d6a))
11
+ * update linux.sh ([#134](https://github.com/PicGo/PicGo-Core/issues/134)) ([2910c20](https://github.com/PicGo/PicGo-Core/commit/2910c20))
12
+
13
+
14
+ ### :bug: Bug Fixes
15
+
16
+ * some texts in zh-TW ([#136](https://github.com/PicGo/PicGo-Core/issues/136)) ([907e6c9](https://github.com/PicGo/PicGo-Core/commit/907e6c9))
17
+ * url image download bug & tencent cos url encode bug ([53d54f8](https://github.com/PicGo/PicGo-Core/commit/53d54f8))
18
+
19
+
20
+
21
+ # :tada: 1.5.0-alpha.9 (2022-09-03)
22
+
23
+
24
+ ### :sparkles: Features
25
+
26
+ * finish request -> axios ([b89cf1e](https://github.com/PicGo/PicGo-Core/commit/b89cf1e))
27
+
28
+
29
+ ### :bug: Bug Fixes
30
+
31
+ * qiniu error msg can't show ([0e4661b](https://github.com/PicGo/PicGo-Core/commit/0e4661b))
32
+ * sm.ms backupDomain message text ([45424d1](https://github.com/PicGo/PicGo-Core/commit/45424d1))
33
+ * when request-options resolveWithFullResponse is false bug ([eb8217a](https://github.com/PicGo/PicGo-Core/commit/eb8217a))
34
+
35
+
36
+
37
+ # :tada: 1.5.0-alpha.8 (2022-08-27)
38
+
39
+
40
+ ### :sparkles: Features
41
+
42
+ * add backupDomain for sm.ms ([c6d54f1](https://github.com/PicGo/PicGo-Core/commit/c6d54f1))
43
+ * add debug logger type ([4342268](https://github.com/PicGo/PicGo-Core/commit/4342268))
44
+ * add picgo.use for easily using plugin ([c0107f1](https://github.com/PicGo/PicGo-Core/commit/c0107f1))
45
+
46
+
47
+ ### :bug: Bug Fixes
48
+
49
+ * sometime tencent-cloud error message is empty ([6355e1b](https://github.com/PicGo/PicGo-Core/commit/6355e1b))
50
+
51
+
52
+
53
+ # :tada: 1.5.0-alpha.7 (2022-08-20)
54
+
55
+
56
+ ### :sparkles: Features
57
+
58
+ * finish i18n text ([11b3197](https://github.com/PicGo/PicGo-Core/commit/11b3197))
59
+
60
+
61
+ ### :bug: Bug Fixes
62
+
63
+ * aliyun content-type -> Content-Type ([a649fcc](https://github.com/PicGo/PicGo-Core/commit/a649fcc))
64
+
65
+
66
+
67
+ # :tada: 1.5.0-alpha.6 (2022-08-17)
68
+
69
+
70
+ ### :bug: Bug Fixes
71
+
72
+ * tencent cos upload error ([61df53a](https://github.com/PicGo/PicGo-Core/commit/61df53a))
73
+
74
+
75
+
76
+ # :tada: 1.5.0-alpha.5 (2022-07-31)
77
+
78
+
79
+ ### :sparkles: Features
80
+
81
+ * add log file size limit ([158be01](https://github.com/PicGo/PicGo-Core/commit/158be01))
82
+ * change inner db to @picgo/store ([0e90af3](https://github.com/PicGo/PicGo-Core/commit/0e90af3))
83
+
84
+
85
+ ### :bug: Bug Fixes
86
+
87
+ * build error ([674a6b5](https://github.com/PicGo/PicGo-Core/commit/674a6b5))
88
+
89
+
90
+
91
+ # :tada: 1.5.0-alpha.4 (2022-05-26)
92
+
93
+
94
+ ### :sparkles: Features
95
+
96
+ * add userAgent for tencent cloud COS ([acac59a](https://github.com/PicGo/PicGo-Core/commit/acac59a))
97
+
98
+
99
+
100
+ # :tada: 1.5.0-alpha.3 (2022-04-04)
101
+
102
+
103
+ ### :bug: Bug Fixes
104
+
105
+ * picgo-gui clipboard image uploading error ([1302f76](https://github.com/PicGo/PicGo-Core/commit/1302f76))
106
+
107
+
108
+
109
+ # :tada: 1.5.0-alpha.2 (2022-04-03)
110
+
111
+
112
+ ### :sparkles: Features
113
+
114
+ * add wayland support for linux ([#119](https://github.com/PicGo/PicGo-Core/issues/119)) ([28905f2](https://github.com/PicGo/PicGo-Core/commit/28905f2))
115
+
116
+
117
+ ### :bug: Bug Fixes
118
+
119
+ * qiniu && upyun errors ([587dd3f](https://github.com/PicGo/PicGo-Core/commit/587dd3f))
120
+
121
+
122
+
1
123
  # :tada: 1.5.0-alpha.1 (2022-03-08)
2
124
 
3
125
 
@@ -357,6 +479,3 @@
357
479
  ### :package: Chore
358
480
 
359
481
  * add picgo bump version ([c312302](https://github.com/PicGo/PicGo-Core/commit/c312302))
360
-
361
-
362
-
package/README.md CHANGED
@@ -15,7 +15,7 @@ A tool for picture uploading. Both CLI & api supports. It also supports plugin s
15
15
 
16
16
  ## Installation
17
17
 
18
- PicGo should be installed with node.js >= 12.
18
+ PicGo should be installed with node.js >= 12 (v1.5.0-alpha.4 and small) & node.js >= 16 (since v1.5.0-alpha.5).
19
19
 
20
20
  ### Global install
21
21
 
@@ -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;
@@ -0,0 +1,2 @@
1
+ import { ILocales } from './zh-CN';
2
+ export declare const ZH_TW: ILocales;