@noah-libjs/utils 0.0.2 → 0.0.3

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,6 +1,7 @@
1
- import dayjs, { Dayjs, ConfigType } from "dayjs";
2
- type TOutput = dayjs.Dayjs;
3
- export declare function getMomentObj(s: ConfigType): TOutput;
1
+ import dayjs from "dayjs";
2
+ export type Dayjs = dayjs.Dayjs;
3
+ export type DayjsConfigType = dayjs.ConfigType;
4
+ export declare function getMomentObj(s: DayjsConfigType): Dayjs;
4
5
  export declare const formatDate: ((s?: any) => any) & {
5
6
  format: "YYYY-MM-DD";
6
7
  };
@@ -31,5 +32,4 @@ export declare function isMoment(m: any): boolean;
31
32
  */
32
33
  export declare function getFutureDate(num: number): any;
33
34
  export declare function dayjs_quarter(input: Dayjs, which_quarter?: number): [Dayjs, number];
34
- export { dayjs, Dayjs, };
35
- export type Dayjs_ConfigType = ConfigType;
35
+ export { dayjs };
@@ -1,5 +1,5 @@
1
+ import { AnyObject } from "./type-utils";
1
2
  export type TCommonFileType = 'application/vnd.ms-excel' | 'text/csv;charset=utf-8' | 'application/msword';
2
- export declare function sleep(sec: number): Promise<void>;
3
3
  export declare function getSearchParamsValue(key: string): string | null;
4
4
  export declare function getSearchParamsAll(url?: URL): {
5
5
  [x: string]: string;
@@ -35,3 +35,5 @@ export declare function speculate_on_display(value?: any): string;
35
35
  export declare function getFuckTimeInterval(star_hour?: number, end_hour?: number, min_interval?: 1 | 2 | 3 | 4 | 5 | 6 | 10 | 15 | 20 | 30): string[];
36
36
  export declare function random_word(): string[];
37
37
  export declare function confirm_operation(): boolean;
38
+ export declare function simple_encrypt(data: AnyObject | any[]): number[] | null;
39
+ export declare function simple_decrypt(code: number[]): AnyObject | null;