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

@pluginjs/styled

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pluginjs/styled - npm Package Compare versions

Comparing version 0.7.16 to 0.7.17

2

dist/styled.common.js
/*!
* @pluginjs/styled v0.7.16 (https://pluginjs.com)
* @pluginjs/styled v0.7.17 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited

@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License.

/*!
* @pluginjs/styled v0.7.16 (https://pluginjs.com)
* @pluginjs/styled v0.7.17 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited

@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License.

/*!
* @pluginjs/styled v0.7.16 (https://pluginjs.com)
* @pluginjs/styled v0.7.17 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited

@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License.

/*!
* @pluginjs/styled v0.7.16 (https://pluginjs.com)
* @pluginjs/styled v0.7.17 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited

@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License.

/*!
* @pluginjs/styled v0.7.16 (https://pluginjs.com)
* @pluginjs/styled v0.7.17 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited

@@ -4,0 +4,0 @@ * Released under the GPL-3.0 License.

/*!
* @pluginjs/styled v0.7.16 (https://pluginjs.com)
* @pluginjs/styled v0.7.17 (https://pluginjs.com)
* Copyright 2019 Creation Studio Limited
* Released under the GPL-3.0 License.
*/
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@pluginjs/utils"),require("@pluginjs/is"),require("@pluginjs/dom")):"function"==typeof define&&define.amd?define(["exports","@pluginjs/utils","@pluginjs/is","@pluginjs/dom"],e):e((t=t||self)["@pluginjs/styled"]={},t["@pluginjs/utils"],t["@pluginjs/is"],t["@pluginjs/dom"])}(this,function(t,e,i,n){"use strict";var o=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=window),e},r=function(t){return/^--/.test(t)},d=function t(n,o,d){if(i.isString(n)&&i.isElement(d))o||0===o?r(n)?d.style.setProperty(n,o):(n=e.camelize(n,!1),i.isNumeric(o)&&!["animationIterationCount","columnCount","fillOpacity","flexGrow","flexShrink","fontWeight","lineHeight","opacity","order","orphans","widows","zIndex","zoom"].includes(n)&&(o+="px"),d.style[n]=o):d.style.removeProperty(e.dasherize(n));else if(i.isObject(n)){var s;for(s in i.isElement(o)&&void 0===d&&(d=o,o=void 0),n)Object.prototype.hasOwnProperty.call(n,s)&&t(s,n[s],d)}return d},s=function t(n,d){var s;return i.isArray(n)?(s={},n.forEach(function(e){s[e]=t(e,d)}),s):(r(n)||(n=e.dasherize(n)),s=o(d).getComputedStyle(d,"").getPropertyValue(n),i.isNumeric(s)?parseFloat(s):s)},f=e.curryWith(function(t,e,n){return i.isElement(e)&&void 0===n&&(n=e,e=void 0),"string"==typeof t&&void 0===e?s(t,n):d(t,e,n)},i.isElement),l=function(t){if(i.isWindow(t))return t.innerWidth;if(i.isDocument(t)){var e=t.documentElement;return Math.max(t.body.scrollWidth,e.scrollWidth,t.body.offsetWidth,e.offsetWidth,e.clientWidth)}var n=t.getBoundingClientRect().width,o=s(["paddingLeft","paddingRight"],t),r=o.paddingLeft,d=o.paddingRight;if(n=n-parseInt(r,10)-parseInt(d,10),"border-box"===s("boxSizing",t)){var f=s(["borderLeftWidth","borderRightWidth"],t),l=f.borderLeftWidth,p=f.borderRightWidth;n=n-parseInt(l,10)-parseInt(p,10)}return n},p=function(t,e){if(1!==e.nodeType)return e;if("border-box"===s("boxSizing",e)){var i=s(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],e);t+=i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth}return d("width",t,e)},a=function(t){if(i.isWindow(t))return t.innerHeight;if(i.isDocument(t)){var e=t.documentElement;return Math.max(t.body.scrollHeight,e.scrollHeight,t.body.offsetHeight,e.offsetHeight,e.clientHeight)}var n=t.getBoundingClientRect().height,o=s(["paddingTop","paddingBottom"],t),r=o.paddingTop,d=o.paddingBottom;if(n=n-parseInt(r,10)-parseInt(d,10),"border-box"===s("boxSizing",t)){var f=s(["borderTopHeight","borderBottomHeight"],t),l=f.borderTopHeight||0,p=f.borderBottomHeight||0;n=n-parseInt(l,10)-parseInt(p,10)}return n},u=function(t,e){if(1!==e.nodeType)return e;if("border-box"===s("boxSizing",e)){var i=s(["paddingTop","paddingBottom","borderTopHeight","borderBottomHeight"],e);t+=i.paddingTop+i.paddingBottom+i.borderTopHeight+i.borderBottomHeight}return d("height",t,e)},g=function(t){var e=t.getBoundingClientRect(),i=o(t);return{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}},h=function(t,e){var i={},o=c(n.offsetParent(e));return void 0!==t.top&&(i.top=t.top-o.top),void 0!==t.left&&(i.left=t.left-o.left),"static"===s("position",e)&&(i.position="relative"),d(i,e)},c=function(t,e){return i.isElement(t)&&void 0===e&&(e=t,t=void 0),t?h(t,e):g(e)},m={};t.css=f,t.getDefaultView=o,t.getHeight=a,t.getOffset=g,t.getStyle=s,t.getWidth=l,t.height=function(t,e){return i.isElement(t)&&void 0===e&&(e=t,t=void 0),void 0===t?a(e):u(t,e)},t.hideElement=function(t){return"none"!==t.style.display&&(t.style.display="none"),t},t.innerHeight=function(t){return i.isWindow(t)?t.innerHeight:t.clientHeight},t.innerWidth=function(t){return i.isWindow(t)?t.innerWidth:t.clientWidth},t.isCSSVariable=r,t.offset=c,t.outerHeight=function(t,e){if(i.isElement(t)&&void 0===e&&(e=t,t=!1),i.isWindow(e))return e.outerHeight;if(t){var n=s(["marginTop","marginBottom"],e),o=n.marginTop,r=n.marginBottom;return parseInt(o,10)+parseInt(r,10)+e.offsetHeight}return e.offsetHeight},t.outerWidth=function(t,e){if(i.isElement(t)&&void 0===e&&(e=t,t=!1),i.isWindow(e))return e.outerWidth;if(t){var n=s(["marginLeft","marginRight"],e),o=n.marginLeft,r=n.marginRight;return parseInt(o,10)+parseInt(r,10)+e.offsetWidth}return e.offsetWidth},t.position=function(t){var e,i={top:0,left:0};if("fixed"===s("position",t))e=t.getBoundingClientRect();else{e=c(t);var n=n(t);n&&n!==t&&1===n.nodeType&&((i=c(n)).top+=parseFloat(n.style.borderTopWidth)||0,i.left+=parseFloat(n.style.borderLeftWidth)||0)}return e.top-=parseFloat(t.style.marginTop)||0,e.left-=parseFloat(t.style.marginLeft)||0,{top:e.top-i.top,left:e.left-i.left}},t.setHeight=u,t.setOffset=h,t.setStyle=d,t.setWidth=p,t.showElement=function(t){var e,i,n;return"none"===t.style.display&&(t.style.display=""),"none"===getComputedStyle(t,"").getPropertyValue("display")&&(t.style.display=(e=t.nodeName,m[e]||(n=document.createElement(e),document.body.appendChild(n),i=getComputedStyle(n,"").getPropertyValue("display"),n.parentNode.removeChild(n),"none"===i&&(i="block"),m[e]=i),m[e])),t},t.width=function(t,e){return i.isElement(t)&&void 0===e&&(e=t,t=void 0),void 0===t?l(e):p(t,e)},Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@pluginjs/utils"),require("@pluginjs/is"),require("@pluginjs/dom")):"function"==typeof define&&define.amd?define(["exports","@pluginjs/utils","@pluginjs/is","@pluginjs/dom"],e):e((t=t||self)["@pluginjs/styled"]={},t["@pluginjs/utils"],t["@pluginjs/is"],t["@pluginjs/dom"])}(this,(function(t,e,i,n){"use strict";var o=function(t){var e=t.ownerDocument.defaultView;return e&&e.opener||(e=window),e},r=function(t){return/^--/.test(t)},d=function t(n,o,d){if(i.isString(n)&&i.isElement(d))o||0===o?r(n)?d.style.setProperty(n,o):(n=e.camelize(n,!1),i.isNumeric(o)&&!["animationIterationCount","columnCount","fillOpacity","flexGrow","flexShrink","fontWeight","lineHeight","opacity","order","orphans","widows","zIndex","zoom"].includes(n)&&(o+="px"),d.style[n]=o):d.style.removeProperty(e.dasherize(n));else if(i.isObject(n)){var s;for(s in i.isElement(o)&&void 0===d&&(d=o,o=void 0),n)Object.prototype.hasOwnProperty.call(n,s)&&t(s,n[s],d)}return d},s=function t(n,d){var s;return i.isArray(n)?(s={},n.forEach((function(e){s[e]=t(e,d)})),s):(r(n)||(n=e.dasherize(n)),s=o(d).getComputedStyle(d,"").getPropertyValue(n),i.isNumeric(s)?parseFloat(s):s)},f=e.curryWith((function(t,e,n){return i.isElement(e)&&void 0===n&&(n=e,e=void 0),"string"==typeof t&&void 0===e?s(t,n):d(t,e,n)}),i.isElement),l=function(t){if(i.isWindow(t))return t.innerWidth;if(i.isDocument(t)){var e=t.documentElement;return Math.max(t.body.scrollWidth,e.scrollWidth,t.body.offsetWidth,e.offsetWidth,e.clientWidth)}var n=t.getBoundingClientRect().width,o=s(["paddingLeft","paddingRight"],t),r=o.paddingLeft,d=o.paddingRight;if(n=n-parseInt(r,10)-parseInt(d,10),"border-box"===s("boxSizing",t)){var f=s(["borderLeftWidth","borderRightWidth"],t),l=f.borderLeftWidth,p=f.borderRightWidth;n=n-parseInt(l,10)-parseInt(p,10)}return n},p=function(t,e){if(1!==e.nodeType)return e;if("border-box"===s("boxSizing",e)){var i=s(["paddingLeft","paddingRight","borderLeftWidth","borderRightWidth"],e);t+=i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth}return d("width",t,e)},a=function(t){if(i.isWindow(t))return t.innerHeight;if(i.isDocument(t)){var e=t.documentElement;return Math.max(t.body.scrollHeight,e.scrollHeight,t.body.offsetHeight,e.offsetHeight,e.clientHeight)}var n=t.getBoundingClientRect().height,o=s(["paddingTop","paddingBottom"],t),r=o.paddingTop,d=o.paddingBottom;if(n=n-parseInt(r,10)-parseInt(d,10),"border-box"===s("boxSizing",t)){var f=s(["borderTopHeight","borderBottomHeight"],t),l=f.borderTopHeight||0,p=f.borderBottomHeight||0;n=n-parseInt(l,10)-parseInt(p,10)}return n},u=function(t,e){if(1!==e.nodeType)return e;if("border-box"===s("boxSizing",e)){var i=s(["paddingTop","paddingBottom","borderTopHeight","borderBottomHeight"],e);t+=i.paddingTop+i.paddingBottom+i.borderTopHeight+i.borderBottomHeight}return d("height",t,e)},g=function(t){var e=t.getBoundingClientRect(),i=o(t);return{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}},h=function(t,e){var i={},o=c(n.offsetParent(e));return void 0!==t.top&&(i.top=t.top-o.top),void 0!==t.left&&(i.left=t.left-o.left),"static"===s("position",e)&&(i.position="relative"),d(i,e)},c=function(t,e){return i.isElement(t)&&void 0===e&&(e=t,t=void 0),t?h(t,e):g(e)},m={};t.css=f,t.getDefaultView=o,t.getHeight=a,t.getOffset=g,t.getStyle=s,t.getWidth=l,t.height=function(t,e){return i.isElement(t)&&void 0===e&&(e=t,t=void 0),void 0===t?a(e):u(t,e)},t.hideElement=function(t){return"none"!==t.style.display&&(t.style.display="none"),t},t.innerHeight=function(t){return i.isWindow(t)?t.innerHeight:t.clientHeight},t.innerWidth=function(t){return i.isWindow(t)?t.innerWidth:t.clientWidth},t.isCSSVariable=r,t.offset=c,t.outerHeight=function(t,e){if(i.isElement(t)&&void 0===e&&(e=t,t=!1),i.isWindow(e))return e.outerHeight;if(t){var n=s(["marginTop","marginBottom"],e),o=n.marginTop,r=n.marginBottom;return parseInt(o,10)+parseInt(r,10)+e.offsetHeight}return e.offsetHeight},t.outerWidth=function(t,e){if(i.isElement(t)&&void 0===e&&(e=t,t=!1),i.isWindow(e))return e.outerWidth;if(t){var n=s(["marginLeft","marginRight"],e),o=n.marginLeft,r=n.marginRight;return parseInt(o,10)+parseInt(r,10)+e.offsetWidth}return e.offsetWidth},t.position=function(t){var e,i={top:0,left:0};if("fixed"===s("position",t))e=t.getBoundingClientRect();else{e=c(t);var n=n(t);n&&n!==t&&1===n.nodeType&&((i=c(n)).top+=parseFloat(n.style.borderTopWidth)||0,i.left+=parseFloat(n.style.borderLeftWidth)||0)}return e.top-=parseFloat(t.style.marginTop)||0,e.left-=parseFloat(t.style.marginLeft)||0,{top:e.top-i.top,left:e.left-i.left}},t.setHeight=u,t.setOffset=h,t.setStyle=d,t.setWidth=p,t.showElement=function(t){var e,i,n;return"none"===t.style.display&&(t.style.display=""),"none"===getComputedStyle(t,"").getPropertyValue("display")&&(t.style.display=(e=t.nodeName,m[e]||(n=document.createElement(e),document.body.appendChild(n),i=getComputedStyle(n,"").getPropertyValue("display"),n.parentNode.removeChild(n),"none"===i&&(i="block"),m[e]=i),m[e])),t},t.width=function(t,e){return i.isElement(t)&&void 0===e&&(e=t,t=void 0),void 0===t?l(e):p(t,e)},Object.defineProperty(t,"__esModule",{value:!0})}));

@@ -14,3 +14,3 @@ {

},
"version": "0.7.16",
"version": "0.7.17",
"category": "utils",

@@ -37,10 +37,10 @@ "main": "dist/styled.common.js",

"dependencies": {
"@pluginjs/dom": "^0.7.16",
"@pluginjs/is": "^0.7.14",
"@pluginjs/utils": "^0.7.15"
"@pluginjs/dom": "^0.7.17",
"@pluginjs/is": "^0.7.15",
"@pluginjs/utils": "^0.7.16"
},
"devDependencies": {
"@babel/core": "^7.5.5",
"@pluginjs/browserslist-config": "^1.2.10",
"@pluginjs/cli": "^0.7.13",
"@babel/core": "^7.6.0",
"@pluginjs/browserslist-config": "^1.2.11",
"@pluginjs/cli": "^0.7.14",
"babel-jest": "*",

@@ -71,3 +71,3 @@ "jest": "*",

],
"gitHead": "2d2c629bf12f5a071c43b3074a6becdd4afadedc"
"gitHead": "d1b3d9591a2fa49f13758c5ad8effcb021b096fc"
}
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