qlue-ls 0.5.2 → 0.5.5
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/package.json +2 -2
- package/qlue_ls.d.ts +1 -1
- package/qlue_ls_bg.js +146 -79
- package/qlue_ls_bg.wasm +0 -0
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"Ioannis Nezis <ioannis@nezis.de>"
|
|
6
6
|
],
|
|
7
7
|
"description": "A formatter for SPARQL queries",
|
|
8
|
-
"version": "0.5.
|
|
8
|
+
"version": "0.5.5",
|
|
9
9
|
"license": "SEE LICENSE IN LICENSE",
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -30,4 +30,4 @@
|
|
|
30
30
|
"lsp-server",
|
|
31
31
|
"wasm"
|
|
32
32
|
]
|
|
33
|
-
}
|
|
33
|
+
}
|
package/qlue_ls.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* tslint:disable */
|
|
2
2
|
/* eslint-disable */
|
|
3
|
-
export function format_raw(text: string): string;
|
|
4
3
|
export function determine_operation_type(text: string): string;
|
|
4
|
+
export function format_raw(text: string): string;
|
|
5
5
|
export function init_language_server(writer: WritableStreamDefaultWriter): Server;
|
|
6
6
|
export function get_parse_tree(input: string, offset: number): any;
|
|
7
7
|
export class Server {
|
package/qlue_ls_bg.js
CHANGED
|
@@ -43,10 +43,77 @@ function isLikeNone(x) {
|
|
|
43
43
|
return x === undefined || x === null;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
+
let WASM_VECTOR_LEN = 0;
|
|
47
|
+
|
|
48
|
+
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
49
|
+
|
|
50
|
+
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
51
|
+
|
|
52
|
+
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
53
|
+
? function (arg, view) {
|
|
54
|
+
return cachedTextEncoder.encodeInto(arg, view);
|
|
55
|
+
}
|
|
56
|
+
: function (arg, view) {
|
|
57
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
58
|
+
view.set(buf);
|
|
59
|
+
return {
|
|
60
|
+
read: arg.length,
|
|
61
|
+
written: buf.length
|
|
62
|
+
};
|
|
63
|
+
});
|
|
64
|
+
|
|
65
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
66
|
+
|
|
67
|
+
if (realloc === undefined) {
|
|
68
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
69
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
70
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
71
|
+
WASM_VECTOR_LEN = buf.length;
|
|
72
|
+
return ptr;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
let len = arg.length;
|
|
76
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
77
|
+
|
|
78
|
+
const mem = getUint8ArrayMemory0();
|
|
79
|
+
|
|
80
|
+
let offset = 0;
|
|
81
|
+
|
|
82
|
+
for (; offset < len; offset++) {
|
|
83
|
+
const code = arg.charCodeAt(offset);
|
|
84
|
+
if (code > 0x7F) break;
|
|
85
|
+
mem[ptr + offset] = code;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (offset !== len) {
|
|
89
|
+
if (offset !== 0) {
|
|
90
|
+
arg = arg.slice(offset);
|
|
91
|
+
}
|
|
92
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
93
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
94
|
+
const ret = encodeString(arg, view);
|
|
95
|
+
|
|
96
|
+
offset += ret.written;
|
|
97
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
WASM_VECTOR_LEN = offset;
|
|
101
|
+
return ptr;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
let cachedDataViewMemory0 = null;
|
|
105
|
+
|
|
106
|
+
function getDataViewMemory0() {
|
|
107
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
108
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
109
|
+
}
|
|
110
|
+
return cachedDataViewMemory0;
|
|
111
|
+
}
|
|
112
|
+
|
|
46
113
|
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
47
114
|
? { register: () => {}, unregister: () => {} }
|
|
48
115
|
: new FinalizationRegistry(state => {
|
|
49
|
-
wasm.
|
|
116
|
+
wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b)
|
|
50
117
|
});
|
|
51
118
|
|
|
52
119
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
@@ -62,7 +129,7 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
62
129
|
return f(a, state.b, ...args);
|
|
63
130
|
} finally {
|
|
64
131
|
if (--state.cnt === 0) {
|
|
65
|
-
wasm.
|
|
132
|
+
wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
|
|
66
133
|
CLOSURE_DTORS.unregister(state);
|
|
67
134
|
} else {
|
|
68
135
|
state.a = a;
|
|
@@ -139,73 +206,6 @@ function debugString(val) {
|
|
|
139
206
|
return className;
|
|
140
207
|
}
|
|
141
208
|
|
|
142
|
-
let WASM_VECTOR_LEN = 0;
|
|
143
|
-
|
|
144
|
-
const lTextEncoder = typeof TextEncoder === 'undefined' ? (0, module.require)('util').TextEncoder : TextEncoder;
|
|
145
|
-
|
|
146
|
-
let cachedTextEncoder = new lTextEncoder('utf-8');
|
|
147
|
-
|
|
148
|
-
const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
|
|
149
|
-
? function (arg, view) {
|
|
150
|
-
return cachedTextEncoder.encodeInto(arg, view);
|
|
151
|
-
}
|
|
152
|
-
: function (arg, view) {
|
|
153
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
154
|
-
view.set(buf);
|
|
155
|
-
return {
|
|
156
|
-
read: arg.length,
|
|
157
|
-
written: buf.length
|
|
158
|
-
};
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
162
|
-
|
|
163
|
-
if (realloc === undefined) {
|
|
164
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
165
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
166
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
167
|
-
WASM_VECTOR_LEN = buf.length;
|
|
168
|
-
return ptr;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
let len = arg.length;
|
|
172
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
173
|
-
|
|
174
|
-
const mem = getUint8ArrayMemory0();
|
|
175
|
-
|
|
176
|
-
let offset = 0;
|
|
177
|
-
|
|
178
|
-
for (; offset < len; offset++) {
|
|
179
|
-
const code = arg.charCodeAt(offset);
|
|
180
|
-
if (code > 0x7F) break;
|
|
181
|
-
mem[ptr + offset] = code;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
if (offset !== len) {
|
|
185
|
-
if (offset !== 0) {
|
|
186
|
-
arg = arg.slice(offset);
|
|
187
|
-
}
|
|
188
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
189
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
190
|
-
const ret = encodeString(arg, view);
|
|
191
|
-
|
|
192
|
-
offset += ret.written;
|
|
193
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
WASM_VECTOR_LEN = offset;
|
|
197
|
-
return ptr;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
let cachedDataViewMemory0 = null;
|
|
201
|
-
|
|
202
|
-
function getDataViewMemory0() {
|
|
203
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
204
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
205
|
-
}
|
|
206
|
-
return cachedDataViewMemory0;
|
|
207
|
-
}
|
|
208
|
-
|
|
209
209
|
function takeFromExternrefTable0(idx) {
|
|
210
210
|
const value = wasm.__wbindgen_export_2.get(idx);
|
|
211
211
|
wasm.__externref_table_dealloc(idx);
|
|
@@ -215,13 +215,13 @@ function takeFromExternrefTable0(idx) {
|
|
|
215
215
|
* @param {string} text
|
|
216
216
|
* @returns {string}
|
|
217
217
|
*/
|
|
218
|
-
export function
|
|
218
|
+
export function determine_operation_type(text) {
|
|
219
219
|
let deferred3_0;
|
|
220
220
|
let deferred3_1;
|
|
221
221
|
try {
|
|
222
222
|
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
223
223
|
const len0 = WASM_VECTOR_LEN;
|
|
224
|
-
const ret = wasm.
|
|
224
|
+
const ret = wasm.determine_operation_type(ptr0, len0);
|
|
225
225
|
var ptr2 = ret[0];
|
|
226
226
|
var len2 = ret[1];
|
|
227
227
|
if (ret[3]) {
|
|
@@ -240,13 +240,13 @@ export function format_raw(text) {
|
|
|
240
240
|
* @param {string} text
|
|
241
241
|
* @returns {string}
|
|
242
242
|
*/
|
|
243
|
-
export function
|
|
243
|
+
export function format_raw(text) {
|
|
244
244
|
let deferred3_0;
|
|
245
245
|
let deferred3_1;
|
|
246
246
|
try {
|
|
247
247
|
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
248
248
|
const len0 = WASM_VECTOR_LEN;
|
|
249
|
-
const ret = wasm.
|
|
249
|
+
const ret = wasm.format_raw(ptr0, len0);
|
|
250
250
|
var ptr2 = ret[0];
|
|
251
251
|
var len2 = ret[1];
|
|
252
252
|
if (ret[3]) {
|
|
@@ -283,13 +283,15 @@ export function get_parse_tree(input, offset) {
|
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
function __wbg_adapter_24(arg0, arg1, arg2) {
|
|
286
|
-
wasm.
|
|
286
|
+
wasm.closure561_externref_shim(arg0, arg1, arg2);
|
|
287
287
|
}
|
|
288
288
|
|
|
289
|
-
function
|
|
290
|
-
wasm.
|
|
289
|
+
function __wbg_adapter_86(arg0, arg1, arg2, arg3) {
|
|
290
|
+
wasm.closure573_externref_shim(arg0, arg1, arg2, arg3);
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
+
const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate"];
|
|
294
|
+
|
|
293
295
|
const ServerFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
294
296
|
? { register: () => {}, unregister: () => {} }
|
|
295
297
|
: new FinalizationRegistry(ptr => wasm.__wbg_server_free(ptr >>> 0, 1));
|
|
@@ -347,15 +349,36 @@ export function __wbg_error_80de38b3f7cc3c3c(arg0, arg1, arg2, arg3) {
|
|
|
347
349
|
console.error(arg0, arg1, arg2, arg3);
|
|
348
350
|
};
|
|
349
351
|
|
|
352
|
+
export function __wbg_fetch_509096533071c657(arg0, arg1) {
|
|
353
|
+
const ret = arg0.fetch(arg1);
|
|
354
|
+
return ret;
|
|
355
|
+
};
|
|
356
|
+
|
|
350
357
|
export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
|
|
351
358
|
const ret = Reflect.get(arg0, arg1);
|
|
352
359
|
return ret;
|
|
353
360
|
}, arguments) };
|
|
354
361
|
|
|
362
|
+
export function __wbg_headers_7852a8ea641c1379(arg0) {
|
|
363
|
+
const ret = arg0.headers;
|
|
364
|
+
return ret;
|
|
365
|
+
};
|
|
366
|
+
|
|
355
367
|
export function __wbg_info_033d8b8a0838f1d3(arg0, arg1, arg2, arg3) {
|
|
356
368
|
console.info(arg0, arg1, arg2, arg3);
|
|
357
369
|
};
|
|
358
370
|
|
|
371
|
+
export function __wbg_instanceof_Response_f2cc20d9f7dfd644(arg0) {
|
|
372
|
+
let result;
|
|
373
|
+
try {
|
|
374
|
+
result = arg0 instanceof Response;
|
|
375
|
+
} catch (_) {
|
|
376
|
+
result = false;
|
|
377
|
+
}
|
|
378
|
+
const ret = result;
|
|
379
|
+
return ret;
|
|
380
|
+
};
|
|
381
|
+
|
|
359
382
|
export function __wbg_log_cad59bb680daec67(arg0, arg1, arg2, arg3) {
|
|
360
383
|
console.log(arg0, arg1, arg2, arg3);
|
|
361
384
|
};
|
|
@@ -367,7 +390,7 @@ export function __wbg_new_23a2665fac83c611(arg0, arg1) {
|
|
|
367
390
|
const a = state0.a;
|
|
368
391
|
state0.a = 0;
|
|
369
392
|
try {
|
|
370
|
-
return
|
|
393
|
+
return __wbg_adapter_86(a, state0.b, arg0, arg1);
|
|
371
394
|
} finally {
|
|
372
395
|
state0.a = a;
|
|
373
396
|
}
|
|
@@ -394,6 +417,16 @@ export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
|
|
|
394
417
|
return ret;
|
|
395
418
|
};
|
|
396
419
|
|
|
420
|
+
export function __wbg_newwithstrandinit_06c535e0a867c635() { return handleError(function (arg0, arg1, arg2) {
|
|
421
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
422
|
+
return ret;
|
|
423
|
+
}, arguments) };
|
|
424
|
+
|
|
425
|
+
export function __wbg_ok_3aaf32d069979723(arg0) {
|
|
426
|
+
const ret = arg0.ok;
|
|
427
|
+
return ret;
|
|
428
|
+
};
|
|
429
|
+
|
|
397
430
|
export function __wbg_push_737cfc8c1432c2c6(arg0, arg1) {
|
|
398
431
|
const ret = arg0.push(arg1);
|
|
399
432
|
return ret;
|
|
@@ -418,11 +451,27 @@ export function __wbg_resolve_4851785c9c5f573d(arg0) {
|
|
|
418
451
|
return ret;
|
|
419
452
|
};
|
|
420
453
|
|
|
454
|
+
export function __wbg_set_11cd83f45504cedf() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
455
|
+
arg0.set(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
456
|
+
}, arguments) };
|
|
457
|
+
|
|
421
458
|
export function __wbg_set_bb8cecf6a62b9f46() { return handleError(function (arg0, arg1, arg2) {
|
|
422
459
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
423
460
|
return ret;
|
|
424
461
|
}, arguments) };
|
|
425
462
|
|
|
463
|
+
export function __wbg_setbody_5923b78a95eedf29(arg0, arg1) {
|
|
464
|
+
arg0.body = arg1;
|
|
465
|
+
};
|
|
466
|
+
|
|
467
|
+
export function __wbg_setmethod_3c5280fe5d890842(arg0, arg1, arg2) {
|
|
468
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
export function __wbg_setmode_5dc300b865044b65(arg0, arg1) {
|
|
472
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
473
|
+
};
|
|
474
|
+
|
|
426
475
|
export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
|
|
427
476
|
const ret = typeof global === 'undefined' ? null : global;
|
|
428
477
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
@@ -443,6 +492,24 @@ export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
|
|
|
443
492
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
444
493
|
};
|
|
445
494
|
|
|
495
|
+
export function __wbg_statusText_207754230b39e67c(arg0, arg1) {
|
|
496
|
+
const ret = arg1.statusText;
|
|
497
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
498
|
+
const len1 = WASM_VECTOR_LEN;
|
|
499
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
500
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
export function __wbg_status_f6360336ca686bf0(arg0) {
|
|
504
|
+
const ret = arg0.status;
|
|
505
|
+
return ret;
|
|
506
|
+
};
|
|
507
|
+
|
|
508
|
+
export function __wbg_text_7805bea50de2af49() { return handleError(function (arg0) {
|
|
509
|
+
const ret = arg0.text();
|
|
510
|
+
return ret;
|
|
511
|
+
}, arguments) };
|
|
512
|
+
|
|
446
513
|
export function __wbg_then_44b73946d2fb3e7d(arg0, arg1) {
|
|
447
514
|
const ret = arg0.then(arg1);
|
|
448
515
|
return ret;
|
|
@@ -478,8 +545,8 @@ export function __wbindgen_cb_drop(arg0) {
|
|
|
478
545
|
return ret;
|
|
479
546
|
};
|
|
480
547
|
|
|
481
|
-
export function
|
|
482
|
-
const ret = makeMutClosure(arg0, arg1,
|
|
548
|
+
export function __wbindgen_closure_wrapper5243(arg0, arg1, arg2) {
|
|
549
|
+
const ret = makeMutClosure(arg0, arg1, 562, __wbg_adapter_24);
|
|
483
550
|
return ret;
|
|
484
551
|
};
|
|
485
552
|
|
package/qlue_ls_bg.wasm
CHANGED
|
Binary file
|