@stryke/type-checks 0.5.17 → 0.5.19

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 (139) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/get-object-tag.cjs +15 -1
  3. package/dist/get-object-tag.mjs +14 -1
  4. package/dist/get-object-tag.mjs.map +1 -1
  5. package/dist/index.cjs +100 -1
  6. package/dist/index.mjs +45 -1
  7. package/dist/is-array-like.cjs +17 -1
  8. package/dist/is-array-like.mjs +17 -1
  9. package/dist/is-array-like.mjs.map +1 -1
  10. package/dist/is-async-iterable.cjs +16 -1
  11. package/dist/is-async-iterable.mjs +16 -1
  12. package/dist/is-async-iterable.mjs.map +1 -1
  13. package/dist/is-bigint.cjs +22 -1
  14. package/dist/is-bigint.mjs +22 -1
  15. package/dist/is-bigint.mjs.map +1 -1
  16. package/dist/is-boolean.cjs +18 -1
  17. package/dist/is-boolean.mjs +17 -1
  18. package/dist/is-boolean.mjs.map +1 -1
  19. package/dist/is-buffer.cjs +13 -1
  20. package/dist/is-buffer.mjs +11 -1
  21. package/dist/is-buffer.mjs.map +1 -1
  22. package/dist/is-collection.cjs +22 -1
  23. package/dist/is-collection.mjs +22 -1
  24. package/dist/is-collection.mjs.map +1 -1
  25. package/dist/is-date.cjs +23 -1
  26. package/dist/is-date.mjs +23 -1
  27. package/dist/is-date.mjs.map +1 -1
  28. package/dist/is-deep-key.cjs +52 -1
  29. package/dist/is-deep-key.mjs +50 -1
  30. package/dist/is-deep-key.mjs.map +1 -1
  31. package/dist/is-empty-object.cjs +33 -1
  32. package/dist/is-empty-object.mjs +32 -1
  33. package/dist/is-empty-object.mjs.map +1 -1
  34. package/dist/is-empty-string.cjs +20 -1
  35. package/dist/is-empty-string.mjs +20 -1
  36. package/dist/is-empty-string.mjs.map +1 -1
  37. package/dist/is-empty.cjs +38 -1
  38. package/dist/is-empty.mjs +37 -1
  39. package/dist/is-empty.mjs.map +1 -1
  40. package/dist/is-equal.cjs +19 -1
  41. package/dist/is-equal.mjs +18 -1
  42. package/dist/is-equal.mjs.map +1 -1
  43. package/dist/is-error.cjs +29 -1
  44. package/dist/is-error.mjs +29 -1
  45. package/dist/is-error.mjs.map +1 -1
  46. package/dist/is-file-result.cjs +21 -1
  47. package/dist/is-file-result.mjs +21 -1
  48. package/dist/is-file-result.mjs.map +1 -1
  49. package/dist/is-float.cjs +13 -1
  50. package/dist/is-float.mjs +13 -1
  51. package/dist/is-float.mjs.map +1 -1
  52. package/dist/is-function.cjs +27 -1
  53. package/dist/is-function.mjs +25 -1
  54. package/dist/is-function.mjs.map +1 -1
  55. package/dist/is-integer.cjs +14 -1
  56. package/dist/is-integer.mjs +14 -1
  57. package/dist/is-integer.mjs.map +1 -1
  58. package/dist/is-mergeable-object.cjs +14 -1
  59. package/dist/is-mergeable-object.mjs +14 -1
  60. package/dist/is-mergeable-object.mjs.map +1 -1
  61. package/dist/is-non-null-object.cjs +16 -1
  62. package/dist/is-non-null-object.mjs +16 -1
  63. package/dist/is-non-null-object.mjs.map +1 -1
  64. package/dist/is-not-empty.cjs +21 -1
  65. package/dist/is-not-empty.mjs +21 -1
  66. package/dist/is-not-empty.mjs.map +1 -1
  67. package/dist/is-null.cjs +12 -1
  68. package/dist/is-null.mjs +11 -1
  69. package/dist/is-null.mjs.map +1 -1
  70. package/dist/is-number.cjs +29 -1
  71. package/dist/is-number.mjs +28 -1
  72. package/dist/is-number.mjs.map +1 -1
  73. package/dist/is-object-index.cjs +19 -1
  74. package/dist/is-object-index.mjs +18 -1
  75. package/dist/is-object-index.mjs.map +1 -1
  76. package/dist/is-object.cjs +47 -1
  77. package/dist/is-object.mjs +44 -1
  78. package/dist/is-object.mjs.map +1 -1
  79. package/dist/is-plain-object.cjs +64 -1
  80. package/dist/is-plain-object.mjs +63 -1
  81. package/dist/is-plain-object.mjs.map +1 -1
  82. package/dist/is-primitive.cjs +12 -1
  83. package/dist/is-primitive.mjs +11 -1
  84. package/dist/is-primitive.mjs.map +1 -1
  85. package/dist/is-promise.cjs +27 -1
  86. package/dist/is-promise.mjs +26 -1
  87. package/dist/is-promise.mjs.map +1 -1
  88. package/dist/is-react-element.cjs +8 -1
  89. package/dist/is-react-element.mjs +7 -1
  90. package/dist/is-react-element.mjs.map +1 -1
  91. package/dist/is-ref.cjs +18 -1
  92. package/dist/is-ref.mjs +17 -1
  93. package/dist/is-ref.mjs.map +1 -1
  94. package/dist/is-regexp.cjs +23 -1
  95. package/dist/is-regexp.mjs +23 -1
  96. package/dist/is-regexp.mjs.map +1 -1
  97. package/dist/is-select-option.cjs +19 -1
  98. package/dist/is-select-option.mjs +19 -1
  99. package/dist/is-select-option.mjs.map +1 -1
  100. package/dist/is-set-array.cjs +15 -1
  101. package/dist/is-set-array.mjs +15 -1
  102. package/dist/is-set-array.mjs.map +1 -1
  103. package/dist/is-set-object.cjs +19 -1
  104. package/dist/is-set-object.mjs +19 -1
  105. package/dist/is-set-object.mjs.map +1 -1
  106. package/dist/is-set-string.cjs +20 -1
  107. package/dist/is-set-string.mjs +20 -1
  108. package/dist/is-set-string.mjs.map +1 -1
  109. package/dist/is-set.cjs +19 -1
  110. package/dist/is-set.mjs +19 -1
  111. package/dist/is-set.mjs.map +1 -1
  112. package/dist/is-string.cjs +12 -1
  113. package/dist/is-string.mjs +11 -1
  114. package/dist/is-string.mjs.map +1 -1
  115. package/dist/is-symbol.cjs +12 -1
  116. package/dist/is-symbol.mjs +11 -1
  117. package/dist/is-symbol.mjs.map +1 -1
  118. package/dist/is-typed-array.cjs +8 -1
  119. package/dist/is-typed-array.mjs +7 -1
  120. package/dist/is-typed-array.mjs.map +1 -1
  121. package/dist/is-typed.cjs +20 -1
  122. package/dist/is-typed.mjs +20 -1
  123. package/dist/is-typed.mjs.map +1 -1
  124. package/dist/is-undefined.cjs +8 -1
  125. package/dist/is-undefined.mjs +7 -1
  126. package/dist/is-undefined.mjs.map +1 -1
  127. package/dist/is-url.cjs +16 -1
  128. package/dist/is-url.mjs +16 -1
  129. package/dist/is-url.mjs.map +1 -1
  130. package/dist/property-exists.cjs +31 -1
  131. package/dist/property-exists.mjs +30 -1
  132. package/dist/property-exists.mjs.map +1 -1
  133. package/dist/type-detect.cjs +54 -1
  134. package/dist/type-detect.mjs +54 -1
  135. package/dist/type-detect.mjs.map +1 -1
  136. package/dist/types/src/base.cjs +6 -1
  137. package/dist/types/src/base.mjs +5 -1
  138. package/dist/types/src/base.mjs.map +1 -1
  139. package/package.json +2 -2
