Socket
Socket
Sign inDemoInstall

react-base16-styling

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-base16-styling - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

10

lib/index.js

@@ -16,2 +16,6 @@ 'use strict';

var _toConsumableArray2 = require('babel-runtime/helpers/toConsumableArray');
var _toConsumableArray3 = _interopRequireDefault(_toConsumableArray2);
var _from = require('babel-runtime/core-js/array/from');

@@ -66,5 +70,5 @@

var styles = keys.map(function (key) {
return customStyling[key] || defaultStyling[key];
}).filter(truthy);
var styles = keys.reduce(function (s, key) {
return [].concat((0, _toConsumableArray3.default)(s), [defaultStyling[key], customStyling[key]]);
}, []).filter(truthy);

@@ -71,0 +75,0 @@ return styles.reduce(function (obj, s) {

{
"name": "react-base16-styling",
"version": "0.2.0",
"version": "0.2.1",
"description": "React styling with base16 color scheme support",

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

@@ -23,3 +23,3 @@ import curry from 'lodash.curry';

const styles = keys
.map(key => customStyling[key] || defaultStyling[key])
.reduce((s, key) => [...s, defaultStyling[key], customStyling[key]], [])
.filter(truthy);

@@ -26,0 +26,0 @@

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