chrome-remote-interface
Advanced tools
Comparing version 0.31.3 to 0.32.0
@@ -13,2 +13,3 @@ 'use strict'; | ||
const requestOptions = { | ||
method: options.method, | ||
host: options.host || defaults.HOST, | ||
@@ -82,2 +83,3 @@ port: options.port || defaults.PORT, | ||
} | ||
options.method = options.method || 'PUT'; // see #497 | ||
devToolsInterface(path, options, (err, tab) => { | ||
@@ -84,0 +86,0 @@ if (err) { |
@@ -24,3 +24,3 @@ 'use strict'; | ||
// perform the actual request | ||
const request = transport.get(options, (response) => { | ||
const request = transport.request(options, (response) => { | ||
let data = ''; | ||
@@ -42,4 +42,5 @@ response.on('data', (chunk) => { | ||
request.on('error', callback); | ||
request.end(); | ||
} | ||
module.exports = externalRequest; |
@@ -18,3 +18,3 @@ { | ||
"homepage": "https://github.com/cyrus-and/chrome-remote-interface", | ||
"version": "0.31.3", | ||
"version": "0.32.0", | ||
"repository": { | ||
@@ -21,0 +21,0 @@ "type": "git", |
@@ -403,2 +403,3 @@ # chrome-remote-interface [![Build Status][]][travis] | ||
``` | ||
## TypeScript Support | ||
@@ -412,2 +413,8 @@ | ||
Note that the TypeScript definitions are automatically generated from the npm package `devtools-protocol@0.0.927104`. For other versions of devtools-protocol: | ||
1. Install patch-package using [the instructions given](https://github.com/ds300/patch-package#set-up). | ||
2. Copy the contents of the corresponding https://github.com/ChromeDevTools/devtools-protocol/tree/master/types folder (according to commit) into `node_modules/devtools-protocol/types`. | ||
3. Run `npx patch-package devtools-protocol` so that the changes persist across an `npm install`. | ||
[TypeScript]: https://www.typescriptlang.org/ | ||
@@ -414,0 +421,0 @@ [Khairul Azhar Kasmiran]: https://github.com/kazarmy |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
1832941
26009
991