@maz-ui/utils 4.0.0-beta.6 → 4.0.0-beta.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/{utils → helpers}/getBrowserLocale.js +1 -1
- package/dist/helpers/index.js +44 -0
- package/dist/helpers/isServer.js +6 -0
- package/dist/{utils → helpers}/isStandaloneMode.js +2 -2
- package/dist/{utils → helpers}/scriptLoader.js +9 -9
- package/dist/index.js +40 -44
- package/dist/types/{utils → helpers}/index.d.ts +0 -2
- package/dist/types/{utils → helpers}/scriptLoader.d.ts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +16 -14
- package/dist/types/utils/execPromise.d.ts +0 -11
- package/dist/types/utils/logger.d.ts +0 -10
- package/dist/utils/execPromise.js +0 -13
- package/dist/utils/index.js +0 -48
- package/dist/utils/isServer.js +0 -6
- package/dist/utils/logger.js +0 -20
- /package/dist/{utils → helpers}/TextareaAutogrow.js +0 -0
- /package/dist/{utils → helpers}/checkAvailability.js +0 -0
- /package/dist/{utils → helpers}/countryCodeToUnicodeFlag.js +0 -0
- /package/dist/{utils → helpers}/debounce.js +0 -0
- /package/dist/{utils → helpers}/debounceCallback.js +0 -0
- /package/dist/{utils → helpers}/debounceId.js +0 -0
- /package/dist/{utils → helpers}/fetchLocaleIp.js +0 -0
- /package/dist/{utils → helpers}/getCountryFlagUrl.js +0 -0
- /package/dist/{utils → helpers}/getErrorMessage.js +0 -0
- /package/dist/{utils → helpers}/idleTimeout.js +0 -0
- /package/dist/{utils → helpers}/isClient.js +0 -0
- /package/dist/{utils → helpers}/isEqual.js +0 -0
- /package/dist/{utils → helpers}/normalizeString.js +0 -0
- /package/dist/{utils → helpers}/sleep.js +0 -0
- /package/dist/{utils → helpers}/swipeHandler.js +0 -0
- /package/dist/{utils → helpers}/throttle.js +0 -0
- /package/dist/{utils → helpers}/throttleId.js +0 -0
- /package/dist/{utils → helpers}/truthyFilter.js +0 -0
- /package/dist/{utils → helpers}/userVisibility.js +0 -0
- /package/dist/types/{utils → helpers}/TextareaAutogrow.d.ts +0 -0
- /package/dist/types/{utils → helpers}/checkAvailability.d.ts +0 -0
- /package/dist/types/{utils → helpers}/countryCodeToUnicodeFlag.d.ts +0 -0
- /package/dist/types/{utils → helpers}/debounce.d.ts +0 -0
- /package/dist/types/{utils → helpers}/debounceCallback.d.ts +0 -0
- /package/dist/types/{utils → helpers}/debounceId.d.ts +0 -0
- /package/dist/types/{utils → helpers}/fetchLocaleIp.d.ts +0 -0
- /package/dist/types/{utils → helpers}/getBrowserLocale.d.ts +0 -0
- /package/dist/types/{utils → helpers}/getCountryFlagUrl.d.ts +0 -0
- /package/dist/types/{utils → helpers}/getErrorMessage.d.ts +0 -0
- /package/dist/types/{utils → helpers}/idleTimeout.d.ts +0 -0
- /package/dist/types/{utils → helpers}/isClient.d.ts +0 -0
- /package/dist/types/{utils → helpers}/isEqual.d.ts +0 -0
- /package/dist/types/{utils → helpers}/isServer.d.ts +0 -0
- /package/dist/types/{utils → helpers}/isStandaloneMode.d.ts +0 -0
- /package/dist/types/{utils → helpers}/normalizeString.d.ts +0 -0
- /package/dist/types/{utils → helpers}/sleep.d.ts +0 -0
- /package/dist/types/{utils → helpers}/swipeHandler.d.ts +0 -0
- /package/dist/types/{utils → helpers}/throttle.d.ts +0 -0
- /package/dist/types/{utils → helpers}/throttleId.d.ts +0 -0
- /package/dist/types/{utils → helpers}/truthyFilter.d.ts +0 -0
- /package/dist/types/{utils → helpers}/userVisibility.d.ts +0 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { checkAvailability as e } from "./checkAvailability.js";
|
|
2
|
+
import { countryCodeToUnicodeFlag as p } from "./countryCodeToUnicodeFlag.js";
|
|
3
|
+
import { debounce as x } from "./debounce.js";
|
|
4
|
+
import { debounceCallback as i } from "./debounceCallback.js";
|
|
5
|
+
import { debounceId as a } from "./debounceId.js";
|
|
6
|
+
import { getCountryFlagUrl as n } from "./getCountryFlagUrl.js";
|
|
7
|
+
import { getErrorMessage as s } from "./getErrorMessage.js";
|
|
8
|
+
import { IdleTimeout as g } from "./idleTimeout.js";
|
|
9
|
+
import { isClient as y } from "./isClient.js";
|
|
10
|
+
import { isEqual as h } from "./isEqual.js";
|
|
11
|
+
import { isServer as F } from "./isServer.js";
|
|
12
|
+
import { isStandaloneMode as T } from "./isStandaloneMode.js";
|
|
13
|
+
import { normalizeString as k } from "./normalizeString.js";
|
|
14
|
+
import { ScriptLoader as w } from "./scriptLoader.js";
|
|
15
|
+
import { sleep as E } from "./sleep.js";
|
|
16
|
+
import { Swipe as q } from "./swipeHandler.js";
|
|
17
|
+
import { TextareaAutogrow as L } from "./TextareaAutogrow.js";
|
|
18
|
+
import { throttle as j } from "./throttle.js";
|
|
19
|
+
import { throttleId as D } from "./throttleId.js";
|
|
20
|
+
import { truthyFilter as H } from "./truthyFilter.js";
|
|
21
|
+
import { UserVisibility as K } from "./userVisibility.js";
|
|
22
|
+
export {
|
|
23
|
+
g as IdleTimeout,
|
|
24
|
+
w as ScriptLoader,
|
|
25
|
+
q as Swipe,
|
|
26
|
+
L as TextareaAutogrow,
|
|
27
|
+
K as UserVisibility,
|
|
28
|
+
e as checkAvailability,
|
|
29
|
+
p as countryCodeToUnicodeFlag,
|
|
30
|
+
x as debounce,
|
|
31
|
+
i as debounceCallback,
|
|
32
|
+
a as debounceId,
|
|
33
|
+
n as getCountryFlagUrl,
|
|
34
|
+
s as getErrorMessage,
|
|
35
|
+
y as isClient,
|
|
36
|
+
h as isEqual,
|
|
37
|
+
F as isServer,
|
|
38
|
+
T as isStandaloneMode,
|
|
39
|
+
k as normalizeString,
|
|
40
|
+
E as sleep,
|
|
41
|
+
j as throttle,
|
|
42
|
+
D as throttleId,
|
|
43
|
+
H as truthyFilter
|
|
44
|
+
};
|
|
@@ -2,8 +2,8 @@ import { isClient as t } from "./isClient.js";
|
|
|
2
2
|
function e() {
|
|
3
3
|
if (!t())
|
|
4
4
|
return !1;
|
|
5
|
-
const
|
|
6
|
-
return
|
|
5
|
+
const a = navigator, n = globalThis.matchMedia("(display-mode: standalone)").matches;
|
|
6
|
+
return a.standalone || n;
|
|
7
7
|
}
|
|
8
8
|
export {
|
|
9
9
|
e as isStandaloneMode
|
|
@@ -5,33 +5,33 @@ class s {
|
|
|
5
5
|
async;
|
|
6
6
|
defer;
|
|
7
7
|
identifier;
|
|
8
|
-
constructor({ src: e, identifier: t, once:
|
|
9
|
-
if (typeof window > "u")
|
|
8
|
+
constructor({ src: e, identifier: t, once: o = !0, async: r = !0, defer: i = !0 }) {
|
|
9
|
+
if (typeof globalThis.window > "u")
|
|
10
10
|
throw new TypeError("[ScriptLoader]: Is supported only on browser side");
|
|
11
11
|
if (!e)
|
|
12
12
|
throw new Error('[ScriptLoader]: You should provide the attribut "src"');
|
|
13
13
|
if (!t)
|
|
14
14
|
throw new Error('[ScriptLoader]: You should provide the attribut "identifier"');
|
|
15
|
-
this.src = e, this.identifier = t, this.once =
|
|
15
|
+
this.src = e, this.identifier = t, this.once = o, this.async = r, this.defer = i;
|
|
16
16
|
}
|
|
17
17
|
removeTag(e) {
|
|
18
18
|
typeof e == "string" ? document.head.querySelector(`[data-identifier="${e}"]`)?.remove() : e.remove();
|
|
19
19
|
}
|
|
20
20
|
load() {
|
|
21
|
-
const e =
|
|
21
|
+
const e = globalThis, t = document.head.querySelectorAll(`[data-identifier="${this.identifier}"]`);
|
|
22
22
|
if (this.once && e[this.identifier] && t.length > 0)
|
|
23
23
|
return this.script = e[this.identifier], Promise.resolve(this.script);
|
|
24
24
|
if (!this.once && t.length > 0)
|
|
25
|
-
for (const
|
|
26
|
-
this.removeTag(
|
|
25
|
+
for (const o of t)
|
|
26
|
+
this.removeTag(o);
|
|
27
27
|
return this.injectScript();
|
|
28
28
|
}
|
|
29
29
|
injectScript() {
|
|
30
|
-
const e =
|
|
31
|
-
return new Promise((t,
|
|
30
|
+
const e = globalThis;
|
|
31
|
+
return new Promise((t, o) => {
|
|
32
32
|
try {
|
|
33
33
|
const r = document.createElement("script");
|
|
34
|
-
r.src = this.src, r.async = this.async, r.defer = this.defer, r.dataset.identifier = this.identifier, r.addEventListener("error", (i) =>
|
|
34
|
+
r.src = this.src, r.async = this.async, r.defer = this.defer, r.dataset.identifier = this.identifier, r.addEventListener("error", (i) => o(new Error(`[ScriptLoader](injectScript) ${i.message}`))), r.addEventListener("load", (i) => (this.script = i, e[this.identifier] = i, t(i))), document.head.append(r);
|
|
35
35
|
} catch (r) {
|
|
36
36
|
throw new Error(`[ScriptLoader](init) ${r}`);
|
|
37
37
|
}
|
package/dist/index.js
CHANGED
|
@@ -3,58 +3,54 @@ import { capitalize as m } from "./formatters/capitalize.js";
|
|
|
3
3
|
import { formatCurrency as f } from "./formatters/formatCurrency.js";
|
|
4
4
|
import { formatDate as a } from "./formatters/formatDate.js";
|
|
5
5
|
import { formatNumber as l } from "./formatters/formatNumber.js";
|
|
6
|
-
import { pascalCase as
|
|
7
|
-
import { checkAvailability as d } from "./
|
|
8
|
-
import { countryCodeToUnicodeFlag as
|
|
9
|
-
import { debounce as C } from "./
|
|
10
|
-
import { debounceCallback as S } from "./
|
|
11
|
-
import { debounceId as F } from "./
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import { truthyFilter as er } from "./utils/truthyFilter.js";
|
|
29
|
-
import { UserVisibility as mr } from "./utils/userVisibility.js";
|
|
6
|
+
import { pascalCase as n } from "./formatters/pascalCase.js";
|
|
7
|
+
import { checkAvailability as d } from "./helpers/checkAvailability.js";
|
|
8
|
+
import { countryCodeToUnicodeFlag as b } from "./helpers/countryCodeToUnicodeFlag.js";
|
|
9
|
+
import { debounce as C } from "./helpers/debounce.js";
|
|
10
|
+
import { debounceCallback as S } from "./helpers/debounceCallback.js";
|
|
11
|
+
import { debounceId as F } from "./helpers/debounceId.js";
|
|
12
|
+
import { getCountryFlagUrl as T } from "./helpers/getCountryFlagUrl.js";
|
|
13
|
+
import { getErrorMessage as k } from "./helpers/getErrorMessage.js";
|
|
14
|
+
import { IdleTimeout as w } from "./helpers/idleTimeout.js";
|
|
15
|
+
import { isClient as A } from "./helpers/isClient.js";
|
|
16
|
+
import { isEqual as M } from "./helpers/isEqual.js";
|
|
17
|
+
import { isServer as D } from "./helpers/isServer.js";
|
|
18
|
+
import { isStandaloneMode as N } from "./helpers/isStandaloneMode.js";
|
|
19
|
+
import { normalizeString as j } from "./helpers/normalizeString.js";
|
|
20
|
+
import { ScriptLoader as G } from "./helpers/scriptLoader.js";
|
|
21
|
+
import { sleep as J } from "./helpers/sleep.js";
|
|
22
|
+
import { Swipe as O } from "./helpers/swipeHandler.js";
|
|
23
|
+
import { TextareaAutogrow as Q } from "./helpers/TextareaAutogrow.js";
|
|
24
|
+
import { throttle as W } from "./helpers/throttle.js";
|
|
25
|
+
import { throttleId as Y } from "./helpers/throttleId.js";
|
|
26
|
+
import { truthyFilter as _ } from "./helpers/truthyFilter.js";
|
|
27
|
+
import { UserVisibility as rr } from "./helpers/userVisibility.js";
|
|
30
28
|
export {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
29
|
+
w as IdleTimeout,
|
|
30
|
+
G as ScriptLoader,
|
|
31
|
+
O as Swipe,
|
|
32
|
+
Q as TextareaAutogrow,
|
|
33
|
+
rr as UserVisibility,
|
|
36
34
|
e as camelCase,
|
|
37
35
|
m as capitalize,
|
|
38
36
|
d as checkAvailability,
|
|
39
|
-
|
|
37
|
+
b as countryCodeToUnicodeFlag,
|
|
40
38
|
C as debounce,
|
|
41
39
|
S as debounceCallback,
|
|
42
40
|
F as debounceId,
|
|
43
|
-
T as execPromise,
|
|
44
41
|
f as formatCurrency,
|
|
45
42
|
a as formatDate,
|
|
46
43
|
l as formatNumber,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
er as truthyFilter
|
|
44
|
+
T as getCountryFlagUrl,
|
|
45
|
+
k as getErrorMessage,
|
|
46
|
+
A as isClient,
|
|
47
|
+
M as isEqual,
|
|
48
|
+
D as isServer,
|
|
49
|
+
N as isStandaloneMode,
|
|
50
|
+
j as normalizeString,
|
|
51
|
+
n as pascalCase,
|
|
52
|
+
J as sleep,
|
|
53
|
+
W as throttle,
|
|
54
|
+
Y as throttleId,
|
|
55
|
+
_ as truthyFilter
|
|
60
56
|
};
|
|
@@ -3,7 +3,6 @@ export * from './countryCodeToUnicodeFlag';
|
|
|
3
3
|
export * from './debounce';
|
|
4
4
|
export * from './debounceCallback';
|
|
5
5
|
export * from './debounceId';
|
|
6
|
-
export * from './execPromise';
|
|
7
6
|
export * from './getCountryFlagUrl';
|
|
8
7
|
export * from './getErrorMessage';
|
|
9
8
|
export * from './idleTimeout';
|
|
@@ -11,7 +10,6 @@ export * from './isClient';
|
|
|
11
10
|
export * from './isEqual';
|
|
12
11
|
export * from './isServer';
|
|
13
12
|
export * from './isStandaloneMode';
|
|
14
|
-
export * from './logger';
|
|
15
13
|
export * from './normalizeString';
|
|
16
14
|
export * from './scriptLoader';
|
|
17
15
|
export * from './sleep';
|
|
@@ -14,6 +14,6 @@ export declare class ScriptLoader {
|
|
|
14
14
|
private identifier;
|
|
15
15
|
constructor({ src, identifier, once, async, defer }: ScriptLoaderOptions);
|
|
16
16
|
removeTag(tag: Element | string): void;
|
|
17
|
-
load(): Promise<
|
|
17
|
+
load(): Promise<Event | undefined>;
|
|
18
18
|
private injectScript;
|
|
19
19
|
}
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maz-ui/utils",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "4.0.0-beta.
|
|
4
|
+
"version": "4.0.0-beta.8",
|
|
5
5
|
"description": "Utils of maz-ui for JavaScript/TypeScript users",
|
|
6
6
|
"author": "Louis Mazel <me@loicmazuel.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"module": "./dist/index.js",
|
|
27
27
|
"default": "./dist/index.js"
|
|
28
28
|
},
|
|
29
|
-
"./
|
|
30
|
-
"types": "./dist/types/
|
|
31
|
-
"import": "./dist/
|
|
32
|
-
"module": "./dist/
|
|
33
|
-
"default": "./dist/
|
|
29
|
+
"./helpers": {
|
|
30
|
+
"types": "./dist/types/helpers/index.d.ts",
|
|
31
|
+
"import": "./dist/helpers/index.js",
|
|
32
|
+
"module": "./dist/helpers/index.js",
|
|
33
|
+
"default": "./dist/helpers/index.js"
|
|
34
34
|
},
|
|
35
35
|
"./formatters": {
|
|
36
36
|
"types": "./dist/types/formatters/index.d.ts",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"module": "./dist/formatters/index.js",
|
|
39
39
|
"default": "./dist/formatters/index.js"
|
|
40
40
|
},
|
|
41
|
-
"./
|
|
42
|
-
"types": "./dist/types/
|
|
43
|
-
"import": "./dist/
|
|
44
|
-
"module": "./dist/
|
|
45
|
-
"default": "./dist/
|
|
41
|
+
"./helpers/*": {
|
|
42
|
+
"types": "./dist/types/helpers/*.d.ts",
|
|
43
|
+
"import": "./dist/helpers/*.js",
|
|
44
|
+
"module": "./dist/helpers/*.js",
|
|
45
|
+
"default": "./dist/helpers/*.js"
|
|
46
46
|
},
|
|
47
47
|
"./formatters/*": {
|
|
48
48
|
"types": "./dist/types/formatters/*.d.ts",
|
|
@@ -68,10 +68,12 @@
|
|
|
68
68
|
"typecheck": "tsc --noEmit --skipLibCheck",
|
|
69
69
|
"lint": "eslint .",
|
|
70
70
|
"lint:fix": "eslint . --fix",
|
|
71
|
-
"pre-commit": "lint-staged"
|
|
71
|
+
"pre-commit": "lint-staged",
|
|
72
|
+
"test:unit": "vitest run",
|
|
73
|
+
"test:unit:watch": "vitest watch",
|
|
74
|
+
"test:unit:coverage": "vitest run --coverage"
|
|
72
75
|
},
|
|
73
76
|
"devDependencies": {
|
|
74
|
-
"colorette": "^2.0.20",
|
|
75
77
|
"eslint": "^9.29.0",
|
|
76
78
|
"eslint-plugin-format": "^1.0.1",
|
|
77
79
|
"glob": "^11.0.3",
|
|
@@ -85,5 +87,5 @@
|
|
|
85
87
|
"eslint --fix"
|
|
86
88
|
]
|
|
87
89
|
},
|
|
88
|
-
"gitHead": "
|
|
90
|
+
"gitHead": "fef4d097f7e992f20980cc628216f070a516644e"
|
|
89
91
|
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Logger } from './logger';
|
|
2
|
-
export declare function execPromise(command: string, { logger, packageName, noSuccess, noStdout, noStderr }?: {
|
|
3
|
-
logger?: Logger;
|
|
4
|
-
packageName?: string;
|
|
5
|
-
noSuccess?: boolean;
|
|
6
|
-
noStdout?: boolean;
|
|
7
|
-
noStderr?: boolean;
|
|
8
|
-
}): Promise<{
|
|
9
|
-
stdout: string;
|
|
10
|
-
stderr: string;
|
|
11
|
-
}>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const logger: {
|
|
2
|
-
divider: () => void;
|
|
3
|
-
eot: () => void;
|
|
4
|
-
brand: (message: string) => void;
|
|
5
|
-
log: (...message: unknown[]) => void;
|
|
6
|
-
success: (...message: string[]) => void;
|
|
7
|
-
error: (message: string, error?: unknown) => void;
|
|
8
|
-
warn: (message: string, error?: unknown) => void;
|
|
9
|
-
};
|
|
10
|
-
export type Logger = typeof logger;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { exec as a } from "node:child_process";
|
|
2
|
-
import { logger as u } from "./logger.js";
|
|
3
|
-
async function E(e, { logger: n, packageName: f, noSuccess: o, noStdout: l, noStderr: t } = {}) {
|
|
4
|
-
const i = n ?? u, s = f ? `[${f}]` : "";
|
|
5
|
-
return await new Promise((r, x) => {
|
|
6
|
-
a(e, ($, g, c) => {
|
|
7
|
-
g && !l && i.log(`🟡 ${s}(${e})`, g), c && !t && i.warn(`🟡 ${s}(${e})`, c), $ ? (i.error(`🔴 ${s}(${e}) Execution failed - ${$.message}.`, $.message), x($)) : (o || i.success(`🟢 ${s}(${e}) Execution success`), r({ stdout: g, stderr: c }));
|
|
8
|
-
});
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
E as execPromise
|
|
13
|
-
};
|
package/dist/utils/index.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { checkAvailability as e } from "./checkAvailability.js";
|
|
2
|
-
import { countryCodeToUnicodeFlag as m } from "./countryCodeToUnicodeFlag.js";
|
|
3
|
-
import { debounce as x } from "./debounce.js";
|
|
4
|
-
import { debounceCallback as i } from "./debounceCallback.js";
|
|
5
|
-
import { debounceId as a } from "./debounceId.js";
|
|
6
|
-
import { execPromise as n } from "./execPromise.js";
|
|
7
|
-
import { getCountryFlagUrl as s } from "./getCountryFlagUrl.js";
|
|
8
|
-
import { getErrorMessage as u } from "./getErrorMessage.js";
|
|
9
|
-
import { IdleTimeout as y } from "./idleTimeout.js";
|
|
10
|
-
import { isClient as h } from "./isClient.js";
|
|
11
|
-
import { isEqual as F } from "./isEqual.js";
|
|
12
|
-
import { isServer as T } from "./isServer.js";
|
|
13
|
-
import { isStandaloneMode as k } from "./isStandaloneMode.js";
|
|
14
|
-
import { logger as w } from "./logger.js";
|
|
15
|
-
import { normalizeString as E } from "./normalizeString.js";
|
|
16
|
-
import { ScriptLoader as q } from "./scriptLoader.js";
|
|
17
|
-
import { sleep as L } from "./sleep.js";
|
|
18
|
-
import { Swipe as V } from "./swipeHandler.js";
|
|
19
|
-
import { TextareaAutogrow as B } from "./TextareaAutogrow.js";
|
|
20
|
-
import { throttle as G } from "./throttle.js";
|
|
21
|
-
import { throttleId as J } from "./throttleId.js";
|
|
22
|
-
import { truthyFilter as N } from "./truthyFilter.js";
|
|
23
|
-
import { UserVisibility as Q } from "./userVisibility.js";
|
|
24
|
-
export {
|
|
25
|
-
y as IdleTimeout,
|
|
26
|
-
q as ScriptLoader,
|
|
27
|
-
V as Swipe,
|
|
28
|
-
B as TextareaAutogrow,
|
|
29
|
-
Q as UserVisibility,
|
|
30
|
-
e as checkAvailability,
|
|
31
|
-
m as countryCodeToUnicodeFlag,
|
|
32
|
-
x as debounce,
|
|
33
|
-
i as debounceCallback,
|
|
34
|
-
a as debounceId,
|
|
35
|
-
n as execPromise,
|
|
36
|
-
s as getCountryFlagUrl,
|
|
37
|
-
u as getErrorMessage,
|
|
38
|
-
h as isClient,
|
|
39
|
-
F as isEqual,
|
|
40
|
-
T as isServer,
|
|
41
|
-
k as isStandaloneMode,
|
|
42
|
-
w as logger,
|
|
43
|
-
E as normalizeString,
|
|
44
|
-
L as sleep,
|
|
45
|
-
G as throttle,
|
|
46
|
-
J as throttleId,
|
|
47
|
-
N as truthyFilter
|
|
48
|
-
};
|
package/dist/utils/isServer.js
DELETED
package/dist/utils/logger.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { yellow as g, red as t, green as n, blueBright as c } from "colorette";
|
|
2
|
-
import { getErrorMessage as l } from "./getErrorMessage.js";
|
|
3
|
-
const r = console.log, m = {
|
|
4
|
-
divider: () => r("----------------------------------------"),
|
|
5
|
-
eot: () => r(),
|
|
6
|
-
brand: (e) => r(c(e)),
|
|
7
|
-
log: (...e) => r(...e),
|
|
8
|
-
success: (...e) => r(...e.map((o) => n(o))),
|
|
9
|
-
error: (e, o) => {
|
|
10
|
-
const s = o ? l(o) : "";
|
|
11
|
-
r(t(e), s ? t(s) : "");
|
|
12
|
-
},
|
|
13
|
-
warn: (e, o) => {
|
|
14
|
-
const s = o ? l(o) : "";
|
|
15
|
-
r(g(e), s ? g(s) : "");
|
|
16
|
-
}
|
|
17
|
-
};
|
|
18
|
-
export {
|
|
19
|
-
m as logger
|
|
20
|
-
};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|