piclist 0.8.14 → 1.0.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.
Files changed (52) hide show
  1. package/.eslintrc.js +4 -1
  2. package/dist/core/Lifecycle.d.ts +1 -1
  3. package/dist/core/PicGo.d.ts +1 -1
  4. package/dist/i18n/en.d.ts +1 -1
  5. package/dist/i18n/index.d.ts +4 -4
  6. package/dist/i18n/zh-CN.d.ts +4 -2
  7. package/dist/i18n/zh-TW.d.ts +1 -1
  8. package/dist/index.cjs.js +2 -2
  9. package/dist/index.esm.js +2 -2
  10. package/dist/lib/Commander.d.ts +2 -2
  11. package/dist/lib/LifecyclePlugins.d.ts +1 -1
  12. package/dist/lib/Logger.d.ts +1 -1
  13. package/dist/lib/PluginHandler.d.ts +1 -1
  14. package/dist/lib/PluginLoader.d.ts +1 -1
  15. package/dist/lib/Request.d.ts +2 -2
  16. package/dist/plugins/beforetransformer/compress.d.ts +1 -1
  17. package/dist/plugins/beforetransformer/watermark.d.ts +1 -1
  18. package/dist/plugins/beforeupload/buildInRename.d.ts +1 -1
  19. package/dist/plugins/commander/config.d.ts +1 -1
  20. package/dist/plugins/commander/i18n.d.ts +1 -1
  21. package/dist/plugins/commander/index.d.ts +1 -1
  22. package/dist/plugins/commander/init.d.ts +1 -1
  23. package/dist/plugins/commander/pluginHandler.d.ts +1 -1
  24. package/dist/plugins/commander/proxy.d.ts +1 -1
  25. package/dist/plugins/commander/setting.d.ts +1 -1
  26. package/dist/plugins/commander/upload.d.ts +1 -1
  27. package/dist/plugins/commander/use.d.ts +1 -1
  28. package/dist/plugins/transformer/base64.d.ts +1 -1
  29. package/dist/plugins/transformer/index.d.ts +1 -1
  30. package/dist/plugins/transformer/path.d.ts +1 -1
  31. package/dist/plugins/uploader/aliyun.d.ts +1 -1
  32. package/dist/plugins/uploader/github.d.ts +1 -1
  33. package/dist/plugins/uploader/imgur.d.ts +1 -1
  34. package/dist/plugins/uploader/index.d.ts +1 -1
  35. package/dist/plugins/uploader/local.d.ts +1 -1
  36. package/dist/plugins/uploader/qiniu.d.ts +1 -1
  37. package/dist/plugins/uploader/sftp.d.ts +1 -1
  38. package/dist/plugins/uploader/smms.d.ts +1 -1
  39. package/dist/plugins/uploader/tcyun.d.ts +1 -1
  40. package/dist/plugins/uploader/upyun.d.ts +1 -1
  41. package/dist/plugins/uploader/webdav.d.ts +1 -1
  42. package/dist/types/index.d.ts +37 -49
  43. package/dist/types/oldRequest.d.ts +3 -7
  44. package/dist/utils/common.d.ts +1 -1
  45. package/dist/utils/createContext.d.ts +1 -1
  46. package/dist/utils/db.d.ts +2 -2
  47. package/dist/utils/getClipboardImage.d.ts +2 -2
  48. package/dist/utils/initUtils.d.ts +1 -1
  49. package/dist/utils/interfaces.d.ts +9 -13
  50. package/dist/utils/sshClient.d.ts +1 -1
  51. package/package.json +28 -38
  52. package/rollup.config.js +2 -2
package/.eslintrc.js CHANGED
@@ -20,6 +20,9 @@ module.exports = {
20
20
  '@typescript-eslint/prefer-nullish-coalescing': 0,
21
21
  '@typescript-eslint/return-await': 0,
22
22
  '@typescript-eslint/no-floating-promises': 0,
23
- '@typescript-eslint/no-non-null-assertion': 0
23
+ '@typescript-eslint/no-non-null-assertion': 0,
24
+ "@typescript-eslint/consistent-type-imports": ["error", {
25
+ "disallowTypeAnnotations": false
26
+ }]
24
27
  }
25
28
  }
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { EventEmitter } from 'events';
3
- import { IPicGo } from '../types';
3
+ import { type IPicGo } from '../types';
4
4
  export declare class Lifecycle extends EventEmitter {
5
5
  private readonly ctx;
6
6
  private readonly ttfLink;
@@ -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, IPicGoPlugin, IPicGoPluginInterface, IRequest } from '../types';
5
+ import { type IHelper, type IImgInfo, type IPicGo, type IStringKeyMap, type IPluginLoader, type II18nManager, type IPicGoPlugin, type IPicGoPluginInterface, type IRequest } from '../types';
6
6
  import Request from '../lib/Request';
7
7
  import PluginHandler from '../lib/PluginHandler';
8
8
  export declare class PicGo extends EventEmitter implements IPicGo {
package/dist/i18n/en.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import { ILocales } from './zh-CN';
1
+ import { type ILocales } from './zh-CN';
2
2
  export declare const EN: ILocales;
@@ -1,7 +1,7 @@
1
- import { ILocalesKey } from './zh-CN';
2
- import { IPicGo } from '../types';
3
- import { IStringKeyMap, II18nManager } from '../types/index';
4
- import { ILocale } from '@picgo/i18n/dist/types';
1
+ import { type ILocalesKey } from './zh-CN';
2
+ import { type IPicGo } from '../types';
3
+ import { type IStringKeyMap, type II18nManager } from '../types/index';
4
+ import { type ILocale } from '@picgo/i18n/dist/types';
5
5
  declare class I18nManager implements II18nManager {
6
6
  private readonly i18n;
7
7
  private readonly objectAdapter;
@@ -89,6 +89,8 @@ export declare const ZH_CN: {
89
89
  PICBED_UPYUN_PATH: string;
90
90
  PICBED_UPYUN_URL: string;
91
91
  PICBED_UPYUN_OPTIONS: string;
92
+ PICBED_UPYUN_ANTI_LEECH_TOKEN: string;
93
+ PICBED_UPYUN_EXPIRE_TIME: string;
92
94
  PICBED_UPYUN_MESSAGE_OPERATOR: string;
93
95
  PICBED_UPYUN_MESSAGE_PASSWORD: string;
94
96
  PICBED_UPYUN_MESSAGE_URL: string;
@@ -190,5 +192,5 @@ export declare const ZH_CN: {
190
192
  PLUGIN_HANDLER_PLUGIN_UPDATE_FAILED_REASON: string;
191
193
  PLUGIN_HANDLER_PLUGIN_UPDATE_FAILED_VALID: string;
192
194
  };
193
- export declare type ILocalesKey = keyof typeof ZH_CN;
194
- export declare type ILocales = typeof ZH_CN;
195
+ export type ILocalesKey = keyof typeof ZH_CN;
196
+ export type ILocales = typeof ZH_CN;
@@ -1,2 +1,2 @@
1
- import { ILocales } from './zh-CN';
1
+ import { type ILocales } from './zh-CN';
2
2
  export declare const ZH_TW: ILocales;