chore: update http-request-plus to 0.7.1
This commit is contained in:
parent
23687f62f0
commit
cfd956631b
@ -36,7 +36,7 @@
|
|||||||
"debug": "^4.0.1",
|
"debug": "^4.0.1",
|
||||||
"event-to-promise": "^0.8.0",
|
"event-to-promise": "^0.8.0",
|
||||||
"exec-promise": "^0.7.0",
|
"exec-promise": "^0.7.0",
|
||||||
"http-request-plus": "^0.7.0",
|
"http-request-plus": "^0.7.1",
|
||||||
"iterable-backoff": "^0.0.0",
|
"iterable-backoff": "^0.0.0",
|
||||||
"jest-diff": "^23.5.0",
|
"jest-diff": "^23.5.0",
|
||||||
"json-rpc-protocol": "^0.13.1",
|
"json-rpc-protocol": "^0.13.1",
|
||||||
|
@ -667,13 +667,13 @@ export class Xapi extends EventEmitter {
|
|||||||
query: 'task_id' in query ? omit(query, 'task_id') : query,
|
query: 'task_id' in query ? omit(query, 'task_id') : query,
|
||||||
}).then(
|
}).then(
|
||||||
response => {
|
response => {
|
||||||
response.req.abort()
|
response.cancel()
|
||||||
return doRequest()
|
return doRequest()
|
||||||
},
|
},
|
||||||
error => {
|
error => {
|
||||||
let response
|
let response
|
||||||
if (error != null && (response = error.response) != null) {
|
if (error != null && (response = error.response) != null) {
|
||||||
response.req.abort()
|
response.cancel()
|
||||||
|
|
||||||
const {
|
const {
|
||||||
headers: { location },
|
headers: { location },
|
||||||
@ -701,12 +701,12 @@ export class Xapi extends EventEmitter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (req.finished) {
|
if (req.finished) {
|
||||||
req.abort()
|
response.cancel()
|
||||||
return taskResult
|
return taskResult
|
||||||
}
|
}
|
||||||
|
|
||||||
return fromEvents(req, ['close', 'finish']).then(() => {
|
return fromEvents(req, ['close', 'finish']).then(() => {
|
||||||
req.abort()
|
response.cancel()
|
||||||
return taskResult
|
return taskResult
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
@ -33,7 +33,7 @@
|
|||||||
"chalk": "^2.2.0",
|
"chalk": "^2.2.0",
|
||||||
"exec-promise": "^0.7.0",
|
"exec-promise": "^0.7.0",
|
||||||
"fs-promise": "^2.0.3",
|
"fs-promise": "^2.0.3",
|
||||||
"http-request-plus": "^0.7.0",
|
"http-request-plus": "^0.7.1",
|
||||||
"human-format": "^0.10.0",
|
"human-format": "^0.10.0",
|
||||||
"l33teral": "^3.0.3",
|
"l33teral": "^3.0.3",
|
||||||
"lodash": "^4.17.4",
|
"lodash": "^4.17.4",
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
"node": ">=6"
|
"node": ">=6"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"http-request-plus": "^0.7.0",
|
"http-request-plus": "^0.7.1",
|
||||||
"jsonrpc-websocket-client": "^0.4.1"
|
"jsonrpc-websocket-client": "^0.4.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
"helmet": "^3.9.0",
|
"helmet": "^3.9.0",
|
||||||
"highland": "^2.11.1",
|
"highland": "^2.11.1",
|
||||||
"http-proxy": "^1.16.2",
|
"http-proxy": "^1.16.2",
|
||||||
"http-request-plus": "^0.7.0",
|
"http-request-plus": "^0.7.1",
|
||||||
"http-server-plus": "^0.10.0",
|
"http-server-plus": "^0.10.0",
|
||||||
"human-format": "^0.10.0",
|
"human-format": "^0.10.0",
|
||||||
"is-redirect": "^1.0.0",
|
"is-redirect": "^1.0.0",
|
||||||
|
@ -6563,10 +6563,10 @@ http-proxy@^1.16.2:
|
|||||||
follow-redirects "^1.0.0"
|
follow-redirects "^1.0.0"
|
||||||
requires-port "^1.0.0"
|
requires-port "^1.0.0"
|
||||||
|
|
||||||
http-request-plus@^0.7.0:
|
http-request-plus@^0.7.1:
|
||||||
version "0.7.0"
|
version "0.7.1"
|
||||||
resolved "https://registry.yarnpkg.com/http-request-plus/-/http-request-plus-0.7.0.tgz#da337ede0b4460a51e68182b1e9c887a1df3b86e"
|
resolved "https://registry.yarnpkg.com/http-request-plus/-/http-request-plus-0.7.1.tgz#259dd499c0be5ac3ba3ea3d05428e8748a260748"
|
||||||
integrity sha512-+LspB7FJ8ZVG6Awh3L0Nkjny4l+DMSrkS0N6T3Q7hzjue/Ig0U/HbMnuxz66rrrFPFi6ZDt+IzrrpkDDCfTiNA==
|
integrity sha512-/1euyr0znKEB+gQ0JmyYkZVWOgXZtRJcTE4p+Ig26ppaVqymWikz75tHSt+dHPiSgZWpGrpjN+3973KoVzP+AA==
|
||||||
dependencies:
|
dependencies:
|
||||||
is-redirect "^1.0.0"
|
is-redirect "^1.0.0"
|
||||||
lodash "^4.17.4"
|
lodash "^4.17.4"
|
||||||
|
Loading…
Reference in New Issue
Block a user