@rxdi/graphql-pubsub 0.7.206 → 0.7.207
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.
|
@@ -9,5 +9,6 @@ export declare class PubSubService {
|
|
|
9
9
|
sub: AmqpPubSub | PubSub;
|
|
10
10
|
constructor(config: GRAPHQL_PUB_SUB_DI_CONFIG, logger: PubSubLogger);
|
|
11
11
|
asyncIterator<T>(event: any, options?: any): AsyncIterator<T>;
|
|
12
|
+
asyncIterableIterator<T>(event: any, options?: any): AsyncIterator<T>;
|
|
12
13
|
publish(signal: string, data: any): Promise<void>;
|
|
13
14
|
}
|
|
@@ -35,8 +35,13 @@ let PubSubService = class PubSubService {
|
|
|
35
35
|
this.sub = new graphql_subscriptions_1.PubSub();
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
+
/* Old version before 3.0.0 of async iterator inside graphql-subscriptions */
|
|
38
39
|
asyncIterator(event, options) {
|
|
39
|
-
return this
|
|
40
|
+
return this.sub.asyncIterableIterator(event, options);
|
|
41
|
+
}
|
|
42
|
+
/* New version of graphql-subscriptions async iterator */
|
|
43
|
+
asyncIterableIterator(event, options) {
|
|
44
|
+
return this.sub.asyncIterableIterator(event, options);
|
|
40
45
|
}
|
|
41
46
|
publish(signal, data) {
|
|
42
47
|
return this.sub.publish(signal, data);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rxdi/graphql-pubsub",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.207",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/rxdi/graphql-pubsub"
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
},
|
|
31
31
|
"homepage": "https://github.com/rxdi/graphql-pubsub#readme",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@rxdi/graphql-rabbitmq-subscriptions": "^0.7.
|
|
33
|
+
"@rxdi/graphql-rabbitmq-subscriptions": "^0.7.206",
|
|
34
34
|
"subscriptions-transport-ws": "^0.9.19"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@rxdi/core": "^0.7.
|
|
38
|
-
"@rxdi/graphql": "^0.7.
|
|
39
|
-
"@rxdi/hapi": "^0.7.
|
|
37
|
+
"@rxdi/core": "^0.7.206",
|
|
38
|
+
"@rxdi/graphql": "^0.7.206",
|
|
39
|
+
"@rxdi/hapi": "^0.7.206",
|
|
40
40
|
"@types/graphql": "^14.5.0",
|
|
41
41
|
"@types/hapi": "^18.0.4",
|
|
42
42
|
"@types/jest": "^24.0.22",
|