@kerebron/extension-lsp 0.4.1 → 0.4.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/_dnt.shims.d.ts +1 -5
- package/esm/_dnt.shims.d.ts.map +1 -1
- package/esm/_dnt.shims.js +1 -5
- package/esm/wasm/src/mod.js +2 -2
- package/package.json +2 -3
package/esm/_dnt.shims.d.ts
CHANGED
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export { Deno } from "@deno/shim-deno";
|
|
3
|
-
export declare const dntGlobalThis: Omit<typeof globalThis, "Deno"> & {
|
|
4
|
-
Deno: typeof Deno;
|
|
5
|
-
};
|
|
1
|
+
export declare const dntGlobalThis: Omit<typeof globalThis, never>;
|
|
6
2
|
//# sourceMappingURL=_dnt.shims.d.ts.map
|
package/esm/_dnt.shims.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"_dnt.shims.d.ts","sourceRoot":"","sources":["../src/_dnt.shims.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,gCAA2C,CAAC"}
|
package/esm/_dnt.shims.js
CHANGED
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export { Deno } from "@deno/shim-deno";
|
|
3
|
-
const dntGlobals = {
|
|
4
|
-
Deno,
|
|
5
|
-
};
|
|
1
|
+
const dntGlobals = {};
|
|
6
2
|
export const dntGlobalThis = createMergeProxy(globalThis, dntGlobals);
|
|
7
3
|
function createMergeProxy(baseObj, extObj) {
|
|
8
4
|
return new Proxy(baseObj, {
|
package/esm/wasm/src/mod.js
CHANGED
|
@@ -27,7 +27,7 @@ export function getLangTreeSitter(lang, cdnUrl = 'http://localhost:8000/wasm/')
|
|
|
27
27
|
}
|
|
28
28
|
export async function fetchWasm(wasmUrl) {
|
|
29
29
|
if ('Deno' in dntShim.dntGlobalThis) { // Test or server-side
|
|
30
|
-
return
|
|
30
|
+
return globalThis.Deno.readFileSync(__dirname + '/../files' + wasmUrl);
|
|
31
31
|
}
|
|
32
32
|
const response = await fetch(wasmUrl);
|
|
33
33
|
if (response.status >= 400) {
|
|
@@ -37,7 +37,7 @@ export async function fetchWasm(wasmUrl) {
|
|
|
37
37
|
}
|
|
38
38
|
export async function fetchTextResource(url) {
|
|
39
39
|
if ('Deno' in dntShim.dntGlobalThis) {
|
|
40
|
-
return new TextDecoder().decode(
|
|
40
|
+
return new TextDecoder().decode(globalThis.Deno.readFileSync(__dirname + '/../files' + url));
|
|
41
41
|
}
|
|
42
42
|
const responseScm = await fetch(url);
|
|
43
43
|
if (responseScm.status >= 400) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kerebron/extension-lsp",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"module": "./esm/extension-lsp/src/mod.js",
|
|
6
6
|
"exports": {
|
|
@@ -21,8 +21,7 @@
|
|
|
21
21
|
"prosemirror-transform": "1.10.4",
|
|
22
22
|
"prosemirror-view": "1.40.0",
|
|
23
23
|
"vscode-languageserver-protocol": "3.17.5",
|
|
24
|
-
"web-tree-sitter": "0.24.7"
|
|
25
|
-
"@deno/shim-deno": "~0.18.0"
|
|
24
|
+
"web-tree-sitter": "0.24.7"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
28
27
|
"@types/node": "^20.9.0"
|