dozy 1.0.7 → 1.0.8
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/Store.d.ts +0 -1
- package/dist/index.d.ts +121 -10
- package/dist/index.js +21 -1
- package/dist/index.js.map +7 -0
- package/package.json +14 -4
- package/dist/Dozy.js +0 -1
- package/dist/Functions.js +0 -1
- package/dist/Store.js +0 -1
- package/dist/WebFunctions.js +0 -1
package/dist/Store.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,121 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
// Generated by dts-bundle-generator v6.13.0
|
|
2
|
+
|
|
3
|
+
export type LogFilter = (msg: string) => boolean;
|
|
4
|
+
export type DozyConfigItem = {
|
|
5
|
+
logFilters: LogFilter[];
|
|
6
|
+
};
|
|
7
|
+
export type DozyConfig = Partial<DozyConfigItem>;
|
|
8
|
+
declare class Dozy {
|
|
9
|
+
config: DozyConfigItem;
|
|
10
|
+
setFilters(filters: LogFilter[]): void;
|
|
11
|
+
}
|
|
12
|
+
export declare const dozy: Dozy;
|
|
13
|
+
export declare function $isObject(value: unknown): value is Record<string, unknown>;
|
|
14
|
+
export declare function $deepClone<T>(value: T): T;
|
|
15
|
+
export declare function $capitalize(s: string): string;
|
|
16
|
+
export declare function $clamp(n: number, min: number, max: number): number;
|
|
17
|
+
export declare function web$setPathTarget(s: string): void;
|
|
18
|
+
export declare function web$pathStartData(): {
|
|
19
|
+
href: string;
|
|
20
|
+
origin: string;
|
|
21
|
+
target: string;
|
|
22
|
+
host: string;
|
|
23
|
+
path: string;
|
|
24
|
+
search: string;
|
|
25
|
+
standardJump: boolean;
|
|
26
|
+
};
|
|
27
|
+
export declare function web$enableProdProtector(): void;
|
|
28
|
+
export declare function web$enableHttpsRedirect(): void;
|
|
29
|
+
export declare function web$redirectToDomain(newDomain: string): void;
|
|
30
|
+
export declare const $jsonParse: (text: string, reviver?: (this: any, key: string, value: any) => any) => any;
|
|
31
|
+
export declare const $jsonStringify: {
|
|
32
|
+
(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string;
|
|
33
|
+
(value: any, replacer?: (number | string)[] | null, space?: string | number): string;
|
|
34
|
+
};
|
|
35
|
+
export declare const $keys: <T extends object>(obj: T) => (keyof T & string)[];
|
|
36
|
+
export declare const $entries: <T extends object>(obj: T) => [
|
|
37
|
+
keyof T & string,
|
|
38
|
+
T[keyof T]
|
|
39
|
+
][];
|
|
40
|
+
export declare const $values: {
|
|
41
|
+
<T>(o: {
|
|
42
|
+
[s: string]: T;
|
|
43
|
+
} | ArrayLike<T>): T[];
|
|
44
|
+
(o: {}): any[];
|
|
45
|
+
};
|
|
46
|
+
export declare const $assign: {
|
|
47
|
+
<T extends {}, U>(target: T, source: U): T & U;
|
|
48
|
+
<T extends {}, U, V>(target: T, source1: U, source2: V): T & U & V;
|
|
49
|
+
<T extends {}, U, V, W>(target: T, source1: U, source2: V, source3: W): T & U & V & W;
|
|
50
|
+
(target: object, ...sources: any[]): any;
|
|
51
|
+
};
|
|
52
|
+
export declare const $defineProperty: <T>(o: T, p: PropertyKey, attributes: PropertyDescriptor & ThisType<any>) => T;
|
|
53
|
+
export declare const $freeze: {
|
|
54
|
+
<T extends Function>(f: T): T;
|
|
55
|
+
<T extends {
|
|
56
|
+
[idx: string]: U | null | undefined | object;
|
|
57
|
+
}, U extends string | bigint | number | boolean | symbol>(o: T): Readonly<T>;
|
|
58
|
+
<T>(o: T): Readonly<T>;
|
|
59
|
+
};
|
|
60
|
+
export declare const $is: (value1: any, value2: any) => boolean;
|
|
61
|
+
export declare const $arrayFrom: {
|
|
62
|
+
<T>(arrayLike: ArrayLike<T>): T[];
|
|
63
|
+
<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
64
|
+
<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
65
|
+
<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
66
|
+
};
|
|
67
|
+
export declare const $arrayIsArray: (arg: any) => arg is any[];
|
|
68
|
+
export declare const $stringFromCharCode: (...codes: number[]) => string;
|
|
69
|
+
export declare const $stringFromCodePoint: (...codePoints: number[]) => string;
|
|
70
|
+
export declare const $numberIsNaN: (number: unknown) => boolean;
|
|
71
|
+
export declare const $numberIsFinite: (number: unknown) => boolean;
|
|
72
|
+
export declare const $math: Math;
|
|
73
|
+
export declare const $now: () => number;
|
|
74
|
+
export declare const $date: DateConstructor;
|
|
75
|
+
export declare const $promise: PromiseConstructor;
|
|
76
|
+
export declare const $URL: {
|
|
77
|
+
new (url: string | URL, base?: string | URL): URL;
|
|
78
|
+
prototype: URL;
|
|
79
|
+
canParse(url: string | URL, base?: string | URL): boolean;
|
|
80
|
+
createObjectURL(obj: Blob | MediaSource): string;
|
|
81
|
+
parse(url: string | URL, base?: string | URL): URL | null;
|
|
82
|
+
revokeObjectURL(url: string): void;
|
|
83
|
+
};
|
|
84
|
+
export declare const $URLSearchParams: {
|
|
85
|
+
new (init?: string[][] | Record<string, string> | string | URLSearchParams): URLSearchParams;
|
|
86
|
+
prototype: URLSearchParams;
|
|
87
|
+
};
|
|
88
|
+
export declare const $clone: typeof structuredClone;
|
|
89
|
+
export declare const $window: (Window & typeof globalThis) | undefined;
|
|
90
|
+
export declare const $document: Document | undefined;
|
|
91
|
+
export declare const $location: Location | undefined;
|
|
92
|
+
export declare const $open: (((url?: string | URL, target?: string, features?: string) => WindowProxy | null) & typeof open) | undefined;
|
|
93
|
+
export declare const $setTimeout: (((handler: TimerHandler, timeout?: number, ...arguments: any[]) => number) & typeof setTimeout) | undefined;
|
|
94
|
+
export declare const $clearTimeout: (((id: number | undefined) => void) & typeof clearTimeout) | undefined;
|
|
95
|
+
export declare const $setInterval: (((handler: TimerHandler, timeout?: number, ...arguments: any[]) => number) & typeof setInterval) | undefined;
|
|
96
|
+
export declare const $clearInterval: (((id: number | undefined) => void) & typeof clearInterval) | undefined;
|
|
97
|
+
export declare const $fetch: typeof fetch | undefined;
|
|
98
|
+
export declare const $Headers: {
|
|
99
|
+
new (init?: HeadersInit): Headers;
|
|
100
|
+
prototype: Headers;
|
|
101
|
+
} | undefined;
|
|
102
|
+
export declare const $Request: {
|
|
103
|
+
new (input: RequestInfo | URL, init?: RequestInit): Request;
|
|
104
|
+
prototype: Request;
|
|
105
|
+
} | undefined;
|
|
106
|
+
export declare const $Response: {
|
|
107
|
+
new (body?: BodyInit | null, init?: ResponseInit): Response;
|
|
108
|
+
prototype: Response;
|
|
109
|
+
error(): Response;
|
|
110
|
+
json(data: any, init?: ResponseInit): Response;
|
|
111
|
+
redirect(url: string | URL, status?: number): Response;
|
|
112
|
+
} | undefined;
|
|
113
|
+
export declare const $crypto: Crypto | undefined;
|
|
114
|
+
export declare const VERSION = "1.0.8";
|
|
115
|
+
export * from "axios";
|
|
116
|
+
|
|
117
|
+
export {
|
|
118
|
+
CryptoJS as Cryptojs,
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
export {};
|