@wzyjs/utils 0.2.56 → 0.2.57

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,2 +1 @@
1
1
  export declare const readClipboard: () => Promise<string>;
2
- export declare const printConsoleLog: (type: string, path: string, params: any, response: any) => void;
@@ -19335,6 +19335,21 @@ var performDecimalOperation = (num1, num2, operator) => {
19335
19335
  return NaN;
19336
19336
  }
19337
19337
  };
19338
+ var printConsoleLog = (type, path, params, response) => {
19339
+ const styles = {
19340
+ header: "color: #fff; background: #35495e; padding: 2px 8px; border-radius: 3px 0 0 3px;",
19341
+ value: "color: #35495e; background: #f0f4f8; padding: 2px 6px; border-radius: 0 3px 3px 0;",
19342
+ separator: "color: #409EFF; margin: 0 4px;"
19343
+ };
19344
+ console.groupCollapsed(`666 %c${type}%c${path}`, styles.header, styles.value);
19345
+ if (params) {
19346
+ console.table(params);
19347
+ }
19348
+ if (response) {
19349
+ console.table(response);
19350
+ }
19351
+ console.groupEnd();
19352
+ };
19338
19353
  // src/common/number.ts
19339
19354
  var getRandomNum = (min2, max2) => {
19340
19355
  return Math.floor(Math.random() * (max2 - min2 + 1) + min2);
@@ -20957,21 +20972,6 @@ var readClipboard = async () => {
20957
20972
  return "";
20958
20973
  }
20959
20974
  };
20960
- var printConsoleLog = (type, path, params, response) => {
20961
- const styles = {
20962
- header: "color: #fff; background: #35495e; padding: 2px 8px; border-radius: 3px 0 0 3px;",
20963
- value: "color: #35495e; background: #f0f4f8; padding: 2px 6px; border-radius: 0 3px 3px 0;",
20964
- separator: "color: #409EFF; margin: 0 4px;"
20965
- };
20966
- console.groupCollapsed(`666 %c${type}%c${path}`, styles.header, styles.value);
20967
- if (params) {
20968
- console.table(params);
20969
- }
20970
- if (response) {
20971
- console.table(response);
20972
- }
20973
- console.groupEnd();
20974
- };
20975
20975
  // src/browser/location.ts
20976
20976
  var import_lodash2 = __toESM(require_lodash());
20977
20977
  var url2Params = (url = location.href) => {
@@ -19152,6 +19152,21 @@ var performDecimalOperation = (num1, num2, operator) => {
19152
19152
  return NaN;
19153
19153
  }
19154
19154
  };
19155
+ var printConsoleLog = (type, path, params, response) => {
19156
+ const styles = {
19157
+ header: "color: #fff; background: #35495e; padding: 2px 8px; border-radius: 3px 0 0 3px;",
19158
+ value: "color: #35495e; background: #f0f4f8; padding: 2px 6px; border-radius: 0 3px 3px 0;",
19159
+ separator: "color: #409EFF; margin: 0 4px;"
19160
+ };
19161
+ console.groupCollapsed(`666 %c${type}%c${path}`, styles.header, styles.value);
19162
+ if (params) {
19163
+ console.table(params);
19164
+ }
19165
+ if (response) {
19166
+ console.table(response);
19167
+ }
19168
+ console.groupEnd();
19169
+ };
19155
19170
  // src/common/number.ts
19156
19171
  var getRandomNum = (min2, max2) => {
19157
19172
  return Math.floor(Math.random() * (max2 - min2 + 1) + min2);
@@ -20774,21 +20789,6 @@ var readClipboard = async () => {
20774
20789
  return "";
20775
20790
  }
20776
20791
  };
20777
- var printConsoleLog = (type, path, params, response) => {
20778
- const styles = {
20779
- header: "color: #fff; background: #35495e; padding: 2px 8px; border-radius: 3px 0 0 3px;",
20780
- value: "color: #35495e; background: #f0f4f8; padding: 2px 6px; border-radius: 0 3px 3px 0;",
20781
- separator: "color: #409EFF; margin: 0 4px;"
20782
- };
20783
- console.groupCollapsed(`666 %c${type}%c${path}`, styles.header, styles.value);
20784
- if (params) {
20785
- console.table(params);
20786
- }
20787
- if (response) {
20788
- console.table(response);
20789
- }
20790
- console.groupEnd();
20791
- };
20792
20792
  // src/browser/location.ts
20793
20793
  var import_lodash2 = __toESM(require_lodash(), 1);
20794
20794
  var url2Params = (url = location.href) => {
@@ -2,3 +2,4 @@ export declare const delay: (time?: number) => Promise<unknown>;
2
2
  export declare const calcJsText: (expr: string, context: Record<string, any>) => any;
3
3
  export declare const optionsToEnum: (options: any[], text: string, key: string) => any;
4
4
  export declare const performDecimalOperation: (num1?: number, num2?: number, operator?: string) => number | undefined;
5
+ export declare const printConsoleLog: (type: string, path: string, params: any, response: any) => void;
@@ -0,0 +1,2 @@
1
+ export declare const interval: (intervalMinutes: number, immediately: boolean, fn: () => (void | Promise<void>)) => void;
2
+ export declare const schedule: (cronExpression: string, immediately: boolean, fn: () => (void | Promise<void>)) => void;
@@ -1,5 +1,6 @@
1
1
  export * from './mail';
2
2
  export * from './file';
3
3
  export * from './oss';
4
+ export * from './cron';
4
5
  export { default as DataStore, DataStoreOptions } from 'nedb';
5
6
  export * as cheerio from 'cheerio';