@stryke/type-checks 0.5.18 → 0.5.20

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
package/CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
2
 
3
3
  # Changelog for Stryke - Type Checks
4
4
 
5
+ ## [0.5.19](https://github.com/storm-software/stryke/releases/tag/type-checks%400.5.19) (01/16/2026)
6
+
7
+ ### Updated Dependencies
8
+
9
+ - Updated **types** to **v0.10.33**
10
+
11
+ ## [0.5.18](https://github.com/storm-software/stryke/releases/tag/type-checks%400.5.18) (01/16/2026)
12
+
13
+ ### Updated Dependencies
14
+
15
+ - Updated **types** to **v0.10.32**
16
+
5
17
  ## [0.5.17](https://github.com/storm-software/stryke/releases/tag/type-checks%400.5.17) (01/15/2026)
6
18
 
7
19
  ### Updated Dependencies
@@ -1 +1,15 @@
1
- const e=e=>e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e);exports.getObjectTag=e;
1
+
2
+ //#region src/get-object-tag.ts
3
+ /**
4
+ * Gets the `toStringTag` of `obj`.
5
+ *
6
+ * @param value - The obj to query.
7
+ * @returns Returns the `toStringTag`.
8
+ */
9
+ const getObjectTag = (value) => {
10
+ if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
11
+ return Object.prototype.toString.call(value);
12
+ };
13
+
14
+ //#endregion
15
+ exports.getObjectTag = getObjectTag;
@@ -1,2 +1,15 @@
1
- const e=e=>e==null?e===void 0?`[object Undefined]`:`[object Null]`:Object.prototype.toString.call(e);export{e as getObjectTag};
1
+ //#region src/get-object-tag.ts
2
+ /**
3
+ * Gets the `toStringTag` of `obj`.
4
+ *
5
+ * @param value - The obj to query.
6
+ * @returns Returns the `toStringTag`.
7
+ */
8
+ const getObjectTag = (value) => {
9
+ if (value == null) return value === void 0 ? "[object Undefined]" : "[object Null]";
10
+ return Object.prototype.toString.call(value);
11
+ };
12
+
13
+ //#endregion
14
+ export { getObjectTag };
2
15
  //# sourceMappingURL=get-object-tag.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-object-tag.mjs","names":[],"sources":["../src/get-object-tag.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\n/**\n * Gets the `toStringTag` of `obj`.\n *\n * @param value - The obj to query.\n * @returns Returns the `toStringTag`.\n */\nexport const getObjectTag = (value: unknown): string => {\n if (value == null) {\n return value === undefined ? \"[object Undefined]\" : \"[object Null]\";\n }\n return Object.prototype.toString.call(value);\n};\n"],"mappings":"AAwBA,MAAa,EAAgB,GACvB,GAAS,KACJ,IAAU,IAAA,GAAY,qBAAuB,gBAE/C,OAAO,UAAU,SAAS,KAAK,EAAM"}
