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.3 to 1.0.4

4

bss.js

@@ -46,5 +46,3 @@ (function (global, factory) {

var cssProperties = style && typeof style.width === 'string'
? Object.keys(style).filter(function (a) { return a % 1 !== 0; })
: Array.prototype.slice.call(style, 0, style.length).map(hyphenToCamelCase);
var cssProperties = Array.prototype.slice.call(style, 0, style.length).map(hyphenToCamelCase);

@@ -51,0 +49,0 @@ var vendorMap = Object.create(null, {});

@@ -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(t,e){var n;return"string"==typeof t?"string"==typeof e||"number"==typeof e?(n={},n[t]=e,n):c(t):Array.isArray(t)&&Array.isArray(t.raw)?(arguments[0]={raw:t},c(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 b?b[n]:n]=u(n,r),e):e},{})}(t)}function e(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function n(t){return t.slice("-"===t.charAt(0)?1:0).replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}function r(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 i(t){var e={},n=[],r=!1;return Object.keys(t).forEach(function(c){"@"===c.charAt(0)?n.push(c+"{"+i(t[c])+"}"):" "===c.charAt(0)||":"===c.charAt(0)?n.push(o(".$"+c,t[c])):(e[c]=t[c],r=!0)}),r&&n.unshift(o(".$",e)),n}function o(t,e){return t+"{"+function(t){return Object.keys(t).map(function(e){return function(t,e){return(v.test(e)?"-":"")+function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}(e)+":"+t[e]+";"}(t,e)}).join("")}("string"==typeof e?c(e):e)+"}"}function c(t){return t.replace(/;/g,"\n").split("\n").reduce(function(t,e){var r=e.trim().split(/[: ]/);if(r.length>1){var i=n(r.shift().trim());t[y[i]||i]=u(y[i]||i,r.join(" ").trim())}return t},{})}function u(t,e){return e+(isNaN(e)?"":j(t))}function a(t,e){if($.push(t),x)return w.textContent+=t;O&&O.insertRule(t,arguments.length>1?e:O.cssRules.length)}function l(n,r){return e(l.style,t.apply(null,arguments)),s(l)}function s(t){var e=Object.create(l,{style:{value:t.style}});return t===l&&(l.style={}),e}function f(t){return function(e){return e||0===e?arguments.length>0&&(this.style[t]=1===arguments.length?u(t,e):Array.prototype.slice.call(arguments).map(function(e){return u(t,e)}).join(" ")):delete this.style[t],s(this)}}function p(e,n){if(1===arguments.length)return Object.keys(e).forEach(function(t){return p(t,e[t])});a(o(e,t(n)),0)}function h(n,r){return 1===arguments.length?Object.keys(n).forEach(function(t){return h(t,n[t])}):"object"==typeof r?(delete l[n],void Object.defineProperty(l,n,{get:function(){return e(this.style,t(r)),s(this)}})):void(l[n]=function(){var t=r.apply(null,arguments);return e(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=window.getComputedStyle(document.documentElement,null),g=m&&"string"==typeof m.width?Object.keys(m).filter(function(t){return t%1!=0}):Array.prototype.slice.call(m,0,m.length).map(n),b=Object.create(null,{}),v=/^(o|O|ms|MS|Ms|moz|Moz|webkit|Webkit|WebKit)([A-Z])/,j=function(t,e){return void 0===e&&(e={}),function(n){return n in e?e[n]:e[n]=t(n)}}(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:""}),A=window.document,k=Object.create(null,{}),w=A&&A.createElement("style");w&&A.head.appendChild(w);var O=w&&w.sheet,x=!1,$=[],C=0,S="b"+("000"+(46656*Math.random()|0).toString(36)).slice(-3)+("000"+(46656*Math.random()|0).toString(36)).slice(-3),E=0,L={};return l.setDebug=function(t){x=t},l.style={},l.valueOf=function(){return"."+this.class},l.$keyframes=function(t){var e=Object.keys(t).map(function(e){return o(e,t[e].style||t[e])}).join("");if(e in L)return L[e];var n=S+ ++E;return L[e]=n,a("@keyframes "+n+"{"+e+"}"),n},l.getSheet=function(){var t=$.join("");return $=[],t},l.helper=h,l.css=p,l.classPrefix=S,g.forEach(function(t){if(v.test(t)){var e=function(t){return t.charAt(0).toLowerCase()+t.slice(1)}(t.replace(v,"$2"));if(-1===g.indexOf(e))return b[e]=t,void(l[e]=l[r(e)]=f(t))}l[t]=l[r(t)]=f(t)}),l.content=function(t){return this.style.content='"'+t+'"',s(this)},Object.defineProperty(l,"class",{get:function(){return function(t){var e=i(t),n=e.join("");if(n in k)return k[n];var r=S+ ++C;return e.map(function(t){return a(t.replace(/\.\$/,"."+r))}),k[n]=r,r}(this.style)}}),l.$media=function(e,n){return this.style["@media "+e]=t(n),s(this)},l.$nest=function(e,n){return this.style[(":"===e.charAt(0)?"":" ")+e]=t(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(e){return l["$"+n(e)]=function(n,r){return this.style[":"+e+(r?"("+n+")":"")]=t(r||n),s(this)}}),l.helper("$animate",function(t,e){return l.animation(l.$keyframes(e)+" "+t)}),l});
!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(t,e){var n;return"string"==typeof t?"string"==typeof e||"number"==typeof e?(n={},n[t]=e,n):c(t):Array.isArray(t)&&Array.isArray(t.raw)?(arguments[0]={raw:t},c(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 b?b[n]:n]=a(n,r),e):e},{})}(t)}function e(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])}function n(t){return t.slice("-"===t.charAt(0)?1:0).replace(/-([a-z])/g,function(t){return t[1].toUpperCase()})}function r(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 i(t){var e={},n=[],r=!1;return Object.keys(t).forEach(function(c){"@"===c.charAt(0)?n.push(c+"{"+i(t[c])+"}"):" "===c.charAt(0)||":"===c.charAt(0)?n.push(o(".$"+c,t[c])):(e[c]=t[c],r=!0)}),r&&n.unshift(o(".$",e)),n}function o(t,e){return t+"{"+function(t){return Object.keys(t).map(function(e){return function(t,e){return(v.test(e)?"-":"")+function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}(e)+":"+t[e]+";"}(t,e)}).join("")}("string"==typeof e?c(e):e)+"}"}function c(t){return t.replace(/;/g,"\n").split("\n").reduce(function(t,e){var r=e.trim().split(/[: ]/);if(r.length>1){var i=n(r.shift().trim());t[y[i]||i]=a(y[i]||i,r.join(" ").trim())}return t},{})}function a(t,e){return e+(isNaN(e)?"":j(t))}function u(t,e){if($.push(t),x)return w.textContent+=t;O&&O.insertRule(t,arguments.length>1?e:O.cssRules.length)}function l(n,r){return e(l.style,t.apply(null,arguments)),s(l)}function s(t){var e=Object.create(l,{style:{value:t.style}});return t===l&&(l.style={}),e}function f(t){return function(e){return e||0===e?arguments.length>0&&(this.style[t]=1===arguments.length?a(t,e):Array.prototype.slice.call(arguments).map(function(e){return a(t,e)}).join(" ")):delete this.style[t],s(this)}}function p(e,n){if(1===arguments.length)return Object.keys(e).forEach(function(t){return p(t,e[t])});u(o(e,t(n)),0)}function h(n,r){return 1===arguments.length?Object.keys(n).forEach(function(t){return h(t,n[t])}):"object"==typeof r?(delete l[n],void Object.defineProperty(l,n,{get:function(){return e(this.style,t(r)),s(this)}})):void(l[n]=function(){var t=r.apply(null,arguments);return e(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=window.getComputedStyle(document.documentElement,null),g=Array.prototype.slice.call(m,0,m.length).map(n),b=Object.create(null,{}),v=/^(o|O|ms|MS|Ms|moz|Moz|webkit|Webkit|WebKit)([A-Z])/,j=function(t,e){return void 0===e&&(e={}),function(n){return n in e?e[n]:e[n]=t(n)}}(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:""}),A=window.document,k=Object.create(null,{}),w=A&&A.createElement("style");w&&A.head.appendChild(w);var O=w&&w.sheet,x=!1,$=[],C=0,S="b"+("000"+(46656*Math.random()|0).toString(36)).slice(-3)+("000"+(46656*Math.random()|0).toString(36)).slice(-3),E=0,L={};return l.setDebug=function(t){x=t},l.style={},l.valueOf=function(){return"."+this.class},l.$keyframes=function(t){var e=Object.keys(t).map(function(e){return o(e,t[e].style||t[e])}).join("");if(e in L)return L[e];var n=S+ ++E;return L[e]=n,u("@keyframes "+n+"{"+e+"}"),n},l.getSheet=function(){var t=$.join("");return $=[],t},l.helper=h,l.css=p,l.classPrefix=S,g.forEach(function(t){if(v.test(t)){var e=function(t){return t.charAt(0).toLowerCase()+t.slice(1)}(t.replace(v,"$2"));if(-1===g.indexOf(e))return b[e]=t,void(l[e]=l[r(e)]=f(t))}l[t]=l[r(t)]=f(t)}),l.content=function(t){return this.style.content='"'+t+'"',s(this)},Object.defineProperty(l,"class",{get:function(){return function(t){var e=i(t),n=e.join("");if(n in k)return k[n];var r=S+ ++C;return e.map(function(t){return u(t.replace(/\.\$/,"."+r))}),k[n]=r,r}(this.style)}}),l.$media=function(e,n){return this.style["@media "+e]=t(n),s(this)},l.$nest=function(e,n){return this.style[(":"===e.charAt(0)?"":" ")+e]=t(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(e){return l["$"+n(e)]=function(n,r){return this.style[":"+e+(r?"("+n+")":"")]=t(r||n),s(this)}}),l.helper("$animate",function(t,e){return l.animation(l.$keyframes(e)+" "+t)}),l});
//# sourceMappingURL=bss.min.js.map
## [Unreleased]
## 1.0.4 -
Fixed property resolution bug in firefox
## 1.0.3 -

@@ -4,0 +8,0 @@

@@ -7,5 +7,3 @@ import popular from './popular'

export const cssProperties = style && typeof style.width === 'string'
? Object.keys(style).filter(a => a % 1 !== 0)
: Array.prototype.slice.call(style, 0, style.length).map(hyphenToCamelCase)
export const cssProperties = Array.prototype.slice.call(style, 0, style.length).map(hyphenToCamelCase)

@@ -12,0 +10,0 @@ export const vendorMap = Object.create(null, {})

{
"name": "bss",
"version": "1.0.3",
"version": "1.0.4",
"description": "Better Style Sheets",

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

@@ -32,3 +32,3 @@ const o = require('ospec')

global.window = {
getComputedStyle: () => ({ width: '', backgroundColor: '', padding: '' }),
getComputedStyle: () => (['width', 'backgroundColor', 'padding']),
navigator: {

@@ -35,0 +35,0 @@ userAgent: 'test'

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