@rsdk/http.server.express 5.11.0 → 5.12.0-next.0
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.
|
@@ -16,17 +16,17 @@ class ExpressHttpTransport extends http_server_1.AbstractHttpTransport {
|
|
|
16
16
|
cookie: false,
|
|
17
17
|
}, parsers);
|
|
18
18
|
if (body.json) {
|
|
19
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports,import/no-extraneous-dependencies
|
|
20
20
|
const { json } = require('body-parser');
|
|
21
21
|
expressAdapter.use(json({ limit: bodyLimit.bytes() }));
|
|
22
22
|
}
|
|
23
23
|
if (body.urlencoded) {
|
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports,import/no-extraneous-dependencies
|
|
25
25
|
const { urlencoded } = require('body-parser');
|
|
26
26
|
expressAdapter.use(urlencoded({ extended: true, limit: bodyLimit.bytes() }));
|
|
27
27
|
}
|
|
28
28
|
if (cookie) {
|
|
29
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
|
29
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports,import/no-extraneous-dependencies
|
|
30
30
|
expressAdapter.use(require('cookie-parser')());
|
|
31
31
|
}
|
|
32
32
|
return expressAdapter;
|
|
@@ -1 +1 @@
|
|
|
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,
|
|
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,mGAAmG;YACnG,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,mGAAmG;YACnG,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,mGAAmG;YACnG,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.
|
|
3
|
+
"version": "5.12.0-next.0",
|
|
4
4
|
"description": "Adapter for @rsdk/http.server",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"repository": {
|
|
@@ -33,5 +33,5 @@
|
|
|
33
33
|
"optional": true
|
|
34
34
|
}
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "412cd0e0b03008a91b357e076024ee3c81586eb7"
|
|
37
37
|
}
|
|
@@ -21,14 +21,14 @@ export class ExpressHttpTransport extends AbstractHttpTransport {
|
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
if (body.json) {
|
|
24
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports,import/no-extraneous-dependencies
|
|
25
25
|
const { json } = require('body-parser');
|
|
26
26
|
|
|
27
27
|
expressAdapter.use(json({ limit: bodyLimit.bytes() }));
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
if (body.urlencoded) {
|
|
31
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports,import/no-extraneous-dependencies
|
|
32
32
|
const { urlencoded } = require('body-parser');
|
|
33
33
|
|
|
34
34
|
expressAdapter.use(
|
|
@@ -37,7 +37,7 @@ export class ExpressHttpTransport extends AbstractHttpTransport {
|
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
if (cookie) {
|
|
40
|
-
// eslint-disable-next-line @typescript-eslint/no-
|
|
40
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports,import/no-extraneous-dependencies
|
|
41
41
|
expressAdapter.use(require('cookie-parser')());
|
|
42
42
|
}
|
|
43
43
|
return expressAdapter;
|