@zuplo/cli 1.63.0 → 1.66.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 (81) hide show
  1. package/dist/cli.js +26 -3
  2. package/dist/cmds/convert.js +4 -1
  3. package/dist/cmds/delete.js +4 -1
  4. package/dist/cmds/deploy.js +4 -1
  5. package/dist/cmds/dev.js +4 -1
  6. package/dist/cmds/editor.js +4 -1
  7. package/dist/cmds/link.js +4 -1
  8. package/dist/cmds/list.js +4 -1
  9. package/dist/cmds/login.js +4 -1
  10. package/dist/cmds/project/index.js +4 -1
  11. package/dist/cmds/project/update.js +4 -1
  12. package/dist/cmds/test.js +4 -1
  13. package/dist/cmds/tunnel/create.js +4 -1
  14. package/dist/cmds/tunnel/delete.js +4 -1
  15. package/dist/cmds/tunnel/describe.js +4 -1
  16. package/dist/cmds/tunnel/index.js +4 -1
  17. package/dist/cmds/tunnel/list.js +4 -1
  18. package/dist/cmds/tunnel/rotate-token.js +4 -1
  19. package/dist/cmds/tunnel/services/describe.js +4 -1
  20. package/dist/cmds/tunnel/services/index.js +4 -1
  21. package/dist/cmds/tunnel/services/update.js +4 -1
  22. package/dist/cmds/variable/create.js +4 -1
  23. package/dist/cmds/variable/index.js +4 -1
  24. package/dist/cmds/variable/update.js +4 -1
  25. package/dist/common/alias.js +4 -1
  26. package/dist/common/api/lib.js +4 -1
  27. package/dist/common/constants.js +6 -1
  28. package/dist/common/deno-utils/locator.js +4 -1
  29. package/dist/common/handler.js +4 -1
  30. package/dist/common/logger.js +11 -2
  31. package/dist/common/middleware/user-configuration.js +4 -1
  32. package/dist/common/models.js +4 -1
  33. package/dist/common/output.js +15 -4
  34. package/dist/common/settings.js +4 -1
  35. package/dist/common/upgraders/lib.js +4 -1
  36. package/dist/common/upgraders/package-json-upgrader.js +4 -1
  37. package/dist/common/upgraders/vscode-settings-json-upgrader.js +4 -1
  38. package/dist/common/validators/file-system-validator.js +4 -1
  39. package/dist/common/validators/lib.js +4 -1
  40. package/dist/common/validators/login-state-validator.js +4 -1
  41. package/dist/common/validators/project-name-validator.js +4 -1
  42. package/dist/common/xdg/lib.js +4 -1
  43. package/dist/convert/engine.js +4 -1
  44. package/dist/convert/handler.js +4 -1
  45. package/dist/convert/routes.generated.js +4 -1
  46. package/dist/delete/handler.js +4 -1
  47. package/dist/delete/poll-deployment.js +4 -1
  48. package/dist/deploy/archive.js +4 -1
  49. package/dist/deploy/file-upload.js +4 -1
  50. package/dist/deploy/handler.js +4 -1
  51. package/dist/deploy/poll-deployment.js +4 -1
  52. package/dist/dev/handler.js +4 -1
  53. package/dist/editor/assets/index-03352ce7.js +4 -0
  54. package/dist/editor/handler.js +4 -1
  55. package/dist/editor/server/cors-plugin.js +4 -1
  56. package/dist/editor/server/server.js +4 -1
  57. package/dist/editor/server/xfs.js +4 -1
  58. package/dist/link/handler.js +4 -1
  59. package/dist/link/populate.js +4 -1
  60. package/dist/list/handler.js +4 -1
  61. package/dist/login/handler.js +4 -1
  62. package/dist/login/server.js +4 -1
  63. package/dist/project/update/handler.js +4 -1
  64. package/dist/test/esbuild-config.js +4 -1
  65. package/dist/test/esbuild-plugins/deno-test-prep-plugin.js +4 -1
  66. package/dist/test/handler.js +4 -1
  67. package/dist/test/invoke-test.js +4 -1
  68. package/dist/tunnel/create/handler.js +4 -1
  69. package/dist/tunnel/delete/handler.js +4 -1
  70. package/dist/tunnel/delete/poll-teardown-operation.js +4 -1
  71. package/dist/tunnel/describe/handler.js +4 -1
  72. package/dist/tunnel/list/handler.js +4 -1
  73. package/dist/tunnel/models.js +4 -1
  74. package/dist/tunnel/rotate-token/handler.js +4 -1
  75. package/dist/tunnel/services/describe/handler.js +4 -1
  76. package/dist/tunnel/services/update/handler.js +4 -1
  77. package/dist/tunnel/services/update/poll-provisioning-operations.js +4 -1
  78. package/dist/variable/create/handler.js +4 -1
  79. package/dist/variable/models.js +4 -1
  80. package/dist/variable/update/handler.js +4 -1
  81. package/package.json +8 -5
