browserpilot-cdp 1.2.4 → 1.2.6
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/cli.js +2 -2
- package/dist/cli.js.map +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +2 -2
- package/dist/native-host.js.map +1 -1
- package/extension/background.js +89 -12
- package/extension/background.js.map +2 -2
- package/extension/icons/icon-128.png +0 -0
- package/extension/icons/icon-16.png +0 -0
- package/extension/icons/icon-32.png +0 -0
- package/extension/icons/icon-48.png +0 -0
- package/extension/manifest.json +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import os from "node:os";
|
|
|
5
5
|
import path from "node:path";
|
|
6
6
|
|
|
7
7
|
// ../protocol/dist/constants.js
|
|
8
|
-
var BROWSERPILOT_VERSION = "1.2.
|
|
8
|
+
var BROWSERPILOT_VERSION = "1.2.6";
|
|
9
9
|
var DEFAULT_DAEMON_HOST = "127.0.0.1";
|
|
10
10
|
var DEFAULT_DAEMON_PORT = 19888;
|
|
11
11
|
var NATIVE_HOST_NAME = "com.browserpilot.bridge";
|
|
@@ -6562,7 +6562,7 @@ var BrowserPilotDaemon = class {
|
|
|
6562
6562
|
const headerToken = (req.headers.authorization || "").replace(/^Bearer\s+/i, "");
|
|
6563
6563
|
const provided = queryToken || headerToken;
|
|
6564
6564
|
if (cfg.token && provided !== cfg.token) {
|
|
6565
|
-
socket.write("HTTP/1.1
|
|
6565
|
+
socket.write("HTTP/1.1 403 Forbidden\r\n\r\n");
|
|
6566
6566
|
socket.destroy();
|
|
6567
6567
|
return;
|
|
6568
6568
|
}
|