1
+ {"version":3,"file":"get-object-tag.mjs","names":[],"sources":["../src/get-object-tag.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\n/**\n * Gets the `toStringTag` of `obj`.\n *\n * @param value - The obj to query.\n * @returns Returns the `toStringTag`.\n */\nexport const getObjectTag = (value: unknown): string => {\n if (value == null) {\n return value === undefined ? \"[object Undefined]\" : \"[object Null]\";\n }\n return Object.prototype.toString.call(value);\n};\n"],"mappings":";;;;;;;AAwBA,MAAa,gBAAgB,UAA2B;AACtD,KAAI,SAAS,KACX,QAAO,UAAU,SAAY,uBAAuB;AAEtD,QAAO,OAAO,UAAU,SAAS,KAAK,MAAM"}
package/dist/index.cjs CHANGED
@@ -1 +1,100 @@
1
- const e=require(`./get-object-tag.cjs`),t=require(`./is-plain-object.cjs`),n=require(`./is-date.cjs`),r=require(`./is-function.cjs`),i=require(`./is-null.cjs`),a=require(`./is-number.cjs`),o=require(`./is-symbol.cjs`),s=require(`./is-undefined.cjs`),c=require(`./is-empty.cjs`),l=require(`./is-object.cjs`),u=require(`./is-array-like.cjs`),d=require(`./is-async-iterable.cjs`),f=require(`./is-bigint.cjs`),p=require(`./is-boolean.cjs`),m=require(`./is-buffer.cjs`),h=require(`./type-detect.cjs`),g=require(`./is-collection.cjs`),_=require(`./is-deep-key.cjs`),v=require(`./is-empty-object.cjs`),y=require(`./is-string.cjs`),b=require(`./is-empty-string.cjs`),x=require(`./is-equal.cjs`),S=require(`./is-error.cjs`),C=require(`./is-set.cjs`),w=require(`./is-set-object.cjs`),T=require(`./is-set-string.cjs`),E=require(`./is-file-result.cjs`),D=require(`./is-float.cjs`),O=require(`./is-integer.cjs`),k=require(`./is-react-element.cjs`),A=require(`./is-mergeable-object.cjs`),j=require(`./is-not-empty.cjs`),M=require(`./is-object-index.cjs`),N=require(`./is-primitive.cjs`),P=require(`./is-promise.cjs`),F=require(`./is-ref.cjs`),I=require(`./is-regexp.cjs`),L=require(`./is-select-option.cjs`),R=require(`./is-set-array.cjs`),z=require(`./is-typed.cjs`),B=require(`./is-typed-array.cjs`),V=require(`./is-url.cjs`),H=require(`./property-exists.cjs`);exports.getObjectTag=e.getObjectTag,exports.isAnyNumber=a.isAnyNumber,exports.isArrayLike=u.isArrayLike,exports.isAsyncFunction=r.isAsyncFunction,exports.isAsyncIterable=d.isAsyncIterable,exports.isBigInt=f.isBigInt,exports.isBoolean=p.isBoolean,exports.isBuffer=m.isBuffer,exports.isBufferExists=m.isBufferExists,exports.isClass=l.isClass,exports.isCollection=g.isCollection,exports.isConventionalClass=l.isConventionalClass,exports.isDate=n.isDate,exports.isDeepKey=_.isDeepKey,exports.isEmpty=c.isEmpty,exports.isEmptyAnything=c.isEmptyAnything,exports.isEmptyObject=v.isEmptyObject,exports.isEmptyOrEmptyObject=v.isEmptyOrEmptyObject,exports.isEmptyString=b.isEmptyString,exports.isEqual=x.isEqual,exports.isError=S.isError,exports.isFileResult=E.isFileResult,exports.isFloat=D.isFloat,exports.isFunction=r.isFunction,exports.isInteger=O.isInteger,exports.isKeyOrDeepKey=_.isKeyOrDeepKey,exports.isMergeableObject=A.isMergeableObject,exports.isNativeClass=l.isNativeClass,exports.isNotEmpty=j.isNotEmpty,exports.isNull=i.isNull,exports.isNumber=a.isNumber,exports.isObject=l.isObject,exports.isObjectIndex=M.isObjectIndex,exports.isObjectLike=t.isObjectLike,exports.isPlainObject=t.isPlainObject,exports.isPrimitive=N.isPrimitive,exports.isPromise=P.isPromise,exports.isPromiseLike=P.isPromiseLike,exports.isReactElement=k.isReactElement,exports.isRef=F.isRef,exports.isRegExp=I.isRegExp,exports.isSelectOption=L.isSelectOption,exports.isSet=C.isSet,exports.isSetArray=R.isSetArray,exports.isSetObject=w.isSetObject,exports.isSetString=T.isSetString,exports.isString=y.isString,exports.isSymbol=o.isSymbol,exports.isSyncFunction=r.isSyncFunction,exports.isTyped=z.isTyped,exports.isTypedArray=B.isTypedArray,exports.isURL=V.isURL,exports.isUndefined=s.isUndefined,exports.propertyExists=H.propertyExists,exports.propertyUnsafe=H.propertyUnsafe,exports.typeDetect=h.typeDetect;
1
+ const require_get_object_tag = require('./get-object-tag.cjs');
2
+ const require_is_plain_object = require('./is-plain-object.cjs');
3
+ const require_is_date = require('./is-date.cjs');
4
+ const require_is_function = require('./is-function.cjs');
5
+ const require_is_null = require('./is-null.cjs');
6
+ const require_is_number = require('./is-number.cjs');
7
+ const require_is_symbol = require('./is-symbol.cjs');
8
+ const require_is_undefined = require('./is-undefined.cjs');
9
+ const require_is_empty = require('./is-empty.cjs');
10
+ const require_is_object = require('./is-object.cjs');
11
+ const require_is_array_like = require('./is-array-like.cjs');
12
+ const require_is_async_iterable = require('./is-async-iterable.cjs');
13
+ const require_is_bigint = require('./is-bigint.cjs');
14
+ const require_is_boolean = require('./is-boolean.cjs');
15
+ const require_is_buffer = require('./is-buffer.cjs');
16
+ const require_type_detect = require('./type-detect.cjs');
17
+ const require_is_collection = require('./is-collection.cjs');
18
+ const require_is_deep_key = require('./is-deep-key.cjs');
19
+ const require_is_empty_object = require('./is-empty-object.cjs');
20
+ const require_is_string = require('./is-string.cjs');
21
+ const require_is_empty_string = require('./is-empty-string.cjs');
22
+ const require_is_equal = require('./is-equal.cjs');
23
+ const require_is_error = require('./is-error.cjs');
24
+ const require_is_set = require('./is-set.cjs');
25
+ const require_is_set_object = require('./is-set-object.cjs');
26
+ const require_is_set_string = require('./is-set-string.cjs');
27
+ const require_is_file_result = require('./is-file-result.cjs');
28
+ const require_is_float = require('./is-float.cjs');
29
+ const require_is_integer = require('./is-integer.cjs');
30
+ const require_is_react_element = require('./is-react-element.cjs');
31
+ const require_is_mergeable_object = require('./is-mergeable-object.cjs');
32
+ const require_is_not_empty = require('./is-not-empty.cjs');
33
+ const require_is_object_index = require('./is-object-index.cjs');
34
+ const require_is_primitive = require('./is-primitive.cjs');
35
+ const require_is_promise = require('./is-promise.cjs');
36
+ const require_is_ref = require('./is-ref.cjs');
37
+ const require_is_regexp = require('./is-regexp.cjs');
38
+ const require_is_select_option = require('./is-select-option.cjs');
39
+ const require_is_set_array = require('./is-set-array.cjs');
40
+ const require_is_typed = require('./is-typed.cjs');
41
+ const require_is_typed_array = require('./is-typed-array.cjs');
42
+ const require_is_url = require('./is-url.cjs');
43
+ const require_property_exists = require('./property-exists.cjs');
44
+
45
+ exports.getObjectTag = require_get_object_tag.getObjectTag;
46
+ exports.isAnyNumber = require_is_number.isAnyNumber;
47
+ exports.isArrayLike = require_is_array_like.isArrayLike;
48
+ exports.isAsyncFunction = require_is_function.isAsyncFunction;
49
+ exports.isAsyncIterable = require_is_async_iterable.isAsyncIterable;
50
+ exports.isBigInt = require_is_bigint.isBigInt;
51
+ exports.isBoolean = require_is_boolean.isBoolean;
52
+ exports.isBuffer = require_is_buffer.isBuffer;
53
+ exports.isBufferExists = require_is_buffer.isBufferExists;
54
+ exports.isClass = require_is_object.isClass;
55
+ exports.isCollection = require_is_collection.isCollection;
56
+ exports.isConventionalClass = require_is_object.isConventionalClass;
57
+ exports.isDate = require_is_date.isDate;
58
+ exports.isDeepKey = require_is_deep_key.isDeepKey;
59
+ exports.isEmpty = require_is_empty.isEmpty;
60
+ exports.isEmptyAnything = require_is_empty.isEmptyAnything;
61
+ exports.isEmptyObject = require_is_empty_object.isEmptyObject;
62
+ exports.isEmptyOrEmptyObject = require_is_empty_object.isEmptyOrEmptyObject;
63
+ exports.isEmptyString = require_is_empty_string.isEmptyString;
64
+ exports.isEqual = require_is_equal.isEqual;
65
+ exports.isError = require_is_error.isError;
66
+ exports.isFileResult = require_is_file_result.isFileResult;
67
+ exports.isFloat = require_is_float.isFloat;
68
+ exports.isFunction = require_is_function.isFunction;
69
+ exports.isInteger = require_is_integer.isInteger;
70
+ exports.isKeyOrDeepKey = require_is_deep_key.isKeyOrDeepKey;
71
+ exports.isMergeableObject = require_is_mergeable_object.isMergeableObject;
72
+ exports.isNativeClass = require_is_object.isNativeClass;
73
+ exports.isNotEmpty = require_is_not_empty.isNotEmpty;
74
+ exports.isNull = require_is_null.isNull;
75
+ exports.isNumber = require_is_number.isNumber;
76
+ exports.isObject = require_is_object.isObject;
77
+ exports.isObjectIndex = require_is_object_index.isObjectIndex;
78
+ exports.isObjectLike = require_is_plain_object.isObjectLike;
79
+ exports.isPlainObject = require_is_plain_object.isPlainObject;
80
+ exports.isPrimitive = require_is_primitive.isPrimitive;
81
+ exports.isPromise = require_is_promise.isPromise;
82
+ exports.isPromiseLike = require_is_promise.isPromiseLike;
83
+ exports.isReactElement = require_is_react_element.isReactElement;
84
+ exports.isRef = require_is_ref.isRef;
85
+ exports.isRegExp = require_is_regexp.isRegExp;
86
+ exports.isSelectOption = require_is_select_option.isSelectOption;
87
+ exports.isSet = require_is_set.isSet;
88
+ exports.isSetArray = require_is_set_array.isSetArray;
89
+ exports.isSetObject = require_is_set_object.isSetObject;
90
+ exports.isSetString = require_is_set_string.isSetString;
91
+ exports.isString = require_is_string.isString;
92
+ exports.isSymbol = require_is_symbol.isSymbol;
93
+ exports.isSyncFunction = require_is_function.isSyncFunction;
94
+ exports.isTyped = require_is_typed.isTyped;
95
+ exports.isTypedArray = require_is_typed_array.isTypedArray;
96
+ exports.isURL = require_is_url.isURL;
97
+ exports.isUndefined = require_is_undefined.isUndefined;
98
+ exports.propertyExists = require_property_exists.propertyExists;
99
+ exports.propertyUnsafe = require_property_exists.propertyUnsafe;
100
+ exports.typeDetect = require_type_detect.typeDetect;
package/dist/index.mjs CHANGED
@@ -1 +1,45 @@
1
- import{getObjectTag as e}from"./get-object-tag.mjs";import{isObjectLike as t,isPlainObject as n}from"./is-plain-object.mjs";import{isDate as r}from"./is-date.mjs";import{isAsyncFunction as i,isFunction as a,isSyncFunction as o}from"./is-function.mjs";import{isNull as s}from"./is-null.mjs";import{isAnyNumber as c,isNumber as l}from"./is-number.mjs";import{isSymbol as u}from"./is-symbol.mjs";import{isUndefined as d}from"./is-undefined.mjs";import{isEmpty as f,isEmptyAnything as p}from"./is-empty.mjs";import{isClass as m,isConventionalClass as h,isNativeClass as g,isObject as _}from"./is-object.mjs";import{isArrayLike as v}from"./is-array-like.mjs";import{isAsyncIterable as y}from"./is-async-iterable.mjs";import{isBigInt as b}from"./is-bigint.mjs";import{isBoolean as x}from"./is-boolean.mjs";import{isBuffer as S,isBufferExists as C}from"./is-buffer.mjs";import{typeDetect as w}from"./type-detect.mjs";import{isCollection as T}from"./is-collection.mjs";import{isDeepKey as E,isKeyOrDeepKey as D}from"./is-deep-key.mjs";import{isEmptyObject as O,isEmptyOrEmptyObject as k}from"./is-empty-object.mjs";import{isString as A}from"./is-string.mjs";import{isEmptyString as j}from"./is-empty-string.mjs";import{isEqual as M}from"./is-equal.mjs";import{isError as N}from"./is-error.mjs";import{isSet as P}from"./is-set.mjs";import{isSetObject as F}from"./is-set-object.mjs";import{isSetString as I}from"./is-set-string.mjs";import{isFileResult as L}from"./is-file-result.mjs";import{isFloat as R}from"./is-float.mjs";import{isInteger as z}from"./is-integer.mjs";import{isReactElement as B}from"./is-react-element.mjs";import{isMergeableObject as V}from"./is-mergeable-object.mjs";import{isNotEmpty as H}from"./is-not-empty.mjs";import{isObjectIndex as U}from"./is-object-index.mjs";import{isPrimitive as W}from"./is-primitive.mjs";import{isPromise as G,isPromiseLike as K}from"./is-promise.mjs";import{isRef as q}from"./is-ref.mjs";import{isRegExp as J}from"./is-regexp.mjs";import{isSelectOption as Y}from"./is-select-option.mjs";import{isSetArray as X}from"./is-set-array.mjs";import{isTyped as Z}from"./is-typed.mjs";import{isTypedArray as Q}from"./is-typed-array.mjs";import{isURL as $}from"./is-url.mjs";import{propertyExists as ee,propertyUnsafe as te}from"./property-exists.mjs";export{e as getObjectTag,c as isAnyNumber,v as isArrayLike,i as isAsyncFunction,y as isAsyncIterable,b as isBigInt,x as isBoolean,S as isBuffer,C as isBufferExists,m as isClass,T as isCollection,h as isConventionalClass,r as isDate,E as isDeepKey,f as isEmpty,p as isEmptyAnything,O as isEmptyObject,k as isEmptyOrEmptyObject,j as isEmptyString,M as isEqual,N as isError,L as isFileResult,R as isFloat,a as isFunction,z as isInteger,D as isKeyOrDeepKey,V as isMergeableObject,g as isNativeClass,H as isNotEmpty,s as isNull,l as isNumber,_ as isObject,U as isObjectIndex,t as isObjectLike,n as isPlainObject,W as isPrimitive,G as isPromise,K as isPromiseLike,B as isReactElement,q as isRef,J as isRegExp,Y as isSelectOption,P as isSet,X as isSetArray,F as isSetObject,I as isSetString,A as isString,u as isSymbol,o as isSyncFunction,Z as isTyped,Q as isTypedArray,$ as isURL,d as isUndefined,ee as propertyExists,te as propertyUnsafe,w as typeDetect};
1
+ import { getObjectTag } from "./get-object-tag.mjs";
2
+ import { isObjectLike, isPlainObject } from "./is-plain-object.mjs";
3
+ import { isDate } from "./is-date.mjs";
4
+ import { isAsyncFunction, isFunction, isSyncFunction } from "./is-function.mjs";
5
+ import { isNull } from "./is-null.mjs";
6
+ import { isAnyNumber, isNumber } from "./is-number.mjs";
7
+ import { isSymbol } from "./is-symbol.mjs";
8
+ import { isUndefined } from "./is-undefined.mjs";
9
+ import { isEmpty, isEmptyAnything } from "./is-empty.mjs";
10
+ import { isClass, isConventionalClass, isNativeClass, isObject } from "./is-object.mjs";
11
+ import { isArrayLike } from "./is-array-like.mjs";
12
+ import { isAsyncIterable } from "./is-async-iterable.mjs";
13
+ import { isBigInt } from "./is-bigint.mjs";
14
+ import { isBoolean } from "./is-boolean.mjs";
15
+ import { isBuffer, isBufferExists } from "./is-buffer.mjs";
16
+ import { typeDetect } from "./type-detect.mjs";
17
+ import { isCollection } from "./is-collection.mjs";
18
+ import { isDeepKey, isKeyOrDeepKey } from "./is-deep-key.mjs";
19
+ import { isEmptyObject, isEmptyOrEmptyObject } from "./is-empty-object.mjs";
20
+ import { isString } from "./is-string.mjs";
21
+ import { isEmptyString } from "./is-empty-string.mjs";
22
+ import { isEqual } from "./is-equal.mjs";
23
+ import { isError } from "./is-error.mjs";
24
+ import { isSet } from "./is-set.mjs";
25
+ import { isSetObject } from "./is-set-object.mjs";
26
+ import { isSetString } from "./is-set-string.mjs";
27
+ import { isFileResult } from "./is-file-result.mjs";
28
+ import { isFloat } from "./is-float.mjs";
29
+ import { isInteger } from "./is-integer.mjs";
30
+ import { isReactElement } from "./is-react-element.mjs";
31
+ import { isMergeableObject } from "./is-mergeable-object.mjs";
32
+ import { isNotEmpty } from "./is-not-empty.mjs";
33
+ import { isObjectIndex } from "./is-object-index.mjs";
34
+ import { isPrimitive } from "./is-primitive.mjs";
35
+ import { isPromise, isPromiseLike } from "./is-promise.mjs";
36
+ import { isRef } from "./is-ref.mjs";
37
+ import { isRegExp } from "./is-regexp.mjs";
38
+ import { isSelectOption } from "./is-select-option.mjs";
39
+ import { isSetArray } from "./is-set-array.mjs";
40
+ import { isTyped } from "./is-typed.mjs";
41
+ import { isTypedArray } from "./is-typed-array.mjs";
42
+ import { isURL } from "./is-url.mjs";
43
+ import { propertyExists, propertyUnsafe } from "./property-exists.mjs";
44
+
45
+ export { getObjectTag, isAnyNumber, isArrayLike, isAsyncFunction, isAsyncIterable, isBigInt, isBoolean, isBuffer, isBufferExists, isClass, isCollection, isConventionalClass, isDate, isDeepKey, isEmpty, isEmptyAnything, isEmptyObject, isEmptyOrEmptyObject, isEmptyString, isEqual, isError, isFileResult, isFloat, isFunction, isInteger, isKeyOrDeepKey, isMergeableObject, isNativeClass, isNotEmpty, isNull, isNumber, isObject, isObjectIndex, isObjectLike, isPlainObject, isPrimitive, isPromise, isPromiseLike, isReactElement, isRef, isRegExp, isSelectOption, isSet, isSetArray, isSetObject, isSetString, isString, isSymbol, isSyncFunction, isTyped, isTypedArray, isURL, isUndefined, propertyExists, propertyUnsafe, typeDetect };
@@ -1 +1,17 @@
1
- const e=require(`./is-number.cjs`),t=require(`./is-empty.cjs`),n=require(`./is-object.cjs`),r=r=>n.isObject(r)&&!t.isEmpty(r)&&`length`in r&&e.isNumber(r.length)&&(r.length===0||r.length>0&&Object.prototype.hasOwnProperty.call(r,r.length-1));exports.isArrayLike=r;
1
+ const require_is_number = require('./is-number.cjs');
2
+ const require_is_empty = require('./is-empty.cjs');
3
+ const require_is_object = require('./is-object.cjs');
4
+
5
+ //#region src/is-array-like.ts
6
+ /**
7
+ * Check if the provided value's type is "array-like"
8
+ *
9
+ * @param value - The value to type check
10
+ * @returns An indicator specifying if the object provided is "array-like"
11
+ */
12
+ const isArrayLike = (value) => {
13
+ return require_is_object.isObject(value) && !require_is_empty.isEmpty(value) && "length" in value && require_is_number.isNumber(value.length) && (value.length === 0 || value.length > 0 && Object.prototype.hasOwnProperty.call(value, value.length - 1));
14
+ };
15
+
16
+ //#endregion
17
+ exports.isArrayLike = isArrayLike;
@@ -1,2 +1,18 @@
1
- import{isNumber as e}from"./is-number.mjs";import{isEmpty as t}from"./is-empty.mjs";import{isObject as n}from"./is-object.mjs";const r=r=>n(r)&&!t(r)&&`length`in r&&e(r.length)&&(r.length===0||r.length>0&&Object.prototype.hasOwnProperty.call(r,r.length-1));export{r as isArrayLike};
1
+ import { isNumber } from "./is-number.mjs";
2
+ import { isEmpty } from "./is-empty.mjs";
3
+ import { isObject } from "./is-object.mjs";
4
+
5
+ //#region src/is-array-like.ts
6
+ /**
7
+ * Check if the provided value's type is "array-like"
8
+ *
9
+ * @param value - The value to type check
10
+ * @returns An indicator specifying if the object provided is "array-like"
11
+ */
12
+ const isArrayLike = (value) => {
13
+ return isObject(value) && !isEmpty(value) && "length" in value && isNumber(value.length) && (value.length === 0 || value.length > 0 && Object.prototype.hasOwnProperty.call(value, value.length - 1));
14
+ };
15
+
16
+ //#endregion
17
+ export { isArrayLike };
2
18
  //# sourceMappingURL=is-array-like.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-array-like.mjs","names":[],"sources":["../src/is-array-like.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 { isEmpty } from \"./is-empty\";\nimport { isNumber } from \"./is-number\";\nimport { isObject } from \"./is-object\";\n\n/**\n * Check if the provided value's type is \"array-like\"\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the object provided is \"array-like\"\n */\nexport const isArrayLike = (value: any): boolean => {\n return (\n isObject(value) &&\n !isEmpty(value) &&\n \"length\" in value &&\n isNumber(value.length) &&\n (value.length === 0 ||\n (value.length > 0 &&\n Object.prototype.hasOwnProperty.call(value, value.length - 1)))\n );\n};\n"],"mappings":"+HA4BA,MAAa,EAAe,GAExB,EAAS,EAAM,EACf,CAAC,EAAQ,EAAM,EACf,WAAY,GACZ,EAAS,EAAM,OAAO,GACrB,EAAM,SAAW,GACf,EAAM,OAAS,GACd,OAAO,UAAU,eAAe,KAAK,EAAO,EAAM,OAAS,EAAE"}
