@mearl/provider 2.20.2 → 2.20.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.
- package/dist/provider-runtime.js +6 -1
- package/package.json +2 -2
package/dist/provider-runtime.js
CHANGED
|
@@ -570,7 +570,12 @@ export function createProviderRuntime(definition) {
|
|
|
570
570
|
throw new Error('Provider returned an invalid browser access result');
|
|
571
571
|
}
|
|
572
572
|
const url = new URL(access.url);
|
|
573
|
-
|
|
573
|
+
const isDevTools = access.kind === 'cdp-devtools' &&
|
|
574
|
+
url.protocol === 'devtools:' &&
|
|
575
|
+
url.host === 'devtools' &&
|
|
576
|
+
url.pathname === '/bundled/inspector.html';
|
|
577
|
+
if ((!['http:', 'https:'].includes(url.protocol) && !isDevTools) ||
|
|
578
|
+
access.sensitive !== true) {
|
|
574
579
|
throw new Error('Provider returned an invalid browser access result');
|
|
575
580
|
}
|
|
576
581
|
return { ...access, url: url.toString() };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mearl/provider",
|
|
3
|
-
"version": "2.20.
|
|
3
|
+
"version": "2.20.3",
|
|
4
4
|
"description": "Unified contracts and runtime utilities for built-in and external Mearl browser providers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"registry": "https://registry.npmjs.org"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@mearl/daemon-core": "2.20.
|
|
38
|
+
"@mearl/daemon-core": "2.20.3"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^24.9.1",
|