@zuplo/cli 1.135.0 → 1.136.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]="925b9d73-a4de-58c0-8f9c-d757c8155db7")}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]="5c4fd488-f729-519e-94c7-406abc7a3013")}catch(e){}}();
3
3
  import dotenv from "dotenv";
4
4
  import { cpSync, existsSync, readFileSync } from "node:fs";
5
5
  import { join, relative, resolve } from "node:path";
@@ -27,7 +27,7 @@ export async function compile(argv) {
27
27
  process.env.__ZUPLO_CONFIG = btoa(JSON.stringify(config));
28
28
  const core = await import("@zuplo/core");
29
29
  const zupPort = argv.port;
30
- await core.default.compileWorkerdServer({
30
+ await core.compileWorkerdServer({
31
31
  sourceDirectory,
32
32
  port: zupPort,
33
33
  binaryName: argv["binary-name"],
@@ -44,4 +44,4 @@ export async function compile(argv) {
44
44
  printDiagnosticsToConsole(`The binary is available at ${sourceDirectory}/dist/${argv["binary-name"]}`);
45
45
  }
46
46
  //# sourceMappingURL=handler.js.map
47
- //# debugId=925b9d73-a4de-58c0-8f9c-d757c8155db7
47
+ //# debugId=5c4fd488-f729-519e-94c7-406abc7a3013
@@ -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]="cb40a32c-281e-5053-b199-7372a7cf977b")}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]="fe162c2d-58d1-5c9a-908d-f03546eabbc5")}catch(e){}}();
3
3
  import { readFileSync } from "node:fs";
4
4
  import { parse } from "node:path";
5
5
  import { MAX_PRETTY_BRANCH_NAME as MAX_PRETTY_BRANCH_LENGTH } from "../common/constants.js";
@@ -66,7 +66,7 @@ async function deployToSaas(argv) {
66
66
  }
67
67
  }
68
68
  async function deployToSelfHosted(argv) {
69
- let endpoint = normalizeUrl(argv["self-hosted-endpoint"]);
69
+ const endpoint = normalizeUrl(argv["self-hosted-endpoint"]);
70
70
  const archiveMetadata = await archive(argv);
71
71
  logger.debug(`Tarball created locally at ${archiveMetadata}`);
72
72
  const { project } = argv;
@@ -102,7 +102,7 @@ async function deployToSelfHosted(argv) {
102
102
  }
103
103
  }
104
104
  else {
105
- logger.error(JSON.stringify(await uploadUrlResponse.json(), null, 2), "Failed to upload to self-hosted build endpoint");
105
+ logger.error(await uploadUrlResponse.text(), "Failed to upload to self-hosted build endpoint");
106
106
  await printCriticalFailureToConsoleAndExit("Error: Failed to upload to self-hosted build endpoint");
107
107
  }
108
108
  }
@@ -117,4 +117,4 @@ export const getPrettyBranch = (branch) => {
117
117
  .substring(0, MAX_PRETTY_BRANCH_LENGTH));
118
118
  };
119
119
  //# sourceMappingURL=handler.js.map
120
- //# debugId=cb40a32c-281e-5053-b199-7372a7cf977b
120
+ //# debugId=fe162c2d-58d1-5c9a-908d-f03546eabbc5
@@ -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]="249e5ca0-cf2e-5cef-a5c8-0d053825f965")}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]="578699eb-40b5-5250-9349-02c17f8b59b6")}catch(e){}}();
3
3
  import dotenv from "dotenv";
4
4
  import { cpSync, existsSync, readFileSync } from "node:fs";
5
5
  import { join, relative, resolve } from "node:path";
