This commit is contained in:
43
node_modules/apollo-link-context/CHANGELOG.md
generated
vendored
Normal file
43
node_modules/apollo-link-context/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,43 @@
|
||||
# Change log
|
||||
|
||||
----
|
||||
|
||||
**NOTE:** This changelog is no longer maintained. Changes are now tracked in
|
||||
the top level [`CHANGELOG.md`](https://github.com/apollographql/apollo-link/blob/master/CHANGELOG.md).
|
||||
|
||||
----
|
||||
|
||||
### 1.0.10
|
||||
|
||||
- No changes
|
||||
|
||||
### 1.0.9
|
||||
- Added `graphql` 14 to peer and dev deps; Updated `@types/graphql` to 14 <br/>
|
||||
[@hwillson](http://github.com/hwillson) in [#789](https://github.com/apollographql/apollo-link/pull/789)
|
||||
|
||||
### 1.0.7
|
||||
- Update apollo-link [#559](https://github.com/apollographql/apollo-link/pull/559)
|
||||
|
||||
### 1.0.6
|
||||
- udate apollo link with zen-observable-ts [PR#515](https://github.com/apollographql/apollo-link/pull/515)
|
||||
|
||||
### 1.0.5
|
||||
- ApolloLink upgrade
|
||||
|
||||
### 1.0.4
|
||||
- ApolloLink upgrade
|
||||
|
||||
### 1.0.3
|
||||
- update rollup build
|
||||
|
||||
### 1.0.2
|
||||
- changed peer-dependency of apollo-link to actual dependency
|
||||
|
||||
### 1.0.1
|
||||
- moved to better rollup build
|
||||
|
||||
### 1.0.0
|
||||
- bump to major to signal API stability
|
||||
|
||||
### 0.1.0
|
||||
- initial release
|
||||
21
node_modules/apollo-link-context/LICENSE
generated
vendored
Normal file
21
node_modules/apollo-link-context/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2016 - 2017 Meteor Development Group, Inc.
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
58
node_modules/apollo-link-context/README.md
generated
vendored
Normal file
58
node_modules/apollo-link-context/README.md
generated
vendored
Normal file
@@ -0,0 +1,58 @@
|
||||
---
|
||||
title: apollo-link-context
|
||||
description: Easily set a context on your operation, which is used by other links further down the chain.
|
||||
---
|
||||
|
||||
The `setContext` function takes a function that returns either an object or a promise that returns an object to set the new context of a request.
|
||||
|
||||
It receives two arguments: the GraphQL request being executed, and the previous context. This link makes it easy to perform async look up of things like authentication tokens and more!
|
||||
|
||||
```js
|
||||
import { setContext } from "apollo-link-context";
|
||||
|
||||
const setAuthorizationLink = setContext((request, previousContext) => ({
|
||||
headers: {authorization: "1234"}
|
||||
}));
|
||||
|
||||
const asyncAuthLink = setContext(
|
||||
request =>
|
||||
new Promise((success, fail) => {
|
||||
// do some async lookup here
|
||||
setTimeout(() => {
|
||||
success({ token: "async found token" });
|
||||
}, 10);
|
||||
})
|
||||
);
|
||||
```
|
||||
|
||||
## Caching lookups
|
||||
|
||||
Typically async actions can be expensive and may not need to be called for every request, especially when a lot of request are happening at once. You can setup your own caching and invalidation outside of the link to make it faster but still flexible!
|
||||
|
||||
Take for example a user auth token being found, cached, then removed on a 401 response:
|
||||
|
||||
```js
|
||||
import { setContext } from "apollo-link-context";
|
||||
import { onError } from "apollo-link-error";
|
||||
|
||||
// cached storage for the user token
|
||||
let token;
|
||||
const withToken = setContext(() => {
|
||||
// if you have a cached value, return it immediately
|
||||
if (token) return { token };
|
||||
|
||||
return AsyncTokenLookup().then(userToken => {
|
||||
token = userToken;
|
||||
return { token };
|
||||
});
|
||||
});
|
||||
|
||||
const resetToken = onError(({ networkError }) => {
|
||||
if (networkError && networkError.name ==='ServerError' && networkError.statusCode === 401) {
|
||||
// remove cached token on 401 from the server
|
||||
token = null;
|
||||
}
|
||||
});
|
||||
|
||||
const authFlowLink = withToken.concat(resetToken);
|
||||
```
|
||||
33
node_modules/apollo-link-context/lib/bundle.cjs.js
generated
vendored
Normal file
33
node_modules/apollo-link-context/lib/bundle.cjs.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
var tslib = require('tslib');
|
||||
var apolloLink = require('apollo-link');
|
||||
|
||||
function setContext(setter) {
|
||||
return new apolloLink.ApolloLink(function (operation, forward) {
|
||||
var request = tslib.__rest(operation, []);
|
||||
return new apolloLink.Observable(function (observer) {
|
||||
var handle;
|
||||
Promise.resolve(request)
|
||||
.then(function (req) { return setter(req, operation.getContext()); })
|
||||
.then(operation.setContext)
|
||||
.then(function () {
|
||||
handle = forward(operation).subscribe({
|
||||
next: observer.next.bind(observer),
|
||||
error: observer.error.bind(observer),
|
||||
complete: observer.complete.bind(observer),
|
||||
});
|
||||
})
|
||||
.catch(observer.error.bind(observer));
|
||||
return function () {
|
||||
if (handle)
|
||||
handle.unsubscribe();
|
||||
};
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
exports.setContext = setContext;
|
||||
//# sourceMappingURL=bundle.cjs.js.map
|
||||
1
node_modules/apollo-link-context/lib/bundle.cjs.js.map
generated
vendored
Normal file
1
node_modules/apollo-link-context/lib/bundle.cjs.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bundle.cjs.js","sources":["bundle.esm.js"],"sourcesContent":["import { __rest } from 'tslib';\nimport { ApolloLink, Observable } from 'apollo-link';\n\nfunction setContext(setter) {\n return new ApolloLink(function (operation, forward) {\n var request = __rest(operation, []);\n return new Observable(function (observer) {\n var handle;\n Promise.resolve(request)\n .then(function (req) { return setter(req, operation.getContext()); })\n .then(operation.setContext)\n .then(function () {\n handle = forward(operation).subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer),\n });\n })\n .catch(observer.error.bind(observer));\n return function () {\n if (handle)\n handle.unsubscribe();\n };\n });\n });\n}\n\nexport { setContext };\n//# sourceMappingURL=bundle.esm.js.map\n"],"names":["ApolloLink","__rest","Observable"],"mappings":";;;;;;;AAGA,SAAS,UAAU,CAAC,MAAM,EAAE;AAC5B,IAAI,OAAO,IAAIA,qBAAU,CAAC,UAAU,SAAS,EAAE,OAAO,EAAE;AACxD,QAAQ,IAAI,OAAO,GAAGC,YAAM,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;AAC5C,QAAQ,OAAO,IAAIC,qBAAU,CAAC,UAAU,QAAQ,EAAE;AAClD,YAAY,IAAI,MAAM,CAAC;AACvB,YAAY,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;AACpC,iBAAiB,IAAI,CAAC,UAAU,GAAG,EAAE,EAAE,OAAO,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC,EAAE,CAAC;AACrF,iBAAiB,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;AAC3C,iBAAiB,IAAI,CAAC,YAAY;AAClC,gBAAgB,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;AACtD,oBAAoB,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;AACtD,oBAAoB,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;AACxD,oBAAoB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;AAC9D,iBAAiB,CAAC,CAAC;AACnB,aAAa,CAAC;AACd,iBAAiB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;AACtD,YAAY,OAAO,YAAY;AAC/B,gBAAgB,IAAI,MAAM;AAC1B,oBAAoB,MAAM,CAAC,WAAW,EAAE,CAAC;AACzC,aAAa,CAAC;AACd,SAAS,CAAC,CAAC;AACX,KAAK,CAAC,CAAC;AACP;;;;"}
|
||||
29
node_modules/apollo-link-context/lib/bundle.esm.js
generated
vendored
Normal file
29
node_modules/apollo-link-context/lib/bundle.esm.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
import { __rest } from 'tslib';
|
||||
import { ApolloLink, Observable } from 'apollo-link';
|
||||
|
||||
function setContext(setter) {
|
||||
return new ApolloLink(function (operation, forward) {
|
||||
var request = __rest(operation, []);
|
||||
return new Observable(function (observer) {
|
||||
var handle;
|
||||
Promise.resolve(request)
|
||||
.then(function (req) { return setter(req, operation.getContext()); })
|
||||
.then(operation.setContext)
|
||||
.then(function () {
|
||||
handle = forward(operation).subscribe({
|
||||
next: observer.next.bind(observer),
|
||||
error: observer.error.bind(observer),
|
||||
complete: observer.complete.bind(observer),
|
||||
});
|
||||
})
|
||||
.catch(observer.error.bind(observer));
|
||||
return function () {
|
||||
if (handle)
|
||||
handle.unsubscribe();
|
||||
};
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
export { setContext };
|
||||
//# sourceMappingURL=bundle.esm.js.map
|
||||
1
node_modules/apollo-link-context/lib/bundle.esm.js.map
generated
vendored
Normal file
1
node_modules/apollo-link-context/lib/bundle.esm.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bundle.esm.js","sources":["../src/index.ts"],"sourcesContent":["import {\n ApolloLink,\n Observable,\n Operation,\n NextLink,\n GraphQLRequest,\n} from 'apollo-link';\n\nexport type ContextSetter = (\n operation: GraphQLRequest,\n prevContext: any,\n) => Promise<any> | any;\n\nexport function setContext(setter: ContextSetter): ApolloLink {\n return new ApolloLink((operation: Operation, forward: NextLink) => {\n const { ...request } = operation;\n\n return new Observable(observer => {\n let handle;\n Promise.resolve(request)\n .then(req => setter(req, operation.getContext()))\n .then(operation.setContext)\n .then(() => {\n handle = forward(operation).subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer),\n });\n })\n .catch(observer.error.bind(observer));\n\n return () => {\n if (handle) handle.unsubscribe();\n };\n });\n });\n}\n"],"names":[],"mappings":";;;SAagB,UAAU,CAAC,MAAqB;IAC9C,OAAO,IAAI,UAAU,CAAC,UAAC,SAAoB,EAAE,OAAiB;QAC5D,IAAQ,+BAAwB,CAAC;QAEjC,OAAO,IAAI,UAAU,CAAC,UAAA,QAAQ;YAC5B,IAAI,MAAM,CAAC;YACX,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;iBACrB,IAAI,CAAC,UAAA,GAAG,IAAI,OAAA,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,GAAA,CAAC;iBAChD,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;iBAC1B,IAAI,CAAC;gBACJ,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;oBACpC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;oBAClC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;oBACpC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;iBAC3C,CAAC,CAAC;aACJ,CAAC;iBACD,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAExC,OAAO;gBACL,IAAI,MAAM;oBAAE,MAAM,CAAC,WAAW,EAAE,CAAC;aAClC,CAAC;SACH,CAAC,CAAC;KACJ,CAAC,CAAC;AACL;;;;"}
|
||||
36
node_modules/apollo-link-context/lib/bundle.umd.js
generated
vendored
Normal file
36
node_modules/apollo-link-context/lib/bundle.umd.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('tslib'), require('apollo-link')) :
|
||||
typeof define === 'function' && define.amd ? define(['exports', 'tslib', 'apollo-link'], factory) :
|
||||
(global = global || self, factory((global.apolloLink = global.apolloLink || {}, global.apolloLink.context = {}), global.tslib, global.apolloLink.core));
|
||||
}(this, (function (exports, tslib_1, apolloLink) { 'use strict';
|
||||
|
||||
function setContext(setter) {
|
||||
return new apolloLink.ApolloLink(function (operation, forward) {
|
||||
var request = tslib_1.__rest(operation, []);
|
||||
return new apolloLink.Observable(function (observer) {
|
||||
var handle;
|
||||
Promise.resolve(request)
|
||||
.then(function (req) { return setter(req, operation.getContext()); })
|
||||
.then(operation.setContext)
|
||||
.then(function () {
|
||||
handle = forward(operation).subscribe({
|
||||
next: observer.next.bind(observer),
|
||||
error: observer.error.bind(observer),
|
||||
complete: observer.complete.bind(observer),
|
||||
});
|
||||
})
|
||||
.catch(observer.error.bind(observer));
|
||||
return function () {
|
||||
if (handle)
|
||||
handle.unsubscribe();
|
||||
};
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
exports.setContext = setContext;
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
||||
})));
|
||||
//# sourceMappingURL=bundle.umd.js.map
|
||||
1
node_modules/apollo-link-context/lib/bundle.umd.js.map
generated
vendored
Normal file
1
node_modules/apollo-link-context/lib/bundle.umd.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"bundle.umd.js","sources":["../src/index.ts"],"sourcesContent":["import {\n ApolloLink,\n Observable,\n Operation,\n NextLink,\n GraphQLRequest,\n} from 'apollo-link';\n\nexport type ContextSetter = (\n operation: GraphQLRequest,\n prevContext: any,\n) => Promise<any> | any;\n\nexport function setContext(setter: ContextSetter): ApolloLink {\n return new ApolloLink((operation: Operation, forward: NextLink) => {\n const { ...request } = operation;\n\n return new Observable(observer => {\n let handle;\n Promise.resolve(request)\n .then(req => setter(req, operation.getContext()))\n .then(operation.setContext)\n .then(() => {\n handle = forward(operation).subscribe({\n next: observer.next.bind(observer),\n error: observer.error.bind(observer),\n complete: observer.complete.bind(observer),\n });\n })\n .catch(observer.error.bind(observer));\n\n return () => {\n if (handle) handle.unsubscribe();\n };\n });\n });\n}\n"],"names":["ApolloLink","Observable"],"mappings":";;;;;;WAagB,UAAU,CAAC,MAAqB;MAC9C,OAAO,IAAIA,qBAAU,CAAC,UAAC,SAAoB,EAAE,OAAiB;UAC5D,IAAQ,uCAAwB,CAAC;UAEjC,OAAO,IAAIC,qBAAU,CAAC,UAAA,QAAQ;cAC5B,IAAI,MAAM,CAAC;cACX,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;mBACrB,IAAI,CAAC,UAAA,GAAG,IAAI,OAAA,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,GAAA,CAAC;mBAChD,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;mBAC1B,IAAI,CAAC;kBACJ,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;sBACpC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;sBAClC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;sBACpC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;mBAC3C,CAAC,CAAC;eACJ,CAAC;mBACD,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;cAExC,OAAO;kBACL,IAAI,MAAM;sBAAE,MAAM,CAAC,WAAW,EAAE,CAAC;eAClC,CAAC;WACH,CAAC,CAAC;OACJ,CAAC,CAAC;EACL;;;;;;;;;;;;"}
|
||||
4
node_modules/apollo-link-context/lib/index.d.ts
generated
vendored
Normal file
4
node_modules/apollo-link-context/lib/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
import { ApolloLink, GraphQLRequest } from 'apollo-link';
|
||||
export declare type ContextSetter = (operation: GraphQLRequest, prevContext: any) => Promise<any> | any;
|
||||
export declare function setContext(setter: ContextSetter): ApolloLink;
|
||||
//# sourceMappingURL=index.d.ts.map
|
||||
1
node_modules/apollo-link-context/lib/index.d.ts.map
generated
vendored
Normal file
1
node_modules/apollo-link-context/lib/index.d.ts.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EAIV,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,oBAAY,aAAa,GAAG,CAC1B,SAAS,EAAE,cAAc,EACzB,WAAW,EAAE,GAAG,KACb,OAAO,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC;AAExB,wBAAgB,UAAU,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,CAuB5D"}
|
||||
29
node_modules/apollo-link-context/lib/index.js
generated
vendored
Normal file
29
node_modules/apollo-link-context/lib/index.js
generated
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
var tslib_1 = require("tslib");
|
||||
var apollo_link_1 = require("apollo-link");
|
||||
function setContext(setter) {
|
||||
return new apollo_link_1.ApolloLink(function (operation, forward) {
|
||||
var request = tslib_1.__rest(operation, []);
|
||||
return new apollo_link_1.Observable(function (observer) {
|
||||
var handle;
|
||||
Promise.resolve(request)
|
||||
.then(function (req) { return setter(req, operation.getContext()); })
|
||||
.then(operation.setContext)
|
||||
.then(function () {
|
||||
handle = forward(operation).subscribe({
|
||||
next: observer.next.bind(observer),
|
||||
error: observer.error.bind(observer),
|
||||
complete: observer.complete.bind(observer),
|
||||
});
|
||||
})
|
||||
.catch(observer.error.bind(observer));
|
||||
return function () {
|
||||
if (handle)
|
||||
handle.unsubscribe();
|
||||
};
|
||||
});
|
||||
});
|
||||
}
|
||||
exports.setContext = setContext;
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/apollo-link-context/lib/index.js.map
generated
vendored
Normal file
1
node_modules/apollo-link-context/lib/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,2CAMqB;AAOrB,SAAgB,UAAU,CAAC,MAAqB;IAC9C,OAAO,IAAI,wBAAU,CAAC,UAAC,SAAoB,EAAE,OAAiB;QAC5D,IAAQ,uCAAwB,CAAC;QAEjC,OAAO,IAAI,wBAAU,CAAC,UAAA,QAAQ;YAC5B,IAAI,MAAM,CAAC;YACX,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC;iBACrB,IAAI,CAAC,UAAA,GAAG,IAAI,OAAA,MAAM,CAAC,GAAG,EAAE,SAAS,CAAC,UAAU,EAAE,CAAC,EAAnC,CAAmC,CAAC;iBAChD,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC;iBAC1B,IAAI,CAAC;gBACJ,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC;oBACpC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC;oBAClC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC;oBACpC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC;iBAC3C,CAAC,CAAC;YACL,CAAC,CAAC;iBACD,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC;YAExC,OAAO;gBACL,IAAI,MAAM;oBAAE,MAAM,CAAC,WAAW,EAAE,CAAC;YACnC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAvBD,gCAuBC"}
|
||||
60
node_modules/apollo-link-context/package.json
generated
vendored
Normal file
60
node_modules/apollo-link-context/package.json
generated
vendored
Normal file
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"name": "apollo-link-context",
|
||||
"version": "1.0.20",
|
||||
"description": "An easy way to set and cache context changes for Apollo Link",
|
||||
"author": "James Baxley <james@meteor.com>",
|
||||
"license": "MIT",
|
||||
"main": "./lib/index.js",
|
||||
"module": "./lib/bundle.esm.js",
|
||||
"typings": "./lib/index.d.ts",
|
||||
"sideEffects": false,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/apollographql/apollo-link.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/apollographql/apollo-link/issues"
|
||||
},
|
||||
"homepage": "https://github.com/apollographql/apollo-link#readme",
|
||||
"scripts": {
|
||||
"build": "tsc && rollup -c",
|
||||
"clean": "rimraf lib/* && rimraf coverage/*",
|
||||
"coverage": "jest --coverage",
|
||||
"filesize": "../../scripts/minify",
|
||||
"lint": "tslint -c \"../../tslint.json\" -p tsconfig.json -c ../../tslint.json src/*.ts",
|
||||
"prebuild": "npm run clean",
|
||||
"prepare": "npm run build",
|
||||
"test": "npm run lint && jest",
|
||||
"watch": "tsc -w -p . & rollup -c -w"
|
||||
},
|
||||
"dependencies": {
|
||||
"apollo-link": "^1.2.14",
|
||||
"tslib": "^1.9.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/graphql": "14.2.3",
|
||||
"@types/jest": "24.9.0",
|
||||
"graphql": "15.0.0",
|
||||
"graphql-tag": "2.10.1",
|
||||
"jest": "24.9.0",
|
||||
"rimraf": "2.7.1",
|
||||
"rollup": "1.29.1",
|
||||
"ts-jest": "22.4.6",
|
||||
"tslint": "5.20.1",
|
||||
"typescript": "3.0.3"
|
||||
},
|
||||
"jest": {
|
||||
"transform": {
|
||||
".(ts|tsx)": "ts-jest"
|
||||
},
|
||||
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$",
|
||||
"moduleFileExtensions": [
|
||||
"ts",
|
||||
"tsx",
|
||||
"js",
|
||||
"json"
|
||||
],
|
||||
"testURL": "http://localhost"
|
||||
},
|
||||
"gitHead": "1012934b4fd9ab436c4fdcd5e9b1bb1e4c1b0d98"
|
||||
}
|
||||
Reference in New Issue
Block a user