@zuplo/cli 1.66.0 → 1.68.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 (35) hide show
  1. package/.eslintrc.cjs +48 -0
  2. package/dist/cli.js +3 -6
  3. package/dist/cmds/project/index.js +2 -2
  4. package/dist/cmds/tunnel/create.js +3 -3
  5. package/dist/cmds/tunnel/delete.js +3 -3
  6. package/dist/cmds/tunnel/describe.js +3 -3
  7. package/dist/cmds/tunnel/index.js +2 -2
  8. package/dist/cmds/tunnel/rotate-token.js +3 -3
  9. package/dist/cmds/tunnel/services/describe.js +3 -3
  10. package/dist/cmds/tunnel/services/index.js +2 -2
  11. package/dist/cmds/tunnel/services/update.js +3 -3
  12. package/dist/cmds/variable/create.js +3 -3
  13. package/dist/cmds/variable/index.js +2 -2
  14. package/dist/cmds/variable/update.js +3 -3
  15. package/dist/common/handler.js +2 -2
  16. package/dist/common/logger.js +2 -2
  17. package/dist/common/middleware/user-configuration.js +3 -3
  18. package/dist/common/output.js +5 -5
  19. package/dist/common/upgraders/package-json-upgrader.js +3 -3
  20. package/dist/common/upgraders/vscode-settings-json-upgrader.js +2 -2
  21. package/dist/common/validators/login-state-validator.js +3 -3
  22. package/dist/common/xdg/lib.js +2 -2
  23. package/dist/convert/engine.js +2 -2
  24. package/dist/delete/handler.js +3 -3
  25. package/dist/deploy/handler.js +3 -3
  26. package/dist/deploy/poll-deployment.js +4 -3
  27. package/dist/dev/handler.js +2 -2
  28. package/dist/editor/server/server.js +4 -8
  29. package/dist/link/handler.js +2 -2
  30. package/dist/login/handler.js +4 -4
  31. package/dist/login/server.js +4 -4
  32. package/dist/tunnel/models.js +2 -2
  33. package/dist/variable/create/handler.js +2 -3
  34. package/dist/variable/update/handler.js +2 -3
  35. package/package.json +1 -1
package/.eslintrc.cjs ADDED
@@ -0,0 +1,48 @@
1
+ /**@type {import('eslint').Linter.Config} */
2
+ // eslint-disable-next-line no-undef
3
+ module.exports = {
4
+ root: true,
5
+ parser: "@typescript-eslint/parser",
6
+ parserOptions: {
7
+ project: "./tsconfig.eslint.json",
8
+ },
9
+ plugins: ["@typescript-eslint", "import", "node", "unicorn"],
10
+ extends: [
11
+ "eslint:recommended",
12
+ "plugin:@typescript-eslint/recommended",
13
+ "prettier",
14
+ ],
15
+ rules: {
16
+ "no-console": "error",
17
+ "@typescript-eslint/no-unused-vars": [
18
+ "error",
19
+ {
20
+ vars: "all",
21
+ args: "after-used",
22
+ ignoreRestSiblings: false,
23
+ varsIgnorePattern: "^_",
24
+ argsIgnorePattern: "^_",
25
+ },
26
+ ],
27
+ "@typescript-eslint/no-explicit-any": "error",
28
+ "node/no-process-env": "error",
29
+ "@typescript-eslint/no-floating-promises": "error",
30
+ "unicorn/prefer-node-protocol": "error",
31
+ "@typescript-eslint/consistent-type-definitions": ["error", "interface"],
32
+ "@typescript-eslint/naming-convention": [
33
+ "error",
34
+ {
35
+ selector: ["class"],
36
+ format: ["PascalCase"],
37
+ },
38
+ {
39
+ selector: "interface",
40
+ format: ["PascalCase"],
41
+ custom: {
42
+ regex: "^I[A-Z]",
43
+ match: false,
44
+ },
45
+ },
46
+ ],
47
+ },
48
+ };
package/dist/cli.js CHANGED
@@ -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]="a3130374-8b31-5e03-a50a-d2b87bc6e6f3")}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]="1d7bc151-acef-5899-be7e-d270ad4b916d")}catch(e){}}();
3
3
  import * as dotenv from "dotenv";
4
4
  dotenv.config();
5
5
  import * as Sentry from "@sentry/node";
@@ -20,7 +20,7 @@ import project from "./cmds/project/index.js";
20
20
  import test from "./cmds/test.js";
21
21
  import tunnel from "./cmds/tunnel/index.js";
22
22
  import variable from "./cmds/variable/index.js";
23
- import { MAX_WAIT_PENDING_TIME_MS, SENTRY_DSN } from "./common/constants.js";
23
+ import { SENTRY_DSN } from "./common/constants.js";
24
24
  import { logger } from "./common/logger.js";
