apollo-link-schema
Advanced tools
Comparing version 1.2.4 to 2.0.0-beta.0
@@ -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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
24186
168
1
+ Added@apollo/client@3.11.8(transitive)
+ Added@graphql-typed-document-node/core@3.2.0(transitive)
+ Added@wry/caches@1.0.1(transitive)
+ Added@wry/context@0.7.4(transitive)
+ Added@wry/equality@0.5.7(transitive)
+ Added@wry/trie@0.4.30.5.0(transitive)
+ Addedgraphql@16.9.0(transitive)
+ Addedgraphql-tag@2.12.6(transitive)
+ Addedhoist-non-react-statics@3.3.2(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedloose-envify@1.4.0(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedoptimism@0.18.0(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedrehackt@0.1.0(transitive)
+ Addedresponse-iterator@0.2.6(transitive)
+ Addedsymbol-observable@4.0.0(transitive)
+ Addedts-invariant@0.10.3(transitive)
+ Addedtslib@2.7.0(transitive)
+ Addedzen-observable-ts@1.2.5(transitive)
- Removedapollo-link@^1.2.13
- Removed@wry/equality@0.1.11(transitive)
- Removedapollo-link@1.2.14(transitive)
- Removedapollo-utilities@1.3.4(transitive)
- Removedfast-json-stable-stringify@2.1.0(transitive)
- Removedts-invariant@0.4.4(transitive)
- Removedzen-observable-ts@0.8.21(transitive)