piclist 1.8.0 → 1.8.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.
@@ -1,11 +1,13 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
+ /// <reference types="node" />
3
4
  import { type IImgSize, type IPathTransformedImgInfo, type IPluginNameType, type ILogger, type IPicGo, type IBuildInCompressOptions, type IBuildInWaterMarkOptions } from '../types';
4
5
  import sharp from 'sharp';
6
+ import crypto from 'crypto';
5
7
  export declare function randomStringGenerator(length: number): string;
6
8
  export declare function renameFileNameWithTimestamp(oldName: string): string;
7
9
  export declare function renameFileNameWithRandomString(oldName: string, length?: number): string;
8
- export declare function renameFileNameWithCustomString(oldName: string, customFormat: string, affixFileName?: string): string;
10
+ export declare function renameFileNameWithCustomString(oldName: string, customFormat: string, affixFileName?: string, fileBuffer?: crypto.BinaryLike): string;
9
11
  export declare const isUrl: (url: string) => boolean;
10
12
  export declare const isUrlEncode: (url: string) => boolean;
11
13
  export declare const handleUrlEncode: (url: string) => string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "piclist",
3
- "version": "1.8.0",
3
+ "version": "1.8.2",
4
4
  "description": "Modified PicGo core, A tool for picture uploading",
5
5
  "author": {
6
6
  "name": "Kuingsmile",