@wzyjs/utils 0.3.28 → 0.3.30

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wzyjs/utils",
3
- "version": "0.3.28",
3
+ "version": "0.3.30",
4
4
  "description": "description",
5
5
  "author": "wzy",
6
6
  "sideEffects": false,
@@ -57,6 +57,7 @@
57
57
  "node-cron": "^3.0.3",
58
58
  "nodemailer": "^6.9.1",
59
59
  "papaparse": "^5.5.1",
60
+ "pretty-bytes": "^7.1.0",
60
61
  "proxy-agent": "^6.5.0",
61
62
  "zod": "^3.21.4"
62
63
  },
@@ -70,7 +71,7 @@
70
71
  "@types/nodemailer": "^6.4.7",
71
72
  "@types/papaparse": "^5.3.15"
72
73
  },
73
- "gitHead": "cfb708a071a9f7f0e2c819760c95427d7196623b",
74
+ "gitHead": "4e50539cd20e721602a057645c9b859530a1b8c5",
74
75
  "publishConfig": {
75
76
  "access": "public"
76
77
  }
@@ -1,5 +0,0 @@
1
- export declare const getRandomNum: (min: number, max: number) => number;
2
- export declare const limitDecimals: (v: string, num: number, isForce: boolean) => string;
3
- export declare const formatFileSize: (bytes?: number) => string;
4
- export declare const isValidNumber: (value: any) => boolean;
5
- export declare const numberWithCommas: (x?: number | string) => string;
@@ -1 +0,0 @@
1
- export declare function imageToBase64(url: string): Promise<string>;
@@ -1,8 +0,0 @@
1
- export declare const url2Params: (url?: string) => {
2
- [key: string]: string;
3
- };
4
- export declare const params2Url: (params: {
5
- [key: string]: any;
6
- }) => string;
7
- export declare const setUrlParams: (key: string, value: any, keepName: string) => void;
8
- export declare const urlGetPath: (url?: string) => string;
@@ -1,10 +0,0 @@
1
- export declare const hexToRgba: (hexColor: string, a?: number) => {
2
- nums: {
3
- red: number;
4
- green: number;
5
- blue: number;
6
- };
7
- text: string;
8
- };
9
- export declare const flashBackground: (el: string | Element, color: string, a?: number) => void;
10
- export declare const flashBorder: (el: string | Element, color: string, a?: number) => void;