New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

graphql-ruby-client

Package Overview
Dependencies
Maintainers
1
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-ruby-client - npm Package Compare versions

Comparing version 1.11.7 to 1.11.8

4

CHANGELOG.md
# graphql-ruby-client
# 1.11.8 (9 May 2023)
- ActionCable: accept a custom `channelName` for `createActionCableHandler` and `addGraphQLSubscriptions` #4463
# 1.11.7 (24 February 2023)

@@ -4,0 +8,0 @@

6

package.json
{
"name": "graphql-ruby-client",
"version": "1.11.7",
"version": "1.11.8",
"description": "JavaScript client for graphql-ruby",

@@ -25,3 +25,3 @@ "main": "index.js",

"graphql": ">=15.0.0",
"jest": "^25.0.0",
"jest": "^29.0.0",
"nock": "^11.0.0",

@@ -32,3 +32,3 @@ "pako": "^2.0.3",

"relay-runtime": "11.0.2",
"ts-jest": "^25.2.0",
"ts-jest": "^29.0.0",
"typescript": ">=3.7.5",

@@ -35,0 +35,0 @@ "urql": "^2.2.2"

import { ApolloLink, Observable, FetchResult, NextLink, Operation } from "@apollo/client/core";
import { Realtime } from "ably";
declare type RequestResult = Observable<FetchResult<{
type RequestResult = Observable<FetchResult<{
[key: string]: any;

@@ -5,0 +5,0 @@ }, Record<string, any>, Record<string, any>>>;

import { ApolloLink, Observable, FetchResult, Operation, NextLink } from "@apollo/client/core";
import type { Consumer } from "@rails/actioncable";
declare type RequestResult = FetchResult<{
type RequestResult = FetchResult<{
[key: string]: any;
}, Record<string, any>, Record<string, any>>;
declare type ConnectionParams = object | ((operation: Operation) => object);
type ConnectionParams = object | ((operation: Operation) => object);
declare class ActionCableLink extends ApolloLink {

@@ -8,0 +8,0 @@ cable: Consumer;

@@ -10,3 +10,4 @@ import type { Consumer } from "@rails/actioncable";

_networkInterface: ApolloNetworkInterface;
constructor(cable: Consumer, networkInterface: ApolloNetworkInterface);
_channelName: string;
constructor(cable: Consumer, networkInterface: ApolloNetworkInterface, channelName?: string);
/**

@@ -13,0 +14,0 @@ * Send `request` over ActionCable (`registry._cable`),

@@ -9,5 +9,6 @@ "use strict";

var ActionCableSubscriber = /** @class */ (function () {
function ActionCableSubscriber(cable, networkInterface) {
function ActionCableSubscriber(cable, networkInterface, channelName) {
this._cable = cable;
this._networkInterface = networkInterface;
this._channelName = channelName || "GraphqlChannel";
}

@@ -28,3 +29,3 @@ /**

var channel = this._cable.subscriptions.create({
channel: "GraphqlChannel",
channel: this._channelName,
channelId: channelId,

@@ -31,0 +32,0 @@ }, {

@@ -53,3 +53,4 @@ import Pusher from "pusher-js";

decompress?: (compressed: string) => any;
channelName?: string;
}): any;
export default addGraphQLSubscriptions;

@@ -59,3 +59,3 @@ "use strict";

else if (options.cable) {
subscriber = new ActionCableSubscriber_1.default(options.cable, networkInterface);
subscriber = new ActionCableSubscriber_1.default(options.cable, networkInterface, options.channelName);
}

@@ -62,0 +62,0 @@ else if (options.pusher) {

@@ -32,3 +32,3 @@ "use strict";

if (f) throw new TypeError("Generator is already executing.");
while (_) try {
while (g && (g = 0, op[0] && (_ = 0)), _) try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;

@@ -35,0 +35,0 @@ if (y = 0, t) op = [op[0] & 2, t.value];

@@ -14,2 +14,3 @@ import type { Consumer } from "@rails/actioncable";

};
channelName?: string;
}

@@ -16,0 +17,0 @@ declare function createActionCableHandler(options: ActionCableHandlerOptions): (operation: {

@@ -12,3 +12,3 @@ "use strict";

var channel = cable.subscriptions.create({
channel: "GraphqlChannel",
channel: options.channelName || "GraphqlChannel",
channelId: channelId,

@@ -15,0 +15,0 @@ }, {

import { ApolloLink, Observable, Operation, NextLink, FetchResult } from "@apollo/client/core";
import Pusher from "pusher-js";
declare type RequestResult = FetchResult<{
type RequestResult = FetchResult<{
[key: string]: any;

@@ -5,0 +5,0 @@ }, Record<string, any>, Record<string, any>>;

import Pusher from "pusher-js";
import Urql from "urql";
declare type ForwardCallback = (...args: any[]) => void;
type ForwardCallback = (...args: any[]) => void;
declare const SubscriptionExchange: {

@@ -5,0 +5,0 @@ create(options: {

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