@xobotyi/scrollbar-width
Advanced tools
Comparing version 1.9.0 to 1.9.1
@@ -0,1 +1,8 @@ | ||
## [1.9.1](https://github.com/xobotyi/scrollbar-width/compare/v1.9.0...v1.9.1) (2020-02-24) | ||
### Bug Fixes | ||
* adjusting document check for SSR ([bd68002](https://github.com/xobotyi/scrollbar-width/commit/bd68002f7b247d49a2af02342e927ef08328c998)) | ||
# [1.9.0](https://github.com/xobotyi/scrollbar-width/compare/v1.8.2...v1.9.0) (2020-02-16) | ||
@@ -2,0 +9,0 @@ |
@@ -1,1 +0,1 @@ | ||
var e=function(t){if(!document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==t&&"number"==typeof e.__cache)return e.__cache;var o=document.createElement("div"),c=o.style;c.display="block",c.position="absolute",c.width="100px",c.height="100px",c.left="-999px",c.top="-999px",c.overflow="scroll",document.body.insertBefore(o,null);var d=o.clientWidth;if(0!==d)return e.__cache=100-d,document.body.removeChild(o),e.__cache;document.body.removeChild(o)}};export{e as scrollbarWidth}; | ||
var e=function(t){if("undefined"==typeof document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==t&&"number"==typeof e.__cache)return e.__cache;var o=document.createElement("div"),d=o.style;d.display="block",d.position="absolute",d.width="100px",d.height="100px",d.left="-999px",d.top="-999px",d.overflow="scroll",document.body.insertBefore(o,null);var n=o.clientWidth;if(0!==n)return e.__cache=100-n,document.body.removeChild(o),e.__cache;document.body.removeChild(o)}};export{e as scrollbarWidth}; |
@@ -1,1 +0,1 @@ | ||
const e=t=>{if(!document)return 0;if(!document.body||document.readyState&&"loading"===document.readyState)return;if(!0!==t&&"number"==typeof e.__cache)return e.__cache;const o=document.createElement("div"),{style:c}=o;c.display="block",c.position="absolute",c.width="100px",c.height="100px",c.left="-999px",c.top="-999px",c.overflow="scroll",document.body.insertBefore(o,null);const{clientWidth:n}=o;if(0!==n)return e.__cache=100-n,document.body.removeChild(o),e.__cache;document.body.removeChild(o)};export{e as scrollbarWidth}; | ||
const e=t=>{if("undefined"==typeof document)return 0;if(!document.body||document.readyState&&"loading"===document.readyState)return;if(!0!==t&&"number"==typeof e.__cache)return e.__cache;const o=document.createElement("div"),{style:n}=o;n.display="block",n.position="absolute",n.width="100px",n.height="100px",n.left="-999px",n.top="-999px",n.overflow="scroll",document.body.insertBefore(o,null);const{clientWidth:c}=o;if(0!==c)return e.__cache=100-c,document.body.removeChild(o),e.__cache;document.body.removeChild(o)};export{e as scrollbarWidth}; |
@@ -1,1 +0,1 @@ | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(t){if(!document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==t&&"number"==typeof e.__cache)return e.__cache;var o=document.createElement("div"),r=o.style;r.display="block",r.position="absolute",r.width="100px",r.height="100px",r.left="-999px",r.top="-999px",r.overflow="scroll",document.body.insertBefore(o,null);var c=o.clientWidth;if(0!==c)return e.__cache=100-c,document.body.removeChild(o),e.__cache;document.body.removeChild(o)}};exports.scrollbarWidth=e; | ||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=function(t){if("undefined"==typeof document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==t&&"number"==typeof e.__cache)return e.__cache;var o=document.createElement("div"),d=o.style;d.display="block",d.position="absolute",d.width="100px",d.height="100px",d.left="-999px",d.top="-999px",d.overflow="scroll",document.body.insertBefore(o,null);var r=o.clientWidth;if(0!==r)return e.__cache=100-r,document.body.removeChild(o),e.__cache;document.body.removeChild(o)}};exports.scrollbarWidth=e; |
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).xobotyi=e.xobotyi||{})}(this,(function(e){"use strict";var t=function(e){if(!document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==e&&"number"==typeof t.__cache)return t.__cache;var o=document.createElement("div"),n=o.style;n.display="block",n.position="absolute",n.width="100px",n.height="100px",n.left="-999px",n.top="-999px",n.overflow="scroll",document.body.insertBefore(o,null);var d=o.clientWidth;if(0!==d)return t.__cache=100-d,document.body.removeChild(o),t.__cache;document.body.removeChild(o)}};e.scrollbarWidth=t,Object.defineProperty(e,"__esModule",{value:!0})})); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).xobotyi=e.xobotyi||{})}(this,(function(e){"use strict";var t=function(e){if("undefined"==typeof document)return 0;if(document.body&&(!document.readyState||"loading"!==document.readyState)){if(!0!==e&&"number"==typeof t.__cache)return t.__cache;var o=document.createElement("div"),n=o.style;n.display="block",n.position="absolute",n.width="100px",n.height="100px",n.left="-999px",n.top="-999px",n.overflow="scroll",document.body.insertBefore(o,null);var d=o.clientWidth;if(0!==d)return t.__cache=100-d,document.body.removeChild(o),t.__cache;document.body.removeChild(o)}};e.scrollbarWidth=t,Object.defineProperty(e,"__esModule",{value:!0})})); |
{ | ||
"name": "@xobotyi/scrollbar-width", | ||
"version": "1.9.0", | ||
"version": "1.9.1", | ||
"publishConfig": { | ||
@@ -60,3 +60,3 @@ "access": "public" | ||
"rollup-plugin-typescript2": "^0.26.0", | ||
"semantic-release": "^16.0.3", | ||
"semantic-release": "^17.0.3", | ||
"typescript": "^3.7.5" | ||
@@ -63,0 +63,0 @@ }, |
17226
18