@friendsofshopware/app-server-sdk-express
Advanced tools
Comparing version 0.0.28 to 0.0.30
@@ -13,8 +13,12 @@ export async function convertResponse(response, expressResponse) { | ||
} | ||
return new Request(expressRequest.url, { | ||
const options = { | ||
headers, | ||
method: expressRequest.method, | ||
}; | ||
// @ts-ignore | ||
if (expressRequest.rawBody) { | ||
// @ts-ignore | ||
body: expressRequest.rawBody || '', | ||
}); | ||
options.body = expressRequest.rawBody; | ||
} | ||
return new Request(expressRequest.protocol + '://' + expressRequest.get('host') + expressRequest.originalUrl, options); | ||
} | ||
@@ -21,0 +25,0 @@ export function rawRequestMiddleware(req, res, next) { |
@@ -5,3 +5,3 @@ { | ||
"name": "@friendsofshopware/app-server-sdk-express", | ||
"version": "0.0.28", | ||
"version": "0.0.30", | ||
"description": "Express Integration for Shopware App Server SDK", | ||
@@ -8,0 +8,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2286
43