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/index.js +10402 -10531
- package/dist/package.json +1 -1
- package/dist/src/core/ExternalPicgo.d.ts +1 -1
- package/dist/src/core/Lifecycle.d.ts +1 -1
- package/dist/src/core/UniversalPicGo.d.ts +4 -4
- package/dist/src/db/config/index.d.ts +1 -1
- package/dist/src/db/externalPicGo/index.d.ts +2 -2
- package/dist/src/db/pluginLoder/index.d.ts +1 -1
- package/dist/src/i18n/index.d.ts +1 -1
- package/dist/src/index.d.ts +9 -9
- package/dist/src/lib/PicGoRequest.d.ts +1 -1
- package/dist/src/plugins/uploader/s3/uploader.d.ts +1 -1
- package/dist/src/utils/common.d.ts +3 -3
- package/dist/src/utils/image-size/detector.d.ts +1 -1
- package/dist/src/utils/image-size/index.d.ts +2 -2
- package/dist/src/utils/nodePolyfill.d.ts +1 -1
- package/package.json +2 -2
package/dist/package.json
CHANGED
|
@@ -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,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;
|
package/dist/src/i18n/index.d.ts
CHANGED
package/dist/src/index.d.ts
CHANGED
|
@@ -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,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,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;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-picgo",
|
|
3
|
-
"version": "1.11.
|
|
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.
|
|
44
|
+
"universal-picgo-store": "1.11.2"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|