@stryke/type-checks 0.4.4 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +263 -0
- package/README.md +18 -10
- package/dist/base-BghPfa26.d.mts +48 -0
- package/dist/base-BghPfa26.d.mts.map +1 -0
- package/dist/base-DsupRZHl.d.cts +48 -0
- package/dist/base-DsupRZHl.d.cts.map +1 -0
- package/dist/get-object-tag-BHnhgixj.cjs +1 -0
- package/dist/get-object-tag-D0q0p9ux.d.mts +11 -0
- package/dist/get-object-tag-D0q0p9ux.d.mts.map +1 -0
- package/dist/get-object-tag-DF2FAXqH.mjs +2 -0
- package/dist/get-object-tag-DF2FAXqH.mjs.map +1 -0
- package/dist/get-object-tag-Tv3TsAc5.d.cts +11 -0
- package/dist/get-object-tag-Tv3TsAc5.d.cts.map +1 -0
- package/dist/get-object-tag.cjs +1 -8
- package/dist/get-object-tag.d.cts +2 -0
- package/dist/get-object-tag.d.mts +2 -0
- package/dist/get-object-tag.mjs +1 -1
- package/dist/index.cjs +1 -467
- package/dist/index.d.cts +44 -0
- package/dist/index.d.mts +44 -0
- package/dist/index.mjs +1 -1
- package/dist/is-array-like-BlG3BXac.mjs +2 -0
- package/dist/is-array-like-BlG3BXac.mjs.map +1 -0
- package/dist/{is-array-like.d.ts → is-array-like-CWfL33X9.d.mts} +5 -1
- package/dist/is-array-like-CWfL33X9.d.mts.map +1 -0
- package/dist/is-array-like-DbVeBoEe.cjs +1 -0
- package/dist/is-array-like-WgfvtfKC.d.cts +11 -0
- package/dist/is-array-like-WgfvtfKC.d.cts.map +1 -0
- package/dist/is-array-like.cjs +1 -11
- package/dist/is-array-like.d.cts +2 -0
- package/dist/is-array-like.d.mts +2 -0
- package/dist/is-array-like.mjs +1 -1
- package/dist/is-async-iterable-Ba5xZQE9.cjs +1 -0
- package/dist/is-async-iterable-C7_r2vwP.d.cts +11 -0
- package/dist/is-async-iterable-C7_r2vwP.d.cts.map +1 -0
- package/dist/is-async-iterable-CI6-qnZ-.mjs +2 -0
- package/dist/is-async-iterable-CI6-qnZ-.mjs.map +1 -0
- package/dist/is-async-iterable-hrJii_4u.d.mts +11 -0
- package/dist/is-async-iterable-hrJii_4u.d.mts.map +1 -0
- package/dist/is-async-iterable.cjs +1 -10
- package/dist/is-async-iterable.d.cts +2 -0
- package/dist/is-async-iterable.d.mts +2 -0
- package/dist/is-async-iterable.mjs +1 -1
- package/dist/is-bigint-B0CqvS9s.cjs +1 -0
- package/dist/{is-bigint.d.ts → is-bigint-BlaQe4zL.d.cts} +5 -1
- package/dist/is-bigint-BlaQe4zL.d.cts.map +1 -0
- package/dist/is-bigint-C87sK5hA.mjs +2 -0
- package/dist/is-bigint-C87sK5hA.mjs.map +1 -0
- package/dist/is-bigint-VHcMqIR3.d.mts +20 -0
- package/dist/is-bigint-VHcMqIR3.d.mts.map +1 -0
- package/dist/is-bigint.cjs +1 -9
- package/dist/is-bigint.d.cts +2 -0
- package/dist/is-bigint.d.mts +2 -0
- package/dist/is-bigint.mjs +1 -1
- package/dist/is-boolean-DAXt0s9b.mjs +2 -0
- package/dist/is-boolean-DAXt0s9b.mjs.map +1 -0
- package/dist/is-boolean-DRzqWnBl.cjs +1 -0
- package/dist/{is-boolean.d.ts → is-boolean-Doo5mVEJ.d.mts} +5 -1
- package/dist/is-boolean-Doo5mVEJ.d.mts.map +1 -0
- package/dist/is-boolean-rsYcElxd.d.cts +11 -0
- package/dist/is-boolean-rsYcElxd.d.cts.map +1 -0
- package/dist/is-boolean.cjs +1 -14
- package/dist/is-boolean.d.cts +2 -0
- package/dist/is-boolean.d.mts +2 -0
- package/dist/is-boolean.mjs +1 -1
- package/dist/is-buffer-B3W8nBrK.d.cts +9 -0
- package/dist/is-buffer-B3W8nBrK.d.cts.map +1 -0
- package/dist/is-buffer-BhNtqu5n.mjs +2 -0
- package/dist/is-buffer-BhNtqu5n.mjs.map +1 -0
- package/dist/is-buffer-CSI0AMZS.d.mts +9 -0
- package/dist/is-buffer-CSI0AMZS.d.mts.map +1 -0
- package/dist/is-buffer-D9p_5l0d.cjs +1 -0
- package/dist/is-buffer.cjs +1 -10
- package/dist/is-buffer.d.cts +2 -0
- package/dist/is-buffer.d.mts +2 -0
- package/dist/is-buffer.mjs +1 -1
- package/dist/is-collection-Ceu4_dCf.d.mts +14 -0
- package/dist/is-collection-Ceu4_dCf.d.mts.map +1 -0
- package/dist/is-collection-DidPvByC.mjs +2 -0
- package/dist/is-collection-DidPvByC.mjs.map +1 -0
- package/dist/is-collection-IKoUfFa7.cjs +1 -0
- package/dist/is-collection-e7yAmi3F.d.cts +14 -0
- package/dist/is-collection-e7yAmi3F.d.cts.map +1 -0
- package/dist/is-collection.cjs +1 -11
- package/dist/is-collection.d.cts +2 -0
- package/dist/is-collection.d.mts +2 -0
- package/dist/is-collection.mjs +1 -1
- package/dist/{is-date.d.ts → is-date-BecRMVku.d.mts} +5 -1
- package/dist/is-date-BecRMVku.d.mts.map +1 -0
- package/dist/is-date-CWjcEKXA.cjs +1 -0
- package/dist/is-date-CcOOgtny.mjs +2 -0
- package/dist/is-date-CcOOgtny.mjs.map +1 -0
- package/dist/is-date-Dmz-M0ET.d.cts +20 -0
- package/dist/is-date-Dmz-M0ET.d.cts.map +1 -0
- package/dist/is-date.cjs +1 -10
- package/dist/is-date.d.cts +2 -0
- package/dist/is-date.d.mts +2 -0
- package/dist/is-date.mjs +1 -1
- package/dist/is-deep-key-CDPjONep.d.cts +52 -0
- package/dist/is-deep-key-CDPjONep.d.cts.map +1 -0
- package/dist/is-deep-key-Ck2Hz7YJ.cjs +1 -0
- package/dist/is-deep-key-DShi6eYB.mjs +2 -0
- package/dist/is-deep-key-DShi6eYB.mjs.map +1 -0
- package/dist/is-deep-key-R3slkUpl.d.mts +52 -0
- package/dist/is-deep-key-R3slkUpl.d.mts.map +1 -0
- package/dist/is-deep-key.cjs +1 -26
- package/dist/is-deep-key.d.cts +2 -0
- package/dist/is-deep-key.d.mts +2 -0
- package/dist/is-deep-key.mjs +1 -1
- package/dist/is-empty-CcxcCbO0.d.cts +12 -0
- package/dist/is-empty-CcxcCbO0.d.cts.map +1 -0
- package/dist/is-empty-DQObAY-0.mjs +2 -0
- package/dist/is-empty-DQObAY-0.mjs.map +1 -0
- package/dist/is-empty-DVetNKe9.cjs +1 -0
- package/dist/is-empty-bCaTRGIB.d.mts +12 -0
- package/dist/is-empty-bCaTRGIB.d.mts.map +1 -0
- package/dist/{is-empty-object.d.ts → is-empty-object-C4Awcmki.d.mts} +6 -2
- package/dist/is-empty-object-C4Awcmki.d.mts.map +1 -0
- package/dist/is-empty-object-DrM4h0oW.cjs +1 -0
- package/dist/is-empty-object-N0ex-Rjl.mjs +2 -0
- package/dist/is-empty-object-N0ex-Rjl.mjs.map +1 -0
- package/dist/is-empty-object-SnajGsQ2.d.cts +18 -0
- package/dist/is-empty-object-SnajGsQ2.d.cts.map +1 -0
- package/dist/is-empty-object.cjs +1 -23
- package/dist/is-empty-object.d.cts +2 -0
- package/dist/is-empty-object.d.mts +2 -0
- package/dist/is-empty-object.mjs +1 -1
- package/dist/is-empty-string-01PpHo0h.mjs +2 -0
- package/dist/is-empty-string-01PpHo0h.mjs.map +1 -0
- package/dist/is-empty-string-8Huv7y1z.cjs +1 -0
- package/dist/is-empty-string-BlLKjNEc.d.mts +11 -0
- package/dist/is-empty-string-BlLKjNEc.d.mts.map +1 -0
- package/dist/is-empty-string-CGf43g5Z.d.cts +11 -0
- package/dist/is-empty-string-CGf43g5Z.d.cts.map +1 -0
- package/dist/is-empty-string.cjs +1 -16
- package/dist/is-empty-string.d.cts +2 -0
- package/dist/is-empty-string.d.mts +2 -0
- package/dist/is-empty-string.mjs +1 -1
- package/dist/is-empty.cjs +1 -35
- package/dist/is-empty.d.cts +2 -0
- package/dist/is-empty.d.mts +2 -0
- package/dist/is-empty.mjs +1 -1
- package/dist/is-equal-BzPzI-pB.cjs +1 -0
- package/dist/is-equal-CYwTrE3V.d.cts +5 -0
- package/dist/is-equal-CYwTrE3V.d.cts.map +1 -0
- package/dist/is-equal-D4RPxWam.d.mts +5 -0
- package/dist/is-equal-D4RPxWam.d.mts.map +1 -0
- package/dist/is-equal-I836HuAx.mjs +2 -0
- package/dist/is-equal-I836HuAx.mjs.map +1 -0
- package/dist/is-equal.cjs +1 -18
- package/dist/is-equal.d.cts +2 -0
- package/dist/is-equal.d.mts +2 -0
- package/dist/is-equal.mjs +1 -1
- package/dist/{is-error.d.ts → is-error-CCOglM_7.d.mts} +5 -1
- package/dist/is-error-CCOglM_7.d.mts.map +1 -0
- package/dist/is-error-D1FKoV2p.cjs +1 -0
- package/dist/is-error-DR_jKXbr.d.cts +21 -0
- package/dist/is-error-DR_jKXbr.d.cts.map +1 -0
- package/dist/is-error-nekb2Eit.mjs +2 -0
- package/dist/is-error-nekb2Eit.mjs.map +1 -0
- package/dist/is-error.cjs +1 -15
- package/dist/is-error.d.cts +2 -0
- package/dist/is-error.d.mts +2 -0
- package/dist/is-error.mjs +1 -1
- package/dist/is-file-result-5vpaq4NL.mjs +2 -0
- package/dist/is-file-result-5vpaq4NL.mjs.map +1 -0
- package/dist/is-file-result-B-ALEhm0.d.mts +56 -0
- package/dist/is-file-result-B-ALEhm0.d.mts.map +1 -0
- package/dist/is-file-result-Bl1xTRmY.cjs +1 -0
- package/dist/is-file-result-DW5cnH95.d.cts +56 -0
- package/dist/is-file-result-DW5cnH95.d.cts.map +1 -0
- package/dist/is-file-result.cjs +1 -10
- package/dist/is-file-result.d.cts +2 -0
- package/dist/is-file-result.d.mts +2 -0
- package/dist/is-file-result.mjs +1 -1
- package/dist/is-float-C6J1LRqg.cjs +1 -0
- package/dist/is-float-CfmYc3k6.d.mts +14 -0
- package/dist/is-float-CfmYc3k6.d.mts.map +1 -0
- package/dist/is-float-DulF06Fh.mjs +2 -0
- package/dist/is-float-DulF06Fh.mjs.map +1 -0
- package/dist/is-float-DvyATqOQ.d.cts +14 -0
- package/dist/is-float-DvyATqOQ.d.cts.map +1 -0
- package/dist/is-float.cjs +1 -9
- package/dist/is-float.d.cts +2 -0
- package/dist/is-float.d.mts +2 -0
- package/dist/is-float.mjs +1 -1
- package/dist/is-function-CR97Wcb4.d.mts +15 -0
- package/dist/is-function-CR97Wcb4.d.mts.map +1 -0
- package/dist/is-function-CZGGR0qT.mjs +2 -0
- package/dist/is-function-CZGGR0qT.mjs.map +1 -0
- package/dist/is-function-Ge8gcRnx.cjs +1 -0
- package/dist/is-function-IbkaFS4R.d.cts +15 -0
- package/dist/is-function-IbkaFS4R.d.cts.map +1 -0
- package/dist/is-function.cjs +1 -23
- package/dist/is-function.d.cts +2 -0
- package/dist/is-function.d.mts +2 -0
- package/dist/is-function.mjs +1 -1
- package/dist/is-integer-BhXT9fEE.mjs +2 -0
- package/dist/is-integer-BhXT9fEE.mjs.map +1 -0
- package/dist/is-integer-DBgHgbTb.cjs +1 -0
- package/dist/{is-integer.d.ts → is-integer-kq1ee5T_.d.mts} +5 -1
- package/dist/is-integer-kq1ee5T_.d.mts.map +1 -0
- package/dist/is-integer-t2K_aeI-.d.cts +11 -0
- package/dist/is-integer-t2K_aeI-.d.cts.map +1 -0
- package/dist/is-integer.cjs +1 -10
- package/dist/is-integer.d.cts +2 -0
- package/dist/is-integer.d.mts +2 -0
- package/dist/is-integer.mjs +1 -1
- package/dist/is-mergeable-object-BKccPMFM.mjs +2 -0
- package/dist/is-mergeable-object-BKccPMFM.mjs.map +1 -0
- package/dist/is-mergeable-object-BdooAUkk.d.cts +5 -0
- package/dist/is-mergeable-object-BdooAUkk.d.cts.map +1 -0
- package/dist/is-mergeable-object-Ch4GsBfV.d.mts +5 -0
- package/dist/is-mergeable-object-Ch4GsBfV.d.mts.map +1 -0
- package/dist/is-mergeable-object-D0KYh_gn.cjs +1 -0
- package/dist/is-mergeable-object.cjs +1 -14
- package/dist/is-mergeable-object.d.cts +2 -0
- package/dist/is-mergeable-object.d.mts +2 -0
- package/dist/is-mergeable-object.mjs +1 -1
- package/dist/is-non-null-object-Ctm4-rn6.cjs +1 -0
- package/dist/is-non-null-object-DESgjZyf.mjs +2 -0
- package/dist/is-non-null-object-DESgjZyf.mjs.map +1 -0
- package/dist/is-non-null-object.cjs +1 -10
- package/dist/{is-non-null-object.d.ts → is-non-null-object.d.cts} +5 -1
- package/dist/is-non-null-object.d.cts.map +1 -0
- package/dist/is-non-null-object.d.mts +11 -0
- package/dist/is-non-null-object.d.mts.map +1 -0
- package/dist/is-non-null-object.mjs +1 -1
- package/dist/{is-not-empty.d.ts → is-not-empty-DU-gI96j.d.cts} +5 -1
- package/dist/is-not-empty-DU-gI96j.d.cts.map +1 -0
- package/dist/is-not-empty-QCNAwO70.cjs +1 -0
- package/dist/is-not-empty-VPPuIxfe.d.mts +11 -0
- package/dist/is-not-empty-VPPuIxfe.d.mts.map +1 -0
- package/dist/is-not-empty-_qzX24LT.mjs +2 -0
- package/dist/is-not-empty-_qzX24LT.mjs.map +1 -0
- package/dist/is-not-empty.cjs +1 -17
- package/dist/is-not-empty.d.cts +2 -0
- package/dist/is-not-empty.d.mts +2 -0
- package/dist/is-not-empty.mjs +1 -1
- package/dist/is-null-CZh6OomR.cjs +1 -0
- package/dist/is-null-DBoMXXAf.mjs +2 -0
- package/dist/is-null-DBoMXXAf.mjs.map +1 -0
- package/dist/is-null-envBEnO5.d.mts +5 -0
- package/dist/is-null-envBEnO5.d.mts.map +1 -0
- package/dist/is-null-mdbQqgkD.d.cts +5 -0
- package/dist/is-null-mdbQqgkD.d.cts.map +1 -0
- package/dist/is-null.cjs +1 -14
- package/dist/is-null.d.cts +2 -0
- package/dist/is-null.d.mts +2 -0
- package/dist/is-null.mjs +1 -1
- package/dist/{is-number.d.ts → is-number-B9zBD5P5.d.mts} +9 -3
- package/dist/is-number-B9zBD5P5.d.mts.map +1 -0
- package/dist/is-number-BN-mcUXr.d.cts +21 -0
- package/dist/is-number-BN-mcUXr.d.cts.map +1 -0
- package/dist/is-number-ChPAVili.mjs +2 -0
- package/dist/is-number-ChPAVili.mjs.map +1 -0
- package/dist/is-number-ijCVauur.cjs +1 -0
- package/dist/is-number.cjs +1 -19
- package/dist/is-number.d.cts +2 -0
- package/dist/is-number.d.mts +2 -0
- package/dist/is-number.mjs +1 -1
- package/dist/is-object-ANQi7JgS.mjs +2 -0
- package/dist/is-object-ANQi7JgS.mjs.map +1 -0
- package/dist/{is-object.d.ts → is-object-CqEZ2nHi.d.mts} +10 -5
- package/dist/is-object-CqEZ2nHi.d.mts.map +1 -0
- package/dist/is-object-Dm1523kn.cjs +1 -0
- package/dist/is-object-index-CaLUkJ03.d.mts +11 -0
- package/dist/is-object-index-CaLUkJ03.d.mts.map +1 -0
- package/dist/is-object-index-ClUQyslC.cjs +1 -0
- package/dist/is-object-index-CwTThA-X.mjs +2 -0
- package/dist/is-object-index-CwTThA-X.mjs.map +1 -0
- package/dist/is-object-index-OiD7O1-t.d.cts +11 -0
- package/dist/is-object-index-OiD7O1-t.d.cts.map +1 -0
- package/dist/is-object-index.cjs +1 -17
- package/dist/is-object-index.d.cts +2 -0
- package/dist/is-object-index.d.mts +2 -0
- package/dist/is-object-index.mjs +1 -1
- package/dist/is-object-vHTx3owB.d.cts +35 -0
- package/dist/is-object-vHTx3owB.d.cts.map +1 -0
- package/dist/is-object.cjs +1 -30
- package/dist/is-object.d.cts +2 -0
- package/dist/is-object.d.mts +2 -0
- package/dist/is-object.mjs +1 -1
- package/dist/{is-plain-object.d.ts → is-plain-object-C_RxAc-k.d.cts} +9 -3
- package/dist/is-plain-object-C_RxAc-k.d.cts.map +1 -0
- package/dist/is-plain-object-Cqr8u4ef.mjs +2 -0
- package/dist/is-plain-object-Cqr8u4ef.mjs.map +1 -0
- package/dist/is-plain-object-D0i2qmvk.d.mts +56 -0
- package/dist/is-plain-object-D0i2qmvk.d.mts.map +1 -0
- package/dist/is-plain-object-DuvbtXws.cjs +1 -0
- package/dist/is-plain-object.cjs +1 -17
- package/dist/is-plain-object.d.cts +2 -0
- package/dist/is-plain-object.d.mts +2 -0
- package/dist/is-plain-object.mjs +1 -1
- package/dist/is-primitive-BsdQZkNT.mjs +2 -0
- package/dist/is-primitive-BsdQZkNT.mjs.map +1 -0
- package/dist/is-primitive-C390YHii.d.cts +5 -0
- package/dist/is-primitive-C390YHii.d.cts.map +1 -0
- package/dist/is-primitive-CofpOCbi.d.mts +5 -0
- package/dist/is-primitive-CofpOCbi.d.mts.map +1 -0
- package/dist/is-primitive-DTb1k22w.cjs +1 -0
- package/dist/is-primitive.cjs +1 -14
- package/dist/is-primitive.d.cts +2 -0
- package/dist/is-primitive.d.mts +2 -0
- package/dist/is-primitive.mjs +1 -1
- package/dist/{is-promise.d.ts → is-promise-5PXY2aAR.d.mts} +6 -2
- package/dist/is-promise-5PXY2aAR.d.mts.map +1 -0
- package/dist/is-promise-BaPgf52D.d.cts +21 -0
- package/dist/is-promise-BaPgf52D.d.cts.map +1 -0
- package/dist/is-promise-D8fY4qSb.mjs +2 -0
- package/dist/is-promise-D8fY4qSb.mjs.map +1 -0
- package/dist/is-promise-DE9AP6eb.cjs +1 -0
- package/dist/is-promise.cjs +1 -12
- package/dist/is-promise.d.cts +2 -0
- package/dist/is-promise.d.mts +2 -0
- package/dist/is-promise.mjs +1 -1
- package/dist/is-react-element-BBgqI-yD.d.cts +5 -0
- package/dist/is-react-element-BBgqI-yD.d.cts.map +1 -0
- package/dist/is-react-element-CyrQE5Qy.d.mts +5 -0
- package/dist/is-react-element-CyrQE5Qy.d.mts.map +1 -0
- package/dist/is-react-element-GwN-78Xk.cjs +1 -0
- package/dist/is-react-element-s285_TUk.mjs +2 -0
- package/dist/is-react-element-s285_TUk.mjs.map +1 -0
- package/dist/is-react-element.cjs +1 -8
- package/dist/is-react-element.d.cts +2 -0
- package/dist/is-react-element.d.mts +2 -0
- package/dist/is-react-element.mjs +1 -1
- package/dist/is-ref-BiTQudvt.d.mts +14 -0
- package/dist/is-ref-BiTQudvt.d.mts.map +1 -0
- package/dist/is-ref-BqQN-H_W.cjs +1 -0
- package/dist/is-ref-C7Ce1mFX.d.cts +14 -0
- package/dist/is-ref-C7Ce1mFX.d.cts.map +1 -0
- package/dist/is-ref-DrnjEWuV.mjs +2 -0
- package/dist/is-ref-DrnjEWuV.mjs.map +1 -0
- package/dist/is-ref.cjs +1 -14
- package/dist/is-ref.d.cts +2 -0
- package/dist/is-ref.d.mts +2 -0
- package/dist/is-ref.mjs +1 -1
- package/dist/{is-regexp.d.ts → is-regexp-BRY1zuVr.d.mts} +5 -1
- package/dist/is-regexp-BRY1zuVr.d.mts.map +1 -0
- package/dist/is-regexp-BWzNkf_C.d.cts +20 -0
- package/dist/is-regexp-BWzNkf_C.d.cts.map +1 -0
- package/dist/is-regexp-Beh3UwFi.mjs +2 -0
- package/dist/is-regexp-Beh3UwFi.mjs.map +1 -0
- package/dist/is-regexp-CLE6yUfd.cjs +1 -0
- package/dist/is-regexp.cjs +1 -10
- package/dist/is-regexp.d.cts +2 -0
- package/dist/is-regexp.d.mts +2 -0
- package/dist/is-regexp.mjs +1 -1
- package/dist/is-select-option-B5qnA3jc.d.cts +49 -0
- package/dist/is-select-option-B5qnA3jc.d.cts.map +1 -0
- package/dist/is-select-option-DlTYFdDD.cjs +1 -0
- package/dist/is-select-option-DokUPHZT.d.mts +49 -0
- package/dist/is-select-option-DokUPHZT.d.mts.map +1 -0
- package/dist/is-select-option-U8pDtgdu.mjs +2 -0
- package/dist/is-select-option-U8pDtgdu.mjs.map +1 -0
- package/dist/is-select-option.cjs +1 -15
- package/dist/is-select-option.d.cts +2 -0
- package/dist/is-select-option.d.mts +2 -0
- package/dist/is-select-option.mjs +1 -1
- package/dist/is-set-BKGJRvlT.cjs +1 -0
- package/dist/{is-set.d.ts → is-set-DHpYu7nt.d.cts} +5 -1
- package/dist/is-set-DHpYu7nt.d.cts.map +1 -0
- package/dist/is-set-Tym9nZwJ.d.mts +11 -0
- package/dist/is-set-Tym9nZwJ.d.mts.map +1 -0
- package/dist/is-set-XlU8yblR.mjs +2 -0
- package/dist/is-set-XlU8yblR.mjs.map +1 -0
- package/dist/is-set-array-BuFd2cLT.d.cts +11 -0
- package/dist/is-set-array-BuFd2cLT.d.cts.map +1 -0
- package/dist/is-set-array-C8erkOGG.cjs +1 -0
- package/dist/is-set-array-D6GXc5K_.mjs +2 -0
- package/dist/is-set-array-D6GXc5K_.mjs.map +1 -0
- package/dist/is-set-array-jWb--6v8.d.mts +11 -0
- package/dist/is-set-array-jWb--6v8.d.mts.map +1 -0
- package/dist/is-set-array.cjs +1 -0
- package/dist/is-set-array.d.cts +2 -0
- package/dist/is-set-array.d.mts +2 -0
- package/dist/is-set-array.mjs +1 -0
- package/dist/{is-set-object.d.ts → is-set-object-BC019q7K.d.mts} +5 -1
- package/dist/is-set-object-BC019q7K.d.mts.map +1 -0
- package/dist/is-set-object-Cz1QFuwH.cjs +1 -0
- package/dist/is-set-object-DExQ3zYh.d.cts +11 -0
- package/dist/is-set-object-DExQ3zYh.d.cts.map +1 -0
- package/dist/is-set-object-m4I3zBXN.mjs +2 -0
- package/dist/is-set-object-m4I3zBXN.mjs.map +1 -0
- package/dist/is-set-object.cjs +1 -15
- package/dist/is-set-object.d.cts +2 -0
- package/dist/is-set-object.d.mts +2 -0
- package/dist/is-set-object.mjs +1 -1
- package/dist/is-set-string-B4g6w3Ao.mjs +2 -0
- package/dist/is-set-string-B4g6w3Ao.mjs.map +1 -0
- package/dist/is-set-string-BR3f8OLj.cjs +1 -0
- package/dist/{is-set-string.d.ts → is-set-string-D3GGXdVc.d.mts} +5 -1
- package/dist/is-set-string-D3GGXdVc.d.mts.map +1 -0
- package/dist/is-set-string-DvPRqQ7I.d.cts +11 -0
- package/dist/is-set-string-DvPRqQ7I.d.cts.map +1 -0
- package/dist/is-set-string.cjs +1 -16
- package/dist/is-set-string.d.cts +2 -0
- package/dist/is-set-string.d.mts +2 -0
- package/dist/is-set-string.mjs +1 -1
- package/dist/is-set.cjs +1 -15
- package/dist/is-set.d.cts +2 -0
- package/dist/is-set.d.mts +2 -0
- package/dist/is-set.mjs +1 -1
- package/dist/is-string-25AuUYxV.mjs +2 -0
- package/dist/is-string-25AuUYxV.mjs.map +1 -0
- package/dist/is-string-BmMYO2ay.d.cts +5 -0
- package/dist/is-string-BmMYO2ay.d.cts.map +1 -0
- package/dist/is-string-C8M6iZP3.cjs +1 -0
- package/dist/is-string-CHChgess.d.mts +5 -0
- package/dist/is-string-CHChgess.d.mts.map +1 -0
- package/dist/is-string.cjs +1 -14
- package/dist/is-string.d.cts +2 -0
- package/dist/is-string.d.mts +2 -0
- package/dist/is-string.mjs +1 -1
- package/dist/is-symbol-B3bYbkXB.d.cts +5 -0
- package/dist/is-symbol-B3bYbkXB.d.cts.map +1 -0
- package/dist/is-symbol-Bv9PzCUy.cjs +1 -0
- package/dist/is-symbol-D_u8UXTL.mjs +2 -0
- package/dist/is-symbol-D_u8UXTL.mjs.map +1 -0
- package/dist/is-symbol-Da3X6_5Z.d.mts +5 -0
- package/dist/is-symbol-Da3X6_5Z.d.mts.map +1 -0
- package/dist/is-symbol.cjs +1 -14
- package/dist/is-symbol.d.cts +2 -0
- package/dist/is-symbol.d.mts +2 -0
- package/dist/is-symbol.mjs +1 -1
- package/dist/is-typed-BqNSbnTJ.d.mts +14 -0
- package/dist/is-typed-BqNSbnTJ.d.mts.map +1 -0
- package/dist/is-typed-C4R6VJn5.mjs +2 -0
- package/dist/is-typed-C4R6VJn5.mjs.map +1 -0
- package/dist/is-typed-CxfGWrLF.d.cts +14 -0
- package/dist/is-typed-CxfGWrLF.d.cts.map +1 -0
- package/dist/is-typed-array--rJ89kK-.cjs +1 -0
- package/dist/is-typed-array-BElfTaKt.mjs +2 -0
- package/dist/is-typed-array-BElfTaKt.mjs.map +1 -0
- package/dist/is-typed-array-BhzKADmY.d.mts +5 -0
- package/dist/is-typed-array-BhzKADmY.d.mts.map +1 -0
- package/dist/is-typed-array-D42U77hG.d.cts +5 -0
- package/dist/is-typed-array-D42U77hG.d.cts.map +1 -0
- package/dist/is-typed-array.cjs +1 -9
- package/dist/is-typed-array.d.cts +2 -0
- package/dist/is-typed-array.d.mts +2 -0
- package/dist/is-typed-array.mjs +1 -1
- package/dist/is-typed-nhM341AY.cjs +1 -0
- package/dist/is-typed.cjs +1 -16
- package/dist/is-typed.d.cts +2 -0
- package/dist/is-typed.d.mts +2 -0
- package/dist/is-typed.mjs +1 -1
- package/dist/is-undefined-8YL_WG1_.d.mts +5 -0
- package/dist/is-undefined-8YL_WG1_.d.mts.map +1 -0
- package/dist/is-undefined-CocoROYF.cjs +1 -0
- package/dist/is-undefined-DbcFVo7P.d.cts +5 -0
- package/dist/is-undefined-DbcFVo7P.d.cts.map +1 -0
- package/dist/is-undefined-zJ4jMmsc.mjs +2 -0
- package/dist/is-undefined-zJ4jMmsc.mjs.map +1 -0
- package/dist/is-undefined.cjs +1 -8
- package/dist/is-undefined.d.cts +2 -0
- package/dist/is-undefined.d.mts +2 -0
- package/dist/is-undefined.mjs +1 -1
- package/dist/{is-url.d.ts → is-url-B232i4b5.d.mts} +5 -1
- package/dist/is-url-B232i4b5.d.mts.map +1 -0
- package/dist/is-url-BExxFY5T.cjs +1 -0
- package/dist/is-url-Bg2vBFiD.mjs +2 -0
- package/dist/is-url-Bg2vBFiD.mjs.map +1 -0
- package/dist/is-url-ClJ_Hmae.d.cts +11 -0
- package/dist/is-url-ClJ_Hmae.d.cts.map +1 -0
- package/dist/is-url.cjs +1 -10
- package/dist/is-url.d.cts +2 -0
- package/dist/is-url.d.mts +2 -0
- package/dist/is-url.mjs +1 -1
- package/dist/number-HSvmYyl0.d.mts +24 -0
- package/dist/number-HSvmYyl0.d.mts.map +1 -0
- package/dist/number-lymv4bwC.d.cts +24 -0
- package/dist/number-lymv4bwC.d.cts.map +1 -0
- package/dist/{property-exists.d.ts → property-exists-B4QTYKG6.d.mts} +6 -2
- package/dist/property-exists-B4QTYKG6.d.mts.map +1 -0
- package/dist/property-exists-BUPlKKW9.d.cts +20 -0
- package/dist/property-exists-BUPlKKW9.d.cts.map +1 -0
- package/dist/property-exists-YUMbdTfN.cjs +1 -0
- package/dist/property-exists-clG9W4n9.mjs +2 -0
- package/dist/property-exists-clG9W4n9.mjs.map +1 -0
- package/dist/property-exists.cjs +1 -17
- package/dist/property-exists.d.cts +2 -0
- package/dist/property-exists.d.mts +2 -0
- package/dist/property-exists.mjs +1 -1
- package/dist/type-detect-D9u_obxe.mjs +2 -0
- package/dist/type-detect-D9u_obxe.mjs.map +1 -0
- package/dist/type-detect-Ddd2473y.cjs +1 -0
- package/dist/type-detect-DkhvTvm2.d.cts +5 -0
- package/dist/type-detect-DkhvTvm2.d.cts.map +1 -0
- package/dist/type-detect-lSIXsSvX.d.mts +5 -0
- package/dist/type-detect-lSIXsSvX.d.mts.map +1 -0
- package/dist/type-detect.cjs +1 -38
- package/dist/type-detect.d.cts +2 -0
- package/dist/type-detect.d.mts +2 -0
- package/dist/type-detect.mjs +1 -1
- package/dist/utilities-BcSwta4F.d.cts +20 -0
- package/dist/utilities-BcSwta4F.d.cts.map +1 -0
- package/dist/utilities-Dj_-Bvo1.d.mts +20 -0
- package/dist/utilities-Dj_-Bvo1.d.mts.map +1 -0
- package/package.json +142 -626
- package/dist/get-object-tag.d.ts +0 -7
- package/dist/index.d.ts +0 -50
- package/dist/is-async-iterable.d.ts +0 -7
- package/dist/is-buffer.d.ts +0 -5
- package/dist/is-collection.d.ts +0 -8
- package/dist/is-deep-key.d.ts +0 -35
- package/dist/is-empty-string.d.ts +0 -7
- package/dist/is-empty.d.ts +0 -8
- package/dist/is-equal.d.ts +0 -1
- package/dist/is-file-result.d.ts +0 -8
- package/dist/is-float.d.ts +0 -8
- package/dist/is-function.d.ts +0 -10
- package/dist/is-mergeable-object.d.ts +0 -1
- package/dist/is-null.d.ts +0 -1
- package/dist/is-object-index.d.ts +0 -7
- package/dist/is-primitive.d.ts +0 -1
- package/dist/is-react-element.d.ts +0 -1
- package/dist/is-ref.d.ts +0 -8
- package/dist/is-select-option.d.ts +0 -8
- package/dist/is-string.d.ts +0 -1
- package/dist/is-symbol.d.ts +0 -1
- package/dist/is-typed-array.d.ts +0 -1
- package/dist/is-typed.d.ts +0 -8
- package/dist/is-undefined.d.ts +0 -1
- package/dist/type-detect.d.ts +0 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
//#region src/property-exists.d.ts
|
|
1
2
|
/**
|
|
2
3
|
* Check if the provided object has the provided property
|
|
3
4
|
*
|
|
@@ -5,7 +6,7 @@
|
|
|
5
6
|
* @param propertyKey - The property to check
|
|
6
7
|
* @returns An indicator specifying if the object has the provided property
|
|
7
8
|
*/
|
|
8
|
-
|
|
9
|
+
declare const propertyExists: (object: any, propertyKey: PropertyKey) => boolean;
|
|
9
10
|
/**
|
|
10
11
|
* Check if the provided object has the provided property and if it's safe to merge
|
|
11
12
|
*
|
|
@@ -13,4 +14,7 @@ export declare const propertyExists: (object: any, propertyKey: PropertyKey) =>
|
|
|
13
14
|
* @param propertyKey - The property to check
|
|
14
15
|
* @returns An indicator specifying if the object has the provided property and if it's safe to merge
|
|
15
16
|
*/
|
|
16
|
-
|
|
17
|
+
declare const propertyUnsafe: (object: any, propertyKey: PropertyKey) => boolean;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { propertyUnsafe as n, propertyExists as t };
|
|
20
|
+
//# sourceMappingURL=property-exists-B4QTYKG6.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property-exists-B4QTYKG6.d.mts","names":[],"sources":["../src/property-exists.ts"],"sourcesContent":[],"mappings":";;AA2BA;AAeA;;;;;cAfa,2CAA4C;;;;;;;;cAe5C,2CAA4C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/property-exists.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Check if the provided object has the provided property
|
|
4
|
+
*
|
|
5
|
+
* @param object - The object to check
|
|
6
|
+
* @param propertyKey - The property to check
|
|
7
|
+
* @returns An indicator specifying if the object has the provided property
|
|
8
|
+
*/
|
|
9
|
+
declare const propertyExists: (object: any, propertyKey: PropertyKey) => boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Check if the provided object has the provided property and if it's safe to merge
|
|
12
|
+
*
|
|
13
|
+
* @param object - The object to check
|
|
14
|
+
* @param propertyKey - The property to check
|
|
15
|
+
* @returns An indicator specifying if the object has the provided property and if it's safe to merge
|
|
16
|
+
*/
|
|
17
|
+
declare const propertyUnsafe: (object: any, propertyKey: PropertyKey) => boolean;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { propertyUnsafe as n, propertyExists as t };
|
|
20
|
+
//# sourceMappingURL=property-exists-BUPlKKW9.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property-exists-BUPlKKW9.d.cts","names":[],"sources":["../src/property-exists.ts"],"sourcesContent":[],"mappings":";;AA2BA;AAeA;;;;;cAfa,2CAA4C;;;;;;;;cAe5C,2CAA4C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./is-object-Dm1523kn.cjs`),t=(t,n)=>{try{return e.i(t)&&n in t}catch{return!1}},n=(e,n)=>t(e,n)&&!(Object.hasOwnProperty.call(e,n)&&Object.propertyIsEnumerable.call(e,n));Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return t}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"property-exists-clG9W4n9.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":"6CA2BA,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"}
|
package/dist/property-exists.cjs
CHANGED
|
@@ -1,17 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.propertyUnsafe = exports.propertyExists = void 0;
|
|
7
|
-
var _isObject = require("./is-object.cjs");
|
|
8
|
-
const propertyExists = (r, t) => {
|
|
9
|
-
try {
|
|
10
|
-
return (0, _isObject.isObject)(r) && t in r;
|
|
11
|
-
} catch {
|
|
12
|
-
return !1;
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
propertyUnsafe = (r, t) => propertyExists(r, t) && !(Object.hasOwnProperty.call(r, t) && Object.propertyIsEnumerable.call(r, t));
|
|
16
|
-
exports.propertyUnsafe = propertyUnsafe;
|
|
17
|
-
exports.propertyExists = propertyExists;
|
|
1
|
+
const e=require(`./property-exists-YUMbdTfN.cjs`);exports.propertyExists=e.t,exports.propertyUnsafe=e.n;
|
package/dist/property-exists.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{n as e,t}from"./property-exists-clG9W4n9.mjs";export{t as propertyExists,e as propertyUnsafe};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./is-buffer-BhNtqu5n.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 t};
|
|
2
|
+
//# sourceMappingURL=type-detect-D9u_obxe.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-detect-D9u_obxe.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":"6CAoBA,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require(`./is-buffer-D9p_5l0d.cjs`),t=(e=>(typeof globalThis==`object`||Object.defineProperty(e,`typeDetectGlobalObject`,{get(){return this},configurable:!0}),globalThis))(Object.prototype);function n(n){if(e.t(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)}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return n}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-detect-DkhvTvm2.d.cts","names":[],"sources":["../src/type-detect.ts"],"sourcesContent":[],"mappings":";iBAuCgB,UAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"type-detect-lSIXsSvX.d.mts","names":[],"sources":["../src/type-detect.ts"],"sourcesContent":[],"mappings":";iBAuCgB,UAAA"}
|
package/dist/type-detect.cjs
CHANGED
|
@@ -1,38 +1 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.typeDetect = typeDetect;
|
|
7
|
-
var _isBuffer = require("./is-buffer.cjs");
|
|
8
|
-
const a = (t => (typeof globalThis == "object" || Object.defineProperty(t, "typeDetectGlobalObject", {
|
|
9
|
-
get() {
|
|
10
|
-
return this;
|
|
11
|
-
},
|
|
12
|
-
configurable: !0
|
|
13
|
-
}), globalThis))(Object.prototype);
|
|
14
|
-
function typeDetect(t) {
|
|
15
|
-
if ((0, _isBuffer.isBuffer)(t)) return "Buffer";
|
|
16
|
-
const r = typeof t;
|
|
17
|
-
if (r !== "object") return r;
|
|
18
|
-
if (t === null) return "null";
|
|
19
|
-
if (t === a) return "global";
|
|
20
|
-
if (Array.isArray(t) && (Symbol.toStringTag === void 0 || !(Symbol.toStringTag in t))) return "Array";
|
|
21
|
-
if (typeof globalThis == "object" && globalThis !== null) {
|
|
22
|
-
if (typeof globalThis.location == "object" && t === globalThis.location) return "Location";
|
|
23
|
-
if (typeof globalThis.document == "object" && t === globalThis.document) return "Document";
|
|
24
|
-
if (typeof globalThis.navigator == "object") {
|
|
25
|
-
if (typeof globalThis.navigator.mimeTypes == "object" && t === globalThis.navigator.mimeTypes) return "MimeTypeArray";
|
|
26
|
-
if (typeof globalThis.navigator.plugins == "object" && t === globalThis.navigator.plugins) return "PluginArray";
|
|
27
|
-
}
|
|
28
|
-
if ((typeof globalThis.HTMLElement == "function" || typeof globalThis.HTMLElement == "object") && t instanceof globalThis.HTMLElement) {
|
|
29
|
-
if (t.tagName === "BLOCKQUOTE") return "HTMLQuoteElement";
|
|
30
|
-
if (t.tagName === "TD") return "HTMLTableDataCellElement";
|
|
31
|
-
if (t.tagName === "TH") return "HTMLTableHeaderCellElement";
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
const o = Symbol.toStringTag !== void 0 && t[Symbol.toStringTag];
|
|
35
|
-
if (typeof o == "string") return o;
|
|
36
|
-
const e = Object.getPrototypeOf(t);
|
|
37
|
-
return e === RegExp.prototype ? "RegExp" : e === Date.prototype ? "Date" : typeof Promise < "u" && e === Promise.prototype ? "Promise" : typeof Set < "u" && e === Set.prototype ? "Set" : typeof Map < "u" && e === Map.prototype ? "Map" : typeof WeakSet < "u" && e === WeakSet.prototype ? "WeakSet" : typeof WeakMap < "u" && e === WeakMap.prototype ? "WeakMap" : typeof DataView < "u" && e === DataView.prototype ? "DataView" : typeof Map < "u" && e === Object.getPrototypeOf(new Map().entries()) ? "Map Iterator" : typeof Set < "u" && e === Object.getPrototypeOf(new Set().entries()) ? "Set Iterator" : typeof Array.prototype[Symbol.iterator] == "function" && e === Object.getPrototypeOf([][Symbol.iterator]()) ? "Array Iterator" : Symbol.iterator !== void 0 && typeof String.prototype[Symbol.iterator] == "function" && Object.getPrototypeOf(""[Symbol.iterator]()) && e === Object.getPrototypeOf(""[Symbol.iterator]()) ? "String Iterator" : e === null ? "Object" : Object.prototype.toString.call(t).slice(8, -1);
|
|
38
|
-
}
|
|
1
|
+
require(`./is-buffer-D9p_5l0d.cjs`);const e=require(`./type-detect-Ddd2473y.cjs`);exports.typeDetect=e.t;
|
package/dist/type-detect.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"./is-buffer-BhNtqu5n.mjs";import{t as e}from"./type-detect-D9u_obxe.mjs";export{e as typeDetect};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region ../types/src/utilities.d.ts
|
|
2
|
+
|
|
3
|
+
type ComputeRange<N extends number, Result extends unknown[] = []> = Result["length"] extends N ? Result : ComputeRange<N, [...Result, Result["length"]]>;
|
|
4
|
+
type Index40 = ComputeRange<40>[number];
|
|
5
|
+
/**
|
|
6
|
+
* A utility type for specifying a name/value pair.
|
|
7
|
+
*/
|
|
8
|
+
interface NameValuePair<TValue, TName = string> {
|
|
9
|
+
/**
|
|
10
|
+
* The name of the pair
|
|
11
|
+
*/
|
|
12
|
+
name: TName;
|
|
13
|
+
/**
|
|
14
|
+
* The value of the pair
|
|
15
|
+
*/
|
|
16
|
+
value: TValue;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { NameValuePair as n, Index40 as t };
|
|
20
|
+
//# sourceMappingURL=utilities-BcSwta4F.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities-BcSwta4F.d.cts","names":[],"sources":["../../types/src/utilities.ts"],"sourcesContent":[],"mappings":";;KA6CY,gEAGR,yBAAyB,IACzB,SACA,aAAa,OAAO,QAAQ;KAEpB,OAAA,GAAU;;;;UAKL;;;;QAIT;;;;SAKC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region ../types/src/utilities.d.ts
|
|
2
|
+
|
|
3
|
+
type ComputeRange<N extends number, Result extends unknown[] = []> = Result["length"] extends N ? Result : ComputeRange<N, [...Result, Result["length"]]>;
|
|
4
|
+
type Index40 = ComputeRange<40>[number];
|
|
5
|
+
/**
|
|
6
|
+
* A utility type for specifying a name/value pair.
|
|
7
|
+
*/
|
|
8
|
+
interface NameValuePair<TValue, TName = string> {
|
|
9
|
+
/**
|
|
10
|
+
* The name of the pair
|
|
11
|
+
*/
|
|
12
|
+
name: TName;
|
|
13
|
+
/**
|
|
14
|
+
* The value of the pair
|
|
15
|
+
*/
|
|
16
|
+
value: TValue;
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { NameValuePair as n, Index40 as t };
|
|
20
|
+
//# sourceMappingURL=utilities-Dj_-Bvo1.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities-Dj_-Bvo1.d.mts","names":[],"sources":["../../types/src/utilities.ts"],"sourcesContent":[],"mappings":";;KA6CY,gEAGR,yBAAyB,IACzB,SACA,aAAa,OAAO,QAAQ;KAEpB,OAAA,GAAU;;;;UAKL;;;;QAIT;;;;SAKC"}
|