Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stilr

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stilr - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

8

CHANGELOG.md

@@ -13,2 +13,10 @@ # Changelog

## 1.2.0
* Feature
* Exposes the StylesheetMap class that's used internally to create
stylesheet.
Usage: `import Stylesheet, { StylesheetMap } from 'stilr'`
* Bug
* Fixed stylesheet instanceof check
## 1.1.0

@@ -15,0 +23,0 @@ * __Internal__

6

dist/index.js

@@ -23,2 +23,5 @@ 'use strict';

var StylesheetMap = _Map;
exports.StylesheetMap = StylesheetMap;
exports['default'] = {

@@ -28,3 +31,3 @@ create: function create(styles) {

if (!stylesheet instanceof _Map) throw new Error('' + stylesheet + ' should be a Map');
if (!(stylesheet instanceof _Map)) throw new Error('' + stylesheet + ' should be a Map');

@@ -168,2 +171,1 @@ return _Object$keys(styles).reduce(function (acc, key) {

};
module.exports = exports['default'];

@@ -11,5 +11,7 @@ import {

export const StylesheetMap = Map;
export default {
create( styles, stylesheet = globalStylesheet ) {
if ( !stylesheet instanceof Map ) throw new Error(`${ stylesheet } should be a Map`);
if ( !(stylesheet instanceof Map) ) throw new Error(`${ stylesheet } should be a Map`);

@@ -16,0 +18,0 @@ return Object.keys( styles ).reduce( ( acc, key ) => {

{
"name": "stilr",
"version": "1.1.0",
"version": "1.2.0",
"description": "Encapsulated styling for your javascript components with all the power of javascript and CSS combined. Usefull with React",

@@ -5,0 +5,0 @@ "main": "dist",

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

# Stilr [![Build Status](https://travis-ci.org/chriskjaer/stilr.svg)](https://travis-ci.org/chriskjaer/stilr) [![npm version](https://badge.fury.io/js/stilr.svg)](http://badge.fury.io/js/stilr)
# Stilr [![Build Status](https://travis-ci.org/kodyl/stilr.svg)](https://travis-ci.org/kodyl/stilr) [![npm version](https://badge.fury.io/js/stilr.svg)](http://badge.fury.io/js/stilr)

@@ -3,0 +3,0 @@ Encapsulated styling for your javascript components with all the power of

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