@maz-ui/utils 4.0.0-beta.3 → 4.0.0-beta.6

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.
Files changed (84) hide show
  1. package/dist/index.js +44 -38
  2. package/dist/types/formatters/camelCase.d.ts +0 -1
  3. package/dist/types/formatters/capitalize.d.ts +0 -1
  4. package/dist/types/formatters/formatCurrency.d.ts +0 -1
  5. package/dist/types/formatters/formatDate.d.ts +0 -1
  6. package/dist/types/formatters/formatNumber.d.ts +0 -1
  7. package/dist/types/formatters/formatPhoneNumber.d.ts +0 -1
  8. package/dist/types/formatters/index.d.ts +0 -1
  9. package/dist/types/formatters/pascalCase.d.ts +0 -1
  10. package/dist/types/index.d.ts +0 -1
  11. package/dist/types/ts-helpers/DeepKeyOf.d.ts +0 -1
  12. package/dist/types/ts-helpers/DeepPartial.d.ts +0 -1
  13. package/dist/types/ts-helpers/FlattenObjectKeys.d.ts +0 -1
  14. package/dist/types/ts-helpers/GenericInstanceType.d.ts +15 -0
  15. package/dist/types/ts-helpers/InferMaybeRef.d.ts +0 -1
  16. package/dist/types/ts-helpers/index.d.ts +1 -1
  17. package/dist/types/utils/TextareaAutogrow.d.ts +0 -1
  18. package/dist/types/utils/checkAvailability.d.ts +0 -1
  19. package/dist/types/utils/countryCodeToUnicodeFlag.d.ts +0 -1
  20. package/dist/types/utils/debounce.d.ts +0 -1
  21. package/dist/types/utils/debounceCallback.d.ts +0 -1
  22. package/dist/types/utils/debounceId.d.ts +0 -1
  23. package/dist/types/utils/execPromise.d.ts +11 -0
  24. package/dist/types/utils/fetchLocaleIp.d.ts +0 -1
  25. package/dist/types/utils/getBrowserLocale.d.ts +0 -1
  26. package/dist/types/utils/getCountryFlagUrl.d.ts +0 -1
  27. package/dist/types/utils/getErrorMessage.d.ts +1 -0
  28. package/dist/types/utils/idleTimeout.d.ts +0 -1
  29. package/dist/types/utils/index.d.ts +3 -1
  30. package/dist/types/utils/isClient.d.ts +0 -1
  31. package/dist/types/utils/isEqual.d.ts +0 -1
  32. package/dist/types/utils/isServer.d.ts +0 -1
  33. package/dist/types/utils/isStandaloneMode.d.ts +0 -1
  34. package/dist/types/utils/logger.d.ts +10 -0
  35. package/dist/types/utils/normalizeString.d.ts +0 -1
  36. package/dist/types/utils/scriptLoader.d.ts +0 -1
  37. package/dist/types/utils/sleep.d.ts +0 -1
  38. package/dist/types/utils/swipeHandler.d.ts +0 -1
  39. package/dist/types/utils/throttle.d.ts +0 -1
  40. package/dist/types/utils/throttleId.d.ts +0 -1
  41. package/dist/types/utils/truthyFilter.d.ts +0 -1
  42. package/dist/types/utils/userVisibility.d.ts +0 -1
  43. package/dist/utils/execPromise.js +13 -0
  44. package/dist/utils/getErrorMessage.js +6 -0
  45. package/dist/utils/index.js +38 -32
  46. package/dist/utils/logger.js +20 -0
  47. package/package.json +3 -2
  48. package/dist/types/formatters/camelCase.d.ts.map +0 -1
  49. package/dist/types/formatters/capitalize.d.ts.map +0 -1
  50. package/dist/types/formatters/formatCurrency.d.ts.map +0 -1
  51. package/dist/types/formatters/formatDate.d.ts.map +0 -1
  52. package/dist/types/formatters/formatNumber.d.ts.map +0 -1
  53. package/dist/types/formatters/formatPhoneNumber.d.ts.map +0 -1
  54. package/dist/types/formatters/index.d.ts.map +0 -1
  55. package/dist/types/formatters/pascalCase.d.ts.map +0 -1
  56. package/dist/types/index.d.ts.map +0 -1
  57. package/dist/types/ts-helpers/DeepKeyOf.d.ts.map +0 -1
  58. package/dist/types/ts-helpers/DeepPartial.d.ts.map +0 -1
  59. package/dist/types/ts-helpers/FlattenObjectKeys.d.ts.map +0 -1
  60. package/dist/types/ts-helpers/InferMaybeRef.d.ts.map +0 -1
  61. package/dist/types/ts-helpers/index.d.ts.map +0 -1
  62. package/dist/types/utils/TextareaAutogrow.d.ts.map +0 -1
  63. package/dist/types/utils/checkAvailability.d.ts.map +0 -1
  64. package/dist/types/utils/countryCodeToUnicodeFlag.d.ts.map +0 -1
  65. package/dist/types/utils/debounce.d.ts.map +0 -1
  66. package/dist/types/utils/debounceCallback.d.ts.map +0 -1
  67. package/dist/types/utils/debounceId.d.ts.map +0 -1
  68. package/dist/types/utils/fetchLocaleIp.d.ts.map +0 -1
  69. package/dist/types/utils/getBrowserLocale.d.ts.map +0 -1
  70. package/dist/types/utils/getCountryFlagUrl.d.ts.map +0 -1
  71. package/dist/types/utils/idleTimeout.d.ts.map +0 -1
  72. package/dist/types/utils/index.d.ts.map +0 -1
  73. package/dist/types/utils/isClient.d.ts.map +0 -1
  74. package/dist/types/utils/isEqual.d.ts.map +0 -1
  75. package/dist/types/utils/isServer.d.ts.map +0 -1
  76. package/dist/types/utils/isStandaloneMode.d.ts.map +0 -1
  77. package/dist/types/utils/normalizeString.d.ts.map +0 -1
  78. package/dist/types/utils/scriptLoader.d.ts.map +0 -1
  79. package/dist/types/utils/sleep.d.ts.map +0 -1
  80. package/dist/types/utils/swipeHandler.d.ts.map +0 -1
  81. package/dist/types/utils/throttle.d.ts.map +0 -1
  82. package/dist/types/utils/throttleId.d.ts.map +0 -1
  83. package/dist/types/utils/truthyFilter.d.ts.map +0 -1
  84. package/dist/types/utils/userVisibility.d.ts.map +0 -1
