New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@uxland/browser-utilities

Package Overview
Dependencies
Maintainers
2
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uxland/browser-utilities - npm Package Compare versions

Comparing version 1.0.1-alpha.12 to 1.0.1-alpha.13

18

async/animation-frame.js

@@ -1,1 +0,17 @@

const a={cancel:n=>window.cancelAnimationFrame(n),run:n=>window.requestAnimationFrame(n)};export{a as animationFrame};
/*
* @license
* BSD License
*
* Copyright (c) 2020, UXLand
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
* 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/const c={cancel:n=>window.cancelAnimationFrame(n),run:n=>window.requestAnimationFrame(n)};export{c as animationFrame};

@@ -1,1 +0,17 @@

let e=1;e=1,e=1;
/*
* @license
* BSD License
*
* Copyright (c) 2020, UXLand
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
* 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/let e=1;e=1,e=1;

@@ -1,1 +0,17 @@

class s{constructor(e){this._ownQueue=[];this.isProcessing=!1;this.executor=e}enqueueItem(...e){this._ownQueue.push([...e]),this.tryProcessQueue()}async tryProcessQueue(){if(!this.isProcessing&&this._ownQueue.length){this.isProcessing=!0;const e=this._ownQueue.pop();await this.executor.apply(void 0,[...e]),this.isProcessing=!1,this.tryProcessQueue()}}}export{s as AsyncQueue};
/*
* @license
* BSD License
*
* Copyright (c) 2020, UXLand
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
* 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/class i{constructor(e){this._ownQueue=[];this.isProcessing=!1;this.executor=e}enqueueItem(...e){this._ownQueue.push([...e]),this.tryProcessQueue()}async tryProcessQueue(){if(!this.isProcessing&&this._ownQueue.length){this.isProcessing=!0;const e=this._ownQueue.pop();await this.executor.apply(void 0,[...e]),this.isProcessing=!1,this.tryProcessQueue()}}}export{i as AsyncQueue};

2

async/debounce.js

@@ -9,2 +9,2 @@ /**

subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/import{timeOut as r}from"./time-out";class c{constructor(e=null,t=null,o=null){this.asyncModule=e;this.callback=t;this.handle=o}setConfig(e,t){this.asyncModule=e,this.callback=t,this.handle=this.asyncModule.run(()=>{this.handle=null,this.callback()})}cancel(){this.isActive()&&(this.asyncModule.cancel(this.handle),this.handle=null)}flush(){this.isActive()&&(this.cancel(),this.callback())}isActive(){return this.handle!=null}static debounce(e,t,o){return e instanceof c?e.cancel():e=new c,e.setConfig(t,o),e}}const u=n=>(e,t,o)=>{const s=o,a=s.value;s.value=(...l)=>(void 0).debouncer=c.debounce((void 0).debouncer,r.after(n),a.apply(l))},i=new Set,h=function(n){i.add(n)},d=function(){const n=Boolean(i.size);return i.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),n};export{c as Debouncer,u as debounce,h as enqueueDebouncer,d as flushDebouncers};
*/import{timeOut as r}from"./time-out";class o{constructor(e=null,t=null,c=null){this.asyncModule=e;this.callback=t;this.handle=c}setConfig(e,t){this.asyncModule=e,this.callback=t,this.handle=this.asyncModule.run(()=>{this.handle=null,this.callback()})}cancel(){this.isActive()&&(this.asyncModule.cancel(this.handle),this.handle=null)}flush(){this.isActive()&&(this.cancel(),this.callback())}isActive(){return this.handle!=null}static debounce(e,t,c){return e instanceof o?e.cancel():e=new o,e.setConfig(t,c),e}}const f=n=>(e,t,c)=>{const s=c,a=s.value;s.value=(...l)=>(void 0).debouncer=o.debounce((void 0).debouncer,r.after(n),a.apply(l))},i=new Set,v=function(n){i.add(n)},y=function(){const n=Boolean(i.size);return i.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),n};export{o as Debouncer,f as debounce,v as enqueueDebouncer,y as flushDebouncers};

@@ -1,1 +0,17 @@

