babel-runtime
Advanced tools
Comparing version 6.9.0 to 6.9.1
{ | ||
"name": "babel-runtime", | ||
"version": "6.9.0", | ||
"version": "6.9.1", | ||
"description": "babel selfContained runtime", | ||
@@ -15,4 +15,4 @@ "license": "MIT", | ||
"babel-template": "^6.9.0", | ||
"babel-regenerator-runtime": "^6.3.13" | ||
"regenerator-runtime": "^0.9.5" | ||
} | ||
} |
@@ -1,33 +0,1 @@ | ||
// This method of obtaining a reference to the global object needs to be | ||
// kept identical to the way it is obtained in runtime.js | ||
var g = | ||
typeof global === "object" ? global : | ||
typeof window === "object" ? window : | ||
typeof self === "object" ? self : this; | ||
// Use `getOwnPropertyNames` because not all browsers support calling | ||
// `hasOwnProperty` on the global `self` object in a worker. See #183. | ||
var hadRuntime = g.regeneratorRuntime && | ||
Object.getOwnPropertyNames(g).indexOf("regeneratorRuntime") >= 0; | ||
// Save the old regeneratorRuntime in case it needs to be restored later. | ||
var oldRuntime = hadRuntime && g.regeneratorRuntime; | ||
// Force reevalutation of runtime.js. | ||
g.regeneratorRuntime = undefined; | ||
module.exports = require("./runtime"); | ||
if (hadRuntime) { | ||
// Restore the original runtime. | ||
g.regeneratorRuntime = oldRuntime; | ||
} else { | ||
// Remove the global property added by runtime.js. | ||
try { | ||
delete g.regeneratorRuntime; | ||
} catch(e) { | ||
g.regeneratorRuntime = undefined; | ||
} | ||
} | ||
module.exports = { "default": module.exports, __esModule: true }; | ||
module.exports = require("regenerator-runtime"); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33910
232
424