This commit is contained in:
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.unsubsc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ACP;;;;"}
|
||||
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"}
|
||||
Reference in New Issue
Block a user