25
25
  import { printCriticalFailureToConsoleAndExit } from "./common/output.js";
26
26
  const MIN_NODE_VERSION = "18.0.0";
@@ -55,9 +55,6 @@ if (gte(process.versions.node, MIN_NODE_VERSION)) {
55
55
  .strictCommands()
56
56
  .version(packageJson?.version)
57
57
  .help().argv;
58
- Sentry.close(MAX_WAIT_PENDING_TIME_MS).then(() => {
59
- process.exit(0);
60
- });
61
58
  }
62
59
  else {
63
60
  printCriticalFailureToConsoleAndExit(`The zup CLI requires at least node.js v${MIN_NODE_VERSION}. You are using v${process.versions.node}. Please update your version of node.js.
@@ -65,4 +62,4 @@ else {
65
62
  Consider using a Node.js version manager such as https://github.com/nvm-sh/nvm.`);
66
63
  }
67
64
  //# sourceMappingURL=cli.js.map
68
- //# debugId=a3130374-8b31-5e03-a50a-d2b87bc6e6f3
65
+ //# debugId=1d7bc151-acef-5899-be7e-d270ad4b916d
@@ -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]="97442fb2-c205-5275-a116-d604249a3290")}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]="32611bec-81fc-5fff-95bf-415eadb8bcfa")}catch(e){}}();
3
3
  import { groupHandler } from "../../common/handler.js";
4
4
  import update from "./update.js";
5
5
  const commands = {
@@ -12,4 +12,4 @@ const commands = {
12
12
  };
13
13
  export default commands;
14
14
  //# sourceMappingURL=index.js.map
15
- //# debugId=97442fb2-c205-5275-a116-d604249a3290
15
+ //# debugId=32611bec-81fc-5fff-95bf-415eadb8bcfa
@@ -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]="e84a8979-b7c4-5c5e-9a29-676262b72a20")}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]="373f077b-a94b-5f34-bf80-c25ef50a4575")}catch(e){}}();
3
3
  import { configure } from "../../common/middleware/user-configuration.js";
4
4
  import setBlocking from "../../common/output.js";
5
5
  import { create } from "../../tunnel/create/handler.js";
@@ -21,8 +21,8 @@ export default {
21
21
  .middleware([setBlocking, configure]);
22
22
  },
23
23
  handler: async (argv) => {
24
- create(argv);
24
+ await create(argv);
25
25
  },
26
26
  };
27
27
  //# sourceMappingURL=create.js.map
28
- //# debugId=e84a8979-b7c4-5c5e-9a29-676262b72a20
28
+ //# debugId=373f077b-a94b-5f34-bf80-c25ef50a4575
@@ -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]="fc6adc78-6cd1-5e2a-967a-8117b86fd4ef")}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]="5e5ea9b4-5620-51e3-90d7-2e4ea501c852")}catch(e){}}();
3
3
  import { configure } from "../../common/middleware/user-configuration.js";
4
4
  import setBlocking from "../../common/output.js";
5
5
  import { deleteTunnel } from "../../tunnel/delete/handler.js";
@@ -17,8 +17,8 @@ export default {
17
17
  .middleware([setBlocking, configure]);
18
18
  },
19
19
  handler: async (argv) => {
20
- deleteTunnel(argv);
20
+ await deleteTunnel(argv);
21
21
  },
22
22
  };
23
23
  //# sourceMappingURL=delete.js.map
24
- //# debugId=fc6adc78-6cd1-5e2a-967a-8117b86fd4ef
24
+ //# debugId=5e5ea9b4-5620-51e3-90d7-2e4ea501c852
@@ -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]="843d0524-1681-5dcb-a5ee-ff9507802e78")}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]="99693bc3-7118-5977-a330-898e660ea589")}catch(e){}}();
3
3
  import { configure } from "../../common/middleware/user-configuration.js";
4
4
  import setBlocking from "../../common/output.js";
5
5
  import { describe } from "../../tunnel/describe/handler.js";
@@ -21,8 +21,8 @@ export default {
21
21
  .middleware([setBlocking, configure]);
22
22
  },
23
23
  handler: async (argv) => {
24
- describe(argv);
24
+ await describe(argv);
25
25
  },
26
26
  };
27
27
  //# sourceMappingURL=describe.js.map
28
- //# debugId=843d0524-1681-5dcb-a5ee-ff9507802e78
28
+ //# debugId=99693bc3-7118-5977-a330-898e660ea589
@@ -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]="ea38def4-97f9-5b5e-87cb-413e8b77263e")}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]="d3f459de-5ce3-5d7e-b9b5-966f9969533d")}catch(e){}}();
3
3
  import { groupHandler } from "../../common/handler.js";