@@ -1,2 +1,12 @@
1
- const e=e=>{try{return typeof e==`string`}catch{return!1}};export{e as isString};
1
+ //#region src/is-string.ts
2
+ const isString = (value) => {
3
+ try {
4
+ return typeof value === "string";
5
+ } catch {
6
+ return false;
7
+ }
8
+ };
9
+
10
+ //#endregion
11
+ export { isString };
2
12
  //# sourceMappingURL=is-string.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-string.mjs","names":[],"sources":["../src/is-string.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const isString = (value: unknown): value is string => {\n try {\n return typeof value === \"string\";\n } catch {\n return false;\n }\n};\n"],"mappings":"AAkBA,MAAa,EAAY,GAAoC,CAC3D,GAAI,CACF,OAAO,OAAO,GAAU,cAClB,CACN,MAAO"}
1
+ {"version":3,"file":"is-string.mjs","names":[],"sources":["../src/is-string.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const isString = (value: unknown): value is string => {\n try {\n return typeof value === \"string\";\n } catch {\n return false;\n }\n};\n"],"mappings":";AAkBA,MAAa,YAAY,UAAoC;AAC3D,KAAI;AACF,SAAO,OAAO,UAAU;SAClB;AACN,SAAO"}
@@ -1 +1,12 @@
1
- const e=e=>{try{return e instanceof Symbol||typeof e==`symbol`||!!e&&e.constructor===Symbol}catch{return!1}};exports.isSymbol=e;
1
+
2
+ //#region src/is-symbol.ts
3
+ const isSymbol = (value) => {
4
+ try {
5
+ return value instanceof Symbol || typeof value === "symbol" || Boolean(value) && value.constructor === Symbol;
6
+ } catch {
7
+ return false;
8
+ }
9
+ };
10
+
11
+ //#endregion
12
+ exports.isSymbol = isSymbol;
@@ -1,2 +1,12 @@
1
- const e=e=>{try{return e instanceof Symbol||typeof e==`symbol`||!!e&&e.constructor===Symbol}catch{return!1}};export{e as isSymbol};
1
+ //#region src/is-symbol.ts
2
+ const isSymbol = (value) => {
3
+ try {
4
+ return value instanceof Symbol || typeof value === "symbol" || Boolean(value) && value.constructor === Symbol;
5
+ } catch {
6
+ return false;
7
+ }
8
+ };
9
+
10
+ //#endregion
11
+ export { isSymbol };
2
12
  //# sourceMappingURL=is-symbol.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-symbol.mjs","names":[],"sources":["../src/is-symbol.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const isSymbol = (value: unknown): value is symbol => {\n try {\n return (\n value instanceof Symbol ||\n typeof value === \"symbol\" ||\n (Boolean(value) && (value as any).constructor === Symbol)\n );\n } catch {\n return false;\n }\n};\n"],"mappings":"AAkBA,MAAa,EAAY,GAAoC,CAC3D,GAAI,CACF,OACE,aAAiB,QACjB,OAAO,GAAU,UAChB,EAAQ,GAAW,EAAc,cAAgB,YAE9C,CACN,MAAO"}
1
+ {"version":3,"file":"is-symbol.mjs","names":[],"sources":["../src/is-symbol.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const isSymbol = (value: unknown): value is symbol => {\n try {\n return (\n value instanceof Symbol ||\n typeof value === \"symbol\" ||\n (Boolean(value) && (value as any).constructor === Symbol)\n );\n } catch {\n return false;\n }\n};\n"],"mappings":";AAkBA,MAAa,YAAY,UAAoC;AAC3D,KAAI;AACF,SACE,iBAAiB,UACjB,OAAO,UAAU,YAChB,QAAQ,MAAM,IAAK,MAAc,gBAAgB;SAE9C;AACN,SAAO"}
@@ -1 +1,8 @@
1
- function e(e){return e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof BigUint64Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof BigInt64Array||e instanceof Float32Array||e instanceof Float64Array}exports.isTypedArray=e;
1
+
2
+ //#region src/is-typed-array.ts
3
+ function isTypedArray(obj) {
4
+ return obj instanceof Uint8Array || obj instanceof Uint8ClampedArray || obj instanceof Uint16Array || obj instanceof Uint32Array || obj instanceof BigUint64Array || obj instanceof Int8Array || obj instanceof Int16Array || obj instanceof Int32Array || obj instanceof BigInt64Array || obj instanceof Float32Array || obj instanceof Float64Array;
5
+ }
6
+
7
+ //#endregion
8
+ exports.isTypedArray = isTypedArray;
@@ -1,2 +1,8 @@
1
- function e(e){return e instanceof Uint8Array||e instanceof Uint8ClampedArray||e instanceof Uint16Array||e instanceof Uint32Array||e instanceof BigUint64Array||e instanceof Int8Array||e instanceof Int16Array||e instanceof Int32Array||e instanceof BigInt64Array||e instanceof Float32Array||e instanceof Float64Array}export{e as isTypedArray};
1
+ //#region src/is-typed-array.ts
2
+ function isTypedArray(obj) {
3
+ return obj instanceof Uint8Array || obj instanceof Uint8ClampedArray || obj instanceof Uint16Array || obj instanceof Uint32Array || obj instanceof BigUint64Array || obj instanceof Int8Array || obj instanceof Int16Array || obj instanceof Int32Array || obj instanceof BigInt64Array || obj instanceof Float32Array || obj instanceof Float64Array;
4
+ }
5
+
6
+ //#endregion
7
+ export { isTypedArray };
2
8
  //# sourceMappingURL=is-typed-array.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-typed-array.mjs","names":[],"sources":["../src/is-typed-array.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport function isTypedArray(\n obj: any\n): obj is\n | Uint8Array\n | Uint8ClampedArray\n | Uint16Array\n | Uint32Array\n | BigUint64Array\n | Int8Array\n | Int16Array\n | Int32Array\n | BigInt64Array\n | Float32Array\n | Float64Array {\n return (\n obj instanceof Uint8Array ||\n obj instanceof Uint8ClampedArray ||\n obj instanceof Uint16Array ||\n obj instanceof Uint32Array ||\n obj instanceof BigUint64Array ||\n obj instanceof Int8Array ||\n obj instanceof Int16Array ||\n obj instanceof Int32Array ||\n obj instanceof BigInt64Array ||\n obj instanceof Float32Array ||\n obj instanceof Float64Array\n );\n}\n"],"mappings":"AAkBA,SAAgB,EACd,EAYe,CACf,OACE,aAAe,YACf,aAAe,mBACf,aAAe,aACf,aAAe,aACf,aAAe,gBACf,aAAe,WACf,aAAe,YACf,aAAe,YACf,aAAe,eACf,aAAe,cACf,aAAe"}