import{timeOut as l}from"./time-out";const a={cancel:e=>window.cancelIdleCallback(e),run:e=>window.requestIdleCallback(e)},n={run:e=>l.run(e,16),cancel:e=>l.cancel(e)},c=window&&window.requestIdleCallback&&window.cancelIdleCallback?a:n;export{c as idlePeriod};
/*
* @license
* BSD License
*
* Copyright (c) 2020, UXLand
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
* 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/import{timeOut as l}from"./time-out";const a={cancel:e=>window.cancelIdleCallback(e),run:e=>window.requestIdleCallback(e)},n={run:e=>l.run(e,16),cancel:e=>l.cancel(e)},i=window&&window.requestIdleCallback&&window.cancelIdleCallback?a:n;export{i as idlePeriod};

@@ -1,1 +0,17 @@

export*from"./animation-frame";export*from"./async-interface";export*from"./async-queue";export*from"./debounce";export*from"./idle-period";export*from"./micro-task";export*from"./time-out";
/*
* @license
* BSD License
*
* Copyright (c) 2020, UXLand
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
* 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/export*from"./animation-frame";export*from"./async-interface";export*from"./async-queue";export*from"./debounce";export*from"./idle-period";export*from"./micro-task";export*from"./time-out";

@@ -9,2 +9,2 @@ /**

subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/let i=0,o=0;const n=[];let s=0;const c=document&&document.createTextNode("");function l(){const t=n.length;for(let e=0;e<t;e++){const r=n[e];if(r)try{r()}catch(a){setTimeout(()=>{throw a})}}n.splice(0,t),o+=t}MutationObserver&&new MutationObserver(l).observe(c,{characterData:!0});const u={run(t){return c.textContent=(s++).toString(),n.push(t),i++},cancel(t){const e=t-o;if(e>=0){if(!n[e])throw new Error("invalid async handle: "+t);n[e]=null}}};export{u as microTask};
*/let i=0,o=0;const n=[];let s=0;const c=document&&document.createTextNode("");function l(){const t=n.length;for(let e=0;e<t;e++){const r=n[e];if(r)try{r()}catch(a){setTimeout(()=>{throw a})}}n.splice(0,t),o+=t}MutationObserver&&new MutationObserver(l).observe(c,{characterData:!0});const m={run(t){return c.textContent=(s++).toString(),n.push(t),i++},cancel(t){const e=t-o;if(e>=0){if(!n[e])throw new Error("invalid async handle: "+t);n[e]=null}}};export{m as microTask};

@@ -1,1 +0,17 @@

