@paragrav/rhf-utils 0.0.23 → 0.0.26

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 (121) hide show
  1. package/dist/_virtual/_commonjsHelpers.mjs +8 -0
  2. package/dist/_virtual/index.mjs +4 -0
  3. package/dist/devtool/LazyDevTool.d.ts +11 -0
  4. package/dist/devtool/LazyDevTool.mjs +16 -0
  5. package/dist/errors/getFlatFieldErrors.mjs +11 -11
  6. package/dist/errors/isFieldError.d.ts +7 -0
  7. package/dist/errors/isFieldError.mjs +4 -0
  8. package/dist/errors/message/FormErrorMessage.d.ts +8 -0
  9. package/dist/errors/message/FormErrorMessage.mjs +14 -0
  10. package/dist/errors/message/FormErrorMessageByPath.d.ts +9 -0
  11. package/dist/errors/message/FormErrorMessageByPath.mjs +17 -0
  12. package/dist/errors/nonfield/{utils.d.ts → isNonFieldError.d.ts} +3 -2
  13. package/dist/errors/nonfield/isNonFieldError.mjs +5 -0
  14. package/dist/errors/orphan/getOrphanFlatFieldErrors.d.ts +5 -0
  15. package/dist/errors/orphan/{utils.mjs → getOrphanFlatFieldErrors.mjs} +7 -7
  16. package/dist/errors/orphan/useFormHasOrphanAndNoFieldErrors.d.ts +9 -0
  17. package/dist/errors/orphan/useFormHasOrphanAndNoFieldErrors.mjs +10 -0
  18. package/dist/errors/orphan/useOrphanFormErrors.mjs +2 -2
  19. package/dist/errors/orphan/useOrphanFormErrorsToConsoleError.d.ts +4 -3
  20. package/dist/errors/orphan/useOrphanFormErrorsToConsoleError.mjs +22 -14
  21. package/dist/errors/useFormErrorsEffect.mjs +2 -2
  22. package/dist/errors/useFormErrorsIfAny.mjs +1 -1
  23. package/dist/errors/useFormErrorsOnChange.mjs +5 -5
  24. package/dist/errors/useFormFieldErrors.d.ts +6 -0
  25. package/dist/errors/useFormFieldErrors.mjs +13 -0
  26. package/dist/isEmptyObject.d.ts +2 -0
  27. package/dist/isEmptyObject.mjs +4 -0
  28. package/dist/main.d.ts +4 -1
  29. package/dist/main.mjs +34 -28
  30. package/dist/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
  31. package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.mjs +305 -0
  32. package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.mjs +22 -0
  33. package/dist/node_modules/@emotion/is-prop-valid/dist/emotion-is-prop-valid.esm.mjs +10 -0
  34. package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.mjs +9 -0
  35. package/dist/node_modules/@emotion/react/dist/emotion-element-43c6fea0.browser.esm.mjs +57 -0
  36. package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.browser.esm.mjs +167 -0
  37. package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.browser.esm.mjs +49 -0
  38. package/dist/node_modules/@emotion/styled/base/dist/emotion-styled-base.browser.esm.mjs +82 -0
  39. package/dist/node_modules/@emotion/styled/dist/emotion-styled.browser.esm.mjs +146 -0
  40. package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.mjs +52 -0
  41. package/dist/node_modules/@emotion/use-insertion-effect-with-fallbacks/dist/emotion-use-insertion-effect-with-fallbacks.browser.esm.mjs +7 -0
  42. package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.mjs +34 -0
  43. package/dist/node_modules/@hookform/devtools/dist/index.esm.mjs +1402 -0
  44. package/dist/node_modules/dequal/dist/index.mjs +64 -0
  45. package/dist/node_modules/little-state-machine/dist/little-state-machine.es.mjs +67 -0
  46. package/dist/node_modules/lodash/_Hash.mjs +22 -0
  47. package/dist/node_modules/lodash/_ListCache.mjs +22 -0
  48. package/dist/node_modules/lodash/_Map.mjs +6 -0
  49. package/dist/node_modules/lodash/_MapCache.mjs +22 -0
  50. package/dist/node_modules/lodash/_Symbol.mjs +5 -0
  51. package/dist/node_modules/lodash/_arrayMap.mjs +9 -0
  52. package/dist/node_modules/lodash/_assocIndexOf.mjs +12 -0
  53. package/dist/node_modules/lodash/_baseGet.mjs +13 -0
  54. package/dist/node_modules/lodash/_baseGetTag.mjs +11 -0
  55. package/dist/node_modules/lodash/_baseIsNative.mjs +17 -0
  56. package/dist/node_modules/lodash/_baseToString.mjs +19 -0
  57. package/dist/node_modules/lodash/_castPath.mjs +12 -0
  58. package/dist/node_modules/lodash/_coreJsData.mjs +5 -0
  59. package/dist/node_modules/lodash/_freeGlobal.mjs +5 -0
  60. package/dist/node_modules/lodash/_getMapData.mjs +10 -0
  61. package/dist/node_modules/lodash/_getNative.mjs +11 -0
  62. package/dist/node_modules/lodash/_getRawTag.mjs +16 -0
  63. package/dist/node_modules/lodash/_getValue.mjs +7 -0
  64. package/dist/node_modules/lodash/_hashClear.mjs +9 -0
  65. package/dist/node_modules/lodash/_hashDelete.mjs +8 -0
  66. package/dist/node_modules/lodash/_hashGet.mjs +14 -0
  67. package/dist/node_modules/lodash/_hashHas.mjs +10 -0
  68. package/dist/node_modules/lodash/_hashSet.mjs +10 -0
  69. package/dist/node_modules/lodash/_isKey.mjs +13 -0
  70. package/dist/node_modules/lodash/_isKeyable.mjs +8 -0
  71. package/dist/node_modules/lodash/_isMasked.mjs +12 -0
  72. package/dist/node_modules/lodash/_listCacheClear.mjs +7 -0
  73. package/dist/node_modules/lodash/_listCacheDelete.mjs +13 -0
  74. package/dist/node_modules/lodash/_listCacheGet.mjs +10 -0
  75. package/dist/node_modules/lodash/_listCacheHas.mjs +9 -0
  76. package/dist/node_modules/lodash/_listCacheSet.mjs +10 -0
  77. package/dist/node_modules/lodash/_mapCacheClear.mjs +15 -0
  78. package/dist/node_modules/lodash/_mapCacheDelete.mjs +10 -0
  79. package/dist/node_modules/lodash/_mapCacheGet.mjs +9 -0
  80. package/dist/node_modules/lodash/_mapCacheHas.mjs +9 -0
  81. package/dist/node_modules/lodash/_mapCacheSet.mjs +10 -0
  82. package/dist/node_modules/lodash/_memoizeCapped.mjs +12 -0
  83. package/dist/node_modules/lodash/_nativeCreate.mjs +5 -0
  84. package/dist/node_modules/lodash/_objectToString.mjs +8 -0
  85. package/dist/node_modules/lodash/_root.mjs +5 -0
  86. package/dist/node_modules/lodash/_stringToPath.mjs +10 -0
  87. package/dist/node_modules/lodash/_toKey.mjs +12 -0
  88. package/dist/node_modules/lodash/_toSource.mjs +18 -0
  89. package/dist/node_modules/lodash/eq.mjs +7 -0
  90. package/dist/node_modules/lodash/get.mjs +12 -0
  91. package/dist/node_modules/lodash/isArray.mjs +4 -0
  92. package/dist/node_modules/lodash/isFunction.mjs +13 -0
  93. package/dist/node_modules/lodash/isObject.mjs +11 -0
  94. package/dist/node_modules/lodash/isObjectLike.mjs +7 -0
  95. package/dist/node_modules/lodash/isSymbol.mjs +10 -0
  96. package/dist/node_modules/lodash/isUndefined.mjs +9 -0
  97. package/dist/node_modules/lodash/memoize.mjs +19 -0
  98. package/dist/node_modules/lodash/toString.mjs +9 -0
  99. package/dist/node_modules/react-simple-animate/dist/index.mjs +257 -0
  100. package/dist/node_modules/stylis/src/Enum.mjs +12 -0
  101. package/dist/node_modules/stylis/src/Middleware.mjs +18 -0
  102. package/dist/node_modules/stylis/src/Parser.mjs +114 -0
  103. package/dist/node_modules/stylis/src/Serializer.mjs +28 -0
  104. package/dist/node_modules/stylis/src/Tokenizer.mjs +131 -0
  105. package/dist/node_modules/stylis/src/Utility.mjs +50 -0
  106. package/dist/node_modules/use-deep-compare-effect/dist/use-deep-compare-effect.esm.mjs +24 -0
  107. package/dist/node_modules/uuid/dist/esm-browser/regex.mjs +4 -0
  108. package/dist/node_modules/uuid/dist/esm-browser/rng.mjs +9 -0
  109. package/dist/node_modules/uuid/dist/esm-browser/stringify.mjs +13 -0
  110. package/dist/node_modules/uuid/dist/esm-browser/v4.mjs +16 -0
  111. package/dist/node_modules/uuid/dist/esm-browser/validate.mjs +7 -0
  112. package/dist/submit/useFormOnSubmitSuccessful.mjs +7 -7
  113. package/dist/submit/useFormOnSubmitSuccessfulAndReset.mjs +7 -7
  114. package/package.json +14 -1
  115. package/dist/errors/nonfield/utils.mjs +0 -4
  116. package/dist/errors/orphan/useFormErrorsHasOnlyOrphans.d.ts +0 -2
  117. package/dist/errors/orphan/useFormErrorsHasOnlyOrphans.mjs +0 -10
  118. package/dist/errors/orphan/utils.d.ts +0 -4
  119. package/dist/errors/useFormFlatFieldErrors.mjs +0 -6
  120. package/dist/utils.d.ts +0 -1
  121. package/dist/utils.mjs +0 -4
