@infineit-nestjs/core 1.0.3 → 1.0.5
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/cjs/errors/common.errors.d.ts +1 -0
- package/dist/cjs/errors/common.errors.js +2 -0
- package/dist/cjs/errors/index.d.ts +1 -0
- package/dist/cjs/errors/index.js +1 -1
- package/dist/es/errors/common.errors.d.ts +1 -0
- package/dist/es/errors/common.errors.js +2 -0
- package/dist/es/errors/index.d.ts +1 -0
- package/dist/es/errors/index.js +1 -1
- package/dist/types/errors/common.errors.d.ts +3 -0
- package/dist/types/errors/index.d.ts +1 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +9 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function handleCommonErrors(error: any): void;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.handleCommonErrors=function(n){if(n instanceof e.HttpException)throw n;if(n instanceof r.Prisma.PrismaClientUnknownRequestError||n instanceof r.Prisma.PrismaClientKnownRequestError)throw n};const e=require("@nestjs/common"),r=require("@prisma/client");
|
|
2
|
+
//# sourceMappingURL=common.errors.js.map
|
package/dist/cjs/errors/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});require("tslib").__exportStar(require("./errors"),exports);
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});const r=require("tslib");r.__exportStar(require("./common.errors"),exports),r.__exportStar(require("./errors"),exports);
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function handleCommonErrors(error: any): void;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0}),exports.handleCommonErrors=function(n){if(n instanceof e.HttpException)throw n;if(n instanceof r.Prisma.PrismaClientUnknownRequestError||n instanceof r.Prisma.PrismaClientKnownRequestError)throw n};const e=require("@nestjs/common"),r=require("@prisma/client");
|
|
2
|
+
//# sourceMappingURL=common.errors.js.map
|
package/dist/es/errors/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Object.defineProperty(exports,"__esModule",{value:!0});require("tslib").__exportStar(require("./errors"),exports);
|
|
1
|
+
Object.defineProperty(exports,"__esModule",{value:!0});const r=require("tslib");r.__exportStar(require("./common.errors"),exports),r.__exportStar(require("./errors"),exports);
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export { publicRoute } from './decorators/public.request.decorator.js';
|
|
|
6
6
|
export { apiFile, apiMultiFile } from './decorators/swagger.schema.js';
|
|
7
7
|
export { ToNumber } from './decorators/transforms.decorator.js';
|
|
8
8
|
export { UUIDParam } from './decorators/uuid-param.decorator.js';
|
|
9
|
+
export { handleCommonErrors } from './errors/common.errors.js';
|
|
9
10
|
export { MissingDataError } from './errors/errors.js';
|
|
10
11
|
export { FileNotImageException } from './exceptions/file-not-image.exception.js';
|
|
11
12
|
export { HttpErrorFilter } from './exceptions/http-error.filter.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@infineit-nestjs/core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"main": "./dist/cjs/index.js",
|
|
5
5
|
"module": "./dist/es/index.mjs",
|
|
6
6
|
"exports": {
|
|
@@ -84,10 +84,12 @@
|
|
|
84
84
|
"dev": "concurrently -c blue,red -n tsc,rollup --kill-others \"tsc --watch -p . --preserveWatchOutput\" \"rollup --config --watch --no-watch.clearScreen\""
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
|
-
"@infineit-nestjs/services": "1.0.
|
|
87
|
+
"@infineit-nestjs/services": "1.0.14",
|
|
88
88
|
"@nestjs/swagger": "^11.0.7"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
+
"@nestjs/common": "^11.0.12",
|
|
92
|
+
"@nestjs/core": "^11.0.12",
|
|
91
93
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
92
94
|
"@rollup/plugin-json": "^6.1.0",
|
|
93
95
|
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
@@ -97,21 +99,23 @@
|
|
|
97
99
|
"@rollup/plugin-url": "^8.0.2",
|
|
98
100
|
"@types/rollup-plugin-peer-deps-external": "^2",
|
|
99
101
|
"@types/terser": "^3.12.0",
|
|
102
|
+
"reflect-metadata": "^0.2.2",
|
|
100
103
|
"rollup": "^4.34.8",
|
|
101
104
|
"rollup-plugin-dts": "^6.1.1",
|
|
102
105
|
"rollup-plugin-multi-input": "^1.5.0",
|
|
103
106
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
104
107
|
"rollup-plugin-preserve-directives": "^0.4.0",
|
|
108
|
+
"rxjs": "^7.8.2",
|
|
105
109
|
"typescript": "^5.7.3"
|
|
106
110
|
},
|
|
107
111
|
"peerDependencies": {
|
|
108
|
-
"@nestjs/common": "^
|
|
109
|
-
"@nestjs/core": "^
|
|
112
|
+
"@nestjs/common": "^11.0.0",
|
|
113
|
+
"@nestjs/core": "^11.0.0",
|
|
110
114
|
"typescript": "^5.7.3"
|
|
111
115
|
},
|
|
112
116
|
"sideEffects": false,
|
|
113
117
|
"publishConfig": {
|
|
114
118
|
"access": "public"
|
|
115
119
|
},
|
|
116
|
-
"gitHead": "
|
|
120
|
+
"gitHead": "301e4212aa059ae4537c5f43c3696e9647172be3"
|
|
117
121
|
}
|