@bitfiber/utils 1.1.1 → 1.1.2
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/CONTRIBUTING.md +26 -17
- package/LICENSE.txt +1 -1
- package/README.md +46 -36
- package/dist/cjs/arr/at/at.js +7 -7
- package/dist/cjs/arr/at/at.js.map +1 -1
- package/dist/cjs/arr/cnd/cnd.js +94 -94
- package/dist/cjs/arr/cnd/cnd.js.map +1 -1
- package/dist/cjs/arr/diff-arr/diff-arr.js +33 -33
- package/dist/cjs/arr/diff-arr/diff-arr.js.map +1 -1
- package/dist/cjs/arr/fill/fill.js +7 -7
- package/dist/cjs/arr/for-each-arr/for-each-arr.js +21 -21
- package/dist/cjs/arr/for-each-arr/for-each-arr.js.map +1 -1
- package/dist/cjs/arr/index-by/index-by.js +15 -15
- package/dist/cjs/arr/index-by/index-by.js.map +1 -1
- package/dist/cjs/arr/index.js +19 -19
- package/dist/cjs/arr/pluck/pluck.js +11 -11
- package/dist/cjs/arr/within/within.js +9 -9
- package/dist/cjs/common/copy/copy.js +83 -83
- package/dist/cjs/common/copy/copy.js.map +1 -1
- package/dist/cjs/common/equals/equals.js +119 -119
- package/dist/cjs/common/equals/equals.js.map +1 -1
- package/dist/cjs/common/error.js +13 -13
- package/dist/cjs/common/error.js.map +1 -1
- package/dist/cjs/common/for-each/for-each.js +36 -36
- package/dist/cjs/common/for-each/for-each.js.map +1 -1
- package/dist/cjs/common/get-unique-num-id/get-unique-num-id.js +8 -8
- package/dist/cjs/common/get-unique-str-id/get-unique-str-id.js +10 -10
- package/dist/cjs/common/get-unique-str-id/get-unique-str-id.js.map +1 -1
- package/dist/cjs/common/has-iterator/has-iterator.js +7 -7
- package/dist/cjs/common/index.js +61 -61
- package/dist/cjs/common/interrupt.js +4 -4
- package/dist/cjs/common/is/is.js +130 -128
- package/dist/cjs/common/is/is.js.map +1 -1
- package/dist/cjs/common/is-empty/is-empty.js +28 -28
- package/dist/cjs/common/is-empty/is-empty.js.map +1 -1
- package/dist/cjs/common/random/random.js +9 -8
- package/dist/cjs/common/random/random.js.map +1 -1
- package/dist/cjs/common/same/same.js +7 -7
- package/dist/cjs/common/stub/stub.js +7 -7
- package/dist/cjs/common/to-float/to-float.js +9 -9
- package/dist/cjs/common/to-int/to-int.js +9 -9
- package/dist/cjs/common/to-sorted-string/to-sorted-string.js +52 -52
- package/dist/cjs/common/to-sorted-string/to-sorted-string.js.map +1 -1
- package/dist/cjs/common/types.js +2 -2
- package/dist/cjs/dom/closest/closest.js +20 -24
- package/dist/cjs/dom/closest/closest.js.map +1 -1
- package/dist/cjs/dom/document/document.js +18 -18
- package/dist/cjs/dom/document/document.js.map +1 -1
- package/dist/cjs/dom/download-file/download-file.js +27 -29
- package/dist/cjs/dom/download-file/download-file.js.map +1 -1
- package/dist/cjs/dom/for-each-elements/for-each-elements.js +12 -12
- package/dist/cjs/dom/for-each-elements/for-each-elements.js.map +1 -1
- package/dist/cjs/dom/for-each-nodes/for-each-nodes.js +12 -12
- package/dist/cjs/dom/for-each-nodes/for-each-nodes.js.map +1 -1
- package/dist/cjs/dom/get-all-styles/get-all-styles.js +9 -9
- package/dist/cjs/dom/get-body/get-body.js +9 -9
- package/dist/cjs/dom/get-html/get-html.js +9 -9
- package/dist/cjs/dom/get-non-static-parent/get-non-static-parent.js +8 -8
- package/dist/cjs/dom/get-offset-from-doc/get-offset-from-doc.js +17 -17
- package/dist/cjs/dom/get-offset-from-parent/get-offset-from-parent.js +41 -41
- package/dist/cjs/dom/get-offset-from-parent/get-offset-from-parent.js.map +1 -1
- package/dist/cjs/dom/get-offset-from-win/get-offset-from-win.js +7 -7
- package/dist/cjs/dom/get-scroll-width/get-scroll-width.js +28 -27
- package/dist/cjs/dom/get-scroll-width/get-scroll-width.js.map +1 -1
- package/dist/cjs/dom/get-style/get-style.js +21 -21
- package/dist/cjs/dom/get-style/get-style.js.map +1 -1
- package/dist/cjs/dom/get-styles/get-styles.js +10 -10
- package/dist/cjs/dom/get-valid-style-name/get-valid-style-name.js +39 -39
- package/dist/cjs/dom/get-valid-style-name/get-valid-style-name.js.map +1 -1
- package/dist/cjs/dom/get-window/get-window.js +17 -17
- package/dist/cjs/dom/get-window/get-window.js.map +1 -1
- package/dist/cjs/dom/has-name/has-name.js +7 -7
- package/dist/cjs/dom/index.js +52 -52
- package/dist/cjs/dom/is-comment/is-comment.js +7 -7
- package/dist/cjs/dom/is-element/is-element.js +7 -7
- package/dist/cjs/dom/is-text/is-text.js +7 -7
- package/dist/cjs/dom/set-offset-from-parent/set-offset-from-parent.js +38 -38
- package/dist/cjs/dom/set-offset-from-parent/set-offset-from-parent.js.map +1 -1
- package/dist/cjs/dom/set-style/set-style.js +10 -10
- package/dist/cjs/dom/set-styles/set-styles.js +13 -13
- package/dist/cjs/dom/types.js +2 -2
- package/dist/cjs/env/get-browser/get-browser.js +54 -54
- package/dist/cjs/env/get-browser/get-browser.js.map +1 -1
- package/dist/cjs/env/get-engine/get-engine.js +18 -18
- package/dist/cjs/env/get-engine/get-engine.js.map +1 -1
- package/dist/cjs/env/get-os/get-os.js +32 -32
- package/dist/cjs/env/get-os/get-os.js.map +1 -1
- package/dist/cjs/env/get-platform/get-platform.js +32 -32
- package/dist/cjs/env/get-platform/get-platform.js.map +1 -1
- package/dist/cjs/env/index.js +44 -44
- package/dist/cjs/env/is-browser/is-browser.js +9 -9
- package/dist/cjs/env/is-chrome-like/is-chrome-like.js +9 -9
- package/dist/cjs/env/is-desktop/is-desktop.js +9 -9
- package/dist/cjs/env/is-engine/is-engine.js +9 -9
- package/dist/cjs/env/is-firefox-like/is-firefox-like.js +9 -9
- package/dist/cjs/env/is-mobile/is-mobile.js +9 -9
- package/dist/cjs/env/is-os/is-os.js +9 -9
- package/dist/cjs/env/is-portable/is-portable.js +8 -8
- package/dist/cjs/env/is-safari-like/is-safari-like.js +9 -9
- package/dist/cjs/env/is-stationary/is-stationary.js +8 -8
- package/dist/cjs/env/is-tablet/is-tablet.js +9 -9
- package/dist/cjs/env/is-tv/is-tv.js +9 -9
- package/dist/cjs/env/matches/matches.js +23 -23
- package/dist/cjs/env/matches/matches.js.map +1 -1
- package/dist/cjs/env/matches-with-browsers/matches-with-browsers.js +35 -35
- package/dist/cjs/env/matches-with-browsers/matches-with-browsers.js.map +1 -1
- package/dist/cjs/env/matches-with-version/matches-with-version.js +39 -39
- package/dist/cjs/env/matches-with-version/matches-with-version.js.map +1 -1
- package/dist/cjs/env/private/private.js +58 -58
- package/dist/cjs/env/private/private.js.map +1 -1
- package/dist/cjs/env/types.js +2 -2
- package/dist/cjs/env/user-agent/user-agent.js +24 -24
- package/dist/cjs/env/user-agent/user-agent.js.map +1 -1
- package/dist/cjs/index.js +10 -10
- package/dist/cjs/num/in-range/in-range.js +27 -25
- package/dist/cjs/num/in-range/in-range.js.map +1 -1
- package/dist/cjs/num/index.js +7 -7
- package/dist/cjs/num/round/round.js +8 -8
- package/dist/cjs/obj/constant/constant.js +7 -7
- package/dist/cjs/obj/deep-constant/deep-constant.js +22 -15
- package/dist/cjs/obj/deep-constant/deep-constant.js.map +1 -1
- package/dist/cjs/obj/diff-obj/diff-obj.js +45 -45
- package/dist/cjs/obj/diff-obj/diff-obj.js.map +1 -1
- package/dist/cjs/obj/exclude/exclude.js +15 -15
- package/dist/cjs/obj/exclude/exclude.js.map +1 -1
- package/dist/cjs/obj/extend/extend.js +44 -40
- package/dist/cjs/obj/extend/extend.js.map +1 -1
- package/dist/cjs/obj/for-each-obj/for-each-obj.js +13 -13
- package/dist/cjs/obj/for-each-obj/for-each-obj.js.map +1 -1
- package/dist/cjs/obj/has-own/has-own.js +7 -7
- package/dist/cjs/obj/has-own/has-own.js.map +1 -1
- package/dist/cjs/obj/include/include.js +15 -15
- package/dist/cjs/obj/include/include.js.map +1 -1
- package/dist/cjs/obj/index.js +28 -28
- package/dist/cjs/obj/keys/keys.js +7 -7
- package/dist/cjs/obj/map-obj/map-obj.js +10 -10
- package/dist/cjs/obj/map-obj-to-arr/map-obj-to-arr.js +10 -10
- package/dist/cjs/obj/values/values.js +10 -10
- package/dist/cjs/str/index.js +9 -9
- package/dist/cjs/str/to-camel-case/to-camel-case.js +16 -12
- package/dist/cjs/str/to-camel-case/to-camel-case.js.map +1 -1
- package/dist/cjs/str/to-hash/to-hash.js +17 -18
- package/dist/cjs/str/to-hash/to-hash.js.map +1 -1
- package/dist/cjs/str/with-capital/with-capital.js +7 -7
- package/dist/esm/arr/at/at.js +3 -3
- package/dist/esm/arr/at/at.js.map +1 -1
- package/dist/esm/arr/cnd/cnd.js +90 -90
- package/dist/esm/arr/cnd/cnd.js.map +1 -1
- package/dist/esm/arr/diff-arr/diff-arr.js +29 -29
- package/dist/esm/arr/diff-arr/diff-arr.js.map +1 -1
- package/dist/esm/arr/fill/fill.js +3 -3
- package/dist/esm/arr/for-each-arr/for-each-arr.js +17 -17
- package/dist/esm/arr/for-each-arr/for-each-arr.js.map +1 -1
- package/dist/esm/arr/index-by/index-by.js +11 -11
- package/dist/esm/arr/index-by/index-by.js.map +1 -1
- package/dist/esm/arr/index.js +8 -8
- package/dist/esm/arr/pluck/pluck.js +7 -7
- package/dist/esm/arr/within/within.js +5 -5
- package/dist/esm/common/copy/copy.js +79 -79
- package/dist/esm/common/copy/copy.js.map +1 -1
- package/dist/esm/common/equals/equals.js +115 -115
- package/dist/esm/common/equals/equals.js.map +1 -1
- package/dist/esm/common/error.js +9 -9
- package/dist/esm/common/error.js.map +1 -1
- package/dist/esm/common/for-each/for-each.js +32 -32
- package/dist/esm/common/for-each/for-each.js.map +1 -1
- package/dist/esm/common/get-unique-num-id/get-unique-num-id.js +4 -4
- package/dist/esm/common/get-unique-str-id/get-unique-str-id.js +6 -6
- package/dist/esm/common/get-unique-str-id/get-unique-str-id.js.map +1 -1
- package/dist/esm/common/has-iterator/has-iterator.js +3 -3
- package/dist/esm/common/index.js +16 -16
- package/dist/esm/common/interrupt.js +1 -1
- package/dist/esm/common/is/is.js +100 -98
- package/dist/esm/common/is/is.js.map +1 -1
- package/dist/esm/common/is-empty/is-empty.js +24 -24
- package/dist/esm/common/is-empty/is-empty.js.map +1 -1
- package/dist/esm/common/random/random.js +5 -4
- package/dist/esm/common/random/random.js.map +1 -1
- package/dist/esm/common/same/same.js +3 -3
- package/dist/esm/common/stub/stub.js +3 -3
- package/dist/esm/common/to-float/to-float.js +5 -5
- package/dist/esm/common/to-int/to-int.js +5 -5
- package/dist/esm/common/to-sorted-string/to-sorted-string.js +48 -48
- package/dist/esm/common/to-sorted-string/to-sorted-string.js.map +1 -1
- package/dist/esm/common/types.js +1 -1
- package/dist/esm/dom/closest/closest.js +16 -20
- package/dist/esm/dom/closest/closest.js.map +1 -1
- package/dist/esm/dom/document/document.js +13 -13
- package/dist/esm/dom/document/document.js.map +1 -1
- package/dist/esm/dom/download-file/download-file.js +23 -25
- package/dist/esm/dom/download-file/download-file.js.map +1 -1
- package/dist/esm/dom/for-each-elements/for-each-elements.js +8 -8
- package/dist/esm/dom/for-each-elements/for-each-elements.js.map +1 -1
- package/dist/esm/dom/for-each-nodes/for-each-nodes.js +8 -8
- package/dist/esm/dom/for-each-nodes/for-each-nodes.js.map +1 -1
- package/dist/esm/dom/get-all-styles/get-all-styles.js +5 -5
- package/dist/esm/dom/get-body/get-body.js +5 -5
- package/dist/esm/dom/get-html/get-html.js +5 -5
- package/dist/esm/dom/get-non-static-parent/get-non-static-parent.js +4 -4
- package/dist/esm/dom/get-offset-from-doc/get-offset-from-doc.js +13 -13
- package/dist/esm/dom/get-offset-from-parent/get-offset-from-parent.js +37 -37
- package/dist/esm/dom/get-offset-from-parent/get-offset-from-parent.js.map +1 -1
- package/dist/esm/dom/get-offset-from-win/get-offset-from-win.js +3 -3
- package/dist/esm/dom/get-scroll-width/get-scroll-width.js +24 -23
- package/dist/esm/dom/get-scroll-width/get-scroll-width.js.map +1 -1
- package/dist/esm/dom/get-style/get-style.js +17 -17
- package/dist/esm/dom/get-style/get-style.js.map +1 -1
- package/dist/esm/dom/get-styles/get-styles.js +6 -6
- package/dist/esm/dom/get-valid-style-name/get-valid-style-name.js +35 -35
- package/dist/esm/dom/get-valid-style-name/get-valid-style-name.js.map +1 -1
- package/dist/esm/dom/get-window/get-window.js +13 -13
- package/dist/esm/dom/get-window/get-window.js.map +1 -1
- package/dist/esm/dom/has-name/has-name.js +3 -3
- package/dist/esm/dom/index.js +24 -24
- package/dist/esm/dom/is-comment/is-comment.js +3 -3
- package/dist/esm/dom/is-element/is-element.js +3 -3
- package/dist/esm/dom/is-text/is-text.js +3 -3
- package/dist/esm/dom/set-offset-from-parent/set-offset-from-parent.js +34 -34
- package/dist/esm/dom/set-offset-from-parent/set-offset-from-parent.js.map +1 -1
- package/dist/esm/dom/set-style/set-style.js +6 -6
- package/dist/esm/dom/set-styles/set-styles.js +9 -9
- package/dist/esm/dom/types.js +1 -1
- package/dist/esm/env/get-browser/get-browser.js +49 -49
- package/dist/esm/env/get-browser/get-browser.js.map +1 -1
- package/dist/esm/env/get-engine/get-engine.js +13 -13
- package/dist/esm/env/get-engine/get-engine.js.map +1 -1
- package/dist/esm/env/get-os/get-os.js +27 -27
- package/dist/esm/env/get-os/get-os.js.map +1 -1
- package/dist/esm/env/get-platform/get-platform.js +27 -27
- package/dist/esm/env/get-platform/get-platform.js.map +1 -1
- package/dist/esm/env/index.js +20 -20
- package/dist/esm/env/is-browser/is-browser.js +5 -5
- package/dist/esm/env/is-chrome-like/is-chrome-like.js +5 -5
- package/dist/esm/env/is-desktop/is-desktop.js +5 -5
- package/dist/esm/env/is-engine/is-engine.js +5 -5
- package/dist/esm/env/is-firefox-like/is-firefox-like.js +5 -5
- package/dist/esm/env/is-mobile/is-mobile.js +5 -5
- package/dist/esm/env/is-os/is-os.js +5 -5
- package/dist/esm/env/is-portable/is-portable.js +4 -4
- package/dist/esm/env/is-safari-like/is-safari-like.js +5 -5
- package/dist/esm/env/is-stationary/is-stationary.js +4 -4
- package/dist/esm/env/is-tablet/is-tablet.js +5 -5
- package/dist/esm/env/is-tv/is-tv.js +5 -5
- package/dist/esm/env/matches/matches.js +19 -19
- package/dist/esm/env/matches/matches.js.map +1 -1
- package/dist/esm/env/matches-with-browsers/matches-with-browsers.js +31 -31
- package/dist/esm/env/matches-with-browsers/matches-with-browsers.js.map +1 -1
- package/dist/esm/env/matches-with-version/matches-with-version.js +35 -35
- package/dist/esm/env/matches-with-version/matches-with-version.js.map +1 -1
- package/dist/esm/env/private/private.js +52 -52
- package/dist/esm/env/private/private.js.map +1 -1
- package/dist/esm/env/types.js +1 -1
- package/dist/esm/env/user-agent/user-agent.js +19 -19
- package/dist/esm/env/user-agent/user-agent.js.map +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/num/in-range/in-range.js +23 -21
- package/dist/esm/num/in-range/in-range.js.map +1 -1
- package/dist/esm/num/index.js +2 -2
- package/dist/esm/num/round/round.js +4 -4
- package/dist/esm/obj/constant/constant.js +3 -3
- package/dist/esm/obj/deep-constant/deep-constant.js +18 -11
- package/dist/esm/obj/deep-constant/deep-constant.js.map +1 -1
- package/dist/esm/obj/diff-obj/diff-obj.js +41 -41
- package/dist/esm/obj/diff-obj/diff-obj.js.map +1 -1
- package/dist/esm/obj/exclude/exclude.js +11 -11
- package/dist/esm/obj/exclude/exclude.js.map +1 -1
- package/dist/esm/obj/extend/extend.js +39 -35
- package/dist/esm/obj/extend/extend.js.map +1 -1
- package/dist/esm/obj/for-each-obj/for-each-obj.js +9 -9
- package/dist/esm/obj/for-each-obj/for-each-obj.js.map +1 -1
- package/dist/esm/obj/has-own/has-own.js +3 -3
- package/dist/esm/obj/has-own/has-own.js.map +1 -1
- package/dist/esm/obj/include/include.js +11 -11
- package/dist/esm/obj/include/include.js.map +1 -1
- package/dist/esm/obj/index.js +12 -12
- package/dist/esm/obj/keys/keys.js +3 -3
- package/dist/esm/obj/map-obj/map-obj.js +6 -6
- package/dist/esm/obj/map-obj-to-arr/map-obj-to-arr.js +6 -6
- package/dist/esm/obj/values/values.js +6 -6
- package/dist/esm/str/index.js +3 -3
- package/dist/esm/str/to-camel-case/to-camel-case.js +12 -8
- package/dist/esm/str/to-camel-case/to-camel-case.js.map +1 -1
- package/dist/esm/str/to-hash/to-hash.js +13 -14
- package/dist/esm/str/to-hash/to-hash.js.map +1 -1
- package/dist/esm/str/with-capital/with-capital.js +3 -3
- package/dist/types/arr/at/at.d.ts +7 -7
- package/dist/types/arr/at/at.d.ts.map +1 -1
- package/dist/types/arr/cnd/cnd.d.ts +117 -117
- package/dist/types/arr/cnd/cnd.d.ts.map +1 -1
- package/dist/types/arr/diff-arr/diff-arr.d.ts +30 -30
- package/dist/types/arr/fill/fill.d.ts +8 -8
- package/dist/types/arr/for-each-arr/for-each-arr.d.ts +9 -9
- package/dist/types/arr/index-by/index-by.d.ts +9 -9
- package/dist/types/arr/index.d.ts +8 -8
- package/dist/types/arr/pluck/pluck.d.ts +7 -7
- package/dist/types/arr/within/within.d.ts +9 -9
- package/dist/types/common/copy/copy.d.ts +6 -6
- package/dist/types/common/equals/equals.d.ts +12 -12
- package/dist/types/common/error.d.ts +25 -25
- package/dist/types/common/for-each/for-each.d.ts +9 -9
- package/dist/types/common/get-unique-num-id/get-unique-num-id.d.ts +4 -4
- package/dist/types/common/get-unique-str-id/get-unique-str-id.d.ts +6 -4
- package/dist/types/common/get-unique-str-id/get-unique-str-id.d.ts.map +1 -1
- package/dist/types/common/has-iterator/has-iterator.d.ts +5 -5
- package/dist/types/common/index.d.ts +17 -17
- package/dist/types/common/interrupt.d.ts +4 -4
- package/dist/types/common/is/is.d.ts +136 -136
- package/dist/types/common/is-empty/is-empty.d.ts +6 -6
- package/dist/types/common/random/random.d.ts +7 -5
- package/dist/types/common/random/random.d.ts.map +1 -1
- package/dist/types/common/same/same.d.ts +6 -6
- package/dist/types/common/stub/stub.d.ts +4 -4
- package/dist/types/common/to-float/to-float.d.ts +6 -6
- package/dist/types/common/to-int/to-int.d.ts +6 -6
- package/dist/types/common/to-sorted-string/to-sorted-string.d.ts +7 -7
- package/dist/types/common/types.d.ts +64 -64
- package/dist/types/common/types.d.ts.map +1 -1
- package/dist/types/dom/closest/closest.d.ts +6 -6
- package/dist/types/dom/closest/closest.d.ts.map +1 -1
- package/dist/types/dom/document/document.d.ts +12 -12
- package/dist/types/dom/download-file/download-file.d.ts +7 -7
- package/dist/types/dom/download-file/download-file.d.ts.map +1 -1
- package/dist/types/dom/for-each-elements/for-each-elements.d.ts +8 -8
- package/dist/types/dom/for-each-nodes/for-each-nodes.d.ts +7 -7
- package/dist/types/dom/get-all-styles/get-all-styles.d.ts +5 -5
- package/dist/types/dom/get-body/get-body.d.ts +4 -4
- package/dist/types/dom/get-html/get-html.d.ts +4 -4
- package/dist/types/dom/get-non-static-parent/get-non-static-parent.d.ts +5 -5
- package/dist/types/dom/get-offset-from-doc/get-offset-from-doc.d.ts +6 -6
- package/dist/types/dom/get-offset-from-parent/get-offset-from-parent.d.ts +7 -7
- package/dist/types/dom/get-offset-from-win/get-offset-from-win.d.ts +6 -6
- package/dist/types/dom/get-scroll-width/get-scroll-width.d.ts +8 -8
- package/dist/types/dom/get-scroll-width/get-scroll-width.d.ts.map +1 -1
- package/dist/types/dom/get-style/get-style.d.ts +6 -6
- package/dist/types/dom/get-styles/get-styles.d.ts +9 -9
- package/dist/types/dom/get-valid-style-name/get-valid-style-name.d.ts +6 -6
- package/dist/types/dom/get-window/get-window.d.ts +4 -4
- package/dist/types/dom/has-name/has-name.d.ts +6 -6
- package/dist/types/dom/index.d.ts +25 -25
- package/dist/types/dom/is-comment/is-comment.d.ts +5 -5
- package/dist/types/dom/is-element/is-element.d.ts +5 -5
- package/dist/types/dom/is-text/is-text.d.ts +5 -5
- package/dist/types/dom/set-offset-from-parent/set-offset-from-parent.d.ts +8 -8
- package/dist/types/dom/set-style/set-style.d.ts +8 -8
- package/dist/types/dom/set-styles/set-styles.d.ts +8 -8
- package/dist/types/dom/types.d.ts +19 -19
- package/dist/types/env/get-browser/get-browser.d.ts +10 -10
- package/dist/types/env/get-engine/get-engine.d.ts +7 -7
- package/dist/types/env/get-os/get-os.d.ts +8 -8
- package/dist/types/env/get-platform/get-platform.d.ts +7 -7
- package/dist/types/env/index.d.ts +21 -21
- package/dist/types/env/is-browser/is-browser.d.ts +11 -11
- package/dist/types/env/is-chrome-like/is-chrome-like.d.ts +4 -4
- package/dist/types/env/is-desktop/is-desktop.d.ts +4 -4
- package/dist/types/env/is-engine/is-engine.d.ts +8 -8
- package/dist/types/env/is-firefox-like/is-firefox-like.d.ts +4 -4
- package/dist/types/env/is-mobile/is-mobile.d.ts +4 -4
- package/dist/types/env/is-os/is-os.d.ts +9 -9
- package/dist/types/env/is-portable/is-portable.d.ts +4 -4
- package/dist/types/env/is-safari-like/is-safari-like.d.ts +4 -4
- package/dist/types/env/is-stationary/is-stationary.d.ts +4 -4
- package/dist/types/env/is-tablet/is-tablet.d.ts +4 -4
- package/dist/types/env/is-tv/is-tv.d.ts +4 -4
- package/dist/types/env/matches/matches.d.ts +34 -34
- package/dist/types/env/matches-with-browsers/matches-with-browsers.d.ts +23 -23
- package/dist/types/env/matches-with-version/matches-with-version.d.ts +6 -6
- package/dist/types/env/private/private.d.ts +4 -4
- package/dist/types/env/types.d.ts +106 -106
- package/dist/types/env/types.d.ts.map +1 -1
- package/dist/types/env/user-agent/user-agent.d.ts +9 -9
- package/dist/types/index.d.ts +7 -7
- package/dist/types/num/in-range/in-range.d.ts +31 -31
- package/dist/types/num/in-range/in-range.d.ts.map +1 -1
- package/dist/types/num/index.d.ts +2 -2
- package/dist/types/num/round/round.d.ts +7 -7
- package/dist/types/obj/constant/constant.d.ts +6 -6
- package/dist/types/obj/deep-constant/deep-constant.d.ts +7 -6
- package/dist/types/obj/deep-constant/deep-constant.d.ts.map +1 -1
- package/dist/types/obj/diff-obj/diff-obj.d.ts +37 -37
- package/dist/types/obj/exclude/exclude.d.ts +7 -7
- package/dist/types/obj/extend/extend.d.ts +18 -16
- package/dist/types/obj/extend/extend.d.ts.map +1 -1
- package/dist/types/obj/for-each-obj/for-each-obj.d.ts +8 -8
- package/dist/types/obj/has-own/has-own.d.ts +8 -8
- package/dist/types/obj/has-own/has-own.d.ts.map +1 -1
- package/dist/types/obj/include/include.d.ts +7 -7
- package/dist/types/obj/index.d.ts +12 -12
- package/dist/types/obj/keys/keys.d.ts +6 -6
- package/dist/types/obj/map-obj/map-obj.d.ts +7 -7
- package/dist/types/obj/map-obj-to-arr/map-obj-to-arr.d.ts +7 -7
- package/dist/types/obj/values/values.d.ts +6 -6
- package/dist/types/str/index.d.ts +3 -3
- package/dist/types/str/to-camel-case/to-camel-case.d.ts +10 -10
- package/dist/types/str/to-camel-case/to-camel-case.d.ts.map +1 -1
- package/dist/types/str/to-hash/to-hash.d.ts +7 -7
- package/dist/types/str/to-hash/to-hash.d.ts.map +1 -1
- package/dist/types/str/with-capital/with-capital.d.ts +6 -6
- package/package.json +10 -10
- package/src/arr/at/at.ts +1 -2
- package/src/arr/diff-arr/diff-arr.ts +1 -1
- package/src/common/error.ts +2 -2
- package/src/common/get-unique-str-id/get-unique-str-id.ts +2 -0
- package/src/common/is/is.ts +2 -2
- package/src/common/is-empty/is-empty.ts +1 -1
- package/src/common/random/random.ts +6 -3
- package/src/dom/closest/closest.ts +4 -5
- package/src/dom/download-file/download-file.ts +3 -2
- package/src/dom/get-offset-from-parent/get-offset-from-parent.ts +2 -2
- package/src/dom/get-scroll-width/get-scroll-width.ts +3 -2
- package/src/dom/get-style/get-style.ts +3 -3
- package/src/dom/set-offset-from-parent/set-offset-from-parent.ts +3 -3
- package/src/env/matches-with-browsers/matches-with-browsers.ts +1 -1
- package/src/num/in-range/in-range.ts +3 -1
- package/src/obj/deep-constant/deep-constant.ts +12 -4
- package/src/obj/extend/extend.ts +11 -3
- package/src/obj/has-own/has-own.ts +1 -2
- package/src/str/to-camel-case/to-camel-case.ts +7 -1
- package/src/str/to-hash/to-hash.ts +1 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BrowserData } from '../';
|
|
2
|
-
/**
|
|
3
|
-
* Returns information about the browser.
|
|
4
|
-
* Possible browser names: opera | operaCoast | operaTouch | samsung | mz | yandex | uc | maxthon | kmeleon
|
|
5
|
-
* | wechat | qqLite | qq | edge | sailfish | webOS | tizen | miui | silk | phantomjs | slimerjs | qupzilla
|
|
6
|
-
* | electron | whale | focus | swing | epiphany | puffin | sleipnir | vivaldi | seamonkey | playstation4
|
|
7
|
-
* | playstation5 | googleSearch | firefox | chrome | android | safari | unknown | BotNames
|
|
8
|
-
*/
|
|
9
|
-
export declare function getBrowser(): BrowserData;
|
|
10
|
-
export declare function resetBrowser(): void;
|
|
1
|
+
import { BrowserData } from '../';
|
|
2
|
+
/**
|
|
3
|
+
* Returns information about the browser.
|
|
4
|
+
* Possible browser names: opera | operaCoast | operaTouch | samsung | mz | yandex | uc | maxthon | kmeleon
|
|
5
|
+
* | wechat | qqLite | qq | edge | sailfish | webOS | tizen | miui | silk | phantomjs | slimerjs | qupzilla
|
|
6
|
+
* | electron | whale | focus | swing | epiphany | puffin | sleipnir | vivaldi | seamonkey | playstation4
|
|
7
|
+
* | playstation5 | googleSearch | firefox | chrome | android | safari | unknown | BotNames
|
|
8
|
+
*/
|
|
9
|
+
export declare function getBrowser(): BrowserData;
|
|
10
|
+
export declare function resetBrowser(): void;
|
|
11
11
|
//# sourceMappingURL=get-browser.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EngineData } from '../';
|
|
2
|
-
/**
|
|
3
|
-
* Returns information about the browser engine.
|
|
4
|
-
* Possible engine names: blink (Chrome like) | webkit (Safari like) | gecko (Firefox like) | unknown | BotNames
|
|
5
|
-
*/
|
|
6
|
-
export declare function getEngine(): EngineData;
|
|
7
|
-
export declare function resetEngine(): void;
|
|
1
|
+
import { EngineData } from '../';
|
|
2
|
+
/**
|
|
3
|
+
* Returns information about the browser engine.
|
|
4
|
+
* Possible engine names: blink (Chrome like) | webkit (Safari like) | gecko (Firefox like) | unknown | BotNames
|
|
5
|
+
*/
|
|
6
|
+
export declare function getEngine(): EngineData;
|
|
7
|
+
export declare function resetEngine(): void;
|
|
8
8
|
//# sourceMappingURL=get-engine.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { OSData } from '../';
|
|
2
|
-
/**
|
|
3
|
-
* Returns information about the OS
|
|
4
|
-
* Possible OS names: xbox | windows | ios | macOS | webOS | tizen | appleTV | roku | chromeOS
|
|
5
|
-
* | playstation4 | playstation5 | nintendoSwitch | likeAndroid | android | linux | unknown | BotNames
|
|
6
|
-
*/
|
|
7
|
-
export declare function getOS(): OSData;
|
|
8
|
-
export declare function resetOS(): void;
|
|
1
|
+
import { OSData } from '../';
|
|
2
|
+
/**
|
|
3
|
+
* Returns information about the OS
|
|
4
|
+
* Possible OS names: xbox | windows | ios | macOS | webOS | tizen | appleTV | roku | chromeOS
|
|
5
|
+
* | playstation4 | playstation5 | nintendoSwitch | likeAndroid | android | linux | unknown | BotNames
|
|
6
|
+
*/
|
|
7
|
+
export declare function getOS(): OSData;
|
|
8
|
+
export declare function resetOS(): void;
|
|
9
9
|
//# sourceMappingURL=get-os.d.ts.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { PlatformNames } from '../';
|
|
2
|
-
/**
|
|
3
|
-
* Returns the name of the platform
|
|
4
|
-
* @returns tv | desktop | tablet | mobile | unknown | BotNames
|
|
5
|
-
*/
|
|
6
|
-
export declare function getPlatform(): PlatformNames;
|
|
7
|
-
export declare function resetPlatform(): void;
|
|
1
|
+
import { PlatformNames } from '../';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the name of the platform
|
|
4
|
+
* @returns tv | desktop | tablet | mobile | unknown | BotNames
|
|
5
|
+
*/
|
|
6
|
+
export declare function getPlatform(): PlatformNames;
|
|
7
|
+
export declare function resetPlatform(): void;
|
|
8
8
|
//# sourceMappingURL=get-platform.d.ts.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
export { BotNames, PlatformNames, OSNames, EngineNames, BrowserNames, VersionData, OSData, EngineData, BrowserData, EnginesCondition, BrowsersCondition, OSBrowsersCondition, OSCondition, PlatformsCondition, } from './types';
|
|
2
|
-
export { getUserAgent, setUserAgent } from './user-agent/user-agent';
|
|
3
|
-
export { getOS } from './get-os/get-os';
|
|
4
|
-
export { getEngine } from './get-engine/get-engine';
|
|
5
|
-
export { getPlatform } from './get-platform/get-platform';
|
|
6
|
-
export { getBrowser } from './get-browser/get-browser';
|
|
7
|
-
export { matchesWithVersion } from './matches-with-version/matches-with-version';
|
|
8
|
-
export { isTV } from './is-tv/is-tv';
|
|
9
|
-
export { isDesktop } from './is-desktop/is-desktop';
|
|
10
|
-
export { isTablet } from './is-tablet/is-tablet';
|
|
11
|
-
export { isMobile } from './is-mobile/is-mobile';
|
|
12
|
-
export { isPortable } from './is-portable/is-portable';
|
|
13
|
-
export { isStationary } from './is-stationary/is-stationary';
|
|
14
|
-
export { isChromeLike } from './is-chrome-like/is-chrome-like';
|
|
15
|
-
export { isFirefoxLike } from './is-firefox-like/is-firefox-like';
|
|
16
|
-
export { isSafariLike } from './is-safari-like/is-safari-like';
|
|
17
|
-
export { isOS } from './is-os/is-os';
|
|
18
|
-
export { isEngine } from './is-engine/is-engine';
|
|
19
|
-
export { isBrowser } from './is-browser/is-browser';
|
|
20
|
-
export { matchesWithBrowsers } from './matches-with-browsers/matches-with-browsers';
|
|
21
|
-
export { matches } from './matches/matches';
|
|
1
|
+
export { BotNames, PlatformNames, OSNames, EngineNames, BrowserNames, VersionData, OSData, EngineData, BrowserData, EnginesCondition, BrowsersCondition, OSBrowsersCondition, OSCondition, PlatformsCondition, } from './types';
|
|
2
|
+
export { getUserAgent, setUserAgent } from './user-agent/user-agent';
|
|
3
|
+
export { getOS } from './get-os/get-os';
|
|
4
|
+
export { getEngine } from './get-engine/get-engine';
|
|
5
|
+
export { getPlatform } from './get-platform/get-platform';
|
|
6
|
+
export { getBrowser } from './get-browser/get-browser';
|
|
7
|
+
export { matchesWithVersion } from './matches-with-version/matches-with-version';
|
|
8
|
+
export { isTV } from './is-tv/is-tv';
|
|
9
|
+
export { isDesktop } from './is-desktop/is-desktop';
|
|
10
|
+
export { isTablet } from './is-tablet/is-tablet';
|
|
11
|
+
export { isMobile } from './is-mobile/is-mobile';
|
|
12
|
+
export { isPortable } from './is-portable/is-portable';
|
|
13
|
+
export { isStationary } from './is-stationary/is-stationary';
|
|
14
|
+
export { isChromeLike } from './is-chrome-like/is-chrome-like';
|
|
15
|
+
export { isFirefoxLike } from './is-firefox-like/is-firefox-like';
|
|
16
|
+
export { isSafariLike } from './is-safari-like/is-safari-like';
|
|
17
|
+
export { isOS } from './is-os/is-os';
|
|
18
|
+
export { isEngine } from './is-engine/is-engine';
|
|
19
|
+
export { isBrowser } from './is-browser/is-browser';
|
|
20
|
+
export { matchesWithBrowsers } from './matches-with-browsers/matches-with-browsers';
|
|
21
|
+
export { matches } from './matches/matches';
|
|
22
22
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { BrowserNames } from '../';
|
|
2
|
-
/**
|
|
3
|
-
* Returns true if the name matches the browser name and the version matches the browser version, otherwise false
|
|
4
|
-
* @param name - one of the browser names:
|
|
5
|
-
* opera | operaCoast | operaTouch | samsung | mz | yandex | uc | maxthon | kmeleon
|
|
6
|
-
* | wechat | qqLite | qq | edge | sailfish | webOS | tizen | miui | silk | phantomjs | slimerjs | qupzilla
|
|
7
|
-
* | electron | whale | focus | swing | epiphany | puffin | sleipnir | vivaldi | seamonkey | playstation4
|
|
8
|
-
* | playstation5 | googleSearch | firefox | chrome | android | safari | unknown | BotNames
|
|
9
|
-
* @param version - string condition in the format: x.x...x | [~ >= > <= <]x.x...x
|
|
10
|
-
*/
|
|
11
|
-
export declare function isBrowser(name: BrowserNames, version?: string): boolean;
|
|
1
|
+
import { BrowserNames } from '../';
|
|
2
|
+
/**
|
|
3
|
+
* Returns true if the name matches the browser name and the version matches the browser version, otherwise false
|
|
4
|
+
* @param name - one of the browser names:
|
|
5
|
+
* opera | operaCoast | operaTouch | samsung | mz | yandex | uc | maxthon | kmeleon
|
|
6
|
+
* | wechat | qqLite | qq | edge | sailfish | webOS | tizen | miui | silk | phantomjs | slimerjs | qupzilla
|
|
7
|
+
* | electron | whale | focus | swing | epiphany | puffin | sleipnir | vivaldi | seamonkey | playstation4
|
|
8
|
+
* | playstation5 | googleSearch | firefox | chrome | android | safari | unknown | BotNames
|
|
9
|
+
* @param version - string condition in the format: x.x...x | [~ >= > <= <]x.x...x
|
|
10
|
+
*/
|
|
11
|
+
export declare function isBrowser(name: BrowserNames, version?: string): boolean;
|
|
12
12
|
//# sourceMappingURL=is-browser.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns true if the browser uses the Blink engine like Chrome, false otherwise
|
|
3
|
-
*/
|
|
4
|
-
export declare function isChromeLike(): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if the browser uses the Blink engine like Chrome, false otherwise
|
|
3
|
+
*/
|
|
4
|
+
export declare function isChromeLike(): boolean;
|
|
5
5
|
//# sourceMappingURL=is-chrome-like.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns true if the platform is desktop, otherwise false
|
|
3
|
-
*/
|
|
4
|
-
export declare function isDesktop(): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if the platform is desktop, otherwise false
|
|
3
|
+
*/
|
|
4
|
+
export declare function isDesktop(): boolean;
|
|
5
5
|
//# sourceMappingURL=is-desktop.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { EngineNames } from '../';
|
|
2
|
-
/**
|
|
3
|
-
* Returns true if the name matches the engine name and the version matches the engine version, otherwise false
|
|
4
|
-
* @param name - one of the engine names:
|
|
5
|
-
* blink (Chrome like) | webkit (Safari like) | gecko (Firefox like) | unknown | BotNames
|
|
6
|
-
* @param version - string condition in the format: x.x...x | [~ >= > <= <]x.x...x
|
|
7
|
-
*/
|
|
8
|
-
export declare function isEngine(name: EngineNames, version?: string): boolean;
|
|
1
|
+
import { EngineNames } from '../';
|
|
2
|
+
/**
|
|
3
|
+
* Returns true if the name matches the engine name and the version matches the engine version, otherwise false
|
|
4
|
+
* @param name - one of the engine names:
|
|
5
|
+
* blink (Chrome like) | webkit (Safari like) | gecko (Firefox like) | unknown | BotNames
|
|
6
|
+
* @param version - string condition in the format: x.x...x | [~ >= > <= <]x.x...x
|
|
7
|
+
*/
|
|
8
|
+
export declare function isEngine(name: EngineNames, version?: string): boolean;
|
|
9
9
|
//# sourceMappingURL=is-engine.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns true if the browser uses the Gecko engine like FireFox, false otherwise
|
|
3
|
-
*/
|
|
4
|
-
export declare function isFirefoxLike(): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if the browser uses the Gecko engine like FireFox, false otherwise
|
|
3
|
+
*/
|
|
4
|
+
export declare function isFirefoxLike(): boolean;
|
|
5
5
|
//# sourceMappingURL=is-firefox-like.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns true if the platform is mobile, otherwise false
|
|
3
|
-
*/
|
|
4
|
-
export declare function isMobile(): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if the platform is mobile, otherwise false
|
|
3
|
+
*/
|
|
4
|
+
export declare function isMobile(): boolean;
|
|
5
5
|
//# sourceMappingURL=is-mobile.d.ts.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { OSNames } from '../';
|
|
2
|
-
/**
|
|
3
|
-
* Returns true if the name matches the OS name and the version matches the OS version, otherwise false
|
|
4
|
-
* @param name - one of the OS names:
|
|
5
|
-
* xbox | windows | ios | macOS | webOS | tizen | appleTV | roku | chromeOS
|
|
6
|
-
* | playstation4 | playstation5 | nintendoSwitch | likeAndroid | android | linux | unknown | BotNames
|
|
7
|
-
* @param version - string condition in the format: x.x...x | [~ >= > <= <]x.x...x
|
|
8
|
-
*/
|
|
9
|
-
export declare function isOS(name: OSNames, version?: string): boolean;
|
|
1
|
+
import { OSNames } from '../';
|
|
2
|
+
/**
|
|
3
|
+
* Returns true if the name matches the OS name and the version matches the OS version, otherwise false
|
|
4
|
+
* @param name - one of the OS names:
|
|
5
|
+
* xbox | windows | ios | macOS | webOS | tizen | appleTV | roku | chromeOS
|
|
6
|
+
* | playstation4 | playstation5 | nintendoSwitch | likeAndroid | android | linux | unknown | BotNames
|
|
7
|
+
* @param version - string condition in the format: x.x...x | [~ >= > <= <]x.x...x
|
|
8
|
+
*/
|
|
9
|
+
export declare function isOS(name: OSNames, version?: string): boolean;
|
|
10
10
|
//# sourceMappingURL=is-os.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns true if the platform is mobile or tablet, otherwise false
|
|
3
|
-
*/
|
|
4
|
-
export declare function isPortable(): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if the platform is mobile or tablet, otherwise false
|
|
3
|
+
*/
|
|
4
|
+
export declare function isPortable(): boolean;
|
|
5
5
|
//# sourceMappingURL=is-portable.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns true if the browser uses the WebKit engine like Safari, false otherwise
|
|
3
|
-
*/
|
|
4
|
-
export declare function isSafariLike(): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if the browser uses the WebKit engine like Safari, false otherwise
|
|
3
|
+
*/
|
|
4
|
+
export declare function isSafariLike(): boolean;
|
|
5
5
|
//# sourceMappingURL=is-safari-like.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns true if the platform is desktop or TV, otherwise false
|
|
3
|
-
*/
|
|
4
|
-
export declare function isStationary(): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if the platform is desktop or TV, otherwise false
|
|
3
|
+
*/
|
|
4
|
+
export declare function isStationary(): boolean;
|
|
5
5
|
//# sourceMappingURL=is-stationary.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns true if the platform is tablet, otherwise false
|
|
3
|
-
*/
|
|
4
|
-
export declare function isTablet(): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if the platform is tablet, otherwise false
|
|
3
|
+
*/
|
|
4
|
+
export declare function isTablet(): boolean;
|
|
5
5
|
//# sourceMappingURL=is-tablet.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns true if the platform is TV, otherwise false
|
|
3
|
-
*/
|
|
4
|
-
export declare function isTV(): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Returns true if the platform is TV, otherwise false
|
|
3
|
+
*/
|
|
4
|
+
export declare function isTV(): boolean;
|
|
5
5
|
//# sourceMappingURL=is-tv.d.ts.map
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import { PlatformsCondition } from '../';
|
|
2
|
-
/**
|
|
3
|
-
* Checks if a current browser matches a specific set of conditions
|
|
4
|
-
*
|
|
5
|
-
* Condition structure:
|
|
6
|
-
* {
|
|
7
|
-
* [platformName | anyPlatform]: {
|
|
8
|
-
* [osName | anyOS]: {
|
|
9
|
-
* osVersion?: versionCondition(x.x...x | [~ >= > <= <]x.x...x),
|
|
10
|
-
* browserName?: versionCondition(x.x...x | [~ >= > <= <]x.x...x),
|
|
11
|
-
* engines?: engineName | {
|
|
12
|
-
* engineName: versionCondition(x.x...x | [~ >= > <= <]x.x...x)
|
|
13
|
-
* ...
|
|
14
|
-
* }
|
|
15
|
-
* ...
|
|
16
|
-
* }
|
|
17
|
-
* ...
|
|
18
|
-
* }
|
|
19
|
-
* ...
|
|
20
|
-
* }
|
|
21
|
-
*
|
|
22
|
-
* @example
|
|
23
|
-
* matches({anyPlatform: {anyOS: {chrome: ''}}});
|
|
24
|
-
* matches({desktop: {windows: {chrome: '96.0.4664.110'}}});
|
|
25
|
-
* matches({desktop: {windows: {osVersion: '~10', engines: 'blink'}}});
|
|
26
|
-
* matches({desktop: {anyOS: {engines: {blink: '>90.5', gecko: '<=100'}}}});
|
|
27
|
-
* matches({anyPlatform: {ios: {chrome: '~96.1', safari: '>80'}}});
|
|
28
|
-
*
|
|
29
|
-
* @param condition - an object that has keys corresponding to platform names
|
|
30
|
-
* and values corresponding to objects that have keys corresponding to OS names
|
|
31
|
-
* and values corresponding to objects that have keys corresponding to browser names
|
|
32
|
-
* and values corresponding to browser versions
|
|
33
|
-
*/
|
|
34
|
-
export declare function matches(condition: PlatformsCondition): boolean;
|
|
1
|
+
import { PlatformsCondition } from '../';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if a current browser matches a specific set of conditions
|
|
4
|
+
*
|
|
5
|
+
* Condition structure:
|
|
6
|
+
* {
|
|
7
|
+
* [platformName | anyPlatform]: {
|
|
8
|
+
* [osName | anyOS]: {
|
|
9
|
+
* osVersion?: versionCondition(x.x...x | [~ >= > <= <]x.x...x),
|
|
10
|
+
* browserName?: versionCondition(x.x...x | [~ >= > <= <]x.x...x),
|
|
11
|
+
* engines?: engineName | {
|
|
12
|
+
* engineName: versionCondition(x.x...x | [~ >= > <= <]x.x...x)
|
|
13
|
+
* ...
|
|
14
|
+
* }
|
|
15
|
+
* ...
|
|
16
|
+
* }
|
|
17
|
+
* ...
|
|
18
|
+
* }
|
|
19
|
+
* ...
|
|
20
|
+
* }
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* matches({anyPlatform: {anyOS: {chrome: ''}}});
|
|
24
|
+
* matches({desktop: {windows: {chrome: '96.0.4664.110'}}});
|
|
25
|
+
* matches({desktop: {windows: {osVersion: '~10', engines: 'blink'}}});
|
|
26
|
+
* matches({desktop: {anyOS: {engines: {blink: '>90.5', gecko: '<=100'}}}});
|
|
27
|
+
* matches({anyPlatform: {ios: {chrome: '~96.1', safari: '>80'}}});
|
|
28
|
+
*
|
|
29
|
+
* @param condition - an object that has keys corresponding to platform names
|
|
30
|
+
* and values corresponding to objects that have keys corresponding to OS names
|
|
31
|
+
* and values corresponding to objects that have keys corresponding to browser names
|
|
32
|
+
* and values corresponding to browser versions
|
|
33
|
+
*/
|
|
34
|
+
export declare function matches(condition: PlatformsCondition): boolean;
|
|
35
35
|
//# sourceMappingURL=matches.d.ts.map
|
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import { BrowsersCondition } from '../';
|
|
2
|
-
/**
|
|
3
|
-
* Checks if a current browser matches a specific set of browsers
|
|
4
|
-
*
|
|
5
|
-
* Condition structure:
|
|
6
|
-
* {
|
|
7
|
-
* browserName?: versionCondition(x.x...x | [~ >= > <= <]x.x...x),
|
|
8
|
-
* engines?: engineName | {
|
|
9
|
-
*
|
|
10
|
-
* ...
|
|
11
|
-
* }
|
|
12
|
-
* ...
|
|
13
|
-
* }
|
|
14
|
-
*
|
|
15
|
-
* @example
|
|
16
|
-
* matchesWithBrowsers({firefox: '>=95.5', chrome: '~96.0.4664'});
|
|
17
|
-
* matchesWithBrowsers({engines: 'gecko', firefox: '>100.1'});
|
|
18
|
-
* matchesWithBrowsers({engines: {blink: '~96', gecko: '110.5.0'}, firefox: '>100.1'});
|
|
19
|
-
*
|
|
20
|
-
* @param condition - an object that has keys corresponding to browser names
|
|
21
|
-
* and values corresponding to browser version conditions
|
|
22
|
-
*/
|
|
23
|
-
export declare function matchesWithBrowsers(condition: BrowsersCondition): boolean;
|
|
1
|
+
import { BrowsersCondition } from '../';
|
|
2
|
+
/**
|
|
3
|
+
* Checks if a current browser matches a specific set of browsers
|
|
4
|
+
*
|
|
5
|
+
* Condition structure:
|
|
6
|
+
* {
|
|
7
|
+
* browserName?: versionCondition(x.x...x | [~ >= > <= <]x.x...x),
|
|
8
|
+
* engines?: engineName | {
|
|
9
|
+
* engineName: versionCondition(x.x...x | [~ >= > <= <]x.x...x)
|
|
10
|
+
* ...
|
|
11
|
+
* }
|
|
12
|
+
* ...
|
|
13
|
+
* }
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* matchesWithBrowsers({firefox: '>=95.5', chrome: '~96.0.4664'});
|
|
17
|
+
* matchesWithBrowsers({engines: 'gecko', firefox: '>100.1'});
|
|
18
|
+
* matchesWithBrowsers({engines: {blink: '~96', gecko: '110.5.0'}, firefox: '>100.1'});
|
|
19
|
+
*
|
|
20
|
+
* @param condition - an object that has keys corresponding to browser names
|
|
21
|
+
* and values corresponding to browser version conditions
|
|
22
|
+
*/
|
|
23
|
+
export declare function matchesWithBrowsers(condition: BrowsersCondition): boolean;
|
|
24
24
|
//# sourceMappingURL=matches-with-browsers.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Checks if a specific version matches a version condition
|
|
3
|
-
* @param version - any browser or OS version, for example: x.x...x
|
|
4
|
-
* @param condition - version condition in the format: x.x...x | [~ >= > <= <]x.x...x
|
|
5
|
-
*/
|
|
6
|
-
export declare function matchesWithVersion(version: string, condition: string): boolean;
|
|
1
|
+
/**
|
|
2
|
+
* Checks if a specific version matches a version condition
|
|
3
|
+
* @param version - any browser or OS version, for example: x.x...x
|
|
4
|
+
* @param condition - version condition in the format: x.x...x | [~ >= > <= <]x.x...x
|
|
5
|
+
*/
|
|
6
|
+
export declare function matchesWithVersion(version: string, condition: string): boolean;
|
|
7
7
|
//# sourceMappingURL=matches-with-version.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BotData, EnvCondition, EnvData } from '../types';
|
|
2
|
-
export declare function getBot(): BotData;
|
|
3
|
-
export declare function resetBot(): void;
|
|
4
|
-
export declare function getEnvData(conditions: EnvCondition[], needVersion?: boolean): EnvData;
|
|
1
|
+
import { BotData, EnvCondition, EnvData } from '../types';
|
|
2
|
+
export declare function getBot(): BotData;
|
|
3
|
+
export declare function resetBot(): void;
|
|
4
|
+
export declare function getEnvData(conditions: EnvCondition[], needVersion?: boolean): EnvData;
|
|
5
5
|
//# sourceMappingURL=private.d.ts.map
|