@tim-code/my-util 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/promise.js +1 -1
package/package.json
CHANGED
package/src/promise.js
CHANGED
|
@@ -133,7 +133,7 @@ export async function allSettled(
|
|
|
133
133
|
* @param {boolean=} $1.flatten If true, flattens values before returning; useful if promises return arrays.
|
|
134
134
|
* @returns {Array}
|
|
135
135
|
*/
|
|
136
|
-
export async function allPatiently(promises, { flatten }) {
|
|
136
|
+
export async function allPatiently(promises, { flatten } = {}) {
|
|
137
137
|
return (await allSettled({ iterable: promises, flatten, throws: true })).returned
|
|
138
138
|
}
|
|
139
139
|
|