UNPKG

derby

Version:

MVC framework making it easy to write realtime, collaborative applications that run in both Node.js and browsers.

37 lines (36 loc) 1.66 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.DerbyForServer = void 0; var racer_1 = require("racer"); var AppForServer_1 = require("./AppForServer"); var Derby_1 = require("./Derby"); var PageForServer_1 = require("./PageForServer"); racer_1.util.isProduction = process.env.NODE_ENV === 'production'; var DerbyForServer = /** @class */ (function (_super) { __extends(DerbyForServer, _super); function DerbyForServer() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.App = AppForServer_1.AppForServer; _this.Page = PageForServer_1.PageForServer; return _this; } DerbyForServer.prototype.createApp = function (name, filename, options) { return new this.App(this, name, filename, options); }; return DerbyForServer; }(Derby_1.Derby)); exports.DerbyForServer = DerbyForServer;