4
4
  import create from "./create.js";
5
5
  import deleteTunnel from "./delete.js";
@@ -24,4 +24,4 @@ const commands = {
24
24
  };
25
25
  export default commands;
26
26
  //# sourceMappingURL=index.js.map
27
- //# debugId=ea38def4-97f9-5b5e-87cb-413e8b77263e
27
+ //# debugId=d3f459de-5ce3-5d7e-b9b5-966f9969533d
@@ -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]="37567299-9d2c-584d-9885-8c4462426e83")}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]="d7d622df-d317-5fe0-a63e-45833a7165a6")}catch(e){}}();
3
3
  import { configure } from "../../common/middleware/user-configuration.js";
4
4
  import setBlocking from "../../common/output.js";
5
5
  import { rotateToken } from "../../tunnel/rotate-token/handler.js";
@@ -21,8 +21,8 @@ export default {
21
21
  .middleware([setBlocking, configure]);
22
22
  },
23
23
  handler: async (argv) => {
24
- rotateToken(argv);
24
+ await rotateToken(argv);
25
25
  },
26
26
  };
27
27
  //# sourceMappingURL=rotate-token.js.map
28
- //# debugId=37567299-9d2c-584d-9885-8c4462426e83
28
+ //# debugId=d7d622df-d317-5fe0-a63e-45833a7165a6
@@ -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]="d04dda73-b1d7-531a-90e8-b9d128e1c1dc")}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]="5d5b4dd7-966e-59c6-a0d3-51da1445b6e3")}catch(e){}}();
3
3
  import { configure } from "../../../common/middleware/user-configuration.js";
4
4
  import setBlocking from "../../../common/output.js";
5
5
  import { describe, } from "../../../tunnel/services/describe/handler.js";
@@ -21,8 +21,8 @@ export default {
21
21
  .middleware([setBlocking, configure]);
22
22
  },
23
23
  handler: async (argv) => {
24
- describe(argv);
24
+ await describe(argv);
25
25
  },
26
26
  };
27
27
  //# sourceMappingURL=describe.js.map
28
- //# debugId=d04dda73-b1d7-531a-90e8-b9d128e1c1dc
28
+ //# debugId=5d5b4dd7-966e-59c6-a0d3-51da1445b6e3
@@ -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]="6e8beeed-531e-57b4-ab8b-976e938eb511")}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]="fdcbdb19-15a1-5666-b8b5-f5fe098bf524")}catch(e){}}();
3
3
  import { groupHandler } from "../../../common/handler.js";
4
4
  import describe from "./describe.js";
5
5
  import update from "./update.js";
@@ -13,4 +13,4 @@ const commands = {
13
13
  };
14
14
  export default commands;
15
15
  //# sourceMappingURL=index.js.map
16
- //# debugId=6e8beeed-531e-57b4-ab8b-976e938eb511
16
+ //# debugId=fdcbdb19-15a1-5666-b8b5-f5fe098bf524
@@ -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]="ca61a21c-a848-5537-843c-03670fbc9c1d")}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]="dfb251e8-4218-591e-a0ce-fc987b2251e3")}catch(e){}}();
3
3
  import { configure } from "../../../common/middleware/user-configuration.js";
4
4
  import setBlocking from "../../../common/output.js";
5
5
  import { updateServices, } from "../../../tunnel/services/update/handler.js";
@@ -25,8 +25,8 @@ export default {
25
25
  .middleware([setBlocking, configure]);
26
26
  },
27
27
  handler: async (argv) => {
28
- updateServices(argv);
28
+ await updateServices(argv);
29
29
  },
30
30
  };
31
31
  //# sourceMappingURL=update.js.map
32
- //# debugId=ca61a21c-a848-5537-843c-03670fbc9c1d
32
+ //# debugId=dfb251e8-4218-591e-a0ce-fc987b2251e3
@@ -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]="7ba1cf01-4d34-5cdb-83d5-8928849b5a41")}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]="d70f0e5c-a934-50d8-be94-a68a917fc92f")}catch(e){}}();
3
3
  import { configure } from "../../common/middleware/user-configuration.js";
4
4
  import setBlocking from "../../common/output.js";
5
5
  import { YargsChecker } from "../../common/validators/lib.js";
@@ -42,8 +42,8 @@ export default {
42
42
  });
43
43
  },
44
44
  handler: async (argv) => {
45
- create(argv);
45
+ await create(argv);
46
46
  },
47
47
  };
48
48
  //# sourceMappingURL=create.js.map
