Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

promise-connection

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

promise-connection - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

lib/window-broker.js

1

index.js

@@ -11,1 +11,2 @@ var UUID = require('./lib/uuid');

PC.Connection = require('./lib/connection');
PC.WindowBroker = require('./lib/window-broker');

11

lib/connection.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc