@resolveio/server-lib 8.0.20 → 8.0.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +16 -15
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/public_api.d.ts +0 -1
- package/public_api.js +0 -1
- package/public_api.js.map +1 -1
package/index.js
CHANGED
|
@@ -65,21 +65,22 @@ var ResolveIOServer = /** @class */ (function () {
|
|
|
65
65
|
useNewUrlParser: true,
|
|
66
66
|
useCreateIndex: true,
|
|
67
67
|
useUnifiedTopology: true
|
|
68
|
-
}).then(function (dbMain) {
|
|
69
|
-
|
|
70
|
-
return
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
return [4 /*yield*/, Promise.resolve().then(function () { return require('./server-app'); })];
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
|
|
68
|
+
}).then(function (dbMain) {
|
|
69
|
+
ResolveIOServer._mainDB = dbMain;
|
|
70
|
+
setTimeout(function () { return __awaiter(_this, void 0, void 0, function () {
|
|
71
|
+
var serverApp;
|
|
72
|
+
return __generator(this, function (_a) {
|
|
73
|
+
switch (_a.label) {
|
|
74
|
+
case 0: return [4 /*yield*/, Promise.resolve().then(function () { return require('./server-app'); })];
|
|
75
|
+
case 1:
|
|
76
|
+
serverApp = (_a.sent()).default;
|
|
77
|
+
ResolveIOServer._mainServer = new serverApp(this, ResolveIOServer._monitorAgent, ResolveIOServer._serverConfig, ResolveIOServer._clientRoutes, this._clientDir, this._sesMail);
|
|
78
|
+
return [2 /*return*/];
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
}); }, 0);
|
|
82
|
+
resolve();
|
|
83
|
+
}, function (err) {
|
|
83
84
|
process.exit();
|
|
84
85
|
reject();
|
|
85
86
|
});
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"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AE,IAAI;gBACpB,kBAAkB,EAAE,IAAI;aACxB,CAAC,CAAC,IAAI,CAAC,UAAA,MAAM;gBACb,eAAe,CAAC,OAAO,GAAG,MAAM,CAAC;gBAEjC,UAAU,CAAC;;;;oCACO,yEAAa,cAAc,OAAC;;gCAAzC,SAAS,GAAG,CAAC,SAA4B,CAAC,CAAC,OAAO;gCACtD,eAAe,CAAC,WAAW,GAAG,IAAI,SAAS,CAAC,IAAI,EAAE,eAAe,CAAC,aAAa,EAAE,eAAe,CAAC,aAAa,EAAE,eAAe,CAAC,aAAa,EAAE,IAAI,CAAC,UAAU,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;;;;qBAC/K,EAAE,CAAC,CAAC,CAAC;gBAEN,OAAO,EAAE,CAAC;YACX,CAAC,EAAE,UAAC,GAAG;gBACN,OAAO,CAAC,IAAI,EAAE,CAAC;gBACf,MAAM,EAAE,CAAC;YACV,CAAC,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;IACJ,CAAC;IAEa,6BAAa,GAA3B;QACC,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;IAEa,6BAAa,GAA3B;QACC,OAAO,eAAe,CAAC,WAAW,CAAC;IACpC,CAAC;IAEa,yBAAS,GAAvB;QACC,OAAO,eAAe,CAAC,OAAO,CAAC;IAChC,CAAC;IAlDc,6BAAa,GAAG,IAAI,CAAC;IACrB,6BAAa,GAAG,IAAI,CAAC;IACrB,6BAAa,GAAG,EAAE,CAAC;IACnB,uBAAO,GAAwB,IAAI,CAAC;IACpC,2BAAW,GAAwB,IAAI,CAAC;IACxC,uBAAO,GAAG,EAAE,CAAC;IACb,0BAAU,GAAG,EAAE,CAAC;IAChB,wBAAQ,GAAG,IAAI,CAAC;IA4ChC,sBAAC;CApDD,AAoDC,IAAA;AApDY,0CAAe;AAsD5B,+CAA6B","file":"index.js","sourcesContent":["import * as mongoose from 'mongoose';\nimport ResolveIOMainServer from './server-app';\n\nexport class ResolveIOServer {\n\tprivate static _monitorAgent = null;\n\tprivate static _serverConfig = null;\n\tprivate static _clientRoutes = [];\n\tprivate static _mainDB: mongoose.Connection = null;\n\tprivate static _mainServer: ResolveIOMainServer = null;\n\tprivate static _client = '';\n\tprivate static _clientDir = '';\n\tprivate static _sesMail = true;\n\n\tconstructor(monitoring, serverConfig, clientRoutes: string[], client: string, clientDir, sesMail = true) {\n\t\tResolveIOServer._monitorAgent = monitoring;\n\t\tResolveIOServer._serverConfig = serverConfig;\n\t\tResolveIOServer._clientRoutes = clientRoutes;\n\t\tResolveIOServer._client = client;\n\t\tResolveIOServer._clientDir = clientDir;\n\t\tResolveIOServer._sesMail = sesMail;\n\t}\n\n\tpublic static connectAndRun() {\n\t\treturn new Promise((resolve, reject) => {\n\t\t\tmongoose.createConnection(ResolveIOServer._serverConfig['MONGO_URL'], <any>{ \n\t\t\t\tuseNewUrlParser: true, \n\t\t\t\tuseCreateIndex: true, \n\t\t\t\tuseUnifiedTopology: true\n\t\t\t}).then(dbMain => {\n\t\t\t\tResolveIOServer._mainDB = dbMain;\n\t\t\t\t\n\t\t\t\tsetTimeout(async () => {\n\t\t\t\t\tlet serverApp = (await import('./server-app')).default;\n\t\t\t\t\tResolveIOServer._mainServer = new serverApp(this, ResolveIOServer._monitorAgent, ResolveIOServer._serverConfig, ResolveIOServer._clientRoutes, this._clientDir, this._sesMail);\n\t\t\t\t}, 0);\n\n\t\t\t\tresolve();\n\t\t\t}, (err) => {\n\t\t\t\tprocess.exit();\n\t\t\t\treject();\n\t\t\t});\n\t\t});\n\t}\n\n\tpublic static getClientName() {\n\t\treturn this._client;\n\t}\n\n\tpublic static getMainServer() {\n\t\treturn ResolveIOServer._mainServer;\n\t}\n\n\tpublic static getMainDB() {\n\t\treturn ResolveIOServer._mainDB;\n\t}\n}\n\nexport * from './public_api';"]}
|
package/package.json
CHANGED
package/public_api.d.ts
CHANGED
package/public_api.js
CHANGED
|
@@ -79,6 +79,5 @@ __exportStar(require("./models/user-group.model"), exports);
|
|
|
79
79
|
__exportStar(require("./models/user-guide.model"), exports);
|
|
80
80
|
__exportStar(require("./models/user.model"), exports);
|
|
81
81
|
__exportStar(require("./util/common"), exports);
|
|
82
|
-
__exportStar(require("./util/schema-report-builder"), exports);
|
|
83
82
|
|
|
84
83
|
//# sourceMappingURL=public_api.js.map
|
package/public_api.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/public_api.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAoD;AACpD,uEAAqD;AACrD,mEAAiD;AACjD,4EAA0D;AAC1D,oEAAkD;AAClD,yEAAuD;AACvD,0EAAwD;AACxD,gEAA8C;AAC9C,gEAA8C;AAC9C,8EAA4D;AAC5D,4EAA0D;AAC1D,+DAA6C;AAC7C,2EAAyD;AACzD,uEAAqD;AACrD,2EAAyD;AACzD,uEAAqD;AACrD,iFAA+D;AAC/D,kFAAgE;AAChE,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,sEAAoD;AACpD,wEAAsD;AACtD,0EAAwD;AACxD,kFAAgE;AAChE,iFAA+D;AAC/D,sEAAoD;AACpD,sEAAoD;AACpD,gEAA8C;AAC9C,4DAA0C;AAC1C,6DAA2C;AAC3C,yEAAuD;AACvD,qEAAmD;AACnD,yDAAuC;AACvC,kEAAgD;AAChD,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,gEAA8C;AAC9C,sDAAoC;AACpC,sDAAoC;AACpC,oEAAkD;AAClD,kEAAgD;AAChD,qDAAmC;AACnC,iEAA+C;AAC/C,6DAA2C;AAC3C,iEAA+C;AAC/C,wDAAsC;AACtC,6DAA2C;AAC3C,uEAAqD;AACrD,wEAAsD;AACtD,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,4DAA0C;AAC1C,4DAA0C;AAC1C,8DAA4C;AAC5C,gEAA8C;AAC9C,wEAAsD;AACtD,uEAAqD;AACrD,gEAA8C;AAC9C,mEAAiD;AACjD,iEAA+C;AAC/C,8DAA4C;AAC5C,gEAA8C;AAC9C,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACpC,gDAA8B
|
|
1
|
+
{"version":3,"sources":["../../src/public_api.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sEAAoD;AACpD,uEAAqD;AACrD,mEAAiD;AACjD,4EAA0D;AAC1D,oEAAkD;AAClD,yEAAuD;AACvD,0EAAwD;AACxD,gEAA8C;AAC9C,gEAA8C;AAC9C,8EAA4D;AAC5D,4EAA0D;AAC1D,+DAA6C;AAC7C,2EAAyD;AACzD,uEAAqD;AACrD,2EAAyD;AACzD,uEAAqD;AACrD,iFAA+D;AAC/D,kFAAgE;AAChE,0EAAwD;AACxD,yEAAuD;AACvD,wEAAsD;AACtD,sEAAoD;AACpD,wEAAsD;AACtD,0EAAwD;AACxD,kFAAgE;AAChE,iFAA+D;AAC/D,sEAAoD;AACpD,sEAAoD;AACpD,gEAA8C;AAC9C,4DAA0C;AAC1C,6DAA2C;AAC3C,yEAAuD;AACvD,qEAAmD;AACnD,yDAAuC;AACvC,kEAAgD;AAChD,0DAAwC;AACxC,wDAAsC;AACtC,+DAA6C;AAC7C,gEAA8C;AAC9C,sDAAoC;AACpC,sDAAoC;AACpC,oEAAkD;AAClD,kEAAgD;AAChD,qDAAmC;AACnC,iEAA+C;AAC/C,6DAA2C;AAC3C,iEAA+C;AAC/C,wDAAsC;AACtC,6DAA2C;AAC3C,uEAAqD;AACrD,wEAAsD;AACtD,gEAA8C;AAC9C,+DAA6C;AAC7C,8DAA4C;AAC5C,4DAA0C;AAC1C,4DAA0C;AAC1C,8DAA4C;AAC5C,gEAA8C;AAC9C,wEAAsD;AACtD,uEAAqD;AACrD,gEAA8C;AAC9C,mEAAiD;AACjD,iEAA+C;AAC/C,8DAA4C;AAC5C,gEAA8C;AAC9C,4DAA0C;AAC1C,4DAA0C;AAC1C,sDAAoC;AACpC,gDAA8B","file":"public_api.js","sourcesContent":["export * from './collections/app-status.collection';\nexport * from './collections/app-version.collection';\nexport * from './collections/counter.collection';\nexport * from './collections/cron-job-history.collection';\nexport * from './collections/cron-job.collection';\nexport * from './collections/email-history.collection';\nexport * from './collections/email-verified.collection';\nexport * from './collections/file.collection';\nexport * from './collections/flag.collection';\nexport * from './collections/log-method-latency.collection';\nexport * from './collections/log-subscription.collection';\nexport * from './collections/log.collection';\nexport * from './collections/logged-in-users.collection';\nexport * from './collections/method-call.collection';\nexport * from './collections/method-response.collection';\nexport * from './collections/monitor-cpu.collection';\nexport * from './collections/monitor-https-inbound.collection';\nexport * from './collections/monitor-https-outbound.collection';\nexport * from './collections/monitor-memory.collection';\nexport * from './collections/monitor-mongo.collection';\nexport * from './collections/notification.collection';\nexport * from './collections/queue-flag.collection';\nexport * from './collections/queue-method.collection';\nexport * from './collections/queue-response.collection';\nexport * from './collections/report-builder-library.collection';\nexport * from './collections/report-builder-report.collection';\nexport * from './collections/user-group.collection';\nexport * from './collections/user-guide.collection';\nexport * from './collections/user.collection';\nexport * from './models/app-status.model';\nexport * from './models/app-version.model';\nexport * from './models/billing-logged-in-users.model';\nexport * from './models/collection-document.model';\nexport * from './models/counter.model';\nexport * from './models/cron-job-history.model';\nexport * from './models/cron-job.model';\nexport * from './models/dialog.model';\nexport * from './models/email-history.model';\nexport * from './models/email-verified.model';\nexport * from './models/file.model';\nexport * from './models/flag.model';\nexport * from './models/log-method-latency.model';\nexport * from './models/log-subscription.model';\nexport * from './models/log.model';\nexport * from './models/logged-in-users.model';\nexport * from './models/method-call.model';\nexport * from './models/method-response.model';\nexport * from './models/method.model';\nexport * from './models/monitor-cpu.model';\nexport * from './models/monitor-https-inbound.model';\nexport * from './models/monitor-https-outbound.model';\nexport * from './models/monitor-memory.model';\nexport * from './models/monitor-mongo.model';\nexport * from './models/notification.model';\nexport * from './models/pagination.model';\nexport * from './models/permission.model';\nexport * from './models/queue-method.model';\nexport * from './models/queue-response.model';\nexport * from './models/report-builder-library.model';\nexport * from './models/report-builder-report.model';\nexport * from './models/report-builder.model';\nexport * from './models/select-data-label.model';\nexport * from './models/server-response.model';\nexport * from './models/subscription.model';\nexport * from './models/support-ticket.model';\nexport * from './models/user-group.model';\nexport * from './models/user-guide.model';\nexport * from './models/user.model';\nexport * from './util/common';"]}
|