solrouter 0.2.0 → 0.2.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.
- package/package.json +1 -1
- package/src/config.js +1 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "solrouter",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Local privacy router for coding tools: pseudonymises every request before it leaves your machine, and sends work a frontier model would refuse to an uncensored open-weight model you control.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/config.js
CHANGED
|
@@ -53,6 +53,7 @@ function readJson(path) {
|
|
|
53
53
|
function deepMerge(a, b) {
|
|
54
54
|
const out = { ...a };
|
|
55
55
|
for (const k of Object.keys(b || {})) {
|
|
56
|
+
if (b[k] === undefined) continue; // never let an unset override clobber a default
|
|
56
57
|
out[k] = b[k] && typeof b[k] === "object" && !Array.isArray(b[k])
|
|
57
58
|
? deepMerge(a[k] || {}, b[k]) : b[k];
|
|
58
59
|
}
|