dozy 1.0.59 → 1.0.61
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/index.d.ts +23 -6
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -19,6 +19,19 @@ declare class Dozy {
|
|
|
19
19
|
}
|
|
20
20
|
declare const dozy: Dozy;
|
|
21
21
|
|
|
22
|
+
type Any = Items<any>;
|
|
23
|
+
type Null<T> = T | undefined | null;
|
|
24
|
+
type Nullable<T> = Null<T>;
|
|
25
|
+
type Items<T> = {
|
|
26
|
+
[x: string]: T;
|
|
27
|
+
};
|
|
28
|
+
type Hel = HTMLElement;
|
|
29
|
+
type UNumber = number | [number, number];
|
|
30
|
+
type Coord = [number, number];
|
|
31
|
+
type Coord3 = [number, number, number];
|
|
32
|
+
type IOpt = Object | undefined;
|
|
33
|
+
type Atoa<T> = (i: T) => T;
|
|
34
|
+
|
|
22
35
|
declare function $isObject(value: unknown): value is Record<string, unknown>;
|
|
23
36
|
declare function $deepClone<T>(value: T): T;
|
|
24
37
|
declare function $capitalize(s: string): string;
|
|
@@ -66,6 +79,14 @@ declare function $formatWithCommas(num: number | string): string;
|
|
|
66
79
|
declare function $isValidEmailWithUnicode(email?: string): boolean;
|
|
67
80
|
declare function $checkValidEmailWithUnicode(email?: string): void;
|
|
68
81
|
declare function $formatDate(dateInput: string | number | Date): string;
|
|
82
|
+
declare function errCode<T extends Any>(error: any, defVal?: T): {
|
|
83
|
+
msg: string;
|
|
84
|
+
};
|
|
85
|
+
declare function errContent(): void;
|
|
86
|
+
declare function errArg(): void;
|
|
87
|
+
declare function errNotLoggedIn(): void;
|
|
88
|
+
declare function err403(): void;
|
|
89
|
+
declare function isNowAroundUtcHour(targetHour: number): boolean;
|
|
69
90
|
|
|
70
91
|
declare function web$setPathTarget(s: string): void;
|
|
71
92
|
declare function web$pathStartData(): {
|
|
@@ -216,10 +237,6 @@ declare class StringObfuscator {
|
|
|
216
237
|
de(obfuscated: string): string;
|
|
217
238
|
}
|
|
218
239
|
|
|
219
|
-
type Items<T> = {
|
|
220
|
-
[key: string]: T;
|
|
221
|
-
};
|
|
222
|
-
|
|
223
240
|
declare function $escapeHTML(str: string): string;
|
|
224
241
|
declare class RainbowGen {
|
|
225
242
|
i: number;
|
|
@@ -314,6 +331,6 @@ declare function toRgbString(input: string | Color | any): string | undefined;
|
|
|
314
331
|
*/
|
|
315
332
|
declare function toHslString(input: string | Color | any): string | undefined;
|
|
316
333
|
|
|
317
|
-
declare const DOZY = "1.0.
|
|
334
|
+
declare const DOZY = "1.0.61";
|
|
318
335
|
|
|
319
|
-
export { $Headers, $Request, $Response, $URL, $URLSearchParams, $arrayFrom, $arrayIsArray, $assign, $capitalize, $checkValidEmailWithUnicode, $clamp, $clearInterval, $clearTimeout, $clone, $compressImage, $copy, $crypto, $date, $decodeBase64ToBinary, $decodeBase64ToUnicode, $deepClone, $defineProperty, $document, $encodeUnicodeToBase64, $entries, $escapeHTML, $fallbackCopy, $fetch, $fileToBase64, $formatDate, $formatWithCommas, $freeze, $genSSF, $getFileType, $getTimeString, $hasKey, $if, $inRange, $inRange2, $is, $isObject, $isPlainClass, $isValidEmailWithUnicode, $isValidOrBriefURL, $jsonParse, $jsonStringify, $keys, $lastIndex, $lindex, $loadOpt, $location, $log, $lplus, $magic, $math, $now, $numberIsFinite, $numberIsNaN, $oc, $open, $parseParams, $promise, $pureText, $randomByte, $replaceHolesWithUndefined, $rmvSlash, $rsValue, $rsetValue, $rvalue, $s, $sc, $setInterval, $setRange, $setTimeout, $stringFromCharCode, $stringFromCodePoint, $stringToRange, $strings, $validName, $values, $window, DOZY, type DozyConfig, type DozyConfigItem, type FileType, Gens, type Items, RainbowGen, type ScaleComputer, type ScaleIniter, StringObfuscator, __GensDirectives, _res, boxShadow, dozy, enableScaler, errMsg, errToString, getBrightness, getColorMap, isValidColor, maybeString, registerCustomColor, s, smallChance, smartParse, smartString, standardIniter, textShadow, toHexString, toHslString, toRgbString, toRgbaArray, web$enableHttpsRedirect, web$enableProdProtector, web$encodeURI, web$pathStartData, web$redirectToDomain, web$setPathTarget, xtrim };
|
|
336
|
+
export { $Headers, $Request, $Response, $URL, $URLSearchParams, $arrayFrom, $arrayIsArray, $assign, $capitalize, $checkValidEmailWithUnicode, $clamp, $clearInterval, $clearTimeout, $clone, $compressImage, $copy, $crypto, $date, $decodeBase64ToBinary, $decodeBase64ToUnicode, $deepClone, $defineProperty, $document, $encodeUnicodeToBase64, $entries, $escapeHTML, $fallbackCopy, $fetch, $fileToBase64, $formatDate, $formatWithCommas, $freeze, $genSSF, $getFileType, $getTimeString, $hasKey, $if, $inRange, $inRange2, $is, $isObject, $isPlainClass, $isValidEmailWithUnicode, $isValidOrBriefURL, $jsonParse, $jsonStringify, $keys, $lastIndex, $lindex, $loadOpt, $location, $log, $lplus, $magic, $math, $now, $numberIsFinite, $numberIsNaN, $oc, $open, $parseParams, $promise, $pureText, $randomByte, $replaceHolesWithUndefined, $rmvSlash, $rsValue, $rsetValue, $rvalue, $s, $sc, $setInterval, $setRange, $setTimeout, $stringFromCharCode, $stringFromCodePoint, $stringToRange, $strings, $validName, $values, $window, type Any, type Atoa, type Coord, type Coord3, DOZY, type DozyConfig, type DozyConfigItem, type FileType, Gens, type Hel, type IOpt, type Items, type Null, type Nullable, RainbowGen, type ScaleComputer, type ScaleIniter, StringObfuscator, type UNumber, __GensDirectives, _res, boxShadow, dozy, enableScaler, err403, errArg, errCode, errContent, errMsg, errNotLoggedIn, errToString, getBrightness, getColorMap, isNowAroundUtcHour, isValidColor, maybeString, registerCustomColor, s, smallChance, smartParse, smartString, standardIniter, textShadow, toHexString, toHslString, toRgbString, toRgbaArray, web$enableHttpsRedirect, web$enableProdProtector, web$encodeURI, web$pathStartData, web$redirectToDomain, web$setPathTarget, xtrim };
|