package/dist/cli.js CHANGED
@@ -1,5 +1,10 @@
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){}}();
1
3
  import * as dotenv from "dotenv";
2
4
  dotenv.config();
5
+ import * as Sentry from "@sentry/node";
6
+ import { readFileSync } from "node:fs";
7
+ import { fileURLToPath } from "node:url";
3
8
  import { gte } from "semver";
4
9
  import { hideBin } from "yargs/helpers";
5
10
  import yargs from "yargs/yargs";
@@ -15,10 +20,24 @@ import project from "./cmds/project/index.js";
15
20
  import test from "./cmds/test.js";
16
21
  import tunnel from "./cmds/tunnel/index.js";
17
22
  import variable from "./cmds/variable/index.js";
23
+ import { MAX_WAIT_PENDING_TIME_MS, SENTRY_DSN } from "./common/constants.js";
24
+ import { logger } from "./common/logger.js";
18
25
  import { printCriticalFailureToConsoleAndExit } from "./common/output.js";
19
26
  const MIN_NODE_VERSION = "18.0.0";
20
27
  if (gte(process.versions.node, MIN_NODE_VERSION)) {
21
- void yargs(hideBin(process.argv))
28
+ let packageJson;
29
+ try {
30
+ packageJson = JSON.parse(readFileSync(fileURLToPath(new URL("../package.json", import.meta.url)), "utf-8"));
31
+ }
32
+ catch (e) {
33
+ logger.error(e);
34
+ printCriticalFailureToConsoleAndExit(`Unable to load @zuplo/cli. The package.json is missing or malformed.`);
35
+ }
36
+ Sentry.init({
37
+ dsn: SENTRY_DSN,
38
+ release: packageJson?.version,
39
+ });
40
+ await yargs(hideBin(process.argv))
22
41
  .env("ZUPLO")
23
42
  .command(convert)
24
43
  .command(deleteZup)
@@ -34,12 +53,16 @@ if (gte(process.versions.node, MIN_NODE_VERSION)) {
34
53
  .command(variable)
35
54
  .demandCommand()
36
55
  .strictCommands()
37
- .version()
56
+ .version(packageJson?.version)
38
57
  .help().argv;
58
+ Sentry.close(MAX_WAIT_PENDING_TIME_MS).then(() => {
59
+ process.exit(0);
60
+ });
39
61
  }
40
62
  else {
41
63
  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.
42
64
 
43
65
  Consider using a Node.js version manager such as https://github.com/nvm-sh/nvm.`);
44
66
  }
45
- //# sourceMappingURL=cli.js.map
67
+ //# sourceMappingURL=cli.js.map
68
+ //# debugId=a3130374-8b31-5e03-a50a-d2b87bc6e6f3
@@ -1,3 +1,5 @@
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]="1ee05eb2-eaf1-539f-99b2-cad44de903dd")}catch(e){}}();
1
3
  import setBlocking from "../common/output.js";
2
4
  import { convert } from "../convert/handler.js";
3
5
  export default {
@@ -18,4 +20,5 @@ export default {
18
20
  await convert(argv);
19
21
  },
20
22
  };
