@sylphx/lens-solid 2.3.5 → 2.3.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/index.js +9 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2229,13 +2229,20 @@ class ClientImpl {
|
|
|
2229
2229
|
const endpoint = this.endpoints.get(key);
|
|
2230
2230
|
if (!endpoint)
|
|
2231
2231
|
return;
|
|
2232
|
-
|
|
2232
|
+
endpoint.isSubscribed = true;
|
|
2233
|
+
try {
|
|
2234
|
+
await this.ensureConnected();
|
|
2235
|
+
} catch (error) {
|
|
2236
|
+
endpoint.isSubscribed = false;
|
|
2237
|
+
const err = error instanceof Error ? error : new Error(String(error));
|
|
2238
|
+
this.distributeError(endpoint, err);
|
|
2239
|
+
return;
|
|
2240
|
+
}
|
|
2233
2241
|
const meta = this.getOperationMeta(path);
|
|
2234
2242
|
if (meta?.type === "mutation") {
|
|
2235
2243
|
return;
|
|
2236
2244
|
}
|
|
2237
2245
|
const isSubscription = this.requiresSubscription(path, endpoint.mergedSelection);
|
|
2238
|
-
endpoint.isSubscribed = true;
|
|
2239
2246
|
if (isSubscription) {
|
|
2240
2247
|
const op2 = {
|
|
2241
2248
|
id: this.generateId("subscription", path),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sylphx/lens-solid",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.6",
|
|
4
4
|
"description": "SolidJS bindings for Lens API framework",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"author": "SylphxAI",
|
|
32
32
|
"license": "MIT",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@sylphx/lens-client": "^2.
|
|
34
|
+
"@sylphx/lens-client": "^2.7.1",
|
|
35
35
|
"@sylphx/lens-core": "^2.12.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|