Socket
Socket
Sign inDemoInstall

json-server

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-server - npm Package Compare versions

Comparing version 0.7.3 to 0.7.4

2

package.json
{
"name": "json-server",
"version": "0.7.3",
"version": "0.7.4",
"description": "Serves JSON files through REST routes.",

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

@@ -40,3 +40,3 @@ # JSON Server [![](https://travis-ci.org/typicode/json-server.svg)](https://travis-ci.org/typicode/json-server) [![](https://badge.fury.io/js/json-server.svg)](http://badge.fury.io/js/json-server)

Here are all the available routes.
Based on the previous `db.json`, here are all the available routes.

@@ -43,0 +43,0 @@ ```

@@ -159,3 +159,3 @@ var express = require('express')

res.jsonp(resource)
res.status(201).jsonp(resource)
}

@@ -162,0 +162,0 @@

@@ -211,3 +211,3 @@ var request = require('supertest')

.expect({id: 3, body: 'foo', booleanValue: true, integerValue: 1})
.expect(200)
.expect(201)
.end(function(err, res) {

@@ -226,3 +226,3 @@ if (err) return done(err)

.expect('Content-Type', /json/)
.expect(200)
.expect(201)
.end(function(err, res) {

@@ -229,0 +229,0 @@ if (err) return done(err)

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