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

mock-yeah

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-yeah - npm Package Compare versions

Comparing version 0.4.0 to 0.5.0

2

package.json
{
"name": "mock-yeah",
"version": "0.4.0",
"version": "0.5.0",
"description": "An invaluable service mocking platform built on Express.",

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

@@ -106,2 +106,3 @@ # Mock Yeah

- json (Object; optional) - JSON to include in response body. Assumes response Content-Type of `application/json`.
- latency (Number/Milliseconds; optional) - Used to control the response timing of a response.
- text (String; optional) - Text to include in response body. Assumes response Content-Type of `text/plain`.

@@ -108,0 +109,0 @@ - type (String; optional) - Content-Type HTTP header to return with response. Proxies option to Express response method `res.type(type)`; more info here: http://expressjs.com/en/4x/api.html#res.type

@@ -8,5 +8,7 @@ 'use strict';

after(() => mockyeah.close());
after(() => {
mockyeah.close();
});
module.exports.mockyeah = mockyeah;
module.exports.request = request('http://localhost:4041');
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