Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@hashicorp/api-double

Package Overview
Dependencies
Maintainers
9
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hashicorp/api-double - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

12

lib/controller.js

@@ -51,4 +51,10 @@ module.exports = function(resolve, find, render, YAML, mutate) {

result = mutate(request, result, config);
let status = 200;
if (config.headers) {
response.set(config.headers.response || {});
if(config.headers.response) {
response.set(config.headers.response);
if(config.headers.response['Status-Code']) {
status = config.headers.response['Status-Code'];
}
}
}

@@ -58,7 +64,7 @@ switch (true) {

return setTimeoutPromised(function() {
return response.send(result);
return response.send(status, result);
}, config.latency);
break;
default:
return response.send(result);
return response.send(status, result);
}

@@ -65,0 +71,0 @@ })

{
"name": "@hashicorp/api-double",
"version": "1.4.2",
"version": "1.4.3",
"description": "api-double serving via HTTP or other means",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc