@aethervtt/shard-node 0.0.1 → 0.1.0
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/dist/index.js +5 -5
- package/package.json +13 -13
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
import { readdir, readFile } from "node:fs/promises";
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
|
-
import { dirname, join, relative, resolve } from "node:path";
|
|
5
|
-
import { pathToFileURL } from "node:url";
|
|
4
|
+
import { dirname, isAbsolute, join, relative, resolve } from "node:path";
|
|
5
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
6
6
|
import { assetServer } from "@aethervtt/shard-assets";
|
|
7
7
|
import {
|
|
8
8
|
ChildOf,
|
|
@@ -223,11 +223,11 @@ function locateInProject(error, root) {
|
|
|
223
223
|
if (typeof stack !== "string") return void 0;
|
|
224
224
|
const prefix = resolve(root);
|
|
225
225
|
for (const line of stack.split("\n")) {
|
|
226
|
-
const m = /(
|
|
226
|
+
const m = /(file:\/\/[^\s()]+|(?:[A-Za-z]:)?[\\/][^\s():]+):(\d+):(\d+)/.exec(line);
|
|
227
227
|
if (!m) continue;
|
|
228
|
-
const file =
|
|
229
|
-
if (!file.startsWith(`${prefix}/`)) continue;
|
|
228
|
+
const file = m[1].startsWith("file:") ? fileURLToPath(m[1]) : m[1];
|
|
230
229
|
const rel = relative(prefix, file).split("\\").join("/");
|
|
230
|
+
if (rel.startsWith("../") || isAbsolute(rel)) continue;
|
|
231
231
|
if (rel.startsWith(".shard/") || rel.includes("node_modules/")) continue;
|
|
232
232
|
return `${rel}:${m[2]}:${m[3]}`;
|
|
233
233
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aethervtt/shard-node",
|
|
3
|
-
"version": "0.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -16,17 +16,17 @@
|
|
|
16
16
|
"README.md"
|
|
17
17
|
],
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@aethervtt/shard-assets": "0.0
|
|
20
|
-
"@aethervtt/shard-core": "0.0
|
|
21
|
-
"@aethervtt/shard-gpu": "0.0
|
|
22
|
-
"@aethervtt/shard-platform": "0.0
|
|
23
|
-
"@aethervtt/shard-platform-node": "0.0
|
|
24
|
-
"@aethervtt/shard-procgen": "0.0
|
|
25
|
-
"@aethervtt/shard-project": "0.0
|
|
26
|
-
"@aethervtt/shard-protocol": "0.0
|
|
27
|
-
"@aethervtt/shard-render": "0.0
|
|
28
|
-
"@aethervtt/shard-runtime": "0.0
|
|
29
|
-
"@aethervtt/shard-scene": "0.0
|
|
19
|
+
"@aethervtt/shard-assets": "0.1.0",
|
|
20
|
+
"@aethervtt/shard-core": "0.1.0",
|
|
21
|
+
"@aethervtt/shard-gpu": "0.1.0",
|
|
22
|
+
"@aethervtt/shard-platform": "0.1.0",
|
|
23
|
+
"@aethervtt/shard-platform-node": "0.1.0",
|
|
24
|
+
"@aethervtt/shard-procgen": "0.1.0",
|
|
25
|
+
"@aethervtt/shard-project": "0.1.0",
|
|
26
|
+
"@aethervtt/shard-protocol": "0.1.0",
|
|
27
|
+
"@aethervtt/shard-render": "0.1.0",
|
|
28
|
+
"@aethervtt/shard-runtime": "0.1.0",
|
|
29
|
+
"@aethervtt/shard-scene": "0.1.0",
|
|
30
30
|
"esbuild": "^0.28.2",
|
|
31
31
|
"webgpu": "0.6.1"
|
|
32
32
|
},
|
|
@@ -40,6 +40,6 @@
|
|
|
40
40
|
"provenance": true
|
|
41
41
|
},
|
|
42
42
|
"shard": {
|
|
43
|
-
"buildSha": "
|
|
43
|
+
"buildSha": "8e14c9896f82a3554b156f1ffdd68f2cc3e7d78a"
|
|
44
44
|
}
|
|
45
45
|
}
|