49
- //# debugId=7ba1cf01-4d34-5cdb-83d5-8928849b5a41
49
+ //# debugId=d70f0e5c-a934-50d8-be94-a68a917fc92f
@@ -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]="48df2c67-c282-5c7a-b395-729f100a8e5d")}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]="a409fabb-70db-58bf-b5c5-702a17ede5e2")}catch(e){}}();
3
3
  import { groupHandler } from "../../common/handler.js";
4
4
  import create from "./create.js";
5
5
  import update from "./update.js";
@@ -13,4 +13,4 @@ const commands = {
13
13
  };
14
14
  export default commands;
15
15
  //# sourceMappingURL=index.js.map
16
- //# debugId=48df2c67-c282-5c7a-b395-729f100a8e5d
16
+ //# debugId=a409fabb-70db-58bf-b5c5-702a17ede5e2
@@ -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]="e7f5c11c-5d34-5036-8715-1f2fb5b62e02")}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]="c2225edb-acb6-569a-b12b-54aa0f3f442c")}catch(e){}}();
3
3
  import { configure } from "../../common/middleware/user-configuration.js";
4
4
  import setBlocking from "../../common/output.js";
5
5
  import { YargsChecker } from "../../common/validators/lib.js";
@@ -33,8 +33,8 @@ export default {
33
33
  });
34
34
  },
35
35
  handler: async (argv) => {
36
- update(argv);
36
+ await update(argv);
37
37
  },
38
38
  };
39
39
  //# sourceMappingURL=update.js.map
40
- //# debugId=e7f5c11c-5d34-5036-8715-1f2fb5b62e02
40
+ //# debugId=c2225edb-acb6-569a-b12b-54aa0f3f442c
@@ -1,7 +1,7 @@
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]="39c1e719-4e8b-54bd-9703-34fcd1d6be2e")}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]="b412de2e-c645-5431-a71d-45710b18690b")}catch(e){}}();
3
3
  export function groupHandler() {
4
4
  console.log("Run with --help to see available commands");
5
5
  }
6
6
  //# sourceMappingURL=handler.js.map
7
- //# debugId=39c1e719-4e8b-54bd-9703-34fcd1d6be2e
7
+ //# debugId=b412de2e-c645-5431-a71d-45710b18690b
@@ -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]="c88f63f0-a33d-5d56-81ec-bf91df0cbabd")}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]="8c4c6803-7963-5232-84f7-93eef5c11a3f")}catch(e){}}();
3
3
  import * as Pino from "pino";
4
4
  export const logger = Pino.pino({
5
5
  level: process.env.LOG_LEVEL || "info",
@@ -14,4 +14,4 @@ export const logger = Pino.pino({
14
14
  },
15
15
  });
16
16
  //# sourceMappingURL=logger.js.map
17
- //# debugId=c88f63f0-a33d-5d56-81ec-bf91df0cbabd
17
+ //# debugId=8c4c6803-7963-5232-84f7-93eef5c11a3f
@@ -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]="dcaa9c5c-79cc-5d4a-a82d-2be3bef279cf")}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]="e43d8351-da19-5b97-bb8f-7753acd40138")}catch(e){}}();
3
3
  import { parse } from "jsonc-parser";
4
4
  import { existsSync } from "node:fs";
5
5
  import { readFile } from "node:fs/promises";
@@ -52,11 +52,11 @@ async function processZuploConfigurationFile() {
52
52
  }
53
53
  return data;
54
54
  }
55
- let omitNull = (obj) => {
55
+ const omitNull = (obj) => {
56
56
  Object.keys(obj)
57
57
  .filter((k) => obj[k] === null)
58
58
  .forEach((k) => delete obj[k]);
59
59
  return obj;
60
60
  };
61
61
  //# sourceMappingURL=user-configuration.js.map
62
- //# debugId=dcaa9c5c-79cc-5d4a-a82d-2be3bef279cf
62
+ //# debugId=e43d8351-da19-5b97-bb8f-7753acd40138
@@ -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]="5371f48b-c120-523a-8c00-26364a117dc3")}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]="add3c8c1-77f3-5f77-86a6-91bb56fc8924")}catch(e){}}();
3
3
  import * as Sentry from "@sentry/node";
4
4
  import chalk from "chalk";
5
5
  import { MAX_WAIT_PENDING_TIME_MS } from "./constants.js";
@@ -8,7 +8,7 @@ export function printDiagnosticsToConsole(message) {
8
8
  }
9
9
  export function printCriticalFailureToConsoleAndExit(message) {
10
10
  console.error(chalk.bold.red(message));
11
- Sentry.close(MAX_WAIT_PENDING_TIME_MS).then(() => {
11
+ void Sentry.close(MAX_WAIT_PENDING_TIME_MS).then(() => {
12
12
  process.exit(1);
13
13
  });
14
14
  }
@@ -20,13 +20,13 @@ export function printTableToConsole(table) {
20
20
  }
21
21
  export function printResultToConsoleAndExitGracefully(message) {
22
22
  printResultToConsole(message);
23
- Sentry.close(MAX_WAIT_PENDING_TIME_MS).then(() => {
23
+ void Sentry.close(MAX_WAIT_PENDING_TIME_MS).then(() => {
24
24
  process.exit(0);
25
25
  });
26
26
  }
27
27
  export function printTableToConsoleAndExitGracefully(table) {
28
28
  printTableToConsole(table);
29
- Sentry.close(MAX_WAIT_PENDING_TIME_MS).then(() => {
29
+ void Sentry.close(MAX_WAIT_PENDING_TIME_MS).then(() => {
30
30
  process.exit(0);
31
31
  });
32
32
  }
@@ -43,4 +43,4 @@ export default function setBlocking() {
43
43
  });
44
44
  }
45
45
  //# sourceMappingURL=output.js.map
46
- //# debugId=5371f48b-c120-523a-8c00-26364a117dc3
46
+ //# debugId=add3c8c1-77f3-5f77-86a6-91bb56fc8924
@@ -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]="6038214e-2225-5805-b5ef-50d65c7aaef4")}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]="874bdf33-2404-5358-a507-fe544665167e")}catch(e){}}();
3
3
  import { readFile, writeFile } from "node:fs/promises";
4
4
  import { join } from "node:path";
5
5
  import prettier from "prettier";
@@ -14,7 +14,7 @@ export class PackageJsonUpgrader extends StandardUpgrader {
14
14
  async isApplicable() {
15
15
  try {
16
16
  const rawPackage = await readFile(join(this.normalizedDir, "package.json"), "utf-8");
17
- const packageJson = JSON.parse(rawPackage);
17
+ JSON.parse(rawPackage);
18
18
  return { ok: true };
19
19
  }
20
20
  catch (err) {
@@ -64,4 +64,4 @@ export class PackageJsonUpgrader extends StandardUpgrader {
64
64
  }
65
65
  }
66
66
  //# sourceMappingURL=package-json-upgrader.js.map
67
- //# debugId=6038214e-2225-5805-b5ef-50d65c7aaef4
67
+ //# debugId=874bdf33-2404-5358-a507-fe544665167e
@@ -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]="7fa9de75-954a-50d1-ac60-ca52d775e893")}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]="1cd4863b-e160-5034-be8d-a7c8eb8c8ae2")}catch(e){}}();
3
3
  import { parse } from "jsonc-parser";
4
4
  import { existsSync } from "node:fs";
5
5
  import { readFile, writeFile } from "node:fs/promises";
@@ -93,4 +93,4 @@ export class VsCodeSettingsJsonUpgrader extends StandardUpgrader {
93
93
  }
94
94
  }
95
95
  //# sourceMappingURL=vscode-settings-json-upgrader.js.map
96
- //# debugId=7fa9de75-954a-50d1-ac60-ca52d775e893
96
+ //# debugId=1cd4863b-e160-5034-be8d-a7c8eb8c8ae2
@@ -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]="d1c29cc8-c62f-5fb6-ba52-552cc8829f5b")}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]="1ef82943-79ab-58c3-85ba-7a052b51014b")}catch(e){}}();
3
3
  import { existsSync } from "node:fs";
4
4
  import { readFile } from "node:fs/promises";
5
5
  import { join } from "node:path";
@@ -14,7 +14,7 @@ export class UserIsNotLoggedIn extends Error {
14
14
  }
15
15
  }
16
16
  export class UserIsLoggedInValidator {
17
- async validate(options) {
17
+ async validate(_options) {
18
18
  if (!existsSync(join(ZUPLO_XDG_STATE_HOME, ZUPLO_AUTH_FILE_NAME))) {
19
19
  return { ok: false, error: new UserIsNotLoggedIn() };
20
20
  }
@@ -36,4 +36,4 @@ export class UserIsLoggedInValidator {
36
36
  }
37
37
  }
38
38
  //# sourceMappingURL=login-state-validator.js.map
39
- //# debugId=d1c29cc8-c62f-5fb6-ba52-552cc8829f5b
39
+ //# debugId=1ef82943-79ab-58c3-85ba-7a052b51014b
@@ -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]="f2c285e5-b732-5278-9a18-fe43bd5937d7")}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]="07c0e893-1d9c-5043-8872-af7d12092a4e")}catch(e){}}();
3
3
  import { homedir } from "node:os";
4
4
  import path from "node:path";
5
5
  import { ZUPLO_CLI_XDG_FOLDER_NAME } from "../constants.js";