21
- //# sourceMappingURL=convert.js.map
23
+ //# sourceMappingURL=convert.js.map
24
+ //# debugId=1ee05eb2-eaf1-539f-99b2-cad44de903dd
@@ -1,3 +1,5 @@
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]="8065ff8d-d135-5d82-9b8c-74abe459c85d")}catch(e){}}();
1
3
  import { configure } from "../common/middleware/user-configuration.js";
2
4
  import setBlocking from "../common/output.js";
3
5
  import { YargsChecker } from "../common/validators/lib.js";
@@ -36,4 +38,5 @@ export default {
36
38
  await deleteZup(argv);
37
39
  },
38
40
  };
39
- //# sourceMappingURL=delete.js.map
41
+ //# sourceMappingURL=delete.js.map
42
+ //# debugId=8065ff8d-d135-5d82-9b8c-74abe459c85d
@@ -1,3 +1,5 @@
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]="cbf9a0b8-c0bc-5bb0-8096-54d8d05d7004")}catch(e){}}();
1
3
  import { configure } from "../common/middleware/user-configuration.js";
2
4
  import setBlocking from "../common/output.js";
3
5
  import { validDeployDirectoryValidator } from "../common/validators/file-system-validator.js";
@@ -41,4 +43,5 @@ export default {
41
43
  await deploy(argv);
42
44
  },
43
45
  };
44
- //# sourceMappingURL=deploy.js.map
46
+ //# sourceMappingURL=deploy.js.map
47
+ //# debugId=cbf9a0b8-c0bc-5bb0-8096-54d8d05d7004
package/dist/cmds/dev.js CHANGED
@@ -1,3 +1,5 @@
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]="b2529683-8609-5481-9f1f-b61849e749e9")}catch(e){}}();
1
3
  import setBlocking from "../common/output.js";
2
4
  import { ZuploProjectValidator } from "../common/validators/file-system-validator.js";
3
5
  import { YargsChecker } from "../common/validators/lib.js";
@@ -28,4 +30,5 @@ export default {
28
30
  await dev(argv);
29
31
  },
30
32
  };
31
- //# sourceMappingURL=dev.js.map
33
+ //# sourceMappingURL=dev.js.map
34
+ //# debugId=b2529683-8609-5481-9f1f-b61849e749e9
@@ -1,3 +1,5 @@
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]="94eadd05-6b27-55d1-a68e-610273cab2e8")}catch(e){}}();
1
3
  import setBlocking from "../common/output.js";
2
4
  import { ZuploProjectValidator } from "../common/validators/file-system-validator.js";
3
5
  import { YargsChecker } from "../common/validators/lib.js";
@@ -23,4 +25,5 @@ export default {
23
25
  await editor(argv);
24
26
  },
25
27
  };
26
- //# sourceMappingURL=editor.js.map
28
+ //# sourceMappingURL=editor.js.map
29
+ //# debugId=94eadd05-6b27-55d1-a68e-610273cab2e8
package/dist/cmds/link.js CHANGED
@@ -1,3 +1,5 @@
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]="1d398742-c6e5-518f-97c1-b82358ee75de")}catch(e){}}();
1
3
  import setBlocking from "../common/output.js";
2
4
  import { validLinkDirectoryValidator } from "../common/validators/file-system-validator.js";
3
5
  import { YargsChecker } from "../common/validators/lib.js";
@@ -23,4 +25,5 @@ export default {
23
25
  await link(argv);
24
26
  },
25
27
  };
26
- //# sourceMappingURL=link.js.map
28
+ //# sourceMappingURL=link.js.map
29
+ //# debugId=1d398742-c6e5-518f-97c1-b82358ee75de
package/dist/cmds/list.js CHANGED
@@ -1,3 +1,5 @@
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]="1e3cc332-74df-57b8-a456-6b2eba10dee2")}catch(e){}}();
1
3
  import { configure } from "../common/middleware/user-configuration.js";
2
4
  import setBlocking from "../common/output.js";
3
5
  import { YargsChecker } from "../common/validators/lib.js";
@@ -27,4 +29,5 @@ export default {
27
29
  await list(argv);
28
30
  },
29
31
  };
30
- //# sourceMappingURL=list.js.map
32
+ //# sourceMappingURL=list.js.map
33
+ //# debugId=1e3cc332-74df-57b8-a456-6b2eba10dee2
@@ -1,3 +1,5 @@
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]="8aa027a1-1e73-54e1-8ebf-62989ec9fbe4")}catch(e){}}();
1
3
  import setBlocking from "../common/output.js";
2
4
  import { login } from "../login/handler.js";
3
5
  export default {
@@ -15,4 +17,5 @@ export default {
15
17
  await login(argv);
16
18
  },
17
19
  };
18
- //# sourceMappingURL=login.js.map
20
+ //# sourceMappingURL=login.js.map
21
+ //# debugId=8aa027a1-1e73-54e1-8ebf-62989ec9fbe4
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { groupHandler } from "../../common/handler.js";
2
4
  import update from "./update.js";
3
5
  const commands = {
@@ -9,4 +11,5 @@ const commands = {
9
11
  handler: groupHandler,
10
12
  };
11
13
  export default commands;
12
- //# sourceMappingURL=index.js.map
14
+ //# sourceMappingURL=index.js.map
15
+ //# debugId=97442fb2-c205-5275-a116-d604249a3290
@@ -1,3 +1,5 @@
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]="d47c4ee2-0526-5442-98e4-4d04edf0bace")}catch(e){}}();
1
3
  import setBlocking from "../../common/output.js";
2
4
  import { ZuploProjectValidator } from "../../common/validators/file-system-validator.js";
3
5
  import { YargsChecker } from "../../common/validators/lib.js";
@@ -23,4 +25,5 @@ export default {
23
25
  await update(argv);
24
26
  },
25
27
  };
26
- //# sourceMappingURL=update.js.map
28
+ //# sourceMappingURL=update.js.map
29
+ //# debugId=d47c4ee2-0526-5442-98e4-4d04edf0bace
package/dist/cmds/test.js CHANGED
@@ -1,3 +1,5 @@
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]="87aaeef3-6851-54ac-874f-906116921209")}catch(e){}}();
1
3
  import setBlocking from "../common/output.js";
2
4
  import { validTestDirectoryValidator } from "../common/validators/file-system-validator.js";
3
5
  import { YargsChecker } from "../common/validators/lib.js";
@@ -31,4 +33,5 @@ export default {
31
33
  await test(argv);
32
34
  },
33
35
  };
34
- //# sourceMappingURL=test.js.map
36
+ //# sourceMappingURL=test.js.map
37
+ //# debugId=87aaeef3-6851-54ac-874f-906116921209
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { configure } from "../../common/middleware/user-configuration.js";
2
4
  import setBlocking from "../../common/output.js";
3
5
  import { create } from "../../tunnel/create/handler.js";
@@ -22,4 +24,5 @@ export default {
22
24
  create(argv);
23
25
  },
24
26
  };
25
- //# sourceMappingURL=create.js.map
27
+ //# sourceMappingURL=create.js.map
28
+ //# debugId=e84a8979-b7c4-5c5e-9a29-676262b72a20
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { configure } from "../../common/middleware/user-configuration.js";
2
4
  import setBlocking from "../../common/output.js";
3
5
  import { deleteTunnel } from "../../tunnel/delete/handler.js";
@@ -18,4 +20,5 @@ export default {
18
20
  deleteTunnel(argv);
19
21
  },
20
22
  };
21
- //# sourceMappingURL=delete.js.map
23
+ //# sourceMappingURL=delete.js.map
24
+ //# debugId=fc6adc78-6cd1-5e2a-967a-8117b86fd4ef
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { configure } from "../../common/middleware/user-configuration.js";
2
4
  import setBlocking from "../../common/output.js";
3
5
  import { describe } from "../../tunnel/describe/handler.js";
@@ -22,4 +24,5 @@ export default {
22
24
  describe(argv);
23
25
  },
24
26
  };
25
- //# sourceMappingURL=describe.js.map
27
+ //# sourceMappingURL=describe.js.map
28
+ //# debugId=843d0524-1681-5dcb-a5ee-ff9507802e78
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { groupHandler } from "../../common/handler.js";
2
4
  import create from "./create.js";
3
5
  import deleteTunnel from "./delete.js";
@@ -21,4 +23,5 @@ const commands = {
21
23
  handler: groupHandler,
22
24
  };
23
25
  export default commands;
24
- //# sourceMappingURL=index.js.map
26
+ //# sourceMappingURL=index.js.map
27
+ //# debugId=ea38def4-97f9-5b5e-87cb-413e8b77263e
@@ -1,3 +1,5 @@
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]="ad5fb9f1-9b28-5680-8f3e-a66939187584")}catch(e){}}();
1
3
  import { configure } from "../../common/middleware/user-configuration.js";
2
4
  import setBlocking from "../../common/output.js";
3
5
  import { list } from "../../tunnel/list/handler.js";
@@ -18,4 +20,5 @@ export default {
18
20
  await list(argv);
19
21
  },
20
22
  };
21
- //# sourceMappingURL=list.js.map
23
+ //# sourceMappingURL=list.js.map
24
+ //# debugId=ad5fb9f1-9b28-5680-8f3e-a66939187584
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { configure } from "../../common/middleware/user-configuration.js";
2
4
  import setBlocking from "../../common/output.js";
3
5
  import { rotateToken } from "../../tunnel/rotate-token/handler.js";
@@ -22,4 +24,5 @@ export default {
22
24
  rotateToken(argv);
23
25
  },
24
26
  };
25
- //# sourceMappingURL=rotate-token.js.map
27
+ //# sourceMappingURL=rotate-token.js.map
28
+ //# debugId=37567299-9d2c-584d-9885-8c4462426e83
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { configure } from "../../../common/middleware/user-configuration.js";
2
4
  import setBlocking from "../../../common/output.js";
3
5
  import { describe, } from "../../../tunnel/services/describe/handler.js";
@@ -22,4 +24,5 @@ export default {
22
24
  describe(argv);
23
25
  },
24
26
  };
25
- //# sourceMappingURL=describe.js.map
27
+ //# sourceMappingURL=describe.js.map
28
+ //# debugId=d04dda73-b1d7-531a-90e8-b9d128e1c1dc
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { groupHandler } from "../../../common/handler.js";
2
4
  import describe from "./describe.js";
3
5
  import update from "./update.js";
@@ -10,4 +12,5 @@ const commands = {
10
12
  handler: groupHandler,
11
13
  };
12
14
  export default commands;
13
- //# sourceMappingURL=index.js.map
15
+ //# sourceMappingURL=index.js.map
16
+ //# debugId=6e8beeed-531e-57b4-ab8b-976e938eb511
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { configure } from "../../../common/middleware/user-configuration.js";
2
4
  import setBlocking from "../../../common/output.js";
3
5
  import { updateServices, } from "../../../tunnel/services/update/handler.js";
@@ -26,4 +28,5 @@ export default {
26
28
  updateServices(argv);
27
29
  },
28
30
  };
29
- //# sourceMappingURL=update.js.map
31
+ //# sourceMappingURL=update.js.map
32
+ //# debugId=ca61a21c-a848-5537-843c-03670fbc9c1d
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { configure } from "../../common/middleware/user-configuration.js";
2
4
  import setBlocking from "../../common/output.js";
3
5
  import { YargsChecker } from "../../common/validators/lib.js";
@@ -43,4 +45,5 @@ export default {
43
45
  create(argv);
44
46
  },
45
47
  };
46
- //# sourceMappingURL=create.js.map
48
+ //# sourceMappingURL=create.js.map
49
+ //# debugId=7ba1cf01-4d34-5cdb-83d5-8928849b5a41
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { groupHandler } from "../../common/handler.js";
2
4
  import create from "./create.js";
3
5
  import update from "./update.js";
@@ -10,4 +12,5 @@ const commands = {
10
12
  handler: groupHandler,
11
13
  };
12
14
  export default commands;
13
- //# sourceMappingURL=index.js.map
15
+ //# sourceMappingURL=index.js.map
16
+ //# debugId=48df2c67-c282-5c7a-b395-729f100a8e5d
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { configure } from "../../common/middleware/user-configuration.js";
2
4
  import setBlocking from "../../common/output.js";
