Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

@0x-klaytn/utils

0x TS utils, with changes for Klaytn

Published24 Feb 2020
Direct dependencies27
Transitive dependenciesNot calculated

README

Current package documentation

@0x-klaytn/utils

Utils to be shared across 0x projects and packages, with changes for Klaytn.

Installation

yarn add @0x-klaytn/utils

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

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

Usage

import { addressUtils, bigNumberConfigs, classUtils, intervalUtils, promisify } from '@0x-klaytn/utils';

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-klaytn/utils yarn build

Or continuously rebuild on change:

PKG=@0x-klaytn/utils yarn watch

Clean

yarn clean

Lint

yarn lint

Downloads & popularity

Awaiting observations

No metric observations yet

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

Declared dependencies 27

Native requirements
27 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
@0x/types
Environment
{
  "local_name": "@0x/types",
  "alias": false,
  "peer_metadata": null
}
^3.1.2runtime
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^5.0.2runtime
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
*runtime
abortcontroller-polyfill
Environment
{
  "local_name": "abortcontroller-polyfill",
  "alias": false,
  "peer_metadata": null
}
^1.1.9runtime
bignumber.js
Environment
{
  "local_name": "bignumber.js",
  "alias": false,
  "peer_metadata": null
}
~9.0.0runtime
chalk
Environment
{
  "local_name": "chalk",
  "alias": false,
  "peer_metadata": null
}
^2.3.0runtime
detect-node
Environment
{
  "local_name": "detect-node",
  "alias": false,
  "peer_metadata": null
}
2.0.3runtime
ethereum-types
Environment
{
  "local_name": "ethereum-types",
  "alias": false,
  "peer_metadata": null
}
^3.1.0runtime
ethereumjs-util
Environment
{
  "local_name": "ethereumjs-util",
  "alias": false,
  "peer_metadata": null
}
^5.1.1runtime
ethers
Environment
{
  "local_name": "ethers",
  "alias": false,
  "peer_metadata": null
}
~4.0.4runtime
isomorphic-fetch
Environment
{
  "local_name": "isomorphic-fetch",
  "alias": false,
  "peer_metadata": null
}
2.2.1runtime
js-sha3
Environment
{
  "local_name": "js-sha3",
  "alias": false,
  "peer_metadata": null
}
^0.7.0runtime
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.11runtime
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development
@types/detect-node
Environment
{
  "local_name": "@types/detect-node",
  "alias": false,
  "peer_metadata": null
}
2.0.0development
@types/lodash
Environment
{
  "local_name": "@types/lodash",
  "alias": false,
  "peer_metadata": null
}
4.14.104development
@types/mocha
Environment
{
  "local_name": "@types/mocha",
  "alias": false,
  "peer_metadata": null
}
^5.2.7development
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
chai-as-promised
Environment
{
  "local_name": "chai-as-promised",
  "alias": false,
  "peer_metadata": null
}
^7.1.0development
chai-bignumber
Environment
{
  "local_name": "chai-bignumber",
  "alias": false,
  "peer_metadata": null
}
^3.0.0development
dirty-chai
Environment
{
  "local_name": "dirty-chai",
  "alias": false,
  "peer_metadata": null
}
^2.0.1development
make-promises-safe
Environment
{
  "local_name": "make-promises-safe",
  "alias": false,
  "peer_metadata": null
}
^1.1.0development
mocha
Environment
{
  "local_name": "mocha",
  "alias": false,
  "peer_metadata": null
}
^6.2.0development
npm-run-all
Environment
{
  "local_name": "npm-run-all",
  "alias": false,
  "peer_metadata": null
}
^4.1.2development
shx
Environment
{
  "local_name": "shx",
  "alias": false,
  "peer_metadata": null
}
^0.2.2development
tslint
Environment
{
  "local_name": "tslint",
  "alias": false,
  "peer_metadata": null
}
5.11.0development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
3.0.1development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "5644e63c616015d8b57c2946d7c312f5c1a2561d",
  "integrity": "sha512-UbTZ+PKSkO6YujT+GALWD59O0A3/YBXEYfAYfNogA1mU0aGidOGIRgiPqa3mJI7kRsjyRPUdAjetDepZNKm+HQ==",
  "tarball": "https://registry.npmjs.org/@0x-klaytn/utils/-/utils-1.0.0.tgz",
  "fileCount": 5,
  "unpackedSize": 33737,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeVFeVCRA9TVsSAnZWagAAlQYP/0twcniBBT21b1BuNppt\nnv42Lfoq+m8k1B3zGxJhMXESUsoornk669F/2re0+B8mGRaHWwd+3NzNZ2Ps\nprhZPDgFGhO9TfMMaLkBbp2a8ecLh4xhxEUJzayu0arCjeB9Jd83hERlxdIR\npS868vwvpdgfv2JdpLn0+L5stICmeszlSodQ0wRSrqvanpeWi45a/ahKHuYh\nH4AV5rf5eXZlHNOZIAU9zdUJw3t3T3QDWbr755RAGA/ip6L8fI9X/zbijDj+\nnirFuM20jJcQmhLzl447OUUjUmrjLhdCT3XNH/wAsg+uHxcWuovr1AvZCkbA\nIl7PP6tIBVtukE8/BTUHGux7BmOKNBBKLEMDjujIgfP8OjCs5AoYffVtYg1y\nP6KyBCWEnNW5zs+0D3XwooDTdImR4kufc3eR96d2NwiTrGOqa0XVfi9hmghx\nCHZGNCXztePcF0SlR5SUKUcRy4xyBl4Ff7PGaCMBbEptoWqmDNjgCkEgtacQ\nHJYM4BphBNHTpOMhoeXBZPkkMB38iHHa+c+yoUaySlL5st1oTu4fLBszBfA9\nUwMDm6Yu0FjcZUIhnkY5N6AYIpH/k7gFPFEMfCNb+/Ho7QEsVso9B+sbm2lb\nnrCk9yNQsRSe/UMEM3umdcYGW+0BJiNH6TdGJwdZAd4yCiEVmj+OUfl4hZiq\ndsx1\r\n=gnHe\r\n-----END PGP SIGNATURE-----\r\n",
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEUCIQC4Vhe1Ofsm5bto4wqIeStzgB1gU9I4jlmfwzzVfrejLAIgRNT1cjKVBQUkUEYHyJCgFf4ra9ftXtr1LL69cb3Lzl4="
    }
  ]
}

Repository

PENDING
0xproject/0x-monorepo

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 22:17 UTC

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

Record identity

package_version:92f58ebddde89e37d168c0fc5cbdaefe593ef36ad3944ffd1e396174dcd08fa4

Other collected versions

5.4.51 Mar5.4.41 Mar5.4.327 Feb5.4.225 Feb5.4.125 FebView all collected versions →