Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@graphql-yoga/subscription

Package Overview
Dependencies
Maintainers
4
Versions
1266
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-yoga/subscription - npm Package Compare versions

Comparing version 2.1.0-canary-80e0902.0 to 2.1.0-canary-a4b1097.0

1

cjs/createPubSub.js

@@ -67,2 +67,1 @@ "use strict";

exports.createPubSub = createPubSub;
//# sourceMappingURL=createPubSub.js.map

@@ -14,2 +14,1 @@ "use strict";

Object.defineProperty(exports, "pipe", { enumerable: true, get: function () { return pipe_js_1.pipe; } });
//# sourceMappingURL=index.js.map

@@ -22,2 +22,1 @@ "use strict";

exports.filter = filter;
//# sourceMappingURL=filter.js.map

@@ -21,2 +21,1 @@ "use strict";

exports.map = map;
//# sourceMappingURL=map.js.map
"use strict";
// extends EventTarget types and adds typed Events
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=typed-event-target.js.map

@@ -33,2 +33,1 @@ "use strict";

exports.pipe = pipe;
//# sourceMappingURL=pipe.js.map

11

esm/createPubSub.js

@@ -1,2 +0,5 @@

import { Repeater } from '@repeaterjs/repeater';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.createPubSub = void 0;
const repeater_1 = require("@repeaterjs/repeater");
const resolveGlobalConfig = (api = globalThis) => {

@@ -34,3 +37,3 @@ if (!api.Event || !api.EventTarget) {

*/
export const createPubSub = (config) => {
const createPubSub = (config) => {
var _a;

@@ -52,3 +55,3 @@ const { Event, EventTarget } = resolveGlobalConfig(config === null || config === void 0 ? void 0 : config.event);

const topic = id === undefined ? routingKey : `${routingKey}:${id}`;
return new Repeater(function subscriptionRepeater(next, stop) {
return new repeater_1.Repeater(function subscriptionRepeater(next, stop) {
stop.then(function subscriptionRepeaterStopHandler() {

@@ -65,2 +68,2 @@ target.removeEventListener(topic, pubsubEventListener);

};
//# sourceMappingURL=createPubSub.js.map
exports.createPubSub = createPubSub;

@@ -1,6 +0,13 @@

export { Repeater } from '@repeaterjs/repeater';
export { createPubSub } from './createPubSub.js';
export { map } from './operator/map.js';
export { filter } from './operator/filter.js';
export { pipe } from './utils/pipe.js';
//# sourceMappingURL=index.js.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pipe = exports.filter = exports.map = exports.createPubSub = exports.Repeater = void 0;
var repeater_1 = require("@repeaterjs/repeater");
Object.defineProperty(exports, "Repeater", { enumerable: true, get: function () { return repeater_1.Repeater; } });
var createPubSub_js_1 = require("./createPubSub.js");
Object.defineProperty(exports, "createPubSub", { enumerable: true, get: function () { return createPubSub_js_1.createPubSub; } });
var map_js_1 = require("./operator/map.js");
Object.defineProperty(exports, "map", { enumerable: true, get: function () { return map_js_1.map; } });
var filter_js_1 = require("./operator/filter.js");
Object.defineProperty(exports, "filter", { enumerable: true, get: function () { return filter_js_1.filter; } });
var pipe_js_1 = require("./utils/pipe.js");
Object.defineProperty(exports, "pipe", { enumerable: true, get: function () { return pipe_js_1.pipe; } });

@@ -1,4 +0,7 @@

import { Repeater } from '@repeaterjs/repeater';
export function filter(filter) {
return (source) => new Repeater(async (push, stop) => {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.filter = void 0;
const repeater_1 = require("@repeaterjs/repeater");
function filter(filter) {
return (source) => new repeater_1.Repeater(async (push, stop) => {
const iterable = source[Symbol.asyncIterator]();

@@ -18,2 +21,2 @@ stop.then(() => {

}
//# sourceMappingURL=filter.js.map
exports.filter = filter;

@@ -1,6 +0,9 @@

import { Repeater } from '@repeaterjs/repeater';
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.map = void 0;
const repeater_1 = require("@repeaterjs/repeater");
/**
* Utility for mapping an event stream.
*/
export const map = (mapper) => (source) => new Repeater(async (push, stop) => {
const map = (mapper) => (source) => new repeater_1.Repeater(async (push, stop) => {
const iterable = source[Symbol.asyncIterator]();

@@ -17,2 +20,2 @@ stop.then(() => {

});
//# sourceMappingURL=map.js.map
exports.map = map;

@@ -0,3 +1,3 @@

"use strict";
// extends EventTarget types and adds typed Events
export {};
//# sourceMappingURL=typed-event-target.js.map
Object.defineProperty(exports, "__esModule", { value: true });

@@ -1,2 +0,5 @@

export function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pipe = void 0;
function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
switch (arguments.length) {

@@ -29,2 +32,2 @@ case 1:

}
//# sourceMappingURL=pipe.js.map
exports.pipe = pipe;
{
"name": "@graphql-yoga/subscription",
"version": "2.1.0-canary-80e0902.0",
"version": "2.1.0-canary-a4b1097.0",
"description": "",

@@ -5,0 +5,0 @@ "dependencies": {

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