1
+ {"version":3,"file":"is-array-like.mjs","names":[],"sources":["../src/is-array-like.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 { isEmpty } from \"./is-empty\";\nimport { isNumber } from \"./is-number\";\nimport { isObject } from \"./is-object\";\n\n/**\n * Check if the provided value's type is \"array-like\"\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the object provided is \"array-like\"\n */\nexport const isArrayLike = (value: any): boolean => {\n return (\n isObject(value) &&\n !isEmpty(value) &&\n \"length\" in value &&\n isNumber(value.length) &&\n (value.length === 0 ||\n (value.length > 0 &&\n Object.prototype.hasOwnProperty.call(value, value.length - 1)))\n );\n};\n"],"mappings":";;;;;;;;;;;AA4BA,MAAa,eAAe,UAAwB;AAClD,QACE,SAAS,MAAM,IACf,CAAC,QAAQ,MAAM,IACf,YAAY,SACZ,SAAS,MAAM,OAAO,KACrB,MAAM,WAAW,KACf,MAAM,SAAS,KACd,OAAO,UAAU,eAAe,KAAK,OAAO,MAAM,SAAS,EAAE"}
@@ -1 +1,16 @@
1
- const e=require(`./is-null.cjs`),t=require(`./is-object.cjs`),n=n=>t.isObject(n)&&!e.isNull(n)&&Symbol.asyncIterator in n;exports.isAsyncIterable=n;
1
+ const require_is_null = require('./is-null.cjs');
2
+ const require_is_object = require('./is-object.cjs');
3
+
4
+ //#region src/is-async-iterable.ts
5
+ /**
6
+ * Check if the provided value's type is `AsyncIterable`
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the object provided is `AsyncIterable`
10
+ */
11
+ const isAsyncIterable = (value) => {
12
+ return require_is_object.isObject(value) && !require_is_null.isNull(value) && Symbol.asyncIterator in value;
13
+ };
14
+
15
+ //#endregion
16
+ exports.isAsyncIterable = isAsyncIterable;
@@ -1,2 +1,17 @@
1
- import{isNull as e}from"./is-null.mjs";import{isObject as t}from"./is-object.mjs";const n=n=>t(n)&&!e(n)&&Symbol.asyncIterator in n;export{n as isAsyncIterable};
1
+ import { isNull } from "./is-null.mjs";
2
+ import { isObject } from "./is-object.mjs";
3
+
4
+ //#region src/is-async-iterable.ts
5
+ /**
6
+ * Check if the provided value's type is `AsyncIterable`
7
+ *
8
+ * @param value - The value to type check
9
+ * @returns An indicator specifying if the object provided is `AsyncIterable`
10
+ */
11
+ const isAsyncIterable = (value) => {
12
+ return isObject(value) && !isNull(value) && Symbol.asyncIterator in value;
13
+ };
14
+
15
+ //#endregion
16
+ export { isAsyncIterable };
2
17
  //# sourceMappingURL=is-async-iterable.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-async-iterable.mjs","names":[],"sources":["../src/is-async-iterable.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 { isNull } from \"./is-null\";\nimport { isObject } from \"./is-object\";\n\n/**\n * Check if the provided value's type is `AsyncIterable`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the object provided is `AsyncIterable`\n */\nexport const isAsyncIterable = (\n value: unknown\n): value is AsyncIterable<unknown> => {\n return isObject(value) && !isNull(value) && Symbol.asyncIterator in value;\n};\n"],"mappings":"kFA2BA,MAAa,EACX,GAEO,EAAS,EAAM,EAAI,CAAC,EAAO,EAAM,EAAI,OAAO,iBAAiB"}
