UNPKG

mongodb-stitch

Version:

[![Join the chat at https://gitter.im/mongodb/stitch](https://badges.gitter.im/mongodb/stitch.svg)](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)

38 lines 1.72 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); (function (factory) { if (typeof module === "object" && typeof module.exports === "object") { var v = factory(require, exports); if (v !== undefined) module.exports = v; } else if (typeof define === "function" && define.amd) { define(["require", "exports", "mongodb-stitch-core-sdk"], factory); } })(function (require, exports) { "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var mongodb_stitch_core_sdk_1 = require("mongodb-stitch-core-sdk"); var StitchServiceImpl = (function (_super) { __extends(StitchServiceImpl, _super); function StitchServiceImpl(requestClient, routes, name) { return _super.call(this, requestClient, routes, name) || this; } StitchServiceImpl.prototype.callFunction = function (name, args, codec) { var _this = this; return new Promise(function (resolve, reject) { resolve(_this.callFunctionInternal(name, args, codec)); }); }; return StitchServiceImpl; }(mongodb_stitch_core_sdk_1.CoreStitchServiceClientImpl)); exports.default = StitchServiceImpl; }); //# sourceMappingURL=StitchServiceImpl.js.map