universal-picgo 1.10.2 → 1.11.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.
- package/dist/index.js +11030 -10623
- package/dist/package.json +9 -9
- 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/i18n/zh-CN.d.ts +9 -0
- package/dist/src/index.d.ts +9 -9
- package/dist/src/lib/PicGoRequest.d.ts +1 -1
- package/dist/src/plugins/uploader/lsky/index.d.ts +3 -0
- 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 +10 -10
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-picgo",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "picgo lib for node, browser and electron",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,23 +27,23 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@terwer/eslint-config-custom": "^1.3.6",
|
|
29
29
|
"@terwer/vite-config-custom": "^0.7.6",
|
|
30
|
-
"@types/mime": "^
|
|
30
|
+
"@types/mime": "^4.0.0",
|
|
31
31
|
"@types/mime-types": "^2.1.4",
|
|
32
|
-
"vite-plugin-node-polyfills": "^0.
|
|
32
|
+
"vite-plugin-node-polyfills": "^0.22.0"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@aws-sdk/client-s3": "^3.421.0",
|
|
36
36
|
"@aws-sdk/s3-request-presigner": "^3.421.0",
|
|
37
|
-
"@smithy/types": "^
|
|
38
|
-
"@smithy/protocol-http": "^
|
|
39
|
-
"@smithy/querystring-builder": "^
|
|
40
|
-
"@smithy/fetch-http-handler": "^
|
|
37
|
+
"@smithy/types": "^3.0.0",
|
|
38
|
+
"@smithy/protocol-http": "^4.0.0",
|
|
39
|
+
"@smithy/querystring-builder": "^3.0.0",
|
|
40
|
+
"@smithy/fetch-http-handler": "^3.0.1",
|
|
41
41
|
"@picgo/i18n": "^1.0.0",
|
|
42
42
|
"ali-oss": "^6.20.0",
|
|
43
43
|
"axios": "^1.6.8",
|
|
44
|
-
"dayjs": "^1.11.
|
|
44
|
+
"dayjs": "^1.11.11",
|
|
45
45
|
"js-yaml": "^4.1.0",
|
|
46
|
-
"mime": "^
|
|
46
|
+
"mime": "^4.0.3",
|
|
47
47
|
"mime-types": "^2.1.35",
|
|
48
48
|
"queue": "^7.0.0",
|
|
49
49
|
"universal-picgo-store": "workspace:*",
|
|
@@ -1,8 +1,8 @@
|
|
|
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
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
|
+
import { PicGoRequestWrapper } from '../lib/PicGoRequest';
|
|
6
6
|
|
|
7
7
|
declare class UniversalPicGo extends EventEmitter implements IPicGo {
|
|
8
8
|
private _config;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { PicgoTypeEnum } from '../../utils/enums';
|
|
2
|
-
import { IJSON } from 'universal-picgo-store';
|
|
3
1
|
import { IExternalPicgoConfig, IPicGo, IPicgoDb } from '../../types';
|
|
2
|
+
import { IJSON } from 'universal-picgo-store';
|
|
3
|
+
import { PicgoTypeEnum } from '../../utils/enums';
|
|
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/i18n/zh-CN.d.ts
CHANGED
|
@@ -115,6 +115,15 @@ export declare const ZH_CN: {
|
|
|
115
115
|
PICBED_AWSS3PLIST_MESSAGE_REJECTUNAUTHORIZED: string;
|
|
116
116
|
PICBED_AWSS3PLIST_MESSAGE_ACL: string;
|
|
117
117
|
PICBED_AWSS3PLIST_MESSAGE_CORS_PROXY: string;
|
|
118
|
+
PICBED_LSKY: string;
|
|
119
|
+
PICBED_ISKY_SERVER: string;
|
|
120
|
+
PICBED_ISKY_MESSAGE_SERVER: string;
|
|
121
|
+
PICBED_ISKY_EMAIL: string;
|
|
122
|
+
PICBED_ISKY_MESSAGE_EMAIL: string;
|
|
123
|
+
PICBED_ISKY_PASSWORD: string;
|
|
124
|
+
PICBED_ISKY_MESSAGE_PASSWORD: string;
|
|
125
|
+
PICBED_ISKY_STRATEGYID: string;
|
|
126
|
+
PICBED_ISKY_MESSAGE_STRATEGYID: string;
|
|
118
127
|
PLUGIN_HANDLER_PLUGIN_INSTALL_SUCCESS: string;
|
|
119
128
|
PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED: string;
|
|
120
129
|
PLUGIN_HANDLER_PLUGIN_INSTALL_FAILED_REASON: string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
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
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
|
+
import { calculateMD5, isFileOrBlob, isSiyuanProxyAvailable } from './utils/common';
|
|
11
11
|
|
|
12
12
|
export { UniversalPicGo, ExternalPicgo, picgoEventBus };
|
|
13
13
|
export { ConfigDb, PluginLoaderDb, ExternalPicgoConfigDb };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ILogger } from 'zhi-lib-base';
|
|
2
|
-
import { Buffer } from './nodePolyfill';
|
|
3
|
-
import { win } from 'universal-picgo-store';
|
|
4
1
|
import { IImgSize, IPathTransformedImgInfo, IPicGo, IPluginNameType, Undefinable } from '../types';
|
|
2
|
+
import { win } from 'universal-picgo-store';
|
|
3
|
+
import { Buffer } from './nodePolyfill';
|
|
4
|
+
import { ILogger } from 'zhi-lib-base';
|
|
5
5
|
|
|
6
6
|
export declare const isUrl: (url: string) => boolean;
|
|
7
7
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { win } from 'universal-picgo-store';
|
|
2
|
-
import { imageType } from './types';
|
|
3
1
|
import { ISizeCalculationResult } from './types/interface';
|
|
2
|
+
import { imageType } from './types';
|
|
3
|
+
import { win } from 'universal-picgo-store';
|
|
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.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "picgo lib for node, browser and electron",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,28 +20,28 @@
|
|
|
20
20
|
"devDependencies": {
|
|
21
21
|
"@terwer/eslint-config-custom": "^1.3.6",
|
|
22
22
|
"@terwer/vite-config-custom": "^0.7.6",
|
|
23
|
-
"@types/mime": "^
|
|
23
|
+
"@types/mime": "^4.0.0",
|
|
24
24
|
"@types/mime-types": "^2.1.4",
|
|
25
|
-
"vite-plugin-node-polyfills": "^0.
|
|
25
|
+
"vite-plugin-node-polyfills": "^0.22.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@aws-sdk/client-s3": "^3.421.0",
|
|
29
29
|
"@aws-sdk/s3-request-presigner": "^3.421.0",
|
|
30
|
-
"@smithy/types": "^
|
|
31
|
-
"@smithy/protocol-http": "^
|
|
32
|
-
"@smithy/querystring-builder": "^
|
|
33
|
-
"@smithy/fetch-http-handler": "^
|
|
30
|
+
"@smithy/types": "^3.0.0",
|
|
31
|
+
"@smithy/protocol-http": "^4.0.0",
|
|
32
|
+
"@smithy/querystring-builder": "^3.0.0",
|
|
33
|
+
"@smithy/fetch-http-handler": "^3.0.1",
|
|
34
34
|
"@picgo/i18n": "^1.0.0",
|
|
35
35
|
"ali-oss": "^6.20.0",
|
|
36
36
|
"axios": "^1.6.8",
|
|
37
|
-
"dayjs": "^1.11.
|
|
37
|
+
"dayjs": "^1.11.11",
|
|
38
38
|
"js-yaml": "^4.1.0",
|
|
39
|
-
"mime": "^
|
|
39
|
+
"mime": "^4.0.3",
|
|
40
40
|
"mime-types": "^2.1.35",
|
|
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.
|
|
44
|
+
"universal-picgo-store": "1.11.0"
|
|
45
45
|
},
|
|
46
46
|
"publishConfig": {
|
|
47
47
|
"access": "public"
|