New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

traverson-mock-response

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

traverson-mock-response - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

.editorconfig

7

index.js

@@ -5,3 +5,3 @@ 'use strict';

var contentType = _contentType || 'application/json';
return function mockResponse(doc, httpStatus) {
return function mockResponse(doc, httpStatus, headers) {
var response = {};

@@ -14,4 +14,9 @@ response.body = JSON.stringify(doc);

};
if (headers) {
for (var name in headers) {
response.headers[name] = headers[name];
}
}
return response;
};
};

2

package.json
{
"name": "traverson-mock-response",
"version": "1.0.0",
"version": "1.1.0",
"description": "Mock response used by various traverson projects for testing.",

@@ -5,0 +5,0 @@ "repository": "https://github.com/basti1302/traverson-mock-response.git",

Sorry, the diff of this file is not supported yet

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