Socket
Socket
Sign inDemoInstall

regenerator-runtime

Package Overview
Dependencies
0
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.13.8 to 0.13.9

4

package.json

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

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

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

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

@@ -741,3 +741,4 @@ /**

// assignment should always work unless something is misconfigured. Just
// in case runtime.js accidentally runs in strict mode, we can escape
// in case runtime.js accidentally runs in strict mode, in modern engines
// we can explicitly access globalThis. In older engines we can escape
// strict mode using a global Function call. This could conceivably fail

@@ -749,3 +750,7 @@ // if a Content Security Policy forbids using Function, but in that case

// problems, please detail your unique predicament in a GitHub issue.
Function("r", "regeneratorRuntime = r")(runtime);
if (typeof globalThis === "object") {
globalThis.regeneratorRuntime = runtime;
} else {
Function("r", "regeneratorRuntime = r")(runtime);
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc