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

babel-jscs

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-jscs - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

21

acorn-to-esprima.js

@@ -189,20 +189,7 @@ var traverse = require("babel-core").traverse;

if (this.isSpreadProperty()) {
node.type = "Property";
node.kind = "init";
node.computed = true;
node.type = "SpreadProperty";
node.key = node.value = node.argument;
delete node.argument;
}
if (this.isRestElement()) {
return node.argument;
}
// flow
if (this.isTypeCastExpression()) {
return node.expression;
}
// modules
if (this.isImportDeclaration()) {

@@ -228,7 +215,2 @@ delete node.isType;

// classes
if (this.isReferencedIdentifier({ name: "super" })) {
return t.inherits(t.thisExpression(), node);
}
if (this.isClassProperty()) {

@@ -242,3 +224,2 @@ delete node.key;

if (node.async) node.generator = true;
delete node.async;
}

@@ -245,0 +226,0 @@

2

package.json
{
"name": "babel-jscs",
"version": "2.0.3",
"version": "2.0.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "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