@celastrina/http
Advanced tools
Comparing version 1.0.0-beta-6 to 1.0.0-beta-7
@@ -1298,3 +1298,3 @@ /* | ||
* @brief | ||
* @param {JwtConfiguration} configuration | ||
* @param {Configuration} configuration | ||
*/ | ||
@@ -1330,3 +1330,7 @@ constructor(configuration) { | ||
super(context, name, properties); | ||
this._context.res.headers["Content-Type"] = "application/json; charset=utf-8"; | ||
// Setting up the default response. | ||
this._context.res = {status: 200, | ||
headers: {"Content-Type": "application/json; charset=utf-8", | ||
"X-celastrina-requestId": this._requestId}, | ||
body: {name: this._name, code: 200, message: "success"}}; | ||
} | ||
@@ -1389,3 +1393,3 @@ | ||
* @brief | ||
* @param {JwtConfiguration} configuration | ||
* @param {Configuration} configuration | ||
*/ | ||
@@ -1392,0 +1396,0 @@ constructor(configuration) { |
{ | ||
"name": "@celastrina/http", | ||
"version": "1.0.0beta-6", | ||
"version": "1.0.0beta-7", | ||
"description": "HTTP Function Package for Celastrina", | ||
@@ -31,3 +31,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"@celastrina/core": "^1.0.7beta-6", | ||
"@celastrina/core": "^1.0.7beta-7", | ||
"adal-node": "^0.2.1", | ||
@@ -34,0 +34,0 @@ "axios": "^0.19.2", |
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
54209
1543