@graphql-yoga/subscription
Advanced tools
Comparing version 0.0.1-beta.0 to 0.0.2-canary-7506883.0
@@ -40,4 +40,9 @@ 'use strict'; | ||
publish(routingKey, ...args) { | ||
const event = new Event(routingKey); | ||
event.data = args[0]; | ||
var _a; | ||
const payload = (_a = args[1]) !== null && _a !== void 0 ? _a : args[0]; | ||
const topic = args[1] === undefined | ||
? routingKey | ||
: `${routingKey}:${args[0]}`; | ||
const event = new Event(topic); | ||
event.data = payload; | ||
target.dispatchEvent(event); | ||
@@ -44,0 +49,0 @@ }, |
{ | ||
"name": "@graphql-yoga/subscription", | ||
"version": "0.0.1-beta.0", | ||
"version": "0.0.2-canary-7506883.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "dependencies": { |
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
17803
12
344