3
5
  import { YargsChecker } from "../../common/validators/lib.js";
@@ -34,4 +36,5 @@ export default {
34
36
  update(argv);
35
37
  },
36
38
  };
37
- //# sourceMappingURL=update.js.map
39
+ //# sourceMappingURL=update.js.map
40
+ //# debugId=e7f5c11c-5d34-5036-8715-1f2fb5b62e02
@@ -1,2 +1,5 @@
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]="94d599ef-d480-5d1e-8785-bf31fe61dd8a")}catch(e){}}();
1
3
  export {};
2
- //# sourceMappingURL=alias.js.map
4
+ //# sourceMappingURL=alias.js.map
5
+ //# debugId=94d599ef-d480-5d1e-8785-bf31fe61dd8a
@@ -1,2 +1,5 @@
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]="835a57a9-5551-55f9-8966-cede875a1003")}catch(e){}}();
1
3
  export {};
2
- //# sourceMappingURL=lib.js.map
4
+ //# sourceMappingURL=lib.js.map
5
+ //# debugId=835a57a9-5551-55f9-8966-cede875a1003
@@ -1,3 +1,5 @@
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]="df5828ae-5daa-5d76-b21c-787c45925e74")}catch(e){}}();
1
3
  export const ZUPLO_PREFERRED_JSON_FILE = "zuplo.jsonc";
2
4
  export const ZUPLO_FALLBACK_JSON_FILE = "zuplo.json";
3
5
  export const ZUPLO_CLI_XDG_FOLDER_NAME = "zup";
@@ -6,4 +8,7 @@ export const ZUPLO_SYSTEM_ENV_VAR = ".env.zuplo";
6
8
  export const DEPLOYER_METADATA_FILE = "deployer.json";
7
9
  export const TEST_IN_FOLDER = "tests";
8
10
  export const TEST_OUT_FOLDER = ".zuplo/__tests__";
9
- //# sourceMappingURL=constants.js.map
11
+ export const SENTRY_DSN = "https://28220fd3185a1281daff09ade2114dca@o1036703.ingest.sentry.io/4505880249040896";
12
+ export const MAX_WAIT_PENDING_TIME_MS = 1000;
13
+ //# sourceMappingURL=constants.js.map
14
+ //# debugId=df5828ae-5daa-5d76-b21c-787c45925e74
@@ -1,3 +1,5 @@
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]="449faae9-b55d-53c8-ae8b-53312bb71a60")}catch(e){}}();
1
3
  import { existsSync } from "node:fs";
2
4
  import { dirname, resolve } from "node:path";
3
5
  import { fileURLToPath } from "node:url";
@@ -23,4 +25,5 @@ export async function locateDeno(dir) {
23
25
  }
24
26
  return locateDeno(dirname(dir));
25
27
  }
26
- //# sourceMappingURL=locator.js.map
28
+ //# sourceMappingURL=locator.js.map
29
+ //# debugId=449faae9-b55d-53c8-ae8b-53312bb71a60
@@ -1,4 +1,7 @@
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){}}();
1
3
  export function groupHandler() {
2
4
  console.log("Run with --help to see available commands");
3
5
  }
4
- //# sourceMappingURL=handler.js.map
6
+ //# sourceMappingURL=handler.js.map
7
+ //# debugId=39c1e719-4e8b-54bd-9703-34fcd1d6be2e
@@ -1,8 +1,17 @@
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){}}();
1
3
  import * as Pino from "pino";
2
4
  export const logger = Pino.pino({
3
5
  level: process.env.LOG_LEVEL || "info",
4
6
  transport: {
5
- target: "@zuplo/pino-pretty-configurations",
7
+ targets: [
8
+ {
9
+ target: "@zuplo/pino-pretty-configurations",
10
+ level: process.env.LOG_LEVEL || "info",
11
+ options: {},
12
+ },
13
+ ],
6
14
  },
7
15
  });
8
- //# sourceMappingURL=logger.js.map
16
+ //# sourceMappingURL=logger.js.map
17
+ //# debugId=c88f63f0-a33d-5d56-81ec-bf91df0cbabd
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { parse } from "jsonc-parser";
2
4
  import { existsSync } from "node:fs";
