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.12.3 to 0.12.4

11

lib/emit.js

@@ -990,4 +990,6 @@ "use strict";

self.emit(t.returnStatement(t.callExpression(self.contextProperty("delegateYield"), [arg, t.stringLiteral(_result.property.name), after])));
var _ret = t.returnStatement(t.callExpression(self.contextProperty("delegateYield"), [arg, t.stringLiteral(_result.property.name), after]));
_ret.loc = expr.loc;
self.emit(_ret);
self.mark(after);

@@ -999,3 +1001,8 @@

self.emitAssign(self.contextProperty("next"), after);
self.emit(t.returnStatement(arg || null));
var ret = t.returnStatement(arg || null);
// Preserve the `yield` location so that source mappings for the statements
// link back to the yield properly.
ret.loc = expr.loc;
self.emit(ret);
self.mark(after);

@@ -1002,0 +1009,0 @@

2

package.json

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

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

@@ -8,0 +8,0 @@ "keywords": [

@@ -1175,4 +1175,5 @@ /**

self.emit(t.returnStatement(t.callExpression(
self.contextProperty("delegateYield"), [
let ret = t.returnStatement(t.callExpression(
self.contextProperty("delegateYield"),
[
arg,

@@ -1182,4 +1183,6 @@ t.stringLiteral(result.property.name),

]
)));
));
ret.loc = expr.loc;
self.emit(ret);
self.mark(after);

@@ -1191,3 +1194,8 @@

self.emitAssign(self.contextProperty("next"), after);
self.emit(t.returnStatement(arg || null));
let ret = t.returnStatement(arg || null);
// Preserve the `yield` location so that source mappings for the statements
// link back to the yield properly.
ret.loc = expr.loc;
self.emit(ret);
self.mark(after);

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