update
This commit is contained in:
+14
-13
@@ -1,28 +1,29 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"regenerator-runtime@0.13.5",
|
||||
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
|
||||
"regenerator-runtime@0.13.9",
|
||||
"/home/node/nuxt"
|
||||
]
|
||||
],
|
||||
"_from": "regenerator-runtime@0.13.5",
|
||||
"_id": "regenerator-runtime@0.13.5",
|
||||
"_from": "regenerator-runtime@0.13.9",
|
||||
"_id": "regenerator-runtime@0.13.9",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==",
|
||||
"_integrity": "sha512-p3VT+cOEgxFsRRA9X4lkI1E+k2/CtnKtU4gcxyaCUreilL/vqI6CdZ3wxVUx3UOUg+gnUOQQcRI7BmSI656MYA==",
|
||||
"_location": "/regenerator-runtime",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "regenerator-runtime@0.13.5",
|
||||
"raw": "regenerator-runtime@0.13.9",
|
||||
"name": "regenerator-runtime",
|
||||
"escapedName": "regenerator-runtime",
|
||||
"rawSpec": "0.13.5",
|
||||
"rawSpec": "0.13.9",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "0.13.5"
|
||||
"fetchSpec": "0.13.9"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@babel/runtime",
|
||||
"/@nuxt/babel-preset-app",
|
||||
"/js-crypto-aes/@babel/runtime",
|
||||
"/js-crypto-ec/@babel/runtime",
|
||||
"/js-crypto-env/@babel/runtime",
|
||||
@@ -32,9 +33,9 @@
|
||||
"/js-crypto-pbkdf/@babel/runtime",
|
||||
"/js-crypto-random/@babel/runtime"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz",
|
||||
"_spec": "0.13.5",
|
||||
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
|
||||
"_resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.9.tgz",
|
||||
"_spec": "0.13.9",
|
||||
"_where": "/home/node/nuxt",
|
||||
"author": {
|
||||
"name": "Ben Newman",
|
||||
"email": "bn@cs.stanford.edu"
|
||||
@@ -51,8 +52,8 @@
|
||||
"name": "regenerator-runtime",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime"
|
||||
"url": "https://github.com/facebook/regenerator/tree/master/packages/runtime"
|
||||
},
|
||||
"sideEffects": true,
|
||||
"version": "0.13.5"
|
||||
"version": "0.13.9"
|
||||
}
|
||||
|
||||
+45
-20
@@ -16,6 +16,24 @@ var runtime = (function (exports) {
|
||||
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
||||
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
||||
|
||||
function define(obj, key, value) {
|
||||
Object.defineProperty(obj, key, {
|
||||
value: value,
|
||||
enumerable: true,
|
||||
configurable: true,
|
||||
writable: true
|
||||
});
|
||||
return obj[key];
|
||||
}
|
||||
try {
|
||||
// IE 8 has a broken Object.defineProperty that only works on DOM objects.
|
||||
define({}, "");
|
||||
} catch (err) {
|
||||
define = function(obj, key, value) {
|
||||
return obj[key] = value;
|
||||
};
|
||||
}
|
||||
|
||||
function wrap(innerFn, outerFn, self, tryLocsList) {
|
||||
// If outerFn provided and outerFn.prototype is a Generator, then outerFn.prototype instanceof Generator.
|
||||
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator;
|
||||
@@ -68,9 +86,9 @@ var runtime = (function (exports) {
|
||||
// This is a polyfill for %IteratorPrototype% for environments that
|
||||
// don't natively support it.
|
||||
var IteratorPrototype = {};
|
||||
IteratorPrototype[iteratorSymbol] = function () {
|
||||
define(IteratorPrototype, iteratorSymbol, function () {
|
||||
return this;
|
||||
};
|
||||
});
|
||||
|
||||
var getProto = Object.getPrototypeOf;
|
||||
var NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
||||
@@ -84,18 +102,22 @@ var runtime = (function (exports) {
|
||||
|
||||
var Gp = GeneratorFunctionPrototype.prototype =
|
||||
Generator.prototype = Object.create(IteratorPrototype);
|
||||
GeneratorFunction.prototype = Gp.constructor = GeneratorFunctionPrototype;
|
||||
GeneratorFunctionPrototype.constructor = GeneratorFunction;
|
||||
GeneratorFunctionPrototype[toStringTagSymbol] =
|
||||
GeneratorFunction.displayName = "GeneratorFunction";
|
||||
GeneratorFunction.prototype = GeneratorFunctionPrototype;
|
||||
define(Gp, "constructor", GeneratorFunctionPrototype);
|
||||
define(GeneratorFunctionPrototype, "constructor", GeneratorFunction);
|
||||
GeneratorFunction.displayName = define(
|
||||
GeneratorFunctionPrototype,
|
||||
toStringTagSymbol,
|
||||
"GeneratorFunction"
|
||||
);
|
||||
|
||||
// Helper for defining the .next, .throw, and .return methods of the
|
||||
// Iterator interface in terms of a single ._invoke method.
|
||||
function defineIteratorMethods(prototype) {
|
||||
["next", "throw", "return"].forEach(function(method) {
|
||||
prototype[method] = function(arg) {
|
||||
define(prototype, method, function(arg) {
|
||||
return this._invoke(method, arg);
|
||||
};
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
@@ -114,9 +136,7 @@ var runtime = (function (exports) {
|
||||
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
||||
} else {
|
||||
genFun.__proto__ = GeneratorFunctionPrototype;
|
||||
if (!(toStringTagSymbol in genFun)) {
|
||||
genFun[toStringTagSymbol] = "GeneratorFunction";
|
||||
}
|
||||
define(genFun, toStringTagSymbol, "GeneratorFunction");
|
||||
}
|
||||
genFun.prototype = Object.create(Gp);
|
||||
return genFun;
|
||||
@@ -198,9 +218,9 @@ var runtime = (function (exports) {
|
||||
}
|
||||
|
||||
defineIteratorMethods(AsyncIterator.prototype);
|
||||
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
||||
define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
||||
return this;
|
||||
};
|
||||
});
|
||||
exports.AsyncIterator = AsyncIterator;
|
||||
|
||||
// Note that simple async functions are implemented on top of
|
||||
@@ -386,20 +406,20 @@ var runtime = (function (exports) {
|
||||
// unified ._invoke helper method.
|
||||
defineIteratorMethods(Gp);
|
||||
|
||||
Gp[toStringTagSymbol] = "Generator";
|
||||
define(Gp, toStringTagSymbol, "Generator");
|
||||
|
||||
// A Generator should always return itself as the iterator object when the
|
||||
// @@iterator function is called on it. Some browsers' implementations of the
|
||||
// iterator prototype chain incorrectly implement this, causing the Generator
|
||||
// object to not be returned from this call. This ensures that doesn't happen.
|
||||
// See https://github.com/facebook/regenerator/issues/274 for more details.
|
||||
Gp[iteratorSymbol] = function() {
|
||||
define(Gp, iteratorSymbol, function() {
|
||||
return this;
|
||||
};
|
||||
});
|
||||
|
||||
Gp.toString = function() {
|
||||
define(Gp, "toString", function() {
|
||||
return "[object Generator]";
|
||||
};
|
||||
});
|
||||
|
||||
function pushTryEntry(locs) {
|
||||
var entry = { tryLoc: locs[0] };
|
||||
@@ -718,12 +738,17 @@ try {
|
||||
} catch (accidentalStrictMode) {
|
||||
// This module should not be running in strict mode, so the above
|
||||
// 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
|
||||
// if a Content Security Policy forbids using Function, but in that case
|
||||
// the proper solution is to fix the accidental strict mode problem. If
|
||||
// you've misconfigured your bundler to force strict mode and applied a
|
||||
// CSP to forbid Function, and you're not willing to fix either of those
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user