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.1 to 0.2.2

8

lib/index.js

@@ -92,3 +92,3 @@ 'use strict';

var themeOrStyling = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var base16Themes = arguments.length <= 2 || arguments[2] === undefined ? {} : arguments[2];
var base16Themes = arguments[2];
var isLightTheme = arguments[3];

@@ -119,5 +119,3 @@ var _options$getStylingFr = options.getStylingFromBase16;

var getBase16Theme = function getBase16Theme(theme) {
var base16Themes = arguments.length <= 1 || arguments[1] === undefined ? {} : arguments[1];
var getBase16Theme = function getBase16Theme(theme, base16Themes) {
if (theme && theme.extend) {

@@ -128,3 +126,3 @@ theme = theme.extend;

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

@@ -131,0 +129,0 @@

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

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

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

const createStyling = curry(
(options, themeOrStyling={}, base16Themes={}, isLightTheme, ...args) => {
(options, themeOrStyling={}, base16Themes, isLightTheme, ...args) => {
const {

@@ -68,3 +68,3 @@ getStylingFromBase16=returnEmptyObject,

const getBase16Theme = (theme, base16Themes={}) => {
const getBase16Theme = (theme, base16Themes) => {
if (theme && theme.extend) {

@@ -75,3 +75,3 @@ theme = theme.extend;

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

@@ -78,0 +78,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