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

apimocker

Package Overview
Dependencies
Maintainers
1
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apimocker - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

2

package.json
{
"name": "apimocker",
"description": "Simple HTTP server that returns mock service API responses to your front end.",
"version": "0.1.8",
"version": "0.1.9",
"engines": {"node": ">=0.10.0"},

@@ -6,0 +6,0 @@ "author": "Greg Stroup <gstroup@gmail.com>",

@@ -94,6 +94,7 @@ # apimocker

```
will return data from the mock file called "customerId1234.json". Switch values can also be passed in as query parameters:
will return data from the mock file called "customerId1234ace.json". Switch values can also be passed in as query parameters:
http://localhost:7878/nested/ace?customerId=1234
or as part of the URL, if you have configured your service to handle variables, like the "var/:id" service above:
http://localhost:7878/var/789
If the specific file, such as "customerId1234ace.json" is not found, then apimocker will attempt to return the base file: "ace.json".

@@ -126,2 +127,4 @@ ## Runtime configuration

New config file format was introduced, allowing for custom content-types and more fine grained control over services.
### 0.1.8
New "switch" feature added, allowing different responses based on a request parameter.

@@ -128,0 +131,0 @@ ## Contributors

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