Comparing version 0.0.6 to 0.0.7
@@ -108,3 +108,3 @@ 'use strict'; | ||
function query(_x) { | ||
function query() { | ||
return _ref.apply(this, arguments); | ||
@@ -188,3 +188,3 @@ } | ||
function fetch(_x2) { | ||
function fetch() { | ||
return _ref2.apply(this, arguments); | ||
@@ -342,3 +342,3 @@ } | ||
function checkUniqueness(_x3, _x4) { | ||
function checkUniqueness(_x, _x2) { | ||
return _ref5.apply(this, arguments); | ||
@@ -428,3 +428,3 @@ } | ||
function load(_x5) { | ||
function load(_x3) { | ||
return _ref6.apply(this, arguments); | ||
@@ -431,0 +431,0 @@ } |
@@ -103,3 +103,3 @@ 'use strict'; | ||
function fetch(_x) { | ||
function fetch() { | ||
return _ref.apply(this, arguments); | ||
@@ -149,3 +149,3 @@ } | ||
function query(_x2) { | ||
function query() { | ||
return _ref2.apply(this, arguments); | ||
@@ -310,3 +310,3 @@ } | ||
function save(_x3) { | ||
function save() { | ||
return _ref4.apply(this, arguments); | ||
@@ -420,3 +420,3 @@ } | ||
function triggerEvent(_x4) { | ||
function triggerEvent(_x) { | ||
return _ref6.apply(this, arguments); | ||
@@ -459,3 +459,3 @@ } | ||
if (!this.submodels[field]) { | ||
_context7.next = 6; | ||
_context7.next = 11; | ||
break; | ||
@@ -466,9 +466,16 @@ } | ||
key = id || this.get(this.submodels[field]['key']); | ||
_context7.next = 5; | ||
_context7.prev = 3; | ||
_context7.next = 6; | ||
return model.fetch(key); | ||
case 5: | ||
case 6: | ||
this.addSubmodel(field, model); | ||
_context7.next = 11; | ||
break; | ||
case 6: | ||
case 9: | ||
_context7.prev = 9; | ||
_context7.t0 = _context7['catch'](3); | ||
case 11: | ||
case 'end': | ||
@@ -478,6 +485,6 @@ return _context7.stop(); | ||
} | ||
}, _callee7, this); | ||
}, _callee7, this, [[3, 9]]); | ||
})); | ||
function load(_x5, _x6) { | ||
function load(_x2, _x3) { | ||
return _ref7.apply(this, arguments); | ||
@@ -528,7 +535,7 @@ } | ||
} | ||
for (var _key4 in this.meta) { | ||
for (var key in this.meta) { | ||
if (!localData._meta) { | ||
localData._meta = {}; | ||
} | ||
localData._meta[_key4] = this.meta[_key4]; | ||
localData._meta[key] = this.meta[key]; | ||
} | ||
@@ -535,0 +542,0 @@ return localData; |
{ | ||
"name": "arpeggio", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "extremely opinionated ORM/ODM", | ||
@@ -5,0 +5,0 @@ "main": "lib/arpeggio.js", |
@@ -209,5 +209,10 @@ /** | ||
let key = id || this.get(this.submodels[field]['key']) | ||
await model.fetch(key) | ||
this.addSubmodel(field, model) | ||
try { | ||
await model.fetch(key) | ||
this.addSubmodel(field, model) | ||
} | ||
catch (err) { | ||
// | ||
} | ||
} | ||
@@ -214,0 +219,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
41114
1231