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.2.3 to 0.3.0

18

lib/controller-crud-export.js

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

* @param {Entity} Entity An Entity instance or ctor.
* @param {string} baseUrl The base url.
* @param {Object=} optOpts Optionally define options.

@@ -22,6 +21,6 @@ * @contructor

*/
var CrudCtrl = module.exports = CrudCmd.extend(function(Entity, baseUrl, optOpts) {
var CrudCtrl = module.exports = CrudCmd.extend(function(Entity, optOpts) {
/** @type {Object} define default options */
this.opts = {
baseUrl: baseUrl,
baseUrl: 'crude',
urlField: 'localUrl',

@@ -41,4 +40,2 @@ nameField: 'name',

};
/** @type {?string} The base url for the resource */
this.baseUrl = baseUrl;

@@ -119,6 +116,15 @@ if (__.isObject(optOpts)) {

CrudCtrl.prototype.getBaseUrl = function(/* req */) {
return this.baseUrl;
return this.opts.baseUrl;
};
/**
* Set the baseUrl.
*
* @param {string} baseUrl The base url.
*/
CrudCtrl.prototype.setBaseUrl = function(baseUrl) {
this.opts.baseUrl = baseUrl;
};
/**
* Prepare the response object for each request, an internal middleware.

@@ -125,0 +131,0 @@ *

{
"name": "crude",
"description": "Seamless CRUD control operations for node.",
"version": "0.2.3",
"version": "0.3.0",
"homepage": "https://github.com/talksession/node-crude",

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

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

## Release History
- **v0.3.0**, *22 Feb 2014*
- Changed constructor signature, now only accepts an Entity and optional options.
- **v0.2.3**, *19 Feb 2014*

@@ -34,0 +36,0 @@ - Upgrade all dependencies to latest.

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