Socket
Socket
Sign inDemoInstall

react-base16-styling

Package Overview
Dependencies
2
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.2 to 0.2.3

11

lib/index.js

@@ -34,4 +34,6 @@ 'use strict';

var _base2 = _interopRequireDefault(_base);
var base16 = _interopRequireWildcard(_base);
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -45,4 +47,5 @@

};
var DEFAULT_BASE16 = base16.default;
var BASE16_KEYS = (0, _keys2.default)(_base2.default);
var BASE16_KEYS = (0, _keys2.default)(DEFAULT_BASE16);
var GRAY_COLORS = (0, _from2.default)({ length: 8 }).map(function (_, idx) {

@@ -99,3 +102,3 @@ return 'base0' + idx;

var _options$defaultBase = options.defaultBase16;
var defaultBase16 = _options$defaultBase === undefined ? _base2.default : _options$defaultBase;
var defaultBase16 = _options$defaultBase === undefined ? DEFAULT_BASE16 : _options$defaultBase;

@@ -127,3 +130,3 @@

if (typeof theme === 'string') {
theme = (base16Themes || {})[theme] || _base2.default[theme];
theme = (base16Themes || {})[theme] || base16[theme];
}

@@ -130,0 +133,0 @@

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

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

import curry from 'lodash.curry';
import base16, { default as DEFAULT_BASE16 } from 'base16';
import * as base16 from 'base16';
const truthy = x => x;
const returnEmptyObject = () => ({});
const DEFAULT_BASE16 = base16.default;

@@ -7,0 +8,0 @@ const BASE16_KEYS = Object.keys(DEFAULT_BASE16);

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc