@resolveio/server-lib 3.2.9 → 3.2.10
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 +3 -3
- package/managers/method.manager.js +1 -1
- package/managers/queue-method.manager.js +1 -1
- package/package.json +1 -1
- package/server-app.js +2 -2
package/index.js
CHANGED
|
@@ -49,11 +49,11 @@ var ResolveIOServer = /** @class */ (function () {
|
|
|
49
49
|
var _this = this;
|
|
50
50
|
return new Promise(function (resolve, reject) {
|
|
51
51
|
if (ResolveIOServer._serverConfig['ROOT_URL'] !== 'http://localhost:4200' && !_this._dontRunSupport) {
|
|
52
|
-
mongoose.createConnection(ResolveIOServer._serverConfig['RESOLVEIO_SUPPORT_MONGO_URL'], { useNewUrlParser: true
|
|
52
|
+
mongoose.createConnection(ResolveIOServer._serverConfig['RESOLVEIO_SUPPORT_MONGO_URL'], { useNewUrlParser: true }).then(function (db) { return __awaiter(_this, void 0, void 0, function () {
|
|
53
53
|
var _this = this;
|
|
54
54
|
return __generator(this, function (_a) {
|
|
55
55
|
ResolveIOServer._supportDB = db;
|
|
56
|
-
mongoose.createConnection(ResolveIOServer._serverConfig['MONGO_URL'], { useNewUrlParser: true
|
|
56
|
+
mongoose.createConnection(ResolveIOServer._serverConfig['MONGO_URL'], { useNewUrlParser: true }).then(function (dbMain) { return __awaiter(_this, void 0, void 0, function () {
|
|
57
57
|
var serverApp;
|
|
58
58
|
return __generator(this, function (_a) {
|
|
59
59
|
switch (_a.label) {
|
|
@@ -80,7 +80,7 @@ var ResolveIOServer = /** @class */ (function () {
|
|
|
80
80
|
}
|
|
81
81
|
else {
|
|
82
82
|
ResolveIOServer._supportDB = null;
|
|
83
|
-
mongoose.createConnection(ResolveIOServer._serverConfig['MONGO_URL'], { useNewUrlParser: true
|
|
83
|
+
mongoose.createConnection(ResolveIOServer._serverConfig['MONGO_URL'], { useNewUrlParser: true }).then(function (dbMain) { return __awaiter(_this, void 0, void 0, function () {
|
|
84
84
|
var serverApp;
|
|
85
85
|
return __generator(this, function (_a) {
|
|
86
86
|
switch (_a.label) {
|
|
@@ -164,7 +164,7 @@ var MethodManager = /** @class */ (function () {
|
|
|
164
164
|
_this._mainServer.unsubscribeWS(ws);
|
|
165
165
|
}
|
|
166
166
|
});
|
|
167
|
-
if (sendItem.method !== 'generatePDF' && sendItem.method !== 'getWOOfflineData' && sendItem.method !== 'countQuery' && sendItem.method !== 'countWithQuery' && sendItem.method !== 'countCollectionWithQuery' && sendItem.method !== 'find' && sendItem.method !== 'findOne' && sendItem.method !== 'findWithOptions' && sendItem.method !== 'setWSAppVersion' && sendItem.method !== 'uploadFileAndSave' && sendItem.method !== 'getDrivers') {
|
|
167
|
+
if (sendItem.method !== 'reportBuilderGetResults' && sendItem.method !== 'reportBuilderGetDistinctValue' && sendItem.method !== 'reportBuilderBuildTree' && sendItem.method !== 'generatePDF' && sendItem.method !== 'getWOOfflineData' && sendItem.method !== 'countQuery' && sendItem.method !== 'countWithQuery' && sendItem.method !== 'countCollectionWithQuery' && sendItem.method !== 'find' && sendItem.method !== 'findOne' && sendItem.method !== 'findWithOptions' && sendItem.method !== 'setWSAppVersion' && sendItem.method !== 'uploadFileAndSave' && sendItem.method !== 'getDrivers') {
|
|
168
168
|
if (common_1.getBinarySize(JSON.stringify(sendItem.methodData)) < 200000 && common_1.getBinarySize(JSON.stringify(sendItem.data)) < 200000) {
|
|
169
169
|
log_collection_1.Logs.create({
|
|
170
170
|
_id: mongoose_1.Types.ObjectId().toHexString(),
|
|
@@ -63,7 +63,7 @@ var QueueMethodManager = /** @class */ (function () {
|
|
|
63
63
|
_this._mainServer.unsubscribeWS(ws);
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
|
-
if (sendItem.method !== 'generatePDF' && sendItem.method !== 'getWOOfflineData' && sendItem.method !== 'countQuery' && sendItem.method !== 'countWithQuery' && sendItem.method !== 'countCollectionWithQuery' && sendItem.method !== 'find' && sendItem.method !== 'findOne' && sendItem.method !== 'findWithOptions' && sendItem.method !== 'setWSAppVersion' && sendItem.method !== 'uploadFileAndSave' && sendItem.method !== 'getDrivers') {
|
|
66
|
+
if (sendItem.method !== 'reportBuilderGetResults' && sendItem.method !== 'reportBuilderGetDistinctValue' && sendItem.method !== 'reportBuilderBuildTree' && sendItem.method !== 'generatePDF' && sendItem.method !== 'getWOOfflineData' && sendItem.method !== 'countQuery' && sendItem.method !== 'countWithQuery' && sendItem.method !== 'countCollectionWithQuery' && sendItem.method !== 'find' && sendItem.method !== 'findOne' && sendItem.method !== 'findWithOptions' && sendItem.method !== 'setWSAppVersion' && sendItem.method !== 'uploadFileAndSave' && sendItem.method !== 'getDrivers') {
|
|
67
67
|
if (common_1.getBinarySize(JSON.stringify(sendItem.methodData)) < 200000 && common_1.getBinarySize(JSON.stringify(sendItem.data)) < 200000) {
|
|
68
68
|
log_collection_1.Logs.create({
|
|
69
69
|
_id: mongoose_1.Types.ObjectId().toHexString(),
|
package/package.json
CHANGED
package/server-app.js
CHANGED
|
@@ -348,7 +348,7 @@ var ResolveIOMainServer = /** @class */ (function () {
|
|
|
348
348
|
ws.terminate();
|
|
349
349
|
}, 5000);
|
|
350
350
|
}
|
|
351
|
-
if (method !== 'generatePDF' && method !== 'getWOOfflineData' && method !== 'countQuery' && method !== 'countWithQuery' && method !== 'countCollectionWithQuery' && method !== 'find' && method !== 'findOne' && method !== 'findWithOptions' && method !== 'setWSAppVersion' && method !== 'getDrivers') {
|
|
351
|
+
if (method !== 'reportBuilderGetResults' && method !== 'reportBuilderGetDistinctValue' && method !== 'reportBuilderBuildTree' && method !== 'generatePDF' && method !== 'getWOOfflineData' && method !== 'countQuery' && method !== 'countWithQuery' && method !== 'countCollectionWithQuery' && method !== 'find' && method !== 'findOne' && method !== 'findWithOptions' && method !== 'setWSAppVersion' && method !== 'getDrivers') {
|
|
352
352
|
if (common_1.getBinarySize(JSON.stringify(data)) < 200000) {
|
|
353
353
|
log_collection_1.Logs.create({
|
|
354
354
|
_id: mongoose_1.Types.ObjectId().toHexString(),
|
|
@@ -469,7 +469,7 @@ var ResolveIOMainServer = /** @class */ (function () {
|
|
|
469
469
|
case 7:
|
|
470
470
|
if (type === 'methodRetry') {
|
|
471
471
|
method = data.shift();
|
|
472
|
-
if (method !== 'generatePDF' && method !== 'getWOOfflineData' && method !== 'countQuery' && method !== 'countWithQuery' && method !== 'countCollectionWithQuery' && method !== 'find' && method !== 'findOne' && method !== 'findWithOptions' && method !== 'setWSAppVersion' && method !== 'getDrivers') {
|
|
472
|
+
if (method !== 'reportBuilderGetResults' && method !== 'reportBuilderGetDistinctValue' && method !== 'reportBuilderBuildTree' && method !== 'generatePDF' && method !== 'getWOOfflineData' && method !== 'countQuery' && method !== 'countWithQuery' && method !== 'countCollectionWithQuery' && method !== 'find' && method !== 'findOne' && method !== 'findWithOptions' && method !== 'setWSAppVersion' && method !== 'getDrivers') {
|
|
473
473
|
if (common_1.getBinarySize(JSON.stringify(data)) < 200000) {
|
|
474
474
|
log_collection_1.Logs.create({
|
|
475
475
|
_id: mongoose_1.Types.ObjectId().toHexString(),
|