@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/promise.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tim-code/my-util",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "author": "Tim Sprowl",
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