Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

bss

Package Overview
Dependencies
0
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.6 to 1.0.7

2

bss.js

@@ -404,3 +404,3 @@ (function (global, factory) {

if (value)
{ this.style[value] = parse(style); }
{ this.style[(value.charAt(0) === ':' ? '' : ' ') + value] = parse(style); }

@@ -407,0 +407,0 @@ return chain(this)

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.b=e()}(this,function(){"use strict";function t(e){return e.hasOwnProperty("width")?e:t(Object.getPrototypeOf(e))}function e(t,e){var n;return"string"==typeof t?"string"==typeof e||"number"==typeof e?(n={},n[t]=e,n):b(t):Array.isArray(t)&&Array.isArray(t.raw)?(arguments[0]={raw:t},b(String.raw.apply(null,arguments))):t.style||function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return r||0===r||""===r?("content"===n&&'"'!==r.charAt(0)?e[n]='"'+r+'"':e[n in v?v[n]:n]=c(n,r),e):e},{})}(t)}function n(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function r(t){return t.slice("-"===t.charAt(0)?1:0).replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}function i(t){var e=function(t){return t.charAt(0)+(t.match(/([A-Z])/g)||[]).join("").toLowerCase()}(t),n=d[e]&&d[e]!==t?t:e;return y[n]=t,n}function o(t){var e={},n=[],r=!1;return Object.keys(t).forEach(function(i){"@"===i.charAt(0)?n.push(i+"{"+o(t[i])+"}"):" "===i.charAt(0)||":"===i.charAt(0)?n.push(u(".$"+i,t[i])):(e[i]=t[i],r=!0)}),r&&n.unshift(u(".$",e)),n}function u(t,e){return t+"{"+function(t){return Object.keys(t).map(function(e){return function(t,e){return(j.test(e)?"-":"")+function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}(e)+":"+t[e]+";"}(t,e)}).join("")}("string"==typeof e?b(e):e)+"}"}function c(t,e){return e+(isNaN(e)?"":O(t))}function a(t,e){if(C.push(t),$)return x.textContent+=t;A&&A.insertRule(t,arguments.length>1?e:A.cssRules.length)}function f(t,r){return n(f.style,e.apply(null,arguments)),s(f)}function s(t){var e=Object.create(f,{style:{value:t.style}});return t===f&&(f.style={}),e}function l(t){return function(e){return e||0===e?arguments.length>0&&(this.style[t]=1===arguments.length?c(t,e):Array.prototype.slice.call(arguments).map(function(e){return c(t,e)}).join(" ")):delete this.style[t],s(this)}}function h(t,n){if(1===arguments.length)return Object.keys(t).forEach(function(e){return h(e,t[e])});a(u(t,e(n)),0)}function p(t,r){return 1===arguments.length?Object.keys(t).forEach(function(e){return p(e,t[e])}):"object"==typeof r?(delete f[t],void Object.defineProperty(f,t,{get:function(){return n(this.style,e(r)),s(this)}})):void(f[t]=function(){var t=r.apply(null,arguments);return n(this.style,t.style),s(this)})}var d={ai:"alignItems",b:"bottom",bc:"backgroundColor",br:"borderRadius",bs:"boxShadow",c:"color",d:"display",f:"float",fd:"flexDirection",ff:"fontFamily",fs:"fontSize",h:"height",jc:"justifyContent",l:"left",ls:"letterSpacing",m:"margin",mb:"marginBottom",ml:"marginLeft",mr:"marginRight",mt:"marginTop",o:"opacity",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pr:"paddingRight",pt:"paddingTop",r:"right",t:"top",ta:"textAlign",td:"textDecoration",tt:"textTransform",w:"width"},y=Object.create(null),m=Object.keys(t(document.documentElement.style)).filter(function(t){return-1===t.indexOf("-")}),g=function(t,e){return void 0===e&&(e={}),function(n){return n in e?e[n]:e[n]=t(n)}},b=g(function(t){var e,n="";return t.replace(/;/g,"\n").split("\n").reduce(function(t,i){if(i=n+i.trim(),n=i.endsWith(",")?i:"")return t;if(i.startsWith(","))return t[e]+=i,t;var o=i.split(/[:\s]/);if(o.length>1){var u=r(o.shift().trim());t[e=y[u]||u]=o.filter(function(t){return t}).map(function(t){return c(e,t.trim())}).join(" ")}return t},{})}),v=Object.create(null,{}),j=/^(o|O|ms|MS|Ms|moz|Moz|webkit|Webkit|WebKit)([A-Z])/,O=g(function(t){var e=document.createElement("div");try{return e.style[t]="1px",e.style.setProperty(t,"1px"),"1px"===e.style[t].slice(-3)?"px":""}catch(t){return""}},{flex:""}),k=window.document,w=Object.create(null,{}),x=k&&k.createElement("style");x&&k.head.appendChild(x);var A=x&&x.sheet,$=!1,C=[],E=0,S="b"+("000"+(46656*Math.random()|0).toString(36)).slice(-3)+("000"+(46656*Math.random()|0).toString(36)).slice(-3),P=0,L={};return f.setDebug=function(t){$=t},f.style={},f.valueOf=function(){return"."+this.class},f.$keyframes=function(t){var e=Object.keys(t).map(function(e){return u(e,t[e].style||t[e])}).join("");if(e in L)return L[e];var n=S+ ++P;return L[e]=n,a("@keyframes "+n+"{"+e+"}"),n},f.getSheet=function(){var t=C.join("");return C=[],t},f.helper=p,f.css=h,f.classPrefix=S,m.forEach(function(t){if(j.test(t)){var e=function(t){return t.charAt(0).toLowerCase()+t.slice(1)}(t.replace(j,"$2"));if(-1===m.indexOf(e))return v[e]=t,void(f[e]=f[i(e)]=l(t))}f[t]=f[i(t)]=l(t)}),f.content=function(t){return this.style.content='"'+t+'"',s(this)},Object.defineProperty(f,"class",{get:function(){return function(t){var e=o(t),n=e.join("");if(n in w)return w[n];var r=S+ ++E;return e.map(function(t){return a(t.replace(/\.\$/,"."+r))}),w[n]=r,r}(this.style)}}),f.$media=function(t,n){return t&&(this.style["@media "+t]=e(n)),s(this)},f.$nest=function(t,n){return t&&(this.style[t]=e(n)),s(this)},["active","any","checked","default","disabled","empty","enabled","first","first-child","first-of-type","fullscreen","focus","hover","indeterminate","in-range","invalid","last-child","last-of-type","left","link","only-child","only-of-type","optional","out-of-range","read-only","read-write","required","right","root","scope","target","valid","visited","dir","lang","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","after","before","first-letter","first-line","selection","backdrop","placeholder","marker","spelling-error","grammar-error"].forEach(function(t){return f["$"+r(t)]=function(n,r){return this.style[":"+t+(r?"("+n+")":"")]=e(r||n),s(this)}}),f.helper("$animate",function(t,e){return f.animation(f.$keyframes(e)+" "+t)}),f});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.b=e()}(this,function(){"use strict";function t(e){return e.hasOwnProperty("width")?e:t(Object.getPrototypeOf(e))}function e(t,e){var n;return"string"==typeof t?"string"==typeof e||"number"==typeof e?(n={},n[t]=e,n):b(t):Array.isArray(t)&&Array.isArray(t.raw)?(arguments[0]={raw:t},b(String.raw.apply(null,arguments))):t.style||function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return r||0===r||""===r?("content"===n&&'"'!==r.charAt(0)?e[n]='"'+r+'"':e[n in v?v[n]:n]=c(n,r),e):e},{})}(t)}function n(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function r(t){return t.slice("-"===t.charAt(0)?1:0).replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}function i(t){var e=function(t){return t.charAt(0)+(t.match(/([A-Z])/g)||[]).join("").toLowerCase()}(t),n=d[e]&&d[e]!==t?t:e;return y[n]=t,n}function o(t){var e={},n=[],r=!1;return Object.keys(t).forEach(function(i){"@"===i.charAt(0)?n.push(i+"{"+o(t[i])+"}"):" "===i.charAt(0)||":"===i.charAt(0)?n.push(u(".$"+i,t[i])):(e[i]=t[i],r=!0)}),r&&n.unshift(u(".$",e)),n}function u(t,e){return t+"{"+function(t){return Object.keys(t).map(function(e){return function(t,e){return(j.test(e)?"-":"")+function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}(e)+":"+t[e]+";"}(t,e)}).join("")}("string"==typeof e?b(e):e)+"}"}function c(t,e){return e+(isNaN(e)?"":O(t))}function a(t,e){if(C.push(t),$)return w.textContent+=t;x&&x.insertRule(t,arguments.length>1?e:x.cssRules.length)}function f(t,r){return n(f.style,e.apply(null,arguments)),s(f)}function s(t){var e=Object.create(f,{style:{value:t.style}});return t===f&&(f.style={}),e}function l(t){return function(e){return e||0===e?arguments.length>0&&(this.style[t]=1===arguments.length?c(t,e):Array.prototype.slice.call(arguments).map(function(e){return c(t,e)}).join(" ")):delete this.style[t],s(this)}}function h(t,n){if(1===arguments.length)return Object.keys(t).forEach(function(e){return h(e,t[e])});a(u(t,e(n)),0)}function p(t,r){return 1===arguments.length?Object.keys(t).forEach(function(e){return p(e,t[e])}):"object"==typeof r?(delete f[t],void Object.defineProperty(f,t,{get:function(){return n(this.style,e(r)),s(this)}})):void(f[t]=function(){var t=r.apply(null,arguments);return n(this.style,t.style),s(this)})}var d={ai:"alignItems",b:"bottom",bc:"backgroundColor",br:"borderRadius",bs:"boxShadow",c:"color",d:"display",f:"float",fd:"flexDirection",ff:"fontFamily",fs:"fontSize",h:"height",jc:"justifyContent",l:"left",ls:"letterSpacing",m:"margin",mb:"marginBottom",ml:"marginLeft",mr:"marginRight",mt:"marginTop",o:"opacity",p:"padding",pb:"paddingBottom",pl:"paddingLeft",pr:"paddingRight",pt:"paddingTop",r:"right",t:"top",ta:"textAlign",td:"textDecoration",tt:"textTransform",w:"width"},y=Object.create(null),m=Object.keys(t(document.documentElement.style)).filter(function(t){return-1===t.indexOf("-")}),g=function(t,e){return void 0===e&&(e={}),function(n){return n in e?e[n]:e[n]=t(n)}},b=g(function(t){var e,n="";return t.replace(/;/g,"\n").split("\n").reduce(function(t,i){if(i=n+i.trim(),n=i.endsWith(",")?i:"")return t;if(i.startsWith(","))return t[e]+=i,t;var o=i.split(/[:\s]/);if(o.length>1){var u=r(o.shift().trim());t[e=y[u]||u]=o.filter(function(t){return t}).map(function(t){return c(e,t.trim())}).join(" ")}return t},{})}),v=Object.create(null,{}),j=/^(o|O|ms|MS|Ms|moz|Moz|webkit|Webkit|WebKit)([A-Z])/,O=g(function(t){var e=document.createElement("div");try{return e.style[t]="1px",e.style.setProperty(t,"1px"),"1px"===e.style[t].slice(-3)?"px":""}catch(t){return""}},{flex:""}),k=window.document,A=Object.create(null,{}),w=k&&k.createElement("style");w&&k.head.appendChild(w);var x=w&&w.sheet,$=!1,C=[],E=0,S="b"+("000"+(46656*Math.random()|0).toString(36)).slice(-3)+("000"+(46656*Math.random()|0).toString(36)).slice(-3),P=0,L={};return f.setDebug=function(t){$=t},f.style={},f.valueOf=function(){return"."+this.class},f.$keyframes=function(t){var e=Object.keys(t).map(function(e){return u(e,t[e].style||t[e])}).join("");if(e in L)return L[e];var n=S+ ++P;return L[e]=n,a("@keyframes "+n+"{"+e+"}"),n},f.getSheet=function(){var t=C.join("");return C=[],t},f.helper=p,f.css=h,f.classPrefix=S,m.forEach(function(t){if(j.test(t)){var e=function(t){return t.charAt(0).toLowerCase()+t.slice(1)}(t.replace(j,"$2"));if(-1===m.indexOf(e))return v[e]=t,void(f[e]=f[i(e)]=l(t))}f[t]=f[i(t)]=l(t)}),f.content=function(t){return this.style.content='"'+t+'"',s(this)},Object.defineProperty(f,"class",{get:function(){return function(t){var e=o(t),n=e.join("");if(n in A)return A[n];var r=S+ ++E;return e.map(function(t){return a(t.replace(/\.\$/,"."+r))}),A[n]=r,r}(this.style)}}),f.$media=function(t,n){return t&&(this.style["@media "+t]=e(n)),s(this)},f.$nest=function(t,n){return t&&(this.style[(":"===t.charAt(0)?"":" ")+t]=e(n)),s(this)},["active","any","checked","default","disabled","empty","enabled","first","first-child","first-of-type","fullscreen","focus","hover","indeterminate","in-range","invalid","last-child","last-of-type","left","link","only-child","only-of-type","optional","out-of-range","read-only","read-write","required","right","root","scope","target","valid","visited","dir","lang","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","after","before","first-letter","first-line","selection","backdrop","placeholder","marker","spelling-error","grammar-error"].forEach(function(t){return f["$"+r(t)]=function(n,r){return this.style[":"+t+(r?"("+n+")":"")]=e(r||n),s(this)}}),f.helper("$animate",function(t,e){return f.animation(f.$keyframes(e)+" "+t)}),f});
//# sourceMappingURL=bss.min.js.map

@@ -86,3 +86,3 @@ import keyframes from './keyframes'

if (value)
this.style[value] = parse(style)
this.style[(value.charAt(0) === ':' ? '' : ' ') + value] = parse(style)

@@ -89,0 +89,0 @@ return chain(this)

{
"name": "bss",
"version": "1.0.6",
"version": "1.0.7",
"description": "Better Style Sheets",

@@ -5,0 +5,0 @@ "main": "bss.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc