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

json-mock-server

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-mock-server - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

2

app.js
const Koa = require('koa');
const cors = require('@koa/cors');
const Router = require('koa-router');

@@ -38,2 +39,3 @@ const chalk = require('chalk');

}
app.use(cors({ origin: "*", allowHeaders: "Origin, X-Requested-With, Content-Type, Accept" }));
initialRoutes = { ...routes };

@@ -40,0 +42,0 @@ currentRoutes = { ...routes };

3

package.json
{
"name": "json-mock-server",
"version": "0.0.4",
"version": "0.0.5",
"description": "A lightweight tool to spin up a simple mock server using JSON syntax - perfect for mocked development, offline development or unit testing.",

@@ -18,2 +18,3 @@ "bin": {

"dependencies": {
"@koa/cors": "^2.2.1",
"chalk": "2.3.2",

@@ -20,0 +21,0 @@ "commander": "2.15.1",

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