@zuplo/cli 1.102.0 → 1.104.0-temporary-fix-without-deno

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 (90) hide show
  1. package/dist/cli.js +1 -6
  2. package/dist/cmds/convert.js +1 -4
  3. package/dist/cmds/delete.js +1 -4
  4. package/dist/cmds/deploy.js +1 -4
  5. package/dist/cmds/dev.js +1 -4
  6. package/dist/cmds/editor.js +1 -4
  7. package/dist/cmds/link.js +1 -4
  8. package/dist/cmds/list.js +1 -4
  9. package/dist/cmds/login.js +1 -4
  10. package/dist/cmds/project/import-openapi.js +1 -4
  11. package/dist/cmds/project/index.js +1 -4
  12. package/dist/cmds/project/update.js +1 -4
  13. package/dist/cmds/test.js +1 -4
  14. package/dist/cmds/tunnel/create.js +1 -4
  15. package/dist/cmds/tunnel/delete.js +1 -4
  16. package/dist/cmds/tunnel/describe.js +1 -4
  17. package/dist/cmds/tunnel/index.js +1 -4
  18. package/dist/cmds/tunnel/list.js +1 -4
  19. package/dist/cmds/tunnel/rotate-token.js +1 -4
  20. package/dist/cmds/tunnel/services/describe.js +1 -4
  21. package/dist/cmds/tunnel/services/index.js +1 -4
  22. package/dist/cmds/tunnel/services/update.js +1 -4
  23. package/dist/cmds/variable/create.js +1 -4
  24. package/dist/cmds/variable/index.js +1 -4
  25. package/dist/cmds/variable/update.js +1 -4
  26. package/dist/common/alias.js +1 -4
  27. package/dist/common/analytics/lib.js +1 -4
  28. package/dist/common/api/lib.js +1 -4
  29. package/dist/common/constants.js +1 -4
  30. package/dist/common/deno-utils/locator.js +1 -4
  31. package/dist/common/handler.js +1 -4
  32. package/dist/common/logger.js +1 -4
  33. package/dist/common/machine-id/lib.js +1 -4
  34. package/dist/common/middleware/user-configuration.js +1 -4
  35. package/dist/common/middleware/user-identification.js +1 -4
  36. package/dist/common/models.js +1 -4
  37. package/dist/common/output.js +1 -4
  38. package/dist/common/settings.js +1 -4
  39. package/dist/common/upgraders/lib.js +1 -4
  40. package/dist/common/upgraders/package-json-upgrader.js +1 -4
  41. package/dist/common/upgraders/vscode-settings-json-upgrader.js +1 -4
  42. package/dist/common/validators/file-system-validator.js +1 -4
  43. package/dist/common/validators/lib.js +1 -4
  44. package/dist/common/validators/login-state-validator.js +1 -4
  45. package/dist/common/validators/project-name-validator.js +1 -4
  46. package/dist/common/xdg/lib.js +1 -4
  47. package/dist/convert/engine.js +1 -4
  48. package/dist/convert/handler.js +1 -4
  49. package/dist/convert/routes.generated.js +1 -4
  50. package/dist/delete/handler.js +1 -4
  51. package/dist/delete/poll-deployment.js +1 -4
  52. package/dist/deploy/archive.js +2 -5
  53. package/dist/deploy/file-upload.js +1 -4
  54. package/dist/deploy/handler.js +1 -4
  55. package/dist/deploy/poll-deployment.js +1 -4
  56. package/dist/dev/handler.js +1 -4
  57. package/dist/editor/assets/index-03352ce7.js +0 -4
  58. package/dist/editor/handler.js +1 -4
  59. package/dist/editor/server/cors-plugin.js +1 -4
  60. package/dist/editor/server/server.js +1 -4
  61. package/dist/editor/server/xfs.js +1 -4
  62. package/dist/link/handler.js +1 -4
  63. package/dist/link/populate.js +1 -4
  64. package/dist/list/handler.js +1 -4
  65. package/dist/login/handler.js +1 -4
  66. package/dist/login/server.js +1 -4
  67. package/dist/project/import-openapi/handler.js +1 -4
  68. package/dist/project/import-openapi/interfaces.js +1 -4
  69. package/dist/project/import-openapi/utils.js +1 -4
  70. package/dist/project/update/handler.js +1 -4
  71. package/dist/test/esbuild-config.js +1 -4
  72. package/dist/test/esbuild-plugins/deno-test-prep-plugin.js +1 -4
  73. package/dist/test/handler.js +1 -4
  74. package/dist/test/invoke-test.js +1 -4
  75. package/dist/tunnel/create/handler.js +1 -4
  76. package/dist/tunnel/delete/handler.js +1 -4
  77. package/dist/tunnel/delete/poll-teardown-operation.js +1 -4
  78. package/dist/tunnel/describe/handler.js +1 -4
  79. package/dist/tunnel/list/handler.js +1 -4
  80. package/dist/tunnel/models.js +1 -4
  81. package/dist/tunnel/rotate-token/handler.js +1 -4
  82. package/dist/tunnel/services/describe/handler.js +1 -4
  83. package/dist/tunnel/services/update/handler.js +1 -4
  84. package/dist/tunnel/services/update/poll-provisioning-operations.js +1 -4
  85. package/dist/variable/create/handler.js +1 -4
  86. package/dist/variable/models.js +1 -4
  87. package/dist/variable/update/handler.js +1 -4
  88. package/package.json +5 -4
  89. package/polyfills/async_hooks.js +8 -0
  90. package/polyfills/diagnostics_channel.js +155 -0