1
+ {"version":3,"file":"is-async-iterable.mjs","names":[],"sources":["../src/is-async-iterable.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 { isNull } from \"./is-null\";\nimport { isObject } from \"./is-object\";\n\n/**\n * Check if the provided value's type is `AsyncIterable`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the object provided is `AsyncIterable`\n */\nexport const isAsyncIterable = (\n value: unknown\n): value is AsyncIterable<unknown> => {\n return isObject(value) && !isNull(value) && Symbol.asyncIterator in value;\n};\n"],"mappings":";;;;;;;;;;AA2BA,MAAa,mBACX,UACoC;AACpC,QAAO,SAAS,MAAM,IAAI,CAAC,OAAO,MAAM,IAAI,OAAO,iBAAiB"}
@@ -1 +1,22 @@
1
- const e=require(`./get-object-tag.cjs`),t=t=>typeof t==`bigint`||e.getObjectTag(t)==`[object BigInt]`;exports.isBigInt=t;
1
+ const require_get_object_tag = require('./get-object-tag.cjs');
2
+
3
+ //#region src/is-bigint.ts
4
+ /**
5
+ * Checks if `value` is classified as a `bigint` object.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * isDate(37n)
10
+ * // => true
11
+ *
12
+ * isBigInt(37)
13
+ * // => false
14
+ * ```
15
+ *
16
+ * @param value - The obj to check.
17
+ * @returns Returns `true` if `value` is a bigint object, else `false`.
18
+ */
19
+ const isBigInt = (value) => typeof value === "bigint" || require_get_object_tag.getObjectTag(value) == "[object BigInt]";
20
+
21
+ //#endregion
22
+ exports.isBigInt = isBigInt;
@@ -1,2 +1,23 @@
1
- import{getObjectTag as e}from"./get-object-tag.mjs";const t=t=>typeof t==`bigint`||e(t)==`[object BigInt]`;export{t as isBigInt};
1
+ import { getObjectTag } from "./get-object-tag.mjs";
2
+
3
+ //#region src/is-bigint.ts
4
+ /**
5
+ * Checks if `value` is classified as a `bigint` object.
6
+ *
7
+ * @example
8
+ * ```typescript
9
+ * isDate(37n)
10
+ * // => true
11
+ *
12
+ * isBigInt(37)
13
+ * // => false
14
+ * ```
15
+ *
16
+ * @param value - The obj to check.
17
+ * @returns Returns `true` if `value` is a bigint object, else `false`.
18
+ */
19
+ const isBigInt = (value) => typeof value === "bigint" || getObjectTag(value) == "[object BigInt]";
20
+
21
+ //#endregion
22
+ export { isBigInt };
2
23
  //# sourceMappingURL=is-bigint.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-bigint.mjs","names":[],"sources":["../src/is-bigint.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 { getObjectTag } from \"./get-object-tag\";\n\n/**\n * Checks if `value` is classified as a `bigint` object.\n *\n * @example\n * ```typescript\n * isDate(37n)\n * // => true\n *\n * isBigInt(37)\n * // => false\n * ```\n *\n * @param value - The obj to check.\n * @returns Returns `true` if `value` is a bigint object, else `false`.\n */\nexport const isBigInt = (value: unknown): value is bigint =>\n typeof value === \"bigint\" || getObjectTag(value) == \"[object BigInt]\";\n"],"mappings":"oDAmCA,MAAa,EAAY,GACvB,OAAO,GAAU,UAAY,EAAa,EAAM,EAAI"}
