graphql-ruby-client
Advanced tools
Comparing version 1.11.8 to 1.11.9
# graphql-ruby-client | ||
# 1.11.9 (1 Sept 2023) | ||
- `createRelaySubscriptionHandler`: fix error handling in handler functions #4603 | ||
# 1.11.8 (9 May 2023) | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "graphql-ruby-client", | ||
"version": "1.11.8", | ||
"version": "1.11.9", | ||
"description": "JavaScript client for graphql-ruby", | ||
@@ -32,3 +32,3 @@ "main": "index.js", | ||
"ts-jest": "^29.0.0", | ||
"typescript": ">=3.7.5", | ||
"typescript": "5.1.6", | ||
"urql": "^2.2.2" | ||
@@ -35,0 +35,0 @@ }, |
@@ -109,2 +109,7 @@ "use strict"; | ||
var payload = message.data; | ||
var result = payload.result; | ||
if (result) { | ||
// Send the new response to listeners | ||
observer.next(result); | ||
} | ||
if (!payload.more) { | ||
@@ -121,7 +126,2 @@ // This is the end, the server says to unsubscribe | ||
} | ||
var result = payload.result; | ||
if (result) { | ||
// Send the new response to listeners | ||
observer.next(result); | ||
} | ||
}); | ||
@@ -128,0 +128,0 @@ }; |
@@ -55,5 +55,2 @@ "use strict"; | ||
received: function (payload) { | ||
if (!payload.more) { | ||
registry_1.default.unsubscribe(id); | ||
} | ||
var result = payload.result; | ||
@@ -63,2 +60,5 @@ if (result) { | ||
} | ||
if (!payload.more) { | ||
registry_1.default.unsubscribe(id); | ||
} | ||
}, | ||
@@ -65,0 +65,0 @@ }); |
@@ -58,3 +58,3 @@ "use strict"; | ||
}, | ||
onComplete: observer.complete, | ||
onCompleted: observer.complete, | ||
}); | ||
@@ -61,0 +61,0 @@ return { |
@@ -62,5 +62,2 @@ "use strict"; | ||
pusherChannel.bind("update", function (payload) { | ||
if (!payload.more) { | ||
registry_1.default.unsubscribe(id); | ||
} | ||
var result = payload.compressed_result ? decompress(payload.compressed_result) : payload.result; | ||
@@ -70,2 +67,5 @@ if (result) { | ||
} | ||
if (!payload.more) { | ||
registry_1.default.unsubscribe(id); | ||
} | ||
}); | ||
@@ -72,0 +72,0 @@ }); |
130828