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

babel-plugin-jss-simple

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-jss-simple - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

5

lib/index.js

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

});
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } }
/**

@@ -19,3 +22,3 @@ * JSS Simple Babel Plugin

if (node.callee.name === state.name && node.arguments.length === 1) {
path.replaceWith(t.callExpression(t.identifier(state.name), [node.arguments[0], t.binaryExpression('+', t.identifier('__filename'), t.stringLiteral('_' + state.idx++))]));
path.replaceWith(t.callExpression(t.identifier(state.name), [].concat(_toConsumableArray(node.arguments), [t.binaryExpression('+', t.identifier('__filename'), t.stringLiteral('_' + state.idx++))])));
}

@@ -22,0 +25,0 @@ }

2

package.json

@@ -5,3 +5,3 @@ {

"repository": "git://github.com/ashaffer/babel-plugin-jss-simple.git",
"version": "0.2.2",
"version": "0.2.3",
"license": "MIT",

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