diff options
author | Fabio Berger <me@fabioberger.com> | 2018-04-03 11:03:59 +0800 |
---|---|---|
committer | Fabio Berger <me@fabioberger.com> | 2018-04-03 11:03:59 +0800 |
commit | 8281be235cf55b04f24297bf6606a8dc24d8fac7 (patch) | |
tree | ea1e9f4695b7a2aeb3b41b2eb49f28b1e0ce0b8f /packages | |
parent | 9ce03e3515517e3f5fb5bd4b3dcafa57a3191e3d (diff) | |
download | dexon-sol-tools-8281be235cf55b04f24297bf6606a8dc24d8fac7.tar dexon-sol-tools-8281be235cf55b04f24297bf6606a8dc24d8fac7.tar.gz dexon-sol-tools-8281be235cf55b04f24297bf6606a8dc24d8fac7.tar.bz2 dexon-sol-tools-8281be235cf55b04f24297bf6606a8dc24d8fac7.tar.lz dexon-sol-tools-8281be235cf55b04f24297bf6606a8dc24d8fac7.tar.xz dexon-sol-tools-8281be235cf55b04f24297bf6606a8dc24d8fac7.tar.zst dexon-sol-tools-8281be235cf55b04f24297bf6606a8dc24d8fac7.zip |
Use @0xproject/utils promisify everywhere
Diffstat (limited to 'packages')
-rw-r--r-- | packages/monorepo-scripts/package.json | 2 | ||||
-rw-r--r-- | packages/monorepo-scripts/src/globals.d.ts | 1 | ||||
-rw-r--r-- | packages/monorepo-scripts/src/postpublish_utils.ts | 2 | ||||
-rw-r--r-- | packages/subproviders/package.json | 1 | ||||
-rw-r--r-- | packages/subproviders/src/globals.d.ts | 2 | ||||
-rw-r--r-- | packages/subproviders/src/subproviders/subprovider.ts | 2 | ||||
-rw-r--r-- | packages/subproviders/test/integration/ledger_subprovider_test.ts | 2 |
7 files changed, 4 insertions, 8 deletions
diff --git a/packages/monorepo-scripts/package.json b/packages/monorepo-scripts/package.json index 9d2350297..cac8b8475 100644 --- a/packages/monorepo-scripts/package.json +++ b/packages/monorepo-scripts/package.json @@ -37,9 +37,9 @@ "typescript": "2.7.1" }, "dependencies": { + "@0xproject/utils": "0.4.4", "async-child-process": "^1.1.1", "chalk": "^2.3.0", - "es6-promisify": "^5.0.0", "glob": "^7.1.2", "lodash": "^4.17.4", "moment": "2.21.0", diff --git a/packages/monorepo-scripts/src/globals.d.ts b/packages/monorepo-scripts/src/globals.d.ts index c5898d0f5..b9f3d2e71 100644 --- a/packages/monorepo-scripts/src/globals.d.ts +++ b/packages/monorepo-scripts/src/globals.d.ts @@ -1,6 +1,5 @@ declare module 'async-child-process'; declare module 'publish-release'; -declare module 'es6-promisify'; declare module 'semver-diff'; // semver-sort declarations diff --git a/packages/monorepo-scripts/src/postpublish_utils.ts b/packages/monorepo-scripts/src/postpublish_utils.ts index 236b54379..d068adb4d 100644 --- a/packages/monorepo-scripts/src/postpublish_utils.ts +++ b/packages/monorepo-scripts/src/postpublish_utils.ts @@ -1,5 +1,5 @@ +import { promisify } from '@0xproject/utils'; import { execAsync } from 'async-child-process'; -import * as promisify from 'es6-promisify'; import * as fs from 'fs'; import * as _ from 'lodash'; import * as path from 'path'; diff --git a/packages/subproviders/package.json b/packages/subproviders/package.json index 3f13424aa..cadbac0e8 100644 --- a/packages/subproviders/package.json +++ b/packages/subproviders/package.json @@ -43,7 +43,6 @@ "@ledgerhq/hw-app-eth": "^4.3.0", "@ledgerhq/hw-transport-u2f": "^4.3.0", "bn.js": "^4.11.8", - "es6-promisify": "^5.0.0", "ethereumjs-tx": "^1.3.3", "ethereumjs-util": "^5.1.1", "ganache-core": "0xProject/ganache-core", diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts index 916fed807..580c5aaa5 100644 --- a/packages/subproviders/src/globals.d.ts +++ b/packages/subproviders/src/globals.d.ts @@ -1,5 +1,3 @@ -declare module 'es6-promisify'; - // tslint:disable:max-classes-per-file // tslint:disable:class-name // tslint:disable:async-suffix diff --git a/packages/subproviders/src/subproviders/subprovider.ts b/packages/subproviders/src/subproviders/subprovider.ts index 26ce19305..1490d37ba 100644 --- a/packages/subproviders/src/subproviders/subprovider.ts +++ b/packages/subproviders/src/subproviders/subprovider.ts @@ -1,5 +1,5 @@ import { JSONRPCRequestPayload, JSONRPCResponsePayload } from '@0xproject/types'; -import promisify = require('es6-promisify'); +import { promisify } from '@0xproject/utils'; import * as Web3 from 'web3'; import { JSONRPCRequestPayloadWithMethod } from '../types'; diff --git a/packages/subproviders/test/integration/ledger_subprovider_test.ts b/packages/subproviders/test/integration/ledger_subprovider_test.ts index 969081ad5..bc60b4330 100644 --- a/packages/subproviders/test/integration/ledger_subprovider_test.ts +++ b/packages/subproviders/test/integration/ledger_subprovider_test.ts @@ -1,10 +1,10 @@ import { JSONRPCResponsePayload } from '@0xproject/types'; +import { promisify } from '@0xproject/utils'; import Eth from '@ledgerhq/hw-app-eth'; // HACK: This depdency is optional and tslint skips optional depdencies // tslint:disable-next-line:no-implicit-dependencies import TransportNodeHid from '@ledgerhq/hw-transport-node-hid'; import * as chai from 'chai'; -import promisify = require('es6-promisify'); import * as ethUtils from 'ethereumjs-util'; import * as _ from 'lodash'; import Web3 = require('web3'); |