Catalog npm
Back to packageRELEASE DETAILS

3.1.3

npm

@0x/dev-utils

0x dev TS utils

Published6 Feb 2020
Direct dependencies25
Transitive dependenciesNot calculated

README

Current package documentation

Dev utils

Dev utils to be shared across 0x projects and packages

Configuration

Some env variables might be set to change the behaviour of created web3 providers/instances.

VERBOSE_GANACHE: boolean. Enables verbose Ganache logging. Every request/response payload. Slightly slower, but useful for testing.
SOLIDITY_COVERAGE: boolean. If set - adds coverage subprovider which intercepts all calls/transactions and can be later used to compute code coverage.

Boolean env variables should be either true or false. Defaults to false if not set.

Install

yarn add @0x/dev-utils

If your project is in TypeScript, add the following to your tsconfig.json:

"compilerOptions": {
    "typeRoots": ["node_modules/@0x/typescript-typings/types", "node_modules/@types"],
}

Troubleshooting

If you are still seeing TS type errors complaining about missing DOM types such as Response:

error TS2304: Cannot find name 'Response'.

Then you need to explicitly add the dom lib to your compiler options in tsconfig.json. The dom library is included by default, but customizing the lib option can cause it to be dropped.

"compilerOptions": {
    "lib": [..., "dom"],

Contributing

We welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.

Please read our contribution guidelines before getting started.

Install dependencies

If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:

yarn config set workspaces-experimental true

Then install dependencies

yarn install

Build

To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:

PKG=@0x/dev-utils yarn build

Or continuously rebuild on change:

PKG=@0x/dev-utils yarn watch

Clean

yarn clean

Lint

yarn lint

Run Tests

yarn test

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 25

Native requirements
25 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.0.1runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.11runtime
@0x/types
Environment
{
  "local_name": "@0x/types",
  "alias": false,
  "peer_metadata": null
}
^3.1.1runtime
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^5.3.0runtime
dirty-chai
Environment
{
  "local_name": "dirty-chai",
  "alias": false,
  "peer_metadata": null
}
^2.0.1runtime
chai-bignumber
Environment
{
  "local_name": "chai-bignumber",
  "alias": false,
  "peer_metadata": null
}
^3.0.0runtime
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^3.0.0runtime
@0x/subproviders
Environment
{
  "local_name": "@0x/subproviders",
  "alias": false,
  "peer_metadata": null
}
^6.0.6runtime
@0x/web3-wrapper
Environment
{
  "local_name": "@0x/web3-wrapper",
  "alias": false,
  "peer_metadata": null
}
^7.0.5runtime
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.0runtime
web3-provider-engine
Environment
{
  "local_name": "web3-provider-engine",
  "alias": false,
  "peer_metadata": null
}
14.0.6runtime
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^5.0.1runtime
@types/web3-provider-engine
Environment
{
  "local_name": "@types/web3-provider-engine",
  "alias": false,
  "peer_metadata": null
}
^14.0.0runtime
nyc
Environment
{
  "local_name": "nyc",
  "alias": false,
  "peer_metadata": null
}
^11.0.1development
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.2.2development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^6.2.0development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
5.11.0development
typedoc
Environment
{
  "local_name": "typedoc",
  "alias": false,
  "peer_metadata": null
}
^0.15.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
3.0.1development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
@types/mocha
Environment
{
  "local_name": "@types/mocha",
  "alias": false,
  "peer_metadata": null
}
^5.2.7development
@types/lodash
Environment
{
  "local_name": "@types/lodash",
  "alias": false,
  "peer_metadata": null
}
4.14.104development
@0x/ts-doc-gen
Environment
{
  "local_name": "@0x/ts-doc-gen",
  "alias": false,
  "peer_metadata": null
}
^0.0.22development
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
make-promises-safe
Environment
{
  "local_name": "make-promises-safe",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "68eb17c92592a3992e014ddb714e4f15b380f8a7",
  "tarball": "https://registry.npmjs.org/@0x/dev-utils/-/dev-utils-3.1.3.tgz",
  "fileCount": 41,
  "integrity": "sha512-0eCE+WsJPmKFu1fRQZBn1vt/SkHCPJbi1OXjAz3QjMvo1pkPio2fwT1LmvKeKYGtP18zF2ohX4m+dulYbVUV2Q==",
  "signatures": [
    {
      "sig": "MEUCIETByq+euk3nle3ytIDYrRSr0fQOr+chVaWkBf+ZMbDrAiEA3pYsUDNQ5K0QkuseBfEpSgDZIuySojTgTYPd0jsh/5Y=",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 79982,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeO/e9CRA9TVsSAnZWagAAWnUP/0IUc//KsYGud4NRVjhP\nqhIIDCIxCPzmVvL+uLgml8sjO18BPTfTN0dR2pAmsvEdUJhlZMDmV9KXwCmH\nynKLbiBoGGC950kt5iRZskX6KoFOeXBgJ15v3U04MDXtpp0xavin2C7x06EE\nSpyvzpi80i0MjQhJ5o8IsTMOZM7gurKtlme9nm8vVpMMZpOOPsT1y7FMH8hL\nfjSxMv9o1NXGI9Sze031Kbk3mFCeMVtys0u/As1I70iUKTKTJLk7DSJvl0oc\nU2lcerdD3HotHVvw+C3b5+xL8tTyivvn+rh9hc2iMe63nIt0zthmogH9tSDR\nMxw5fGc1vnDSLsqQWi0PfJpZe/gCvWjn9zRyaDXL7wcYpRUMQQGvarVJPV1v\nQt35E4FdwPdHU/34ncz3uvLBRLuZA+gN8hBumsPa1juSEYt4Q5f/FJQbjN9O\nYMKjGm1hqAlToAY4y3hpBkWLwchG+OCQMiXt8vHHmEzlGovHBvKxDOmxeP1V\n9unJuZlgxS2c1fzAS8v54e5ycdwvyWYBZHU8LWOOkNKIOzY+HDJuVzH/Jd7p\nAezfUlYsNFz0Hhkj34yca8uktX5xZYpIVH/4yu8Ckn9TX3RTLDWHxR28x8oD\nSl0EqDR9q1aoi1q/rPE+6M2L23SxpFtC8lXlRmamsyPNx1OUDqzuPajiMXb0\nNpEk\r\n=hInK\r\n-----END PGP SIGNATURE-----\r\n"
}

Repository

PENDING
0xproject/0x-monorepo

Shared repository data · GitHub

License detected in repository
Not collected

Repository

PENDING
0xproject/tools

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:27 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:381e78f0eaeeb5d29eae8ca45ea7ddb9eb653bb847d80dea2afd803bd4fa4dcc

Other collected versions

5.0.37 Apr5.0.27 Apr5.0.126 Jan5.0.018 Aug4.2.1416 Mar4.2.1316 MarView all collected versions →