Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

9
node_modules/gensync/index.js generated vendored
View File

@@ -33,6 +33,11 @@ module.exports = Object.assign(
async: function(args, resolve, reject) {
const items = Array.from(args[0]);
if (items.length === 0) {
Promise.resolve().then(() => resolve([]));
return;
}
let count = 0;
const results = items.map(() => undefined);
items.forEach((item, i) => {
@@ -201,7 +206,9 @@ function buildOperation({ name, arity, sync, async }) {
return setFunctionMetadata(name, arity, function*(...args) {
const resume = yield GENSYNC_START;
if (!resume) {
return sync.call(this, args);
// Break the tail call to avoid a bug in V8 v6.X with --harmony enabled.
const res = sync.call(this, args);
return res;
}
let result;

20
node_modules/gensync/package.json generated vendored
View File

@@ -1,8 +1,8 @@
{
"_from": "gensync@^1.0.0-beta.1",
"_id": "gensync@1.0.0-beta.1",
"_id": "gensync@1.0.0-beta.2",
"_inBundle": false,
"_integrity": "sha512-r8EC6NO1sngH/zdD9fiRDLdcgnbayXah+mLgManTaIZJqEC1MZstmnox8KpnI2/fxQwrp5OpCOYWLp4rBl4Jcg==",
"_integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",
"_location": "/gensync",
"_phantomChildren": {},
"_requested": {
@@ -18,14 +18,17 @@
"_requiredBy": [
"/@babel/core"
],
"_resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.1.tgz",
"_shasum": "58f4361ff987e5ff6e1e7a210827aa371eaac269",
"_resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",
"_shasum": "32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0",
"_spec": "gensync@^1.0.0-beta.1",
"_where": "/Users/drew.heavner/Documents/Github/upload-google-play/node_modules/@babel/core",
"_where": "/home/codespace/workspace/upload-google-play/node_modules/@babel/core",
"author": {
"name": "Logan Smyth",
"email": "loganfsmyth@gmail.com"
},
"bugs": {
"url": "https://github.com/loganfsmyth/gensync/issues"
},
"bundleDependencies": false,
"deprecated": false,
"description": "Allows users to use generators in order to write common functions that can be both sync or async.",
@@ -43,6 +46,7 @@
"engines": {
"node": ">=6.9.0"
},
"homepage": "https://github.com/loganfsmyth/gensync",
"keywords": [
"async",
"sync",
@@ -53,8 +57,12 @@
"license": "MIT",
"main": "index.js",
"name": "gensync",
"repository": {
"type": "git",
"url": "git+https://github.com/loganfsmyth/gensync.git"
},
"scripts": {
"test": "jest"
},
"version": "1.0.0-beta.1"
"version": "1.0.0-beta.2"
}

View File

@@ -181,7 +181,9 @@ describe("gensync({})", () => {
test("default arity", () => {
expect(
gensync({
sync: function(a, b, c, d, e, f, g){ throwTestError(); },
sync: function(a, b, c, d, e, f, g) {
throwTestError();
},
async: throwTestError,
}).length
).toBe(7);
@@ -444,6 +446,18 @@ describe("gensync.all()", () => {
syncErrback: false,
});
});
test("empty list", async () => {
const fn = gensync(function*() {
yield* gensync.all([]);
});
await expectResult(fn, undefined, {
value: undefined,
expectSync: true,
syncErrback: false,
});
});
});
describe("gensync.race()", () => {