mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
17 lines
346 B
JavaScript
17 lines
346 B
JavaScript
'use strict';
|
|
|
|
const pEachSeries = async (iterable, iterator) => {
|
|
let index = 0;
|
|
|
|
for (const value of iterable) {
|
|
// eslint-disable-next-line no-await-in-loop
|
|
await iterator(await value, index++);
|
|
}
|
|
|
|
return iterable;
|
|
};
|
|
|
|
module.exports = pEachSeries;
|
|
// TODO: Remove this for the next major release
|
|
module.exports.default = pEachSeries;
|