@vercel/client 15.0.8 → 15.1.0

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/dist/deploy.js +6 -1
  2. package/package.json +2 -2
package/dist/deploy.js CHANGED
@@ -59,7 +59,12 @@ async function* postDeployment(files, clientOptions, deploymentOptions) {
59
59
  agent: clientOptions.agent
60
60
  }
61
61
  );
62
- const deployment = await response.json();
62
+ let deployment = void 0;
63
+ try {
64
+ deployment = await response.json();
65
+ } catch (error) {
66
+ throw new Error("Invalid JSON response");
67
+ }
63
68
  if (clientOptions.debug) {
64
69
  debug("Deployment response:", JSON.stringify(deployment));
65
70
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/client",
3
- "version": "15.0.8",
3
+ "version": "15.1.0",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "homepage": "https://vercel.com",
@@ -31,7 +31,7 @@
31
31
  "typescript": "4.9.5"
32
32
  },
33
33
  "dependencies": {
34
- "@vercel/build-utils": "10.1.0",
34
+ "@vercel/build-utils": "10.2.0",
35
35
  "@vercel/error-utils": "2.0.3",
36
36
  "@vercel/routing-utils": "5.0.4",
37
37
  "async-retry": "1.2.3",