1
+ {"version":3,"file":"is-bigint.mjs","names":[],"sources":["../src/is-bigint.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 { getObjectTag } from \"./get-object-tag\";\n\n/**\n * Checks if `value` is classified as a `bigint` object.\n *\n * @example\n * ```typescript\n * isDate(37n)\n * // => true\n *\n * isBigInt(37)\n * // => false\n * ```\n *\n * @param value - The obj to check.\n * @returns Returns `true` if `value` is a bigint object, else `false`.\n */\nexport const isBigInt = (value: unknown): value is bigint =>\n typeof value === \"bigint\" || getObjectTag(value) == \"[object BigInt]\";\n"],"mappings":";;;;;;;;;;;;;;;;;;AAmCA,MAAa,YAAY,UACvB,OAAO,UAAU,YAAY,aAAa,MAAM,IAAI"}
@@ -1 +1,18 @@
1
- const e=e=>{try{return e instanceof Boolean||typeof e==`boolean`||!!e===e}catch{return!1}};exports.isBoolean=e;
1
+
2
+ //#region src/is-boolean.ts
3
+ /**
4
+ * Check if the provided value's type is `boolean`
5
+ *
6
+ * @param value - The value to type check
7
+ * @returns An indicator specifying if the value provided is of type `boolean`
8
+ */
9
+ const isBoolean = (value) => {
10
+ try {
11
+ return value instanceof Boolean || typeof value === "boolean" || Boolean(value) === value;
12
+ } catch {
13
+ return false;
14
+ }
15
+ };
16
+
17
+ //#endregion
18
+ exports.isBoolean = isBoolean;
@@ -1,2 +1,18 @@
1
- const e=e=>{try{return e instanceof Boolean||typeof e==`boolean`||!!e===e}catch{return!1}};export{e as isBoolean};
1
+ //#region src/is-boolean.ts
2
+ /**
3
+ * Check if the provided value's type is `boolean`
4
+ *
5
+ * @param value - The value to type check
6
+ * @returns An indicator specifying if the value provided is of type `boolean`
7
+ */
8
+ const isBoolean = (value) => {
9
+ try {
10
+ return value instanceof Boolean || typeof value === "boolean" || Boolean(value) === value;
11
+ } catch {
12
+ return false;
13
+ }
14
+ };
15
+
16
+ //#endregion
17
+ export { isBoolean };
2
18
  //# sourceMappingURL=is-boolean.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-boolean.mjs","names":[],"sources":["../src/is-boolean.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\n/**\n * Check if the provided value's type is `boolean`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `boolean`\n */\nexport const isBoolean = (value: unknown): value is boolean => {\n try {\n return (\n value instanceof Boolean ||\n typeof value === \"boolean\" ||\n Boolean(value) === value\n );\n } catch {\n return false;\n }\n};\n"],"mappings":"AAwBA,MAAa,EAAa,GAAqC,CAC7D,GAAI,CACF,OACE,aAAiB,SACjB,OAAO,GAAU,WACjB,EAAQ,IAAW,OAEf,CACN,MAAO"}
