diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-09-16 23:55:23 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-09-16 23:55:23 +0100 |
| commit | eca69e9212cec84de5aa714fe50a3835a8d6a9c6 (patch) | |
| tree | 6bd68621c6d28717794c0e9d9bfae18920c4863b | |
| parent | 28254f95c0792cb4370619c23ddf9d6d1b3c5e63 (diff) | |
Rename promises.mapSeries() to promises.forEachSeries()
| -rw-r--r-- | lib/document-to-html.js | 2 | ||||
| -rw-r--r-- | lib/promises.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/document-to-html.js b/lib/document-to-html.js index 32c455f..9e85c8e 100644 --- a/lib/document-to-html.js +++ b/lib/document-to-html.js @@ -51,7 +51,7 @@ function DocumentConversion(options, comments) { } }); var deferredValues = Object.create(null); - return promises.mapSeries(deferredNodes, function(deferred) { + return promises.forEachSeries(deferredNodes, function(deferred) { return deferred.value().then(function(value) { deferredValues[deferred.id] = value; }); diff --git a/lib/promises.js b/lib/promises.js index 0c109c6..f448ca9 100644 --- a/lib/promises.js +++ b/lib/promises.js @@ -4,7 +4,7 @@ var bluebird = require("bluebird/js/release/promise")(); exports.defer = defer; exports.resolve = bluebird.resolve; exports.reject = bluebird.reject; -exports.mapSeries = bluebird.mapSeries; +exports.forEachSeries = bluebird.mapSeries; var props = exports.props = function(obj) { // We rely on .keys() and .values() returning properties in the same order. |
