graphql-subscriptions
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -6,2 +6,11 @@ # Changelog | ||
### 0.4.3 | ||
- Properly propagate return() and throw() through withFilter [PR #74](https://github.com/apollographql/graphql-subscriptions/pull/74) | ||
### 0.4.2 | ||
- Fixed issue with `withFilter` causing to use the same iterator [PR #69](https://github.com/apollographql/graphql-subscriptions/pull/69) | ||
### 0.4.1 | ||
- Fixed exports issue with TypeScript [PR #65](https://github.com/apollographql/graphql-subscriptions/pull/65) | ||
### 0.4.0 | ||
@@ -8,0 +17,0 @@ - Added `asyncIterator(channelName: string)` to `PubSub` implementation [PR #60](https://github.com/apollographql/graphql-subscriptions/pull/60) |
@@ -27,6 +27,6 @@ "use strict"; | ||
return: function () { | ||
return Promise.resolve({ value: undefined, done: true }); | ||
return asyncIterator.return(); | ||
}, | ||
throw: function (error) { | ||
return Promise.reject(error); | ||
return asyncIterator.throw(error); | ||
} | ||
@@ -33,0 +33,0 @@ }, |
{ | ||
"name": "graphql-subscriptions", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "GraphQL subscriptions for node.js", | ||
@@ -25,3 +25,3 @@ "main": "dist/index.js", | ||
"watch": "tsc -w", | ||
"testonly": "mocha --reporter spec --full-trace ./dist/test/tests.js", | ||
"testonly": "mocha --reporter spec --full-trace ./dist/test/tests.js ./dist/test/asyncIteratorSubscription.js ", | ||
"coverage": "node ./node_modules/istanbul/lib/cli.js cover _mocha -- --full-trace ./dist/test/tests.js", | ||
@@ -28,0 +28,0 @@ "postcoverage": "remap-istanbul --input coverage/coverage.raw.json --type lcovonly --output coverage/lcov.info" |
@@ -121,3 +121,3 @@ [![npm version](https://badge.fury.io/js/graphql-subscriptions.svg)](https://badge.fury.io/js/graphql-subscriptions) [![GitHub license](https://img.shields.io/github/license/apollostack/graphql-subscriptions.svg)](https://github.com/apollostack/graphql-subscriptions/blob/license/LICENSE) | ||
You can also manipulate the published payload, by adding `resovle` methods to your subscription: | ||
You can also manipulate the published payload, by adding `resolve` methods to your subscription: | ||
@@ -124,0 +124,0 @@ ```js |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
133976
42
1004