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.8.2 to 1.9.0

cli.d.ts

5

CHANGELOG.md
# graphql-ruby-client
## 1.9.0 (10 Feb 2021)
- Move "compiled" `.js` files into the root directory of the published NPM package (instead of `dist/`). To upgrade, remove `dist/` from your import paths. (These files will be treated as public APIs in their own right, exposed independently to support smaller bundle sizes.) #2768
- Upgrade dependency from `apollo-link` to `@apollo/client` #3270
## 1.8.2 (2 Feb 2021)

@@ -4,0 +9,0 @@

3

dist/subscriptions/AblyLink.d.ts

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

import { ApolloLink, Observable, FetchResult, NextLink, Operation } from "apollo-link";
/// <reference types="zen-observable" />
import { ApolloLink, Observable, FetchResult, NextLink, Operation } from "@apollo/client";
import { Realtime } from "ably";

@@ -3,0 +4,0 @@ declare type RequestResult = Observable<FetchResult<{

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

//
var apollo_link_1 = require("apollo-link");
var client_1 = require("@apollo/client");
var AblyLink = /** @class */ (function (_super) {

@@ -66,3 +66,3 @@ __extends(AblyLink, _super);

var _this = this;
return new apollo_link_1.Observable(function (observer) {
return new client_1.Observable(function (observer) {
// Check the result of the operation

@@ -128,3 +128,3 @@ forward(operation).subscribe({ next: function (data) {

return AblyLink;
}(apollo_link_1.ApolloLink));
}(client_1.ApolloLink));
exports.default = AblyLink;

@@ -1,6 +0,7 @@

import { ApolloLink, Observable, FetchResult, Operation, NextLink } from "apollo-link";
/// <reference types="zen-observable" />
import { ApolloLink, Observable, FetchResult, Operation, NextLink } from "@apollo/client";
import { Cable } from "actioncable";
declare type RequestResult = Observable<FetchResult<{
declare type RequestResult = FetchResult<{
[key: string]: any;
}, Record<string, any>, Record<string, any>>>;
}, Record<string, any>, Record<string, any>>;
declare class ActionCableLink extends ApolloLink {

@@ -17,4 +18,4 @@ cable: Cable;

});
request(operation: Operation, _next: NextLink): RequestResult;
request(operation: Operation, _next: NextLink): Observable<RequestResult>;
}
export default ActionCableLink;

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

Object.defineProperty(exports, "__esModule", { value: true });
var apollo_link_1 = require("apollo-link");
var client_1 = require("@apollo/client");
var graphql_1 = require("graphql");

@@ -33,3 +33,3 @@ var ActionCableLink = /** @class */ (function (_super) {

var _this = this;
return new apollo_link_1.Observable(function (observer) {
return new client_1.Observable(function (observer) {
var channelId = Math.round(Date.now() + Math.random() * 100000).toString(16);

@@ -64,3 +64,3 @@ var actionName = _this.actionName;

return ActionCableLink;
}(apollo_link_1.ApolloLink));
}(client_1.ApolloLink));
exports.default = ActionCableLink;

@@ -1,6 +0,7 @@

import { ApolloLink, Observable, Operation, NextLink, FetchResult } from "apollo-link";
/// <reference types="zen-observable" />
import { ApolloLink, Observable, Operation, NextLink, FetchResult } from "@apollo/client";
import Pusher from "pusher-js";
declare type RequestResult = Observable<FetchResult<{
declare type RequestResult = FetchResult<{
[key: string]: any;
}, Record<string, any>, Record<string, any>>>;
}, Record<string, any>, Record<string, any>>;
declare class PusherLink extends ApolloLink {

@@ -13,3 +14,3 @@ pusher: Pusher;

});
request(operation: Operation, forward: NextLink): RequestResult;
request(operation: Operation, forward: NextLink): Observable<RequestResult>;
_onUpdate(subscriptionChannel: string, observer: {

@@ -24,12 +25,2 @@ next: Function;

}
declare function getObserver(observerOrNext: Function | {
next: Function;
error: Function;
complete: Function;
}, onError: Function, onComplete: Function): {
next: (v: object) => any;
error: (e: object) => any;
complete: () => any;
};
export default PusherLink;
export { getObserver };

@@ -16,3 +16,2 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.getObserver = void 0;
// An Apollo Link for using graphql-pro's Pusher subscriptions

@@ -54,3 +53,3 @@ //

//
var apollo_link_1 = require("apollo-link");
var client_1 = require("@apollo/client");
var PusherLink = /** @class */ (function (_super) {

@@ -74,3 +73,3 @@ __extends(PusherLink, _super);

var _this = this;
var subscribeObservable = new apollo_link_1.Observable(function (_observer) { });
var subscribeObservable = new client_1.Observable(function (_observer) { });
// Capture the super method

@@ -82,3 +81,8 @@ var prevSubscribe = subscribeObservable.subscribe.bind(subscribeObservable);

// Call super
prevSubscribe(observerOrNext, onError, onComplete);
if (typeof (observerOrNext) == "function") {
prevSubscribe(observerOrNext, onError, onComplete);
}
else {
prevSubscribe(observerOrNext);
}
var observer = getObserver(observerOrNext, onError, onComplete);

@@ -120,7 +124,2 @@ var subscriptionChannel;

PusherLink.prototype._onUpdate = function (subscriptionChannel, observer, payload) {
if (!payload.more) {
// This is the end, the server says to unsubscribe
this.pusher.unsubscribe(subscriptionChannel);
observer.complete();
}
var result;

@@ -137,7 +136,12 @@ if (payload.compressed_result) {

}
if (!payload.more) {
// This is the end, the server says to unsubscribe
this.pusher.unsubscribe(subscriptionChannel);
observer.complete();
}
};
return PusherLink;
}(apollo_link_1.ApolloLink));
}(client_1.ApolloLink));
// Turn `subscribe` arguments into an observer-like thing, see getObserver
// https://github.com/apollographql/subscriptions-transport-ws/blob/master/src/client.ts#L329-L343
// https://github.com/apollographql/subscriptions-transport-ws/blob/master/src/client.ts#L347-L361
function getObserver(observerOrNext, onError, onComplete) {

@@ -161,3 +165,2 @@ if (typeof observerOrNext === 'function') {

}
exports.getObserver = getObserver;
exports.default = PusherLink;

@@ -7,3 +7,3 @@ module.exports = {

testMatch: [
"**/__tests__/**/*.ts",
"**/__tests__/**/[^.]+.ts",
],

@@ -10,0 +10,0 @@ transform: {

{
"name": "graphql-ruby-client",
"version": "1.8.2",
"version": "1.9.0",
"description": "JavaScript client for graphql-ruby",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "index.js",
"types": "index.d.ts",
"repository": "https://github.com/rmosolgo/graphql-ruby",
"author": "Robert Mosolgo",
"license": "LGPL-3.0",
"bin": "./dist/cli.js",
"bin": "./cli.js",
"devDependencies": {

@@ -17,2 +17,4 @@ "@types/glob": "^7.1.1",

"@types/pako": "^1.0.1",
"@types/react": "^17.0.0",
"@types/zen-observable": "^0.8.2",
"ably": "^1.2.4",

@@ -24,2 +26,3 @@ "jest": "^25.0.0",

"pusher-js": "^7.0.3",
"react": "^17.0.1",
"ts-jest": "^25.2.0"

@@ -32,9 +35,9 @@ },

"dependencies": {
"@types/ably": "^1.0.0",
"@apollo/client": "^3.3.6",
"@types/actioncable": "^5.2.3",
"@types/pusher-js": "^4.2.2",
"apollo-link": "^1.2.12",
"glob": "^7.1.4",
"graphql": "^14.3.1",
"minimist": "^1.2.0",
"request": "^2.88.2",
"typescript": "^3.7.5"

@@ -41,0 +44,0 @@ },

{
"include": ["./src"],
"exclude": ["**/*.js"],
"compilerOptions": {

@@ -15,3 +17,3 @@ /* Basic Options */

// "outFile": "./", /* Concatenate and emit output to single file. */
"outDir": "./dist", /* Redirect output structure to the directory. */
"outDir": "./", /* Redirect output structure to the directory. */
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */

@@ -18,0 +20,0 @@ // "composite": true, /* Enable project compilation */

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