Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

regenerator-runtime

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regenerator-runtime - npm Package Compare versions

Comparing version 0.13.10 to 0.13.11

4

package.json

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

"description": "Runtime for Regenerator-compiled generator and async functions.",
"version": "0.13.10",
"version": "0.13.11",
"main": "runtime.js",

@@ -17,5 +17,5 @@ "keywords": [

"type": "git",
"url": "https://github.com/facebook/regenerator/tree/master/packages/runtime"
"url": "https://github.com/facebook/regenerator/tree/main/packages/runtime"
},
"license": "MIT"
}

@@ -332,27 +332,28 @@ /**

function maybeInvokeDelegate(delegate, context) {
var method = delegate.iterator[context.method];
var methodName = context.method;
var method = delegate.iterator[methodName];
if (method === undefined) {
// A .throw or .return when the delegate iterator has no .throw
// method always terminates the yield* loop.
// method, or a missing .next mehtod, always terminate the
// yield* loop.
context.delegate = null;
if (context.method === "throw") {
// Note: ["return"] must be used for ES3 parsing compatibility.
if (delegate.iterator["return"]) {
// If the delegate iterator has a return method, give it a
// chance to clean up.
context.method = "return";
context.arg = undefined;
maybeInvokeDelegate(delegate, context);
// Note: ["return"] must be used for ES3 parsing compatibility.
if (methodName === "throw" && delegate.iterator["return"]) {
// If the delegate iterator has a return method, give it a
// chance to clean up.
context.method = "return";
context.arg = undefined;
maybeInvokeDelegate(delegate, context);
if (context.method === "throw") {
// If maybeInvokeDelegate(context) changed context.method from
// "return" to "throw", let that override the TypeError below.
return ContinueSentinel;
}
if (context.method === "throw") {
// If maybeInvokeDelegate(context) changed context.method from
// "return" to "throw", let that override the TypeError below.
return ContinueSentinel;
}
}
if (methodName !== "return") {
context.method = "throw";
context.arg = new TypeError(
"The iterator does not provide a 'throw' method");
"The iterator does not provide a '" + methodName + "' method");
}

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