chore(xen-api): event-to-promise → promise-toolbox/fromEvent

This commit is contained in:
Julien Fontanet 2021-03-02 10:19:41 +01:00
parent ff65367851
commit eab6eb8fab
2 changed files with 2 additions and 4 deletions

View File

@ -37,7 +37,6 @@
"bind-property-descriptor": "^1.0.0",
"blocked": "^1.2.1",
"debug": "^4.0.1",
"event-to-promise": "^0.8.0",
"exec-promise": "^0.7.0",
"http-request-plus": "^0.8.0",
"jest-diff": "^26.4.2",

View File

@ -3,11 +3,10 @@
import blocked from 'blocked'
import createDebug from 'debug'
import diff from 'jest-diff'
import eventToPromise from 'event-to-promise'
import execPromise from 'exec-promise'
import minimist from 'minimist'
import pw from 'pw'
import { asCallback, fromCallback } from 'promise-toolbox'
import { asCallback, fromCallback, fromEvent } from 'promise-toolbox'
import { filter, find } from 'lodash'
import { getBoundPropertyDescriptor } from 'bind-property-descriptor'
import { start as createRepl } from 'repl'
@ -116,7 +115,7 @@ const main = async args => {
)
})(repl.eval)
await eventToPromise(repl, 'exit')
await fromEvent(repl, 'exit')
try {
await xapi.disconnect()