@@ -1,5 +1,3 @@
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]="54671849-0d7c-5c9c-874e-fc123d31756c")}catch(e){}}();
3
1
  import { logger } from "../../../common/logger.js";
4
2
  import { printDiagnosticsToConsole, textOrJson, } from "../../../common/output.js";
5
3
  import settings from "../../../common/settings.js";
@@ -40,5 +38,4 @@ export async function pollProvisioningOperation(args) {
40
38
  }
41
39
  throw new Error("Unexpected error while polling for provisioning operation status");
42
40
  }
43
- //# sourceMappingURL=poll-provisioning-operations.js.map
44
- //# debugId=54671849-0d7c-5c9c-874e-fc123d31756c
41
+ //# sourceMappingURL=poll-provisioning-operations.js.map
@@ -1,5 +1,3 @@
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]="98224ccb-ce96-5060-b338-fa84913d0689")}catch(e){}}();
3
1
  import { logger } from "../../common/logger.js";
4
2
  import { printDiagnosticsToConsole, printResultToConsole, textOrJson, } from "../../common/output.js";
5
3
  import settings from "../../common/settings.js";
@@ -30,5 +28,4 @@ export async function create(argv) {
30
28
  printDiagnosticsToConsole("Error: Failed to create variable. Check the arguments.");
31
29
  }
32
30
  }
33
- //# sourceMappingURL=handler.js.map
34
- //# debugId=98224ccb-ce96-5060-b338-fa84913d0689
31
+ //# sourceMappingURL=handler.js.map
@@ -1,5 +1,2 @@
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]="7dcd8ba4-ede4-5c12-8ac5-c36fff4cb5ec")}catch(e){}}();
3
1
  export {};
4
- //# sourceMappingURL=models.js.map
5
- //# debugId=7dcd8ba4-ede4-5c12-8ac5-c36fff4cb5ec
2
+ //# sourceMappingURL=models.js.map
@@ -1,5 +1,3 @@
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]="5f8e63c2-c667-52bb-95b6-4d0e27522ca4")}catch(e){}}();
3
1
  import { logger } from "../../common/logger.js";
4
2
  import { printDiagnosticsToConsole, printResultToConsole, textOrJson, } from "../../common/output.js";
5
3
  import settings from "../../common/settings.js";
@@ -28,5 +26,4 @@ export async function update(argv) {
28
26
  printDiagnosticsToConsole("Error: Failed to update variable. Check the arguments.");
29
27
  }
30
28
  }
31
- //# sourceMappingURL=handler.js.map
32
- //# debugId=5f8e63c2-c667-52bb-95b6-4d0e27522ca4
29
+ //# sourceMappingURL=handler.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zuplo/cli",
3
- "version": "1.102.0",
3
+ "version": "1.104.0-temporary-fix-without-deno",
4
4
  "type": "module",
5
5
  "repository": "https://github.com/zuplo/cli",
6
6
  "description": "The command-line interface for Zuplo",