@@ -0,0 +1,131 @@
1
+ import { assign as g, charat as h, strlen as x, trim as p, from as j, substr as q } from "./Utility.mjs";
2
+ var u = 1, t = 1, m = 0, n = 0, r = 0, i = "";
3
+ function z(e, c, k, b, v, w, d) {
4
+ return { value: e, root: c, parent: k, type: b, props: v, children: w, line: u, column: t, length: d, return: "" };
5
+ }
6
+ function C(e, c) {
7
+ return g(z("", null, null, "", null, null, 0), e, { length: -e.length }, c);
8
+ }
9
+ function D() {
10
+ return r;
11
+ }
12
+ function E() {
13
+ return r = n > 0 ? h(i, --n) : 0, t--, r === 10 && (t = 1, u--), r;
14
+ }
15
+ function a() {
16
+ return r = n < m ? h(i, n++) : 0, t++, r === 10 && (t = 1, u++), r;
17
+ }
18
+ function s() {
19
+ return h(i, n);
20
+ }
21
+ function A() {
22
+ return n;
23
+ }
24
+ function l(e, c) {
25
+ return q(i, e, c);
26
+ }
27
+ function o(e) {
28
+ switch (e) {
29
+ case 0:
30
+ case 9:
31
+ case 10:
32
+ case 13:
33
+ case 32:
34
+ return 5;
35
+ case 33:
36
+ case 43:
37
+ case 44:
38
+ case 47:
39
+ case 62:
40
+ case 64:
41
+ case 126:
42
+ case 59:
43
+ case 123:
44
+ case 125:
45
+ return 4;
46
+ case 58:
47
+ return 3;
48
+ case 34:
49
+ case 39:
50
+ case 40:
51
+ case 91:
52
+ return 2;
53
+ case 41:
54
+ case 93:
55
+ return 1;
56
+ }
57
+ return 0;
58
+ }
59
+ function F(e) {
60
+ return u = t = 1, m = x(i = e), n = 0, [];
61
+ }
62
+ function G(e) {
63
+ return i = "", e;
64
+ }
65
+ function H(e) {
66
+ return p(l(n - 1, f(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));
67
+ }
68
+ function I(e) {
69
+ for (; (r = s()) && r < 33; )
70
+ a();
71
+ return o(e) > 2 || o(r) > 3 ? "" : " ";
72
+ }
73
+ function J(e, c) {
74
+ for (; --c && a() && !(r < 48 || r > 102 || r > 57 && r < 65 || r > 70 && r < 97); )
75
+ ;
76
+ return l(e, A() + (c < 6 && s() == 32 && a() == 32));
77
+ }
78
+ function f(e) {
79
+ for (; a(); )
80
+ switch (r) {
81
+ case e:
82
+ return n;
83
+ case 34:
84
+ case 39:
85
+ e !== 34 && e !== 39 && f(r);
86
+ break;
87
+ case 40:
88
+ e === 41 && f(e);
89
+ break;
90
+ case 92:
91
+ a();
92
+ break;
93
+ }
94
+ return n;
95
+ }
96
+ function K(e, c) {
97
+ for (; a() && e + r !== 57; )
98
+ if (e + r === 84 && s() === 47)
99
+ break;
100
+ return "/*" + l(c, n - 1) + "*" + j(e === 47 ? e : a());
101
+ }
102
+ function L(e) {
103
+ for (; !o(s()); )
104
+ a();
105
+ return l(e, n);
106
+ }
107
+ export {
108
+ F as alloc,
109
+ A as caret,
110
+ D as char,
111
+ r as character,
112
+ i as characters,
113
+ t as column,
114
+ K as commenter,
115
+ C as copy,
116
+ G as dealloc,
117
+ H as delimit,
118
+ f as delimiter,
119
+ J as escaping,
120
+ L as identifier,
121
+ m as length,
122
+ u as line,
123
+ a as next,
124
+ z as node,
125
+ s as peek,
126
+ n as position,
127
+ E as prev,
128
+ l as slice,
129
+ o as token,
130
+ I as whitespace
131
+ };
@@ -0,0 +1,50 @@
1
+ var i = Math.abs, c = String.fromCharCode, o = Object.assign;
2
+ function f(n, r) {
3
+ return t(n, 0) ^ 45 ? (((r << 2 ^ t(n, 0)) << 2 ^ t(n, 1)) << 2 ^ t(n, 2)) << 2 ^ t(n, 3) : 0;
4
+ }
5
+ function u(n) {
6
+ return n.trim();
7
+ }
8
+ function s(n, r) {
9
+ return (n = r.exec(n)) ? n[0] : n;
10
+ }
11
+ function a(n, r, e) {
12
+ return n.replace(r, e);
13
+ }
14
+ function h(n, r) {
15
+ return n.indexOf(r);
16
+ }
17
+ function t(n, r) {
18
+ return n.charCodeAt(r) | 0;
19
+ }
20
+ function m(n, r, e) {
21
+ return n.slice(r, e);
22
+ }
23
+ function p(n) {
24
+ return n.length;
25
+ }
26
+ function b(n) {
27
+ return n.length;
28
+ }
29
+ function d(n, r) {
30
+ return r.push(n), n;
31
+ }
32
+ function g(n, r) {
33
+ return n.map(r).join("");
34
+ }
35
+ export {
36
+ i as abs,
37
+ d as append,
38
+ o as assign,
39
+ t as charat,
40
+ g as combine,
41
+ c as from,
42
+ f as hash,
43
+ h as indexof,
44
+ s as match,
45
+ a as replace,
46
+ b as sizeof,
47
+ p as strlen,
48
+ m as substr,
49
+ u as trim
50
+ };
@@ -0,0 +1,24 @@
1
+ import * as t from "react";
2
+ import { dequal as u } from "../../dequal/dist/index.mjs";
3
+ function f(e) {
4
+ if (!e || !e.length)
5
+ throw new Error("useDeepCompareEffect should not be used with no dependencies. Use React.useEffect instead.");
6
+ if (e.every(o))
7
+ throw new Error("useDeepCompareEffect should not be used with dependencies that are all primitive values. Use React.useEffect instead.");
8
+ }
9
+ function o(e) {
10
+ return e == null || /^[sbn]/.test(typeof e);
11
+ }
12
+ function s(e) {
13
+ var r = t.useRef(e), n = t.useRef(0);
14
+ return u(e, r.current) || (r.current = e, n.current += 1), t.useMemo(function() {
15
+ return r.current;
16
+ }, [n.current]);
17
+ }
18
+ function c(e, r) {
19
+ return process.env.NODE_ENV !== "production" && f(r), t.useEffect(e, s(r));
20
+ }
21
+ export {
22
+ c as default,
23
+ s as useDeepCompareMemoize
24
+ };
@@ -0,0 +1,4 @@
1
+ const a = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;
2
+ export {
3
+ a as default
4
+ };
@@ -0,0 +1,9 @@
1
+ var t, e = new Uint8Array(16);
2
+ function o() {
3
+ if (!t && (t = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || typeof msCrypto < "u" && typeof msCrypto.getRandomValues == "function" && msCrypto.getRandomValues.bind(msCrypto), !t))
4
+ throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
5
+ return t(e);
6
+ }
7
+ export {
8
+ o as default
9
+ };
@@ -0,0 +1,13 @@
1
+ import s from "./validate.mjs";
2
+ var t = [];
3
+ for (var n = 0; n < 256; ++n)
4
+ t.push((n + 256).toString(16).substr(1));
5
+ function f(e) {
6
+ var i = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0, o = (t[e[i + 0]] + t[e[i + 1]] + t[e[i + 2]] + t[e[i + 3]] + "-" + t[e[i + 4]] + t[e[i + 5]] + "-" + t[e[i + 6]] + t[e[i + 7]] + "-" + t[e[i + 8]] + t[e[i + 9]] + "-" + t[e[i + 10]] + t[e[i + 11]] + t[e[i + 12]] + t[e[i + 13]] + t[e[i + 14]] + t[e[i + 15]]).toLowerCase();
7
+ if (!s(o))
8
+ throw TypeError("Stringified UUID is invalid");
9
+ return o;
10
+ }
11
+ export {
12
+ f as default
13
+ };
@@ -0,0 +1,16 @@
1
+ import d from "./rng.mjs";
2
+ import f from "./stringify.mjs";
3
+ function v(n, m, x) {
4
+ n = n || {};
5
+ var r = n.random || (n.rng || d)();
6
+ if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, m) {
7
+ x = x || 0;
8
+ for (var a = 0; a < 16; ++a)
9
+ m[x + a] = r[a];
10
+ return m;
11
+ }
12
+ return f(r);
13
+ }
14
+ export {
15
+ v as default
16
+ };
@@ -0,0 +1,7 @@
1
+ import e from "./regex.mjs";
2
+ function o(t) {
3
+ return typeof t == "string" && e.test(t);
4
+ }
5
+ export {
6
+ o as default
7
+ };
@@ -1,11 +1,11 @@
1
- import u from "react";
1
+ import s from "react";
2
2
  import { useFormState as e } from "react-hook-form";