package/dist/index.js CHANGED
@@ -3,52 +3,58 @@ 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 n } from "./formatters/pascalCase.js";
7
- import { checkAvailability as u } from "./utils/checkAvailability.js";
8
- import { countryCodeToUnicodeFlag as b } from "./utils/countryCodeToUnicodeFlag.js";
9
- import { debounce as y } from "./utils/debounce.js";
6
+ import { pascalCase as s } from "./formatters/pascalCase.js";
7
+ import { checkAvailability as d } from "./utils/checkAvailability.js";
8
+ import { countryCodeToUnicodeFlag as g } from "./utils/countryCodeToUnicodeFlag.js";
9
+ import { debounce as C } from "./utils/debounce.js";
10
10
  import { debounceCallback as S } from "./utils/debounceCallback.js";
11
11
  import { debounceId as F } from "./utils/debounceId.js";
12
- import { getCountryFlagUrl as T } from "./utils/getCountryFlagUrl.js";
13
- import { IdleTimeout as k } from "./utils/idleTimeout.js";
14
- import { isClient as w } from "./utils/isClient.js";
15
- import { isEqual as A } from "./utils/isEqual.js";
16
- import { isServer as D } from "./utils/isServer.js";
17
- import { isStandaloneMode as L } from "./utils/isStandaloneMode.js";
18
- import { normalizeString as N } from "./utils/normalizeString.js";
19
- import { ScriptLoader as j } from "./utils/scriptLoader.js";
20
- import { sleep as G } from "./utils/sleep.js";
21
- import { Swipe as J } from "./utils/swipeHandler.js";
22
- import { TextareaAutogrow as O } from "./utils/TextareaAutogrow.js";
23
- import { throttle as Q } from "./utils/throttle.js";
24
- import { throttleId as W } from "./utils/throttleId.js";
25
- import { truthyFilter as Y } from "./utils/truthyFilter.js";
26
- import { UserVisibility as _ } from "./utils/userVisibility.js";
12
+ import { execPromise as T } from "./utils/execPromise.js";
13
+ import { getCountryFlagUrl as k } from "./utils/getCountryFlagUrl.js";
14
+ import { getErrorMessage as w } from "./utils/getErrorMessage.js";
15
+ import { IdleTimeout as A } from "./utils/idleTimeout.js";
16
+ import { isClient as M } from "./utils/isClient.js";
17
+ import { isEqual as D } from "./utils/isEqual.js";
18
+ import { isServer as N } from "./utils/isServer.js";
19
+ import { isStandaloneMode as V } from "./utils/isStandaloneMode.js";
20
+ import { logger as B } from "./utils/logger.js";
21
+ import { normalizeString as H } from "./utils/normalizeString.js";
22
+ import { ScriptLoader as K } from "./utils/scriptLoader.js";
23
+ import { sleep as Q } from "./utils/sleep.js";
24
+ import { Swipe as W } from "./utils/swipeHandler.js";
25
+ import { TextareaAutogrow as Y } from "./utils/TextareaAutogrow.js";
26
+ import { throttle as _ } from "./utils/throttle.js";
27
+ import { throttleId as rr } from "./utils/throttleId.js";
28
+ import { truthyFilter as er } from "./utils/truthyFilter.js";
29
+ import { UserVisibility as mr } from "./utils/userVisibility.js";
27
30
  export {
28
- k as IdleTimeout,
29
- j as ScriptLoader,
30
- J as Swipe,
31
- O as TextareaAutogrow,
32
- _ as UserVisibility,
31
+ A as IdleTimeout,
32
+ K as ScriptLoader,
33
+ W as Swipe,
34
+ Y as TextareaAutogrow,
35
+ mr as UserVisibility,
33
36
  e as camelCase,
34
37
  m as capitalize,
35
- u as checkAvailability,
36
- b as countryCodeToUnicodeFlag,
37
- y as debounce,
38
+ d as checkAvailability,
39
+ g as countryCodeToUnicodeFlag,
40
+ C as debounce,
38
41
  S as debounceCallback,
39
42
  F as debounceId,
43
+ T as execPromise,
40
44
  f as formatCurrency,
41
45
  a as formatDate,
42
46
  l as formatNumber,
43
- T as getCountryFlagUrl,
44
- w as isClient,
45
- A as isEqual,
46
- D as isServer,
47
- L as isStandaloneMode,
48
- N as normalizeString,
49
- n as pascalCase,
50
- G as sleep,
51
- Q as throttle,
52
- W as throttleId,
53
- Y as truthyFilter
47
+ k as getCountryFlagUrl,
48
+ w as getErrorMessage,
49
+ M as isClient,
50
+ D as isEqual,
51
+ N as isServer,
52
+ V as isStandaloneMode,
53
+ B as logger,
54
+ H as normalizeString,
55
+ s as pascalCase,
56
+ Q as sleep,
57
+ _ as throttle,
58
+ rr as throttleId,
59
+ er as truthyFilter
54
60
  };
