@rsdk/http.server.fastify 5.0.0-next.2 → 5.0.0-next.3
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [5.0.0-next.3](https://github.com/R-Vision/rsdk/compare/v5.0.0-next.2...v5.0.0-next.3) (2024-07-11)
|
|
7
|
+
|
|
8
|
+
### ⚠ BREAKING CHANGES
|
|
9
|
+
|
|
10
|
+
* generalize tracing headers (#247)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
* generalize tracing headers ([#247](https://github.com/R-Vision/rsdk/issues/247)) ([cee2ea6](https://github.com/R-Vision/rsdk/commit/cee2ea65c964705faf133397e285c051672c7512)), closes [#2](https://github.com/R-Vision/rsdk/issues/2) [#3](https://github.com/R-Vision/rsdk/issues/3) [#4](https://github.com/R-Vision/rsdk/issues/4) [#5](https://github.com/R-Vision/rsdk/issues/5)
|
|
15
|
+
|
|
6
16
|
## [5.0.0-next.2](https://github.com/R-Vision/rsdk/compare/v5.0.0-next.1...v5.0.0-next.2) (2024-07-10)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @rsdk/http.server.fastify
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import type { AbstractHttpAdapter } from '@nestjs/core';
|
|
2
|
-
import
|
|
3
|
-
import { AbstractRsdkHttpTransport } from '@rsdk/http.server';
|
|
2
|
+
import { AbstractHttpTransport } from '@rsdk/http.server';
|
|
4
3
|
import type { HttpConfig } from '@rsdk/http.server/dist/http.config';
|
|
5
|
-
export declare class FastifyHttpTransport extends
|
|
6
|
-
readonly options?: HttpTransportOptions;
|
|
7
|
-
constructor(options?: HttpTransportOptions);
|
|
4
|
+
export declare class FastifyHttpTransport extends AbstractHttpTransport {
|
|
8
5
|
createHttpAdapter(httpConfig: HttpConfig): AbstractHttpAdapter;
|
|
9
6
|
}
|
|
@@ -3,14 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.FastifyHttpTransport = void 0;
|
|
4
4
|
const platform_fastify_1 = require("@nestjs/platform-fastify");
|
|
5
5
|
const http_server_1 = require("@rsdk/http.server");
|
|
6
|
-
class FastifyHttpTransport extends http_server_1.
|
|
7
|
-
options;
|
|
8
|
-
constructor(options) {
|
|
9
|
-
super();
|
|
10
|
-
if (options) {
|
|
11
|
-
this.options = options;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
6
|
+
class FastifyHttpTransport extends http_server_1.AbstractHttpTransport {
|
|
14
7
|
createHttpAdapter(httpConfig) {
|
|
15
8
|
const { parsers } = this.options ?? {};
|
|
16
9
|
const { bodyLimit } = httpConfig;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fastify-http-transport.js","sourceRoot":"","sources":["../src/fastify-http-transport.ts"],"names":[],"mappings":";;;AACA,+DAA0D;AAE1D,
|
|
1
|
+
{"version":3,"file":"fastify-http-transport.js","sourceRoot":"","sources":["../src/fastify-http-transport.ts"],"names":[],"mappings":";;;AACA,+DAA0D;AAE1D,mDAA0D;AAG1D,MAAa,oBAAqB,SAAQ,mCAAqB;IAC7D,iBAAiB,CAAC,UAAsB;QACtC,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC;QACvC,MAAM,EAAE,SAAS,EAAE,GAAG,UAAU,CAAC;QACjC,MAAM,cAAc,GAAG,IAAI,iCAAc,CAAC;YACxC,SAAS,EAAE,SAAS,CAAC,KAAK,EAAE;SAC7B,CAAC,CAAC;QACH,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAkB,MAAM,CAAC,MAAM,CACnD;YACE,IAAI,EAAE;gBACJ,IAAI,EAAE,IAAI;gBACV,UAAU,EAAE,KAAK;aAClB;YACD,MAAM,EAAE,KAAK;SACd,EACD,OAAO,CACR,CAAC;QAEF,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,gGAAgG;YAChG,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC;QACxD,CAAC;QACD,IAAI,MAAM,EAAE,CAAC;YACX,gGAAgG;YAChG,cAAc,CAAC,QAAQ,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC,CAAC;QACtD,CAAC;QACD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF;AA5BD,oDA4BC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdk/http.server.fastify",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.3",
|
|
4
4
|
"description": "Adapter for @rsdk/http.server",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"license": "Apache License 2.0",
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@nestjs/platform-fastify": "^10.0.0",
|
|
21
|
-
"@rsdk/http.server": "5.0.0-next.
|
|
21
|
+
"@rsdk/http.server": "5.0.0-next.3"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
24
|
"@fastify/cookie": "^9.0.4",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"@nestjs/common": "^10.0.0",
|
|
27
27
|
"@nestjs/core": "^10.0.0",
|
|
28
28
|
"reflect-metadata": "^0.1.12 || ^0.2.0",
|
|
29
|
-
"rxjs": "^7.
|
|
29
|
+
"rxjs": "^7.8.1"
|
|
30
30
|
},
|
|
31
31
|
"peerDependenciesMeta": {
|
|
32
32
|
"@fastify/cookie": {
|
|
@@ -36,5 +36,5 @@
|
|
|
36
36
|
"optional": true
|
|
37
37
|
}
|
|
38
38
|
},
|
|
39
|
-
"gitHead": "
|
|
39
|
+
"gitHead": "c75ce1d8983ba69a6f855ba19536d28be0a9c519"
|
|
40
40
|
}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
import type { AbstractHttpAdapter } from '@nestjs/core';
|
|
2
2
|
import { FastifyAdapter } from '@nestjs/platform-fastify';
|
|
3
|
-
import type {
|
|
4
|
-
import {
|
|
3
|
+
import type { ParsersConfig } from '@rsdk/http.server';
|
|
4
|
+
import { AbstractHttpTransport } from '@rsdk/http.server';
|
|
5
5
|
import type { HttpConfig } from '@rsdk/http.server/dist/http.config';
|
|
6
6
|
|
|
7
|
-
export class FastifyHttpTransport extends
|
|
8
|
-
readonly options?: HttpTransportOptions;
|
|
9
|
-
|
|
10
|
-
constructor(options?: HttpTransportOptions) {
|
|
11
|
-
super();
|
|
12
|
-
if (options) {
|
|
13
|
-
this.options = options;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
7
|
+
export class FastifyHttpTransport extends AbstractHttpTransport {
|
|
17
8
|
createHttpAdapter(httpConfig: HttpConfig): AbstractHttpAdapter {
|
|
18
9
|
const { parsers } = this.options ?? {};
|
|
19
10
|
const { bodyLimit } = httpConfig;
|