Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

diamond.js

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

diamond.js - npm Package Compare versions

Comparing version 0.2.21 to 0.2.22

17

lib/router.js

@@ -15,11 +15,11 @@ // Generated by CoffeeScript 1.8.0

Router.prototype.resource = function(name, param) {
if (param == null) {
param = "id";
}
Router.prototype.resource = function(name, callback) {
this.get("/" + name, "" + name + "#index");
this.get("/" + name + "/:" + param, "" + name + "#show");
this.get("/" + name + "/:" + name, "" + name + "#show");
this.post("/" + name, "" + name + "#create");
this.put("/" + name + "/:" + param, "" + name + "#update");
return this["delete"]("/" + name + "/:" + param, "" + name + "#destroy");
this.put("/" + name + "/:" + name, "" + name + "#update");
this["delete"]("/" + name + "/:" + name, "" + name + "#destroy");
if (callback != null) {
return this.route(name, callback);
}
};

@@ -57,2 +57,5 @@

_ref = action.split('#'), controller = _ref[0], action = _ref[1];
if (Controller.controllers[controller].getInstance() == null) {
throw "No Controller named " + controller + "Controller";
}
return {

@@ -59,0 +62,0 @@ controller: Controller.controllers[controller].getInstance(),

{
"name": "diamond.js",
"description": "Generic MVC web framework",
"version": "0.2.21",
"version": "0.2.22",
"author": {

@@ -6,0 +6,0 @@ "name": "Arthur Xavier",

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