@live-change/dao 0.8.105 → 0.8.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/SimpleDao.js +2 -1
- package/package.json +2 -2
package/lib/SimpleDao.js
CHANGED
|
@@ -30,12 +30,13 @@ class SimpleDao {
|
|
|
30
30
|
|
|
31
31
|
get(what) {
|
|
32
32
|
const source = this.defn.values[what[1]]
|
|
33
|
-
if(!source) throw new Error(`source ${what[1]} is not defined`)
|
|
33
|
+
if(!source) throw new Error(`source ${what[1]} is not defined while getting ${what}`)
|
|
34
34
|
return source.get(...(what.slice(2)))
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
request(what, ...args) {
|
|
38
38
|
let method = this.defn.methods[what[1]]
|
|
39
|
+
console.log("METHOD", what[1], "not found in", what)
|
|
39
40
|
if(!method) throw new Error("methodNotFound")
|
|
40
41
|
let res = method(...(what.slice(2).concat(args)))
|
|
41
42
|
if(res && res.then) return res
|
package/package.json
CHANGED