chrome-remote-interface
Advanced tools
Comparing version 0.31.0 to 0.31.1
'use strict'; | ||
const EventEmitter = require('events'); | ||
const dns = require('dns'); | ||
@@ -8,2 +9,10 @@ const devtools = require('./lib/devtools.js'); | ||
// XXX reset the default that has been changed in | ||
// (https://github.com/nodejs/node/pull/39987) to prefer IPv4. since | ||
// implementations alway bind on 127.0.0.1 this solution should be fairly safe | ||
// (see #467) | ||
if (dns.setDefaultResultOrder) { | ||
dns.setDefaultResultOrder('ipv4first'); | ||
} | ||
function CDP(options, callback) { | ||
@@ -10,0 +19,0 @@ if (typeof options === 'function') { |
@@ -18,3 +18,3 @@ { | ||
"homepage": "https://github.com/cyrus-and/chrome-remote-interface", | ||
"version": "0.31.0", | ||
"version": "0.31.1", | ||
"repository": { | ||
@@ -21,0 +21,0 @@ "type": "git", |
@@ -400,3 +400,15 @@ # chrome-remote-interface [![Build Status][]][travis] | ||
``` | ||
## TypeScript Support | ||
[TypeScript][] definitions are kindly provided by [Khairul Azhar Kasmiran][] and [Seth Westphal][], and can be installed from [DefinitelyTyped][]: | ||
``` | ||
npm install --save-dev @types/chrome-remote-interface | ||
``` | ||
[TypeScript]: https://www.typescriptlang.org/ | ||
[Khairul Azhar Kasmiran]: https://github.com/kazarmy | ||
[Seth Westphal]: https://github.com/westy92 | ||
[DefinitelyTyped]: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/chrome-remote-interface | ||
## API | ||
@@ -403,0 +415,0 @@ |
@@ -17,3 +17,4 @@ 'use strict'; | ||
'http': false, | ||
'https': false | ||
'https': false, | ||
'dns': false | ||
}, | ||
@@ -20,0 +21,0 @@ alias: { |
Sorry, the diff of this file is too big to display
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
1379080
19412
972
4