Initial Save

This commit is contained in:
jackbeeby
2025-03-28 12:30:19 +11:00
parent e381994f19
commit d8773925e8
9910 changed files with 982718 additions and 0 deletions

20
node_modules/apollo-link/lib/test-utils/setContext.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var link_1 = require("../link");
var SetContextLink = (function (_super) {
tslib_1.__extends(SetContextLink, _super);
function SetContextLink(setContext) {
if (setContext === void 0) { setContext = function (c) { return c; }; }
var _this = _super.call(this) || this;
_this.setContext = setContext;
return _this;
}
SetContextLink.prototype.request = function (operation, forward) {
operation.setContext(this.setContext(operation.getContext()));
return forward(operation);
};
return SetContextLink;
}(link_1.ApolloLink));
exports.default = SetContextLink;
//# sourceMappingURL=setContext.js.map