@vercel/client 13.2.10 → 13.3.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.
package/dist/deploy.js CHANGED
@@ -32,6 +32,13 @@ async function* postDeployment(files, clientOptions, deploymentOptions) {
32
32
  if (deploymentOptions?.builds && !deploymentOptions.functions) {
33
33
  clientOptions.skipAutoDetectionConfirmation = true;
34
34
  }
35
+ if (deploymentOptions.target === "preview") {
36
+ deploymentOptions.target = void 0;
37
+ }
38
+ if (deploymentOptions.target && deploymentOptions.target !== "production") {
39
+ deploymentOptions.customEnvironmentSlugOrId = deploymentOptions.target;
40
+ deploymentOptions.target = void 0;
41
+ }
35
42
  debug("Sending deployment creation API request");
36
43
  try {
37
44
  const response = await (0, import_utils.fetch)(
package/dist/types.d.ts CHANGED
@@ -150,4 +150,5 @@ export interface DeploymentOptions {
150
150
  projectSettings?: ProjectSettings;
151
151
  gitMetadata?: GitMetadata;
152
152
  autoAssignCustomDomains?: boolean;
153
+ customEnvironmentSlugOrId?: string;
153
154
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vercel/client",
3
- "version": "13.2.10",
3
+ "version": "13.3.0",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
6
6
  "homepage": "https://vercel.com",
@@ -30,7 +30,7 @@
30
30
  "typescript": "4.9.5"
31
31
  },
32
32
  "dependencies": {
33
- "@vercel/build-utils": "8.3.0",
33
+ "@vercel/build-utils": "8.3.2",
34
34
  "@vercel/error-utils": "2.0.2",
35
35
  "@vercel/routing-utils": "3.1.0",
36
36
  "@zeit/fetch": "5.2.0",