@zuplo/cli 1.67.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.
- package/.eslintrc.cjs +48 -0
- package/dist/cli.js +2 -2
- package/dist/cmds/project/index.js +2 -2
- package/dist/cmds/tunnel/create.js +3 -3
- package/dist/cmds/tunnel/delete.js +3 -3
- package/dist/cmds/tunnel/describe.js +3 -3
- package/dist/cmds/tunnel/index.js +2 -2
- package/dist/cmds/tunnel/rotate-token.js +3 -3
- package/dist/cmds/tunnel/services/describe.js +3 -3
- package/dist/cmds/tunnel/services/index.js +2 -2
- package/dist/cmds/tunnel/services/update.js +3 -3
- package/dist/cmds/variable/create.js +3 -3
- package/dist/cmds/variable/index.js +2 -2
- package/dist/cmds/variable/update.js +3 -3
- package/dist/common/handler.js +2 -2
- package/dist/common/logger.js +2 -2
- package/dist/common/middleware/user-configuration.js +3 -3
- package/dist/common/output.js +5 -5
- package/dist/common/upgraders/package-json-upgrader.js +3 -3
- package/dist/common/upgraders/vscode-settings-json-upgrader.js +2 -2
- package/dist/common/validators/login-state-validator.js +3 -3
- package/dist/common/xdg/lib.js +2 -2
- package/dist/convert/engine.js +2 -2
- package/dist/delete/handler.js +3 -3
- package/dist/deploy/handler.js +3 -3
- package/dist/deploy/poll-deployment.js +4 -3
- package/dist/dev/handler.js +2 -2
- package/dist/editor/server/server.js +4 -8
- package/dist/link/handler.js +2 -2
- package/dist/login/handler.js +4 -4
- package/dist/login/server.js +4 -4
- package/dist/tunnel/models.js +2 -2
- package/dist/variable/create/handler.js +2 -3
- package/dist/variable/update/handler.js +2 -3
- 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]="
|
|
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";
|
|
@@ -62,4 +62,4 @@ else {
|
|
|
62
62
|
Consider using a Node.js version manager such as https://github.com/nvm-sh/nvm.`);
|
|
63
63
|
}
|
|
64
64
|
//# sourceMappingURL=cli.js.map
|
|
65
|
-
//# debugId=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
40
|
+
//# debugId=c2225edb-acb6-569a-b12b-54aa0f3f442c
|
package/dist/common/handler.js
CHANGED
|
@@ -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]="
|
|
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=
|
|
7
|
+
//# debugId=b412de2e-c645-5431-a71d-45710b18690b
|
package/dist/common/logger.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]="
|
|
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=
|
|
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]="
|
|
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
|
-
|
|
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=
|
|
62
|
+
//# debugId=e43d8351-da19-5b97-bb8f-7753acd40138
|
package/dist/common/output.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]="
|
|
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=
|
|
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]="
|
|
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
|
-
|
|
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=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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(
|
|
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=
|
|
39
|
+
//# debugId=1ef82943-79ab-58c3-85ba-7a052b51014b
|
package/dist/common/xdg/lib.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]="
|
|
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=
|
|
21
|
+
//# debugId=07c0e893-1d9c-5043-8872-af7d12092a4e
|
package/dist/convert/engine.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]="
|
|
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=
|
|
76
|
+
//# debugId=23fb1ec0-0928-5d06-9636-644e8145f6a9
|
package/dist/delete/handler.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]="
|
|
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(
|
|
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=
|
|
64
|
+
//# debugId=7ae3068d-6542-5bf3-8958-ead0b73483aa
|
package/dist/deploy/handler.js
CHANGED
|
@@ -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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
66
|
+
//# debugId=c9c54ddd-51be-5f59-85c4-8d438ee05f78
|
package/dist/dev/handler.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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
134
|
+
//# debugId=8451c49d-bb15-57d5-93e4-22bef812d72b
|
package/dist/link/handler.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]="
|
|
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=
|
|
83
|
+
//# debugId=63524d19-c032-5440-9afe-279fb317a27c
|
package/dist/login/handler.js
CHANGED
|
@@ -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]="
|
|
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
|
-
|
|
73
|
+
printResultToConsole(result.access_token);
|
|
74
74
|
}
|
|
75
75
|
printResultToConsoleAndExitGracefully("Successfully authenticated.");
|
|
76
76
|
}
|
|
77
77
|
//# sourceMappingURL=handler.js.map
|
|
78
|
-
//# debugId=
|
|
78
|
+
//# debugId=678d01cf-2b77-5d58-8b82-98a0fd47a94e
|
package/dist/login/server.js
CHANGED
|
@@ -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]="
|
|
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=
|
|
38
|
+
//# debugId=0e67bc58-b817-5fe0-8e05-53b8a9375c97
|
package/dist/tunnel/models.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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
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]="
|
|
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=
|
|
31
|
+
//# debugId=43d578e3-bb26-5129-a6f9-f07fc8cbc895
|