Socket
Socket
Sign inDemoInstall

apollo-link-schema

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-link-schema - npm Package Compare versions

Comparing version 1.2.4 to 2.0.0-beta.0

7

lib/bundle.cjs.js

@@ -6,3 +6,3 @@ 'use strict';

var tslib = require('tslib');
var apolloLink = require('apollo-link');
var core = require('@apollo/client/core');
var execute = require('graphql/execution/execute');

@@ -22,3 +22,3 @@

var _this = this;
return new apolloLink.Observable(function (observer) {
return new core.Observable(function (observer) {
Promise.resolve(execute.execute(_this.schema, operation.query, _this.rootValue, typeof _this.context === 'function'

@@ -41,6 +41,5 @@ ? _this.context(operation)

return SchemaLink;
}(apolloLink.ApolloLink));
}(core.ApolloLink));
exports.SchemaLink = SchemaLink;
exports.default = SchemaLink;
//# sourceMappingURL=bundle.cjs.js.map
import { __extends } from 'tslib';
import { Observable, ApolloLink } from 'apollo-link';
import { Observable, ApolloLink } from '@apollo/client/core';
import { execute } from 'graphql/execution/execute';

@@ -37,4 +37,3 @@

export default SchemaLink;
export { SchemaLink };
//# sourceMappingURL=bundle.esm.js.map
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('apollo-link'), require('graphql/execution/execute')) :
typeof define === 'function' && define.amd ? define(['exports', 'tslib', 'apollo-link', 'graphql/execution/execute'], factory) :
(global = global || self, factory((global.apolloLink = global.apolloLink || {}, global.apolloLink.schema = {}), global.tslib, global.apolloLink.core, global.graphql.execute));
}(this, function (exports, tslib_1, apolloLink, execute) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('@apollo/client/core'), require('graphql/execution/execute')) :
typeof define === 'function' && define.amd ? define(['exports', 'tslib', '@apollo/client/core', 'graphql/execution/execute'], factory) :
(global = global || self, factory((global.apolloLink = global.apolloLink || {}, global.apolloLink.schema = {}), global.tslib, global.apollo.core, global.graphql.execute));
}(this, (function (exports, tslib_1, core, execute) { 'use strict';

@@ -19,3 +19,3 @@ var SchemaLink = (function (_super) {

var _this = this;
return new apolloLink.Observable(function (observer) {
return new core.Observable(function (observer) {
Promise.resolve(execute.execute(_this.schema, operation.query, _this.rootValue, typeof _this.context === 'function'

@@ -38,10 +38,9 @@ ? _this.context(operation)

return SchemaLink;
}(apolloLink.ApolloLink));
}(core.ApolloLink));
exports.SchemaLink = SchemaLink;
exports.default = SchemaLink;
Object.defineProperty(exports, '__esModule', { value: true });
}));
})));
//# sourceMappingURL=bundle.umd.js.map

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

import { ApolloLink, Operation, FetchResult, Observable } from 'apollo-link';
import { ApolloLink, Operation, FetchResult, Observable } from '@apollo/client/core';
import { GraphQLSchema } from 'graphql/type/schema';

@@ -18,3 +18,2 @@ export declare namespace SchemaLink {

}
export default SchemaLink;
//# sourceMappingURL=index.d.ts.map
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var apollo_link_1 = require("apollo-link");
var core_1 = require("@apollo/client/core");
var execute_1 = require("graphql/execution/execute");

@@ -18,3 +18,3 @@ var SchemaLink = (function (_super) {

var _this = this;
return new apollo_link_1.Observable(function (observer) {
return new core_1.Observable(function (observer) {
Promise.resolve(execute_1.execute(_this.schema, operation.query, _this.rootValue, typeof _this.context === 'function'

@@ -37,5 +37,4 @@ ? _this.context(operation)

return SchemaLink;
}(apollo_link_1.ApolloLink));
}(core_1.ApolloLink));
exports.SchemaLink = SchemaLink;
exports.default = SchemaLink;
//# sourceMappingURL=index.js.map
{
"name": "apollo-link-schema",
"version": "1.2.4",
"version": "2.0.0-beta.0",
"description": "Use a GraphQL Schema to request data",

@@ -39,3 +39,3 @@ "author": "Tomas Trescak <tomi.trescak@gmail.com>",

"dependencies": {
"apollo-link": "^1.2.13",
"@apollo/client": "^3.0.0-beta.10",
"tslib": "^1.9.3"

@@ -48,4 +48,4 @@ },

"@types/graphql": "14.2.3",
"@types/jest": "24.0.18",
"graphql": "14.5.4",
"@types/jest": "24.0.23",
"graphql": "14.5.8",
"graphql-tag": "2.10.1",

@@ -55,5 +55,5 @@ "graphql-tools": "2.24.0",

"rimraf": "2.7.1",
"rollup": "1.20.3",
"rollup": "1.27.0",
"ts-jest": "22.4.6",
"tslint": "5.17.0",
"tslint": "5.20.1",
"typescript": "3.0.3"

@@ -74,3 +74,3 @@ },

},
"gitHead": "74d412528dd474fc41ee0bf504e36e01d7e05e2b"
"gitHead": "150213d6b1ee2ecf5a6c8f7f46acf53b639edb0d"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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