@@ -18,4 +18,4 @@ export const ZUPLO_XDG_CONFIG_HOME = path.join(XDG_CONFIG_HOME, ZUPLO_CLI_XDG_FO
18
18
  export const ZUPLO_XDG_DATA_HOME = path.join(XDG_DATA_HOME, ZUPLO_CLI_XDG_FOLDER_NAME);
19
19
  export const ZUPLO_XDG_STATE_HOME = path.join(XDG_STATE_HOME, ZUPLO_CLI_XDG_FOLDER_NAME);
20
20
  //# sourceMappingURL=lib.js.map
21
- //# debugId=f2c285e5-b732-5278-9a18-fe43bd5937d7
21
+ //# debugId=07c0e893-1d9c-5043-8872-af7d12092a4e
@@ -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]="552cb5a7-6e6b-5822-8c9b-8f28decd2765")}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]="23fb1ec0-0928-5d06-9636-644e8145f6a9")}catch(e){}}();
3
3
  import { join } from "node:path";
4
4
  export function convertRoutes(routesConfig) {
5
5
  const base = generateBaseOpenAPIConfig();
@@ -73,4 +73,4 @@ function fullPath(path, context) {
73
73
  return join(versionPrefix, path.path);
74
74
  }
75
75
  //# sourceMappingURL=engine.js.map
76
- //# debugId=552cb5a7-6e6b-5822-8c9b-8f28decd2765
76
+ //# debugId=23fb1ec0-0928-5d06-9636-644e8145f6a9
@@ -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]="b8523451-9c30-5fca-8643-b3e3505d0c52")}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]="7ae3068d-6542-5bf3-8958-ead0b73483aa")}catch(e){}}();
3
3
  import { logger } from "../common/logger.js";
4
4
  import { printCriticalFailureToConsoleAndExit, printResultToConsoleAndExitGracefully, } from "../common/output.js";
5
5
  import settings from "../common/settings.js";
@@ -11,7 +11,7 @@ export async function deleteZup(argv) {
11
11
  if (!/^(http:\/\/|https:\/\/)/i.test(argv.url)) {
12
12
  url = "https://" + url;
13
13
  }
14
- const parsedUrl = new URL(argv.url);
14
+ const parsedUrl = new URL(url);
15
15
  if (parsedUrl.username || parsedUrl.password) {
16
16
  logger.error(`Extra username and/or password was included in the URL.`);
17
17
  printCriticalFailureToConsoleAndExit(`Error: Extraneous username and/or password in the URL. Only include the hostname.`);
@@ -61,4 +61,4 @@ export async function deleteZup(argv) {
61
61
  }
62
62
  }
63
63
  //# sourceMappingURL=handler.js.map
64
- //# debugId=b8523451-9c30-5fca-8643-b3e3505d0c52
64
+ //# debugId=7ae3068d-6542-5bf3-8958-ead0b73483aa
@@ -1,6 +1,6 @@
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]="29782eb6-6bf4-54b4-bbb6-e458e9f440d7")}catch(e){}}();
3
- import { parse } from "path";
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]="688ea3e1-aa7a-58dd-8251-a8a0f7cb46d4")}catch(e){}}();
3
+ import { parse } from "node:path";
4
4
  import { logger } from "../common/logger.js";
5
5
  import { printCriticalFailureToConsoleAndExit, printDiagnosticsToConsole, printResultToConsoleAndExitGracefully, } from "../common/output.js";
6
6
  import settings from "../common/settings.js";
@@ -49,4 +49,4 @@ export async function deploy(argv) {
49
49
  }
50
50
  }
51
51
  //# sourceMappingURL=handler.js.map
52
- //# debugId=29782eb6-6bf4-54b4-bbb6-e458e9f440d7
52
+ //# debugId=688ea3e1-aa7a-58dd-8251-a8a0f7cb46d4
@@ -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]="f2ecbc67-f14f-5d30-ae29-12cb0afa2f7a")}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]="c9c54ddd-51be-5f59-85c4-8d438ee05f78")}catch(e){}}();
3
3
  import { logger } from "../common/logger.js";
4
4
  import { printDiagnosticsToConsole } from "../common/output.js";
5
5
  import settings from "../common/settings.js";
