mongodb-stitch
Version:
[](https://gitter.im/mongodb/stitch?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
26 lines • 1.18 kB
JavaScript
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 __());
};
})();
import { CoreStitchServiceClientImpl } from "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;
}(CoreStitchServiceClientImpl));
export default StitchServiceImpl;
//# sourceMappingURL=StitchServiceImpl.js.map