Socket
Socket
Sign inDemoInstall

regenerator-transform

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regenerator-transform - npm Package Compare versions

Comparing version 0.14.3 to 0.14.4

5

lib/visit.js

@@ -104,6 +104,3 @@ /**

vars = vars || t.variableDeclaration("var", []);
var argumentIdentifier = t.identifier("arguments"); // we need to do this as otherwise arguments in arrow functions gets hoisted
argumentIdentifier._shadowedFunctionLiteral = path;
vars.declarations.push(t.variableDeclarator(t.clone(argsId), argumentIdentifier));
vars.declarations.push(t.variableDeclarator(t.clone(argsId), t.identifier("arguments")));
}

@@ -110,0 +107,0 @@

4

package.json

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

"description": "Explode async and generator functions into a state machine.",
"version": "0.14.3",
"version": "0.14.4",
"main": "lib/index.js",

@@ -20,3 +20,3 @@ "keywords": [

"scripts": {
"prepublish": "babel src/ --out-dir lib/"
"prepublish": "npx babel src/ --out-dir lib/"
},

@@ -23,0 +23,0 @@ "babel": {

@@ -117,7 +117,5 @@ /**

vars = vars || t.variableDeclaration("var", []);
const argumentIdentifier = t.identifier("arguments");
// we need to do this as otherwise arguments in arrow functions gets hoisted
argumentIdentifier._shadowedFunctionLiteral = path;
vars.declarations.push(t.variableDeclarator(
t.clone(argsId), argumentIdentifier
t.clone(argsId),
t.identifier("arguments"),
));

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