Commit a2892aa5c1069e88aa08a58c5722a33c05a68adc
Use looper v4
cel committed on 5/15/2020, 8:45:01 PMParent: a237a962d290b9ec6eecd57f40dd431f7e585b84
Files changed
index.js | changed |
package.json | changed |
index.js | |||
---|---|---|---|
@@ -16,15 +16,16 @@ | |||
16 | 16 … | } | |
17 | 17 … | ||
18 | 18 … | function forEachAsync(arr, fn, cb) { | |
19 | 19 … | var i = 0 | |
20 | - loop(function (next) { | ||
20 … | + var next = loop(function () { | ||
21 | 21 … | if (i >= arr.length) return cb && cb() | |
22 | 22 … | fn(arr[i++], function (err) { | |
23 | 23 … | if (err) return cb && cb(err) | |
24 | 24 … | next() | |
25 | 25 … | }) | |
26 | 26 … | }) | |
27 … | + next() | ||
27 | 28 … | } | |
28 | 29 … | ||
29 | 30 … | function compareByOffset(a, b) { | |
30 | 31 … | return a.offset - b.offset |
package.json | ||
---|---|---|
@@ -14,9 +14,9 @@ | ||
14 | 14 … | }, |
15 | 15 … | "license": "Fair", |
16 | 16 … | "dependencies": { |
17 | 17 … | "pull-git-packidx-parser": "^1.0.0", |
18 | - "looper": "^3.0.0", | |
18 … | + "looper": "^4.0.0", | |
19 | 19 … | "multicb": "^1.2.1", |
20 | 20 … | "pull-block-filter": "^1.0.0", |
21 | 21 … | "pull-cat": "^1.1.8", |
22 | 22 … | "pull-skip-footer": "^0.1.0", |
Built with git-ssb-web