1
+ {"version":3,"file":"is-typed-array.mjs","names":[],"sources":["../src/is-typed-array.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport function isTypedArray(\n obj: any\n): obj is\n | Uint8Array\n | Uint8ClampedArray\n | Uint16Array\n | Uint32Array\n | BigUint64Array\n | Int8Array\n | Int16Array\n | Int32Array\n | BigInt64Array\n | Float32Array\n | Float64Array {\n return (\n obj instanceof Uint8Array ||\n obj instanceof Uint8ClampedArray ||\n obj instanceof Uint16Array ||\n obj instanceof Uint32Array ||\n obj instanceof BigUint64Array ||\n obj instanceof Int8Array ||\n obj instanceof Int16Array ||\n obj instanceof Int32Array ||\n obj instanceof BigInt64Array ||\n obj instanceof Float32Array ||\n obj instanceof Float64Array\n );\n}\n"],"mappings":";AAkBA,SAAgB,aACd,KAYe;AACf,QACE,eAAe,cACf,eAAe,qBACf,eAAe,eACf,eAAe,eACf,eAAe,kBACf,eAAe,aACf,eAAe,cACf,eAAe,cACf,eAAe,iBACf,eAAe,gBACf,eAAe"}
package/dist/is-typed.cjs CHANGED
@@ -1 +1,20 @@
1
- const e=require(`./is-object.cjs`),t=require(`./is-set.cjs`),n=n=>{try{return t.isSet(n)&&e.isObject(n)&&`__typename`in n}catch{return!1}};exports.isTyped=n;
1
+ const require_is_object = require('./is-object.cjs');
2
+ const require_is_set = require('./is-set.cjs');
3
+
4
+ //#region src/is-typed.ts
5
+ /**
6
+ * Check if the provided value has a `__typename` property
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the value provided has a `__typename` property
10
+ */
11
+ const isTyped = (value) => {
12
+ try {
13
+ return require_is_set.isSet(value) && require_is_object.isObject(value) && "__typename" in value;
14
+ } catch {
15
+ return false;
16
+ }
17
+ };
18
+
19
+ //#endregion
20
+ exports.isTyped = isTyped;
package/dist/is-typed.mjs CHANGED
@@ -1,2 +1,21 @@
1
- import{isObject as e}from"./is-object.mjs";import{isSet as t}from"./is-set.mjs";const n=n=>{try{return t(n)&&e(n)&&`__typename`in n}catch{return!1}};export{n as isTyped};
1
+ import { isObject } from "./is-object.mjs";
2
+ import { isSet } from "./is-set.mjs";
3
+
4
+ //#region src/is-typed.ts
5
+ /**
6
+ * Check if the provided value has a `__typename` property
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the value provided has a `__typename` property
10
+ */
11
+ const isTyped = (value) => {
12
+ try {
13
+ return isSet(value) && isObject(value) && "__typename" in value;
14
+ } catch {
15
+ return false;
16
+ }
17
+ };
18
+
19
+ //#endregion
20
+ export { isTyped };
2
21
  //# sourceMappingURL=is-typed.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-typed.mjs","names":[],"sources":["../src/is-typed.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Typed } from \"@stryke/types/base\";\nimport { isObject } from \"./is-object\";\nimport { isSet } from \"./is-set\";\n\n/**\n * Check if the provided value has a `__typename` property\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided has a `__typename` property\n */\nexport const isTyped = (value: unknown): value is Typed => {\n try {\n return isSet(value) && isObject(value) && \"__typename\" in value;\n } catch {\n return false;\n }\n};\n"],"mappings":"gFA4BA,MAAa,EAAW,GAAmC,CACzD,GAAI,CACF,OAAO,EAAM,EAAM,EAAI,EAAS,EAAM,EAAI,eAAgB,OACpD,CACN,MAAO"}
1
+ {"version":3,"file":"is-typed.mjs","names":[],"sources":["../src/is-typed.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { Typed } from \"@stryke/types/base\";\nimport { isObject } from \"./is-object\";\nimport { isSet } from \"./is-set\";\n\n/**\n * Check if the provided value has a `__typename` property\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided has a `__typename` property\n */\nexport const isTyped = (value: unknown): value is Typed => {\n try {\n return isSet(value) && isObject(value) && \"__typename\" in value;\n } catch {\n return false;\n }\n};\n"],"mappings":";;;;;;;;;;AA4BA,MAAa,WAAW,UAAmC;AACzD,KAAI;AACF,SAAO,MAAM,MAAM,IAAI,SAAS,MAAM,IAAI,gBAAgB;SACpD;AACN,SAAO"}
@@ -1 +1,8 @@
1
- const e=e=>e===void 0;exports.isUndefined=e;
1
+
2
+ //#region src/is-undefined.ts
3
+ const isUndefined = (value) => {
4
+ return value === void 0;
5
+ };
6
+
7
+ //#endregion
8
+ exports.isUndefined = isUndefined;
@@ -1,2 +1,8 @@
1
- const e=e=>e===void 0;export{e as isUndefined};
1
+ //#region src/is-undefined.ts
2
+ const isUndefined = (value) => {
3
+ return value === void 0;
4
+ };
5
+
6
+ //#endregion
7
+ export { isUndefined };
2
8
  //# sourceMappingURL=is-undefined.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-undefined.mjs","names":[],"sources":["../src/is-undefined.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const isUndefined = (value: unknown): value is undefined => {\n return value === undefined;\n};\n"],"mappings":"AAkBA,MAAa,EAAe,GACnB,IAAU,IAAA"}
1
+ {"version":3,"file":"is-undefined.mjs","names":[],"sources":["../src/is-undefined.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nexport const isUndefined = (value: unknown): value is undefined => {\n return value === undefined;\n};\n"],"mappings":";AAkBA,MAAa,eAAe,UAAuC;AACjE,QAAO,UAAU"}
package/dist/is-url.cjs CHANGED
@@ -1 +1,16 @@
1
- const e=require(`./is-set-object.cjs`),t=require(`./is-set-string.cjs`),n=n=>e.isSetObject(n)&&t.isSetString(n.hash)&&t.isSetString(n.host)&&t.isSetString(n.hostname)&&t.isSetString(n.href)&&t.isSetString(n.origin)&&t.isSetString(n.protocol);exports.isURL=n;
1
+ const require_is_set_object = require('./is-set-object.cjs');
2
+ const require_is_set_string = require('./is-set-string.cjs');
3
+
4
+ //#region src/is-url.ts
5
+ /**
6
+ * Determine if the provided value is of type URL
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the value provided is of type `URL`
10
+ */
11
+ const isURL = (value) => {
12
+ return require_is_set_object.isSetObject(value) && require_is_set_string.isSetString(value.hash) && require_is_set_string.isSetString(value.host) && require_is_set_string.isSetString(value.hostname) && require_is_set_string.isSetString(value.href) && require_is_set_string.isSetString(value.origin) && require_is_set_string.isSetString(value.protocol);
13
+ };
14
+
15
+ //#endregion
16
+ exports.isURL = isURL;
package/dist/is-url.mjs CHANGED
@@ -1,2 +1,17 @@
1
- import{isSetObject as e}from"./is-set-object.mjs";import{isSetString as t}from"./is-set-string.mjs";const n=n=>e(n)&&t(n.hash)&&t(n.host)&&t(n.hostname)&&t(n.href)&&t(n.origin)&&t(n.protocol);export{n as isURL};
1
+ import { isSetObject } from "./is-set-object.mjs";
2
+ import { isSetString } from "./is-set-string.mjs";
3
+
4
+ //#region src/is-url.ts
5
+ /**
6
+ * Determine if the provided value is of type URL
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the value provided is of type `URL`
10
+ */
11
+ const isURL = (value) => {
12
+ return isSetObject(value) && isSetString(value.hash) && isSetString(value.host) && isSetString(value.hostname) && isSetString(value.href) && isSetString(value.origin) && isSetString(value.protocol);
13
+ };
14
+
15
+ //#endregion
16
+ export { isURL };
2
17
  //# sourceMappingURL=is-url.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-url.mjs","names":[],"sources":["../src/is-url.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isSetObject } from \"./is-set-object\";\nimport { isSetString } from \"./is-set-string\";\n\n/**\n * Determine if the provided value is of type URL\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `URL`\n */\nexport const isURL = (value: unknown): value is URL => {\n return (\n isSetObject(value) &&\n isSetString((value as URL).hash) &&\n isSetString((value as URL).host) &&\n isSetString((value as URL).hostname) &&\n isSetString((value as URL).href) &&\n isSetString((value as URL).origin) &&\n isSetString((value as URL).protocol)\n );\n};\n"],"mappings":"oGA2BA,MAAa,EAAS,GAElB,EAAY,EAAM,EAClB,EAAa,EAAc,KAAK,EAChC,EAAa,EAAc,KAAK,EAChC,EAAa,EAAc,SAAS,EACpC,EAAa,EAAc,KAAK,EAChC,EAAa,EAAc,OAAO,EAClC,EAAa,EAAc,SAAS"}
