@rsdk/http.server.express 5.0.0-next.1 → 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,20 @@
|
|
|
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
|
+
|
|
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)
|
|
17
|
+
|
|
18
|
+
**Note:** Version bump only for package @rsdk/http.server.express
|
|
19
|
+
|
|
6
20
|
## [5.0.0-next.1](https://github.com/R-Vision/rsdk/compare/v5.0.0-next.0...v5.0.0-next.1) (2024-07-10)
|
|
7
21
|
|
|
8
22
|
**Note:** Version bump only for package @rsdk/http.server.express
|
|
@@ -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 ExpressHttpTransport extends
|
|
6
|
-
readonly options?: HttpTransportOptions;
|
|
7
|
-
constructor(options?: HttpTransportOptions);
|
|
4
|
+
export declare class ExpressHttpTransport extends AbstractHttpTransport {
|
|
8
5
|
createHttpAdapter(httpConfig: HttpConfig): AbstractHttpAdapter;
|
|
9
6
|
}
|
|
@@ -3,14 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.ExpressHttpTransport = void 0;
|
|
4
4
|
const platform_express_1 = require("@nestjs/platform-express");
|
|
5
5
|
const http_server_1 = require("@rsdk/http.server");
|
|
6
|
-
class ExpressHttpTransport extends http_server_1.
|
|
7
|
-
options;
|
|
8
|
-
constructor(options) {
|
|
9
|
-
super();
|
|
10
|
-
if (options) {
|
|
11
|
-
this.options = options;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
6
|
+
class ExpressHttpTransport 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":"express.http-transport.js","sourceRoot":"","sources":["../src/express.http-transport.ts"],"names":[],"mappings":";;;AACA,+DAA0D;AAE1D,
|
|
1
|
+
{"version":3,"file":"express.http-transport.js","sourceRoot":"","sources":["../src/express.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,EAAE,CAAC;QAC5C,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,IAAI,EAAE,CAAC;YACd,gGAAgG;YAChG,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;YAExC,cAAc,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC;QACzD,CAAC;QAED,IAAI,IAAI,CAAC,UAAU,EAAE,CAAC;YACpB,gGAAgG;YAChG,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;YAE9C,cAAc,CAAC,GAAG,CAChB,UAAU,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,CAAC,KAAK,EAAE,EAAE,CAAC,CACzD,CAAC;QACJ,CAAC;QAED,IAAI,MAAM,EAAE,CAAC;YACX,gGAAgG;YAChG,cAAc,CAAC,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC,CAAC;QACjD,CAAC;QACD,OAAO,cAAc,CAAC;IACxB,CAAC;CACF;AAtCD,oDAsCC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rsdk/http.server.express",
|
|
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": {
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"optional": true
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "c75ce1d8983ba69a6f855ba19536d28be0a9c519"
|
|
39
39
|
}
|
|
@@ -1,19 +1,10 @@
|
|
|
1
1
|
import type { AbstractHttpAdapter } from '@nestjs/core';
|
|
2
2
|
import { ExpressAdapter } from '@nestjs/platform-express';
|
|
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 ExpressHttpTransport 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 ExpressHttpTransport extends AbstractHttpTransport {
|
|
17
8
|
createHttpAdapter(httpConfig: HttpConfig): AbstractHttpAdapter {
|
|
18
9
|
const { parsers } = this.options ?? {};
|
|
19
10
|
const { bodyLimit } = httpConfig;
|