New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-css-in-js

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

babel-plugin-css-in-js - npm Package Compare versions

Comparing version 1.5.0 to 1.5.1

5

CHANGELOG.md

@@ -12,2 +12,7 @@ # Changelog

## v1.5.1 (January 22, 2016)
- **Bug Fix**
- Don't validate parent selectors
## v1.5.0 (January 22, 2016)

@@ -14,0 +19,0 @@

8

lib/transformStyleSheetObjectIntoSpecification.js

@@ -172,4 +172,8 @@ 'use strict';

function initStyleSpec(styles, name, parent) {
(0, _assert2.default)(isValidStyleName.test(name), 'style name is invalid: ' + name);
var checkValid = arguments.length <= 3 || arguments[3] === undefined ? true : arguments[3];
if (checkValid) {
(0, _assert2.default)(isValidStyleName.test(name), 'style name is invalid: ' + name);
}
styles[name] = styles[name] || { rules: {}, selectors: {}, mediaQueries: {} };

@@ -180,3 +184,3 @@

return initStyleSpec(styles[name].parents, parent);
return initStyleSpec(styles[name].parents, parent, null, false);
}

@@ -183,0 +187,0 @@

{
"name": "babel-plugin-css-in-js",
"version": "1.5.0",
"version": "1.5.1",
"description": "A plugin for Babel v6 which transforms inline styles defined in JavaScript modules into class names so they become available to, e.g. the `className` prop of React elements. While transforming, the plugin processes all JavaScript style definitions found and bundles them up into a CSS file, ready to be requested from your web server.",

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

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