windmill-cli 1.574.1 → 1.574.3
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/esm/gen/core/OpenAPI.js +1 -1
- package/esm/src/main.js +1 -1
- package/esm/wasm/php/windmill_parser_wasm.js +18 -9
- package/esm/wasm/php/windmill_parser_wasm_bg.wasm +0 -0
- package/esm/wasm/regex/windmill_parser_wasm.js +37 -37
- package/esm/wasm/regex/windmill_parser_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/types/src/main.d.ts +1 -1
- package/types/wasm/php/windmill_parser_wasm.d.ts +2 -1
- package/types/wasm/php/windmill_parser_wasm.d.ts.map +1 -1
- package/types/wasm/regex/windmill_parser_wasm.d.ts +14 -14
- package/types/wasm/regex/windmill_parser_wasm.d.ts.map +1 -1
package/esm/gen/core/OpenAPI.js
CHANGED
package/esm/src/main.js
CHANGED
|
@@ -38,7 +38,7 @@ export { flow, app, script, workspace, resource, resourceType, user, variable, h
|
|
|
38
38
|
// console.error(JSON.stringify(event.error, null, 4));
|
|
39
39
|
// }
|
|
40
40
|
// });
|
|
41
|
-
export const VERSION = "1.574.
|
|
41
|
+
export const VERSION = "1.574.3";
|
|
42
42
|
export const WM_FORK_PREFIX = "wm-fork";
|
|
43
43
|
const command = new Command()
|
|
44
44
|
.name("wmill")
|
|
@@ -42,32 +42,41 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
42
42
|
WASM_VECTOR_LEN = offset;
|
|
43
43
|
return ptr;
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
function isLikeNone(x) {
|
|
46
|
+
return x === undefined || x === null;
|
|
47
|
+
}
|
|
48
|
+
let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available'); } });
|
|
46
49
|
if (typeof TextDecoder !== 'undefined') {
|
|
47
50
|
cachedTextDecoder.decode();
|
|
48
51
|
}
|
|
49
52
|
;
|
|
53
|
+
function decodeText(ptr, len) {
|
|
54
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
55
|
+
}
|
|
50
56
|
function getStringFromWasm0(ptr, len) {
|
|
51
57
|
ptr = ptr >>> 0;
|
|
52
|
-
return
|
|
58
|
+
return decodeText(ptr, len);
|
|
53
59
|
}
|
|
54
60
|
/**
|
|
55
61
|
* @param {string} code
|
|
62
|
+
* @param {string | null} [main_override]
|
|
56
63
|
* @returns {string}
|
|
57
64
|
*/
|
|
58
|
-
export function parse_php(code) {
|
|
59
|
-
let
|
|
60
|
-
let
|
|
65
|
+
export function parse_php(code, main_override) {
|
|
66
|
+
let deferred3_0;
|
|
67
|
+
let deferred3_1;
|
|
61
68
|
try {
|
|
62
69
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
63
70
|
const len0 = WASM_VECTOR_LEN;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
71
|
+
var ptr1 = isLikeNone(main_override) ? 0 : passStringToWasm0(main_override, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
72
|
+
var len1 = WASM_VECTOR_LEN;
|
|
73
|
+
const ret = wasm.parse_php(ptr0, len0, ptr1, len1);
|
|
74
|
+
deferred3_0 = ret[0];
|
|
75
|
+
deferred3_1 = ret[1];
|
|
67
76
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
68
77
|
}
|
|
69
78
|
finally {
|
|
70
|
-
wasm.__wbindgen_free(
|
|
79
|
+
wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
|
|
71
80
|
}
|
|
72
81
|
}
|
|
73
82
|
const imports = {
|
|
Binary file
|
|
@@ -58,13 +58,13 @@ function getStringFromWasm0(ptr, len) {
|
|
|
58
58
|
* @param {string} code
|
|
59
59
|
* @returns {string}
|
|
60
60
|
*/
|
|
61
|
-
export function
|
|
61
|
+
export function parse_assets_sql(code) {
|
|
62
62
|
let deferred2_0;
|
|
63
63
|
let deferred2_1;
|
|
64
64
|
try {
|
|
65
65
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
66
66
|
const len0 = WASM_VECTOR_LEN;
|
|
67
|
-
const ret = wasm.
|
|
67
|
+
const ret = wasm.parse_assets_sql(ptr0, len0);
|
|
68
68
|
deferred2_0 = ret[0];
|
|
69
69
|
deferred2_1 = ret[1];
|
|
70
70
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -73,17 +73,32 @@ export function parse_bash(code) {
|
|
|
73
73
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
+
/**
|
|
77
|
+
* @param {string} code
|
|
78
|
+
* @returns {string | undefined}
|
|
79
|
+
*/
|
|
80
|
+
export function parse_db_resource(code) {
|
|
81
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
82
|
+
const len0 = WASM_VECTOR_LEN;
|
|
83
|
+
const ret = wasm.parse_db_resource(ptr0, len0);
|
|
84
|
+
let v2;
|
|
85
|
+
if (ret[0] !== 0) {
|
|
86
|
+
v2 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
87
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
88
|
+
}
|
|
89
|
+
return v2;
|
|
90
|
+
}
|
|
76
91
|
/**
|
|
77
92
|
* @param {string} code
|
|
78
93
|
* @returns {string}
|
|
79
94
|
*/
|
|
80
|
-
export function
|
|
95
|
+
export function parse_bash(code) {
|
|
81
96
|
let deferred2_0;
|
|
82
97
|
let deferred2_1;
|
|
83
98
|
try {
|
|
84
99
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
85
100
|
const len0 = WASM_VECTOR_LEN;
|
|
86
|
-
const ret = wasm.
|
|
101
|
+
const ret = wasm.parse_bash(ptr0, len0);
|
|
87
102
|
deferred2_0 = ret[0];
|
|
88
103
|
deferred2_1 = ret[1];
|
|
89
104
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -96,13 +111,13 @@ export function parse_snowflake(code) {
|
|
|
96
111
|
* @param {string} code
|
|
97
112
|
* @returns {string}
|
|
98
113
|
*/
|
|
99
|
-
export function
|
|
114
|
+
export function parse_mssql(code) {
|
|
100
115
|
let deferred2_0;
|
|
101
116
|
let deferred2_1;
|
|
102
117
|
try {
|
|
103
118
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
104
119
|
const len0 = WASM_VECTOR_LEN;
|
|
105
|
-
const ret = wasm.
|
|
120
|
+
const ret = wasm.parse_mssql(ptr0, len0);
|
|
106
121
|
deferred2_0 = ret[0];
|
|
107
122
|
deferred2_1 = ret[1];
|
|
108
123
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -115,13 +130,13 @@ export function parse_assets_sql(code) {
|
|
|
115
130
|
* @param {string} code
|
|
116
131
|
* @returns {string}
|
|
117
132
|
*/
|
|
118
|
-
export function
|
|
133
|
+
export function parse_oracledb(code) {
|
|
119
134
|
let deferred2_0;
|
|
120
135
|
let deferred2_1;
|
|
121
136
|
try {
|
|
122
137
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
123
138
|
const len0 = WASM_VECTOR_LEN;
|
|
124
|
-
const ret = wasm.
|
|
139
|
+
const ret = wasm.parse_oracledb(ptr0, len0);
|
|
125
140
|
deferred2_0 = ret[0];
|
|
126
141
|
deferred2_1 = ret[1];
|
|
127
142
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -134,13 +149,13 @@ export function parse_duckdb(code) {
|
|
|
134
149
|
* @param {string} code
|
|
135
150
|
* @returns {string}
|
|
136
151
|
*/
|
|
137
|
-
export function
|
|
152
|
+
export function parse_powershell(code) {
|
|
138
153
|
let deferred2_0;
|
|
139
154
|
let deferred2_1;
|
|
140
155
|
try {
|
|
141
156
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
142
157
|
const len0 = WASM_VECTOR_LEN;
|
|
143
|
-
const ret = wasm.
|
|
158
|
+
const ret = wasm.parse_powershell(ptr0, len0);
|
|
144
159
|
deferred2_0 = ret[0];
|
|
145
160
|
deferred2_1 = ret[1];
|
|
146
161
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -149,32 +164,17 @@ export function parse_graphql(code) {
|
|
|
149
164
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
150
165
|
}
|
|
151
166
|
}
|
|
152
|
-
/**
|
|
153
|
-
* @param {string} code
|
|
154
|
-
* @returns {string | undefined}
|
|
155
|
-
*/
|
|
156
|
-
export function parse_db_resource(code) {
|
|
157
|
-
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
158
|
-
const len0 = WASM_VECTOR_LEN;
|
|
159
|
-
const ret = wasm.parse_db_resource(ptr0, len0);
|
|
160
|
-
let v2;
|
|
161
|
-
if (ret[0] !== 0) {
|
|
162
|
-
v2 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
163
|
-
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
164
|
-
}
|
|
165
|
-
return v2;
|
|
166
|
-
}
|
|
167
167
|
/**
|
|
168
168
|
* @param {string} code
|
|
169
169
|
* @returns {string}
|
|
170
170
|
*/
|
|
171
|
-
export function
|
|
171
|
+
export function parse_bigquery(code) {
|
|
172
172
|
let deferred2_0;
|
|
173
173
|
let deferred2_1;
|
|
174
174
|
try {
|
|
175
175
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
176
176
|
const len0 = WASM_VECTOR_LEN;
|
|
177
|
-
const ret = wasm.
|
|
177
|
+
const ret = wasm.parse_bigquery(ptr0, len0);
|
|
178
178
|
deferred2_0 = ret[0];
|
|
179
179
|
deferred2_1 = ret[1];
|
|
180
180
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -187,13 +187,13 @@ export function parse_mysql(code) {
|
|
|
187
187
|
* @param {string} code
|
|
188
188
|
* @returns {string}
|
|
189
189
|
*/
|
|
190
|
-
export function
|
|
190
|
+
export function parse_graphql(code) {
|
|
191
191
|
let deferred2_0;
|
|
192
192
|
let deferred2_1;
|
|
193
193
|
try {
|
|
194
194
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
195
195
|
const len0 = WASM_VECTOR_LEN;
|
|
196
|
-
const ret = wasm.
|
|
196
|
+
const ret = wasm.parse_graphql(ptr0, len0);
|
|
197
197
|
deferred2_0 = ret[0];
|
|
198
198
|
deferred2_1 = ret[1];
|
|
199
199
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -206,13 +206,13 @@ export function parse_sql(code) {
|
|
|
206
206
|
* @param {string} code
|
|
207
207
|
* @returns {string}
|
|
208
208
|
*/
|
|
209
|
-
export function
|
|
209
|
+
export function parse_snowflake(code) {
|
|
210
210
|
let deferred2_0;
|
|
211
211
|
let deferred2_1;
|
|
212
212
|
try {
|
|
213
213
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
214
214
|
const len0 = WASM_VECTOR_LEN;
|
|
215
|
-
const ret = wasm.
|
|
215
|
+
const ret = wasm.parse_snowflake(ptr0, len0);
|
|
216
216
|
deferred2_0 = ret[0];
|
|
217
217
|
deferred2_1 = ret[1];
|
|
218
218
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -225,13 +225,13 @@ export function parse_oracledb(code) {
|
|
|
225
225
|
* @param {string} code
|
|
226
226
|
* @returns {string}
|
|
227
227
|
*/
|
|
228
|
-
export function
|
|
228
|
+
export function parse_duckdb(code) {
|
|
229
229
|
let deferred2_0;
|
|
230
230
|
let deferred2_1;
|
|
231
231
|
try {
|
|
232
232
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
233
233
|
const len0 = WASM_VECTOR_LEN;
|
|
234
|
-
const ret = wasm.
|
|
234
|
+
const ret = wasm.parse_duckdb(ptr0, len0);
|
|
235
235
|
deferred2_0 = ret[0];
|
|
236
236
|
deferred2_1 = ret[1];
|
|
237
237
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -244,13 +244,13 @@ export function parse_bigquery(code) {
|
|
|
244
244
|
* @param {string} code
|
|
245
245
|
* @returns {string}
|
|
246
246
|
*/
|
|
247
|
-
export function
|
|
247
|
+
export function parse_sql(code) {
|
|
248
248
|
let deferred2_0;
|
|
249
249
|
let deferred2_1;
|
|
250
250
|
try {
|
|
251
251
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
252
252
|
const len0 = WASM_VECTOR_LEN;
|
|
253
|
-
const ret = wasm.
|
|
253
|
+
const ret = wasm.parse_sql(ptr0, len0);
|
|
254
254
|
deferred2_0 = ret[0];
|
|
255
255
|
deferred2_1 = ret[1];
|
|
256
256
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
@@ -263,13 +263,13 @@ export function parse_mssql(code) {
|
|
|
263
263
|
* @param {string} code
|
|
264
264
|
* @returns {string}
|
|
265
265
|
*/
|
|
266
|
-
export function
|
|
266
|
+
export function parse_mysql(code) {
|
|
267
267
|
let deferred2_0;
|
|
268
268
|
let deferred2_1;
|
|
269
269
|
try {
|
|
270
270
|
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
271
271
|
const len0 = WASM_VECTOR_LEN;
|
|
272
|
-
const ret = wasm.
|
|
272
|
+
const ret = wasm.parse_mysql(ptr0, len0);
|
|
273
273
|
deferred2_0 = ret[0];
|
|
274
274
|
deferred2_1 = ret[1];
|
|
275
275
|
return getStringFromWasm0(ret[0], ret[1]);
|
|
Binary file
|
package/package.json
CHANGED
package/types/src/main.d.ts
CHANGED
|
@@ -22,7 +22,7 @@ import { pull as hubPull } from "./commands/hub/hub.js";
|
|
|
22
22
|
import { pull, push } from "./commands/sync/sync.js";
|
|
23
23
|
import { add as workspaceAdd } from "./commands/workspace/workspace.js";
|
|
24
24
|
export { flow, app, script, workspace, resource, resourceType, user, variable, hub, folder, schedule, trigger, sync, gitsyncSettings, instance, dev, hubPull, pull, push, workspaceAdd, };
|
|
25
|
-
export declare const VERSION = "1.574.
|
|
25
|
+
export declare const VERSION = "1.574.3";
|
|
26
26
|
export declare const WM_FORK_PREFIX = "wm-fork";
|
|
27
27
|
declare const command: Command<{
|
|
28
28
|
workspace?: (import("../deps/jsr.io/@windmill-labs/cliffy-command/1.0.0-rc.5/mod.js").StringType & string) | undefined;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @param {string} code
|
|
3
|
+
* @param {string | null} [main_override]
|
|
3
4
|
* @returns {string}
|
|
4
5
|
*/
|
|
5
|
-
export function parse_php(code: string): string;
|
|
6
|
+
export function parse_php(code: string, main_override?: string | null | undefined): string;
|
|
6
7
|
export const __wasm: any;
|
|
7
8
|
//# sourceMappingURL=windmill_parser_wasm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windmill_parser_wasm.d.ts","sourceRoot":"","sources":["../../../src/wasm/php/windmill_parser_wasm.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"windmill_parser_wasm.d.ts","sourceRoot":"","sources":["../../../src/wasm/php/windmill_parser_wasm.js"],"names":[],"mappings":"AA2EA;;;;GAIG;AACH,gCAJW,MAAM,8CAEJ,MAAM,CAiBlB;AAkCD,yBAA2B"}
|
|
@@ -2,61 +2,61 @@
|
|
|
2
2
|
* @param {string} code
|
|
3
3
|
* @returns {string}
|
|
4
4
|
*/
|
|
5
|
-
export function
|
|
5
|
+
export function parse_assets_sql(code: string): string;
|
|
6
6
|
/**
|
|
7
7
|
* @param {string} code
|
|
8
|
-
* @returns {string}
|
|
8
|
+
* @returns {string | undefined}
|
|
9
9
|
*/
|
|
10
|
-
export function
|
|
10
|
+
export function parse_db_resource(code: string): string | undefined;
|
|
11
11
|
/**
|
|
12
12
|
* @param {string} code
|
|
13
13
|
* @returns {string}
|
|
14
14
|
*/
|
|
15
|
-
export function
|
|
15
|
+
export function parse_bash(code: string): string;
|
|
16
16
|
/**
|
|
17
17
|
* @param {string} code
|
|
18
18
|
* @returns {string}
|
|
19
19
|
*/
|
|
20
|
-
export function
|
|
20
|
+
export function parse_mssql(code: string): string;
|
|
21
21
|
/**
|
|
22
22
|
* @param {string} code
|
|
23
23
|
* @returns {string}
|
|
24
24
|
*/
|
|
25
|
-
export function
|
|
25
|
+
export function parse_oracledb(code: string): string;
|
|
26
26
|
/**
|
|
27
27
|
* @param {string} code
|
|
28
|
-
* @returns {string
|
|
28
|
+
* @returns {string}
|
|
29
29
|
*/
|
|
30
|
-
export function
|
|
30
|
+
export function parse_powershell(code: string): string;
|
|
31
31
|
/**
|
|
32
32
|
* @param {string} code
|
|
33
33
|
* @returns {string}
|
|
34
34
|
*/
|
|
35
|
-
export function
|
|
35
|
+
export function parse_bigquery(code: string): string;
|
|
36
36
|
/**
|
|
37
37
|
* @param {string} code
|
|
38
38
|
* @returns {string}
|
|
39
39
|
*/
|
|
40
|
-
export function
|
|
40
|
+
export function parse_graphql(code: string): string;
|
|
41
41
|
/**
|
|
42
42
|
* @param {string} code
|
|
43
43
|
* @returns {string}
|
|
44
44
|
*/
|
|
45
|
-
export function
|
|
45
|
+
export function parse_snowflake(code: string): string;
|
|
46
46
|
/**
|
|
47
47
|
* @param {string} code
|
|
48
48
|
* @returns {string}
|
|
49
49
|
*/
|
|
50
|
-
export function
|
|
50
|
+
export function parse_duckdb(code: string): string;
|
|
51
51
|
/**
|
|
52
52
|
* @param {string} code
|
|
53
53
|
* @returns {string}
|
|
54
54
|
*/
|
|
55
|
-
export function
|
|
55
|
+
export function parse_sql(code: string): string;
|
|
56
56
|
/**
|
|
57
57
|
* @param {string} code
|
|
58
58
|
* @returns {string}
|
|
59
59
|
*/
|
|
60
|
-
export function
|
|
60
|
+
export function parse_mysql(code: string): string;
|
|
61
61
|
export const __wasm: any;
|
|
62
62
|
//# sourceMappingURL=windmill_parser_wasm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windmill_parser_wasm.d.ts","sourceRoot":"","sources":["../../../src/wasm/regex/windmill_parser_wasm.js"],"names":[],"mappings":"AAuEA;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"windmill_parser_wasm.d.ts","sourceRoot":"","sources":["../../../src/wasm/regex/windmill_parser_wasm.js"],"names":[],"mappings":"AAuEA;;;GAGG;AACH,uCAHW,MAAM,GACJ,MAAM,CAelB;AAED;;;GAGG;AACH,wCAHW,MAAM,GACJ,MAAM,GAAG,SAAS,CAY9B;AAED;;;GAGG;AACH,iCAHW,MAAM,GACJ,MAAM,CAelB;AAED;;;GAGG;AACH,kCAHW,MAAM,GACJ,MAAM,CAelB;AAED;;;GAGG;AACH,qCAHW,MAAM,GACJ,MAAM,CAelB;AAED;;;GAGG;AACH,uCAHW,MAAM,GACJ,MAAM,CAelB;AAED;;;GAGG;AACH,qCAHW,MAAM,GACJ,MAAM,CAelB;AAED;;;GAGG;AACH,oCAHW,MAAM,GACJ,MAAM,CAelB;AAED;;;GAGG;AACH,sCAHW,MAAM,GACJ,MAAM,CAelB;AAED;;;GAGG;AACH,mCAHW,MAAM,GACJ,MAAM,CAelB;AAED;;;GAGG;AACH,gCAHW,MAAM,GACJ,MAAM,CAelB;AAED;;;GAGG;AACH,kCAHW,MAAM,GACJ,MAAM,CAelB;AAkCD,yBAA2B"}
|