{"name":"ts-invariant","version":"0.7.0","author":{"name":"Ben Newman","email":"ben@apollographql.com"},"description":"TypeScript implementation of invariant(condition, message)","license":"MIT","main":"lib/invariant.js","module":"lib/invariant.esm.js","types":"lib/invariant.d.ts","keywords":["invariant","assertion","precondition","TypeScript"],"homepage":"https://github.com/apollographql/invariant-packages","repository":{"type":"git","url":"git+https://github.com/apollographql/invariant-packages.git"},"bugs":{"url":"https://github.com/apollographql/invariant-packages/issues"},"scripts":{"build":"tsc && rollup -c","mocha":"mocha --reporter spec --full-trace lib/tests.js","prepublish":"npm run build","pretest":"npm run build","test":"npm run test:mocha && npm run test:no-node","test:mocha":"npm run mocha","test:no-node":"! grep -i node lib/invariant.d.ts"},"dependencies":{"@types/ungap__global-this":"^0.3.1","@ungap/global-this":"^0.4.2","tslib":"^1.9.3"},"devDependencies":{"@types/invariant":"^2.2.29","invariant":"^2.2.4","mocha":"^8.2.0","rollup":"^2.32.1","rollup-plugin-typescript2":"^0.30.0"},"engines":{"node":">=8"},"gitHead":"10fcc227361a68cbbfdf30fa15a3ab552be8e58b","_id":"ts-invariant@0.7.0","_nodeVersion":"14.15.4","_npmVersion":"lerna/3.22.1/node@v14.15.4+x64 (darwin)","dist":{"integrity":"sha512-Ar5Y6ZSWZsN/e6A2WtbK8G0Z/+Qy6wsOOcucdoLQ2JZnbuorlEnXH003Ym6i4+X3C8rZNNmplYuingSQ8JSiWA==","shasum":"49b4face99e05e4296a547135e6efc5dcebbdd5c","tarball":"http://registry-npm.ywwl.com/ts-invariant/download/ts-invariant-0.7.0.tgz","fileCount":11,"unpackedSize":19313,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgUnwTCRA9TVsSAnZWagAASMMP/iwr0kGRp5NtXt9DnfJw\n/ByZSHgId0Zrpib3XUPxKHLOFW+W/EGNzXe9Ws2oO3AcjKDmlkJBYHqisdMw\nCX4E9ccSARrtgdTWG0aK/W2bQ6AbKAo9mIq9hMp1EiWhU/lUUifVr3pybgu6\nfckJwemZTDlJxbXRKbt6Oz3AxbB9sl/QEGkx/3O1f3OeySRYZQbHwZqjA0fS\nSgLGY+yiQ1WFzhmdk+yozJWIvnZwMyYvcu1phHBkmLOBOxFBKkUPsCOeg9H3\nPf7q82yuqLJvgv1lbDSaeQiE9NZpQOxV1bvzBB+U+M2Uf7itN4qI5aRkwiBK\nqF13RXGOuH5U2bdspZj2hjuKnCamixmPuAL0DJuJc2gVeq3rKFojJ/1iY6LL\nFPZx93U0TlJ3I5olLVYEVZUATIhwLJtcjSbb6oXTAIvKfLS3ACvf3IBfi/gd\n1pn5vUIIGyaqO6YfBtriMOq3Y9P5+nlTWHJp/H87J7Zm49z7P+951eK5KdTA\njCs7r0xER1CBiVSs4bf0kLA1Iq369PhJjTzxMvvQWUOhUH7pRJScKMPiM7LI\n7EcMarMoX6suS9D+7VQuaVj89FonARcFHG/dyvvPIxW2xhBkrwCrOqDovgTc\nU+Ny+PBuJmdyT4BgjDoM9IJS2tH3Y71ychBhOoz+BMjpd8J2wfaiSkMwfo54\nWaM8\r\n=DgGv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIETCMSUGbOSp7dp0XdUKe/K18udHHWDEnHLs3BHxhdmiAiBX/nid3nyEHI6LDha2O0Qwq2vbhVucObiOFp6gd5L/oA=="}],"size":5494,"noattachment":false,"key":"/ts-invariant/-/ts-invariant-0.7.0.tgz"},"_npmUser":{"name":"benjamn","email":"ben@benjamn.com"},"directories":{},"maintainers":[{"name":"benjamn","email":"ben@benjamn.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ts-invariant_0.7.0_1616018450702_0.35607441672679196"},"_hasShrinkwrap":false,"readme":"# ts-invariant\n\n[TypeScript](https://www.typescriptlang.org) implementation of\n[`invariant(condition, message)`](https://www.npmjs.com/package/invariant).\n\nSupports `invariant.log`, `invariant.warn`, and `invariant.error`, which\nwrap `console` methods of the same name, and may be stripped in production\nby [`rollup-plugin-invariant`](../../archived/rollup-plugin-invariant).\n\nThe verbosity of these methods can be globally reconfigured using the\n`setVerbosity` function:\n```ts\nimport { setVerbosity } from \"ts-invariant\";\n\nsetVerbosity(\"log\"); // display all messages (default)\nsetVerbosity(\"warn\"); // display only warnings and errors\nsetVerbosity(\"error\"); // display only errors\nsetVerbosity(\"silent\"); // display no messages\n```\n","publish_time":1616018450862,"_cnpm_publish_time":1616018450862,"dist-tags":{"latest":"0.10.3","next":"0.10.3"}}