@live-change/dao 0.8.106 → 0.8.107
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 +4 -2
- package/package.json +2 -2
package/lib/SimpleDao.js
CHANGED
|
@@ -36,8 +36,10 @@ class SimpleDao {
|
|
|
36
36
|
|
|
37
37
|
request(what, ...args) {
|
|
38
38
|
let method = this.defn.methods[what[1]]
|
|
39
|
-
|
|
40
|
-
|
|
39
|
+
if(!method) {
|
|
40
|
+
console.log("METHOD", what[1], "not found in", what)
|
|
41
|
+
throw new Error("methodNotFound")
|
|
42
|
+
}
|
|
41
43
|
let res = method(...(what.slice(2).concat(args)))
|
|
42
44
|
if(res && res.then) return res
|
|
43
45
|
return Promise.resolve(res)
|
package/package.json
CHANGED