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

crude

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crude - npm Package Compare versions

Comparing version 0.5.12 to 0.5.14

wiki/Api.md

4

lib/controller-crud-base.js

@@ -95,3 +95,3 @@ /*jshint camelcase:false */

var sanitizedDoc = this._sanitizeResult(doc);
res.json(200, sanitizedDoc);
res.status(200).json(sanitizedDoc);
} else {

@@ -135,3 +135,3 @@ // assign the item to the tpl vars.

if (this.isJson(req)) {
res.json(200, this._sanitizeResult(doc));
res.status(200).json(this._sanitizeResult(doc));
} else {

@@ -138,0 +138,0 @@ res.redirect(this.getBaseUrl(req, true) + '/' + doc[this.opts.urlField]);

@@ -34,3 +34,3 @@ /**

var sanitizedDoc = self.base._sanitizeResult(doc);
res.json(200, sanitizedDoc);
res.status(200).json(sanitizedDoc);
} else {

@@ -37,0 +37,0 @@ res.redirect(self.base.getBaseUrl(req) + '/' +

@@ -36,3 +36,3 @@ /**

if (self.base.isJson(req)) {
return res.json(200);
return res.status(200).json();
}

@@ -43,3 +43,3 @@ self.base.addSuccess(res);

if (self.base.isJson(req)) {
return res.json(400, self.base.jsonError(err));
return res.status(400).json(self.base.jsonError(err));
}

@@ -46,0 +46,0 @@ self.base.addFlashError(req, err);

@@ -65,3 +65,3 @@ /**

var sanitizedDocs = self.base.hidePrivatesArray(results);
res.json(200, sanitizedDocs);
res.status(200).json(sanitizedDocs);
return;

@@ -68,0 +68,0 @@ }

@@ -107,2 +107,3 @@ /**

res.set('Link', httplink);
res.set('X-query-total', count);

@@ -109,0 +110,0 @@ res.status(200).json(items);

{
"name": "crude",
"description": "Seamless CRUD control operations for node.",
"version": "0.5.12",
"version": "0.5.14",
"homepage": "https://github.com/thanpolas/crude",

@@ -6,0 +6,0 @@ "author": {

@@ -36,2 +36,5 @@ # node-crude

- **v0.5.13**, *01 Sep 2014*
- Populates total item count for pagination query.
- Express 4.0 compatible.
- **v0.5.12**, *06 Aug 2014*

@@ -38,0 +41,0 @@ - No longer assume that `readLimit` OP result is an array.

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