Socket
Socket
Sign inDemoInstall

graphql-subscriptions

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-subscriptions - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

dist/test/asyncIteratorSubscription.d.ts

9

CHANGELOG.md

@@ -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)

4

dist/with-filter.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc