windmill-cli 1.447.4 → 1.447.6
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/bootstrap/script_bootstrap.js +10 -1
- package/esm/gen/core/OpenAPI.js +1 -1
- package/esm/gen/services.gen.js +44 -2
- package/esm/main.js +1 -1
- package/esm/metadata.js +11 -1
- package/esm/script.js +8 -0
- package/esm/script_common.js +6 -0
- package/esm/sync.js +5 -0
- package/esm/types.js +1 -0
- package/esm/wasm/windmill_parser_wasm.generated.js +164 -116
- package/esm/wasm/windmill_parser_wasm_bg.wasm +0 -0
- package/package.json +1 -1
- package/types/bootstrap/script_bootstrap.d.ts +2 -0
- package/types/bootstrap/script_bootstrap.d.ts.map +1 -1
- package/types/gen/services.gen.d.ts +22 -2
- package/types/gen/services.gen.d.ts.map +1 -1
- package/types/gen/types.gen.d.ts +27 -5
- package/types/gen/types.gen.d.ts.map +1 -1
- package/types/main.d.ts +1 -1
- package/types/metadata.d.ts.map +1 -1
- package/types/script.d.ts.map +1 -1
- package/types/script_common.d.ts +1 -1
- package/types/script_common.d.ts.map +1 -1
- package/types/sync.d.ts.map +1 -1
- package/types/types.d.ts.map +1 -1
- package/types/wasm/windmill_parser_wasm.generated.d.ts +14 -0
- package/types/wasm/windmill_parser_wasm.generated.d.ts.map +1 -1
|
@@ -48,12 +48,21 @@ func main() (interface{}, error) {
|
|
|
48
48
|
`,
|
|
49
49
|
bash: `echo "Hello world"
|
|
50
50
|
`,
|
|
51
|
+
oracledb: `SELECT 'Hello world' AS message`,
|
|
51
52
|
powershell: `Write-Output "Hello world"`,
|
|
52
53
|
php: `<?php
|
|
53
54
|
function main() {
|
|
54
55
|
return "Hello world";
|
|
55
56
|
}
|
|
56
57
|
`,
|
|
58
|
+
csharp: `class Script
|
|
59
|
+
{
|
|
60
|
+
public static void Main()
|
|
61
|
+
{
|
|
62
|
+
Console.WriteLine("Hello World");
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
`,
|
|
57
66
|
rust: `fn main() -> Result<(), String> {
|
|
58
67
|
println!("Hello World");
|
|
59
68
|
Ok(())
|
|
@@ -71,5 +80,5 @@ inventory:
|
|
|
71
80
|
- name: Print debug message
|
|
72
81
|
debug:
|
|
73
82
|
msg: "Hello, world!"
|
|
74
|
-
|
|
83
|
+
`,
|
|
75
84
|
};
|
package/esm/gen/core/OpenAPI.js
CHANGED
package/esm/gen/services.gen.js
CHANGED
|
@@ -1197,6 +1197,41 @@ export const setAutomaticBilling = (data) => {
|
|
|
1197
1197
|
mediaType: 'application/json'
|
|
1198
1198
|
});
|
|
1199
1199
|
};
|
|
1200
|
+
/**
|
|
1201
|
+
* get threshold alert info
|
|
1202
|
+
* @param data The data for the request.
|
|
1203
|
+
* @param data.workspace
|
|
1204
|
+
* @returns unknown status
|
|
1205
|
+
* @throws ApiError
|
|
1206
|
+
*/
|
|
1207
|
+
export const getThresholdAlert = (data) => {
|
|
1208
|
+
return __request(OpenAPI, {
|
|
1209
|
+
method: 'GET',
|
|
1210
|
+
url: '/w/{workspace}/workspaces/threshold_alert',
|
|
1211
|
+
path: {
|
|
1212
|
+
workspace: data.workspace
|
|
1213
|
+
}
|
|
1214
|
+
});
|
|
1215
|
+
};
|
|
1216
|
+
/**
|
|
1217
|
+
* set threshold alert info
|
|
1218
|
+
* @param data The data for the request.
|
|
1219
|
+
* @param data.workspace
|
|
1220
|
+
* @param data.requestBody threshold alert info
|
|
1221
|
+
* @returns string status
|
|
1222
|
+
* @throws ApiError
|
|
1223
|
+
*/
|
|
1224
|
+
export const setThresholdAlert = (data) => {
|
|
1225
|
+
return __request(OpenAPI, {
|
|
1226
|
+
method: 'POST',
|
|
1227
|
+
url: '/w/{workspace}/workspaces/threshold_alert',
|
|
1228
|
+
path: {
|
|
1229
|
+
workspace: data.workspace
|
|
1230
|
+
},
|
|
1231
|
+
body: data.requestBody,
|
|
1232
|
+
mediaType: 'application/json'
|
|
1233
|
+
});
|
|
1234
|
+
};
|
|
1200
1235
|
/**
|
|
1201
1236
|
* edit slack command
|
|
1202
1237
|
* @param data The data for the request.
|
|
@@ -2910,13 +2945,20 @@ export const toggleWorkspaceErrorHandlerForScript = (data) => {
|
|
|
2910
2945
|
};
|
|
2911
2946
|
/**
|
|
2912
2947
|
* get all instance custom tags (tags are used to dispatch jobs to different worker groups)
|
|
2948
|
+
* @param data The data for the request.
|
|
2949
|
+
* @param data.workspace
|
|
2950
|
+
* @param data.showWorkspaceRestriction
|
|
2913
2951
|
* @returns string list of custom tags
|
|
2914
2952
|
* @throws ApiError
|
|
2915
2953
|
*/
|
|
2916
|
-
export const getCustomTags = () => {
|
|
2954
|
+
export const getCustomTags = (data = {}) => {
|
|
2917
2955
|
return __request(OpenAPI, {
|
|
2918
2956
|
method: 'GET',
|
|
2919
|
-
url: '/workers/custom_tags'
|
|
2957
|
+
url: '/workers/custom_tags',
|
|
2958
|
+
query: {
|
|
2959
|
+
workspace: data.workspace,
|
|
2960
|
+
show_workspace_restriction: data.showWorkspaceRestriction
|
|
2961
|
+
}
|
|
2920
2962
|
});
|
|
2921
2963
|
};
|
|
2922
2964
|
/**
|
package/esm/main.js
CHANGED
|
@@ -33,7 +33,7 @@ export { flow, app, script, workspace, resource, user, variable, hub, folder, sc
|
|
|
33
33
|
// console.error(JSON.stringify(event.error, null, 4));
|
|
34
34
|
// }
|
|
35
35
|
// });
|
|
36
|
-
export const VERSION = "1.447.
|
|
36
|
+
export const VERSION = "1.447.6";
|
|
37
37
|
const command = new Command()
|
|
38
38
|
.name("wmill")
|
|
39
39
|
.action(() => log.info(`Welcome to Windmill CLI ${VERSION}. Use -h for help.`))
|
package/esm/metadata.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import * as dntShim from "./_dnt.shims.js";
|
|
3
3
|
import { SEP, colors, log, path, yamlParseFile, yamlStringify, } from "./deps.js";
|
|
4
4
|
import { defaultScriptMetadata, } from "./bootstrap/script_bootstrap.js";
|
|
5
|
-
import { instantiate as instantiateWasm, parse_ansible, parse_bash, parse_bigquery, parse_deno, parse_go, parse_graphql, parse_mssql, parse_mysql, parse_php, parse_powershell, parse_python, parse_rust, parse_snowflake, parse_sql, } from "./wasm/windmill_parser_wasm.generated.js";
|
|
5
|
+
import { instantiate as instantiateWasm, parse_ansible, parse_bash, parse_bigquery, parse_deno, parse_go, parse_graphql, parse_mssql, parse_mysql, parse_php, parse_powershell, parse_python, parse_rust, parse_csharp, parse_snowflake, parse_sql, parse_oracledb, } from "./wasm/windmill_parser_wasm.generated.js";
|
|
6
6
|
import { inferContentTypeFromFilePath } from "./script_common.js";
|
|
7
7
|
import { exts } from "./script.js";
|
|
8
8
|
import { FSFSElement, extractInlineScriptsForFlows, findCodebase, newPathAssigner, yamlOptions, } from "./sync.js";
|
|
@@ -296,6 +296,13 @@ export function inferSchema(language, content, currentSchema, path) {
|
|
|
296
296
|
...inferedSchema.args,
|
|
297
297
|
];
|
|
298
298
|
}
|
|
299
|
+
else if (language === "oracledb") {
|
|
300
|
+
inferedSchema = JSON.parse(parse_oracledb(content));
|
|
301
|
+
inferedSchema.args = [
|
|
302
|
+
{ name: "database", typ: { resource: "oracledb" } },
|
|
303
|
+
...inferedSchema.args,
|
|
304
|
+
];
|
|
305
|
+
}
|
|
299
306
|
else if (language === "snowflake") {
|
|
300
307
|
inferedSchema = JSON.parse(parse_snowflake(content));
|
|
301
308
|
inferedSchema.args = [
|
|
@@ -336,6 +343,9 @@ export function inferSchema(language, content, currentSchema, path) {
|
|
|
336
343
|
else if (language === "rust") {
|
|
337
344
|
inferedSchema = JSON.parse(parse_rust(content));
|
|
338
345
|
}
|
|
346
|
+
else if (language === "csharp") {
|
|
347
|
+
inferedSchema = JSON.parse(parse_csharp(content));
|
|
348
|
+
}
|
|
339
349
|
else if (language === "ansible") {
|
|
340
350
|
inferedSchema = JSON.parse(parse_ansible(content));
|
|
341
351
|
}
|
package/esm/script.js
CHANGED
|
@@ -342,6 +342,9 @@ export function filePathExtensionFromContentType(language, defaultTs) {
|
|
|
342
342
|
else if (language === "bigquery") {
|
|
343
343
|
return ".bq.sql";
|
|
344
344
|
}
|
|
345
|
+
else if (language === "oracledb") {
|
|
346
|
+
return ".odb.sql";
|
|
347
|
+
}
|
|
345
348
|
else if (language === "snowflake") {
|
|
346
349
|
return ".sf.sql";
|
|
347
350
|
}
|
|
@@ -369,6 +372,9 @@ export function filePathExtensionFromContentType(language, defaultTs) {
|
|
|
369
372
|
else if (language === "ansible") {
|
|
370
373
|
return ".playbook.yml";
|
|
371
374
|
}
|
|
375
|
+
else if (language === "csharp") {
|
|
376
|
+
return ".cs";
|
|
377
|
+
}
|
|
372
378
|
else {
|
|
373
379
|
throw new Error("Invalid language: " + language);
|
|
374
380
|
}
|
|
@@ -384,6 +390,7 @@ export const exts = [
|
|
|
384
390
|
".pg.sql",
|
|
385
391
|
".my.sql",
|
|
386
392
|
".bq.sql",
|
|
393
|
+
".odb.sql",
|
|
387
394
|
".sf.sql",
|
|
388
395
|
".ms.sql",
|
|
389
396
|
".sql",
|
|
@@ -391,6 +398,7 @@ export const exts = [
|
|
|
391
398
|
".ps1",
|
|
392
399
|
".php",
|
|
393
400
|
".rs",
|
|
401
|
+
".cs",
|
|
394
402
|
".playbook.yml",
|
|
395
403
|
];
|
|
396
404
|
export function removeExtensionToPath(path) {
|
package/esm/script_common.js
CHANGED
|
@@ -23,6 +23,9 @@ export function inferContentTypeFromFilePath(contentPath, defaultTs) {
|
|
|
23
23
|
else if (contentPath.endsWith(".bq.sql")) {
|
|
24
24
|
return "bigquery";
|
|
25
25
|
}
|
|
26
|
+
else if (contentPath.endsWith(".odb.sql")) {
|
|
27
|
+
return "oracledb";
|
|
28
|
+
}
|
|
26
29
|
else if (contentPath.endsWith(".sf.sql")) {
|
|
27
30
|
return "snowflake";
|
|
28
31
|
}
|
|
@@ -47,6 +50,9 @@ export function inferContentTypeFromFilePath(contentPath, defaultTs) {
|
|
|
47
50
|
else if (contentPath.endsWith(".rs")) {
|
|
48
51
|
return "rust";
|
|
49
52
|
}
|
|
53
|
+
else if (contentPath.endsWith(".cs")) {
|
|
54
|
+
return "csharp";
|
|
55
|
+
}
|
|
50
56
|
else if (contentPath.endsWith(".playbook.yml")) {
|
|
51
57
|
return "ansible";
|
|
52
58
|
}
|
package/esm/sync.js
CHANGED
|
@@ -252,6 +252,8 @@ export function newPathAssigner(defaultTs) {
|
|
|
252
252
|
ext = "my.sql";
|
|
253
253
|
else if (language == "bigquery")
|
|
254
254
|
ext = "bq.sql";
|
|
255
|
+
else if (language == "oracledb")
|
|
256
|
+
ext = "odb.sql";
|
|
255
257
|
else if (language == "snowflake")
|
|
256
258
|
ext = "sf.sql";
|
|
257
259
|
else if (language == "mssql")
|
|
@@ -266,6 +268,8 @@ export function newPathAssigner(defaultTs) {
|
|
|
266
268
|
ext = "php";
|
|
267
269
|
else if (language == "rust")
|
|
268
270
|
ext = "rs";
|
|
271
|
+
else if (language == "csharp")
|
|
272
|
+
ext = "cs";
|
|
269
273
|
else if (language == "ansible")
|
|
270
274
|
ext = "playbook.yml";
|
|
271
275
|
else
|
|
@@ -539,6 +543,7 @@ export async function elementsToMap(els, ignore, json, skips) {
|
|
|
539
543
|
"js",
|
|
540
544
|
"lock",
|
|
541
545
|
"rs",
|
|
546
|
+
"cs",
|
|
542
547
|
"yml",
|
|
543
548
|
].includes(path.split(".").pop() ?? "") &&
|
|
544
549
|
!isFileResource(path))
|
package/esm/types.js
CHANGED
|
@@ -15,14 +15,42 @@ import * as dntShim from "../_dnt.shims.js";
|
|
|
15
15
|
// @ts-nocheck: generated
|
|
16
16
|
// deno-lint-ignore-file
|
|
17
17
|
// deno-fmt-ignore-file
|
|
18
|
-
// source-hash:
|
|
18
|
+
// source-hash: f0b1d0be016a3874b6824c3458a87cf04fc171fd
|
|
19
19
|
let wasm;
|
|
20
20
|
const heap = new Array(128).fill(undefined);
|
|
21
21
|
heap.push(undefined, null, true, false);
|
|
22
22
|
function getObject(idx) {
|
|
23
23
|
return heap[idx];
|
|
24
24
|
}
|
|
25
|
-
let
|
|
25
|
+
let heap_next = heap.length;
|
|
26
|
+
function dropObject(idx) {
|
|
27
|
+
if (idx < 132)
|
|
28
|
+
return;
|
|
29
|
+
heap[idx] = heap_next;
|
|
30
|
+
heap_next = idx;
|
|
31
|
+
}
|
|
32
|
+
function takeObject(idx) {
|
|
33
|
+
const ret = getObject(idx);
|
|
34
|
+
dropObject(idx);
|
|
35
|
+
return ret;
|
|
36
|
+
}
|
|
37
|
+
function addHeapObject(obj) {
|
|
38
|
+
if (heap_next === heap.length)
|
|
39
|
+
heap.push(heap.length + 1);
|
|
40
|
+
const idx = heap_next;
|
|
41
|
+
heap_next = heap[idx];
|
|
42
|
+
heap[idx] = obj;
|
|
43
|
+
return idx;
|
|
44
|
+
}
|
|
45
|
+
const cachedTextDecoder = typeof TextDecoder !== "undefined"
|
|
46
|
+
? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true })
|
|
47
|
+
: {
|
|
48
|
+
decode: () => {
|
|
49
|
+
throw Error("TextDecoder not available");
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
if (typeof TextDecoder !== "undefined")
|
|
53
|
+
cachedTextDecoder.decode();
|
|
26
54
|
let cachedUint8Memory0 = null;
|
|
27
55
|
function getUint8Memory0() {
|
|
28
56
|
if (cachedUint8Memory0 === null || cachedUint8Memory0.byteLength === 0) {
|
|
@@ -30,6 +58,28 @@ function getUint8Memory0() {
|
|
|
30
58
|
}
|
|
31
59
|
return cachedUint8Memory0;
|
|
32
60
|
}
|
|
61
|
+
function getStringFromWasm0(ptr, len) {
|
|
62
|
+
ptr = ptr >>> 0;
|
|
63
|
+
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
64
|
+
}
|
|
65
|
+
function isLikeNone(x) {
|
|
66
|
+
return x === undefined || x === null;
|
|
67
|
+
}
|
|
68
|
+
let cachedFloat64Memory0 = null;
|
|
69
|
+
function getFloat64Memory0() {
|
|
70
|
+
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
71
|
+
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
72
|
+
}
|
|
73
|
+
return cachedFloat64Memory0;
|
|
74
|
+
}
|
|
75
|
+
let cachedInt32Memory0 = null;
|
|
76
|
+
function getInt32Memory0() {
|
|
77
|
+
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
78
|
+
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
79
|
+
}
|
|
80
|
+
return cachedInt32Memory0;
|
|
81
|
+
}
|
|
82
|
+
let WASM_VECTOR_LEN = 0;
|
|
33
83
|
const cachedTextEncoder = typeof TextEncoder !== "undefined"
|
|
34
84
|
? new TextEncoder("utf-8")
|
|
35
85
|
: {
|
|
@@ -71,56 +121,6 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
71
121
|
WASM_VECTOR_LEN = offset;
|
|
72
122
|
return ptr;
|
|
73
123
|
}
|
|
74
|
-
function isLikeNone(x) {
|
|
75
|
-
return x === undefined || x === null;
|
|
76
|
-
}
|
|
77
|
-
let cachedInt32Memory0 = null;
|
|
78
|
-
function getInt32Memory0() {
|
|
79
|
-
if (cachedInt32Memory0 === null || cachedInt32Memory0.byteLength === 0) {
|
|
80
|
-
cachedInt32Memory0 = new Int32Array(wasm.memory.buffer);
|
|
81
|
-
}
|
|
82
|
-
return cachedInt32Memory0;
|
|
83
|
-
}
|
|
84
|
-
let heap_next = heap.length;
|
|
85
|
-
function dropObject(idx) {
|
|
86
|
-
if (idx < 132)
|
|
87
|
-
return;
|
|
88
|
-
heap[idx] = heap_next;
|
|
89
|
-
heap_next = idx;
|
|
90
|
-
}
|
|
91
|
-
function takeObject(idx) {
|
|
92
|
-
const ret = getObject(idx);
|
|
93
|
-
dropObject(idx);
|
|
94
|
-
return ret;
|
|
95
|
-
}
|
|
96
|
-
let cachedFloat64Memory0 = null;
|
|
97
|
-
function getFloat64Memory0() {
|
|
98
|
-
if (cachedFloat64Memory0 === null || cachedFloat64Memory0.byteLength === 0) {
|
|
99
|
-
cachedFloat64Memory0 = new Float64Array(wasm.memory.buffer);
|
|
100
|
-
}
|
|
101
|
-
return cachedFloat64Memory0;
|
|
102
|
-
}
|
|
103
|
-
function addHeapObject(obj) {
|
|
104
|
-
if (heap_next === heap.length)
|
|
105
|
-
heap.push(heap.length + 1);
|
|
106
|
-
const idx = heap_next;
|
|
107
|
-
heap_next = heap[idx];
|
|
108
|
-
heap[idx] = obj;
|
|
109
|
-
return idx;
|
|
110
|
-
}
|
|
111
|
-
const cachedTextDecoder = typeof TextDecoder !== "undefined"
|
|
112
|
-
? new TextDecoder("utf-8", { ignoreBOM: true, fatal: true })
|
|
113
|
-
: {
|
|
114
|
-
decode: () => {
|
|
115
|
-
throw Error("TextDecoder not available");
|
|
116
|
-
},
|
|
117
|
-
};
|
|
118
|
-
if (typeof TextDecoder !== "undefined")
|
|
119
|
-
cachedTextDecoder.decode();
|
|
120
|
-
function getStringFromWasm0(ptr, len) {
|
|
121
|
-
ptr = ptr >>> 0;
|
|
122
|
-
return cachedTextDecoder.decode(getUint8Memory0().subarray(ptr, ptr + len));
|
|
123
|
-
}
|
|
124
124
|
let cachedBigInt64Memory0 = null;
|
|
125
125
|
function getBigInt64Memory0() {
|
|
126
126
|
if (cachedBigInt64Memory0 === null || cachedBigInt64Memory0.byteLength === 0) {
|
|
@@ -413,6 +413,29 @@ export function parse_mysql(code) {
|
|
|
413
413
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
|
+
/**
|
|
417
|
+
* @param {string} code
|
|
418
|
+
* @returns {string}
|
|
419
|
+
*/
|
|
420
|
+
export function parse_oracledb(code) {
|
|
421
|
+
let deferred2_0;
|
|
422
|
+
let deferred2_1;
|
|
423
|
+
try {
|
|
424
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
425
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
426
|
+
const len0 = WASM_VECTOR_LEN;
|
|
427
|
+
wasm.parse_oracledb(retptr, ptr0, len0);
|
|
428
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
429
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
430
|
+
deferred2_0 = r0;
|
|
431
|
+
deferred2_1 = r1;
|
|
432
|
+
return getStringFromWasm0(r0, r1);
|
|
433
|
+
}
|
|
434
|
+
finally {
|
|
435
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
436
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
437
|
+
}
|
|
438
|
+
}
|
|
416
439
|
/**
|
|
417
440
|
* @param {string} code
|
|
418
441
|
* @returns {string}
|
|
@@ -597,6 +620,29 @@ export function parse_ansible(code) {
|
|
|
597
620
|
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
598
621
|
}
|
|
599
622
|
}
|
|
623
|
+
/**
|
|
624
|
+
* @param {string} code
|
|
625
|
+
* @returns {string}
|
|
626
|
+
*/
|
|
627
|
+
export function parse_csharp(code) {
|
|
628
|
+
let deferred2_0;
|
|
629
|
+
let deferred2_1;
|
|
630
|
+
try {
|
|
631
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
632
|
+
const ptr0 = passStringToWasm0(code, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
633
|
+
const len0 = WASM_VECTOR_LEN;
|
|
634
|
+
wasm.parse_csharp(retptr, ptr0, len0);
|
|
635
|
+
var r0 = getInt32Memory0()[retptr / 4 + 0];
|
|
636
|
+
var r1 = getInt32Memory0()[retptr / 4 + 1];
|
|
637
|
+
deferred2_0 = r0;
|
|
638
|
+
deferred2_1 = r1;
|
|
639
|
+
return getStringFromWasm0(r0, r1);
|
|
640
|
+
}
|
|
641
|
+
finally {
|
|
642
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
643
|
+
wasm.__wbindgen_free(deferred2_0, deferred2_1, 1);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
600
646
|
function handleError(f, args) {
|
|
601
647
|
try {
|
|
602
648
|
return f.apply(this, args);
|
|
@@ -607,82 +653,29 @@ function handleError(f, args) {
|
|
|
607
653
|
}
|
|
608
654
|
const imports = {
|
|
609
655
|
__wbindgen_placeholder__: {
|
|
610
|
-
|
|
611
|
-
const
|
|
612
|
-
|
|
613
|
-
var ptr1 = isLikeNone(ret)
|
|
614
|
-
? 0
|
|
615
|
-
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
616
|
-
var len1 = WASM_VECTOR_LEN;
|
|
617
|
-
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
618
|
-
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
619
|
-
},
|
|
620
|
-
__wbindgen_object_drop_ref: function (arg0) {
|
|
621
|
-
takeObject(arg0);
|
|
622
|
-
},
|
|
623
|
-
__wbindgen_boolean_get: function (arg0) {
|
|
624
|
-
const v = getObject(arg0);
|
|
625
|
-
const ret = typeof v === "boolean" ? (v ? 1 : 0) : 2;
|
|
626
|
-
return ret;
|
|
656
|
+
__wbg_get_bd8e338fbd5f5cc8: function (arg0, arg1) {
|
|
657
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
658
|
+
return addHeapObject(ret);
|
|
627
659
|
},
|
|
628
|
-
|
|
629
|
-
const ret =
|
|
660
|
+
__wbg_length_cd7af8117672b8b8: function (arg0) {
|
|
661
|
+
const ret = getObject(arg0).length;
|
|
630
662
|
return ret;
|
|
631
663
|
},
|
|
632
|
-
__wbindgen_number_get: function (arg0, arg1) {
|
|
633
|
-
const obj = getObject(arg1);
|
|
634
|
-
const ret = typeof obj === "number" ? obj : undefined;
|
|
635
|
-
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
636
|
-
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
637
|
-
},
|
|
638
664
|
__wbindgen_is_object: function (arg0) {
|
|
639
665
|
const val = getObject(arg0);
|
|
640
666
|
const ret = typeof val === "object" && val !== null;
|
|
641
667
|
return ret;
|
|
642
668
|
},
|
|
643
|
-
|
|
644
|
-
const ret = getObject(arg0)
|
|
645
|
-
return ret;
|
|
646
|
-
},
|
|
647
|
-
__wbindgen_bigint_from_i64: function (arg0) {
|
|
648
|
-
const ret = arg0;
|
|
649
|
-
return addHeapObject(ret);
|
|
650
|
-
},
|
|
651
|
-
__wbindgen_jsval_eq: function (arg0, arg1) {
|
|
652
|
-
const ret = getObject(arg0) === getObject(arg1);
|
|
653
|
-
return ret;
|
|
654
|
-
},
|
|
655
|
-
__wbindgen_bigint_from_u64: function (arg0) {
|
|
656
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
657
|
-
return addHeapObject(ret);
|
|
658
|
-
},
|
|
659
|
-
__wbindgen_error_new: function (arg0, arg1) {
|
|
660
|
-
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
661
|
-
return addHeapObject(ret);
|
|
662
|
-
},
|
|
663
|
-
__wbg_eval_8243d86342a64a9b: function (arg0, arg1) {
|
|
664
|
-
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
665
|
-
return addHeapObject(ret);
|
|
666
|
-
},
|
|
667
|
-
__wbindgen_jsval_loose_eq: function (arg0, arg1) {
|
|
668
|
-
const ret = getObject(arg0) == getObject(arg1);
|
|
669
|
-
return ret;
|
|
670
|
-
},
|
|
671
|
-
__wbg_get_bd8e338fbd5f5cc8: function (arg0, arg1) {
|
|
672
|
-
const ret = getObject(arg0)[arg1 >>> 0];
|
|
669
|
+
__wbg_next_40fc327bfc8770e6: function (arg0) {
|
|
670
|
+
const ret = getObject(arg0).next;
|
|
673
671
|
return addHeapObject(ret);
|
|
674
672
|
},
|
|
675
|
-
__wbg_length_cd7af8117672b8b8: function (arg0) {
|
|
676
|
-
const ret = getObject(arg0).length;
|
|
677
|
-
return ret;
|
|
678
|
-
},
|
|
679
673
|
__wbindgen_is_function: function (arg0) {
|
|
680
674
|
const ret = typeof (getObject(arg0)) === "function";
|
|
681
675
|
return ret;
|
|
682
676
|
},
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
return addHeapObject(ret);
|
|
677
|
+
__wbindgen_object_drop_ref: function (arg0) {
|
|
678
|
+
takeObject(arg0);
|
|
686
679
|
},
|
|
687
680
|
__wbg_next_196c84450b364254: function () {
|
|
688
681
|
return handleError(function (arg0) {
|
|
@@ -748,6 +741,10 @@ const imports = {
|
|
|
748
741
|
const ret = Object.entries(getObject(arg0));
|
|
749
742
|
return addHeapObject(ret);
|
|
750
743
|
},
|
|
744
|
+
__wbindgen_memory: function () {
|
|
745
|
+
const ret = wasm.memory;
|
|
746
|
+
return addHeapObject(ret);
|
|
747
|
+
},
|
|
751
748
|
__wbg_buffer_12d079cc21e14bdb: function (arg0) {
|
|
752
749
|
const ret = getObject(arg0).buffer;
|
|
753
750
|
return addHeapObject(ret);
|
|
@@ -774,6 +771,35 @@ const imports = {
|
|
|
774
771
|
const ret = result;
|
|
775
772
|
return ret;
|
|
776
773
|
},
|
|
774
|
+
__wbindgen_error_new: function (arg0, arg1) {
|
|
775
|
+
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
776
|
+
return addHeapObject(ret);
|
|
777
|
+
},
|
|
778
|
+
__wbindgen_jsval_loose_eq: function (arg0, arg1) {
|
|
779
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
780
|
+
return ret;
|
|
781
|
+
},
|
|
782
|
+
__wbindgen_boolean_get: function (arg0) {
|
|
783
|
+
const v = getObject(arg0);
|
|
784
|
+
const ret = typeof v === "boolean" ? (v ? 1 : 0) : 2;
|
|
785
|
+
return ret;
|
|
786
|
+
},
|
|
787
|
+
__wbindgen_number_get: function (arg0, arg1) {
|
|
788
|
+
const obj = getObject(arg1);
|
|
789
|
+
const ret = typeof obj === "number" ? obj : undefined;
|
|
790
|
+
getFloat64Memory0()[arg0 / 8 + 1] = isLikeNone(ret) ? 0 : ret;
|
|
791
|
+
getInt32Memory0()[arg0 / 4 + 0] = !isLikeNone(ret);
|
|
792
|
+
},
|
|
793
|
+
__wbindgen_string_get: function (arg0, arg1) {
|
|
794
|
+
const obj = getObject(arg1);
|
|
795
|
+
const ret = typeof obj === "string" ? obj : undefined;
|
|
796
|
+
var ptr1 = isLikeNone(ret)
|
|
797
|
+
? 0
|
|
798
|
+
: passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
799
|
+
var len1 = WASM_VECTOR_LEN;
|
|
800
|
+
getInt32Memory0()[arg0 / 4 + 1] = len1;
|
|
801
|
+
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
|
|
802
|
+
},
|
|
777
803
|
__wbindgen_bigint_get_as_i64: function (arg0, arg1) {
|
|
778
804
|
const v = getObject(arg1);
|
|
779
805
|
const ret = typeof v === "bigint" ? v : undefined;
|
|
@@ -790,8 +816,28 @@ const imports = {
|
|
|
790
816
|
__wbindgen_throw: function (arg0, arg1) {
|
|
791
817
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
792
818
|
},
|
|
793
|
-
|
|
794
|
-
const ret =
|
|
819
|
+
__wbindgen_is_bigint: function (arg0) {
|
|
820
|
+
const ret = typeof (getObject(arg0)) === "bigint";
|
|
821
|
+
return ret;
|
|
822
|
+
},
|
|
823
|
+
__wbindgen_in: function (arg0, arg1) {
|
|
824
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
825
|
+
return ret;
|
|
826
|
+
},
|
|
827
|
+
__wbindgen_bigint_from_i64: function (arg0) {
|
|
828
|
+
const ret = arg0;
|
|
829
|
+
return addHeapObject(ret);
|
|
830
|
+
},
|
|
831
|
+
__wbindgen_jsval_eq: function (arg0, arg1) {
|
|
832
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
833
|
+
return ret;
|
|
834
|
+
},
|
|
835
|
+
__wbindgen_bigint_from_u64: function (arg0) {
|
|
836
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
837
|
+
return addHeapObject(ret);
|
|
838
|
+
},
|
|
839
|
+
__wbg_eval_73a4cb0af5990ab1: function (arg0, arg1) {
|
|
840
|
+
const ret = eval(getStringFromWasm0(arg0, arg1));
|
|
795
841
|
return addHeapObject(ret);
|
|
796
842
|
},
|
|
797
843
|
},
|
|
@@ -909,6 +955,7 @@ function getWasmInstanceExports() {
|
|
|
909
955
|
parse_python,
|
|
910
956
|
parse_sql,
|
|
911
957
|
parse_mysql,
|
|
958
|
+
parse_oracledb,
|
|
912
959
|
parse_bigquery,
|
|
913
960
|
parse_snowflake,
|
|
914
961
|
parse_mssql,
|
|
@@ -917,6 +964,7 @@ function getWasmInstanceExports() {
|
|
|
917
964
|
parse_php,
|
|
918
965
|
parse_rust,
|
|
919
966
|
parse_ansible,
|
|
967
|
+
parse_csharp,
|
|
920
968
|
};
|
|
921
969
|
}
|
|
922
970
|
export function isInstantiated() {
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"script_bootstrap.d.ts","sourceRoot":"","sources":["../../src/bootstrap/script_bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE;YAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;SAAE,CAAC;QAC/C,QAAQ,EAAE,MAAM,EAAE,CAAC;KACpB,CAAC;CACH;AAED,wBAAgB,qBAAqB,IAAI,cAAc,CAatD;AAED,eAAO,MAAM,mBAAmB
|
|
1
|
+
{"version":3,"file":"script_bootstrap.d.ts","sourceRoot":"","sources":["../../src/bootstrap/script_bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE;QACN,OAAO,EAAE,MAAM,CAAC;QAChB,IAAI,EAAE,MAAM,CAAC;QACb,UAAU,EAAE;YAAE,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,CAAA;SAAE,CAAC;QAC/C,QAAQ,EAAE,MAAM,EAAE,CAAC;KACpB,CAAC;CACH;AAED,wBAAgB,qBAAqB,IAAI,cAAc,CAatD;AAED,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;CAqF/B,CAAC"}
|