promise-connection
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -11,1 +11,2 @@ var UUID = require('./lib/uuid'); | ||
PC.Connection = require('./lib/connection'); | ||
PC.WindowBroker = require('./lib/window-broker'); |
@@ -31,2 +31,3 @@ var PC = require('../index'); | ||
delete connection._pending['connect']; | ||
return connection; | ||
}); | ||
@@ -42,3 +43,3 @@ | ||
if (!data._pc || (this.options.messageKey && data._key !== this.options.messageKey)) { | ||
console.log('dropping message from invalid source'); | ||
// console.warn('dropping message from invalid source'); | ||
return; | ||
@@ -73,5 +74,6 @@ } | ||
connection._connectResolve(); | ||
return connection.connected; | ||
} else { | ||
connection.connect(); | ||
} | ||
return connection.connect(); | ||
return connection.connected; | ||
} | ||
@@ -97,3 +99,4 @@ if (data._type === 'invoke') { | ||
if (this.options.debug) { | ||
console.error('PromiseConnection: Transmitting Error: ', obj.stack || obj); | ||
console.error('PromiseConnection: Transmitting Error: '); | ||
console.error(obj.stack || obj); | ||
} | ||
@@ -100,0 +103,0 @@ return copy; |
{ | ||
"name": "promise-connection", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Promise/A+ utilities for abstracting remote window requests on message ports.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
24034
14
640