picgo 1.5.0-alpha.1 → 1.5.0-alpha.10

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