@nathapp/nestjs-common 1.0.1-rc.19 → 1.0.1-rc.20

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,3 @@
1
+ import { Request } from "./request";
2
+ import { Response } from "./response";
3
+ export { Request, Response as HttpResponse, };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../lib/http/index.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { FastifyRequest } from 'fastify';
2
+ import { Request as ExpressRequest } from 'express';
3
+ export type Request = ExpressRequest | FastifyRequest;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"request.js","sourceRoot":"","sources":["../../lib/http/request.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import { FastifyReply } from 'fastify';
2
+ import { Response as ExpressResponse } from 'express';
3
+ export type Response = ExpressResponse | FastifyReply;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response.js","sourceRoot":"","sources":["../../lib/http/response.ts"],"names":[],"mappings":""}
package/dist/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from "./config";
2
2
  export * from "./constant";
3
3
  export * from "./decorator";
4
4
  export * from "./exception";
5
+ export * from "./http";
5
6
  export * from "./i18n";
6
7
  export * from "./interceptor";
7
8
  export * from "./logging";
package/dist/index.js CHANGED
@@ -18,6 +18,7 @@ __exportStar(require("./config"), exports);
18
18
  __exportStar(require("./constant"), exports);
19
19
  __exportStar(require("./decorator"), exports);
20
20
  __exportStar(require("./exception"), exports);
21
+ __exportStar(require("./http"), exports);
21
22
  __exportStar(require("./i18n"), exports);
22
23
  __exportStar(require("./interceptor"), exports);
23
24
  __exportStar(require("./logging"), exports);
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,8CAA4B;AAC5B,8CAA4B;AAC5B,yCAAuB;AACvB,gDAA8B;AAC9B,4CAA0B;AAC1B,+CAA6B;AAC7B,8CAA4B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../lib/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,8CAA4B;AAC5B,8CAA4B;AAC5B,yCAAuB;AACvB,yCAAuB;AACvB,gDAA8B;AAC9B,4CAA0B;AAC1B,+CAA6B;AAC7B,8CAA4B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nathapp/nestjs-common",
3
- "version": "1.0.1-rc.19",
3
+ "version": "1.0.1-rc.20",
4
4
  "description": "NestJs Common Library",
5
5
  "scripts": {
6
6
  "build": "rimraf dist && tsc -p tsconfig.json",
@@ -17,7 +17,9 @@
17
17
  },
18
18
  "devDependencies": {
19
19
  "@golevelup/ts-jest": "^0.3.7",
20
- "@nestjs/testing": "^9.4.3",
20
+ "@nestjs/platform-express": "^10.0.0",
21
+ "@nestjs/platform-fastify": "^10.0.0",
22
+ "@nestjs/testing": "^10.0.0",
21
23
  "@types/body-parser": "^1.19.2",
22
24
  "@types/express": "^4.17.17",
23
25
  "@types/jest": "^29.5.2",