@@ -1,2 +1 @@
1
1
  export declare function camelCase(str: string): string;
2
- //# sourceMappingURL=camelCase.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function capitalize(value: string): string;
2
- //# sourceMappingURL=capitalize.d.ts.map
@@ -2,4 +2,3 @@ export interface FilterCurrencyOptions extends Intl.NumberFormatOptions {
2
2
  round?: boolean;
3
3
  }
4
4
  export declare function formatCurrency(number: number | string, locale: string, options: FilterCurrencyOptions): string;
5
- //# sourceMappingURL=formatCurrency.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function formatDate(date: string | number | Date, locale: string, options?: Intl.DateTimeFormatOptions): string;
2
- //# sourceMappingURL=formatDate.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function formatNumber(number: number | string, locale: string, options?: Intl.NumberFormatOptions): string;
2
- //# sourceMappingURL=formatNumber.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function formatPhoneNumber(phoneNumber: string): string;
2
- //# sourceMappingURL=formatPhoneNumber.d.ts.map
@@ -4,4 +4,3 @@ export * from './formatCurrency';
4
4
  export * from './formatDate';
5
5
  export * from './formatNumber';
6
6
  export * from './pascalCase';
7
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function pascalCase(str: string): string;
2
- //# sourceMappingURL=pascalCase.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export * from './formatters';
2
2
  export * from './ts-helpers';
3
3
  export * from './utils';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export type DeepKeyOf<T> = T extends object ? {
2
2
  [K in keyof T]: K extends string ? T[K] extends object ? `${K}.${DeepKeyOf<T[K]>}` : K : never;
3
3
  }[keyof T] : never;
4
- //# sourceMappingURL=DeepKeyOf.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export type DeepPartial<T> = T extends object ? {
2
2
  [P in keyof T]?: DeepPartial<T[P]>;
3
3
  } : T;