3
5
  import { readFile } from "node:fs/promises";
@@ -56,4 +58,5 @@ let omitNull = (obj) => {
56
58
  .forEach((k) => delete obj[k]);
57
59
  return obj;
58
60
  };
59
- //# sourceMappingURL=user-configuration.js.map
61
+ //# sourceMappingURL=user-configuration.js.map
62
+ //# debugId=dcaa9c5c-79cc-5d4a-a82d-2be3bef279cf
@@ -1,2 +1,5 @@
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]="7605856d-6d7d-59f3-b852-b5392a8b88d7")}catch(e){}}();
1
3
  export {};
2
- //# sourceMappingURL=models.js.map
4
+ //# sourceMappingURL=models.js.map
5
+ //# debugId=7605856d-6d7d-59f3-b852-b5392a8b88d7
@@ -1,10 +1,16 @@
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){}}();
3
+ import * as Sentry from "@sentry/node";
1
4
  import chalk from "chalk";
5
+ import { MAX_WAIT_PENDING_TIME_MS } from "./constants.js";
2
6
  export function printDiagnosticsToConsole(message) {
3
7
  console.error(chalk.bold.blue(message));
4
8
  }
5
9
  export function printCriticalFailureToConsoleAndExit(message) {
6
10
  console.error(chalk.bold.red(message));
7
- process.exit(1);
11
+ Sentry.close(MAX_WAIT_PENDING_TIME_MS).then(() => {
12
+ process.exit(1);
13
+ });
8
14
  }
9
15
  export function printResultToConsole(message) {
10
16
  console.log(chalk.bold.green(message));
@@ -14,11 +20,15 @@ export function printTableToConsole(table) {
14
20
  }
15
21
  export function printResultToConsoleAndExitGracefully(message) {
16
22
  printResultToConsole(message);
17
- process.exit(0);
23
+ Sentry.close(MAX_WAIT_PENDING_TIME_MS).then(() => {
24
+ process.exit(0);
25
+ });
18
26
  }
19
27
  export function printTableToConsoleAndExitGracefully(table) {
20
28
  printTableToConsole(table);
21
- process.exit(0);
29
+ Sentry.close(MAX_WAIT_PENDING_TIME_MS).then(() => {
30
+ process.exit(0);
31
+ });
22
32
  }
23
33
  export default function setBlocking() {
24
34
  if (typeof process === "undefined")
@@ -32,4 +42,5 @@ export default function setBlocking() {
32
42
  }
33
43
  });
34
44
  }
35
- //# sourceMappingURL=output.js.map
45
+ //# sourceMappingURL=output.js.map
46
+ //# debugId=5371f48b-c120-523a-8c00-26364a117dc3
@@ -1,3 +1,5 @@
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]="f5223fce-959e-5227-a391-8aa1234db75d")}catch(e){}}();
1
3
  class Settings {
2
4
  get ZUPLO_DEVELOPER_API_ENDPOINT() {
3
5
  return process.env.ZUPLO_DEVELOPER_API_ENDPOINT ?? "https://dev.zuplo.com";
@@ -20,4 +22,5 @@ class Settings {
20
22
  }
21
23
  const settings = new Settings();
22
24
  export default settings;
23
- //# sourceMappingURL=settings.js.map
25
+ //# sourceMappingURL=settings.js.map
26
+ //# debugId=f5223fce-959e-5227-a391-8aa1234db75d
@@ -1,3 +1,5 @@
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]="fe662be5-d30b-50ee-a045-c68bbaf75887")}catch(e){}}();
1
3
  export class StandardUpgrader {
2
4
  normalizedDir;
3
5
  constructor(normalizedDir) {
@@ -10,4 +12,5 @@ export class VsCodeFolderMissing extends Error {
10
12
  Object.setPrototypeOf(this, VsCodeFolderMissing.prototype);
11
13
  }
12
14
  }
13
- //# sourceMappingURL=lib.js.map
15
+ //# sourceMappingURL=lib.js.map
16
+ //# debugId=fe662be5-d30b-50ee-a045-c68bbaf75887
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { readFile, writeFile } from "node:fs/promises";
2
4
  import { join } from "node:path";
3
5
  import prettier from "prettier";
@@ -61,4 +63,5 @@ export class PackageJsonUpgrader extends StandardUpgrader {
61
63
  await writeFile(packageJsonFile, formatted);
62
64
  }
63
65
  }