1
+ {"version":3,"file":"is-url.mjs","names":[],"sources":["../src/is-url.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isSetObject } from \"./is-set-object\";\nimport { isSetString } from \"./is-set-string\";\n\n/**\n * Determine if the provided value is of type URL\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `URL`\n */\nexport const isURL = (value: unknown): value is URL => {\n return (\n isSetObject(value) &&\n isSetString((value as URL).hash) &&\n isSetString((value as URL).host) &&\n isSetString((value as URL).hostname) &&\n isSetString((value as URL).href) &&\n isSetString((value as URL).origin) &&\n isSetString((value as URL).protocol)\n );\n};\n"],"mappings":";;;;;;;;;;AA2BA,MAAa,SAAS,UAAiC;AACrD,QACE,YAAY,MAAM,IAClB,YAAa,MAAc,KAAK,IAChC,YAAa,MAAc,KAAK,IAChC,YAAa,MAAc,SAAS,IACpC,YAAa,MAAc,KAAK,IAChC,YAAa,MAAc,OAAO,IAClC,YAAa,MAAc,SAAS"}
@@ -1 +1,31 @@
1
- const e=require(`./is-object.cjs`),t=(t,n)=>{try{return e.isObject(t)&&n in t}catch{return!1}},n=(e,n)=>t(e,n)&&!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n));exports.propertyExists=t,exports.propertyUnsafe=n;
1
+ const require_is_object = require('./is-object.cjs');
2
+
3
+ //#region src/property-exists.ts
4
+ /**
5
+ * Check if the provided object has the provided property
6
+ *
7
+ * @param object - The object to check
8
+ * @param propertyKey - The property to check
9
+ * @returns An indicator specifying if the object has the provided property
10
+ */
11
+ const propertyExists = (object, propertyKey) => {
12
+ try {
13
+ return require_is_object.isObject(object) && propertyKey in object;
14
+ } catch {
15
+ return false;
16
+ }
17
+ };
18
+ /**
19
+ * Check if the provided object has the provided property and if it's safe to merge
20
+ *
21
+ * @param object - The object to check
22
+ * @param propertyKey - The property to check
23
+ * @returns An indicator specifying if the object has the provided property and if it's safe to merge
24
+ */
25
+ const propertyUnsafe = (object, propertyKey) => {
26
+ return propertyExists(object, propertyKey) && !(Object.hasOwnProperty.call(object, propertyKey) && Object.propertyIsEnumerable.call(object, propertyKey));
27
+ };
28
+
29
+ //#endregion
30
+ exports.propertyExists = propertyExists;
31
+ exports.propertyUnsafe = propertyUnsafe;
@@ -1,2 +1,31 @@
1
- import{isObject as e}from"./is-object.mjs";const t=(t,n)=>{try{return e(t)&&n in t}catch{return!1}},n=(e,n)=>t(e,n)&&!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n));export{t as propertyExists,n as propertyUnsafe};
1
+ import { isObject } from "./is-object.mjs";
2
+
3
+ //#region src/property-exists.ts
4
+ /**
5
+ * Check if the provided object has the provided property
6
+ *
7
+ * @param object - The object to check
8
+ * @param propertyKey - The property to check
9
+ * @returns An indicator specifying if the object has the provided property
10
+ */
11
+ const propertyExists = (object, propertyKey) => {
12
+ try {
13
+ return isObject(object) && propertyKey in object;
14
+ } catch {
15
+ return false;
16
+ }
17
+ };
18
+ /**
19
+ * Check if the provided object has the provided property and if it's safe to merge
20
+ *
21
+ * @param object - The object to check
22
+ * @param propertyKey - The property to check
23
+ * @returns An indicator specifying if the object has the provided property and if it's safe to merge
24
+ */
25
+ const propertyUnsafe = (object, propertyKey) => {
26
+ return propertyExists(object, propertyKey) && !(Object.hasOwnProperty.call(object, propertyKey) && Object.propertyIsEnumerable.call(object, propertyKey));
27
+ };
28
+
29
+ //#endregion
30
+ export { propertyExists, propertyUnsafe };
2
31
  //# sourceMappingURL=property-exists.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"property-exists.mjs","names":[],"sources":["../src/property-exists.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isObject } from \"./is-object\";\n\n/**\n * Check if the provided object has the provided property\n *\n * @param object - The object to check\n * @param propertyKey - The property to check\n * @returns An indicator specifying if the object has the provided property\n */\nexport const propertyExists = (object: any, propertyKey: PropertyKey) => {\n try {\n return isObject(object) && propertyKey in object;\n } catch {\n return false;\n }\n};\n\n/**\n * Check if the provided object has the provided property and if it's safe to merge\n *\n * @param object - The object to check\n * @param propertyKey - The property to check\n * @returns An indicator specifying if the object has the provided property and if it's safe to merge\n */\nexport const propertyUnsafe = (object: any, propertyKey: PropertyKey) => {\n return (\n propertyExists(object, propertyKey) && // Properties are safe to merge if they don't exist in the target yet,\n !(\n Object.hasOwnProperty.call(object, propertyKey) && // unsafe if they exist up the prototype chain,\n Object.propertyIsEnumerable.call(object, propertyKey)\n )\n ); // and also unsafe if they're non-enumerable.\n};\n"],"mappings":"2CA2BA,MAAa,GAAkB,EAAa,IAA6B,CACvE,GAAI,CACF,OAAO,EAAS,EAAO,EAAI,KAAe,OACpC,CACN,MAAO,KAWE,GAAkB,EAAa,IAExC,EAAe,EAAQ,EAAY,EACnC,EACE,OAAO,eAAe,KAAK,EAAQ,EAAY,EAC/C,OAAO,qBAAqB,KAAK,EAAQ,EAAY"}
