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.0 to 0.2.1

lib/model/storage.js

42

lib/model.js
// Generated by CoffeeScript 1.7.1
(function() {
var Diamond, Model, Property, Validation,
var Model, Property, Validation,
__hasProp = {}.hasOwnProperty,

@@ -11,7 +11,7 @@ __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };

Diamond = require('./application');
Model = (function(_super) {
__extends(Model, _super);
Model["extends"](require('./model/storage'));
Model.properties = {};

@@ -83,38 +83,2 @@

Model.all = function(callback) {
return Diamond.getInstance().db.all(this, callback);
};
Model.count = function(callback) {
return Diamond.getInstance().db.count(this, callback);
};
Model.find = function(options, callback) {
return Diamond.getInstance().db.find(this, options, callback);
};
Model.findById = function(id, callback) {
return Diamond.getInstance().db.findById(this, id, callback);
};
Model.prototype.save = function(callback) {
return Diamond.getInstance().db.save(this, callback);
};
Model.prototype.update = function(options, callback) {
return Diamond.getInstance().db.update(this, options, this.oroperties, callback);
};
Model.update = function(options, set, callback) {
return Diamond.getInstance().db.update(this, options, set, callback);
};
Model.prototype.remove = function(callback) {
return Diamond.getInstance().db.remove(this, this.properties, callback);
};
Model.remove = function(options, callback) {
return Diamond.getInstance().db.remove(this, options, callback);
};
return Model;

@@ -121,0 +85,0 @@

{
"name": "diamond.js",
"description": "MVC web framework",
"version": "0.2.0",
"version": "0.2.1",
"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