Skip to content

Commit bb41f2a

Browse files
authored
be explicit (#1769)
1 parent 9440649 commit bb41f2a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+291
-298
lines changed

lib/applyEach.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import applyEach from './internal/applyEach';
2-
import map from './map';
1+
import applyEach from './internal/applyEach.js'
2+
import map from './map.js'
33

44
/**
55
* Applies the provided arguments to each function in the array, calling

lib/applyEachSeries.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import applyEach from './internal/applyEach';
2-
import mapSeries from './mapSeries';
1+
import applyEach from './internal/applyEach.js'
2+
import mapSeries from './mapSeries.js'
33

44
/**
55
* The same as [`applyEach`]{@link module:ControlFlow.applyEach} but runs only a single async operation at a time.

lib/asyncify.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import initialParams from './internal/initialParams';
2-
import setImmediate from './internal/setImmediate';
3-
import { isAsync } from './internal/wrapAsync'
1+
import initialParams from './internal/initialParams.js'
2+
import setImmediate from './internal/setImmediate.js'
3+
import { isAsync } from './internal/wrapAsync.js'
44

55
/**
66
* Take a sync function and make it async, passing its return value to a

lib/auto.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import once from './internal/once';
2-
import onlyOnce from './internal/onlyOnce';
3-
import wrapAsync from './internal/wrapAsync';
4-
import { promiseCallback, PROMISE_SYMBOL } from './internal/promiseCallback'
1+
import once from './internal/once.js'
2+
import onlyOnce from './internal/onlyOnce.js'
3+
import wrapAsync from './internal/wrapAsync.js'
4+
import { promiseCallback, PROMISE_SYMBOL } from './internal/promiseCallback.js'
55

66
/**
77
* Determines the best order for running the {@link AsyncFunction}s in `tasks`, based on

lib/autoInject.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import auto from './auto';
2-
import wrapAsync from './internal/wrapAsync';
3-
import { isAsync } from './internal/wrapAsync';
1+
import auto from './auto.js'
2+
import wrapAsync from './internal/wrapAsync.js'
3+
import { isAsync } from './internal/wrapAsync.js'
44

55
var FN_ARGS = /^(?:async\s+)?(?:function)?\s*\w*\s*\(\s*([^)]+)\s*\)(?:\s*{)/;
66
var ARROW_FN_ARGS = /^(?:async\s+)?\(?\s*([^)=]+)\s*\)?(?:\s*=>)/;

lib/cargo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import queue from './internal/queue';
1+
import queue from './internal/queue.js'
22

33
/**
44
* Creates a `cargo` object with the specified payload. Tasks added to the

lib/cargoQueue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import queue from './internal/queue';
1+
import queue from './internal/queue.js'
22

33
/**
44
* Creates a `cargoQueue` object with the specified payload. Tasks added to the

lib/compose.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import seq from './seq';
1+
import seq from './seq.js'
22

33
/**
44
* Creates a function which is a composition of the passed asynchronous

lib/concat.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import concatLimit from './concatLimit';
2-
import awaitify from './internal/awaitify'
1+
import concatLimit from './concatLimit.js'
2+
import awaitify from './internal/awaitify.js'
33

44
/**
55
* Applies `iteratee` to each item in `coll`, concatenating the results. Returns

lib/concatLimit.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import wrapAsync from './internal/wrapAsync';
2-
import mapLimit from './mapLimit';
3-
import awaitify from './internal/awaitify'
1+
import wrapAsync from './internal/wrapAsync.js'
2+
import mapLimit from './mapLimit.js'
3+
import awaitify from './internal/awaitify.js'
44

55
/**
66
* The same as [`concat`]{@link module:Collections.concat} but runs a maximum of `limit` async operations at a time.

0 commit comments

Comments
 (0)