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.1-alpha.5 to 0.0.1-alpha.6

2

app.js

@@ -62,3 +62,2 @@ const Koa = require('koa');

loadRoutes(initialRoutes);
app.use(router.routes());
};

@@ -68,2 +67,3 @@

currentRoutes = { ...currentRoutes, ...routes };
router.stack = [];
loadRoutes(currentRoutes);

@@ -70,0 +70,0 @@ };

@@ -6,5 +6,5 @@ {

"dependencies": {
"json-mock-server": "0.0.1-alpha.4",
"json-mock-server": "0.0.1-alpha.5",
"mocha": "^5.0.5"
}
}

@@ -35,5 +35,5 @@ const assert = require('assert');

return getUser(10).then().catch(err => {
console.log(err);
// assert.deepEqual()
return getUser(10).then(res => {
assert.equal(res.statusCode, 500);
assert.equal(res.statusMessage, 'Internal Server Error');
});

@@ -40,0 +40,0 @@ });

{
"name": "json-mock-server",
"version": "0.0.1-alpha.5",
"version": "0.0.1-alpha.6",
"description": "Simple server with routes described as a JSON object",

@@ -5,0 +5,0 @@ "bin": {

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