4
- //# sourceMappingURL=DeepPartial.d.ts.map
@@ -1,4 +1,3 @@
1
1
  export type FlattenObjectKeys<T extends Record<string, any>, Prefix extends string = ''> = {
2
2
  [K in keyof T]: T[K] extends Record<string, any> ? FlattenObjectKeys<T[K], `${Prefix}${K extends string ? K : ''}.`> : `${Prefix}${K extends string ? K : ''}`;
3
3
  }[keyof T];
4
- //# sourceMappingURL=FlattenObjectKeys.d.ts.map
@@ -0,0 +1,15 @@
1
+ import { DefineComponent } from 'vue';
2
+ /**
3
+ * This type solves a problem with generic Vue 3 components.
4
+ *
5
+ * When a component is not generic, we can simply use InstanceType<typeof Component>
6
+ * to get the correct typing. However, with generic components, this approach doesn't work
7
+ * and we can't get the correct component typing. This helper type addresses that limitation.
8
+ *
9
+ * @see https://github.com/vuejs/language-tools/issues/3206
10
+ */
11
+ export type GenericInstanceType<T> = T extends new (...args: any[]) => infer R ? R : T extends (...args: any[]) => infer R ? R extends {
12
+ __ctx?: infer K;
13
+ } ? Exclude<K, void> extends {
14
+ expose: (...args: infer Y) => void;
15
+ } ? Y[0] & InstanceType<DefineComponent> : any : any : any;
@@ -1,3 +1,2 @@
1
1
  import { Ref } from 'vue';
2
2
  export type InferMaybeRef<T> = T extends Ref<infer U> ? U : T;
3
- //# sourceMappingURL=InferMaybeRef.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export * from './DeepKeyOf';
2
2
  export * from './DeepPartial';
3
3
  export * from './FlattenObjectKeys';
4
+ export * from './GenericInstanceType';
4
5
  export * from './InferMaybeRef';
5
- //# sourceMappingURL=index.d.ts.map
@@ -7,4 +7,3 @@ export declare class TextareaAutogrow {
7
7
  private onResize;
8
8
  private autogrow;
9
9
  }
10
- //# sourceMappingURL=TextareaAutogrow.d.ts.map
@@ -5,4 +5,3 @@ export declare function checkAvailability<T>(getRef: () => T | null | undefined,
5
5
  expectedValue?: T;
6
6
  onError?: (error: Error) => void;
7
7
  }): void;
8
- //# sourceMappingURL=checkAvailability.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function countryCodeToUnicodeFlag(locale: string): string;
2
- //# sourceMappingURL=countryCodeToUnicodeFlag.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function debounce<F extends (...args: Parameters<F>) => ReturnType<F>>(fn: F, delay: number): (...args: Parameters<F>) => void;
2
- //# sourceMappingURL=debounce.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function debounceCallback(callback: (...args: unknown[]) => unknown, delay: number): void;
2
- //# sourceMappingURL=debounceCallback.d.ts.map
@@ -4,4 +4,3 @@ type AsyncFunction<T, Args extends unknown[]> = (...args: Args) => T | Promise<T
4
4
  */
5
5
  export declare function debounceId<T, Args extends unknown[]>(identifier: string, func: AsyncFunction<T, Args>, delay: number): (...args: Args) => Promise<T>;
6
6
  export {};
7
- //# sourceMappingURL=debounceId.d.ts.map
@@ -0,0 +1,11 @@
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
+ }>;
@@ -37,4 +37,3 @@ export interface IpWhoResponse {
37
37
  };
38
38
  }
39
39
  export declare function fetchLocaleIp(): Promise<string | undefined>;
