This commit is contained in:
2022-07-18 02:50:52 +00:00
parent befd344ab0
commit 06181b34d6
8569 changed files with 818704 additions and 352705 deletions
+6 -3
View File
@@ -1,8 +1,11 @@
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
module.exports = runParallel
const queueMicrotask = require('queue-microtask')
function runParallel (tasks, cb) {
var results, pending, keys
var isSync = true
let results, pending, keys
let isSync = true
if (Array.isArray(tasks)) {
results = []
@@ -18,7 +21,7 @@ function runParallel (tasks, cb) {
if (cb) cb(err, results)
cb = null
}
if (isSync) process.nextTick(end)
if (isSync) queueMicrotask(end)
else end()
}
+32 -16
View File
@@ -1,47 +1,63 @@
{
"_args": [
[
"run-parallel@1.1.9",
"/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series"
"run-parallel@1.2.0",
"/home/node/nuxt"
]
],
"_from": "run-parallel@1.1.9",
"_id": "run-parallel@1.1.9",
"_from": "run-parallel@1.2.0",
"_id": "run-parallel@1.2.0",
"_inBundle": false,
"_integrity": "sha512-DEqnSRTDw/Tc3FXf49zedI638Z9onwUotBMiUFKmrO2sdFKIbXamXGQ3Axd4qgphxKB4kw/qP1w5kTxnfU1B9Q==",
"_integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
"_location": "/run-parallel",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "run-parallel@1.1.9",
"raw": "run-parallel@1.2.0",
"name": "run-parallel",
"escapedName": "run-parallel",
"rawSpec": "1.1.9",
"rawSpec": "1.2.0",
"saveSpec": null,
"fetchSpec": "1.1.9"
"fetchSpec": "1.2.0"
},
"_requiredBy": [
"/@nodelib/fs.scandir"
],
"_resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.1.9.tgz",
"_spec": "1.1.9",
"_where": "/mnt/Foxconn/Digitalent/Deverloper/liff-push_2series",
"_resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
"_spec": "1.2.0",
"_where": "/home/node/nuxt",
"author": {
"name": "Feross Aboukhadijeh",
"email": "feross@feross.org",
"url": "http://feross.org/"
"url": "https://feross.org"
},
"bugs": {
"url": "https://github.com/feross/run-parallel/issues"
},
"dependencies": {},
"dependencies": {
"queue-microtask": "^1.2.2"
},
"description": "Run an array of functions in parallel",
"devDependencies": {
"airtap": "0.0.4",
"airtap": "^3.0.0",
"standard": "*",
"tape": "^4.0.0"
"tape": "^5.0.1"
},
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/feross"
},
{
"type": "patreon",
"url": "https://www.patreon.com/feross"
},
{
"type": "consulting",
"url": "https://feross.org/support"
}
],
"homepage": "https://github.com/feross/run-parallel",
"keywords": [
"parallel",
@@ -66,5 +82,5 @@
"test-browser-local": "airtap --local -- test/*.js",
"test-node": "tape test/*.js"
},
"version": "1.1.9"
"version": "1.2.0"
}