{"_id":"@0x-klaytn/assert","_rev":"1-5ed326ea54f848b3ab903135e76ccfc1","name":"@0x-klaytn/assert","dist-tags":{"latest":"3.0.7"},"versions":{"3.0.7":{"name":"@0x-klaytn/assert","version":"3.0.7","engines":{"node":">=6.12"},"description":"Provides a standard way of performing type and schema validation across 0x projects","main":"lib/src/index.js","types":"lib/src/index.d.ts","scripts":{"build":"tsc -b","build:ci":"yarn build","clean":"shx rm -rf lib test_temp","lint":"tslint --format stylish --project .","fix":"tslint --fix --format stylish --project .","run_mocha":"mocha --require source-map-support/register --require make-promises-safe lib/test/**/*_test.js --exit","test":"yarn run_mocha","rebuild_and_test":"run-s clean build test","test:coverage":"nyc npm run test --all && yarn coverage:report:lcov","coverage:report:lcov":"nyc report --reporter=text-lcov > coverage/lcov.info","test:circleci":"yarn test:coverage"},"license":"Apache-2.0","repository":{"type":"git","url":"https://github.com/0xProject/0x-monorepo.git"},"bugs":{"url":"https://github.com/0xProject/0x-monorepo/issues"},"homepage":"https://github.com/0xProject/0x-monorepo/packages/assert/README.md","devDependencies":{"@0x/tslint-config":"^4.0.0","@types/lodash":"4.14.104","@types/mocha":"^5.2.7","@types/valid-url":"^1.0.2","chai":"^4.0.1","dirty-chai":"^2.0.1","make-promises-safe":"^1.1.0","mocha":"^6.2.0","npm-run-all":"^4.1.2","nyc":"^11.0.1","shx":"^0.2.2","tslint":"5.11.0","typescript":"3.0.1"},"dependencies":{"@0x-klaytn/json-schemas":"^5.0.7","@0x-klaytn/typescript-typings":"^5.0.3","@0x-klaytn/utils":"^5.4.4","lodash":"^4.17.11","valid-url":"^1.0.9"},"publishConfig":{"access":"public"},"_id":"@0x-klaytn/assert@3.0.7","dist":{"shasum":"d16f801f8ceb0c8ef2b6b3af37e0f7b90b996238","integrity":"sha512-D2olkIrMwwwkKLwSH2tr/0iWnj5bzW2Fn+ZyGcEoQA7hN0M4AsZxKa49M6hmEe56PFW9h1VZHoyVqkBg1DfK5w==","tarball":"https://registry.npmjs.org/@0x-klaytn/assert/-/assert-3.0.7.tgz","fileCount":16,"unpackedSize":60369,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeXAQVCRA9TVsSAnZWagAA7TkP/ikH4qQCMPxxB6GhNDun\nS49WX0EoYqh0OA0niklqEVd5s/0yu6QmJ0YA3e79xVojNlOoo4u6SeNQpm8P\n48/QEcNATlHXS+5hRPrg/5/kTdjIvHRCbLKLN9EGh7LhrgNvyPF7VSa8b2D8\nybbJ+KstqONM7yD9YSdrbx06NyY5PDXagvEtsSM8TLQGpk+KyXPd5LIY50ek\nka+ddM7LD3cSXyt2Q9G/2bCOojJag2zQ+6Tnmd5vc1FL94voQSUA3N3EXCoJ\nPwdcWmZTlcQ4WPlTztiaOkB/J6dz18b4K6datToDp7GlzXkhiH/oSioeUQQk\nYXVzFEr3lQszARxpnppj6fjb7Lny7cn9Jf6Pa6iabGRPpUso295xKm8hsYE/\nS3wk+RhN8bTx6RhgQnM2/Ss+8bocG2ZcKkmKTNh1GVUGGRYiqaOo5ykGM0KY\no+vN/ZqswfOEcWnAH9FYvNth0Q7XZkhPeH5Qe56+VtGdOCOxrKhdmKZ8ya+z\nr9vmX2bYIbM6DhMDXVwx76sWLuTKsXFzrn3tz96oa+DrocZRfp4hXHTK5g9M\nRBlA3P7LqG9tRhTf2bFGELiC57nDwmDsCRW4NiSJ+6HtgKu+89mmx7OyqUVV\nVONg7yyMOHcg1KsBZOnhxa9ytCeUPKZ/1yJ6CsfnzjVcfPC0QcI3jBbUminK\niWdU\r\n=cGZS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGU9zz9iOeZpCUT/ciZvXUlkXA+YZ5x7UuqrlNmTWhskAiAvFZbB2tSp/8+SJmpdnuKVbnjLNHv8k+QhLbQSnq/tWQ=="}]},"maintainers":[{"name":"xlab_is","email":"max@kc.vc"}],"_npmUser":{"name":"xlab_is","email":"max@kc.vc"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/assert_3.0.7_1583088661354_0.9025893807508796"},"_hasShrinkwrap":false}},"time":{"created":"2020-03-01T18:51:01.105Z","3.0.7":"2020-03-01T18:51:01.572Z","modified":"2022-04-04T10:26:19.247Z"},"maintainers":[{"name":"xlab_is","email":"max@kc.vc"}],"description":"Provides a standard way of performing type and schema validation across 0x projects","homepage":"https://github.com/0xProject/0x-monorepo/packages/assert/README.md","repository":{"type":"git","url":"https://github.com/0xProject/0x-monorepo.git"},"bugs":{"url":"https://github.com/0xProject/0x-monorepo/issues"},"license":"Apache-2.0","readme":"## @0x-klaytn/assert\n\nStandard type and schema assertions to be used across all 0x projects and packages\n\n## Installation\n\n```bash\nyarn add @0x-klaytn/assert\n```\n\n## Usage\n\n```typescript\nimport { assert } from '@0x-klaytn/assert';\n\nassert.isValidBaseUnitAmount('baseUnitAmount', baseUnitAmount);\n```\n\nIf your project is in [TypeScript](https://www.typescriptlang.org/), add the following to your `tsconfig.json`:\n\n```json\n\"compilerOptions\": {\n    \"typeRoots\": [\"node_modules/@0x-klaytn/typescript-typings/types\", \"node_modules/@types\"],\n}\n```\n\n## Contributing\n\nWe welcome improvements and fixes from the wider community! To report bugs within this package, please create an issue in this repository.\n\nPlease read our [contribution guidelines](../../CONTRIBUTING.md) before getting started.\n\n### Install dependencies\n\nIf you don't have yarn workspaces enabled (Yarn < v1.0) - enable them:\n\n```bash\nyarn config set workspaces-experimental true\n```\n\nThen install dependencies\n\n```bash\nyarn install\n```\n\n### Build\n\nTo build this package and all other monorepo packages that it depends on, run the following from the monorepo root directory:\n\n```bash\nPKG=@0x-klaytn/assert yarn build\n```\n\nOr continuously rebuild on change:\n\n```bash\nPKG=@0x-klaytn/assert yarn watch\n```\n\n### Clean\n\n```bash\nyarn clean\n```\n\n### Lint\n\n```bash\nyarn lint\n```\n\n### Run Tests\n\n```bash\nyarn test\n```\n","readmeFilename":"README.md"}