electron-ipc
Advanced tools
Comparing version 0.0.1 to 0.0.2
12
index.js
@@ -16,3 +16,3 @@ 'use strict' | ||
MESSAGES[id] = {resolve, reject} | ||
TARGET.send('handoff.request', id, ...args); | ||
TARGET.send('handoff.request', id, ...args) | ||
}) | ||
@@ -28,3 +28,3 @@ } | ||
err.stack = response.stack | ||
promiss.reject(err) | ||
promise.reject(err) | ||
} | ||
@@ -35,3 +35,3 @@ delete MESSAGES[id] | ||
TARGET.on('handoff.request', (event, id, ...args) => { | ||
this.publish(...args).then(response => { | ||
handoff.publish(...args).then(response => { | ||
event.sender.send('handoff.response', id, true, response) | ||
@@ -49,8 +49,8 @@ }).catch(err => { | ||
subscribe (name, ...args) { | ||
subscribe (...args) { | ||
return handoff.subscribe(...args) | ||
}, | ||
unsubscribe (name, ...args) { | ||
return handoff.unsubscribe(name, ...args) | ||
unsubscribe (...args) { | ||
return handoff.unsubscribe(...args) | ||
}, | ||
@@ -57,0 +57,0 @@ |
{ | ||
"name": "electron-ipc", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Easy promise-based IPC for Electron", | ||
@@ -10,3 +10,3 @@ "main": "index.js", | ||
"author": "", | ||
"license": "ISC", | ||
"license": "MIT", | ||
"dependencies": { | ||
@@ -13,0 +13,0 @@ "electron": "*", |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
4560
4
2
71