@splendidlabz/utils 1.10.1 → 1.10.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.
- package/CHANGELOG.md +12 -0
- package/dist/cjs/dom/accessibility.cjs +0 -2
- package/dist/cjs/dom/actions/index.cjs +7 -391
- package/dist/cjs/dom/actions/masonry.cjs +6 -97
- package/dist/cjs/dom/actions/prefer-horizontal-scroll.cjs +14 -58
- package/dist/cjs/dom/actions/sticky.cjs +6 -126
- package/dist/cjs/dom/bounding-box.cjs +0 -2
- package/dist/cjs/dom/clipboard.cjs +0 -2
- package/dist/cjs/dom/cookie.cjs +1 -3
- package/dist/cjs/dom/css-vars.cjs +3 -13
- package/dist/cjs/dom/events.cjs +0 -2
- package/dist/cjs/dom/focusable.cjs +0 -2
- package/dist/cjs/dom/font-size.cjs +3 -15
- package/dist/cjs/dom/get-element.cjs +1 -3
- package/dist/cjs/dom/hash.cjs +0 -2
- package/dist/cjs/dom/index.cjs +47 -1248
- package/dist/cjs/dom/keyboard.cjs +0 -2
- package/dist/cjs/dom/local-store.cjs +1 -3
- package/dist/cjs/dom/media.cjs +0 -2
- package/dist/cjs/dom/observers/index.cjs +9 -235
- package/dist/cjs/dom/observers/intersection-observer.cjs +6 -38
- package/dist/cjs/dom/observers/mutation-observer.cjs +6 -38
- package/dist/cjs/dom/observers/observer.cjs +2 -12
- package/dist/cjs/dom/observers/resize-observer.cjs +6 -38
- package/dist/cjs/dom/observers/scroll-observer.cjs +3 -62
- package/dist/cjs/dom/pkce.cjs +3 -13
- package/dist/cjs/dom/query-params.cjs +1 -3
- package/dist/cjs/dom/random-string.cjs +0 -2
- package/dist/cjs/dom/sanitize.cjs +3 -27
- package/dist/cjs/dom/session-store.cjs +1 -3
- package/dist/cjs/dom/spam-prevention.cjs +0 -2
- package/dist/cjs/dom/trap-focus.cjs +9 -131
- package/dist/cjs/dom/ui/aria-current.cjs +0 -2
- package/dist/cjs/dom/ui/inconsistent-button-fix.cjs +0 -2
- package/dist/cjs/dom/ui/index.cjs +9 -87
- package/dist/cjs/dom/ui/scroll-container.cjs +0 -2
- package/dist/cjs/dom/ui/traverse-and-scramble.cjs +0 -2
- package/dist/cjs/lib/arrays/index.cjs +13 -121
- package/dist/cjs/lib/arrays/item-position.cjs +0 -2
- package/dist/cjs/lib/arrays/join.cjs +2 -10
- package/dist/cjs/lib/arrays/shuffle.cjs +0 -2
- package/dist/cjs/lib/arrays/sort.cjs +3 -11
- package/dist/cjs/lib/arrays/split-array.cjs +0 -2
- package/dist/cjs/lib/arrays/unique.cjs +0 -2
- package/dist/cjs/lib/auth/index.cjs +3 -35
- package/dist/cjs/lib/auth/route-manager.cjs +0 -2
- package/dist/cjs/lib/checks.cjs +0 -2
- package/dist/cjs/lib/date/days.cjs +1 -3
- package/dist/cjs/lib/date/index.cjs +7 -190
- package/dist/cjs/lib/date/months.cjs +1 -3
- package/dist/cjs/lib/date/time.cjs +2 -14
- package/dist/cjs/lib/form/form-data.cjs +0 -2
- package/dist/cjs/lib/form/index.cjs +5 -104
- package/dist/cjs/lib/form/sanitize.cjs +0 -2
- package/dist/cjs/lib/functions/callback.cjs +0 -2
- package/dist/cjs/lib/functions/debounce.cjs +0 -2
- package/dist/cjs/lib/functions/env.cjs +0 -2
- package/dist/cjs/lib/functions/functional.cjs +0 -2
- package/dist/cjs/lib/functions/index.cjs +11 -124
- package/dist/cjs/lib/functions/throttle.cjs +0 -2
- package/dist/cjs/lib/functions/timeout.cjs +0 -2
- package/dist/cjs/lib/hash.cjs +0 -2
- package/dist/cjs/lib/index.cjs +29 -1155
- package/dist/cjs/lib/numbers/index.cjs +4 -17
- package/dist/cjs/lib/numbers/math.cjs +0 -2
- package/dist/cjs/lib/objects/camelcase-keys.cjs +4 -45
- package/dist/cjs/lib/objects/empty.cjs +0 -2
- package/dist/cjs/lib/objects/equal.cjs +0 -2
- package/dist/cjs/lib/objects/extend.cjs +6 -117
- package/dist/cjs/lib/objects/flatten.cjs +3 -11
- package/dist/cjs/lib/objects/index.cjs +27 -360
- package/dist/cjs/lib/objects/json.cjs +0 -2
- package/dist/cjs/lib/objects/loop.cjs +0 -2
- package/dist/cjs/lib/objects/mix/mix.cjs +3 -5
- package/dist/cjs/lib/objects/nested-property.cjs +0 -2
- package/dist/cjs/lib/objects/normalize-object.cjs +4 -78
- package/dist/cjs/lib/objects/omit-empty.cjs +0 -2
- package/dist/cjs/lib/objects/size.cjs +0 -2
- package/dist/cjs/lib/objects/split.cjs +0 -2
- package/dist/cjs/lib/promises/index.cjs +3 -51
- package/dist/cjs/lib/promises/reject.cjs +2 -19
- package/dist/cjs/lib/sse.cjs +4 -29
- package/dist/cjs/lib/strings/convert-case/convert-case.cjs +0 -2
- package/dist/cjs/lib/strings/index.cjs +11 -179
- package/dist/cjs/lib/strings/markdown.cjs +1 -3
- package/dist/cjs/lib/strings/name.cjs +0 -2
- package/dist/cjs/lib/strings/pluralize.cjs +1 -3
- package/dist/cjs/lib/strings/query-string.cjs +0 -2
- package/dist/cjs/lib/style/index.cjs +2 -31
- package/dist/cjs/lib/symbols/index.cjs +3 -22
- package/dist/cjs/lib/symbols/symbols.cjs +0 -2
- package/dist/cjs/node/common.cjs +0 -2
- package/dist/cjs/node/dirname.cjs +2 -4
- package/dist/cjs/node/file-cache.cjs +3 -45
- package/dist/cjs/node/file.cjs +2 -4
- package/dist/cjs/node/hash.cjs +1 -3
- package/dist/cjs/node/index.cjs +15 -272
- package/dist/cjs/node/pkce.cjs +5 -15
- package/dist/cjs/node/random-string.cjs +1 -3
- package/dist/cjs/node/sanitize.cjs +3 -27
- package/dist/esm/dom/accessibility.js +0 -1
- package/dist/esm/dom/actions/index.js +3 -381
- package/dist/esm/dom/actions/masonry.js +3 -91
- package/dist/esm/dom/actions/prefer-horizontal-scroll.js +4 -45
- package/dist/esm/dom/actions/sticky.js +3 -120
- package/dist/esm/dom/bounding-box.js +0 -1
- package/dist/esm/dom/clipboard.js +0 -1
- package/dist/esm/dom/cookie.js +1 -2
- package/dist/esm/dom/css-vars.js +1 -8
- package/dist/esm/dom/events.js +0 -1
- package/dist/esm/dom/focusable.js +0 -1
- package/dist/esm/dom/font-size.js +1 -10
- package/dist/esm/dom/get-element.js +1 -2
- package/dist/esm/dom/hash.js +0 -1
- package/dist/esm/dom/index.js +23 -1168
- package/dist/esm/dom/keyboard.js +0 -1
- package/dist/esm/dom/local-store.js +1 -2
- package/dist/esm/dom/media.js +0 -1
- package/dist/esm/dom/observers/index.js +4 -224
- package/dist/esm/dom/observers/intersection-observer.js +2 -31
- package/dist/esm/dom/observers/mutation-observer.js +3 -32
- package/dist/esm/dom/observers/observer.js +1 -8
- package/dist/esm/dom/observers/resize-observer.js +2 -31
- package/dist/esm/dom/observers/scroll-observer.js +2 -58
- package/dist/esm/dom/pkce.js +1 -8
- package/dist/esm/dom/query-params.js +1 -2
- package/dist/esm/dom/random-string.js +0 -1
- package/dist/esm/dom/sanitize.js +3 -26
- package/dist/esm/dom/session-store.js +1 -2
- package/dist/esm/dom/spam-prevention.js +0 -1
- package/dist/esm/dom/trap-focus.js +2 -121
- package/dist/esm/dom/ui/aria-current.js +0 -1
- package/dist/esm/dom/ui/inconsistent-button-fix.js +0 -1
- package/dist/esm/dom/ui/index.js +4 -75
- package/dist/esm/dom/ui/scroll-container.js +0 -1
- package/dist/esm/dom/ui/traverse-and-scramble.js +0 -1
- package/dist/esm/lib/arrays/index.js +6 -106
- package/dist/esm/lib/arrays/item-position.js +0 -1
- package/dist/esm/lib/arrays/join.js +1 -6
- package/dist/esm/lib/arrays/shuffle.js +0 -1
- package/dist/esm/lib/arrays/sort.js +1 -6
- package/dist/esm/lib/arrays/split-array.js +0 -1
- package/dist/esm/lib/arrays/unique.js +0 -1
- package/dist/esm/lib/auth/index.js +1 -26
- package/dist/esm/lib/auth/route-manager.js +0 -1
- package/dist/esm/lib/checks.js +0 -1
- package/dist/esm/lib/date/days.js +1 -2
- package/dist/esm/lib/date/index.js +3 -173
- package/dist/esm/lib/date/months.js +1 -2
- package/dist/esm/lib/date/time.js +1 -10
- package/dist/esm/lib/form/form-data.js +0 -1
- package/dist/esm/lib/form/index.js +2 -92
- package/dist/esm/lib/form/sanitize.js +0 -1
- package/dist/esm/lib/functions/callback.js +0 -1
- package/dist/esm/lib/functions/debounce.js +0 -1
- package/dist/esm/lib/functions/env.js +0 -1
- package/dist/esm/lib/functions/functional.js +0 -1
- package/dist/esm/lib/functions/index.js +5 -105
- package/dist/esm/lib/functions/throttle.js +0 -1
- package/dist/esm/lib/functions/timeout.js +0 -1
- package/dist/esm/lib/hash.js +0 -1
- package/dist/esm/lib/index.js +14 -1052
- package/dist/esm/lib/numbers/index.js +2 -12
- package/dist/esm/lib/numbers/math.js +0 -1
- package/dist/esm/lib/objects/camelcase-keys.js +2 -40
- package/dist/esm/lib/objects/empty.js +0 -1
- package/dist/esm/lib/objects/equal.js +0 -1
- package/dist/esm/lib/objects/extend.js +3 -111
- package/dist/esm/lib/objects/flatten.js +1 -6
- package/dist/esm/lib/objects/index.js +13 -323
- package/dist/esm/lib/objects/json.js +0 -1
- package/dist/esm/lib/objects/loop.js +0 -1
- package/dist/esm/lib/objects/mix/mix.js +3 -4
- package/dist/esm/lib/objects/nested-property.js +0 -1
- package/dist/esm/lib/objects/normalize-object.js +3 -74
- package/dist/esm/lib/objects/omit-empty.js +0 -1
- package/dist/esm/lib/objects/size.js +0 -1
- package/dist/esm/lib/objects/split.js +0 -1
- package/dist/esm/lib/promises/index.js +1 -33
- package/dist/esm/lib/promises/reject.js +1 -17
- package/dist/esm/lib/sse.js +2 -24
- package/dist/esm/lib/strings/convert-case/convert-case.js +0 -1
- package/dist/esm/lib/strings/index.js +5 -147
- package/dist/esm/lib/strings/markdown.js +1 -2
- package/dist/esm/lib/strings/name.js +0 -1
- package/dist/esm/lib/strings/pluralize.js +1 -2
- package/dist/esm/lib/strings/query-string.js +0 -1
- package/dist/esm/lib/style/index.js +1 -27
- package/dist/esm/lib/symbols/index.js +1 -13
- package/dist/esm/lib/symbols/symbols.js +0 -1
- package/dist/esm/node/common.js +0 -1
- package/dist/esm/node/dirname.js +2 -3
- package/dist/esm/node/file-cache.js +2 -43
- package/dist/esm/node/file.js +2 -3
- package/dist/esm/node/hash.js +1 -2
- package/dist/esm/node/index.js +7 -243
- package/dist/esm/node/pkce.js +3 -12
- package/dist/esm/node/random-string.js +1 -2
- package/dist/esm/node/sanitize.js +3 -26
- package/package.json +1 -1
- package/tsup.config.mjs +2 -0
|
@@ -2,10 +2,6 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
5
|
var __copyProps = (to, from, except, desc) => {
|
|
10
6
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
7
|
for (let key of __getOwnPropNames(from))
|
|
@@ -14,40 +10,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
10
|
}
|
|
15
11
|
return to;
|
|
16
12
|
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/auth/index.js
|
|
20
15
|
var auth_exports = {};
|
|
21
|
-
__export(auth_exports, {
|
|
22
|
-
AuthManager: () => AuthManager,
|
|
23
|
-
RouteManager: () => RouteManager
|
|
24
|
-
});
|
|
25
16
|
module.exports = __toCommonJS(auth_exports);
|
|
26
|
-
|
|
27
|
-
// src/lib/auth/route-manager.js
|
|
28
|
-
function RouteManager(config) {
|
|
29
|
-
const { protectedRoutes, bypassRoutes } = config;
|
|
30
|
-
return {
|
|
31
|
-
isProtectedRoute(pathname) {
|
|
32
|
-
return isMatch(protectedRoutes, pathname);
|
|
33
|
-
},
|
|
34
|
-
isBypassRoute(pathname) {
|
|
35
|
-
return isMatch(bypassRoutes, pathname);
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
function AuthManager(config) {
|
|
40
|
-
return RouteManager(config);
|
|
41
|
-
}
|
|
42
|
-
function isMatch(routeConfig, pathname) {
|
|
43
|
-
const { is, startsWith, includes } = routeConfig;
|
|
44
|
-
const isExactMatch = is && is.some((u) => pathname === u);
|
|
45
|
-
const startsWithMatch = startsWith && startsWith.some((u) => pathname.startsWith(u));
|
|
46
|
-
const includesMatch = includes && includes.some((u) => pathname.includes(u));
|
|
47
|
-
return isExactMatch || startsWithMatch || includesMatch;
|
|
48
|
-
}
|
|
17
|
+
__reExport(auth_exports, require("./route-manager.js"), module.exports);
|
|
49
18
|
// Annotate the CommonJS export names for ESM import in node:
|
|
50
19
|
0 && (module.exports = {
|
|
51
|
-
|
|
52
|
-
RouteManager
|
|
20
|
+
...require("./route-manager.js")
|
|
53
21
|
});
|
|
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/auth/route-manager.js
|
|
20
18
|
var route_manager_exports = {};
|
|
21
19
|
__export(route_manager_exports, {
|
|
22
20
|
AuthManager: () => AuthManager,
|
package/dist/cjs/lib/checks.cjs
CHANGED
|
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/checks.js
|
|
20
18
|
var checks_exports = {};
|
|
21
19
|
__export(checks_exports, {
|
|
22
20
|
getType: () => getType,
|
|
@@ -15,14 +15,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/date/days.js
|
|
20
18
|
var days_exports = {};
|
|
21
19
|
__export(days_exports, {
|
|
22
20
|
DAYS: () => DAYS
|
|
23
21
|
});
|
|
24
22
|
module.exports = __toCommonJS(days_exports);
|
|
25
|
-
|
|
23
|
+
const DAYS = [
|
|
26
24
|
{ short: "Sun", long: "Sunday", numeric: 1 },
|
|
27
25
|
{ short: "Mon", long: "Monday", numeric: 2 },
|
|
28
26
|
{ short: "Tue", long: "Tuesday", numeric: 3 },
|
|
@@ -2,10 +2,6 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
5
|
var __copyProps = (to, from, except, desc) => {
|
|
10
6
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
7
|
for (let key of __getOwnPropNames(from))
|
|
@@ -14,195 +10,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
10
|
}
|
|
15
11
|
return to;
|
|
16
12
|
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/date/index.js
|
|
20
15
|
var date_exports = {};
|
|
21
|
-
__export(date_exports, {
|
|
22
|
-
DAYS: () => DAYS,
|
|
23
|
-
MONTHS: () => MONTHS,
|
|
24
|
-
getTimeInMs: () => getTimeInMs,
|
|
25
|
-
ms: () => ms,
|
|
26
|
-
toDays: () => toDays,
|
|
27
|
-
toHours: () => toHours,
|
|
28
|
-
toMinutes: () => toMinutes,
|
|
29
|
-
toReadableTime: () => toReadableTime,
|
|
30
|
-
toSeconds: () => toSeconds,
|
|
31
|
-
toWeeks: () => toWeeks
|
|
32
|
-
});
|
|
33
16
|
module.exports = __toCommonJS(date_exports);
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
{ short: "Sun", long: "Sunday", numeric: 1 },
|
|
38
|
-
{ short: "Mon", long: "Monday", numeric: 2 },
|
|
39
|
-
{ short: "Tue", long: "Tuesday", numeric: 3 },
|
|
40
|
-
{ short: "Wed", long: "Wednesday", numeric: 4 },
|
|
41
|
-
{ short: "Thu", long: "Thursday", numeric: 5 },
|
|
42
|
-
{ short: "Fri", long: "Friday", numeric: 6 },
|
|
43
|
-
{ short: "Sat", long: "Saturday", numeric: 7 }
|
|
44
|
-
];
|
|
45
|
-
|
|
46
|
-
// src/lib/date/months.js
|
|
47
|
-
var MONTHS = [
|
|
48
|
-
{
|
|
49
|
-
long: "January",
|
|
50
|
-
short: "jan",
|
|
51
|
-
numeric: 1,
|
|
52
|
-
lastDay: { default: 31, leapYear: 31 }
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
long: "February",
|
|
56
|
-
short: "feb",
|
|
57
|
-
numeric: 2,
|
|
58
|
-
lastDay: { default: 28, leapYear: 29 }
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
long: "March",
|
|
62
|
-
short: "mar",
|
|
63
|
-
numeric: 3,
|
|
64
|
-
lastDay: { default: 31, leapYear: 31 }
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
long: "April",
|
|
68
|
-
short: "apr",
|
|
69
|
-
numeric: 4,
|
|
70
|
-
lastDay: { default: 30, leapYear: 30 }
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
long: "May",
|
|
74
|
-
short: "may",
|
|
75
|
-
numeric: 5,
|
|
76
|
-
lastDay: { default: 31, leapYear: 31 }
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
long: "June",
|
|
80
|
-
short: "jun",
|
|
81
|
-
numeric: 6,
|
|
82
|
-
lastDay: { default: 30, leapYear: 30 }
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
long: "July",
|
|
86
|
-
short: "jul",
|
|
87
|
-
numeric: 7,
|
|
88
|
-
lastDay: { default: 31, leapYear: 31 }
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
long: "August",
|
|
92
|
-
short: "aug",
|
|
93
|
-
numeric: 8,
|
|
94
|
-
lastDay: { default: 31, leapYear: 31 }
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
long: "September",
|
|
98
|
-
short: "sep",
|
|
99
|
-
numeric: 9,
|
|
100
|
-
lastDay: { default: 30, leapYear: 30 }
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
long: "October",
|
|
104
|
-
short: "oct",
|
|
105
|
-
numeric: 10,
|
|
106
|
-
lastDay: { default: 31, leapYear: 31 }
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
long: "November",
|
|
110
|
-
short: "nov",
|
|
111
|
-
numeric: 11,
|
|
112
|
-
lastDay: { default: 30, leapYear: 30 }
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
long: "December",
|
|
116
|
-
short: "dec",
|
|
117
|
-
numeric: 12,
|
|
118
|
-
lastDay: { default: 31, leapYear: 31 }
|
|
119
|
-
}
|
|
120
|
-
];
|
|
121
|
-
|
|
122
|
-
// src/lib/numbers/index.js
|
|
123
|
-
function splitUnit(string) {
|
|
124
|
-
if (typeof string === "number") return [string, null];
|
|
125
|
-
const regex = /(-?\d*\.?\d+)\s*([a-z]+)/i;
|
|
126
|
-
const match = string.match(regex);
|
|
127
|
-
if (match) return [parseFloat(match[1]), match[2]];
|
|
128
|
-
return [parseFloat(string), null];
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
// src/lib/date/time.js
|
|
132
|
-
function ms(arg) {
|
|
133
|
-
const [value, unit] = splitUnit(arg);
|
|
134
|
-
if (unit === "d") return getTimeInMs(value, "days");
|
|
135
|
-
if (unit === "day") return getTimeInMs(value, "days");
|
|
136
|
-
if (unit === "days") return getTimeInMs(value, "days");
|
|
137
|
-
if (unit === "h") return getTimeInMs(value, "hours");
|
|
138
|
-
if (unit === "hr") return getTimeInMs(value, "hours");
|
|
139
|
-
if (unit === "hour") return getTimeInMs(value, "hours");
|
|
140
|
-
if (unit === "hours") return getTimeInMs(value, "hours");
|
|
141
|
-
if (unit === "m") return getTimeInMs(value, "minutes");
|
|
142
|
-
if (unit === "min") return getTimeInMs(value, "minutes");
|
|
143
|
-
if (unit === "mins") return getTimeInMs(value, "minutes");
|
|
144
|
-
if (unit === "minute") return getTimeInMs(value, "minutes");
|
|
145
|
-
if (unit === "minutes") return getTimeInMs(value, "minutes");
|
|
146
|
-
if (unit === "s") return getTimeInMs(value, "seconds");
|
|
147
|
-
if (unit === "sec") return getTimeInMs(value, "seconds");
|
|
148
|
-
if (unit === "secs") return getTimeInMs(value, "seconds");
|
|
149
|
-
if (unit === "second") return getTimeInMs(value, "seconds");
|
|
150
|
-
if (unit === "seconds") return getTimeInMs(value, "seconds");
|
|
151
|
-
return value;
|
|
152
|
-
}
|
|
153
|
-
function getTimeInMs(value, unit = "ms") {
|
|
154
|
-
switch (unit) {
|
|
155
|
-
case "ms":
|
|
156
|
-
return value;
|
|
157
|
-
case "seconds":
|
|
158
|
-
return value * 1e3;
|
|
159
|
-
case "minutes":
|
|
160
|
-
return value * 1e3 * 60;
|
|
161
|
-
case "hours":
|
|
162
|
-
return value * 1e3 * 60 * 60;
|
|
163
|
-
case "days":
|
|
164
|
-
return value * 1e3 * 60 * 60 * 24;
|
|
165
|
-
case "weeks":
|
|
166
|
-
return value * 1e3 * 60 * 60 * 24 * 7;
|
|
167
|
-
}
|
|
168
|
-
}
|
|
169
|
-
function toWeeks(ms2) {
|
|
170
|
-
return ms2 / 1e3 / 60 / 60 / 24 / 7;
|
|
171
|
-
}
|
|
172
|
-
function toDays(ms2) {
|
|
173
|
-
return ms2 / 1e3 / 60 / 60 / 24;
|
|
174
|
-
}
|
|
175
|
-
function toHours(ms2) {
|
|
176
|
-
return ms2 / 1e3 / 60 / 60;
|
|
177
|
-
}
|
|
178
|
-
function toMinutes(ms2) {
|
|
179
|
-
return ms2 / 1e3 / 60;
|
|
180
|
-
}
|
|
181
|
-
function toSeconds(ms2) {
|
|
182
|
-
return ms2 / 1e3;
|
|
183
|
-
}
|
|
184
|
-
function toReadableTime(ms2) {
|
|
185
|
-
const weekMs = 1e3 * 60 * 60 * 24 * 7;
|
|
186
|
-
const dayMs = 1e3 * 60 * 60 * 24;
|
|
187
|
-
const hourMs = 1e3 * 60 * 60;
|
|
188
|
-
const minuteMs = 1e3 * 60;
|
|
189
|
-
const weeks = Math.floor(ms2 / weekMs);
|
|
190
|
-
const days = Math.floor(ms2 % weekMs / dayMs);
|
|
191
|
-
const hours = Math.floor(ms2 % dayMs / hourMs);
|
|
192
|
-
const minutes = Math.floor(ms2 % hourMs / minuteMs);
|
|
193
|
-
const seconds = Math.floor(ms2 % minuteMs / 1e3);
|
|
194
|
-
return { weeks, days, hours, minutes, seconds };
|
|
195
|
-
}
|
|
17
|
+
__reExport(date_exports, require("./days.js"), module.exports);
|
|
18
|
+
__reExport(date_exports, require("./months.js"), module.exports);
|
|
19
|
+
__reExport(date_exports, require("./time.js"), module.exports);
|
|
196
20
|
// Annotate the CommonJS export names for ESM import in node:
|
|
197
21
|
0 && (module.exports = {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
ms,
|
|
202
|
-
toDays,
|
|
203
|
-
toHours,
|
|
204
|
-
toMinutes,
|
|
205
|
-
toReadableTime,
|
|
206
|
-
toSeconds,
|
|
207
|
-
toWeeks
|
|
22
|
+
...require("./days.js"),
|
|
23
|
+
...require("./months.js"),
|
|
24
|
+
...require("./time.js")
|
|
208
25
|
});
|
|
@@ -15,14 +15,12 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/date/months.js
|
|
20
18
|
var months_exports = {};
|
|
21
19
|
__export(months_exports, {
|
|
22
20
|
MONTHS: () => MONTHS
|
|
23
21
|
});
|
|
24
22
|
module.exports = __toCommonJS(months_exports);
|
|
25
|
-
|
|
23
|
+
const MONTHS = [
|
|
26
24
|
{
|
|
27
25
|
long: "January",
|
|
28
26
|
short: "jan",
|
|
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/date/time.js
|
|
20
18
|
var time_exports = {};
|
|
21
19
|
__export(time_exports, {
|
|
22
20
|
getTimeInMs: () => getTimeInMs,
|
|
@@ -29,19 +27,9 @@ __export(time_exports, {
|
|
|
29
27
|
toWeeks: () => toWeeks
|
|
30
28
|
});
|
|
31
29
|
module.exports = __toCommonJS(time_exports);
|
|
32
|
-
|
|
33
|
-
// src/lib/numbers/index.js
|
|
34
|
-
function splitUnit(string) {
|
|
35
|
-
if (typeof string === "number") return [string, null];
|
|
36
|
-
const regex = /(-?\d*\.?\d+)\s*([a-z]+)/i;
|
|
37
|
-
const match = string.match(regex);
|
|
38
|
-
if (match) return [parseFloat(match[1]), match[2]];
|
|
39
|
-
return [parseFloat(string), null];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// src/lib/date/time.js
|
|
30
|
+
var import_numbers = require("../numbers/index.js");
|
|
43
31
|
function ms(arg) {
|
|
44
|
-
const [value, unit] = splitUnit(arg);
|
|
32
|
+
const [value, unit] = (0, import_numbers.splitUnit)(arg);
|
|
45
33
|
if (unit === "d") return getTimeInMs(value, "days");
|
|
46
34
|
if (unit === "day") return getTimeInMs(value, "days");
|
|
47
35
|
if (unit === "days") return getTimeInMs(value, "days");
|
|
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/form/form-data.js
|
|
20
18
|
var form_data_exports = {};
|
|
21
19
|
__export(form_data_exports, {
|
|
22
20
|
flattenArrayFields: () => flattenArrayFields,
|
|
@@ -2,10 +2,6 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
5
|
var __copyProps = (to, from, except, desc) => {
|
|
10
6
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
7
|
for (let key of __getOwnPropNames(from))
|
|
@@ -14,109 +10,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
10
|
}
|
|
15
11
|
return to;
|
|
16
12
|
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/form/index.js
|
|
20
15
|
var form_exports = {};
|
|
21
|
-
__export(form_exports, {
|
|
22
|
-
flattenArrayFields: () => flattenArrayFields,
|
|
23
|
-
formDataToObject: () => formDataToObject,
|
|
24
|
-
sanitize: () => sanitize,
|
|
25
|
-
sanitizeArray: () => sanitizeArray,
|
|
26
|
-
sanitizeObject: () => sanitizeObject
|
|
27
|
-
});
|
|
28
16
|
module.exports = __toCommonJS(form_exports);
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
function formDataToObject(formData) {
|
|
32
|
-
const obj = {};
|
|
33
|
-
for (let [key, value] of formData) {
|
|
34
|
-
if (typeof value === "string") value = value.trim();
|
|
35
|
-
if (key.includes("[]")) {
|
|
36
|
-
const arrayKey = key.replace("[]", "");
|
|
37
|
-
if (!obj[arrayKey]) obj[arrayKey] = [];
|
|
38
|
-
obj[arrayKey].push(value);
|
|
39
|
-
} else {
|
|
40
|
-
obj[key] = value;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return obj;
|
|
44
|
-
}
|
|
45
|
-
function flattenArrayFields(inputObject) {
|
|
46
|
-
const result = {};
|
|
47
|
-
for (const [key, value] of Object.entries(inputObject)) {
|
|
48
|
-
const match = key.match(/^(\w+)(?:\[(\d+)\])?(?:\[(\w+)\])?$/);
|
|
49
|
-
if (match) {
|
|
50
|
-
const [, baseKey, index, property] = match;
|
|
51
|
-
if (index !== void 0) {
|
|
52
|
-
if (!result[baseKey]) result[baseKey] = [];
|
|
53
|
-
const arrayIndex = parseInt(index);
|
|
54
|
-
if (!result[baseKey][arrayIndex]) result[baseKey][arrayIndex] = {};
|
|
55
|
-
if (property) {
|
|
56
|
-
result[baseKey][arrayIndex][property] = value;
|
|
57
|
-
} else {
|
|
58
|
-
result[baseKey][arrayIndex] = value;
|
|
59
|
-
}
|
|
60
|
-
} else if (property) {
|
|
61
|
-
if (!result[baseKey]) result[baseKey] = {};
|
|
62
|
-
result[baseKey][property] = value;
|
|
63
|
-
} else {
|
|
64
|
-
result[key] = value;
|
|
65
|
-
}
|
|
66
|
-
} else {
|
|
67
|
-
result[key] = value;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
for (const key in result) {
|
|
71
|
-
if (typeof result[key] === "object" && result[key] !== null) {
|
|
72
|
-
if (Object.keys(result[key]).every((k) => !isNaN(parseInt(k)))) {
|
|
73
|
-
result[key] = Object.values(result[key]).filter((item) => {
|
|
74
|
-
if (typeof item === "object") {
|
|
75
|
-
return Object.values(item).some((v) => v !== "");
|
|
76
|
-
}
|
|
77
|
-
return item !== "";
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return result;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
// src/lib/form/sanitize.js
|
|
86
|
-
function sanitize(value, options = {}) {
|
|
87
|
-
const { sanitizer, ...rest } = options;
|
|
88
|
-
if (!sanitizer) throw new Error("sanitizer function is required");
|
|
89
|
-
if (typeof value === "string") return sanitizer(value, rest);
|
|
90
|
-
if (Array.isArray(value)) return sanitizeArray(value, { sanitizer, ...rest });
|
|
91
|
-
if (value && typeof value === "object") {
|
|
92
|
-
return Object.fromEntries(
|
|
93
|
-
Object.entries(value).map(([key, val]) => [
|
|
94
|
-
key,
|
|
95
|
-
sanitize(val, { sanitizer, ...rest })
|
|
96
|
-
])
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
return value;
|
|
100
|
-
}
|
|
101
|
-
function sanitizeArray(arr, { sanitizer, ...rest }) {
|
|
102
|
-
if (!sanitizer) throw new Error("sanitizer function is required");
|
|
103
|
-
return arr.map((item) => sanitize(item, { sanitizer, ...rest }));
|
|
104
|
-
}
|
|
105
|
-
function sanitizeObject(obj, { sanitizer, ...options } = {}) {
|
|
106
|
-
if (!sanitizer) throw new Error("sanitizer function is required");
|
|
107
|
-
if (Array.isArray(obj)) return sanitizeArray(obj, { sanitizer, ...options });
|
|
108
|
-
return Object.fromEntries(
|
|
109
|
-
Object.entries(obj).map(([key, value]) => [
|
|
110
|
-
key,
|
|
111
|
-
sanitize(value, { sanitizer, ...options })
|
|
112
|
-
])
|
|
113
|
-
);
|
|
114
|
-
}
|
|
17
|
+
__reExport(form_exports, require("./form-data.js"), module.exports);
|
|
18
|
+
__reExport(form_exports, require("./sanitize.js"), module.exports);
|
|
115
19
|
// Annotate the CommonJS export names for ESM import in node:
|
|
116
20
|
0 && (module.exports = {
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
sanitize,
|
|
120
|
-
sanitizeArray,
|
|
121
|
-
sanitizeObject
|
|
21
|
+
...require("./form-data.js"),
|
|
22
|
+
...require("./sanitize.js")
|
|
122
23
|
});
|
|
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/form/sanitize.js
|
|
20
18
|
var sanitize_exports = {};
|
|
21
19
|
__export(sanitize_exports, {
|
|
22
20
|
sanitize: () => sanitize,
|
|
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/functions/callback.js
|
|
20
18
|
var callback_exports = {};
|
|
21
19
|
__export(callback_exports, {
|
|
22
20
|
runCallback: () => runCallback
|
|
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/functions/debounce.js
|
|
20
18
|
var debounce_exports = {};
|
|
21
19
|
__export(debounce_exports, {
|
|
22
20
|
debounce: () => debounce
|
|
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/functions/env.js
|
|
20
18
|
var env_exports = {};
|
|
21
19
|
__export(env_exports, {
|
|
22
20
|
getEnv: () => getEnv
|
|
@@ -15,8 +15,6 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
17
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/functions/functional.js
|
|
20
18
|
var functional_exports = {};
|
|
21
19
|
__export(functional_exports, {
|
|
22
20
|
compose: () => compose,
|
|
@@ -2,10 +2,6 @@ var __defProp = Object.defineProperty;
|
|
|
2
2
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
4
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
5
|
var __copyProps = (to, from, except, desc) => {
|
|
10
6
|
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
7
|
for (let key of __getOwnPropNames(from))
|
|
@@ -14,129 +10,20 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
10
|
}
|
|
15
11
|
return to;
|
|
16
12
|
};
|
|
13
|
+
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
17
14
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
-
|
|
19
|
-
// src/lib/functions/index.js
|
|
20
15
|
var functions_exports = {};
|
|
21
|
-
__export(functions_exports, {
|
|
22
|
-
compose: () => compose,
|
|
23
|
-
composeAsync: () => composeAsync,
|
|
24
|
-
curry: () => curry,
|
|
25
|
-
debounce: () => debounce,
|
|
26
|
-
delay: () => delay,
|
|
27
|
-
getEnv: () => getEnv,
|
|
28
|
-
pipe: () => pipe,
|
|
29
|
-
pipeAsync: () => pipeAsync,
|
|
30
|
-
throttle: () => throttle,
|
|
31
|
-
timeout: () => timeout,
|
|
32
|
-
times: () => times,
|
|
33
|
-
wait: () => wait
|
|
34
|
-
});
|
|
35
16
|
module.exports = __toCommonJS(functions_exports);
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
const context = this;
|
|
42
|
-
const args = arguments;
|
|
43
|
-
const callNow = immediate && !timeout2;
|
|
44
|
-
clearTimeout(timeout2);
|
|
45
|
-
timeout2 = setTimeout(later, wait2);
|
|
46
|
-
if (callNow) callback.apply(context, args);
|
|
47
|
-
function later() {
|
|
48
|
-
timeout2 = null;
|
|
49
|
-
if (!immediate) callback.apply(context, args);
|
|
50
|
-
}
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// src/lib/functions/env.js
|
|
55
|
-
function getEnv() {
|
|
56
|
-
if (typeof window === "object") return "browser";
|
|
57
|
-
if (typeof global === "object") return "node";
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// src/lib/functions/functional.js
|
|
61
|
-
function curry(fn) {
|
|
62
|
-
return function curried(...args) {
|
|
63
|
-
if (args.length >= fn.length) {
|
|
64
|
-
return fn.apply(this, args);
|
|
65
|
-
} else {
|
|
66
|
-
return function(...moreArgs) {
|
|
67
|
-
return curried.apply(this, args.concat(moreArgs));
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
function compose(...fns) {
|
|
73
|
-
return function(value) {
|
|
74
|
-
return fns.reduceRight((acc, fn) => fn(acc), value);
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
function composeAsync(...fns) {
|
|
78
|
-
return async function(value) {
|
|
79
|
-
return fns.reduceRight(async (acc, fn) => {
|
|
80
|
-
const result = await acc;
|
|
81
|
-
return await fn(result);
|
|
82
|
-
}, value);
|
|
83
|
-
};
|
|
84
|
-
}
|
|
85
|
-
function pipe(...fns) {
|
|
86
|
-
return function(value) {
|
|
87
|
-
return fns.reduce((acc, fn) => fn(acc), value);
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
function pipeAsync(...fns) {
|
|
91
|
-
return async function(value) {
|
|
92
|
-
return fns.reduce(async (acc, fn) => {
|
|
93
|
-
const result = await acc;
|
|
94
|
-
return await fn(result);
|
|
95
|
-
}, value);
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
function times(fn, n) {
|
|
99
|
-
const result = [];
|
|
100
|
-
for (let i = 0; i < n; i++) {
|
|
101
|
-
result.push(fn(i));
|
|
102
|
-
}
|
|
103
|
-
return result;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
// src/lib/functions/throttle.js
|
|
107
|
-
function throttle(callback, wait2) {
|
|
108
|
-
let lastCall = 0;
|
|
109
|
-
return function(...args) {
|
|
110
|
-
const now = (/* @__PURE__ */ new Date()).getTime();
|
|
111
|
-
if (now - lastCall >= wait2) {
|
|
112
|
-
callback(...args);
|
|
113
|
-
lastCall = now;
|
|
114
|
-
}
|
|
115
|
-
};
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// src/lib/functions/timeout.js
|
|
119
|
-
function timeout(wait2, callback) {
|
|
120
|
-
setTimeout(callback, wait2);
|
|
121
|
-
}
|
|
122
|
-
function delay(ms) {
|
|
123
|
-
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
124
|
-
}
|
|
125
|
-
function wait(ms) {
|
|
126
|
-
return delay(ms);
|
|
127
|
-
}
|
|
17
|
+
__reExport(functions_exports, require("./debounce.js"), module.exports);
|
|
18
|
+
__reExport(functions_exports, require("./env.js"), module.exports);
|
|
19
|
+
__reExport(functions_exports, require("./functional.js"), module.exports);
|
|
20
|
+
__reExport(functions_exports, require("./throttle.js"), module.exports);
|
|
21
|
+
__reExport(functions_exports, require("./timeout.js"), module.exports);
|
|
128
22
|
// Annotate the CommonJS export names for ESM import in node:
|
|
129
23
|
0 && (module.exports = {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
getEnv,
|
|
136
|
-
pipe,
|
|
137
|
-
pipeAsync,
|
|
138
|
-
throttle,
|
|
139
|
-
timeout,
|
|
140
|
-
times,
|
|
141
|
-
wait
|
|
24
|
+
...require("./debounce.js"),
|
|
25
|
+
...require("./env.js"),
|
|
26
|
+
...require("./functional.js"),
|
|
27
|
+
...require("./throttle.js"),
|
|
28
|
+
...require("./timeout.js")
|
|
142
29
|
});
|