1
+ {"version":3,"file":"is-boolean.mjs","names":[],"sources":["../src/is-boolean.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\n/**\n * Check if the provided value's type is `boolean`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `boolean`\n */\nexport const isBoolean = (value: unknown): value is boolean => {\n try {\n return (\n value instanceof Boolean ||\n typeof value === \"boolean\" ||\n Boolean(value) === value\n );\n } catch {\n return false;\n }\n};\n"],"mappings":";;;;;;;AAwBA,MAAa,aAAa,UAAqC;AAC7D,KAAI;AACF,SACE,iBAAiB,WACjB,OAAO,UAAU,aACjB,QAAQ,MAAM,KAAK;SAEf;AACN,SAAO"}
@@ -1 +1,13 @@
1
- const e=typeof Buffer<`u`,t=e?Buffer.isBuffer.bind(Buffer):function(e){return!1};exports.isBuffer=t,exports.isBufferExists=e;
1
+
2
+ //#region src/is-buffer.ts
3
+ const isBufferExists = typeof Buffer !== "undefined";
4
+ /**
5
+ * Check if the provided value's type is `Buffer`
6
+ */
7
+ const isBuffer = isBufferExists ? Buffer.isBuffer.bind(Buffer) : function isBuffer$1(value) {
8
+ return false;
9
+ };
10
+
11
+ //#endregion
12
+ exports.isBuffer = isBuffer;
13
+ exports.isBufferExists = isBufferExists;
@@ -1,2 +1,12 @@
1
- const e=typeof Buffer<`u`,t=e?Buffer.isBuffer.bind(Buffer):function(e){return!1};export{t as isBuffer,e as isBufferExists};
1
+ //#region src/is-buffer.ts
2
+ const isBufferExists = typeof Buffer !== "undefined";
3
+ /**
4
+ * Check if the provided value's type is `Buffer`
5
+ */
6
+ const isBuffer = isBufferExists ? Buffer.isBuffer.bind(Buffer) : function isBuffer$1(value) {
7
+ return false;
8
+ };
9
+
10
+ //#endregion
11
+ export { isBuffer, isBufferExists };
2
12
  //# sourceMappingURL=is-buffer.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-buffer.mjs","names":["isBuffer: typeof Buffer.isBuffer","isBuffer"],"sources":["../src/is-buffer.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 isBufferExists = typeof Buffer !== \"undefined\";\n\n/**\n * Check if the provided value's type is `Buffer`\n */\nexport const isBuffer: typeof Buffer.isBuffer = isBufferExists\n ? Buffer.isBuffer.bind(Buffer)\n : /**\n * Check if the provided value's type is `Buffer`\n\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Buffer`\n */\n function isBuffer(\n value: Parameters<typeof Buffer.isBuffer>[0]\n ): value is Buffer {\n return false;\n };\n"],"mappings":"AAkBA,MAAa,EAAiB,OAAO,OAAW,IAKnCA,EAAmC,EAC5C,OAAO,SAAS,KAAK,OAAO,CAO5B,SACE,EACiB,CACjB,MAAO"}
