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

backbone-orm

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backbone-orm - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

5

lib/cache/memory_store.js

@@ -26,2 +26,3 @@ // Generated by CoffeeScript 1.6.3

}
this.forEach = __bind(this.forEach, this);
this.reset = __bind(this.reset, this);

@@ -87,2 +88,6 @@ this.destroy = __bind(this.destroy, this);

MemoryStore.prototype.forEach = function(callback) {
return this.cache.forEach(callback);
};
return MemoryStore;

@@ -89,0 +94,0 @@

9

lib/cursor.js

@@ -288,6 +288,7 @@ // Generated by CoffeeScript 1.6.3

relation_key = related_fields[_i];
relation = this.model_type.relation(relation_key);
related_model_types.push(relation.reverse_model_type);
if (relation.join_table) {
related_model_types.push(relation.join_table);
if (relation = this.model_type.relation(relation_key)) {
related_model_types.push(relation.reverse_model_type);
if (relation.join_table) {
related_model_types.push(relation.join_table);
}
}

@@ -294,0 +295,0 @@ }

@@ -79,2 +79,12 @@ // Generated by CoffeeScript 1.6.3

Utils.inspect = function(obj) {
var err;
try {
return JSON.stringify(obj);
} catch (_error) {
err = _error;
return "inspect: " + err;
}
};
Utils.bbCallback = function(callback) {

@@ -81,0 +91,0 @@ return {

{
"name": "backbone-orm",
"version": "0.5.0",
"version": "0.5.1",
"description": "A polystore ORM for Node.js and the browser",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -25,3 +25,3 @@ [![Build Status](https://secure.travis-ci.org/vidigami/backbone-orm.png)](http://travis-ci.org/vidigami/backbone-orm)

```
```coffeescript
# Find the Project with id = 123

@@ -82,3 +82,3 @@ Project.findOne {id: 123}, (err, project) ->

```
```javascript
// Find the Project with id = 123

@@ -146,10 +146,16 @@ Project.findOne({id: 123}, function(err, project) {});

$ npm run build
```
$ npm run
```
To build the library for the browser:
$ grunt
```
$ grunt
```
Please run tests before submitting a pull request.
$ npm test
```
$ npm test
```

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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