New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rest-router

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rest-router - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

2

package.json
{
"name": "rest-router",
"version": "0.1.3",
"version": "0.1.4",
"description": "All The Rest. Universal router for all models.",

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

@@ -75,3 +75,3 @@ var mongoose = require('mongoose');

Model.create(body, function (err, model) {
Model.create(model, function (err, model) {
if (err) {

@@ -95,3 +95,3 @@ return next(err);

Model.findByIdAndUpdate(id, body, function (err, model) {
Model.findByIdAndUpdate(id, model, function (err, model) {
if (err) {

@@ -98,0 +98,0 @@ return next(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