3
- const o = (s) => {
4
- const { isSubmitSuccessful: t } = e();
5
- u.useEffect(() => {
6
- s && t && s();
7
- }, [s, t]);
8
- }, r = o;
3
+ const f = (t) => {
4
+ const { isSubmitSuccessful: u } = e();
5
+ s.useEffect(() => {
6
+ t && u && t();
7
+ }, [t, u]);
8
+ }, r = f;
9
9
  export {
10
10
  r as default
11
11
  };
@@ -1,13 +1,13 @@
1
1
  import r from "react";
2
- import { useFormState as c } from "react-hook-form";
3
- import f from "./useFormOnSubmitSuccessful.mjs";
4
- const m = (s) => {
5
- const { isSubmitSuccessful: t, isDirty: u } = c(), e = r.useRef(!1);
6
- f(() => {
2
+ import { useFormState as f } from "react-hook-form";
3
+ import c from "./useFormOnSubmitSuccessful.mjs";
4
+ const m = (t) => {
5
+ const { isSubmitSuccessful: u, isDirty: s } = f(), e = r.useRef(!1);
6
+ c(() => {
7
7
  e.current = !0;
8
8
  }), r.useEffect(() => {
9
- s && e.current && !t && !u && (s(), e.current = !1);
10
- }, [t, u]);
9
+ t && e.current && !u && !s && (t(), e.current = !1);
10
+ }, [u, s]);
11
11
  }, S = m;
12
12
  export {
13
13
  S as default
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@paragrav/rhf-utils",
3
3
  "author": "paragrav.dev",
4
4
  "license": "MIT",
5
- "version": "0.0.23",
5
+ "version": "0.0.26",
6
6
  "description": "Integration utilities for react-hook-form.",
7
7
  "type": "module",
8
8
  "sideEffects": false,
@@ -15,6 +15,18 @@
15
15
  "default": "./dist/main.mjs",
16
16
  "types": "./dist/main.d.ts"
17
17
  },
18
+ "./LazyDevTool": {
19
+ "default": "./dist/devtool/LazyDevTool.mjs",
20
+ "types": "./dist/devtool/LazyDevTool.d.ts"
21
+ },
22
+ "./errors/FormErrorMessage": {
23
+ "default": "./dist/errors/message/FormErrorMessage.mjs",
24
+ "types": "./dist/errors/message/FormErrorMessage.d.ts"
25
+ },
26
+ "./errors/FormErrorMessageByPath": {
27
+ "default": "./dist/errors/message/FormErrorMessageByPath.mjs",
28
+ "types": "./dist/errors/message/FormErrorMessageByPath.d.ts"
29
+ },
18
30
  "./errors/useFormErrorConsoleDebug": {
19
31
  "default": "./dist/errors/useFormErrorConsoleDebug.mjs",
20
32
  "types": "./dist/errors/useFormErrorConsoleDebug.d.ts"
@@ -91,6 +103,7 @@
91
103
  "react-hook-form": "^7"
92
104
  },
93
105
  "devDependencies": {
106
+ "@hookform/devtools": "^4.3.1",
94
107
  "@hookform/resolvers": "^3.3.4",
95
108
  "@playwright/experimental-ct-react": "^1.42.1",
96
109
  "@rollup/plugin-typescript": "^11.1.6",
@@ -1,4 +0,0 @@
1
- const o = (r) => !r.ref;
2
- export {
3
- o as isNonFieldError
4
- };
@@ -1,2 +0,0 @@
1
- declare const useFormErrorsHasOnlyOrphans: (formRef: React.RefObject<HTMLFormElement>) => boolean;
2
- export default useFormErrorsHasOnlyOrphans;
@@ -1,10 +0,0 @@
1
- import { isEmptyObject as e } from "../../utils.mjs";
2
- import t from "../useFormFlatFieldErrors.mjs";
3
- import n from "./useOrphanFormErrors.mjs";
4
- const m = (o) => {
5
- const r = n(o), s = t();
6
- return [r, s].some(e) ? !1 : Object.keys(r).length === Object.keys(s).length;
7
- }, O = m;
8
- export {
9
- O as default
10
- };
@@ -1,4 +0,0 @@
1
- import { FlatFieldErrors } from '../getFlatFieldErrors';
2
- import { FieldErrors } from 'react-hook-form';
3
-
4
- export declare const getOrphanFlatFieldErrors: (errors: FieldErrors, parentElement: Pick<HTMLElement, 'querySelector'>) => FlatFieldErrors;
@@ -1,6 +0,0 @@
1
- import r from "./getFlatFieldErrors.mjs";
2
- import o from "./useFormErrorsOnChange.mjs";
3
- const s = () => o(r);
4
- export {
5
- s as default
6
- };
package/dist/utils.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const isEmptyObject: (obj: Record<string, unknown>) => boolean;
package/dist/utils.mjs DELETED
@@ -1,4 +0,0 @@
1
- const e = (t) => Object.keys(t).length === 0;
2
- export {
3
- e as isEmptyObject
4
- };