@deepseek-ai/dsh-experimental-inspector 0.1.6-alpha.2 → 0.1.7-alpha.1

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.
Files changed (2) hide show
  1. package/lib/client.js +12 -3
  2. package/package.json +13 -13
package/lib/client.js CHANGED
@@ -2267,7 +2267,7 @@ window.__ModuleLoader__.load({
2267
2267
  return Reflect.get(value, "id") === PACKAGE_ID;
2268
2268
  });
2269
2269
  if (row === void 0 || typeof row.url !== "string" || typeof row.rev !== "string") return void 0;
2270
- const base = browserLocation();
2270
+ const base = documentBase();
2271
2271
  if (base === void 0) return void 0;
2272
2272
  const sourceUrl = new URL(row.url, base);
2273
2273
  const sourceMapUrl = new URL(sourceUrl.href);
@@ -2287,7 +2287,16 @@ window.__ModuleLoader__.load({
2287
2287
  if (!response.ok) throw new Error(`${String(response.status)} ${response.statusText}`);
2288
2288
  return response.text();
2289
2289
  }
2290
- function browserLocation() {
2290
+ /**
2291
+ * Base every app-owned route reference resolves against: the document's
2292
+ * `baseURI`, else the location URL, else undefined outside a browser.
2293
+ */
2294
+ function documentBase() {
2295
+ const document = Reflect.get(globalThis, "document");
2296
+ if (typeof document === "object" && document !== null) {
2297
+ const baseURI = Reflect.get(document, "baseURI");
2298
+ if (typeof baseURI === "string" && baseURI !== "") return baseURI;
2299
+ }
2291
2300
  const location = Reflect.get(globalThis, "location");
2292
2301
  if (typeof location !== "object" || location === null) return void 0;
2293
2302
  const href = Reflect.get(location, "href");
@@ -2303,7 +2312,7 @@ window.__ModuleLoader__.load({
2303
2312
  }
2304
2313
  function normalizedUrl(value) {
2305
2314
  try {
2306
- const url = new URL(value, browserLocation());
2315
+ const url = new URL(value, documentBase());
2307
2316
  url.hash = "";
2308
2317
  return url.href;
2309
2318
  } catch {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-experimental-inspector",
3
3
  "description": "Experimental cross-realm CDP hub for Host debugging and Client Runtime inspection",
4
- "version": "0.1.6-alpha.2",
4
+ "version": "0.1.7-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -41,24 +41,24 @@
41
41
  "license": "MIT",
42
42
  "dependencies": {
43
43
  "ws": "^8.21.0",
44
- "@deepseek-ai/dsh-app-boot": "^0.1.6-alpha.2",
45
- "@deepseek-ai/dsh-brand": "^0.1.6-alpha.2",
46
- "@deepseek-ai/dsh-util-crypto": "^0.1.6-alpha.2",
47
- "@deepseek-ai/schemastery": "^3.18.2"
44
+ "@deepseek-ai/dsh-app-boot": "^0.1.7-alpha.1",
45
+ "@deepseek-ai/dsh-brand": "^0.1.7-alpha.1",
46
+ "@deepseek-ai/dsh-util-crypto": "^0.1.7-alpha.1",
47
+ "@deepseek-ai/schemastery": "^3.18.3"
48
48
  },
49
49
  "peerDependencies": {
50
- "@deepseek-ai/cordis": "^4.0.2",
51
- "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
52
- "@deepseek-ai/dsh-client-modules": "^0.1.6-alpha.2",
53
- "@deepseek-ai/dsh-host-webserver": "^0.1.6-alpha.2"
50
+ "@deepseek-ai/cordis": "^4.0.3",
51
+ "@deepseek-ai/dsh-client-modules": "^0.1.7-alpha.1",
52
+ "@deepseek-ai/dsh-host-webserver": "^0.1.7-alpha.1",
53
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.4"
54
54
  },
55
55
  "devDependencies": {
56
56
  "@types/ws": "^8.18.1",
57
57
  "playwright": "^1.49.0",
58
58
  "tsx": "^4.19.2",
59
- "@deepseek-ai/cordis": "^4.0.2",
60
- "@deepseek-ai/cordis-plugin-loader": "^1.0.3",
61
- "@deepseek-ai/dsh-host-webserver": "^0.1.6-alpha.2",
62
- "@deepseek-ai/cordis-plugin-include": "^1.0.7"
59
+ "@deepseek-ai/cordis": "^4.0.3",
60
+ "@deepseek-ai/cordis-plugin-include": "^1.0.8",
61
+ "@deepseek-ai/cordis-plugin-loader": "^1.0.4",
62
+ "@deepseek-ai/dsh-host-webserver": "^0.1.7-alpha.1"
63
63
  }
64
64
  }