Huge News!Announcing our $40M Series B led by Abstract Ventures.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.3.4 to 0.3.5

18

lib/controller-crud-base.js

@@ -235,3 +235,19 @@ /*jshint camelcase:false */

CrudCmd.prototype._delete = function(req, res){
res.send('NOT IMPLEMENTED');
var query = new Object(null);
query[this.opts.urlField] = req.params.id;
var self = this;
return this.entity.delete(query)
.then(function() {
if (self.isJson(req)) {
return res.json(200);
}
self.addSuccess(res);
res.redirect(self.getBaseUrl(req));
}).catch(function(err) {
if (self.isJson(req)) {
return res.json(400, err);
}
self.addFlashError(req, err);
res.redirect(self.getBaseUrl(req));
});
};

@@ -238,0 +254,0 @@

2

package.json
{
"name": "crude",
"description": "Seamless CRUD control operations for node.",
"version": "0.3.4",
"version": "0.3.5",
"homepage": "https://github.com/talksession/node-crude",

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

@@ -32,2 +32,4 @@ # node-crude

## Release History
- **v0.3.5**, *23 Feb 2014*
- Implement DELETE, about time.
- **v0.3.4**, *23 Feb 2014*

@@ -34,0 +36,0 @@ - Fix symbol bug.

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