@parcha/agentrun-web 0.1.0-beta.59 → 0.1.0-beta.60
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/providers/keyed.js +2 -1
- package/package.json +2 -2
package/dist/providers/keyed.js
CHANGED
|
@@ -126,7 +126,8 @@ export function settingsProblems(who, settings, checks) {
|
|
|
126
126
|
if (typeof settings !== "object" || settings === null || Array.isArray(settings))
|
|
127
127
|
return [`${who}'s settings must be an object`];
|
|
128
128
|
return Object.entries(settings).flatMap(([name, value]) => {
|
|
129
|
-
|
|
129
|
+
// Its own checks alone: a setting named constructor or __proto__ is not Object's member.
|
|
130
|
+
const check = Object.hasOwn(checks, name) ? checks[name] : undefined;
|
|
130
131
|
if (!check)
|
|
131
132
|
return [`${who} takes no setting ${JSON.stringify(name)} (it takes ${Object.keys(checks).join(", ")})`];
|
|
132
133
|
if (value === undefined || check[0](value))
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parcha/agentrun-web",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.60",
|
|
4
4
|
"description": "Web search and web fetch for agents: providers asked in an order given as data, a breaker per provider, a per-run page cache read in parts, and a direct fetch through an injected public-host guard.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"agentrun",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"undici": "^8.12.2"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@parcha/pi-browser": "0.1.0-beta.
|
|
49
|
+
"@parcha/pi-browser": "0.1.0-beta.60"
|
|
50
50
|
},
|
|
51
51
|
"repository": {
|
|
52
52
|
"type": "git",
|