@@ -58,15 +58,15 @@
58
58
  "dependencies": {
59
59
  "@fastify/cors": "^8.3.0",
60
60
  "@fastify/static": "^6.10.2",
61
+ "@google-cloud/tasks": "5.1.1",
61
62
  "@inquirer/prompts": "^3.0.4",
62
63
  "@sentry/node": "7.69.0",
63
64
  "@swc/core": "1.3.78",
64
- "@zuplo/core": "5.1777.0",
65
+ "@zuplo/core": "5.1949.0",
65
66
  "@zuplo/pino-pretty-configurations": "^1.5.0",
66
- "@zuplo/runtime": "5.1777.0",
67
+ "@zuplo/runtime": "5.1949.0",
67
68
  "chalk": "^5.1.2",
68
69
  "chokidar": "^3.5.3",
69
- "deno-bin": "1.37.1",
70
70
  "dotenv": "^16.3.1",
71
71
  "esbuild": "0.19.5",
72
72
  "execa": "^6.1.0",
@@ -78,6 +78,7 @@
78
78
  "jose": "^4.14.4",
79
79
  "js-yaml": "^4.1.0",
80
80
  "jsonc-parser": "^3.2.0",
81
+ "minimatch": "^9.0.3",
81
82
  "open": "^9.1.0",
82
83
  "pino": "^8.11.0",
83
84
  "pino-pretty": "^9.4.0",
@@ -0,0 +1,8 @@
1
+ export class AsyncLocalStorage {
2
+ getStore() {
3
+ return {};
4
+ }
5
+ run(store, fn) {
6
+ return fn();
7
+ }
8
+ }
@@ -0,0 +1,155 @@
1
+ /* eslint-disable */
2
+ // Source: https://github.com/simon-id/diagnostics_channel-polyfill/tree/master
3
+
4
+ // Port from node core lib/internal/errors.js
5
+ class ERR_INVALID_ARG_TYPE extends TypeError {
6
+ constructor(message, actual) {
7
+ super();
8
+
9
+ if (actual == null) {
10
+ message += `. Received ${actual}`;
11
+ } else if (typeof actual === "function" && actual.name) {
12
+ message += `. Received function ${actual.name}`;
13
+ } else if (typeof actual === "object") {
14
+ if (actual.constructor && actual.constructor.name) {
15
+ message += `. Received an instance of ${actual.constructor.name}`;
16
+ } else {
17
+ const inspected = util.inspect(actual, { depth: -1 });
18
+ message += `. Received ${inspected}`;
19
+ }
20
+ } else {
21
+ let inspected = util.inspect(actual, { colors: false });
22
+ if (inspected.length > 25) {
23
+ inspected = `${inspected.slice(0, 25)}...`;
24
+ }
25
+ message += `. Received type ${typeof actual} (${inspected})`;
26
+ }
27
+
28
+ this.code = this.constructor.name;
29
+
30
+ Object.defineProperties(this, {
31
+ message: {
32
+ value: message,
33
+ enumerable: false,
34
+ writable: true,
35
+ configurable: true,
36
+ },
37
+ toString: {
38
+ value() {
39
+ return `${this.name} [${this.code}]: ${this.message}`;
40
+ },
41
+ enumerable: false,
42
+ writable: true,
43
+ configurable: true,
44
+ },
45
+ });
46
+ }
47
+ }
48
+
49
+ class ActiveChannel {
50
+ subscribe(subscription) {
51
+ if (typeof subscription !== "function") {
52
+ throw new ERR_INVALID_ARG_TYPE(
53
+ 'The "subscription" argument must be of type function',
54
+ subscription
55
+ );
56
+ }
57
+ this._subscribers.push(subscription);
58
+ }
59
+
60
+ unsubscribe(subscription) {
61
+ const index = this._subscribers.indexOf(subscription);
62
+ if (index === -1) return false;
63
+
64
+ this._subscribers.splice(index, 1);
65
+
66
+ // When there are no more active subscribers, restore to fast prototype.
67
+ if (!this._subscribers.length) {
68
+ // eslint-disable-next-line no-use-before-define
69
+ Object.setPrototypeOf(this, Channel.prototype);
70
+ }
71
+
72
+ return true;
73
+ }
74
+
75
+ get hasSubscribers() {
76
+ return true;
77
+ }
78
+
79
+ publish(data) {
80
+ for (let i = 0; i < this._subscribers.length; i++) {
81
+ try {
82
+ const onMessage = this._subscribers[i];
83
+ onMessage(data, this.name);
84
+ } catch (err) {
85
+ process.nextTick(() => {
86
+ throw err;
87
+ });
88
+ }
89
+ }
90
+ }
91
+ }
92
+
93
+ export class Channel {
94
+ constructor(name) {
95
+ this._subscribers = undefined;
96
+ this.name = name;
97
+ }
98
+
99
+ static [Symbol.hasInstance](instance) {
100
+ const prototype = Object.getPrototypeOf(instance);
101
+ return (
102
+ prototype === Channel.prototype || prototype === ActiveChannel.prototype
103
+ );
104
+ }
105
+
106
+ subscribe(subscription) {
107
+ Object.setPrototypeOf(this, ActiveChannel.prototype);
108
+ this._subscribers = [];
109
+ this.subscribe(subscription);
110
+ }
111
+
112
+ unsubscribe() {
113
+ return false;
114
+ }
115
+
116
+ get hasSubscribers() {
117
+ return false;
118
+ }
119
+
120
+ publish() {}
121
+ }
122
+
123
+ const channels = {};
124
+
125
+ export function channel(name) {
126
+ const channel = channels[name];
127
+ if (channel) return channel;
128
+
129
+ if (typeof name !== "string" && typeof name !== "symbol") {
130
+ throw new ERR_INVALID_ARG_TYPE(
131
+ 'The "channel" argument must be one of type string or symbol',
132
+ name
133
+ );
134
+ }
135
+
136
+ return (channels[name] = new Channel(name));
137
+ }
138
+
139
+ export function hasSubscribers(name) {
140
+ const channel = channels[name];
141
+ if (!channel) {
142
+ return false;
143
+ }
144
+
145
+ return channel.hasSubscribers;
146
+ }
147
+
148
+ export function deleteChannel(name) {
149
+ if (channels[name]) {
150
+ channels[name] = null;
151
+ return true;
152
+ }
153
+
154
+ return false;
155
+ }