@graphql-yoga/subscription
Advanced tools
Comparing version 5.0.2-alpha-20240728232210-e814a390 to 5.0.2-alpha-20241210123611-f4662dbf9aa3c5cecef72af390b444c23a91d59e
@@ -5,2 +5,3 @@ "use strict"; | ||
const repeater_1 = require("@repeaterjs/repeater"); | ||
const events_1 = require("@whatwg-node/events"); | ||
/** | ||
@@ -15,3 +16,3 @@ * Utility for publishing and subscribing to events. | ||
const topic = args[1] === undefined ? routingKey : `${routingKey}:${args[0]}`; | ||
const event = new CustomEvent(topic, { | ||
const event = new events_1.CustomEvent(topic, { | ||
detail: payload, | ||
@@ -18,0 +19,0 @@ }); |
import { Repeater } from '@repeaterjs/repeater'; | ||
import { CustomEvent } from '@whatwg-node/events'; | ||
/** | ||
@@ -3,0 +4,0 @@ * Utility for publishing and subscribing to events. |
{ | ||
"name": "@graphql-yoga/subscription", | ||
"version": "5.0.2-alpha-20240728232210-e814a390", | ||
"version": "5.0.2-alpha-20241210123611-f4662dbf9aa3c5cecef72af390b444c23a91d59e", | ||
"description": "", | ||
@@ -8,4 +8,5 @@ "sideEffects": true, | ||
"@repeaterjs/repeater": "^3.0.4", | ||
"@whatwg-node/events": "^0.1.0", | ||
"tslib": "^2.5.2", | ||
"@graphql-yoga/typed-event-target": "^3.0.0" | ||
"@graphql-yoga/typed-event-target": "^3.0.1-alpha-20241210123611-f4662dbf9aa3c5cecef72af390b444c23a91d59e" | ||
}, | ||
@@ -12,0 +13,0 @@ "repository": { |
26287
294
4