Comparing version 3.2.2 to 3.2.3
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOf from './eachOf' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOf from './eachOf.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOfSeries from './eachOfSeries'; | ||
import awaitify from './internal/awaitify'; | ||
import createTester from './internal/createTester.js' | ||
import eachOfSeries from './eachOfSeries.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOf from './eachOf' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOf from './eachOf.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOfSeries from './eachOfSeries'; | ||
import awaitify from './internal/awaitify'; | ||
import createTester from './internal/createTester.js' | ||
import eachOfSeries from './eachOfSeries.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import applyEach from './internal/applyEach'; | ||
import map from './map'; | ||
import applyEach from './internal/applyEach.js' | ||
import map from './map.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import applyEach from './internal/applyEach'; | ||
import mapSeries from './mapSeries'; | ||
import applyEach from './internal/applyEach.js' | ||
import mapSeries from './mapSeries.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import initialParams from './internal/initialParams'; | ||
import setImmediate from './internal/setImmediate'; | ||
import { isAsync } from './internal/wrapAsync' | ||
import initialParams from './internal/initialParams.js' | ||
import setImmediate from './internal/setImmediate.js' | ||
import { isAsync } from './internal/wrapAsync.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import once from './internal/once'; | ||
import onlyOnce from './internal/onlyOnce'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import { promiseCallback, PROMISE_SYMBOL } from './internal/promiseCallback' | ||
import once from './internal/once.js' | ||
import onlyOnce from './internal/onlyOnce.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import { promiseCallback, PROMISE_SYMBOL } from './internal/promiseCallback.js' | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import auto from './auto'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import { isAsync } from './internal/wrapAsync'; | ||
import auto from './auto.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import { isAsync } from './internal/wrapAsync.js' | ||
@@ -9,7 +9,33 @@ var FN_ARGS = /^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/; | ||
var FN_ARG = /(=.+)?(\s*)$/; | ||
var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg; | ||
function stripComments(string) { | ||
let stripped = ''; | ||
let index = 0; | ||
let endBlockComment = string.indexOf('*/'); | ||
while (index < string.length) { | ||
if (string[index] === '/' && string[index+1] === '/') { | ||
// inline comment | ||
let endIndex = string.indexOf('\n', index); | ||
index = (endIndex === -1) ? string.length : endIndex; | ||
} else if ((endBlockComment !== -1) && (string[index] === '/') && (string[index+1] === '*')) { | ||
// block comment | ||
let endIndex = string.indexOf('*/', index); | ||
if (endIndex !== -1) { | ||
index = endIndex + 2; | ||
endBlockComment = string.indexOf('*/', index); | ||
} else { | ||
stripped += string[index]; | ||
index++; | ||
} | ||
} else { | ||
stripped += string[index]; | ||
index++; | ||
} | ||
} | ||
return stripped; | ||
} | ||
function parseParams(func) { | ||
const src = func.toString().replace(STRIP_COMMENTS, ''); | ||
let match = src.match(FN_ARGS) | ||
const src = stripComments(func.toString()); | ||
let match = src.match(FN_ARGS); | ||
if (!match) { | ||
@@ -16,0 +42,0 @@ match = src.match(ARROW_FN_ARGS); |
@@ -1,2 +0,2 @@ | ||
import queue from './internal/queue'; | ||
import queue from './internal/queue.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import queue from './internal/queue'; | ||
import queue from './internal/queue.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -0,1 +1,4 @@ | ||
# v3.2.3 | ||
- Fix bugs in comment parsing in `autoInject`. (#1767, #1780) | ||
# v3.2.2 | ||
@@ -2,0 +5,0 @@ - Fix potential prototype pollution exploit |
@@ -1,2 +0,2 @@ | ||
import seq from './seq'; | ||
import seq from './seq.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import concatLimit from './concatLimit'; | ||
import awaitify from './internal/awaitify' | ||
import concatLimit from './concatLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import wrapAsync from './internal/wrapAsync'; | ||
import mapLimit from './mapLimit'; | ||
import awaitify from './internal/awaitify' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import mapLimit from './mapLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import concatLimit from './concatLimit'; | ||
import awaitify from './internal/awaitify' | ||
import concatLimit from './concatLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOf from './eachOf' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOf from './eachOf.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester' | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import consoleFunc from './internal/consoleFunc'; | ||
import consoleFunc from './internal/consoleFunc.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import onlyOnce from './internal/onlyOnce'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import onlyOnce from './internal/onlyOnce.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import doWhilst from './doWhilst'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import doWhilst from './doWhilst.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import onlyOnce from './internal/onlyOnce'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import onlyOnce from './internal/onlyOnce.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import onlyOnce from './internal/onlyOnce'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify'; | ||
import onlyOnce from './internal/onlyOnce.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import eachOf from './eachOf'; | ||
import withoutIndex from './internal/withoutIndex'; | ||
import wrapAsync from './internal/wrapAsync' | ||
import awaitify from './internal/awaitify' | ||
import eachOf from './eachOf.js' | ||
import withoutIndex from './internal/withoutIndex.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import eachOfLimit from './internal/eachOfLimit'; | ||
import withoutIndex from './internal/withoutIndex'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import withoutIndex from './internal/withoutIndex.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,8 +0,8 @@ | ||
import isArrayLike from './internal/isArrayLike'; | ||
import breakLoop from './internal/breakLoop'; | ||
import eachOfLimit from './eachOfLimit'; | ||
import once from './internal/once'; | ||
import onlyOnce from './internal/onlyOnce'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import isArrayLike from './internal/isArrayLike.js' | ||
import breakLoop from './internal/breakLoop.js' | ||
import eachOfLimit from './eachOfLimit.js' | ||
import once from './internal/once.js' | ||
import onlyOnce from './internal/onlyOnce.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -9,0 +9,0 @@ // eachOf implementation optimized for array-likes |
@@ -1,4 +0,4 @@ | ||
import _eachOfLimit from './internal/eachOfLimit'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import _eachOfLimit from './internal/eachOfLimit.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import eachOfLimit from './eachOfLimit'; | ||
import awaitify from './internal/awaitify' | ||
import eachOfLimit from './eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import eachLimit from './eachLimit'; | ||
import awaitify from './internal/awaitify' | ||
import eachLimit from './eachLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import setImmediate from './internal/setImmediate'; | ||
import { isAsync } from './internal/wrapAsync'; | ||
import setImmediate from './internal/setImmediate.js' | ||
import { isAsync } from './internal/wrapAsync.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOf from './eachOf' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOf from './eachOf.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOfSeries from './eachOfSeries'; | ||
import awaitify from './internal/awaitify'; | ||
import createTester from './internal/createTester.js' | ||
import eachOfSeries from './eachOfSeries.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import _filter from './internal/filter'; | ||
import eachOf from './eachOf' | ||
import awaitify from './internal/awaitify' | ||
import _filter from './internal/filter.js' | ||
import eachOf from './eachOf.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import _filter from './internal/filter'; | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import _filter from './internal/filter.js' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import _filter from './internal/filter'; | ||
import eachOfSeries from './eachOfSeries' | ||
import awaitify from './internal/awaitify' | ||
import _filter from './internal/filter.js' | ||
import eachOfSeries from './eachOfSeries.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOf from './eachOf' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOf from './eachOf.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester' | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import concatLimit from './concatLimit'; | ||
import awaitify from './internal/awaitify' | ||
import concatLimit from './concatLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import wrapAsync from './internal/wrapAsync'; | ||
import mapLimit from './mapLimit'; | ||
import awaitify from './internal/awaitify' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import mapLimit from './mapLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import concatLimit from './concatLimit'; | ||
import awaitify from './internal/awaitify' | ||
import concatLimit from './concatLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import eachOfSeries from './eachOfSeries'; | ||
import once from './internal/once'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import eachOfSeries from './eachOfSeries.js' | ||
import once from './internal/once.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import reduce from './reduce'; | ||
import reduce from './reduce.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import eachOf from './eachOf'; | ||
import withoutIndex from './internal/withoutIndex'; | ||
import wrapAsync from './internal/wrapAsync' | ||
import awaitify from './internal/awaitify' | ||
import eachOf from './eachOf.js' | ||
import withoutIndex from './internal/withoutIndex.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import eachOfLimit from './internal/eachOfLimit'; | ||
import withoutIndex from './internal/withoutIndex'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import withoutIndex from './internal/withoutIndex.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,8 +0,8 @@ | ||
import isArrayLike from './internal/isArrayLike'; | ||
import breakLoop from './internal/breakLoop'; | ||
import eachOfLimit from './eachOfLimit'; | ||
import once from './internal/once'; | ||
import onlyOnce from './internal/onlyOnce'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import isArrayLike from './internal/isArrayLike.js' | ||
import breakLoop from './internal/breakLoop.js' | ||
import eachOfLimit from './eachOfLimit.js' | ||
import once from './internal/once.js' | ||
import onlyOnce from './internal/onlyOnce.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -9,0 +9,0 @@ // eachOf implementation optimized for array-likes |
@@ -1,4 +0,4 @@ | ||
import _eachOfLimit from './internal/eachOfLimit'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import _eachOfLimit from './internal/eachOfLimit.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import eachOfLimit from './eachOfLimit'; | ||
import awaitify from './internal/awaitify' | ||
import eachOfLimit from './eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import eachLimit from './eachLimit'; | ||
import awaitify from './internal/awaitify' | ||
import eachLimit from './eachLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import onlyOnce from './internal/onlyOnce'; | ||
import ensureAsync from './ensureAsync'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import onlyOnce from './internal/onlyOnce.js' | ||
import ensureAsync from './ensureAsync.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import groupByLimit from './groupByLimit'; | ||
import groupByLimit from './groupByLimit.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import mapLimit from './mapLimit'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import mapLimit from './mapLimit.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import groupByLimit from './groupByLimit'; | ||
import groupByLimit from './groupByLimit.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import eachOfSeries from './eachOfSeries'; | ||
import once from './internal/once'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import eachOfSeries from './eachOfSeries.js' | ||
import once from './internal/once.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import wrapAsync from './wrapAsync'; | ||
import awaitify from './awaitify' | ||
import wrapAsync from './wrapAsync.js' | ||
import awaitify from './awaitify.js' | ||
@@ -4,0 +4,0 @@ export default function (eachfn) { |
@@ -1,2 +0,2 @@ | ||
import breakLoop from './breakLoop'; | ||
import breakLoop from './breakLoop.js' | ||
@@ -3,0 +3,0 @@ // for async generators |
@@ -1,2 +0,2 @@ | ||
import wrapAsync from './wrapAsync'; | ||
import wrapAsync from './wrapAsync.js' | ||
@@ -3,0 +3,0 @@ export default function consoleFunc(name) { |
@@ -1,3 +0,3 @@ | ||
import breakLoop from './breakLoop'; | ||
import wrapAsync from './wrapAsync' | ||
import breakLoop from './breakLoop.js' | ||
import wrapAsync from './wrapAsync.js' | ||
@@ -4,0 +4,0 @@ export default function _createTester(check, getResult) { |
@@ -1,10 +0,8 @@ | ||
import once from './once'; | ||
import once from './once.js' | ||
import iterator from './iterator.js' | ||
import onlyOnce from './onlyOnce.js' | ||
import {isAsyncGenerator, isAsyncIterable} from './wrapAsync.js' | ||
import asyncEachOfLimit from './asyncEachOfLimit.js' | ||
import breakLoop from './breakLoop.js' | ||
import iterator from './iterator'; | ||
import onlyOnce from './onlyOnce'; | ||
import {isAsyncGenerator, isAsyncIterable} from './wrapAsync' | ||
import asyncEachOfLimit from './asyncEachOfLimit' | ||
import breakLoop from './breakLoop'; | ||
export default (limit) => { | ||
@@ -11,0 +9,0 @@ return (obj, iteratee, callback) => { |
@@ -1,5 +0,4 @@ | ||
import isArrayLike from './isArrayLike'; | ||
import isArrayLike from './isArrayLike.js' | ||
import wrapAsync from './wrapAsync.js' | ||
import wrapAsync from './wrapAsync'; | ||
function filterArray(eachfn, arr, iteratee, callback) { | ||
@@ -6,0 +5,0 @@ var truthValues = new Array(arr.length); |
@@ -1,3 +0,3 @@ | ||
import isArrayLike from './isArrayLike'; | ||
import getIterator from './getIterator'; | ||
import isArrayLike from './isArrayLike.js' | ||
import getIterator from './getIterator.js' | ||
@@ -4,0 +4,0 @@ function createArrayIterator(coll) { |
@@ -1,2 +0,2 @@ | ||
import wrapAsync from './wrapAsync'; | ||
import wrapAsync from './wrapAsync.js' | ||
@@ -3,0 +3,0 @@ export default function _asyncMap(eachfn, arr, iteratee, callback) { |
@@ -1,4 +0,4 @@ | ||
import isArrayLike from './isArrayLike'; | ||
import wrapAsync from './wrapAsync'; | ||
import awaitify from './awaitify' | ||
import isArrayLike from './isArrayLike.js' | ||
import wrapAsync from './wrapAsync.js' | ||
import awaitify from './awaitify.js' | ||
@@ -5,0 +5,0 @@ export default awaitify((eachfn, tasks, callback) => { |
@@ -1,5 +0,5 @@ | ||
import onlyOnce from './onlyOnce'; | ||
import setImmediate from './setImmediate'; | ||
import DLL from './DoublyLinkedList'; | ||
import wrapAsync from './wrapAsync'; | ||
import onlyOnce from './onlyOnce.js' | ||
import setImmediate from './setImmediate.js' | ||
import DLL from './DoublyLinkedList.js' | ||
import wrapAsync from './wrapAsync.js' | ||
@@ -6,0 +6,0 @@ export default function queue(worker, concurrency, payload) { |
@@ -1,3 +0,3 @@ | ||
import filter from './filter'; | ||
import wrapAsync from './wrapAsync' | ||
import filter from './filter.js' | ||
import wrapAsync from './wrapAsync.js' | ||
@@ -4,0 +4,0 @@ export default function reject(eachfn, arr, _iteratee, callback) { |
@@ -1,2 +0,1 @@ | ||
'use strict'; | ||
/* istanbul ignore file */ | ||
@@ -3,0 +2,0 @@ |
@@ -1,2 +0,2 @@ | ||
import asyncify from '../asyncify'; | ||
import asyncify from '../asyncify.js' | ||
@@ -3,0 +3,0 @@ function isAsync(fn) { |
@@ -1,2 +0,2 @@ | ||
import consoleFunc from './internal/consoleFunc'; | ||
import consoleFunc from './internal/consoleFunc.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import _map from './internal/map'; | ||
import eachOf from './eachOf' | ||
import awaitify from './internal/awaitify' | ||
import _map from './internal/map.js' | ||
import eachOf from './eachOf.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import _map from './internal/map'; | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import _map from './internal/map.js' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import _map from './internal/map'; | ||
import eachOfSeries from './eachOfSeries' | ||
import awaitify from './internal/awaitify' | ||
import _map from './internal/map.js' | ||
import eachOfSeries from './eachOfSeries.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import mapValuesLimit from './mapValuesLimit'; | ||
import mapValuesLimit from './mapValuesLimit.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import once from './internal/once'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
import once from './internal/once.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import mapValuesLimit from './mapValuesLimit'; | ||
import mapValuesLimit from './mapValuesLimit.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import setImmediate from './internal/setImmediate'; | ||
import initialParams from './internal/initialParams'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import setImmediate from './internal/setImmediate.js' | ||
import initialParams from './internal/initialParams.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,3 @@ | ||
'use strict'; | ||
/* istanbul ignore file */ | ||
import { hasNextTick, hasSetImmediate, fallback, wrap } from './internal/setImmediate'; | ||
import { hasNextTick, hasSetImmediate, fallback, wrap } from './internal/setImmediate.js' | ||
@@ -5,0 +4,0 @@ /** |
{ | ||
"name": "async-es", | ||
"description": "Higher-order functions and common patterns for asynchronous code", | ||
"version": "3.2.2", | ||
"version": "3.2.3", | ||
"main": "index.js", | ||
@@ -21,3 +21,2 @@ "author": "Caolan McMahon", | ||
], | ||
"dependencies": {}, | ||
"devDependencies": { | ||
@@ -58,3 +57,2 @@ "babel-core": "^6.26.3", | ||
"nyc": "^14.1.1", | ||
"rimraf": "^2.5.0", | ||
"rollup": "^0.63.4", | ||
@@ -61,0 +59,0 @@ "rollup-plugin-node-resolve": "^2.0.0", |
@@ -1,3 +0,3 @@ | ||
import eachOf from './eachOf'; | ||
import _parallel from './internal/parallel'; | ||
import eachOf from './eachOf.js' | ||
import _parallel from './internal/parallel.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import eachOfLimit from './internal/eachOfLimit'; | ||
import parallel from './internal/parallel'; | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import parallel from './internal/parallel.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import setImmediate from './setImmediate'; | ||
import queue from './queue'; | ||
import Heap from './internal/Heap'; | ||
import setImmediate from './setImmediate.js' | ||
import queue from './queue.js' | ||
import Heap from './internal/Heap.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import queue from './internal/queue'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import queue from './internal/queue.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import once from './internal/once'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify'; | ||
import once from './internal/once.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import eachOfSeries from './eachOfSeries'; | ||
import once from './internal/once'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import eachOfSeries from './eachOfSeries.js' | ||
import once from './internal/once.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import reduce from './reduce'; | ||
import reduce from './reduce.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import initialParams from './internal/initialParams'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import initialParams from './internal/initialParams.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import reflect from './reflect'; | ||
import reflect from './reflect.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import _reject from './internal/reject'; | ||
import eachOf from './eachOf' | ||
import awaitify from './internal/awaitify' | ||
import _reject from './internal/reject.js' | ||
import eachOf from './eachOf.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import _reject from './internal/reject'; | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import _reject from './internal/reject.js' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
/** | ||
@@ -5,0 +5,0 @@ * The same as [`reject`]{@link module:Collections.reject} but runs a maximum of `limit` async operations at a |
@@ -1,4 +0,4 @@ | ||
import _reject from './internal/reject'; | ||
import eachOfSeries from './eachOfSeries' | ||
import awaitify from './internal/awaitify' | ||
import _reject from './internal/reject.js' | ||
import eachOfSeries from './eachOfSeries.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import wrapAsync from './internal/wrapAsync'; | ||
import { promiseCallback, PROMISE_SYMBOL } from './internal/promiseCallback'; | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import { promiseCallback, PROMISE_SYMBOL } from './internal/promiseCallback.js' | ||
@@ -4,0 +4,0 @@ function constant(value) { |
@@ -1,5 +0,5 @@ | ||
import retry from './retry'; | ||
import initialParams from './internal/initialParams'; | ||
import {default as wrapAsync, isAsync} from './internal/wrapAsync'; | ||
import { promiseCallback, PROMISE_SYMBOL } from './internal/promiseCallback'; | ||
import retry from './retry.js' | ||
import initialParams from './internal/initialParams.js' | ||
import {default as wrapAsync, isAsync} from './internal/wrapAsync.js' | ||
import { promiseCallback, PROMISE_SYMBOL } from './internal/promiseCallback.js' | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import _filter from './internal/filter'; | ||
import eachOf from './eachOf' | ||
import awaitify from './internal/awaitify' | ||
import _filter from './internal/filter.js' | ||
import eachOf from './eachOf.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import _filter from './internal/filter'; | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import _filter from './internal/filter.js' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import _filter from './internal/filter'; | ||
import eachOfSeries from './eachOfSeries' | ||
import awaitify from './internal/awaitify' | ||
import _filter from './internal/filter.js' | ||
import eachOfSeries from './eachOfSeries.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import reduce from './reduce'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import { promiseCallback, PROMISE_SYMBOL } from './internal/promiseCallback'; | ||
import reduce from './reduce.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import { promiseCallback, PROMISE_SYMBOL } from './internal/promiseCallback.js' | ||
@@ -29,3 +29,3 @@ /** | ||
* async.seq( | ||
* _.bind(User.get, User), // 'User.get' has signature (id, callback(err, data)) | ||
* User.get.bind(User), // 'User.get' has signature (id, callback(err, data)) | ||
* function(user, fn) { | ||
@@ -32,0 +32,0 @@ * user.getCats(fn); // 'getCats' has signature (callback(err, data)) |
@@ -1,3 +0,3 @@ | ||
import _parallel from './internal/parallel'; | ||
import eachOfSeries from './eachOfSeries'; | ||
import _parallel from './internal/parallel.js' | ||
import eachOfSeries from './eachOfSeries.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import setImmediate from './internal/setImmediate'; | ||
import setImmediate from './internal/setImmediate.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOf from './eachOf' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOf from './eachOf.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOfLimit from './internal/eachOfLimit' | ||
import awaitify from './internal/awaitify' | ||
import createTester from './internal/createTester.js' | ||
import eachOfLimit from './internal/eachOfLimit.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import createTester from './internal/createTester'; | ||
import eachOfSeries from './eachOfSeries'; | ||
import awaitify from './internal/awaitify'; | ||
import createTester from './internal/createTester.js' | ||
import eachOfSeries from './eachOfSeries.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import map from './map'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import map from './map.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import initialParams from './internal/initialParams'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import initialParams from './internal/initialParams.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import timesLimit from './timesLimit'; | ||
import timesLimit from './timesLimit.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import mapLimit from './mapLimit'; | ||
import range from './internal/range'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import mapLimit from './mapLimit.js' | ||
import range from './internal/range.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,2 +0,2 @@ | ||
import timesLimit from './timesLimit'; | ||
import timesLimit from './timesLimit.js' | ||
@@ -3,0 +3,0 @@ /** |
@@ -1,5 +0,5 @@ | ||
import eachOf from './eachOf'; | ||
import once from './internal/once'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import { promiseCallback, PROMISE_SYMBOL } from './internal/promiseCallback'; | ||
import eachOf from './eachOf.js' | ||
import once from './internal/once.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import { promiseCallback, PROMISE_SYMBOL } from './internal/promiseCallback.js' | ||
@@ -6,0 +6,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import eachSeries from './eachSeries'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
import eachSeries from './eachSeries.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,3 +0,3 @@ | ||
import whilst from './whilst'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import whilst from './whilst.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
@@ -4,0 +4,0 @@ /** |
@@ -1,7 +0,6 @@ | ||
import once from './internal/once'; | ||
import once from './internal/once.js' | ||
import onlyOnce from './internal/onlyOnce.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
import onlyOnce from './internal/onlyOnce'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify' | ||
/** | ||
@@ -8,0 +7,0 @@ * Runs the `tasks` array of functions in series, each passing their results to |
@@ -1,4 +0,4 @@ | ||
import onlyOnce from './internal/onlyOnce'; | ||
import wrapAsync from './internal/wrapAsync'; | ||
import awaitify from './internal/awaitify'; | ||
import onlyOnce from './internal/onlyOnce.js' | ||
import wrapAsync from './internal/wrapAsync.js' | ||
import awaitify from './internal/awaitify.js' | ||
@@ -5,0 +5,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
import initialParams from './internal/initialParams'; | ||
import setImmediate from './internal/setImmediate'; | ||
import { isAsync } from './internal/wrapAsync' | ||
import initialParams from './internal/initialParams.js' | ||
import setImmediate from './internal/setImmediate.js' | ||
import { isAsync } from './internal/wrapAsync.js' | ||
@@ -5,0 +5,0 @@ /** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
313017
40
7704