Observed since 20 Oct, 22:21 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 @0x/assert
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"],
}
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=@0x/assert yarn build
Or continuously rebuild on change:
PKG=@0x/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 |
|---|---|---|---|
| 3.0.36Registry latest | 7 Apr 2023 | 19 | |
| 3.0.35 | 18 Aug 2022 | 19 | |
| 3.0.34 | 16 Mar 2022 | 19 | |
| 3.0.33 | 16 Mar 2022 | 19 | |
| 3.0.32 | 26 Feb 2022 | 19 | |
| 3.0.31 | 19 Jan 2022 | 19 | |
| 3.0.30 | 23 Sept 2021 | 19 | |
| 3.0.29 | 25 Aug 2021 | 19 | |
| 3.0.28 | 28 Jun 2021 | 19 | |
| 3.0.27 | 28 Apr 2021 | 19 | |
| 3.0.26 | 26 Apr 2021 | 19 | |
| 3.0.25 | 26 Apr 2021 | 19 | |
| 3.0.24 | 26 Apr 2021 | 19 | |
| 3.0.23 | 6 Apr 2021 | 19 | |
| 3.0.22 | 24 Mar 2021 | 19 | |
| 3.0.21 | 7 Jan 2021 | 19 | |
| 3.0.20 | 5 Jan 2021 | 19 | |
| 3.0.19 | 2 Dec 2020 | 19 | |
| 3.0.18 | 1 Dec 2020 | 19 | |
| 3.0.17 | 29 Oct 2020 | 19 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 22:21 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:ce15908abc5d1f5c817c769f4b756e2f64c64e4b77091517d8ebcc17212289e8