64
- //# sourceMappingURL=package-json-upgrader.js.map
66
+ //# sourceMappingURL=package-json-upgrader.js.map
67
+ //# debugId=6038214e-2225-5805-b5ef-50d65c7aaef4
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { parse } from "jsonc-parser";
2
4
  import { existsSync } from "node:fs";
3
5
  import { readFile, writeFile } from "node:fs/promises";
@@ -90,4 +92,5 @@ export class VsCodeSettingsJsonUpgrader extends StandardUpgrader {
90
92
  }
91
93
  }
92
94
  }
93
- //# sourceMappingURL=vscode-settings-json-upgrader.js.map
95
+ //# sourceMappingURL=vscode-settings-json-upgrader.js.map
96
+ //# debugId=7fa9de75-954a-50d1-ac60-ca52d775e893
@@ -1,3 +1,5 @@
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]="ea9751e2-2193-5d3e-87ee-31d1edaf2797")}catch(e){}}();
1
3
  import fg from "fast-glob";
2
4
  import { existsSync, readdirSync } from "node:fs";
3
5
  import { join } from "node:path";
@@ -160,4 +162,5 @@ export class ZuploProjectHasTestsValidator {
160
162
  export const validDeployDirectoryValidator = new CompositeValidator(new ZuploProjectValidator(), new GitVersionControlValidator(), new GitCommitValidator(), new GitBranchValidator(), new GitRemoteValidator(), new ProjectIsSetValidator());
161
163
  export const validTestDirectoryValidator = new CompositeValidator(new ZuploProjectValidator(), new ZuploProjectHasTestsValidator());
162
164
  export const validLinkDirectoryValidator = new CompositeValidator(new ZuploProjectValidator(), new UserIsLoggedInValidator());
163
- //# sourceMappingURL=file-system-validator.js.map
165
+ //# sourceMappingURL=file-system-validator.js.map
166
+ //# debugId=ea9751e2-2193-5d3e-87ee-31d1edaf2797
@@ -1,3 +1,5 @@
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]="51b930c4-1a49-59cf-858d-ccd74935ce72")}catch(e){}}();
1
3
  export class CompositeValidator {
2
4
  validators = new Array();
3
5
  constructor(...validators) {
@@ -28,4 +30,5 @@ export class YargsChecker {
28
30
  }
29
31
  }
30
32
  }
31
- //# sourceMappingURL=lib.js.map
33
+ //# sourceMappingURL=lib.js.map
34
+ //# debugId=51b930c4-1a49-59cf-858d-ccd74935ce72
@@ -1,3 +1,5 @@
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){}}();
1
3
  import { existsSync } from "node:fs";
2
4
  import { readFile } from "node:fs/promises";
3
5
  import { join } from "node:path";
@@ -33,4 +35,5 @@ export class UserIsLoggedInValidator {
33
35
  return { ok: true };
34
36
  }
35
37
  }
36
- //# sourceMappingURL=login-state-validator.js.map
38
+ //# sourceMappingURL=login-state-validator.js.map
39
+ //# debugId=d1c29cc8-c62f-5fb6-ba52-552cc8829f5b
@@ -1,3 +1,5 @@
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]="9ee5b134-48fd-5a2b-a162-b5e08f2fac22")}catch(e){}}();
1
3
  export class ProjectIsNotSet extends Error {
2
4
  constructor() {
3
5
  super(`Missing project name. This command requires a project to be specified. Either specify it using --project or set it in zuplo.jsonc.
@@ -27,4 +29,5 @@ export class ProjectIsSetValidator {
27
29
  }
28
30
  }
29
31
  }
30
- //# sourceMappingURL=project-name-validator.js.map
32
+ //# sourceMappingURL=project-name-validator.js.map
33
+ //# debugId=9ee5b134-48fd-5a2b-a162-b5e08f2fac22