@zuplo/cli 1.115.0 → 1.117.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.
@@ -1,5 +1,5 @@
1
1
 
2
- !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="8e987720-63b4-54ac-862b-8ebba7e37fca")}catch(e){}}();
2
+ !function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},n=(new Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ce3166fa-f448-54d8-834e-5b6b0999d341")}catch(e){}}();
3
3
  import { parse } from "node:path";
4
4
  import { logger } from "../common/logger.js";
5
5
  import { printCriticalFailureToConsoleAndExit, printDiagnosticsToConsole, printResultToConsoleAndExitGracefully, } from "../common/output.js";
@@ -11,11 +11,16 @@ export async function deploy(argv) {
11
11
  const archiveMetadata = await archive(argv);
12
12
  logger.debug(`Tarball created locally at ${archiveMetadata}`);
13
13
  const { account, project } = argv;
14
- const uploadUrlResponse = await fetch(`${settings.ZUPLO_DEVELOPER_API_ENDPOINT}/v1/accounts/${account}/projects/${project}/sources`, {
14
+ const uploadUrlResponse = await fetch(`${settings.ZUPLO_DEVELOPER_API_ENDPOINT}/v1/deployments/sources`, {
15
15
  method: "POST",
16
16
  headers: {
17
17
  Authorization: `Bearer ${argv["api-key"]}`,
18
18
  },
19
+ body: JSON.stringify({
20
+ accountName: account,
21
+ projectName: project,
22
+ branchName: archiveMetadata.metadata.branch,
23
+ }),
19
24
  });
20
25
  if (uploadUrlResponse.ok) {
21
26
  const { uploadUrl } = await uploadUrlResponse.json();
@@ -49,4 +54,4 @@ export async function deploy(argv) {
49
54
  }
50
55
  }
51
56
  //# sourceMappingURL=handler.js.map
52
- //# debugId=8e987720-63b4-54ac-862b-8ebba7e37fca
57
+ //# debugId=ce3166fa-f448-54d8-834e-5b6b0999d341
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "1.115.0",
3
+ "version": "1.117.0",
4
4
  "type": "module",
5
5
  "repository": "https://github.com/zuplo/cli",
6
6
  "description": "The command-line interface for Zuplo",