1
+ {"version":3,"file":"property-exists.mjs","names":[],"sources":["../src/property-exists.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isObject } from \"./is-object\";\n\n/**\n * Check if the provided object has the provided property\n *\n * @param object - The object to check\n * @param propertyKey - The property to check\n * @returns An indicator specifying if the object has the provided property\n */\nexport const propertyExists = (object: any, propertyKey: PropertyKey) => {\n try {\n return isObject(object) && propertyKey in object;\n } catch {\n return false;\n }\n};\n\n/**\n * Check if the provided object has the provided property and if it's safe to merge\n *\n * @param object - The object to check\n * @param propertyKey - The property to check\n * @returns An indicator specifying if the object has the provided property and if it's safe to merge\n */\nexport const propertyUnsafe = (object: any, propertyKey: PropertyKey) => {\n return (\n propertyExists(object, propertyKey) && // Properties are safe to merge if they don't exist in the target yet,\n !(\n Object.hasOwnProperty.call(object, propertyKey) && // unsafe if they exist up the prototype chain,\n Object.propertyIsEnumerable.call(object, propertyKey)\n )\n ); // and also unsafe if they're non-enumerable.\n};\n"],"mappings":";;;;;;;;;;AA2BA,MAAa,kBAAkB,QAAa,gBAA6B;AACvE,KAAI;AACF,SAAO,SAAS,OAAO,IAAI,eAAe;SACpC;AACN,SAAO;;;;;;;;;;AAWX,MAAa,kBAAkB,QAAa,gBAA6B;AACvE,QACE,eAAe,QAAQ,YAAY,IACnC,EACE,OAAO,eAAe,KAAK,QAAQ,YAAY,IAC/C,OAAO,qBAAqB,KAAK,QAAQ,YAAY"}
@@ -1 +1,54 @@
1
- const e=require(`./is-buffer.cjs`),t=(e=>(typeof globalThis==`object`||Object.defineProperty(e,`typeDetectGlobalObject`,{get(){return this},configurable:!0}),globalThis))(Object.prototype);function n(n){if(e.isBuffer(n))return`Buffer`;let r=typeof n;if(r!==`object`)return r;if(n===null)return`null`;if(n===t)return`global`;if(Array.isArray(n)&&(Symbol.toStringTag===void 0||!(Symbol.toStringTag in n)))return`Array`;if(typeof globalThis==`object`&&globalThis!==null){if(typeof globalThis.location==`object`&&n===globalThis.location)return`Location`;if(typeof globalThis.document==`object`&&n===globalThis.document)return`Document`;if(typeof globalThis.navigator==`object`){if(typeof globalThis.navigator.mimeTypes==`object`&&n===globalThis.navigator.mimeTypes)return`MimeTypeArray`;if(typeof globalThis.navigator.plugins==`object`&&n===globalThis.navigator.plugins)return`PluginArray`}if((typeof globalThis.HTMLElement==`function`||typeof globalThis.HTMLElement==`object`)&&n instanceof globalThis.HTMLElement){if(n.tagName===`BLOCKQUOTE`)return`HTMLQuoteElement`;if(n.tagName===`TD`)return`HTMLTableDataCellElement`;if(n.tagName===`TH`)return`HTMLTableHeaderCellElement`}}let i=Symbol.toStringTag!==void 0&&n[Symbol.toStringTag];if(typeof i==`string`)return i;let a=Object.getPrototypeOf(n);return a===RegExp.prototype?`RegExp`:a===Date.prototype?`Date`:typeof Promise<`u`&&a===Promise.prototype?`Promise`:typeof Set<`u`&&a===Set.prototype?`Set`:typeof Map<`u`&&a===Map.prototype?`Map`:typeof WeakSet<`u`&&a===WeakSet.prototype?`WeakSet`:typeof WeakMap<`u`&&a===WeakMap.prototype?`WeakMap`:typeof DataView<`u`&&a===DataView.prototype?`DataView`:typeof Map<`u`&&a===Object.getPrototypeOf(new Map().entries())?`Map Iterator`:typeof Set<`u`&&a===Object.getPrototypeOf(new Set().entries())?`Set Iterator`:typeof Array.prototype[Symbol.iterator]==`function`&&a===Object.getPrototypeOf([][Symbol.iterator]())?`Array Iterator`:Symbol.iterator!==void 0&&typeof String.prototype[Symbol.iterator]==`function`&&Object.getPrototypeOf(``[Symbol.iterator]())&&a===Object.getPrototypeOf(``[Symbol.iterator]())?`String Iterator`:a===null?`Object`:Object.prototype.toString.call(n).slice(8,-1)}exports.typeDetect=n;
1
+ const require_is_buffer = require('./is-buffer.cjs');
2
+
3
+ //#region src/type-detect.ts
4
+ const globalObject = ((Obj) => {
5
+ if (typeof globalThis === "object") return globalThis;
6
+ Object.defineProperty(Obj, "typeDetectGlobalObject", {
7
+ get() {
8
+ return this;
9
+ },
10
+ configurable: true
11
+ });
12
+ return globalThis;
13
+ })(Object.prototype);
14
+ function typeDetect(obj) {
15
+ if (require_is_buffer.isBuffer(obj)) return "Buffer";
16
+ const typeofObj = typeof obj;
17
+ if (typeofObj !== "object") return typeofObj;
18
+ if (obj === null) return "null";
19
+ if (obj === globalObject) return "global";
20
+ if (Array.isArray(obj) && (Symbol.toStringTag === void 0 || !(Symbol.toStringTag in obj))) return "Array";
21
+ if (typeof globalThis === "object" && globalThis !== null) {
22
+ if (typeof globalThis.location === "object" && obj === globalThis.location) return "Location";
23
+ if (typeof globalThis.document === "object" && obj === globalThis.document) return "Document";
24
+ if (typeof globalThis.navigator === "object") {
25
+ if (typeof globalThis.navigator.mimeTypes === "object" && obj === globalThis.navigator.mimeTypes) return "MimeTypeArray";
26
+ if (typeof globalThis.navigator.plugins === "object" && obj === globalThis.navigator.plugins) return "PluginArray";
27
+ }
28
+ if ((typeof globalThis.HTMLElement === "function" || typeof globalThis.HTMLElement === "object") && obj instanceof globalThis.HTMLElement) {
29
+ if (obj.tagName === "BLOCKQUOTE") return "HTMLQuoteElement";
30
+ if (obj.tagName === "TD") return "HTMLTableDataCellElement";
31
+ if (obj.tagName === "TH") return "HTMLTableHeaderCellElement";
32
+ }
33
+ }
34
+ const stringTag = Symbol.toStringTag !== void 0 && obj[Symbol.toStringTag];
35
+ if (typeof stringTag === "string") return stringTag;
36
+ const objPrototype = Object.getPrototypeOf(obj);
37
+ if (objPrototype === RegExp.prototype) return "RegExp";
38
+ if (objPrototype === Date.prototype) return "Date";
39
+ if (typeof Promise !== "undefined" && objPrototype === Promise.prototype) return "Promise";
40
+ if (typeof Set !== "undefined" && objPrototype === Set.prototype) return "Set";
41
+ if (typeof Map !== "undefined" && objPrototype === Map.prototype) return "Map";
42
+ if (typeof WeakSet !== "undefined" && objPrototype === WeakSet.prototype) return "WeakSet";
43
+ if (typeof WeakMap !== "undefined" && objPrototype === WeakMap.prototype) return "WeakMap";
44
+ if (typeof DataView !== "undefined" && objPrototype === DataView.prototype) return "DataView";
45
+ if (typeof Map !== "undefined" && objPrototype === Object.getPrototypeOf((/* @__PURE__ */ new Map()).entries())) return "Map Iterator";
46
+ if (typeof Set !== "undefined" && objPrototype === Object.getPrototypeOf((/* @__PURE__ */ new Set()).entries())) return "Set Iterator";
47
+ if (typeof Array.prototype[Symbol.iterator] === "function" && objPrototype === Object.getPrototypeOf([][Symbol.iterator]())) return "Array Iterator";
48
+ if (Symbol.iterator !== void 0 && typeof String.prototype[Symbol.iterator] === "function" && Object.getPrototypeOf(""[Symbol.iterator]()) && objPrototype === Object.getPrototypeOf(""[Symbol.iterator]())) return "String Iterator";
49
+ if (objPrototype === null) return "Object";
50
+ return Object.prototype.toString.call(obj).slice(8, -1);
51
+ }
52
+
53
+ //#endregion
54
+ exports.typeDetect = typeDetect;
@@ -1,2 +1,55 @@
1
- import{isBuffer as e}from"./is-buffer.mjs";const t=(e=>(typeof globalThis==`object`||Object.defineProperty(e,`typeDetectGlobalObject`,{get(){return this},configurable:!0}),globalThis))(Object.prototype);function n(n){if(e(n))return`Buffer`;let r=typeof n;if(r!==`object`)return r;if(n===null)return`null`;if(n===t)return`global`;if(Array.isArray(n)&&(Symbol.toStringTag===void 0||!(Symbol.toStringTag in n)))return`Array`;if(typeof globalThis==`object`&&globalThis!==null){if(typeof globalThis.location==`object`&&n===globalThis.location)return`Location`;if(typeof globalThis.document==`object`&&n===globalThis.document)return`Document`;if(typeof globalThis.navigator==`object`){if(typeof globalThis.navigator.mimeTypes==`object`&&n===globalThis.navigator.mimeTypes)return`MimeTypeArray`;if(typeof globalThis.navigator.plugins==`object`&&n===globalThis.navigator.plugins)return`PluginArray`}if((typeof globalThis.HTMLElement==`function`||typeof globalThis.HTMLElement==`object`)&&n instanceof globalThis.HTMLElement){if(n.tagName===`BLOCKQUOTE`)return`HTMLQuoteElement`;if(n.tagName===`TD`)return`HTMLTableDataCellElement`;if(n.tagName===`TH`)return`HTMLTableHeaderCellElement`}}let i=Symbol.toStringTag!==void 0&&n[Symbol.toStringTag];if(typeof i==`string`)return i;let a=Object.getPrototypeOf(n);return a===RegExp.prototype?`RegExp`:a===Date.prototype?`Date`:typeof Promise<`u`&&a===Promise.prototype?`Promise`:typeof Set<`u`&&a===Set.prototype?`Set`:typeof Map<`u`&&a===Map.prototype?`Map`:typeof WeakSet<`u`&&a===WeakSet.prototype?`WeakSet`:typeof WeakMap<`u`&&a===WeakMap.prototype?`WeakMap`:typeof DataView<`u`&&a===DataView.prototype?`DataView`:typeof Map<`u`&&a===Object.getPrototypeOf(new Map().entries())?`Map Iterator`:typeof Set<`u`&&a===Object.getPrototypeOf(new Set().entries())?`Set Iterator`:typeof Array.prototype[Symbol.iterator]==`function`&&a===Object.getPrototypeOf([][Symbol.iterator]())?`Array Iterator`:Symbol.iterator!==void 0&&typeof String.prototype[Symbol.iterator]==`function`&&Object.getPrototypeOf(``[Symbol.iterator]())&&a===Object.getPrototypeOf(``[Symbol.iterator]())?`String Iterator`:a===null?`Object`:Object.prototype.toString.call(n).slice(8,-1)}export{n as typeDetect};
1
+ import { isBuffer } from "./is-buffer.mjs";
2
+
3
+ //#region src/type-detect.ts
4
+ const globalObject = ((Obj) => {
5
+ if (typeof globalThis === "object") return globalThis;
6
+ Object.defineProperty(Obj, "typeDetectGlobalObject", {
7
+ get() {
8
+ return this;
9
+ },
10
+ configurable: true
11
+ });
12
+ return globalThis;
13
+ })(Object.prototype);
14
+ function typeDetect(obj) {
15
+ if (isBuffer(obj)) return "Buffer";
16
+ const typeofObj = typeof obj;
17
+ if (typeofObj !== "object") return typeofObj;
18
+ if (obj === null) return "null";
19
+ if (obj === globalObject) return "global";
20
+ if (Array.isArray(obj) && (Symbol.toStringTag === void 0 || !(Symbol.toStringTag in obj))) return "Array";
21
+ if (typeof globalThis === "object" && globalThis !== null) {
22
+ if (typeof globalThis.location === "object" && obj === globalThis.location) return "Location";
23
+ if (typeof globalThis.document === "object" && obj === globalThis.document) return "Document";
24
+ if (typeof globalThis.navigator === "object") {
25
+ if (typeof globalThis.navigator.mimeTypes === "object" && obj === globalThis.navigator.mimeTypes) return "MimeTypeArray";
26
+ if (typeof globalThis.navigator.plugins === "object" && obj === globalThis.navigator.plugins) return "PluginArray";
27
+ }
28
+ if ((typeof globalThis.HTMLElement === "function" || typeof globalThis.HTMLElement === "object") && obj instanceof globalThis.HTMLElement) {
29
+ if (obj.tagName === "BLOCKQUOTE") return "HTMLQuoteElement";
30
+ if (obj.tagName === "TD") return "HTMLTableDataCellElement";
31
+ if (obj.tagName === "TH") return "HTMLTableHeaderCellElement";
32
+ }
33
+ }
34
+ const stringTag = Symbol.toStringTag !== void 0 && obj[Symbol.toStringTag];
35
+ if (typeof stringTag === "string") return stringTag;
36
+ const objPrototype = Object.getPrototypeOf(obj);
37
+ if (objPrototype === RegExp.prototype) return "RegExp";
38
+ if (objPrototype === Date.prototype) return "Date";
39
+ if (typeof Promise !== "undefined" && objPrototype === Promise.prototype) return "Promise";
40
+ if (typeof Set !== "undefined" && objPrototype === Set.prototype) return "Set";
41
+ if (typeof Map !== "undefined" && objPrototype === Map.prototype) return "Map";
42
+ if (typeof WeakSet !== "undefined" && objPrototype === WeakSet.prototype) return "WeakSet";
43
+ if (typeof WeakMap !== "undefined" && objPrototype === WeakMap.prototype) return "WeakMap";
44
+ if (typeof DataView !== "undefined" && objPrototype === DataView.prototype) return "DataView";
45
+ if (typeof Map !== "undefined" && objPrototype === Object.getPrototypeOf((/* @__PURE__ */ new Map()).entries())) return "Map Iterator";
46
+ if (typeof Set !== "undefined" && objPrototype === Object.getPrototypeOf((/* @__PURE__ */ new Set()).entries())) return "Set Iterator";
47
+ if (typeof Array.prototype[Symbol.iterator] === "function" && objPrototype === Object.getPrototypeOf([][Symbol.iterator]())) return "Array Iterator";
48
+ if (Symbol.iterator !== void 0 && typeof String.prototype[Symbol.iterator] === "function" && Object.getPrototypeOf(""[Symbol.iterator]()) && objPrototype === Object.getPrototypeOf(""[Symbol.iterator]())) return "String Iterator";
49
+ if (objPrototype === null) return "Object";
50
+ return Object.prototype.toString.call(obj).slice(8, -1);
51
+ }
52
+
53
+ //#endregion
54
+ export { typeDetect };
2
55
  //# sourceMappingURL=type-detect.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"type-detect.mjs","names":[],"sources":["../src/type-detect.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isBuffer } from \"./is-buffer\";\n\nconst globalObject = (Obj => {\n if (typeof globalThis === \"object\") {\n return globalThis;\n }\n Object.defineProperty(Obj, \"typeDetectGlobalObject\", {\n get() {\n return this;\n },\n configurable: true\n });\n\n // // biome-ignore lint/correctness/noUndeclaredVariables: <explanation>\n // const global = typeDetectGlobalObject;\n\n // // biome-ignore lint/performance/noDelete: <explanation>\n // delete Obj.typeDetectGlobalObject;\n return globalThis;\n})(Object.prototype);\n\nexport function typeDetect(obj: unknown): string {\n // NOTE: isBuffer must execute before type-detect,\n // because type-detect returns 'Uint8Array'.\n if (isBuffer(obj)) {\n return \"Buffer\";\n }\n\n const typeofObj = typeof obj;\n if (typeofObj !== \"object\") {\n return typeofObj;\n }\n\n if (obj === null) {\n return \"null\";\n }\n\n if (obj === globalObject) {\n return \"global\";\n }\n\n if (\n Array.isArray(obj) &&\n (Symbol.toStringTag === undefined || !(Symbol.toStringTag in obj))\n ) {\n return \"Array\";\n }\n\n // https://html.spec.whatwg.org/multipage/browsers.html#location\n if (typeof globalThis === \"object\" && globalThis !== null) {\n if (\n typeof (globalThis as any).location === \"object\" &&\n obj === (globalThis as any).location\n ) {\n return \"Location\";\n }\n\n // https://html.spec.whatwg.org/#document\n if (\n typeof (globalThis as any).document === \"object\" &&\n obj === (globalThis as any).document\n ) {\n return \"Document\";\n }\n\n // https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray\n if (typeof (globalThis as any).navigator === \"object\") {\n if (\n typeof (globalThis as any).navigator.mimeTypes === \"object\" &&\n obj === (globalThis as any).navigator.mimeTypes\n ) {\n return \"MimeTypeArray\";\n }\n\n // https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray\n if (\n typeof (globalThis as any).navigator.plugins === \"object\" &&\n obj === (globalThis as any).navigator.plugins\n ) {\n return \"PluginArray\";\n }\n }\n\n // https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray\n if (\n (typeof (globalThis as any).HTMLElement === \"function\" ||\n typeof (globalThis as any).HTMLElement === \"object\") &&\n obj instanceof (globalThis as any).HTMLElement\n ) {\n if ((obj as any).tagName === \"BLOCKQUOTE\") {\n return \"HTMLQuoteElement\";\n }\n\n // https://html.spec.whatwg.org/#htmltabledatacellelement\n if ((obj as any).tagName === \"TD\") {\n return \"HTMLTableDataCellElement\";\n }\n\n // https://html.spec.whatwg.org/#htmltableheadercellelement\n if ((obj as any).tagName === \"TH\") {\n return \"HTMLTableHeaderCellElement\";\n }\n }\n }\n\n const stringTag =\n Symbol.toStringTag !== undefined && (obj as any)[Symbol.toStringTag];\n if (typeof stringTag === \"string\") {\n return stringTag;\n }\n\n const objPrototype = Object.getPrototypeOf(obj);\n if (objPrototype === RegExp.prototype) {\n return \"RegExp\";\n }\n\n if (objPrototype === Date.prototype) {\n return \"Date\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag\n if (typeof Promise !== \"undefined\" && objPrototype === Promise.prototype) {\n return \"Promise\";\n }\n\n if (typeof Set !== \"undefined\" && objPrototype === Set.prototype) {\n return \"Set\";\n }\n\n if (typeof Map !== \"undefined\" && objPrototype === Map.prototype) {\n return \"Map\";\n }\n\n if (typeof WeakSet !== \"undefined\" && objPrototype === WeakSet.prototype) {\n return \"WeakSet\";\n }\n\n if (typeof WeakMap !== \"undefined\" && objPrototype === WeakMap.prototype) {\n return \"WeakMap\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag\n if (typeof DataView !== \"undefined\" && objPrototype === DataView.prototype) {\n return \"DataView\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag\n if (\n typeof Map !== \"undefined\" &&\n objPrototype === Object.getPrototypeOf(new Map().entries())\n ) {\n return \"Map Iterator\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag\n if (\n typeof Set !== \"undefined\" &&\n objPrototype === Object.getPrototypeOf(new Set().entries())\n ) {\n return \"Set Iterator\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag\n if (\n typeof Array.prototype[Symbol.iterator] === \"function\" &&\n objPrototype === Object.getPrototypeOf([][Symbol.iterator]())\n ) {\n return \"Array Iterator\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag\n if (\n Symbol.iterator !== undefined &&\n typeof String.prototype[Symbol.iterator] === \"function\" &&\n Object.getPrototypeOf(\"\"[Symbol.iterator]()) &&\n objPrototype === Object.getPrototypeOf(\"\"[Symbol.iterator]())\n ) {\n return \"String Iterator\";\n }\n\n if (objPrototype === null) {\n return \"Object\";\n }\n\n return Object.prototype.toString.call(obj).slice(8, -1);\n}\n"],"mappings":"2CAoBA,MAAM,GAAgB,IAChB,OAAO,YAAe,UAG1B,OAAO,eAAe,EAAK,yBAA0B,CACnD,KAAM,CACJ,OAAO,MAET,aAAc,GACf,CAAC,CAPO,aAeR,OAAO,UAAU,CAEpB,SAAgB,EAAW,EAAsB,CAG/C,GAAI,EAAS,EAAI,CACf,MAAO,SAGT,IAAM,EAAY,OAAO,EACzB,GAAI,IAAc,SAChB,OAAO,EAGT,GAAI,IAAQ,KACV,MAAO,OAGT,GAAI,IAAQ,EACV,MAAO,SAGT,GACE,MAAM,QAAQ,EAAI,GACjB,OAAO,cAAgB,IAAA,IAAa,EAAE,OAAO,eAAe,IAE7D,MAAO,QAIT,GAAI,OAAO,YAAe,UAAY,aAAe,KAAM,CACzD,GACE,OAAQ,WAAmB,UAAa,UACxC,IAAS,WAAmB,SAE5B,MAAO,WAIT,GACE,OAAQ,WAAmB,UAAa,UACxC,IAAS,WAAmB,SAE5B,MAAO,WAIT,GAAI,OAAQ,WAAmB,WAAc,SAAU,CACrD,GACE,OAAQ,WAAmB,UAAU,WAAc,UACnD,IAAS,WAAmB,UAAU,UAEtC,MAAO,gBAIT,GACE,OAAQ,WAAmB,UAAU,SAAY,UACjD,IAAS,WAAmB,UAAU,QAEtC,MAAO,cAKX,IACG,OAAQ,WAAmB,aAAgB,YAC1C,OAAQ,WAAmB,aAAgB,WAC7C,aAAgB,WAAmB,YACnC,CACA,GAAK,EAAY,UAAY,aAC3B,MAAO,mBAIT,GAAK,EAAY,UAAY,KAC3B,MAAO,2BAIT,GAAK,EAAY,UAAY,KAC3B,MAAO,8BAKb,IAAM,EACJ,OAAO,cAAgB,IAAA,IAAc,EAAY,OAAO,aAC1D,GAAI,OAAO,GAAc,SACvB,OAAO,EAGT,IAAM,EAAe,OAAO,eAAe,EAAI,CAyE/C,OAxEI,IAAiB,OAAO,UACnB,SAGL,IAAiB,KAAK,UACjB,OAIL,OAAO,QAAY,KAAe,IAAiB,QAAQ,UACtD,UAGL,OAAO,IAAQ,KAAe,IAAiB,IAAI,UAC9C,MAGL,OAAO,IAAQ,KAAe,IAAiB,IAAI,UAC9C,MAGL,OAAO,QAAY,KAAe,IAAiB,QAAQ,UACtD,UAGL,OAAO,QAAY,KAAe,IAAiB,QAAQ,UACtD,UAIL,OAAO,SAAa,KAAe,IAAiB,SAAS,UACxD,WAKP,OAAO,IAAQ,KACf,IAAiB,OAAO,eAAe,IAAI,KAAK,CAAC,SAAS,CAAC,CAEpD,eAKP,OAAO,IAAQ,KACf,IAAiB,OAAO,eAAe,IAAI,KAAK,CAAC,SAAS,CAAC,CAEpD,eAKP,OAAO,MAAM,UAAU,OAAO,WAAc,YAC5C,IAAiB,OAAO,eAAe,EAAE,CAAC,OAAO,WAAW,CAAC,CAEtD,iBAKP,OAAO,WAAa,IAAA,IACpB,OAAO,OAAO,UAAU,OAAO,WAAc,YAC7C,OAAO,eAAe,GAAG,OAAO,WAAW,CAAC,EAC5C,IAAiB,OAAO,eAAe,GAAG,OAAO,WAAW,CAAC,CAEtD,kBAGL,IAAiB,KACZ,SAGF,OAAO,UAAU,SAAS,KAAK,EAAI,CAAC,MAAM,EAAG,GAAG"}
