@live-change/dao 0.8.106 → 0.8.108

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.
Files changed (2) hide show
  1. package/lib/SimpleDao.js +4 -2
  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
- console.log("METHOD", what[1], "not found in", what)
40
- if(!method) throw new Error("methodNotFound")
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
@@ -35,6 +35,6 @@
35
35
  "scripts": {
36
36
  "test": "NODE_ENV=test tape tests/*"
37
37
  },
38
- "version": "0.8.106",
39
- "gitHead": "cd0102a76312f65e91a6cd70fab3e0a4ff961345"
38
+ "version": "0.8.108",
39
+ "gitHead": "b272a01967e326d10874fea13353ab8fa5c30fe8"
40
40
  }