@@ -41,19 +41,19 @@ export async function dev(argv) {
41
41
  const zupDebugPort = argv.debugPort;
42
42
  const isZupPortAvailable = await isPortAvailable("localhost", zupPort);
43
43
  if (!isZupPortAvailable) {
44
- printCriticalFailureToConsoleAndExit(`Port ${zupPort} is already in use. Please specify a different port using --port.`);
44
+ await printCriticalFailureToConsoleAndExit(`Port ${zupPort} is already in use. Please specify a different port using --port.`);
45
45
  }
46
46
  const isZupEditorPortAvailable = await isPortAvailable("localhost", zupEditorPort);
47
47
  if (!isZupEditorPortAvailable) {
48
- printCriticalFailureToConsoleAndExit(`Port ${zupEditorPort} is already in use. Please specify a different port using --editor-port.`);
48
+ await printCriticalFailureToConsoleAndExit(`Port ${zupEditorPort} is already in use. Please specify a different port using --editor-port.`);
49
49
  }
50
50
  if (zupDebugPort) {
51
51
  const isZupDebugPortAvailable = await isPortAvailable("localhost", zupDebugPort);
52
52
  if (!isZupDebugPortAvailable) {
53
- printCriticalFailureToConsoleAndExit(`Port ${zupDebugPort} is already in use. Please specify a different port using --debug-port.`);
53
+ await printCriticalFailureToConsoleAndExit(`Port ${zupDebugPort} is already in use. Please specify a different port using --debug-port.`);
54
54
  }
55
55
  }
56
- await core.default.startDevServer({
56
+ await core.startDevServer({
57
57
  sourceDirectory,
58
58
  port: zupPort,
59
59
  debugPort: argv.debugPort ?? undefined,
@@ -102,4 +102,4 @@ export async function dev(argv) {
102
102
  });
103
103
  }
104
104
  //# sourceMappingURL=handler.js.map
105
- //# debugId=249e5ca0-cf2e-5cef-a5c8-0d053825f965
105
+ //# debugId=578699eb-40b5-5250-9349-02c17f8b59b6
@@ -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]="9bf817d9-a39a-5f35-9cdf-764d79d64533")}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]="f2551837-2c92-5d06-a4ed-dc11de482182")}catch(e){}}();
3
3
  import { logger } from "../common/logger.js";
4
4
  import { printCriticalFailureToConsoleAndExit, printDiagnosticsToConsole, printResultToConsoleAndExitGracefully, textOrJson, } from "../common/output.js";
5
5
  import settings from "../common/settings.js";
@@ -36,7 +36,7 @@ async function listFromSaas(argv) {
36
36
  }
37
37
  }
38
38
  async function listFromSelfHosted(argv) {
39
- let endpoint = normalizeUrl(argv["self-hosted-endpoint"]);
39
+ const endpoint = normalizeUrl(argv["self-hosted-endpoint"]);
40
40
  const listResponse = await fetch(`${endpoint}/v1/deployments`, {
41
41
  method: "GET",
42
42
  headers: {
@@ -56,4 +56,4 @@ async function listFromSelfHosted(argv) {
56
56
  }
57
57
  }
58
58
  //# sourceMappingURL=handler.js.map
59
- //# debugId=9bf817d9-a39a-5f35-9cdf-764d79d64533
59
+ //# debugId=f2551837-2c92-5d06-a4ed-dc11de482182
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "1.135.0",
3
+ "version": "1.136.0",
4
4
  "type": "module",
5
5
  "repository": "https://github.com/zuplo/cli",
6
6
  "description": "The command-line interface for Zuplo",
@@ -64,10 +64,10 @@
64
64
  "@opentelemetry/api": "^1.8.0",
65
65
  "@sentry/node": "7.69.0",
66
66
  "@swc/core": "1.3.78",
67
- "@zuplo/core": "5.2393.0",
67
+ "@zuplo/core": "5.2458.0",
68
68
  "@zuplo/deno-bin": "1.37.1",
69
69
  "@zuplo/pino-pretty-configurations": "^1.5.0",
70
- "@zuplo/runtime": "5.2393.0",
70
+ "@zuplo/runtime": "5.2458.0",
71
71
  "chalk": "^5.1.2",
72
72
  "chokidar": "^3.5.3",
73
73
  "dotenv": "^16.3.1",