@@ -24,7 +24,7 @@ export async function pollDeployment(argv, fileId, account, project) {
24
24
  case "IN_PROGRESS":
25
25
  await wait();
26
26
  continue;
27
- case "SUCCESS":
27
+ case "SUCCESS": {
28
28
  const zupResponse = await fetch(`${url}/__zuplo/build`);
29
29
  if (zupResponse.ok) {
30
30
  return {
@@ -36,6 +36,7 @@ export async function pollDeployment(argv, fileId, account, project) {
36
36
  else {
37
37
  continue;
38
38
  }
39
+ }
39
40
  case "ERROR":
40
41
  return {
41
42
  steps,
@@ -62,4 +63,4 @@ export async function pollDeployment(argv, fileId, account, project) {
62
63
  return {};
63
64
  }
64
65
  //# sourceMappingURL=poll-deployment.js.map
65
- //# debugId=f2ecbc67-f14f-5d30-ae29-12cb0afa2f7a
66
+ //# debugId=c9c54ddd-51be-5f59-85c4-8d438ee05f78
@@ -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]="8a21242d-f296-5f9a-97b5-820fc6f7704b")}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]="97d04605-0372-5102-93a4-54073b5dc1ef")}catch(e){}}();
3
3
  import * as dotenv from "dotenv";
4
4
  import { cpSync, existsSync } from "node:fs";
5
5
  import { readFile } from "node:fs/promises";
@@ -34,4 +34,4 @@ export async function dev(argv) {
34
34
  });
35
35
  }
36
36
  //# sourceMappingURL=handler.js.map
37
- //# debugId=8a21242d-f296-5f9a-97b5-820fc6f7704b
37
+ //# debugId=97d04605-0372-5102-93a4-54073b5dc1ef
@@ -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]="ace8b450-e2bc-518f-970e-095a96600d98")}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]="8451c49d-bb15-57d5-93e4-22bef812d72b")}catch(e){}}();
3
3
  import fastifyStatic from "@fastify/static";
4
4
  import Fastify from "fastify";
5
5
  import fs, { readdir } from "node:fs/promises";
@@ -48,9 +48,7 @@ export class ApiServer {
48
48
  }
49
49
  const policiesPath = path.join(this.workingDir, "config", "policies.json");
50
50
  if (!(await fileExists(policiesPath))) {
51
- return reply
52
- .code(404)
53
- .send({
51
+ return reply.code(404).send({
54
52
  message: `Cannot find a 'policies.json' file in the 'config'`,
55
53
  });
56
54
  }
@@ -91,9 +89,7 @@ export class ApiServer {
91
89
  bodyContent.forEach(async (fileData) => {
92
90
  const openApiFilePath = path.join(this.workingDir, "config", fileData.filePath);
93
91
  if (!(await fileExists(openApiFilePath))) {
94
- return reply
95
- .code(404)
96
- .send({
92
+ return reply.code(404).send({
97
93
  message: `Cannot find file named '${fileData.filePath}'`,
98
94
  });
99
95
  }
@@ -135,4 +131,4 @@ export class ApiServer {
135
131
  };
136
132
  }
137
133
  //# sourceMappingURL=server.js.map
138
- //# debugId=ace8b450-e2bc-518f-970e-095a96600d98
134
+ //# debugId=8451c49d-bb15-57d5-93e4-22bef812d72b
@@ -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]="1756fcaa-462b-539b-8d19-4d1e9afe8e3c")}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]="63524d19-c032-5440-9afe-279fb317a27c")}catch(e){}}();
3
3
  import { select } from "@inquirer/prompts";
4
4
  import { readFile } from "node:fs/promises";
5
5
  import { join } from "node:path";
