@graphql-tools/executor-legacy-ws
Advanced tools
Comparing version 1.0.7-alpha-20240620034109-2a2878866aed08fedf5baaa5878414b9de79fdb2 to 1.1.0-alpha-20240705095940-3ce4d8846c1d2640ad958b9619c1a6912f2e6f10
@@ -69,3 +69,3 @@ "use strict"; | ||
}; | ||
return function legacyExecutor(request) { | ||
const executor = function legacyExecutor(request) { | ||
// additional connection params can be supplied through the "connectionParams" field in extensions. | ||
@@ -150,3 +150,5 @@ // TODO: connection params only from the FIRST operation in lazy mode will be used (detect connectionParams changes and reconnect, too implicit?) | ||
}; | ||
executor[Symbol.dispose] = cleanupWebsocket; | ||
return executor; | ||
} | ||
exports.buildWSLegacyExecutor = buildWSLegacyExecutor; |
import { print } from 'graphql'; | ||
import WebSocket from 'isomorphic-ws'; | ||
import { observableToAsyncIterable } from '@graphql-tools/utils'; | ||
import { observableToAsyncIterable, } from '@graphql-tools/utils'; | ||
export var LEGACY_WS; | ||
@@ -65,3 +65,3 @@ (function (LEGACY_WS) { | ||
}; | ||
return function legacyExecutor(request) { | ||
const executor = function legacyExecutor(request) { | ||
// additional connection params can be supplied through the "connectionParams" field in extensions. | ||
@@ -146,2 +146,4 @@ // TODO: connection params only from the FIRST operation in lazy mode will be used (detect connectionParams changes and reconnect, too implicit?) | ||
}; | ||
executor[Symbol.dispose] = cleanupWebsocket; | ||
return executor; | ||
} |
{ | ||
"name": "@graphql-tools/executor-legacy-ws", | ||
"version": "1.0.7-alpha-20240620034109-2a2878866aed08fedf5baaa5878414b9de79fdb2", | ||
"version": "1.1.0-alpha-20240705095940-3ce4d8846c1d2640ad958b9619c1a6912f2e6f10", | ||
"description": "A set of utils for faster development of GraphQL tools", | ||
@@ -10,7 +10,7 @@ "sideEffects": false, | ||
"dependencies": { | ||
"@graphql-tools/utils": "10.3.0-alpha-20240620034109-2a2878866aed08fedf5baaa5878414b9de79fdb2", | ||
"@graphql-tools/utils": "10.3.0-alpha-20240705095940-3ce4d8846c1d2640ad958b9619c1a6912f2e6f10", | ||
"@types/ws": "^8.0.0", | ||
"isomorphic-ws": "^5.0.0", | ||
"tslib": "^2.4.0", | ||
"ws": "^8.15.0" | ||
"ws": "^8.17.1" | ||
}, | ||
@@ -17,0 +17,0 @@ "repository": { |
/// <reference types="ws" /> | ||
import WebSocket from 'isomorphic-ws'; | ||
import { Executor } from '@graphql-tools/utils'; | ||
import { DisposableExecutor } from '@graphql-tools/utils'; | ||
export declare enum LEGACY_WS { | ||
@@ -20,2 +20,2 @@ CONNECTION_INIT = "connection_init", | ||
} | ||
export declare function buildWSLegacyExecutor(subscriptionsEndpoint: string, WebSocketImpl: typeof WebSocket, options?: LegacyWSExecutorOpts): Executor; | ||
export declare function buildWSLegacyExecutor(subscriptionsEndpoint: string, WebSocketImpl: typeof WebSocket, options?: LegacyWSExecutorOpts): DisposableExecutor; |
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
16140
319
+ Added@graphql-tools/utils@10.3.0-alpha-20240705095940-3ce4d8846c1d2640ad958b9619c1a6912f2e6f10(transitive)
+ Added@types/node@22.10.0(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@graphql-tools/utils@10.3.0-alpha-20240620034109-2a2878866aed08fedf5baaa5878414b9de79fdb2(transitive)
- Removed@types/node@22.9.3(transitive)
- Removeddlv@1.1.3(transitive)
- Removedundici-types@6.19.8(transitive)
Updated@graphql-tools/utils@10.3.0-alpha-20240705095940-3ce4d8846c1d2640ad958b9619c1a6912f2e6f10
Updatedws@^8.17.1