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

chrome-remote-interface

Package Overview
Dependencies
Maintainers
1
Versions
77
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chrome-remote-interface - npm Package Compare versions

Comparing version 0.25.1 to 0.25.2

19

lib/chrome.js

@@ -5,2 +5,3 @@ 'use strict';

const util = require('util');
const parseUrl = require('url').parse;

@@ -141,11 +142,14 @@ const WebSocket = require('ws');

const options = {'host': chrome.host, 'port': chrome.port, 'secure': chrome.secure};
Promise.all([
// fetch the WebSocket debugger URL
fetchDebuggerURL.call(chrome, options).then(function (url) {
chrome.webSocketUrl = url;
// update the connection parameters using the debugging URL
const urlObject = parseUrl(url);
options.host = urlObject.hostname;
options.port = urlObject.port;
// fetch the protocol and prepare the API
fetchProtocol.call(chrome, options).then(api.prepare.bind(chrome)),
// in the meanwhile fetch the WebSocket debugger URL
fetchDebuggerURL.call(chrome, options)
]).then(function (values) {
return fetchProtocol.call(chrome, options).then(api.prepare.bind(chrome));
}).then(function (values) {
// finally connect to the WebSocket
const url = values[1];
return connectToWebSocket.call(chrome, url);
return connectToWebSocket.call(chrome, chrome.webSocketUrl);
}).then(function () {

@@ -255,3 +259,2 @@ // since the handler is executed synchronously, the emit() must be

}
chrome.webSocketUrl = url;
chrome._ws = new WebSocket(url);

@@ -258,0 +261,0 @@ } catch (err) {

@@ -12,3 +12,3 @@ {

"homepage": "https://github.com/cyrus-and/chrome-remote-interface",
"version": "0.25.1",
"version": "0.25.2",
"repository": {

@@ -15,0 +15,0 @@ "type": "git",

Sorry, the diff of this file is too big to display

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