@@ -80,4 +80,4 @@ Successfully linked your local directory to the ${project} project in the ${acco
80
80
  .env.zuplo and zuplo.jsonc have been updated with the new values.`);
81
81
  }
82
82
  //# sourceMappingURL=handler.js.map
83
- //# debugId=1756fcaa-462b-539b-8d19-4d1e9afe8e3c
83
+ //# debugId=63524d19-c032-5440-9afe-279fb317a27c
@@ -1,11 +1,11 @@
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]="6a4f5064-630d-52ee-863e-8a21094f6df5")}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]="678d01cf-2b77-5d58-8b82-98a0fd47a94e")}catch(e){}}();
3
3
  import crypto from "node:crypto";
4
4
  import { existsSync, mkdirSync } from "node:fs";
5
5
  import { writeFile } from "node:fs/promises";
6
6
  import { join } from "node:path";
7
7
  import { ZUPLO_AUTH_FILE_NAME } from "../common/constants.js";
8
- import { printResultToConsoleAndExitGracefully } from "../common/output.js";
8
+ import { printResultToConsole, printResultToConsoleAndExitGracefully, } from "../common/output.js";
9
9
  import { ZUPLO_XDG_STATE_HOME } from "../common/xdg/lib.js";
10
10
  import { browserAuth } from "./server.js";
11
11
  export const AUTH_SERVER_PORT = 57801;
@@ -70,9 +70,9 @@ export async function login(args) {
70
70
  const tokenPath = join(ZUPLO_XDG_STATE_HOME, ZUPLO_AUTH_FILE_NAME);
71
71
  await writeFile(tokenPath, JSON.stringify(result));
72
72
  if (args["print-token"]) {
73
- console.log(result.access_token);
73
+ printResultToConsole(result.access_token);
74
74
  }
75
75
  printResultToConsoleAndExitGracefully("Successfully authenticated.");
76
76
  }
77
77
  //# sourceMappingURL=handler.js.map
78
- //# debugId=6a4f5064-630d-52ee-863e-8a21094f6df5
78
+ //# debugId=678d01cf-2b77-5d58-8b82-98a0fd47a94e
@@ -1,6 +1,6 @@
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]="4d6d7b07-64ef-5d67-9bf3-c0ce8338758f")}catch(e){}}();
3
- import http from "http";
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]="0e67bc58-b817-5fe0-8e05-53b8a9375c97")}catch(e){}}();
3
+ import http from "node:http";
4
4
  import opn from "open";
5
5
  import { printCriticalFailureToConsoleAndExit } from "../common/output.js";
6
6
  import { AUTH_SERVER_PORT } from "./handler.js";
@@ -20,7 +20,7 @@ export async function browserAuth(authorizationUrl) {
20
20
  }
21
21
  };
22
22
  const server = http.createServer(handler).listen(AUTH_SERVER_PORT);
23
- opn(authorizationUrl);
23
+ await opn(authorizationUrl);
24
24
  let iterations = 0;
25
25
  while (params === undefined) {
26
26
  if (iterations++ > 600) {
@@ -35,4 +35,4 @@ export async function browserAuth(authorizationUrl) {
35
35
  return params;
36
36
  }
37
37
  //# sourceMappingURL=server.js.map
38
- //# debugId=4d6d7b07-64ef-5d67-9bf3-c0ce8338758f
38
+ //# debugId=0e67bc58-b817-5fe0-8e05-53b8a9375c97
@@ -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]="2cba59b0-5d9c-564b-be3c-3b65c091d0b5")}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]="98f421de-65b0-5e62-a8e4-9ed089f92ec8")}catch(e){}}();
3
3
  export {};
4
4
  //# sourceMappingURL=models.js.map
5
- //# debugId=2cba59b0-5d9c-564b-be3c-3b65c091d0b5
5
+ //# debugId=98f421de-65b0-5e62-a8e4-9ed089f92ec8
@@ -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]="89a77492-f690-5539-afdf-a8feae43ceda")}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]="b91c903f-cfdb-5b4c-9ce3-fe6824de0155")}catch(e){}}();
3
3
  import { logger } from "../../common/logger.js";
4
4
  import { printDiagnosticsToConsole, printResultToConsole, } from "../../common/output.js";
5
5
  import settings from "../../common/settings.js";
@@ -20,7 +20,6 @@ export async function create(argv) {
20
20
  if (createResponse.ok) {
21
21
  const variable = await createResponse.json();
22
22
  printResultToConsole(variable.name + " created successfully");
23
- console.log(variable);
24
23
  }
25
24
  else {
26
25
  logger.error({
@@ -31,4 +30,4 @@ export async function create(argv) {
31
30
  }
32
31
  }
33
32
  //# sourceMappingURL=handler.js.map
34
- //# debugId=89a77492-f690-5539-afdf-a8feae43ceda
33
+ //# debugId=b91c903f-cfdb-5b4c-9ce3-fe6824de0155
@@ -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]="b2ef66c9-dd51-5b0e-9b18-fbb10b6b09da")}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]="43d578e3-bb26-5129-a6f9-f07fc8cbc895")}catch(e){}}();
3
3
  import { logger } from "../../common/logger.js";
4
4
  import { printDiagnosticsToConsole, printResultToConsole, } from "../../common/output.js";
5
5
  import settings from "../../common/settings.js";
@@ -18,7 +18,6 @@ export async function update(argv) {
18
18
  if (updateResponse.ok) {
19
19
  const variable = await updateResponse.json();
20
20
  printResultToConsole(variable.name + " updated successfully");
21
- console.log(variable);
22
21
  }
23
22
  else {
24
23
  logger.error({
@@ -29,4 +28,4 @@ export async function update(argv) {
29
28
  }
30
29
  }
31
30
  //# sourceMappingURL=handler.js.map
32
- //# debugId=b2ef66c9-dd51-5b0e-9b18-fbb10b6b09da
31
+ //# debugId=43d578e3-bb26-5129-a6f9-f07fc8cbc895
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "1.66.0",
3
+ "version": "1.68.0",
4
4
  "type": "module",
5
5
  "repository": "https://github.com/zuplo/cli",
6
6
  "author": "Zuplo, Inc.",