40
- //# sourceMappingURL=fetchLocaleIp.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function getBrowserLocale(): string | undefined;
2
- //# sourceMappingURL=getBrowserLocale.d.ts.map
@@ -6,4 +6,3 @@ declare const _supportedCodes: readonly ["ad", "ae", "af", "ag", "ai", "al", "am
6
6
  type SupportedCodes = typeof _supportedCodes[number];
7
7
  export declare function getCountryFlagUrl(countryIsoCode: SupportedCodes | string, size?: Size): string | undefined;
8
8
  export {};
9
- //# sourceMappingURL=getCountryFlagUrl.d.ts.map
@@ -0,0 +1 @@
1
+ export declare function getErrorMessage(error: unknown): string;
@@ -54,4 +54,3 @@ export declare class IdleTimeout {
54
54
  get idle(): boolean;
55
55
  set idle(value: boolean);
56
56
  }
57
- //# sourceMappingURL=idleTimeout.d.ts.map
@@ -3,12 +3,15 @@ export * from './countryCodeToUnicodeFlag';
3
3
  export * from './debounce';
4
4
  export * from './debounceCallback';
5
5
  export * from './debounceId';
6
+ export * from './execPromise';
6
7
  export * from './getCountryFlagUrl';
8
+ export * from './getErrorMessage';
7
9
  export * from './idleTimeout';
8
10
  export * from './isClient';
9
11
  export * from './isEqual';
10
12
  export * from './isServer';
11
13
  export * from './isStandaloneMode';
14
+ export * from './logger';
12
15
  export * from './normalizeString';
13
16
  export * from './scriptLoader';
14
17
  export * from './sleep';
@@ -18,4 +21,3 @@ export * from './throttle';
18
21
  export * from './throttleId';
19
22
  export * from './truthyFilter';
20
23
  export * from './userVisibility';
21
- //# sourceMappingURL=index.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function isClient(): boolean;
2
- //# sourceMappingURL=isClient.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function isEqual(a: unknown, b: unknown): boolean;
2
- //# sourceMappingURL=isEqual.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function isServer(): boolean;
2
- //# sourceMappingURL=isServer.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function isStandaloneMode(): boolean;
2
- //# sourceMappingURL=isStandaloneMode.d.ts.map
@@ -0,0 +1,10 @@
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;
@@ -45,4 +45,3 @@ export interface NormalizeStringOptions {
45
45
  customNormalizationForms?: string[];
46
46
  }
47
47
  export declare function normalizeString(input: string | number | boolean, options?: NormalizeStringOptions): string;
48
- //# sourceMappingURL=normalizeString.d.ts.map
@@ -17,4 +17,3 @@ export declare class ScriptLoader {
17
17
  load(): Promise<unknown>;
18
18
  private injectScript;
19
19
  }
20
- //# sourceMappingURL=scriptLoader.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function sleep(duration: number): Promise<unknown>;
2
- //# sourceMappingURL=sleep.d.ts.map
@@ -100,4 +100,3 @@ export declare class Swipe {
100
100
  private resetValues;
101
101
  }
102
102
  export {};
103
- //# sourceMappingURL=swipeHandler.d.ts.map
@@ -1,2 +1 @@
1
1
  export declare function throttle<T extends (...args: Parameters<T>) => ReturnType<T>>(func: T, limit: number): (...args: Parameters<T>) => void;
2
- //# sourceMappingURL=throttle.d.ts.map
@@ -4,4 +4,3 @@ type AsyncFunction<T, Args extends unknown[]> = (...args: Args) => T | Promise<T
4
4
  */
5
5
  export declare function throttleId<T, Args extends unknown[]>(identifier: string, func: AsyncFunction<T, Args>, interval: number): (...args: Args) => Promise<T>;
6
6
  export {};
7
- //# sourceMappingURL=throttleId.d.ts.map
@@ -1,3 +1,2 @@
1
1
  export type Truthy<T> = T extends false | '' | 0 | null | undefined ? never : T;
2
2
  export declare function truthyFilter<T>(value: T): value is Truthy<T>;
3
- //# sourceMappingURL=truthyFilter.d.ts.map
@@ -37,4 +37,3 @@ export declare class UserVisibility {
37
37
  private removeEventListener;
38
38
  destroy(): void;
39
39
  }
40
- //# sourceMappingURL=userVisibility.d.ts.map
@@ -0,0 +1,13 @@
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
+ };
@@ -0,0 +1,6 @@
1
+ function e(t) {
2
+ return t instanceof Error ? t.message : typeof t == "string" ? t : t && typeof t == "object" && "message" in t ? String(t.message) : t ? String(t) : "An unexpected error occurred";
3
+ }
4
+ export {
5
+ e as getErrorMessage
6
+ };
@@ -1,42 +1,48 @@
1
1
  import { checkAvailability as e } from "./checkAvailability.js";
2
- import { countryCodeToUnicodeFlag as p } from "./countryCodeToUnicodeFlag.js";
2
+ import { countryCodeToUnicodeFlag as m } from "./countryCodeToUnicodeFlag.js";
3
3
  import { debounce as x } from "./debounce.js";
4
4
  import { debounceCallback as i } from "./debounceCallback.js";
5
5
  import { debounceId as a } from "./debounceId.js";
