@aries-framework/node
Advanced tools
Comparing version 0.4.1-alpha.6 to 0.4.1-alpha.7
@@ -39,11 +39,2 @@ "use strict"; | ||
this.path = path !== null && path !== void 0 ? path : '/'; | ||
this.app.use((req, res, next) => { | ||
const contentType = req.headers['content-type']; | ||
if (!contentType || !supportedContentTypes.includes(contentType)) { | ||
return res | ||
.status(415) | ||
.send('Unsupported content-type. Supported content-types are: ' + supportedContentTypes.join(', ')); | ||
} | ||
return next(); | ||
}); | ||
this.app.use((0, express_1.text)({ type: supportedContentTypes, limit: '5mb' })); | ||
@@ -58,2 +49,8 @@ } | ||
this.app.post(this.path, async (req, res) => { | ||
const contentType = req.headers['content-type']; | ||
if (!contentType || !supportedContentTypes.includes(contentType)) { | ||
return res | ||
.status(415) | ||
.send('Unsupported content-type. Supported content-types are: ' + supportedContentTypes.join(', ')); | ||
} | ||
const session = new HttpTransportSession(core_1.utils.uuid(), req, res); | ||
@@ -60,0 +57,0 @@ try { |
@@ -5,3 +5,3 @@ { | ||
"types": "build/index", | ||
"version": "0.4.1-alpha.6+002be4f5", | ||
"version": "0.4.1-alpha.7+04a80589", | ||
"files": [ | ||
@@ -28,3 +28,3 @@ "build" | ||
"dependencies": { | ||
"@aries-framework/core": "0.4.1-alpha.6+002be4f5", | ||
"@aries-framework/core": "0.4.1-alpha.7+04a80589", | ||
"@types/express": "^4.17.15", | ||
@@ -47,3 +47,3 @@ "express": "^4.17.1", | ||
}, | ||
"gitHead": "002be4f578729aed1c8ae337f3d2eeecce9e3725" | ||
"gitHead": "04a80589b19725fb493e51e52a7345915b2c7341" | ||
} |
Sorry, the diff of this file is not supported yet
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
51066
532