Observed since 21 Oct, 09:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Provides a standard way of performing type and schema validation across 0x projects
Standard type and schema assertions to be used across all 0x projects and packages
yarn add @0xproject/assert
import { assert } from '@0xproject/assert';
assert.isValidBaseUnitAmount('baseUnitAmount', baseUnitAmount);
If your project is in TypeScript, add the following to your tsconfig.json:
"compilerOptions": {
"typeRoots": ["node_modules/@0xproject/typescript-typings/types", "node_modules/@types"],
}
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.
If you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:
yarn config set workspaces-experimental true
Then install dependencies
yarn install
To build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:
PKG=@0xproject/assert yarn build
Or continuously rebuild on change:
PKG=@0xproject/assert yarn watch
yarn clean
yarn lint
yarn test
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.13Registry latest | 4 Oct 2018 | 19 | |
| 1.0.12 | 28 Sept 2018 | 19 | |
| 1.0.11 | 25 Sept 2018 | 19 | |
| 1.0.10 | 25 Sept 2018 | 19 | |
| 1.0.9 | 21 Sept 2018 | 19 | |
| 1.0.8 | 5 Sept 2018 | 19 | |
| 1.0.7 | 27 Aug 2018 | 19 | |
| 1.0.6 | 24 Aug 2018 | 19 | |
| 1.0.5 | 14 Aug 2018 | 20 | |
| 1.0.4 | 26 Jul 2018 | 20 | |
| 1.0.3 | 26 Jul 2018 | 20 | |
| 1.0.2 | 26 Jul 2018 | 20 | |
| 1.0.0 | 19 Jul 2018 | 20 | |
| 0.2.14 | 18 Jul 2018 | 20 | |
| 0.2.13 | 9 Jul 2018 | 20 | |
| 0.2.12 | 19 Jun 2018 | 20 | |
| 0.2.10 | 22 May 2018 | 20 | |
| 0.2.9 | 4 May 2018 | 19 | |
| 0.2.8 | 4 May 2018 | 19 | |
| 0.2.7 | 18 Apr 2018 | 19 |
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:31 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:bc3fb58420d747fe9f338ddef869016b24b24f33dbf739cb018b1e087a1bb924