6
- import { getCountryFlagUrl as n } from "./getCountryFlagUrl.js";
7
- import { IdleTimeout as u } from "./idleTimeout.js";
8
- import { isClient as b } from "./isClient.js";
9
- import { isEqual as y } from "./isEqual.js";
10
- import { isServer as h } from "./isServer.js";
11
- import { isStandaloneMode as F } from "./isStandaloneMode.js";
12
- import { normalizeString as T } from "./normalizeString.js";
13
- import { ScriptLoader as k } from "./scriptLoader.js";
14
- import { sleep as w } from "./sleep.js";
15
- import { Swipe as q } from "./swipeHandler.js";
16
- import { TextareaAutogrow as E } from "./TextareaAutogrow.js";
17
- import { throttle as M } from "./throttle.js";
18
- import { throttleId as j } from "./throttleId.js";
19
- import { truthyFilter as D } from "./truthyFilter.js";
20
- import { UserVisibility as H } from "./userVisibility.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";
21
24
  export {
22
- u as IdleTimeout,
23
- k as ScriptLoader,
24
- q as Swipe,
25
- E as TextareaAutogrow,
26
- H as UserVisibility,
25
+ y as IdleTimeout,
26
+ q as ScriptLoader,
27
+ V as Swipe,
28
+ B as TextareaAutogrow,
29
+ Q as UserVisibility,
27
30
  e as checkAvailability,
28
- p as countryCodeToUnicodeFlag,
31
+ m as countryCodeToUnicodeFlag,
29
32
  x as debounce,
30
33
  i as debounceCallback,
31
34
  a as debounceId,
32
- n as getCountryFlagUrl,
33
- b as isClient,
34
- y as isEqual,
35
- h as isServer,
36
- F as isStandaloneMode,
37
- T as normalizeString,
38
- w as sleep,
39
- M as throttle,
40
- j as throttleId,
41
- D as truthyFilter
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
42
48
  };
@@ -0,0 +1,20 @@
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
+ };
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.3",
4
+ "version": "4.0.0-beta.6",
5
5
  "description": "Utils of maz-ui for JavaScript/TypeScript users",
6
6
  "author": "Louis Mazel <me@loicmazuel.com>",
7
7
  "license": "MIT",
@@ -71,6 +71,7 @@
71
71
  "pre-commit": "lint-staged"
72
72
  },
73
73
  "devDependencies": {
74
+ "colorette": "^2.0.20",
74
75
  "eslint": "^9.29.0",
75
76
  "eslint-plugin-format": "^1.0.1",
76
77
  "glob": "^11.0.3",
@@ -84,5 +85,5 @@
84
85
  "eslint --fix"
85
86
  ]
86
87
  },
