chore(Xapi): import pCatch directly from promise-toolbox
This commit is contained in:
parent
cfc6374995
commit
40041cd727
@ -367,7 +367,6 @@ export function pSettle (promises) {
|
|||||||
|
|
||||||
export {
|
export {
|
||||||
all as pAll,
|
all as pAll,
|
||||||
catchPlus as pCatch,
|
|
||||||
delay as pDelay,
|
delay as pDelay,
|
||||||
fromCallback as pFromCallback,
|
fromCallback as pFromCallback,
|
||||||
isPromise,
|
isPromise,
|
||||||
|
@ -4,7 +4,7 @@ import fatfs from 'fatfs'
|
|||||||
import synchronized from 'decorator-synchronized'
|
import synchronized from 'decorator-synchronized'
|
||||||
import tarStream from 'tar-stream'
|
import tarStream from 'tar-stream'
|
||||||
import vmdkToVhd from 'xo-vmdk-to-vhd'
|
import vmdkToVhd from 'xo-vmdk-to-vhd'
|
||||||
import { cancellable, defer, ignoreErrors } from 'promise-toolbox'
|
import { cancellable, catchPlus as pCatch, defer, ignoreErrors } from 'promise-toolbox'
|
||||||
import { PassThrough } from 'stream'
|
import { PassThrough } from 'stream'
|
||||||
import { forbiddenOperation } from 'xo-common/api-errors'
|
import { forbiddenOperation } from 'xo-common/api-errors'
|
||||||
import {
|
import {
|
||||||
@ -38,7 +38,6 @@ import {
|
|||||||
map,
|
map,
|
||||||
mapToArray,
|
mapToArray,
|
||||||
pAll,
|
pAll,
|
||||||
pCatch,
|
|
||||||
pDelay,
|
pDelay,
|
||||||
pFinally,
|
pFinally,
|
||||||
promisifyAll,
|
promisifyAll,
|
||||||
|
Loading…
Reference in New Issue
Block a user