@vercel/node 5.6.8 → 5.6.10

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.
@@ -662,16 +662,13 @@ var Awaiter = class {
662
662
  () => this.promises.size > 0 ? this.waitForBatch() : Promise.resolve()
663
663
  );
664
664
  this.waitUntil = (promise) => {
665
- this.promises.add(promise);
665
+ const handledPromise = Promise.resolve(promise).catch(this.onError);
666
+ this.promises.add(handledPromise);
666
667
  };
667
668
  this.waitForBatch = async () => {
668
669
  const promises = Array.from(this.promises);
669
670
  this.promises.clear();
670
- await Promise.all(
671
- promises.map(
672
- (promise) => Promise.resolve(promise).then(() => void 0, this.onError)
673
- )
674
- );
671
+ await Promise.all(promises);
675
672
  };
676
673
  this.onError = onError ?? console.error;
677
674
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/node",
3
- "version": "5.6.8",
3
+ "version": "5.6.10",
4
4
  "license": "Apache-2.0",
5
5
  "main": "./dist/index",
6
6
  "homepage": "https://vercel.com/docs/runtimes#official-runtimes/node-js",
@@ -32,9 +32,9 @@
32
32
  "tsx": "4.21.0",
33
33
  "typescript": "npm:typescript@5.9.3",
34
34
  "undici": "5.28.4",
35
- "@vercel/error-utils": "2.0.3",
36
35
  "@vercel/static-config": "3.1.2",
37
- "@vercel/build-utils": "13.6.0"
36
+ "@vercel/error-utils": "2.0.3",
37
+ "@vercel/build-utils": "13.6.2"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@babel/core": "7.24.4",