coderaft 0.0.20 → 0.0.22
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/code.mjs +1 -1
- package/code.tar.zst +0 -0
- package/dist/_chunks/server.mjs +2 -3
- package/package.json +2 -2
package/code.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import { tmpdir } from "node:os";
|
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
5
5
|
|
|
6
6
|
// Auto-updated by scripts/pack.ts
|
|
7
|
-
const codeArchiveHash = "
|
|
7
|
+
const codeArchiveHash = "dce8c0124a390d8d";
|
|
8
8
|
|
|
9
9
|
const archivePath = fileURLToPath(new URL("./code.tar.zst", import.meta.url));
|
|
10
10
|
|
package/code.tar.zst
CHANGED
|
Binary file
|
package/dist/_chunks/server.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as __require } from "./rolldown-runtime.mjs";
|
|
2
2
|
import { t as createProxyServer } from "./libs/httpxy.mjs";
|
|
3
|
-
import { fileURLToPath } from "node:url";
|
|
3
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
4
4
|
import { createReadStream, readFileSync, readdirSync, unlinkSync } from "node:fs";
|
|
5
5
|
import { randomBytes, randomUUID } from "node:crypto";
|
|
6
6
|
import { createServer } from "node:http";
|
|
@@ -8,7 +8,6 @@ import { extname, join, normalize, sep } from "node:path";
|
|
|
8
8
|
import { stat } from "node:fs/promises";
|
|
9
9
|
import { loadCode } from "#code";
|
|
10
10
|
if (process.platform === "android") {
|
|
11
|
-
Object.defineProperty(process, "platform", { value: "linux" });
|
|
12
11
|
if (process.execPath.includes("linker64") || process.execPath.startsWith("/apex/")) {
|
|
13
12
|
const resolved = process.env.TERMUX_EXEC__PROC_SELF_EXE || "/data/data/com.termux/files/usr/bin/node";
|
|
14
13
|
Object.defineProperty(process, "execPath", {
|
|
@@ -164,7 +163,7 @@ async function createCodeServer(opts = {}) {
|
|
|
164
163
|
if (args.length === 2 && typeof args[1] === "string" && !args[1].trim()) return;
|
|
165
164
|
_log(...args);
|
|
166
165
|
};
|
|
167
|
-
const mod = await import(join(vsRootPath, "out/server-main.js"));
|
|
166
|
+
const mod = await import(pathToFileURL(join(vsRootPath, "out/server-main.js")).href);
|
|
168
167
|
const _product = globalThis._VSCODE_PRODUCT_JSON;
|
|
169
168
|
if (_product) {
|
|
170
169
|
_product.nameShort = "coderaft";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "coderaft",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"repository": "pithings/coderaft",
|
|
5
5
|
"bin": {
|
|
6
6
|
"coderaft": "./dist/cli.mjs"
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@vscode/tree-sitter-wasm": "^0.3.0",
|
|
39
39
|
"@vscode/vscode-languagedetection": "1.0.23",
|
|
40
40
|
"@vscode/windows-process-tree": "workspace:*",
|
|
41
|
-
"@vscode/windows-registry": "
|
|
41
|
+
"@vscode/windows-registry": "workspace:*",
|
|
42
42
|
"@xterm/addon-clipboard": "^0.3.0-beta.191",
|
|
43
43
|
"@xterm/addon-image": "^0.10.0-beta.191",
|
|
44
44
|
"@xterm/addon-ligatures": "^0.11.0-beta.191",
|