UNPKG

2.88 kBSource Map (JSON)View Raw
1{"version":3,"file":"bundle.cjs.js","sources":["bundle.esm.js"],"sourcesContent":["import { __extends } from 'tslib';\nimport { Observable, ApolloLink } from 'apollo-link';\nimport { execute } from 'graphql/execution/execute';\n\nvar SchemaLink = (function (_super) {\n __extends(SchemaLink, _super);\n function SchemaLink(_a) {\n var schema = _a.schema, rootValue = _a.rootValue, context = _a.context;\n var _this = _super.call(this) || this;\n _this.schema = schema;\n _this.rootValue = rootValue;\n _this.context = context;\n return _this;\n }\n SchemaLink.prototype.request = function (operation) {\n var _this = this;\n return new Observable(function (observer) {\n Promise.resolve(execute(_this.schema, operation.query, _this.rootValue, typeof _this.context === 'function'\n ? _this.context(operation)\n : _this.context, operation.variables, operation.operationName))\n .then(function (data) {\n if (!observer.closed) {\n observer.next(data);\n observer.complete();\n }\n })\n .catch(function (error) {\n if (!observer.closed) {\n observer.error(error);\n }\n });\n });\n };\n return SchemaLink;\n}(ApolloLink));\n\nexport default SchemaLink;\nexport { SchemaLink };\n//# sourceMappingURL=bundle.esm.js.map\n"],"names":["__extends","Observable","execute","ApolloLink"],"mappings":";;;;;;;;AAIG,IAAC,UAAU,IAAI,UAAU,MAAM,EAAE;AACpC,IAAIA,eAAS,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;AAClC,IAAI,SAAS,UAAU,CAAC,EAAE,EAAE;AAC5B,QAAQ,IAAI,MAAM,GAAG,EAAE,CAAC,MAAM,EAAE,SAAS,GAAG,EAAE,CAAC,SAAS,EAAE,OAAO,GAAG,EAAE,CAAC,OAAO,CAAC;AAC/E,QAAQ,IAAI,KAAK,GAAG,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC;AAC9C,QAAQ,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC;AAC9B,QAAQ,KAAK,CAAC,SAAS,GAAG,SAAS,CAAC;AACpC,QAAQ,KAAK,CAAC,OAAO,GAAG,OAAO,CAAC;AAChC,QAAQ,OAA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