universal-picgo 1.11.0 → 1.11.2

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/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "universal-picgo",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "type": "module",
5
5
  "description": "picgo lib for node, browser and electron",
6
6
  "main": "./dist/index.js",
@@ -1,5 +1,5 @@
1
- import { default as ExternalPicgoConfigDb } from '../db/externalPicGo';
2
1
  import { IImgInfo, IPicGo } from '../types';
2
+ import { default as ExternalPicgoConfigDb } from '../db/externalPicGo';
3
3
 
4
4
  /**
5
5
  *外部的PicGO 上传 Api
@@ -1,5 +1,5 @@
1
- import { EventEmitter } from '../utils/nodePolyfill';
2
1
  import { IPicGo } from '../types';
2
+ import { EventEmitter } from '../utils/nodePolyfill';
3
3
 
4
4
  export declare class Lifecycle extends EventEmitter {
5
5
  private readonly ctx;
@@ -1,8 +1,8 @@
1
- import { ILogger } from 'zhi-lib-base';
2
- import { EventEmitter } from '../utils/nodePolyfill';
3
- import { IHelper, II18nManager, IImgInfo, IPicGo, IPicGoPlugin, IPicGoPluginInterface, IPluginLoader, IStringKeyMap } from '../types';
4
- import { PluginHandler } from '../lib/PluginHandler';
5
1
  import { PicGoRequestWrapper } from '../lib/PicGoRequest';
2
+ import { PluginHandler } from '../lib/PluginHandler';
3
+ import { IHelper, II18nManager, IImgInfo, IPicGo, IPicGoPlugin, IPicGoPluginInterface, IPluginLoader, IStringKeyMap } from '../types';
4
+ import { EventEmitter } from '../utils/nodePolyfill';
5
+ import { ILogger } from 'zhi-lib-base';
6
6
 
7
7
  declare class UniversalPicGo extends EventEmitter implements IPicGo {
8
8
  private _config;
@@ -1,5 +1,5 @@
1
- import { IConfig, IPicGo, IPicgoDb } from '../../types';
2
1
  import { IJSON } from 'universal-picgo-store';
2
+ import { IConfig, IPicGo, IPicgoDb } from '../../types';
3
3
 
4
4
  declare class ConfigDb implements IPicgoDb<IConfig> {
5
5
  private readonly ctx;
@@ -1,6 +1,6 @@
1
- import { IExternalPicgoConfig, IPicGo, IPicgoDb } from '../../types';
2
- import { IJSON } from 'universal-picgo-store';
3
1
  import { PicgoTypeEnum } from '../../utils/enums';
2
+ import { IJSON } from 'universal-picgo-store';
3
+ import { IExternalPicgoConfig, IPicGo, IPicgoDb } from '../../types';
4
4
 
5
5
  declare class ExternalPicgoConfigDb implements IPicgoDb<IExternalPicgoConfig> {
6
6
  private readonly ctx;
@@ -1,5 +1,5 @@
1
- import { IPicGo, IPicgoDb } from '../../types';
2
1
  import { IJSON } from 'universal-picgo-store';
2
+ import { IPicGo, IPicgoDb } from '../../types';
3
3
 
4
4
  declare class PluginLoaderDb implements IPicgoDb<any> {
5
5
  private readonly ctx;
@@ -1,5 +1,5 @@
1
- import { II18nManager, ILocale, IPicGo, IStringKeyMap } from '../types';
2
1
  import { ILocalesKey } from './zh-CN';
2
+ import { II18nManager, ILocale, IPicGo, IStringKeyMap } from '../types';
3
3
 
4
4
  declare class I18nManager implements II18nManager {
5
5
  private readonly i18n;
@@ -1,13 +1,13 @@
1
- import { UniversalPicGo } from './core/UniversalPicGo';
2
- import { ExternalPicgo } from './core/ExternalPicgo';
3
- import { default as ConfigDb } from './db/config';
4
- import { default as PluginLoaderDb } from './db/pluginLoder';
5
- import { default as ExternalPicgoConfigDb } from './db/externalPicGo';
6
- import { picgoEventBus } from './utils/picgoEventBus';
7
- import { currentWin, hasNodeEnv, parentWin, win } from 'universal-picgo-store';
8
- import { IBusEvent, PicgoTypeEnum } from './utils/enums';
9
- import { IConfig, IExternalPicgoConfig, IImgInfo, IPicBedType, IPicGo, IPicgoDb, IPicGoPlugin, IPluginConfig, IUploaderConfigItem, IUploaderConfigListItem } from './types';
10
1
  import { calculateMD5, isFileOrBlob, isSiyuanProxyAvailable } from './utils/common';
2
+ import { IConfig, IExternalPicgoConfig, IImgInfo, IPicBedType, IPicGo, IPicgoDb, IPicGoPlugin, IPluginConfig, IUploaderConfigItem, IUploaderConfigListItem } from './types';
3
+ import { IBusEvent, PicgoTypeEnum } from './utils/enums';
4
+ import { currentWin, hasNodeEnv, parentWin, win } from 'universal-picgo-store';
5
+ import { picgoEventBus } from './utils/picgoEventBus';
6
+ import { default as ExternalPicgoConfigDb } from './db/externalPicGo';
7
+ import { default as PluginLoaderDb } from './db/pluginLoder';
8
+ import { default as ConfigDb } from './db/config';
9
+ import { ExternalPicgo } from './core/ExternalPicgo';
10
+ import { UniversalPicGo } from './core/UniversalPicGo';
11
11
 
12
12
  export { UniversalPicGo, ExternalPicgo, picgoEventBus };
13
13
  export { ConfigDb, PluginLoaderDb, ExternalPicgoConfigDb };
@@ -1,5 +1,5 @@
1
- import { AxiosRequestConfig } from 'axios';
2
1
  import { IPicGo, IResponse } from '../types';
2
+ import { AxiosRequestConfig } from 'axios';
3
3
 
4
4
  declare class PicGoRequestWrapper {
5
5
  private readonly ctx;
@@ -1,5 +1,5 @@
1
- import { S3Client } from '@aws-sdk/client-s3';
2
1
  import { IAwsS3Config, IImgInfo, IPicGo } from '../../../types';
2
+ import { S3Client } from '@aws-sdk/client-s3';
3
3
 
4
4
  export interface IUploadResult {
5
5
  index: number;
@@ -1,7 +1,7 @@
1
- import { IImgSize, IPathTransformedImgInfo, IPicGo, IPluginNameType, Undefinable } from '../types';
2
- import { win } from 'universal-picgo-store';
3
- import { Buffer } from './nodePolyfill';
4
1
  import { ILogger } from 'zhi-lib-base';
2
+ import { Buffer } from './nodePolyfill';
3
+ import { win } from 'universal-picgo-store';
4
+ import { IImgSize, IPathTransformedImgInfo, IPicGo, IPluginNameType, Undefinable } from '../types';
5
5
 
6
6
  export declare const isUrl: (url: string) => boolean;
7
7
  /**
@@ -1,4 +1,4 @@
1
- import { imageType } from './types';
2
1
  import { win } from 'universal-picgo-store';
2
+ import { imageType } from './types';
3
3
 
4
4
  export declare function detector(input: typeof win.Uint8Array): imageType | undefined;
@@ -1,6 +1,6 @@
1
- import { ISizeCalculationResult } from './types/interface';
2
- import { imageType } from './types';
3
1
  import { win } from 'universal-picgo-store';
2
+ import { imageType } from './types';
3
+ import { ISizeCalculationResult } from './types/interface';
4
4
 
5
5
  type CallbackFn = (e: Error | null, r?: ISizeCalculationResult) => void;
6
6
  export default imageSize;
@@ -1,4 +1,4 @@
1
- import { EventEmitter } from 'node:events';
2
1
  import { Buffer } from 'node:buffer';
2
+ import { EventEmitter } from 'node:events';
3
3
 
4
4
  export { EventEmitter, Buffer };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "universal-picgo",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "type": "module",
5
5
  "description": "picgo lib for node, browser and electron",
6
6
  "main": "./dist/index.js",
@@ -41,7 +41,7 @@
41
41
  "queue": "^7.0.0",
42
42
  "zhi-lib-base": "^0.8.0",
43
43
  "file-type": "^16.2.0",
44
- "universal-picgo-store": "1.11.0"
44
+ "universal-picgo-store": "1.11.2"
45
45
  },
46
46
  "publishConfig": {
47
47
  "access": "public"