Comparing version 0.1.3 to 0.1.4
@@ -360,3 +360,3 @@ !function(){ | ||
}.bind(this), function(err, results){ | ||
if (err) callback(results.filter(function(err){return err instanceof Error;})[0]); | ||
if (err) callback(err); | ||
else callback(); | ||
@@ -363,0 +363,0 @@ }.bind(this)); |
@@ -137,3 +137,3 @@ !function(){ | ||
}.bind(this), function(err, results){ | ||
if (err) callback(results.filter(function(x){log(type(x)); return type.error(x)})[0]); | ||
if (err) callback(err); | ||
else callback(); | ||
@@ -229,3 +229,3 @@ }.bind(this)); | ||
, _getPluralAccessorName: function(id) { | ||
var parts = id.match(/(?:^|[A-Z0-9])[^A-Z0-9]+/g); | ||
/*var parts = id.match(/(?:^|[A-Z0-9])[^A-Z0-9]+/g); | ||
@@ -237,3 +237,3 @@ if (parts){ | ||
else id = pluralize.plural(id); | ||
*/ | ||
return id; | ||
@@ -240,0 +240,0 @@ } |
@@ -9,3 +9,2 @@ !function(){ | ||
, type = require('ee-types') | ||
, async = require('ee-async') | ||
, pluralize = require('pluralize') | ||
@@ -12,0 +11,0 @@ , merge = require('merge') |
@@ -94,3 +94,3 @@ !function(){ | ||
function(err, results){ | ||
if (err) callback(results.filter(function(x){return x instanceof Error;})[0]); | ||
if (err) callback(err); | ||
else { | ||
@@ -97,0 +97,0 @@ this._buildRelations(this._resource); |
@@ -5,2 +5,3 @@ !function(){ | ||
, type = require('ee-types') | ||
, async = require('ee-async') | ||
, log = require('ee-log'); | ||
@@ -27,3 +28,3 @@ | ||
} | ||
, _column: { | ||
@@ -30,0 +31,0 @@ value: options.column |
{ | ||
"name" : "ee-orm" | ||
, "description" : "a simple yet powerful javascript orm for node.js" | ||
, "version" : "0.1.3" | ||
, "version" : "0.1.4" | ||
, "homepage" : "https://github.com/eventEmitter/ee-orm" | ||
, "author" : "Michael van der Weg <michael@eventemitter.com> (http://eventemitter.com/)" | ||
, "licence" : "mit" | ||
, "os" : "!win" | ||
, "repository": { | ||
@@ -24,3 +23,3 @@ "url" : "https://github.com/eventEmitter/ee-orm.git" | ||
, "ee-log" : "0.2.x" | ||
, "ee-async" : "0.1.x" | ||
, "ee-async" : "0.2.x" | ||
, "ee-arguments" : "0.1.x" | ||
@@ -27,0 +26,0 @@ , "clone" : "0.1.x" |
15
test.js
@@ -78,3 +78,2 @@ | ||
var transaction = orm.transaction() | ||
@@ -86,7 +85,7 @@ , query = transaction.eventbox.event(['*']).limit(10).offset(100); | ||
query.getEventLocales(['subtitle', 'description']).getLanguage().filter({language: 'de'}); | ||
query.getVenues(['name', 'address'], {id: 82358}).fetchMapping('venue_media', ['*']).fetchReference('id_media', ['*']); | ||
query.getPerformers(['*']).getMedia(['*']); | ||
query.getCategories(['id']).getCategoryLocales(['name']).getLanguage().filter({language: 'de'}); | ||
query.getSales(['*']); | ||
query.getEventLocale(['subtitle', 'description']).getLanguage().filter({language: 'de'}); | ||
query.getVenue(['name', 'address'], {id: 82358}).fetchMapping('venue_media', ['*']).fetchReference('id_media', ['*']); | ||
query.getPerformer(['*']).getMedia(['*']); | ||
query.getCategory(['id']).getCategoryLocale(['name']).getLanguage().filter({language: 'de'}); | ||
query.getSale(['*']); | ||
query.fetchMedia(['*']); | ||
@@ -105,3 +104,3 @@ | ||
//events.first().reload(); | ||
log(events); | ||
//log(events); | ||
/*events.forEach(function(event){ | ||
@@ -117,3 +116,3 @@ event.venues.forEach(function(venue){ | ||
//exec(); | ||
exec(); | ||
@@ -120,0 +119,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2136
74804
+ Addedee-async@0.2.11(transitive)
- Removedee-async@0.1.0(transitive)
Updatedee-async@0.2.x