1
+ {"version":3,"file":"type-detect.mjs","names":[],"sources":["../src/type-detect.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Stryke\n\n This code was released as part of the Stryke project. Stryke\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/stryke.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/stryke\n Documentation: https://docs.stormsoftware.com/projects/stryke\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { isBuffer } from \"./is-buffer\";\n\nconst globalObject = (Obj => {\n if (typeof globalThis === \"object\") {\n return globalThis;\n }\n Object.defineProperty(Obj, \"typeDetectGlobalObject\", {\n get() {\n return this;\n },\n configurable: true\n });\n\n // // biome-ignore lint/correctness/noUndeclaredVariables: <explanation>\n // const global = typeDetectGlobalObject;\n\n // // biome-ignore lint/performance/noDelete: <explanation>\n // delete Obj.typeDetectGlobalObject;\n return globalThis;\n})(Object.prototype);\n\nexport function typeDetect(obj: unknown): string {\n // NOTE: isBuffer must execute before type-detect,\n // because type-detect returns 'Uint8Array'.\n if (isBuffer(obj)) {\n return \"Buffer\";\n }\n\n const typeofObj = typeof obj;\n if (typeofObj !== \"object\") {\n return typeofObj;\n }\n\n if (obj === null) {\n return \"null\";\n }\n\n if (obj === globalObject) {\n return \"global\";\n }\n\n if (\n Array.isArray(obj) &&\n (Symbol.toStringTag === undefined || !(Symbol.toStringTag in obj))\n ) {\n return \"Array\";\n }\n\n // https://html.spec.whatwg.org/multipage/browsers.html#location\n if (typeof globalThis === \"object\" && globalThis !== null) {\n if (\n typeof (globalThis as any).location === \"object\" &&\n obj === (globalThis as any).location\n ) {\n return \"Location\";\n }\n\n // https://html.spec.whatwg.org/#document\n if (\n typeof (globalThis as any).document === \"object\" &&\n obj === (globalThis as any).document\n ) {\n return \"Document\";\n }\n\n // https://html.spec.whatwg.org/multipage/webappapis.html#mimetypearray\n if (typeof (globalThis as any).navigator === \"object\") {\n if (\n typeof (globalThis as any).navigator.mimeTypes === \"object\" &&\n obj === (globalThis as any).navigator.mimeTypes\n ) {\n return \"MimeTypeArray\";\n }\n\n // https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray\n if (\n typeof (globalThis as any).navigator.plugins === \"object\" &&\n obj === (globalThis as any).navigator.plugins\n ) {\n return \"PluginArray\";\n }\n }\n\n // https://html.spec.whatwg.org/multipage/webappapis.html#pluginarray\n if (\n (typeof (globalThis as any).HTMLElement === \"function\" ||\n typeof (globalThis as any).HTMLElement === \"object\") &&\n obj instanceof (globalThis as any).HTMLElement\n ) {\n if ((obj as any).tagName === \"BLOCKQUOTE\") {\n return \"HTMLQuoteElement\";\n }\n\n // https://html.spec.whatwg.org/#htmltabledatacellelement\n if ((obj as any).tagName === \"TD\") {\n return \"HTMLTableDataCellElement\";\n }\n\n // https://html.spec.whatwg.org/#htmltableheadercellelement\n if ((obj as any).tagName === \"TH\") {\n return \"HTMLTableHeaderCellElement\";\n }\n }\n }\n\n const stringTag =\n Symbol.toStringTag !== undefined && (obj as any)[Symbol.toStringTag];\n if (typeof stringTag === \"string\") {\n return stringTag;\n }\n\n const objPrototype = Object.getPrototypeOf(obj);\n if (objPrototype === RegExp.prototype) {\n return \"RegExp\";\n }\n\n if (objPrototype === Date.prototype) {\n return \"Date\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-promise.prototype-@@tostringtag\n if (typeof Promise !== \"undefined\" && objPrototype === Promise.prototype) {\n return \"Promise\";\n }\n\n if (typeof Set !== \"undefined\" && objPrototype === Set.prototype) {\n return \"Set\";\n }\n\n if (typeof Map !== \"undefined\" && objPrototype === Map.prototype) {\n return \"Map\";\n }\n\n if (typeof WeakSet !== \"undefined\" && objPrototype === WeakSet.prototype) {\n return \"WeakSet\";\n }\n\n if (typeof WeakMap !== \"undefined\" && objPrototype === WeakMap.prototype) {\n return \"WeakMap\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-dataview.prototype-@@tostringtag\n if (typeof DataView !== \"undefined\" && objPrototype === DataView.prototype) {\n return \"DataView\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%mapiteratorprototype%-@@tostringtag\n if (\n typeof Map !== \"undefined\" &&\n objPrototype === Object.getPrototypeOf(new Map().entries())\n ) {\n return \"Map Iterator\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%setiteratorprototype%-@@tostringtag\n if (\n typeof Set !== \"undefined\" &&\n objPrototype === Object.getPrototypeOf(new Set().entries())\n ) {\n return \"Set Iterator\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%arrayiteratorprototype%-@@tostringtag\n if (\n typeof Array.prototype[Symbol.iterator] === \"function\" &&\n objPrototype === Object.getPrototypeOf([][Symbol.iterator]())\n ) {\n return \"Array Iterator\";\n }\n\n // http://www.ecma-international.org/ecma-262/6.0/index.html#sec-%stringiteratorprototype%-@@tostringtag\n if (\n Symbol.iterator !== undefined &&\n typeof String.prototype[Symbol.iterator] === \"function\" &&\n Object.getPrototypeOf(\"\"[Symbol.iterator]()) &&\n objPrototype === Object.getPrototypeOf(\"\"[Symbol.iterator]())\n ) {\n return \"String Iterator\";\n }\n\n if (objPrototype === null) {\n return \"Object\";\n }\n\n return Object.prototype.toString.call(obj).slice(8, -1);\n}\n"],"mappings":";;;AAoBA,MAAM,iBAAgB,QAAO;AAC3B,KAAI,OAAO,eAAe,SACxB,QAAO;AAET,QAAO,eAAe,KAAK,0BAA0B;EACnD,MAAM;AACJ,UAAO;;EAET,cAAc;EACf,CAAC;AAOF,QAAO;GACN,OAAO,UAAU;AAEpB,SAAgB,WAAW,KAAsB;AAG/C,KAAI,SAAS,IAAI,CACf,QAAO;CAGT,MAAM,YAAY,OAAO;AACzB,KAAI,cAAc,SAChB,QAAO;AAGT,KAAI,QAAQ,KACV,QAAO;AAGT,KAAI,QAAQ,aACV,QAAO;AAGT,KACE,MAAM,QAAQ,IAAI,KACjB,OAAO,gBAAgB,UAAa,EAAE,OAAO,eAAe,MAE7D,QAAO;AAIT,KAAI,OAAO,eAAe,YAAY,eAAe,MAAM;AACzD,MACE,OAAQ,WAAmB,aAAa,YACxC,QAAS,WAAmB,SAE5B,QAAO;AAIT,MACE,OAAQ,WAAmB,aAAa,YACxC,QAAS,WAAmB,SAE5B,QAAO;AAIT,MAAI,OAAQ,WAAmB,cAAc,UAAU;AACrD,OACE,OAAQ,WAAmB,UAAU,cAAc,YACnD,QAAS,WAAmB,UAAU,UAEtC,QAAO;AAIT,OACE,OAAQ,WAAmB,UAAU,YAAY,YACjD,QAAS,WAAmB,UAAU,QAEtC,QAAO;;AAKX,OACG,OAAQ,WAAmB,gBAAgB,cAC1C,OAAQ,WAAmB,gBAAgB,aAC7C,eAAgB,WAAmB,aACnC;AACA,OAAK,IAAY,YAAY,aAC3B,QAAO;AAIT,OAAK,IAAY,YAAY,KAC3B,QAAO;AAIT,OAAK,IAAY,YAAY,KAC3B,QAAO;;;CAKb,MAAM,YACJ,OAAO,gBAAgB,UAAc,IAAY,OAAO;AAC1D,KAAI,OAAO,cAAc,SACvB,QAAO;CAGT,MAAM,eAAe,OAAO,eAAe,IAAI;AAC/C,KAAI,iBAAiB,OAAO,UAC1B,QAAO;AAGT,KAAI,iBAAiB,KAAK,UACxB,QAAO;AAIT,KAAI,OAAO,YAAY,eAAe,iBAAiB,QAAQ,UAC7D,QAAO;AAGT,KAAI,OAAO,QAAQ,eAAe,iBAAiB,IAAI,UACrD,QAAO;AAGT,KAAI,OAAO,QAAQ,eAAe,iBAAiB,IAAI,UACrD,QAAO;AAGT,KAAI,OAAO,YAAY,eAAe,iBAAiB,QAAQ,UAC7D,QAAO;AAGT,KAAI,OAAO,YAAY,eAAe,iBAAiB,QAAQ,UAC7D,QAAO;AAIT,KAAI,OAAO,aAAa,eAAe,iBAAiB,SAAS,UAC/D,QAAO;AAIT,KACE,OAAO,QAAQ,eACf,iBAAiB,OAAO,gCAAe,IAAI,KAAK,EAAC,SAAS,CAAC,CAE3D,QAAO;AAIT,KACE,OAAO,QAAQ,eACf,iBAAiB,OAAO,gCAAe,IAAI,KAAK,EAAC,SAAS,CAAC,CAE3D,QAAO;AAIT,KACE,OAAO,MAAM,UAAU,OAAO,cAAc,cAC5C,iBAAiB,OAAO,eAAe,EAAE,CAAC,OAAO,WAAW,CAAC,CAE7D,QAAO;AAIT,KACE,OAAO,aAAa,UACpB,OAAO,OAAO,UAAU,OAAO,cAAc,cAC7C,OAAO,eAAe,GAAG,OAAO,WAAW,CAAC,IAC5C,iBAAiB,OAAO,eAAe,GAAG,OAAO,WAAW,CAAC,CAE7D,QAAO;AAGT,KAAI,iBAAiB,KACnB,QAAO;AAGT,QAAO,OAAO,UAAU,SAAS,KAAK,IAAI,CAAC,MAAM,GAAG,GAAG"}
@@ -1 +1,6 @@
1
- const e=``;exports.EMPTY_STRING=``;
1
+
2
+ //#region ../types/src/base.ts
3
+ const EMPTY_STRING = "";
4
+
5
+ //#endregion
6
+ exports.EMPTY_STRING = EMPTY_STRING;
@@ -1,2 +1,6 @@
1
- const e=``;export{e as EMPTY_STRING};
1
+ //#region ../types/src/base.ts
2
+ const EMPTY_STRING = "";
3
+
4
+ //#endregion
5
+ export { EMPTY_STRING };
2
6
  //# sourceMappingURL=base.mjs.map