@infineit-nestjs/core 1.0.2 → 1.0.4

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.
@@ -0,0 +1 @@
1
+ export declare function handleCommonErrors(error: any): void;
@@ -1 +1,2 @@
1
+ export * from './common.errors';
1
2
  export * from './errors';
@@ -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;
@@ -1 +1,2 @@
1
+ export * from './common.errors';
1
2
  export * from './errors';
@@ -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
@@ -0,0 +1,3 @@
1
+ declare function handleCommonErrors(error: any): void;
2
+
3
+ export { handleCommonErrors };
@@ -1 +1,2 @@
1
+ export { handleCommonErrors } from './common.errors.js';
1
2
  export { MissingDataError } from './errors.js';
@@ -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.2",
3
+ "version": "1.0.4",
4
4
  "main": "./dist/cjs/index.js",
5
5
  "module": "./dist/es/index.mjs",
6
6
  "exports": {
@@ -10,20 +10,66 @@
10
10
  "require": "./dist/cjs/index.js",
11
11
  "default": "./dist/cjs/index.js"
12
12
  },
13
- "./decorators": {
14
- "types": "./dist/types/decorators/index.d.ts",
15
- "import": "./dist/es/decorators/index.mjs",
16
- "require": "./dist/cjsdecorators/index.js",
17
- "default": "./dist/cjs/decorators/index.js"
18
- },
19
13
  "./constants": {
20
14
  "types": "./dist/types/constants/index.d.ts",
21
15
  "import": "./dist/es/constants/index.mjs",
22
16
  "require": "./dist/cjs/constants/index.js",
23
17
  "default": "./dist/cjs/constants/index.js"
18
+ },
19
+ "./decorators": {
20
+ "types": "./dist/types/decorators/index.d.ts",
21
+ "import": "./dist/es/decorators/index.mjs",
22
+ "require": "./dist/cjs/decorators/index.js",
23
+ "default": "./dist/cjs/decorators/index.js"
24
+ },
25
+ "./errors": {
26
+ "types": "./dist/types/errors/index.d.ts",
27
+ "import": "./dist/es/errors/index.mjs",
28
+ "require": "./dist/cjs/errors/index.js",
29
+ "default": "./dist/cjs/errors/index.js"
30
+ },
31
+ "./exceptions": {
32
+ "types": "./dist/types/exceptions/index.d.ts",
33
+ "import": "./dist/es/exceptions/index.mjs",
34
+ "require": "./dist/cjs/exceptions/index.js",
35
+ "default": "./dist/cjs/exceptions/index.js"
36
+ },
37
+ "./filters": {
38
+ "types": "./dist/types/filters/index.d.ts",
39
+ "import": "./dist/es/filters/index.mjs",
40
+ "require": "./dist/cjs/filters/index.js",
41
+ "default": "./dist/cjs/filters/index.js"
42
+ },
43
+ "./validators": {
44
+ "types": "./dist/types/validators/index.d.ts",
45
+ "import": "./dist/es/validators/index.mjs",
46
+ "require": "./dist/cjs/validators/index.js",
47
+ "default": "./dist/cjs/validators/index.js"
24
48
  }
25
49
  },
26
50
  "types": "./dist/types/index.d.ts",
51
+ "typesVersions": {
52
+ "*": {
53
+ "constants": [
54
+ "dist/types/constants/index.d.ts"
55
+ ],
56
+ "decorators": [
57
+ "dist/types/decorators/index.d.ts"
58
+ ],
59
+ "errors": [
60
+ "dist/types/errors/index.d.ts"
61
+ ],
62
+ "exceptions": [
63
+ "dist/types/exceptions/index.d.ts"
64
+ ],
65
+ "filters": [
66
+ "dist/types/filters/index.d.ts"
67
+ ],
68
+ "validators": [
69
+ "dist/types/validators/index.d.ts"
70
+ ]
71
+ }
72
+ },
27
73
  "files": [
28
74
  "dist/",
29
75
  "README.md",
@@ -38,10 +84,12 @@
38
84
  "dev": "concurrently -c blue,red -n tsc,rollup --kill-others \"tsc --watch -p . --preserveWatchOutput\" \"rollup --config --watch --no-watch.clearScreen\""
39
85
  },
40
86
  "dependencies": {
41
- "@infineit-nestjs/services": "1.0.11",
87
+ "@infineit-nestjs/services": "1.0.13",
42
88
  "@nestjs/swagger": "^11.0.7"
43
89
  },
44
90
  "devDependencies": {
91
+ "@nestjs/common": "^11.0.12",
92
+ "@nestjs/core": "^11.0.12",
45
93
  "@rollup/plugin-commonjs": "^28.0.2",
46
94
  "@rollup/plugin-json": "^6.1.0",
47
95
  "@rollup/plugin-node-resolve": "^16.0.0",
@@ -51,21 +99,23 @@
51
99
  "@rollup/plugin-url": "^8.0.2",
52
100
  "@types/rollup-plugin-peer-deps-external": "^2",
53
101
  "@types/terser": "^3.12.0",
102
+ "reflect-metadata": "^0.2.2",
54
103
  "rollup": "^4.34.8",
55
104
  "rollup-plugin-dts": "^6.1.1",
56
105
  "rollup-plugin-multi-input": "^1.5.0",
57
106
  "rollup-plugin-peer-deps-external": "^2.2.4",
58
107
  "rollup-plugin-preserve-directives": "^0.4.0",
108
+ "rxjs": "^7.8.2",
59
109
  "typescript": "^5.7.3"
60
110
  },
61
111
  "peerDependencies": {
62
- "@nestjs/common": "^10.0.0 || ^11.0.0",
63
- "@nestjs/core": "^10.0.0 || ^11.0.0",
112
+ "@nestjs/common": "^11.0.0",
113
+ "@nestjs/core": "^11.0.0",
64
114
  "typescript": "^5.7.3"
65
115
  },
66
116
  "sideEffects": false,
67
117
  "publishConfig": {
68
118
  "access": "public"
69
119
  },
70
- "gitHead": "00f2ecdac88859957d60b018a6e7118ae6da974b"
120
+ "gitHead": "674a5851e650a70d6775f90e5178f6353df518d8"
71
121
  }