aws-appsync-subscription-link
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="2.4.2"></a> | ||
## [2.4.2](https://github.com/awslabs/aws-mobile-appsync-sdk-js/compare/aws-appsync-subscription-link@2.4.1...aws-appsync-subscription-link@2.4.2) (2022-11-17) | ||
### Bug Fixes | ||
* added check for observer ([#736](https://github.com/awslabs/aws-mobile-appsync-sdk-js/issues/736)) ([758a55e](https://github.com/awslabs/aws-mobile-appsync-sdk-js/commit/758a55e)) | ||
<a name="2.4.1"></a> | ||
@@ -8,0 +19,0 @@ ## [2.4.1](https://github.com/awslabs/aws-mobile-appsync-sdk-js/compare/aws-appsync-subscription-link@2.4.0...aws-appsync-subscription-link@2.4.1) (2022-10-07) |
@@ -742,3 +742,13 @@ "use strict"; | ||
clearTimeout(startAckTimeoutId); | ||
observer.complete(); | ||
if (observer) { | ||
observer.error({ | ||
errors: [ | ||
__assign({}, new graphql_1.GraphQLError("Connection failed: " + JSON.stringify(payload))) | ||
] | ||
}); | ||
observer.complete(); | ||
} | ||
else { | ||
logger("observer not found for id: " + id); | ||
} | ||
if (typeof subscriptionFailedCallback === "function") { | ||
@@ -745,0 +755,0 @@ subscriptionFailedCallback(); |
{ | ||
"name": "aws-appsync-subscription-link", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"main": "lib/index.js", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
295390
6486