const r=(n,e)=>setTimeout(n,e),a=n=>clearTimeout(n),t=n=>({run:e=>r(e,n),cancel:a}),c={after:t,cancel:a,run:r};export{c as timeOut};
/*
* @license
* BSD License
*
* Copyright (c) 2020, UXLand
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
* 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/const r=(n,e)=>setTimeout(n,e),a=n=>clearTimeout(n),t=n=>({run:e=>r(e,n),cancel:a}),o={after:t,cancel:a,run:r};export{o as timeOut};

@@ -1,1 +0,17 @@

const e=()=>{let o=!1;return function(i){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4)))&&(o=!0)}(navigator.userAgent||navigator.vendor||window.opera),o},a=()=>{let o=!1;return function(i){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4)))&&(o=!0)}(navigator.userAgent||navigator.vendor||window.opera),o},t=()=>a()||e(),n=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1;export{n as isAndroid,a as isMobileBrowser,t as isMobileOrTabletBrowser,e as isTabletBrowser};
/*
* @license
* BSD License
*
* Copyright (c) 2020, UXLand
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
* 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/const e=()=>{let o=!1;return function(i){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4)))&&(o=!0)}(navigator.userAgent||navigator.vendor||window.opera),o},a=()=>{let o=!1;return function(i){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(i)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(i.substr(0,4)))&&(o=!0)}(navigator.userAgent||navigator.vendor||window.opera),o},t=()=>a()||e(),n=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1;export{n as isAndroid,a as isMobileBrowser,t as isMobileOrTabletBrowser,e as isTabletBrowser};

@@ -6,106 +6,13 @@ # Change Log

## [1.0.1-alpha.12](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.11...@uxland/browser-utilities@1.0.1-alpha.12) (2021-03-12)
## [1.0.1-alpha.13](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.0...@uxland/browser-utilities@1.0.1-alpha.13) (2021-05-28)
**Note:** Version bump only for package @uxland/browser-utilities
### Bug Fixes
* **browser-utilities:** esbuild approach ([63308bd](https://github.com/uxland/uxland/commit/63308bd1a9d4319e696dc8ecc89b4c9135c54c2f))
## [1.0.1-alpha.11](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.10...@uxland/browser-utilities@1.0.1-alpha.11) (2021-03-12)
**Note:** Version bump only for package @uxland/browser-utilities
## [1.0.1-alpha.10](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.9...@uxland/browser-utilities@1.0.1-alpha.10) (2021-03-11)
**Note:** Version bump only for package @uxland/browser-utilities
## [1.0.1-alpha.9](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.8...@uxland/browser-utilities@1.0.1-alpha.9) (2021-03-11)
**Note:** Version bump only for package @uxland/browser-utilities
## [1.0.1-alpha.8](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.7...@uxland/browser-utilities@1.0.1-alpha.8) (2021-03-11)
**Note:** Version bump only for package @uxland/browser-utilities
## [1.0.1-alpha.7](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.6...@uxland/browser-utilities@1.0.1-alpha.7) (2021-03-11)
**Note:** Version bump only for package @uxland/browser-utilities
## [1.0.1-alpha.6](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.5...@uxland/browser-utilities@1.0.1-alpha.6) (2021-03-11)
**Note:** Version bump only for package @uxland/browser-utilities
## [1.0.1-alpha.5](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.4...@uxland/browser-utilities@1.0.1-alpha.5) (2021-03-11)
**Note:** Version bump only for package @uxland/browser-utilities
## [1.0.1-alpha.4](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.3...@uxland/browser-utilities@1.0.1-alpha.4) (2021-03-11)
**Note:** Version bump only for package @uxland/browser-utilities
## [1.0.1-alpha.3](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.2...@uxland/browser-utilities@1.0.1-alpha.3) (2021-03-11)
**Note:** Version bump only for package @uxland/browser-utilities
## [1.0.1-alpha.2](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.1...@uxland/browser-utilities@1.0.1-alpha.2) (2021-03-10)
**Note:** Version bump only for package @uxland/browser-utilities
## [1.0.1-alpha.1](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.1-alpha.0...@uxland/browser-utilities@1.0.1-alpha.1) (2021-03-10)
**Note:** Version bump only for package @uxland/browser-utilities
## [1.0.1-alpha.0](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.0...@uxland/browser-utilities@1.0.1-alpha.0) (2021-03-10)
**Note:** Version bump only for package @uxland/browser-utilities
# [1.0.0](https://github.com/uxland/uxland/compare/@uxland/browser-utilities@1.0.0-alpha.4...@uxland/browser-utilities@1.0.0) (2021-03-09)

@@ -112,0 +19,0 @@

@@ -1,1 +0,17 @@

const s=r=>new Promise((o,a)=>{const e=new FileReader;e.readAsDataURL(r),e.onload=()=>o(e.result),e.onerror=n=>a(n)});export{s as toBase64};
/*
* @license
* BSD License
*
* Copyright (c) 2020, UXLand
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
* 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/const s=r=>new Promise((o,a)=>{const e=new FileReader;e.readAsDataURL(r),e.onload=()=>o(e.result),e.onerror=n=>a(n)});export{s as toBase64};

@@ -17,2 +17,2 @@ /*

* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/export*from"./async";export*from"./browser";export*from"./file";export*from"./meta";export*from"./styles";export*from"./user-lang";console.log("@uxland/browser-utilities loaded");
*/export*from"./async";export*from"./browser";export*from"./file";export*from"./meta";export*from"./styles";export*from"./user-lang";
{
"name": "@uxland/browser-utilities",
"version": "1.0.1-alpha.12",
"version": "1.0.1-alpha.13",
"description": "Browser Utilities",

@@ -8,14 +8,12 @@ "author": "Alex Vizcaino <avizcaino@uxland.es>",

"license": "BSD-4-Clause",
"main": "index",
"module": "index.js",
"types": "index.d.ts",
"main": "lib/index",
"module": "es/index.js",
"types": "lib/index.d.ts",
"files": [
"README.md",
"package.json",
"**/*.js",
"**/*.d.ts",
"**/*.js",
"!*.config.js",
"!coverage/*",
"lib",
"dist",
"README.md",
"package.json"
"!coverage/**/*"
],

@@ -31,10 +29,9 @@ "publishConfig": {

"scripts": {
"build:es": "tsc -p tsconfig.json --outDir es --module esnext --target es2018 --noEmit false",
"build:cjs": "tsc -p tsconfig.json --outDir lib --target es2018 --noEmit false --declaration --removeComments false",
"build:umd": "cross-env NODE_ENV=development rollup -c -o dist/index.js",
"build:umd:min": "cross-env NODE_ENV=production rollup -c -o dist/index.min.js",
"build:clean": "rimraf es lib dist tmp tsconfig.tsbuildinfo",
"build": "yarn build:clean && npm-run-all --parallel build:es build:cjs && npm-run-all --parallel build:umd build:umd:min",
"preesbuild": "echo nok > .buildstatus",
"postesbuild": "echo ok > .buildstatus",
"build:dts": "tsc --emitDeclarationOnly --noEmit false --declaration --removeComments false --outDir .",
"build:clean": "rimraf {async/*,index,file,meta,styles,user-lang,browser}.{!config.js,js,d.ts} tsconfig.tsbuildinfo",
"build:cjs": "esbuild index.ts --bundle --minify --target=es2018 --outfile=lib/index.js",
"build:es": "esbuild *.ts async/*.ts --minify --format=esm --outdir=.",
"build": "npm-run-all --parallel build:es build:dts",
"prebuild": "echo nok > .buildstatus",
"postbuild": "echo ok > .buildstatus",
"readme:coverage": "node_modules/.bin/jest-badges-readme",

@@ -50,7 +47,3 @@ "tdd": "jest --watch --collect-coverage",

"jsdoc:mv": "mkdirp ../../docs/$npm_package_name/$npm_package_version && ncp docs/$npm_package_name/$npm_package_version ../../docs/$npm_package_name/$npm_package_version",
"postjsdoc": "yarn jsdoc:styles && yarn jsdoc:mv",
"esbuild:dts": "tsc --emitDeclarationOnly --noEmit false --declaration --removeComments false --outDir .",
"esbuild:cjs": "esbuild src/index.ts --bundle --minify --target=es2018 --outfile=lib/index.js",
"esbuild:es": "esbuild *.ts **/*.ts --minify --format=esm --outdir=.",
"esbuild": "npm-run-all --parallel esbuild:es esbuild:dts"
"postjsdoc": "yarn jsdoc:styles && yarn jsdoc:mv"
},

@@ -70,3 +63,3 @@ "bugs": {

"cucumber": "^6.0.5",
"esbuild": "^0.9.0",
"esbuild": "^0.11.20",
"jest": "^26.4.2",

@@ -84,3 +77,3 @@ "jest-cucumber": "^3.0.0",

},
"gitHead": "64f9f38b8240914967251c2e83372cffea9ecc20"
"gitHead": "c2f95620128ef2eb6294c26f4b0cceaef3f7b7aa"
}

@@ -5,3 +5,3 @@ # UXL Browser Utilities [![npm version](https://badge.fury.io/js/%40uxland%2Fbrowser-utilities.svg)](https://badge.fury.io/js/%40uxland%2Fbrowser-utilities)

| ----------------------------------------------- | --------------------------------------------- | ----------------------------------------- | ------------------------------------------- | ----------------------------------- |
| ![BuildStatus](https://img.shields.io/badge/Build-Passing-brightgreen.svg "Building Status") | ![Statements](https://img.shields.io/badge/Coverage-92.19%25-brightgreen.svg "Make me better!") | ![Branches](https://img.shields.io/badge/Coverage-70.37%25-red.svg "Make me better!") | ![Functions](https://img.shields.io/badge/Coverage-79.17%25-red.svg "Make me better!") | ![Lines](https://img.shields.io/badge/Coverage-93.1%25-brightgreen.svg "Make me better!") |
| ![BuildStatus](https://img.shields.io/badge/Build-Passing-brightgreen.svg "Building Status") | ![Statements](https://img.shields.io/badge/Coverage-92.75%25-brightgreen.svg "Make me better!") | ![Branches](https://img.shields.io/badge/Coverage-70.37%25-red.svg "Make me better!") | ![Functions](https://img.shields.io/badge/Coverage-79.17%25-red.svg "Make me better!") | ![Lines](https://img.shields.io/badge/Coverage-93.1%25-brightgreen.svg "Make me better!") |

@@ -8,0 +8,0 @@ ## Installation

@@ -1,1 +0,17 @@

const d=n=>{const o=document.getElementsByTagName("body")[0],e=window.outerHeight,i=window.innerHeight,t=window.screen.availHeight,c=window.screen.availWidth,l=window.outerWidth,h=window.innerWidth;o&&(o.style.setProperty("--window-outer-height",`${e}px`),o.style.setProperty("--window-inner-height",`${i}px`),o.style.setProperty("--body-height",`${o.clientHeight}px`)),n&&(console.log(""),console.log("|----------- LAYOUT SIZING -------------|"),console.log(`%c|-- Window outer height: ${e}px`,"color: #00acc1"),console.log(`%c|-- Window inner height: ${i}px`,"color: #00acc1"),console.log(`%c|-- Screen available height: ${t}px`,"color: #00acc1"),console.log(`%c|-- Body height: ${o.clientHeight}px`,"color: #00acc1"),console.log(`%c|-- Window outer width: ${l}px`,"color: #f4511e"),console.log(`%c|-- Window inner width: ${h}px`,"color: #f4511e"),console.log(`%c|-- Screen available width: ${c}px`,"color: #f4511e"),console.log(`%c|-- Body width: ${o.clientWidth}px`,"color: #f4511e"),console.log(""))};export{d as displayLayoutSizing};
/*
* @license
* BSD License
*
* Copyright (c) 2020, UXLand
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
* 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/const d=n=>{const o=document.getElementsByTagName("body")[0],e=window.outerHeight,i=window.innerHeight,t=window.screen.availHeight,c=window.screen.availWidth,l=window.outerWidth,h=window.innerWidth;o&&(o.style.setProperty("--window-outer-height",`${e}px`),o.style.setProperty("--window-inner-height",`${i}px`),o.style.setProperty("--body-height",`${o.clientHeight}px`)),n&&(console.log(""),console.log("|----------- LAYOUT SIZING -------------|"),console.log(`%c|-- Window outer height: ${e}px`,"color: #00acc1"),console.log(`%c|-- Window inner height: ${i}px`,"color: #00acc1"),console.log(`%c|-- Screen available height: ${t}px`,"color: #00acc1"),console.log(`%c|-- Body height: ${o.clientHeight}px`,"color: #00acc1"),console.log(`%c|-- Window outer width: ${l}px`,"color: #f4511e"),console.log(`%c|-- Window inner width: ${h}px`,"color: #f4511e"),console.log(`%c|-- Screen available width: ${c}px`,"color: #f4511e"),console.log(`%c|-- Body width: ${o.clientWidth}px`,"color: #f4511e"),console.log(""))};export{d as displayLayoutSizing};

@@ -1,1 +0,17 @@

const s={ca:"ca","ca-ES":"ca",es:"es","es-ES":"es","es-MX":"es","es-AR":"es","es-CO":"es","es-CL":"es","es-PE":"es","es-VE":"es","es-DO":"es",en:"en","en-GB":"en","en-US":"en","en-CA":"en","en-IN":"en","en-AU":"en","en-NZ":"en","en-ZA":"en"},a="ca";function t(){for(const n of navigator.languages){const e=s[n];if(e)return e}return a}export{t as getBrowserLang};
/*
* @license
* BSD License
*
* Copyright (c) 2020, UXLand
*
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software must display the following acknowledgement: This product includes software developed by the <copyright holder>.
* 4. Neither the name of the <copyright holder> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY <COPYRIGHT HOLDER> ''AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/const s={ca:"ca","ca-ES":"ca",es:"es","es-ES":"es","es-MX":"es","es-AR":"es","es-CO":"es","es-CL":"es","es-PE":"es","es-VE":"es","es-DO":"es",en:"en","en-GB":"en","en-US":"en","en-CA":"en","en-IN":"en","en-AU":"en","en-NZ":"en","en-ZA":"en"},a="ca";function t(){for(const n of navigator.languages){const e=s[n];if(e)return e}return a}export{t as getBrowserLang};

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc