Catalog npm
Back to packageRELEASE DETAILS

3.0.28

npm

@0x/assert

Provides a standard way of performing type and schema validation across 0x projects

Published28 Jun 2021
Direct dependencies19
Transitive dependenciesNot calculated

README

Current package documentation

@0x/assert

Standard type and schema assertions to be used across all 0x projects and packages

Installation

yarn add @0x/assert

Usage

import { assert } from '@0x/assert';

assert.isValidBaseUnitAmount('baseUnitAmount', baseUnitAmount);

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

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

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/assert yarn build

Or continuously rebuild on change:

PKG=@0x/assert 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 19

Native requirements
19 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
lodash
Environment
{
  "local_name": "lodash",
  "alias": false,
  "peer_metadata": null
}
^4.17.11runtime
@0x/utils
Environment
{
  "local_name": "@0x/utils",
  "alias": false,
  "peer_metadata": null
}
^6.4.3runtime
valid-url
Environment
{
  "local_name": "valid-url",
  "alias": false,
  "peer_metadata": null
}
^1.0.9runtime
@types/node
Environment
{
  "local_name": "@types/node",
  "alias": false,
  "peer_metadata": null
}
12.12.54runtime
@0x/json-schemas
Environment
{
  "local_name": "@0x/json-schemas",
  "alias": false,
  "peer_metadata": null
}
^6.2.0runtime
@0x/typescript-typings
Environment
{
  "local_name": "@0x/typescript-typings",
  "alias": false,
  "peer_metadata": null
}
^5.2.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
chai
Environment
{
  "local_name": "chai",
  "alias": false,
  "peer_metadata": null
}
^4.0.1development
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
dirty-chai
Environment
{
  "local_name": "dirty-chai",
  "alias": false,
  "peer_metadata": null
}
^2.0.1development
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
4.2.2development
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
@types/valid-url
Environment
{
  "local_name": "@types/valid-url",
  "alias": false,
  "peer_metadata": null
}
^1.0.2development
@0x/tslint-config
Environment
{
  "local_name": "@0x/tslint-config",
  "alias": false,
  "peer_metadata": null
}
^4.1.4development
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": "04ae55391f90eb433a86e8356cdf6799c63c5a0b",
  "tarball": "https://registry.npmjs.org/@0x/assert/-/assert-3.0.28.tgz",
  "fileCount": 9,
  "integrity": "sha512-hBiBhoThQTEbzHSv/VEuiOAqzP7LWzVs9XXtdb2O8757ocWEcewJsp4cwgqdA4it4IwlWdwG5ASRn7BMSNcyXg==",
  "signatures": [
    {
      "sig": "MEQCIHkuaY3JpUfnla4JTv0ch16tuS/zrzzkaFZi+ZmG1Q2MAiAuJq6sSJlY8qOwu20MFGz33DU1a8gq3oDjyRe22ygvHQ==",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 41145,
  "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJg2ZRhCRA9TVsSAnZWagAAa0EQAJcgdwv+b1MeRAMTN0ik\nV6C4aid4uauv+Zpui3SSE02dUghXWvDGzqOVcugFmI2MhuzX2RticcbC0x41\ntCJ/WhBJ2afwTAuLyzrz6+swLI+eZzf2huKgsgW86uH6va7HU4xBAGIjtKjb\nDqoykGmXSQFJesS3P1j+X/FQfEea/7gWQQekNW1OI5ASXqcOvlmqHe8Nkatu\naK3o8R/S8FIE7jmPe/Mb9LbEvMeHMYM8gQ0KiXjaH1UVxBHYATB4qtSD+neo\n6DSesac2cENYMI4ouOHjn6md4pr5Ej9W4vUlNkrd13Sb+Pz1Z3oZkz7sTXzV\nqlc01FbQQJc7aaqlYklPbhPiRFhhX3hYv8+nHpwGVY9eR7Ebrp6TE2doTTr7\npJoOQnAuQvKTI0OHRbt0bK2ruihWvrE7hUtWcK0WrgfYkGLwLllbaBWpnpal\n9w8n+2wG718YgVqxpYsLifxlRudp1Pbi36QzmP6NJXeqVHj5MbXJcqXmHWV6\no2uGQWJFA2LYTeBTo0btfMFcFVTs/bOI52RHMLyWWZGo1mRxAP/Vojjpme+z\nS8uagBHbJwkyd78RLnL7bWURW2ZIrmh6MOqnMJvwZrljERETiMd7ZiHaQVaI\ngAe6ZN5Kw1bD0iZlww1BgAAPi73xif81dMd+VEpg2GkDita9IyvzmTImSCrE\nnxqG\r\n=cNG5\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:21 UTC

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

Record identity

package_version:d40c850129f5a2f72a643d468bf892cc209732d01a6a2d40b2dd51633e80f191

Other collected versions

3.0.367 Apr3.0.3518 Aug3.0.3416 Mar3.0.3316 Mar3.0.3226 Feb3.0.3119 JanView all collected versions →