Socket
Socket
Sign inDemoInstall

facepaint

Package Overview
Dependencies
0
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

2

dist/facepaint.umd.min.js

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

!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.facepaint=n()}(this,function(){"use strict";return function(e,n){function t(n){return e(Object.keys(n).reduce(function(e,f){return Array.isArray(n[f])?n[f].forEach(function(n,t){if(0===t)e[f]=n;else if(e[r[t]])e[r[t]][f]=n;else{var o;e[r[t]]=(o={},o[f]=n,o)}}):"object"==typeof n[f]?e[f]=t(n[f]):e[f]=n[f],e},{}))}var r=[""].concat(n);return function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];return n.map(t)}}});
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):e.facepaint=n()}(this,function(){"use strict";return function(e){function n(e){return Object.keys(e).reduce(function(r,f){return Array.isArray(e[f])?e[f].forEach(function(e,n){if(0===n)r[f]=e;else if(r[t[n]])r[t[n]][f]=e;else{var o;r[t[n]]=(o={},o[f]=e,o)}}):"object"==typeof e[f]?r[f]=n(e[f]):r[f]=e[f],r},{})}var t=[""].concat(e);return function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.map(n)}}});
//# sourceMappingURL=facepaint.umd.min.js.map
'use strict';
/* eslint-disable no-param-reassign */
var index = function (css, breakpoints) {
var mq = [""].concat(breakpoints);
var index = function (breakpoints) {
var mq = [''].concat(breakpoints);
function flatten(obj) {
return css(Object.keys(obj).reduce(function (slots, key) {
return Object.keys(obj).reduce(function (slots, key) {
if (Array.isArray(obj[key])) {

@@ -20,3 +20,3 @@ obj[key].forEach(function (v, index) {

});
} else if (typeof obj[key] === "object") {
} else if (typeof obj[key] === 'object') {
slots[key] = flatten(obj[key]);

@@ -27,3 +27,3 @@ } else {

return slots;
}, {}));
}, {});
}

@@ -30,0 +30,0 @@

/* eslint-disable no-param-reassign */
var index = function (css, breakpoints) {
var mq = [""].concat(breakpoints);
var index = function (breakpoints) {
var mq = [''].concat(breakpoints);
function flatten(obj) {
return css(Object.keys(obj).reduce(function (slots, key) {
return Object.keys(obj).reduce(function (slots, key) {
if (Array.isArray(obj[key])) {

@@ -18,3 +18,3 @@ obj[key].forEach(function (v, index) {

});
} else if (typeof obj[key] === "object") {
} else if (typeof obj[key] === 'object') {
slots[key] = flatten(obj[key]);

@@ -25,3 +25,3 @@ } else {

return slots;
}, {}));
}, {});
}

@@ -28,0 +28,0 @@

{
"name": "facepaint",
"version": "1.0.2",
"version": "1.0.3",
"description": "Responsive style values for css-in-js.",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js",

Sorry, the diff of this file is not supported yet

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