@live-change/dao-message
Advanced tools
Comparing version 0.5.10 to 0.5.14
22
index.js
@@ -15,19 +15,21 @@ const rd = require("@live-change/dao") | ||
initialize() { | ||
this.target.onmessage = event => { | ||
debug("MSG IN:", data) | ||
this.target.addEventListener('message', (event) => { | ||
debug("MSG IN:", event.data) | ||
this.handleMessage(event.data) | ||
} | ||
this.target.onerror = event => { | ||
}) | ||
this.target.addEventListener('error', (event) => { | ||
console.error("Worker", this.url, "error", event) | ||
} | ||
this.target.onmessageerror = event => { | ||
}) | ||
this.target.addEventListener('messageerror', (event) => { | ||
console.error("Worker", this.url, "message error", event) | ||
} | ||
this.target.onunhandledrejection = event => { | ||
}) | ||
this.target.addEventListener('unhandledrejection', (event) => { | ||
console.error("Worker", this.url, "unhandled rejection", event) | ||
} | ||
}) | ||
this.handleConnect() | ||
console.log("MESSAGE CONNECTED", this.url) | ||
} | ||
send(message) { | ||
debug("MSG OUT:", data) | ||
debug("MSG OUT:", message) | ||
this.target.postMessage(message) | ||
@@ -34,0 +36,0 @@ } |
{ | ||
"name": "@live-change/dao-message", | ||
"version": "0.5.10", | ||
"version": "0.5.14", | ||
"author": { | ||
@@ -13,3 +13,3 @@ "email": "m8@em8.pl", | ||
"dependencies": { | ||
"@live-change/dao": "0.5.10", | ||
"@live-change/dao": "^0.5.14", | ||
"debug": "^4.3.4", | ||
@@ -44,3 +44,4 @@ "supports-color": "^7.2.0" | ||
"compileTests": "webpack test/*.js tests-bundle.js" | ||
} | ||
}, | ||
"gitHead": "bc4c227221ae887ebbe996c9b44cc32821229361" | ||
} |
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
3990
3
43
+ Added@live-change/dao@0.5.22(transitive)
- Removed@live-change/dao@0.5.10(transitive)
Updated@live-change/dao@^0.5.14