mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-06-06 14:16:37 +00:00
Remove and replace p-map-series with Promise.all.
This commit is contained in:
parent
b3e4a093ca
commit
7a9e002ead
19
package-lock.json
generated
19
package-lock.json
generated
@ -31,7 +31,6 @@
|
|||||||
"mocha": "^10.2.0",
|
"mocha": "^10.2.0",
|
||||||
"mocha-headless-chrome": "^4.0.0",
|
"mocha-headless-chrome": "^4.0.0",
|
||||||
"open-cli": "^7.1.0",
|
"open-cli": "^7.1.0",
|
||||||
"p-map-series": "^3.0.0",
|
|
||||||
"path-browserify": "^1.0.1",
|
"path-browserify": "^1.0.1",
|
||||||
"remark-cli": "^11.0.0",
|
"remark-cli": "^11.0.0",
|
||||||
"rimraf": "^4.1.3",
|
"rimraf": "^4.1.3",
|
||||||
@ -10517,18 +10516,6 @@
|
|||||||
"url": "https://github.com/sponsors/sindresorhus"
|
"url": "https://github.com/sponsors/sindresorhus"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/p-map-series": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/p-map-series/-/p-map-series-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-/oSZlzK3Chrlrx+LFkiuMzWi2k2aEfIP8V5LandUN3/XRhUlxM1R0Th/xM6SKgjTXnIbZR9GkexTLiar2nKUeg==",
|
|
||||||
"dev": true,
|
|
||||||
"engines": {
|
|
||||||
"node": ">=12"
|
|
||||||
},
|
|
||||||
"funding": {
|
|
||||||
"url": "https://github.com/sponsors/sindresorhus"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"node_modules/p-queue": {
|
"node_modules/p-queue": {
|
||||||
"version": "7.3.4",
|
"version": "7.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/p-queue/-/p-queue-7.3.4.tgz",
|
"resolved": "https://registry.npmjs.org/p-queue/-/p-queue-7.3.4.tgz",
|
||||||
@ -21905,12 +21892,6 @@
|
|||||||
"p-limit": "^3.0.2"
|
"p-limit": "^3.0.2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"p-map-series": {
|
|
||||||
"version": "3.0.0",
|
|
||||||
"resolved": "https://registry.npmjs.org/p-map-series/-/p-map-series-3.0.0.tgz",
|
|
||||||
"integrity": "sha512-/oSZlzK3Chrlrx+LFkiuMzWi2k2aEfIP8V5LandUN3/XRhUlxM1R0Th/xM6SKgjTXnIbZR9GkexTLiar2nKUeg==",
|
|
||||||
"dev": true
|
|
||||||
},
|
|
||||||
"p-queue": {
|
"p-queue": {
|
||||||
"version": "7.3.4",
|
"version": "7.3.4",
|
||||||
"resolved": "https://registry.npmjs.org/p-queue/-/p-queue-7.3.4.tgz",
|
"resolved": "https://registry.npmjs.org/p-queue/-/p-queue-7.3.4.tgz",
|
||||||
|
@ -40,7 +40,6 @@
|
|||||||
"mocha": "^10.2.0",
|
"mocha": "^10.2.0",
|
||||||
"mocha-headless-chrome": "^4.0.0",
|
"mocha-headless-chrome": "^4.0.0",
|
||||||
"open-cli": "^7.1.0",
|
"open-cli": "^7.1.0",
|
||||||
"p-map-series": "^3.0.0",
|
|
||||||
"path-browserify": "^1.0.1",
|
"path-browserify": "^1.0.1",
|
||||||
"remark-cli": "^11.0.0",
|
"remark-cli": "^11.0.0",
|
||||||
"rimraf": "^4.1.3",
|
"rimraf": "^4.1.3",
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import { deepStrictEqual, strictEqual } from 'assert'
|
import { deepStrictEqual, strictEqual } from 'assert'
|
||||||
import mapSeries from 'p-map-series'
|
|
||||||
import rmrf from 'rimraf'
|
import rmrf from 'rimraf'
|
||||||
import { copy } from 'fs-extra'
|
import { copy } from 'fs-extra'
|
||||||
import * as IPFS from 'ipfs-core'
|
import * as IPFS from 'ipfs-core'
|
||||||
@ -104,8 +103,7 @@ describe('EventStore Database', function () {
|
|||||||
const first = arr => arr[0]
|
const first = arr => arr[0]
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeEach(async () => {
|
||||||
hashes = []
|
hashes = await Promise.all([0, 1, 2, 3, 4].map(i => db.add('hello' + i)))
|
||||||
hashes = await mapSeries([0, 1, 2, 3, 4], (i) => db.add('hello' + i))
|
|
||||||
})
|
})
|
||||||
|
|
||||||
describe('amount', () => {
|
describe('amount', () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user