@aldb2b/common 1.0.403 → 1.0.405
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/build/index.d.ts +1 -0
- package/build/index.js +1 -0
- package/build/index.js.map +1 -1
- package/build/interceptors/custom-exception.handler.d.ts +4 -0
- package/build/interceptors/custom-exception.handler.js +11 -0
- package/build/interceptors/custom-exception.handler.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +19 -5
- package/build/validators/responses/error.interface.d.ts +1 -0
- package/build/validators/responses/error.js +2 -1
- package/build/validators/responses/error.js.map +1 -1
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -135,6 +135,7 @@ export * from './decorators/get-event-id-decorator';
|
|
|
135
135
|
export * from './interceptors/response.interceptor';
|
|
136
136
|
export * from './interceptors/serialize.interceptor';
|
|
137
137
|
export * from './interceptors/response-with-code.interceptor';
|
|
138
|
+
export * from './interceptors/custom-exception.handler';
|
|
138
139
|
export * from './db/CustomModel';
|
|
139
140
|
export * from './db/MongooseBase';
|
|
140
141
|
export * from './db/mongoose-find-options';
|
package/build/index.js
CHANGED
|
@@ -147,6 +147,7 @@ __exportStar(require("./decorators/get-event-id-decorator"), exports);
|
|
|
147
147
|
__exportStar(require("./interceptors/response.interceptor"), exports);
|
|
148
148
|
__exportStar(require("./interceptors/serialize.interceptor"), exports);
|
|
149
149
|
__exportStar(require("./interceptors/response-with-code.interceptor"), exports);
|
|
150
|
+
__exportStar(require("./interceptors/custom-exception.handler"), exports);
|
|
150
151
|
__exportStar(require("./db/CustomModel"), exports);
|
|
151
152
|
__exportStar(require("./db/MongooseBase"), exports);
|
|
152
153
|
__exportStar(require("./db/mongoose-find-options"), exports);
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAiD;AACjD,oDAAiC;AACjC,iEAA8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AwD;AACxD,kFAA+D;AAC/D,2EAAwD;AACxD,2EAAwD;AACxD,kFAA+D;AAC/D,0EAAuD;AACvD,uEAAoD;AACpD,+EAA4D;AAC5D,2EAAwD;AACxD,uEAAoD;AACpD,mEAAgD;AAChD,0EAAuD;AACvD,0EAAuD;AACvD,uEAAoD;AACpD,6EAA0D;AAC1D,+EAA4D;AAC5D,6EAA0D;AAC1D,kFAA+D;AAC/D,qFAAkE;AAClE,sFAAmE;AACnE,4EAAyD;AACzD,4EAAyD;AACzD,mEAAgD;AAChD,yEAAsD;AACtD,yEAAsD;AACtD,qEAAkD;AAClD,8EAA2D;AAC3D,0EAAuD;AACvD,qEAAkD;AAElD,oEAAiD;AACjD,8DAA2C;AAC3C,+DAA4C;AAC5C,kEAA+C;AAC/C,wEAAqD;AACrD,kEAA+C;AAC/C,gFAA6D;AAC7D,+DAA4C;AAC5C,yEAAsD;AACtD,mFAAgE;AAChE,iFAA8D;AAC9D,iEAA8C;AAC9C,2EAAwD;AACxD,yEAAsD;AACtD,mFAAgE;AAChE,2EAAwD;AACxD,qFAAkE;AAElE,kEAA+C;AAC/C,sEAAmD;AAEnD,sEAAmD;AACnD,uEAAoD;AACpD,gFAA6D;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,oEAAiD;AACjD,oDAAiC;AACjC,iEAA8C;AAC9C,mEAAgD;AAChD,+DAA4C;AAC5C,oEAAiD;AACjD,qEAAkD;AAClD,oEAAiD;AACjD,sEAAmD;AACnD,6EAA0D;AAC1D,uEAAoD;AACpD,sEAAmD;AACnD,6EAA0D;AAC1D,2EAAwD;AACxD,4EAAyD;AACzD,iEAA8C;AAC9C,4EAAyD;AACzD,4EAAyD;AACzD,wEAAqD;AACrD,yEAAsD;AACtD,yEAAsD;AACtD,oEAAiD;AACjD,6EAA0D;AAC1D,2EAAwD;AACxD,8EAA2D;AAC3D,mEAAgD;AAChD,oEAAiD;AAC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AwC;AACxC,oDAAiC;AACjC,uDAAoC;AACpC,yDAAsC;AACtC,sDAAmC;AACnC,wDAAqC;AACrC,mDAAgC;AAChC,kEAA+C;AAC/C,oDAAiC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomExceptionHandler = void 0;
|
|
4
|
+
const common_1 = require("@nestjs/common");
|
|
5
|
+
class CustomExceptionHandler extends common_1.HttpException {
|
|
6
|
+
constructor(status, message, data = {}) {
|
|
7
|
+
super({ message, data }, status);
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.CustomExceptionHandler = CustomExceptionHandler;
|
|
11
|
+
//# sourceMappingURL=custom-exception.handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-exception.handler.js","sourceRoot":"","sources":["../../src/interceptors/custom-exception.handler.ts"],"names":[],"mappings":";;;AAAA,2CAA2D;AAE3D,MAAa,sBAAuB,SAAQ,sBAAa;IACvD,YAAY,MAAkB,EAAE,OAAe,EAAE,OAAY,EAAE;QAC7D,KAAK,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE,MAAM,CAAC,CAAC;IACnC,CAAC;CACF;AAJD,wDAIC"}
|
|
@@ -1492,12 +1492,12 @@
|
|
|
1492
1492
|
"affectsGlobalScope": false
|
|
1493
1493
|
},
|
|
1494
1494
|
"../src/validators/responses/error.interface.ts": {
|
|
1495
|
-
"version": "
|
|
1496
|
-
"signature": "
|
|
1495
|
+
"version": "d85acd8b23ccdf633b27d15ff8714fb36c293f9914abeae880de9bf4344344af",
|
|
1496
|
+
"signature": "8156486782c49673111fded58c5d917d2ed6a6868a211c116b3cfcef27c9edd7",
|
|
1497
1497
|
"affectsGlobalScope": false
|
|
1498
1498
|
},
|
|
1499
1499
|
"../src/validators/responses/error.ts": {
|
|
1500
|
-
"version": "
|
|
1500
|
+
"version": "5b11500772b89ebcc164f70e76d463adc8e4ced07aa443217c001d7a942a8f0b",
|
|
1501
1501
|
"signature": "f6a8b4e6d49ee03ec0056d2c0faaea725c6a15a5718a2cd0771e36f9e5affa76",
|
|
1502
1502
|
"affectsGlobalScope": false
|
|
1503
1503
|
},
|
|
@@ -3641,6 +3641,11 @@
|
|
|
3641
3641
|
"signature": "69d99dd107f48ae0d0ad4a3788fc5912c8c8a3244236729966843c47f58d8079",
|
|
3642
3642
|
"affectsGlobalScope": false
|
|
3643
3643
|
},
|
|
3644
|
+
"../src/interceptors/custom-exception.handler.ts": {
|
|
3645
|
+
"version": "6bfcad2dfe7ca61dfc9737c6bf4899de68a4882759dce49935425ce3b66dccb0",
|
|
3646
|
+
"signature": "fbada6fd3ce4e9a4d254687db0c633827f5276a73bf2917dffae444e48cae4d9",
|
|
3647
|
+
"affectsGlobalScope": false
|
|
3648
|
+
},
|
|
3644
3649
|
"../node_modules/buffer/index.d.ts": {
|
|
3645
3650
|
"version": "8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6",
|
|
3646
3651
|
"signature": "8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6",
|
|
@@ -6867,8 +6872,8 @@
|
|
|
6867
6872
|
"affectsGlobalScope": false
|
|
6868
6873
|
},
|
|
6869
6874
|
"../src/index.ts": {
|
|
6870
|
-
"version": "
|
|
6871
|
-
"signature": "
|
|
6875
|
+
"version": "68aea05f590fa6c44340d3b2d24428fd7554df4bbab51427121d6f5df08b8cc6",
|
|
6876
|
+
"signature": "985ff7549e3c994b06ad39e655ca11971ee3c22770a2c48a43907abb91ef6368",
|
|
6872
6877
|
"affectsGlobalScope": false
|
|
6873
6878
|
},
|
|
6874
6879
|
"../src/events/meeting-request-updated.interface.ts": {
|
|
@@ -12206,6 +12211,7 @@
|
|
|
12206
12211
|
"../src/events/update-meeting-setting.interface.ts",
|
|
12207
12212
|
"../src/events/update-meeting-status.interface.ts",
|
|
12208
12213
|
"../src/events/update-user-event-info.interface.ts",
|
|
12214
|
+
"../src/interceptors/custom-exception.handler.ts",
|
|
12209
12215
|
"../src/interceptors/response-with-code.interceptor.ts",
|
|
12210
12216
|
"../src/interceptors/response.interceptor.ts",
|
|
12211
12217
|
"../src/interceptors/serialize.interceptor.ts",
|
|
@@ -12284,6 +12290,9 @@
|
|
|
12284
12290
|
"../src/validators/validateProjectionResult.ts",
|
|
12285
12291
|
"../src/validators/validateUpdateItem.ts"
|
|
12286
12292
|
],
|
|
12293
|
+
"../src/interceptors/custom-exception.handler.ts": [
|
|
12294
|
+
"../node_modules/@nestjs/common/index.d.ts"
|
|
12295
|
+
],
|
|
12287
12296
|
"../src/interceptors/response-with-code.interceptor.ts": [
|
|
12288
12297
|
"../node_modules/@nestjs/common/index.d.ts",
|
|
12289
12298
|
"../node_modules/rxjs/dist/types/index.d.ts",
|
|
@@ -17705,6 +17714,7 @@
|
|
|
17705
17714
|
"../src/events/update-meeting-setting.interface.ts",
|
|
17706
17715
|
"../src/events/update-meeting-status.interface.ts",
|
|
17707
17716
|
"../src/events/update-user-event-info.interface.ts",
|
|
17717
|
+
"../src/interceptors/custom-exception.handler.ts",
|
|
17708
17718
|
"../src/interceptors/response-with-code.interceptor.ts",
|
|
17709
17719
|
"../src/interceptors/response.interceptor.ts",
|
|
17710
17720
|
"../src/interceptors/serialize.interceptor.ts",
|
|
@@ -17783,6 +17793,9 @@
|
|
|
17783
17793
|
"../src/validators/validateProjectionResult.ts",
|
|
17784
17794
|
"../src/validators/validateUpdateItem.ts"
|
|
17785
17795
|
],
|
|
17796
|
+
"../src/interceptors/custom-exception.handler.ts": [
|
|
17797
|
+
"../node_modules/@nestjs/common/index.d.ts"
|
|
17798
|
+
],
|
|
17786
17799
|
"../src/interceptors/response-with-code.interceptor.ts": [
|
|
17787
17800
|
"../node_modules/@nestjs/common/index.d.ts",
|
|
17788
17801
|
"../node_modules/rxjs/dist/types/index.d.ts"
|
|
@@ -19188,6 +19201,7 @@
|
|
|
19188
19201
|
"../src/events/update-meeting-status.interface.ts",
|
|
19189
19202
|
"../src/events/update-user-event-info.interface.ts",
|
|
19190
19203
|
"../src/index.ts",
|
|
19204
|
+
"../src/interceptors/custom-exception.handler.ts",
|
|
19191
19205
|
"../src/interceptors/response-with-code.interceptor.ts",
|
|
19192
19206
|
"../src/interceptors/response.interceptor.ts",
|
|
19193
19207
|
"../src/interceptors/serialize.interceptor.ts",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.error = void 0;
|
|
4
4
|
function error(err) {
|
|
5
|
-
var _a;
|
|
5
|
+
var _a, _b;
|
|
6
6
|
const error = ((_a = err === null || err === void 0 ? void 0 : err.response) === null || _a === void 0 ? void 0 : _a.message)
|
|
7
7
|
? err.response.message
|
|
8
8
|
: err.stack
|
|
@@ -11,6 +11,7 @@ function error(err) {
|
|
|
11
11
|
return {
|
|
12
12
|
success: false,
|
|
13
13
|
error: error,
|
|
14
|
+
data: (_b = err === null || err === void 0 ? void 0 : err.response) === null || _b === void 0 ? void 0 : _b.data,
|
|
14
15
|
};
|
|
15
16
|
}
|
|
16
17
|
exports.error = error;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error.js","sourceRoot":"","sources":["../../../src/validators/responses/error.ts"],"names":[],"mappings":";;;AAEA,SAAgB,KAAK,CAAC,GAAG;;IACvB,MAAM,KAAK,GAAG,CAAA,MAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,QAAQ,0CAAE,OAAO;QAClC,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,OAAO;QACtB,CAAC,CAAC,GAAG,CAAC,KAAK;YACX,CAAC,CAAC,GAAG,CAAC,KAAK;YACX,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,GAAG,CAAA;IAC5B,OAAO;QACL,OAAO,EAAE,KAAK;QACd,KAAK,EAAE,KAAK;
|
|
1
|
+
{"version":3,"file":"error.js","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