@er3tickets/common 0.0.13 → 0.0.15
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/dist/filters/custom-graphql-exception.filter.d.ts +1 -1
- package/dist/filters/custom-graphql-exception.filter.js +5 -5
- package/dist/filters/custom-graphql-exception.filter.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ArgumentsHost, ExceptionFilter } from '@nestjs/common';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class CustomGraphqlExceptionFilter implements ExceptionFilter {
|
|
3
3
|
catch(exception: unknown, host: ArgumentsHost): void;
|
|
4
4
|
}
|
|
@@ -6,11 +6,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.CustomGraphqlExceptionFilter = void 0;
|
|
10
10
|
const common_1 = require("@nestjs/common");
|
|
11
11
|
const graphql_1 = require("graphql");
|
|
12
12
|
const custom_error_1 = require("../errors/custom-error");
|
|
13
|
-
let
|
|
13
|
+
let CustomGraphqlExceptionFilter = class CustomGraphqlExceptionFilter {
|
|
14
14
|
catch(exception, host) {
|
|
15
15
|
if (exception instanceof custom_error_1.CustomError) {
|
|
16
16
|
throw new graphql_1.GraphQLError(exception.message, {
|
|
@@ -42,8 +42,8 @@ let GraphqlExceptionFilter = class GraphqlExceptionFilter {
|
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
45
|
+
exports.CustomGraphqlExceptionFilter = CustomGraphqlExceptionFilter;
|
|
46
|
+
exports.CustomGraphqlExceptionFilter = CustomGraphqlExceptionFilter = __decorate([
|
|
47
47
|
(0, common_1.Catch)()
|
|
48
|
-
],
|
|
48
|
+
], CustomGraphqlExceptionFilter);
|
|
49
49
|
//# sourceMappingURL=custom-graphql-exception.filter.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom-graphql-exception.filter.js","sourceRoot":"","sources":["../../src/filters/custom-graphql-exception.filter.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAMwB;AACxB,qCAAuC;AACvC,yDAAqD;AAG9C,IAAM,
|
|
1
|
+
{"version":3,"file":"custom-graphql-exception.filter.js","sourceRoot":"","sources":["../../src/filters/custom-graphql-exception.filter.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAMwB;AACxB,qCAAuC;AACvC,yDAAqD;AAG9C,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACvC,KAAK,CAAC,SAAkB,EAAE,IAAmB;QAE3C,IAAI,SAAS,YAAY,0BAAW,EAAE,CAAC;YACrC,MAAM,IAAI,sBAAY,CAAC,SAAS,CAAC,OAAO,EAAE;gBACxC,UAAU,EAAE;oBACV,IAAI,EAAE,SAAS,CAAC,UAAU;oBAC1B,MAAM,EAAE,SAAS,CAAC,eAAe,EAAE;iBACpC;aACF,CAAC,CAAC;QACL,CAAC;QAGD,IAAI,SAAS,YAAY,sBAAa,EAAE,CAAC;YACvC,MAAM,MAAM,GAAG,SAAS,CAAC,SAAS,EAAE,CAAC;YACrC,MAAM,QAAQ,GAAG,SAAS,CAAC,WAAW,EAAE,CAAC;YAEzC,MAAM,MAAM,GACV,OAAO,QAAQ,KAAK,QAAQ;gBAC1B,CAAC,CAAE,QAAgB,CAAC,MAAM,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,OAAO,EAAE,CAAC;gBAC9D,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC,CAAC;YAE9B,MAAM,IAAI,sBAAY,CAAC,SAAS,CAAC,OAAO,EAAE;gBACxC,UAAU,EAAE;oBACV,IAAI,EAAE,MAAM;oBACZ,MAAM;iBACP;aACF,CAAC,CAAC;QACL,CAAC;QAGD,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAEzB,MAAM,IAAI,sBAAY,CAAC,sBAAsB,EAAE;YAC7C,UAAU,EAAE;gBACV,IAAI,EAAE,mBAAU,CAAC,qBAAqB;gBACtC,MAAM,EAAE,CAAC,EAAE,OAAO,EAAE,uBAAuB,EAAE,CAAC;aAC/C;SACF,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAxCY,oEAA4B;uCAA5B,4BAA4B;IADxC,IAAA,cAAK,GAAE;GACK,4BAA4B,CAwCxC"}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -31,4 +31,5 @@ __exportStar(require("./events/ticket-created-event"), exports);
|
|
|
31
31
|
__exportStar(require("./events/ticket-updated-event"), exports);
|
|
32
32
|
__exportStar(require("./events/types/order-status"), exports);
|
|
33
33
|
__exportStar(require("./filters/custom-exception.filter"), exports);
|
|
34
|
+
__exportStar(require("./filters/custom-graphql-exception.filter"), exports);
|
|
34
35
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,wDAAsC;AACtC,qEAAmD;AACnD,gEAA8C;AAC9C,2DAAyC;AACzC,oEAAkD;AAElD,wEAAsD;AACtD,0EAAwD;AACxD,wEAAsD;AAEtD,yDAAuC;AACvC,yDAAuC;AACvC,oDAAkC;AAClC,kDAAgC;AAChC,gEAA8C;AAC9C,gEAA8C;AAC9C,8DAA4C;AAE5C,oEAAkD"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,wDAAsC;AACtC,qEAAmD;AACnD,gEAA8C;AAC9C,2DAAyC;AACzC,oEAAkD;AAElD,wEAAsD;AACtD,0EAAwD;AACxD,wEAAsD;AAEtD,yDAAuC;AACvC,yDAAuC;AACvC,oDAAkC;AAClC,kDAAgC;AAChC,gEAA8C;AAC9C,gEAA8C;AAC9C,8DAA4C;AAE5C,oEAAkD;AAClD,4EAA0D"}
|