Changes
This commit is contained in:
2
node_modules/regenerator-runtime/README.md
generated
vendored
2
node_modules/regenerator-runtime/README.md
generated
vendored
@@ -21,7 +21,7 @@ following styles will work:
|
||||
require("regenerator-runtime/runtime");
|
||||
|
||||
// ECMAScript 2015
|
||||
import "regenerator-runtime/runtime.js";
|
||||
import "regenerator-runtime/runtime";
|
||||
```
|
||||
|
||||
To get the absolute file system path of `runtime.js`, evaluate the
|
||||
|
||||
39
node_modules/regenerator-runtime/package.json
generated
vendored
39
node_modules/regenerator-runtime/package.json
generated
vendored
@@ -1,47 +1,18 @@
|
||||
{
|
||||
"_from": "regenerator-runtime@^0.13.4",
|
||||
"_id": "regenerator-runtime@0.13.5",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==",
|
||||
"_location": "/regenerator-runtime",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "regenerator-runtime@^0.13.4",
|
||||
"name": "regenerator-runtime",
|
||||
"escapedName": "regenerator-runtime",
|
||||
"rawSpec": "^0.13.4",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.13.4"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@babel/runtime"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz",
|
||||
"_shasum": "d878a1d094b4306d10b9096484b33ebd55e26697",
|
||||
"_spec": "regenerator-runtime@^0.13.4",
|
||||
"_where": "D:\\WORK\\Menui\\menui_backend\\node_modules\\@babel\\runtime",
|
||||
"author": {
|
||||
"name": "Ben Newman",
|
||||
"email": "bn@cs.stanford.edu"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"name": "regenerator-runtime",
|
||||
"author": "Ben Newman <bn@cs.stanford.edu>",
|
||||
"description": "Runtime for Regenerator-compiled generator and async functions.",
|
||||
"version": "0.10.5",
|
||||
"main": "runtime-module.js",
|
||||
"keywords": [
|
||||
"regenerator",
|
||||
"runtime",
|
||||
"generator",
|
||||
"async"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "runtime.js",
|
||||
"name": "regenerator-runtime",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/facebook/regenerator/tree/master/packages/regenerator-runtime"
|
||||
},
|
||||
"sideEffects": true,
|
||||
"version": "0.13.5"
|
||||
"license": "MIT"
|
||||
}
|
||||
|
||||
7
node_modules/regenerator-runtime/path.js
generated
vendored
7
node_modules/regenerator-runtime/path.js
generated
vendored
@@ -1,10 +1,3 @@
|
||||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
exports.path = require("path").join(
|
||||
__dirname,
|
||||
"runtime.js"
|
||||
|
||||
123
node_modules/regenerator-runtime/runtime.js
generated
vendored
123
node_modules/regenerator-runtime/runtime.js
generated
vendored
@@ -1,11 +1,14 @@
|
||||
/**
|
||||
* Copyright (c) 2014-present, Facebook, Inc.
|
||||
* Copyright (c) 2014, Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
* This source code is licensed under the BSD-style license found in the
|
||||
* https://raw.github.com/facebook/regenerator/master/LICENSE file. An
|
||||
* additional grant of patent rights can be found in the PATENTS file in
|
||||
* the same directory.
|
||||
*/
|
||||
|
||||
var runtime = (function (exports) {
|
||||
!(function(global) {
|
||||
"use strict";
|
||||
|
||||
var Op = Object.prototype;
|
||||
@@ -16,6 +19,23 @@ var runtime = (function (exports) {
|
||||
var asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator";
|
||||
var toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
||||
|
||||
var inModule = typeof module === "object";
|
||||
var runtime = global.regeneratorRuntime;
|
||||
if (runtime) {
|
||||
if (inModule) {
|
||||
// If regeneratorRuntime is defined globally and we're in a module,
|
||||
// make the exports object identical to regeneratorRuntime.
|
||||
module.exports = runtime;
|
||||
}
|
||||
// Don't bother evaluating the rest of this file if the runtime was
|
||||
// already defined globally.
|
||||
return;
|
||||
}
|
||||
|
||||
// Define the runtime globally (as expected by generated code) as either
|
||||
// module.exports (if we're in a module) or a new, empty object.
|
||||
runtime = global.regeneratorRuntime = inModule ? module.exports : {};
|
||||
|
||||
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;
|
||||
@@ -28,7 +48,7 @@ var runtime = (function (exports) {
|
||||
|
||||
return generator;
|
||||
}
|
||||
exports.wrap = wrap;
|
||||
runtime.wrap = wrap;
|
||||
|
||||
// Try/catch helper to minimize deoptimizations. Returns a completion
|
||||
// record like context.tryEntries[i].completion. This interface could
|
||||
@@ -99,7 +119,7 @@ var runtime = (function (exports) {
|
||||
});
|
||||
}
|
||||
|
||||
exports.isGeneratorFunction = function(genFun) {
|
||||
runtime.isGeneratorFunction = function(genFun) {
|
||||
var ctor = typeof genFun === "function" && genFun.constructor;
|
||||
return ctor
|
||||
? ctor === GeneratorFunction ||
|
||||
@@ -109,7 +129,7 @@ var runtime = (function (exports) {
|
||||
: false;
|
||||
};
|
||||
|
||||
exports.mark = function(genFun) {
|
||||
runtime.mark = function(genFun) {
|
||||
if (Object.setPrototypeOf) {
|
||||
Object.setPrototypeOf(genFun, GeneratorFunctionPrototype);
|
||||
} else {
|
||||
@@ -126,11 +146,11 @@ var runtime = (function (exports) {
|
||||
// `yield regeneratorRuntime.awrap(x)`, so that the runtime can test
|
||||
// `hasOwn.call(value, "__await")` to determine if the yielded value is
|
||||
// meant to be awaited.
|
||||
exports.awrap = function(arg) {
|
||||
runtime.awrap = function(arg) {
|
||||
return { __await: arg };
|
||||
};
|
||||
|
||||
function AsyncIterator(generator, PromiseImpl) {
|
||||
function AsyncIterator(generator) {
|
||||
function invoke(method, arg, resolve, reject) {
|
||||
var record = tryCatch(generator[method], generator, arg);
|
||||
if (record.type === "throw") {
|
||||
@@ -141,32 +161,44 @@ var runtime = (function (exports) {
|
||||
if (value &&
|
||||
typeof value === "object" &&
|
||||
hasOwn.call(value, "__await")) {
|
||||
return PromiseImpl.resolve(value.__await).then(function(value) {
|
||||
return Promise.resolve(value.__await).then(function(value) {
|
||||
invoke("next", value, resolve, reject);
|
||||
}, function(err) {
|
||||
invoke("throw", err, resolve, reject);
|
||||
});
|
||||
}
|
||||
|
||||
return PromiseImpl.resolve(value).then(function(unwrapped) {
|
||||
return Promise.resolve(value).then(function(unwrapped) {
|
||||
// When a yielded Promise is resolved, its final value becomes
|
||||
// the .value of the Promise<{value,done}> result for the
|
||||
// current iteration.
|
||||
// current iteration. If the Promise is rejected, however, the
|
||||
// result for this iteration will be rejected with the same
|
||||
// reason. Note that rejections of yielded Promises are not
|
||||
// thrown back into the generator function, as is the case
|
||||
// when an awaited Promise is rejected. This difference in
|
||||
// behavior between yield and await is important, because it
|
||||
// allows the consumer to decide what to do with the yielded
|
||||
// rejection (swallow it and continue, manually .throw it back
|
||||
// into the generator, abandon iteration, whatever). With
|
||||
// await, by contrast, there is no opportunity to examine the
|
||||
// rejection reason outside the generator function, so the
|
||||
// only option is to throw it from the await expression, and
|
||||
// let the generator function handle the exception.
|
||||
result.value = unwrapped;
|
||||
resolve(result);
|
||||
}, function(error) {
|
||||
// If a rejected Promise was yielded, throw the rejection back
|
||||
// into the async generator function so it can be handled there.
|
||||
return invoke("throw", error, resolve, reject);
|
||||
});
|
||||
}, reject);
|
||||
}
|
||||
}
|
||||
|
||||
if (typeof global.process === "object" && global.process.domain) {
|
||||
invoke = global.process.domain.bind(invoke);
|
||||
}
|
||||
|
||||
var previousPromise;
|
||||
|
||||
function enqueue(method, arg) {
|
||||
function callInvokeWithMethodAndArg() {
|
||||
return new PromiseImpl(function(resolve, reject) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
invoke(method, arg, resolve, reject);
|
||||
});
|
||||
}
|
||||
@@ -201,20 +233,17 @@ var runtime = (function (exports) {
|
||||
AsyncIterator.prototype[asyncIteratorSymbol] = function () {
|
||||
return this;
|
||||
};
|
||||
exports.AsyncIterator = AsyncIterator;
|
||||
runtime.AsyncIterator = AsyncIterator;
|
||||
|
||||
// Note that simple async functions are implemented on top of
|
||||
// AsyncIterator objects; they just return a Promise for the value of
|
||||
// the final result produced by the iterator.
|
||||
exports.async = function(innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
||||
if (PromiseImpl === void 0) PromiseImpl = Promise;
|
||||
|
||||
runtime.async = function(innerFn, outerFn, self, tryLocsList) {
|
||||
var iter = new AsyncIterator(
|
||||
wrap(innerFn, outerFn, self, tryLocsList),
|
||||
PromiseImpl
|
||||
wrap(innerFn, outerFn, self, tryLocsList)
|
||||
);
|
||||
|
||||
return exports.isGeneratorFunction(outerFn)
|
||||
return runtime.isGeneratorFunction(outerFn)
|
||||
? iter // If outerFn is a generator, return the full iterator.
|
||||
: iter.next().then(function(result) {
|
||||
return result.done ? result.value : iter.next();
|
||||
@@ -311,8 +340,7 @@ var runtime = (function (exports) {
|
||||
context.delegate = null;
|
||||
|
||||
if (context.method === "throw") {
|
||||
// Note: ["return"] must be used for ES3 parsing compatibility.
|
||||
if (delegate.iterator["return"]) {
|
||||
if (delegate.iterator.return) {
|
||||
// If the delegate iterator has a return method, give it a
|
||||
// chance to clean up.
|
||||
context.method = "return";
|
||||
@@ -432,7 +460,7 @@ var runtime = (function (exports) {
|
||||
this.reset(true);
|
||||
}
|
||||
|
||||
exports.keys = function(object) {
|
||||
runtime.keys = function(object) {
|
||||
var keys = [];
|
||||
for (var key in object) {
|
||||
keys.push(key);
|
||||
@@ -493,7 +521,7 @@ var runtime = (function (exports) {
|
||||
// Return an iterator with no values.
|
||||
return { next: doneResult };
|
||||
}
|
||||
exports.values = values;
|
||||
runtime.values = values;
|
||||
|
||||
function doneResult() {
|
||||
return { value: undefined, done: true };
|
||||
@@ -698,32 +726,11 @@ var runtime = (function (exports) {
|
||||
return ContinueSentinel;
|
||||
}
|
||||
};
|
||||
|
||||
// Regardless of whether this script is executing as a CommonJS module
|
||||
// or not, return the runtime object so that we can declare the variable
|
||||
// regeneratorRuntime in the outer scope, which allows this module to be
|
||||
// injected easily by `bin/regenerator --include-runtime script.js`.
|
||||
return exports;
|
||||
|
||||
}(
|
||||
// If this script is executing as a CommonJS module, use module.exports
|
||||
// as the regeneratorRuntime namespace. Otherwise create a new empty
|
||||
// object. Either way, the resulting object will be used to initialize
|
||||
// the regeneratorRuntime variable at the top of this file.
|
||||
typeof module === "object" ? module.exports : {}
|
||||
));
|
||||
|
||||
try {
|
||||
regeneratorRuntime = runtime;
|
||||
} 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
|
||||
// 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);
|
||||
}
|
||||
})(
|
||||
// Among the various tricks for obtaining a reference to the global
|
||||
// object, this seems to be the most reliable technique that does not
|
||||
// use indirect eval (which violates Content Security Policy).
|
||||
typeof global === "object" ? global :
|
||||
typeof window === "object" ? window :
|
||||
typeof self === "object" ? self : this
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user