@live-change/dao 0.8.34 → 0.8.35

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.
@@ -17,20 +17,20 @@ class InboxReader {
17
17
  this.readPromiseResolve = null
18
18
 
19
19
  this.observer = (signal, ...args) => {
20
- if(signal == 'error') {
20
+ if(signal === 'error') {
21
21
  const error = args[0]
22
- console.error("PEER MESSAGE ERROR", error.stack || error)
22
+ console.error("INBOX READER ERROR", error.stack || error)
23
23
  return
24
24
  }
25
- if(signal == 'putByField') {
26
- const [field, id, message] = args
25
+ if(signal === 'putByField') {
26
+ const [_field, _id, message] = args
27
27
  this.handleMessage(message)
28
- } else if(signal == 'set') {
28
+ } else if(signal === 'set') {
29
29
  const value = args[0]
30
30
  for (const message of value) {
31
31
  this.handleMessage(message)
32
32
  }
33
- } else if(signal == 'push') {
33
+ } else if(signal === 'push') {
34
34
  const [...messages] = args
35
35
  for(const message of messages) this.handleMessage(message)
36
36
  } else {
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.34",
39
- "gitHead": "40e61928bf43b35352c76fc135f36a2d8bd76c4a"
38
+ "version": "0.8.35",
39
+ "gitHead": "90fbb746dc7270895daf17b437ca48c0b0a01c01"
40
40
  }