@liyang8246/dsh-accounts 0.1.11 → 0.1.12
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/lib/client.js +13 -11
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -676,18 +676,20 @@
|
|
|
676
676
|
}
|
|
677
677
|
return cache.value;
|
|
678
678
|
};
|
|
679
|
-
const
|
|
680
|
-
|
|
681
|
-
subscribe(listener)
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
stopFilter();
|
|
687
|
-
};
|
|
688
|
-
},
|
|
689
|
-
set: (next) => source.set(next)
|
|
679
|
+
const subscribe = (listener) => {
|
|
680
|
+
const stopSource = source.subscribe(listener);
|
|
681
|
+
const stopFilter = filter.subscribe(listener);
|
|
682
|
+
return () => {
|
|
683
|
+
stopSource();
|
|
684
|
+
stopFilter();
|
|
685
|
+
};
|
|
690
686
|
};
|
|
687
|
+
const wrapped = new Proxy(source, { get(target, property) {
|
|
688
|
+
if (property === "getSnapshot") return read;
|
|
689
|
+
if (property === "subscribe") return subscribe;
|
|
690
|
+
const value = Reflect.get(target, property, target);
|
|
691
|
+
return typeof value === "function" ? value.bind(target) : value;
|
|
692
|
+
} });
|
|
691
693
|
Object.defineProperty(catalog, "store", {
|
|
692
694
|
configurable: true,
|
|
693
695
|
get: () => wrapped
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liyang8246/dsh-accounts",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.12",
|
|
5
5
|
"description": "Independent multi-account Codex, OpenCode Go and CommandCode Go plugin for DeepSeek Harness.",
|
|
6
6
|
"repository": { "type": "git", "url": "https://github.com/liyang8246/dsh-zolin.git", "directory": "packages/dsh-accounts" },
|
|
7
7
|
"exports": {
|