@4c/graphql-subscription-server
Advanced tools
Comparing version 1.0.1 to 1.1.0
@@ -54,5 +54,5 @@ import { GraphQLSchema, ValidationContext } from 'graphql'; | ||
handleSubscribe: ({ id, query, variables }: Subscription, cb?: (() => void) | undefined) => Promise<void>; | ||
handleUnsubscribe: (id: string) => Promise<void>; | ||
handleUnsubscribe: (id: string, cb?: (() => void) | undefined) => Promise<void>; | ||
handleDisconnect: () => Promise<void>; | ||
} | ||
export {}; |
@@ -162,3 +162,3 @@ "use strict"; | ||
this.handleUnsubscribe = async id => { | ||
this.handleUnsubscribe = async (id, cb) => { | ||
const subscriptionContext = this.subscriptionContexts.get(id); | ||
@@ -175,2 +175,3 @@ | ||
this.subscriptionContexts.delete(id); | ||
acknowledge(cb); | ||
}; | ||
@@ -177,0 +178,0 @@ |
{ | ||
"name": "@4c/graphql-subscription-server", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"author": { | ||
@@ -40,3 +40,3 @@ "name": "4Catalyzer" | ||
"@types/express": "^4.17.6", | ||
"@types/jest": "^25.1.3", | ||
"@types/jest": "^26.0.3", | ||
"@types/redis": "^2.8.16", | ||
@@ -59,3 +59,3 @@ "@types/socket.io": "^2.1.6", | ||
"homepage": "https://github.com/4Catalyzer/graphql-subscription-server#readme", | ||
"_id": "@4c/graphql-subscription-server@0.11.0" | ||
"_id": "@4c/graphql-subscription-server@1.0.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
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
30902
723
+ Added@jest/types@26.6.2(transitive)
+ Added@types/istanbul-reports@3.0.4(transitive)
+ Added@types/jest@26.0.24(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addeddiff-sequences@26.6.2(transitive)
+ Addedjest-diff@26.6.2(transitive)
+ Addedjest-get-type@26.3.0(transitive)
+ Addedpretty-format@26.6.2(transitive)
+ Addedreact-is@17.0.2(transitive)
- Removed@jest/types@25.5.0(transitive)
- Removed@types/istanbul-reports@1.1.2(transitive)
- Removed@types/jest@25.2.3(transitive)
- Removedchalk@3.0.0(transitive)
- Removeddiff-sequences@25.2.6(transitive)
- Removedjest-diff@25.5.0(transitive)
- Removedjest-get-type@25.2.6(transitive)
- Removedpretty-format@25.5.0(transitive)
- Removedreact-is@16.13.1(transitive)
Updated@types/jest@^26.0.3