87
- "gitHead": "f244a338c386a818da90b083800e0fe5f37bf655"
88
+ "gitHead": "bbff6fcfca7d47dd8f8024b69ac787b66ba0b65e"
88
89
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"camelCase.d.ts","sourceRoot":"","sources":["../../../src/formatters/camelCase.ts"],"names":[],"mappings":"AAAA,wBAAgB,SAAS,CAAC,GAAG,EAAE,MAAM,UAEpC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"capitalize.d.ts","sourceRoot":"","sources":["../../../src/formatters/capitalize.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKhD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatCurrency.d.ts","sourceRoot":"","sources":["../../../src/formatters/formatCurrency.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,mBAAmB;IACrE,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AA8BD,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB,GAAG,MAAM,CAc9G"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatDate.d.ts","sourceRoot":"","sources":["../../../src/formatters/formatDate.ts"],"names":[],"mappings":"AAMA,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,GAAG,MAAM,CAkBrH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatNumber.d.ts","sourceRoot":"","sources":["../../../src/formatters/formatNumber.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,IAAI,CAAC,mBAAmB,GAAG,MAAM,CAsBhH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"formatPhoneNumber.d.ts","sourceRoot":"","sources":["../../../src/formatters/formatPhoneNumber.ts"],"names":[],"mappings":"AAEA,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,CAO7D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/formatters/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,cAAc,CAAA;AAC5B,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"pascalCase.d.ts","sourceRoot":"","sources":["../../../src/formatters/pascalCase.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,UAErC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepKeyOf.d.ts","sourceRoot":"","sources":["../../../src/ts-helpers/DeepKeyOf.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACvC;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,SAAS,MAAM,GAC9B,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,GACjB,GAAG,CAAC,IAAI,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GACzB,CAAC,GACH,KAAK;CACR,CAAC,MAAM,CAAC,CAAC,GACV,KAAK,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeepPartial.d.ts","sourceRoot":"","sources":["../../../src/ts-helpers/DeepPartial.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GACzC;KACG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CACnC,GACD,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"FlattenObjectKeys.d.ts","sourceRoot":"","sources":["../../../src/ts-helpers/FlattenObjectKeys.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,SAAS,MAAM,GAAG,EAAE,IAAI;KACxF,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAC5C,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,MAAM,GAAG,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,GACjE,GAAG,MAAM,GAAG,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,EAAE,EAAE;CAC5C,CAAC,MAAM,CAAC,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"InferMaybeRef.d.ts","sourceRoot":"","sources":["../../../src/ts-helpers/InferMaybeRef.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAA;AAE9B,MAAM,MAAM,aAAa,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ts-helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAA;AAC3B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"TextareaAutogrow.d.ts","sourceRoot":"","sources":["../../../src/utils/TextareaAutogrow.ts"],"names":[],"mappings":"AAEA,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,OAAO,CAAqB;gBAExB,OAAO,EAAE,mBAAmB;IAQxC,OAAO,CAAC,OAAO;IAMR,UAAU;IAKjB,OAAO,CAAC,OAAO;IAOf,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,QAAQ;CAKjB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkAvailability.d.ts","sourceRoot":"","sources":["../../../src/utils/checkAvailability.ts"],"names":[],"mappings":"AAAA,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,KAAK,IAAI,EAAE,OAAO,CAAC,EAAE;IAAE,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,CAAC,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,CAAA;CAAE,QAmCxP"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"countryCodeToUnicodeFlag.d.ts","sourceRoot":"","sources":["../../../src/utils/countryCodeToUnicodeFlag.ts"],"names":[],"mappings":"AAEA,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,MAAM,UAStD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"debounce.d.ts","sourceRoot":"","sources":["../../../src/utils/debounce.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,EAC1E,EAAE,EAAE,CAAC,EACL,KAAK,EAAE,MAAM,IAII,GAAG,MAAM,UAAU,CAAC,CAAC,CAAC,UAQxC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"debounceCallback.d.ts","sourceRoot":"","sources":["../../../src/utils/debounceCallback.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,EAAE,KAAK,EAAE,MAAM,QAMxF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"debounceId.d.ts","sourceRoot":"","sources":["../../../src/utils/debounceId.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,CAAC,CAAC,EAAE,IAAI,SAAS,OAAO,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;AASjF;;GAEG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,SAAS,OAAO,EAAE,EAClD,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,EAC5B,KAAK,EAAE,MAAM,GACZ,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CA8B/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"fetchLocaleIp.d.ts","sourceRoot":"","sources":["../../../src/utils/fetchLocaleIp.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAA;IACV,OAAO,EAAE,IAAI,CAAA;IACb,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,EAAE,IAAI,CAAA;IACX,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE;QACJ,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,KAAK,CAAC,EAAE,MAAM,CAAA;QACd,aAAa,CAAC,EAAE,MAAM,CAAA;KACvB,CAAA;IACD,UAAU,EAAE;QACV,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,MAAM,CAAC,EAAE,MAAM,CAAA;KAChB,CAAA;IACD,QAAQ,EAAE;QACR,EAAE,CAAC,EAAE,MAAM,CAAA;QACX,IAAI,CAAC,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,KAAK,CAAA;QACb,MAAM,CAAC,EAAE,MAAM,CAAA;QACf,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,YAAY,CAAC,EAAE,MAAM,CAAA;KACtB,CAAA;CACF;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAYjE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getBrowserLocale.d.ts","sourceRoot":"","sources":["../../../src/utils/getBrowserLocale.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,IAAI,MAAM,GAAG,SAAS,CAWrD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"getCountryFlagUrl.d.ts","sourceRoot":"","sources":["../../../src/utils/getCountryFlagUrl.ts"],"names":[],"mappings":"AAAA,KAAK,KAAK,GAAG,OAAO,GAChB,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,GACT,SAAS,CAAA;AAEb,KAAK,MAAM,GAAG,KAAK,GACf,KAAK,GACL,KAAK,GACL,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,CAAA;AAEV,KAAK,KAAK,GAAG,KAAK,GACd,KAAK,GACL,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,OAAO,CAAA;AAEX,KAAK,IAAI,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;AAElC,QAAA,MAAM,eAAe,69DAA89D,CAAA;AAEn/D,KAAK,cAAc,GAAG,OAAO,eAAe,CAAC,MAAM,CAAC,CAAA;AAEpD,wBAAgB,iBAAiB,CAAC,cAAc,EAAE,cAAc,GAAG,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,sBAUrF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"idleTimeout.d.ts","sourceRoot":"","sources":["../../../src/utils/idleTimeout.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG,CAAC,EACjC,MAAM,EACN,SAAS,EACT,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,WAAW,CAAA;CACtB,KAAK,OAAO,CAAA;AAEb,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAA;IAChC;;;OAGG;IACH,OAAO,EAAE,MAAM,CAAA;IACf;;;OAGG;IACH,IAAI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AA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,eAAe,CAAA;AAC7B,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,oBAAoB,CAAA;AAClC,cAAc,mBAAmB,CAAA;AACjC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,oBAAoB,CAAA;AAClC,cAAc,YAAY,CAAA;AAC1B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"isClient.d.ts","sourceRoot":"","sources":["../../../src/utils/isClient.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,YAEvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"isEqual.d.ts","sourceRoot":"","sources":["../../../src/utils/isEqual.ts"],"names":[],"mappings":"AAyCA,wBAAgB,OAAO,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CAyBvD"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"isServer.d.ts","sourceRoot":"","sources":["../../../src/utils/isServer.ts"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,YAEvB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"isStandaloneMode.d.ts","sourceRoot":"","sources":["../../../src/utils/isStandaloneMode.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,YAS/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"normalizeString.d.ts","sourceRoot":"","sources":["../../../src/utils/normalizeString.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACrC;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAA;IACjC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAA;IACd;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB;;;;;OAKG;IACH,wBAAwB,CAAC,EAAE,MAAM,EAAE,CAAA;CACpC;AAaD,wBAAgB,eAAe,CAC7B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,EAChC,OAAO,CAAC,EAAE,sBAAsB,GAC/B,MAAM,CAmDR"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"scriptLoader.d.ts","sourceRoot":"","sources":["../../../src/utils/scriptLoader.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,mBAAmB;IAClC,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,OAAO,CAAA;CAChB;AAED,qBAAa,YAAY;IACvB,OAAO,CAAC,GAAG,CAAQ;IACnB,OAAO,CAAC,MAAM,CAAC,CAAO;IACtB,OAAO,CAAC,IAAI,CAAS;IACrB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,UAAU,CAAQ;gBAEd,EAAE,GAAG,EAAE,UAAU,EAAE,IAAW,EAAE,KAAY,EAAE,KAAY,EAAE,EAAE,mBAAmB;IAoBtF,SAAS,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM;IAS/B,IAAI;IAmBX,OAAO,CAAC,YAAY;CA4BrB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sleep.d.ts","sourceRoot":"","sources":["../../../src/utils/sleep.ts"],"names":[],"mappings":"AAAA,wBAAgB,KAAK,CAAC,QAAQ,EAAE,MAAM,oBAErC"}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"],"names":[],"mappings":"AAAA,wBAAgB,QAAQ,CAAC,CAAC,SAAS,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,UAAU,CAAC,CAAC,CAAC,EAC1E,IAAI,EAAE,CAAC,EACP,KAAK,EAAE,MAAM,GACZ,CAAC,GAAG,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,KAAK,IAAI,CAqBlC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"throttleId.d.ts","sourceRoot":"","sources":["../../../src/utils/throttleId.ts"],"names":[],"mappings":"AAAA,KAAK,aAAa,CAAC,CAAC,EAAE,IAAI,SAAS,OAAO,EAAE,IAAI,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;AAQjF;;GAEG;AACH,wBAAgB,UAAU,CAAC,CAAC,EAAE,IAAI,SAAS,OAAO,EAAE,EAClD,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,EAC5B,QAAQ,EAAE,MAAM,GACf,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,CAkC/B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"truthyFilter.d.ts","sourceRoot":"","sources":["../../../src/utils/truthyFilter.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,GAAG,EAAE,GAAG,CAAC,GAAG,IAAI,GAAG,SAAS,GAAG,KAAK,GAAG,CAAC,CAAA;AAC/E,wBAAgB,YAAY,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,KAAK,IAAI,MAAM,CAAC,CAAC,CAAC,CAE5D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"userVisibility.d.ts","sourceRoot":"","sources":["../../../src/utils/userVisibility.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,oBAAoB,GAAG,CAA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