@nexum-hub/browser 0.0.3-next.23 → 0.0.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.
@@ -4417,12 +4417,16 @@ export function createBrowserRouter(
4417
4417
  ctx.pendingInfo.nativeNetworkTabId = tabId;
4418
4418
  let result;
4419
4419
  try {
4420
- // A native Runtime.evaluate can stay suspended behind a modal dialog
4421
- // after its action is cancelled. Other native commands (notably IO.read
4422
- // and IO.close) must retain their actual settlement: dropping their
4423
- // replies early can abandon a native stream or misreport cleanup.
4420
+ // A native Runtime.evaluate can stay suspended behind a modal dialog.
4421
+ // A raw cdp.send Network.loadNetworkResource can also remain pending
4422
+ // after debugger detach (notably on Windows). The lease still confirms
4423
+ // native input release and debugger detach before reporting closure.
4424
+ // Internal document exports must await the native response so any
4425
+ // returned stream can be closed; IO.read and IO.close likewise retain
4426
+ // their actual settlement.
4424
4427
  result =
4425
- method === "Runtime.evaluate"
4428
+ method === "Runtime.evaluate" ||
4429
+ (method === "Network.loadNetworkResource" && ctx.method === "cdp.send")
4426
4430
  ? await nativeWithStop(ctx.signal, () =>
4427
4431
  chrome.debugger.sendCommand(source, method, params),
4428
4432
  )
@@ -4417,12 +4417,16 @@ export function createBrowserRouter(
4417
4417
  ctx.pendingInfo.nativeNetworkTabId = tabId;
4418
4418
  let result;
4419
4419
  try {
4420
- // A native Runtime.evaluate can stay suspended behind a modal dialog
4421
- // after its action is cancelled. Other native commands (notably IO.read
4422
- // and IO.close) must retain their actual settlement: dropping their
4423
- // replies early can abandon a native stream or misreport cleanup.
4420
+ // A native Runtime.evaluate can stay suspended behind a modal dialog.
4421
+ // A raw cdp.send Network.loadNetworkResource can also remain pending
4422
+ // after debugger detach (notably on Windows). The lease still confirms
4423
+ // native input release and debugger detach before reporting closure.
4424
+ // Internal document exports must await the native response so any
4425
+ // returned stream can be closed; IO.read and IO.close likewise retain
4426
+ // their actual settlement.
4424
4427
  result =
4425
- method === "Runtime.evaluate"
4428
+ method === "Runtime.evaluate" ||
4429
+ (method === "Network.loadNetworkResource" && ctx.method === "cdp.send")
4426
4430
  ? await nativeWithStop(ctx.signal, () =>
4427
4431
  chrome.debugger.sendCommand(source, method, params),
4428
4432
  )
@@ -1,5 +1,5 @@
1
1
  {
2
- "packageVersion": "0.0.3-next.23",
2
+ "packageVersion": "0.0.3",
3
3
  "extensionVersion": "0.0.3",
4
4
  "protocolVersion": 1,
5
5
  "profiles": {
@@ -4417,12 +4417,16 @@ export function createBrowserRouter(
4417
4417
  ctx.pendingInfo.nativeNetworkTabId = tabId;
4418
4418
  let result;
4419
4419
  try {
4420
- // A native Runtime.evaluate can stay suspended behind a modal dialog
4421
- // after its action is cancelled. Other native commands (notably IO.read
4422
- // and IO.close) must retain their actual settlement: dropping their
4423
- // replies early can abandon a native stream or misreport cleanup.
4420
+ // A native Runtime.evaluate can stay suspended behind a modal dialog.
4421
+ // A raw cdp.send Network.loadNetworkResource can also remain pending
4422
+ // after debugger detach (notably on Windows). The lease still confirms
4423
+ // native input release and debugger detach before reporting closure.
4424
+ // Internal document exports must await the native response so any
4425
+ // returned stream can be closed; IO.read and IO.close likewise retain
4426
+ // their actual settlement.
4424
4427
  result =
4425
- method === "Runtime.evaluate"
4428
+ method === "Runtime.evaluate" ||
4429
+ (method === "Network.loadNetworkResource" && ctx.method === "cdp.send")
4426
4430
  ? await nativeWithStop(ctx.signal, () =>
4427
4431
  chrome.debugger.sendCommand(source, method, params),
4428
4432
  )
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@nexum-hub/browser",
3
- "packageVersion": "0.0.3-next.23",
3
+ "packageVersion": "0.0.3",
4
4
  "status": "in_progress",
5
5
  "published": false,
6
6
  "browserInstallation": "test_profiles_only",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nexum-hub/browser",
3
- "version": "0.0.3-next.23",
3
+ "version": "0.0.3",
4
4
  "private": false,
5
5
  "description": "Nexum 可选浏览器客户端与受管扩展",
6
6
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "publishConfig": {
14
14
  "access": "public",
15
- "tag": "next"
15
+ "tag": "latest"
16
16
  },
17
17
  "engines": {
18
18
  "node": ">=24.22.1 <25"
@@ -65,7 +65,7 @@
65
65
  "ws": "8.23.0"
66
66
  },
67
67
  "peerDependencies": {
68
- "@nexum-hub/sdk": "0.0.3-next.23"
68
+ "@nexum-hub/sdk": "0.0.3"
69
69
  },
70
70
  "peerDependenciesMeta": {
71
71
  "@nexum-hub/sdk": {