1
+ {"version":3,"file":"is-buffer.mjs","names":["isBuffer: typeof Buffer.isBuffer","isBuffer"],"sources":["../src/is-buffer.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 isBufferExists = typeof Buffer !== \"undefined\";\n\n/**\n * Check if the provided value's type is `Buffer`\n */\nexport const isBuffer: typeof Buffer.isBuffer = isBufferExists\n ? Buffer.isBuffer.bind(Buffer)\n : /**\n * Check if the provided value's type is `Buffer`\n\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Buffer`\n */\n function isBuffer(\n value: Parameters<typeof Buffer.isBuffer>[0]\n ): value is Buffer {\n return false;\n };\n"],"mappings":";AAkBA,MAAa,iBAAiB,OAAO,WAAW;;;;AAKhD,MAAaA,WAAmC,iBAC5C,OAAO,SAAS,KAAK,OAAO,GAO5B,SAASC,WACP,OACiB;AACjB,QAAO"}
@@ -1 +1,22 @@
1
- const e=require(`./type-detect.cjs`),t=new Set([`Arguments`,`Array`,`Map`,`Object`,`Set`]);function n(n){return t.has(e.typeDetect(n))}exports.isCollection=n;
1
+ const require_type_detect = require('./type-detect.cjs');
2
+
3
+ //#region src/is-collection.ts
4
+ const COLLECTION_TYPE_SET = new Set([
5
+ "Arguments",
6
+ "Array",
7
+ "Map",
8
+ "Object",
9
+ "Set"
10
+ ]);
11
+ /**
12
+ * Check if the provided value's type is `Collection`
13
+ *
14
+ * @param value - The value to type check
15
+ * @returns An indicator specifying if the value provided is of type `Collection`
16
+ */
17
+ function isCollection(value) {
18
+ return COLLECTION_TYPE_SET.has(require_type_detect.typeDetect(value));
19
+ }
20
+
21
+ //#endregion
22
+ exports.isCollection = isCollection;
@@ -1,2 +1,23 @@
1
- import{typeDetect as e}from"./type-detect.mjs";const t=new Set([`Arguments`,`Array`,`Map`,`Object`,`Set`]);function n(n){return t.has(e(n))}export{n as isCollection};
1
+ import { typeDetect } from "./type-detect.mjs";
2
+
3
+ //#region src/is-collection.ts
4
+ const COLLECTION_TYPE_SET = new Set([
5
+ "Arguments",
6
+ "Array",
7
+ "Map",
8
+ "Object",
9
+ "Set"
10
+ ]);
11
+ /**
12
+ * Check if the provided value's type is `Collection`
13
+ *
14
+ * @param value - The value to type check
15
+ * @returns An indicator specifying if the value provided is of type `Collection`
16
+ */
17
+ function isCollection(value) {
18
+ return COLLECTION_TYPE_SET.has(typeDetect(value));
19
+ }
20
+
21
+ //#endregion
22
+ export { isCollection };
2
23
  //# sourceMappingURL=is-collection.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-collection.mjs","names":[],"sources":["../src/is-collection.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 { Collection } from \"@stryke/types/base\";\nimport { typeDetect } from \"./type-detect\";\n\nconst COLLECTION_TYPE_SET = new Set([\n \"Arguments\",\n \"Array\",\n \"Map\",\n \"Object\",\n \"Set\"\n]);\n\n/**\n * Check if the provided value's type is `Collection`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Collection`\n */\nexport function isCollection(value: any): value is Collection {\n return COLLECTION_TYPE_SET.has(typeDetect(value));\n}\n"],"mappings":"+CAqBA,MAAM,EAAsB,IAAI,IAAI,CAClC,YACA,QACA,MACA,SACA,MACD,CAAC,CAQF,SAAgB,EAAa,EAAiC,CAC5D,OAAO,EAAoB,IAAI,EAAW,EAAM,CAAC"}
1
+ {"version":3,"file":"is-collection.mjs","names":[],"sources":["../src/is-collection.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 { Collection } from \"@stryke/types/base\";\nimport { typeDetect } from \"./type-detect\";\n\nconst COLLECTION_TYPE_SET = new Set([\n \"Arguments\",\n \"Array\",\n \"Map\",\n \"Object\",\n \"Set\"\n]);\n\n/**\n * Check if the provided value's type is `Collection`\n *\n * @param value - The value to type check\n * @returns An indicator specifying if the value provided is of type `Collection`\n */\nexport function isCollection(value: any): value is Collection {\n return COLLECTION_TYPE_SET.has(typeDetect(value));\n}\n"],"mappings":";;;AAqBA,MAAM,sBAAsB,IAAI,IAAI;CAClC;CACA;CACA;CACA;CACA;CACD,CAAC;;;;;;;AAQF,SAAgB,aAAa,OAAiC;AAC5D,QAAO,oBAAoB,IAAI,WAAW,MAAM,CAAC"}
package/dist/is-date.cjs CHANGED
@@ -1 +1,23 @@
1
- const e=require(`./get-object-tag.cjs`),t=require(`./is-plain-object.cjs`),n=n=>t.isObjectLike(n)&&e.getObjectTag(n)==`[object Date]`;exports.isDate=n;
1
+ const require_get_object_tag = require('./get-object-tag.cjs');
2
+ const require_is_plain_object = require('./is-plain-object.cjs');
3
+
4
+ //#region src/is-date.ts
5
+ /**
6
+ * Checks if `value` is classified as a `Date` object.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * isDate(new Date)
11
+ * // => true
12
+ *
13
+ * isDate('Mon April 23 2012')
14
+ * // => false
15
+ * ```
16
+ *
17
+ * @param value - The value to check.
18
+ * @returns Returns `true` if `obj` is a date object, else `false`.
19
+ */
20
+ const isDate = (value) => require_is_plain_object.isObjectLike(value) && require_get_object_tag.getObjectTag(value) == "[object Date]";
21
+
22
+ //#endregion
23
+ exports.isDate = isDate;
package/dist/is-date.mjs CHANGED
@@ -1,2 +1,24 @@
1
- import{getObjectTag as e}from"./get-object-tag.mjs";import{isObjectLike as t}from"./is-plain-object.mjs";const n=n=>t(n)&&e(n)==`[object Date]`;export{n as isDate};
1
+ import { getObjectTag } from "./get-object-tag.mjs";
2
+ import { isObjectLike } from "./is-plain-object.mjs";
3
+
4
+ //#region src/is-date.ts
5
+ /**
6
+ * Checks if `value` is classified as a `Date` object.
7
+ *
8
+ * @example
9
+ * ```typescript
10
+ * isDate(new Date)
11
+ * // => true
12
+ *
13
+ * isDate('Mon April 23 2012')
14
+ * // => false
15
+ * ```
16
+ *
17
+ * @param value - The value to check.
18
+ * @returns Returns `true` if `obj` is a date object, else `false`.
19
+ */
20
+ const isDate = (value) => isObjectLike(value) && getObjectTag(value) == "[object Date]";
21
+
22
+ //#endregion
23
+ export { isDate };
2
24
  //# sourceMappingURL=is-date.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"is-date.mjs","names":[],"sources":["../src/is-date.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 { getObjectTag } from \"./get-object-tag\";\nimport { isObjectLike } from \"./is-plain-object\";\n\n/**\n * Checks if `value` is classified as a `Date` object.\n *\n * @example\n * ```typescript\n * isDate(new Date)\n * // => true\n *\n * isDate('Mon April 23 2012')\n * // => false\n * ```\n *\n * @param value - The value to check.\n * @returns Returns `true` if `obj` is a date object, else `false`.\n */\nexport const isDate = (value: unknown): value is Date =>\n isObjectLike(value) && getObjectTag(value) == \"[object Date]\";\n"],"mappings":"yGAoCA,MAAa,EAAU,GACrB,EAAa,EAAM,EAAI,EAAa,EAAM,EAAI"}
1
+ {"version":3,"file":"is-date.mjs","names":[],"sources":["../src/is-date.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 { getObjectTag } from \"./get-object-tag\";\nimport { isObjectLike } from \"./is-plain-object\";\n\n/**\n * Checks if `value` is classified as a `Date` object.\n *\n * @example\n * ```typescript\n * isDate(new Date)\n * // => true\n *\n * isDate('Mon April 23 2012')\n * // => false\n * ```\n *\n * @param value - The value to check.\n * @returns Returns `true` if `obj` is a date object, else `false`.\n */\nexport const isDate = (value: unknown): value is Date =>\n isObjectLike(value) && getObjectTag(value) == \"[object Date]\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAoCA,MAAa,UAAU,UACrB,aAAa,MAAM,IAAI,aAAa,MAAM,IAAI"}