{"name":"@pnpm/error","version":"1000.1.0","keywords":["pnpm","pnpm10","error"],"license":"MIT","_id":"@pnpm/error@1000.1.0","maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"homepage":"https://github.com/pnpm/pnpm/tree/main/packages/error#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"f858c6a32fb36528e2698b3d78100bc325f55373","tarball":"http://registry-npm.ywwl.com/@pnpm/error/download/@pnpm/error-1000.1.0.tgz","fileCount":6,"integrity":"sha512-Dqc2IJJPjUatwc9Letw+vG29rnaMrDGi5g6WCx1HiZYm0obXbTmLygeRafMbgf+sLKXrWE1shOeiayQuczBdoA==","signatures":[{"sig":"MEYCIQDMwZfMh38zNoKp8vBRlkSeEn7QJcpqiynPQ4NAA/W2sgIhAJ5C08RyIbTTEstSbf3bRaEJg38BYhu7Tyz9o1PukZDV","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":8194,"size":3538,"noattachment":false,"key":"/@pnpm/error/-/@pnpm/error-1000.1.0.tgz"},"jest":{"preset":"@pnpm/jest-config"},"main":"lib/index.js","type":"commonjs","_from":"file:pnpm-error-1000.1.0.tgz","types":"lib/index.d.ts","engines":{"node":">=18.12"},"exports":{".":"./lib/index.js"},"funding":"https://opencollective.com/pnpm","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.ts\"","test":"pnpm run compile && pnpm run _test","_test":"jest","compile":"tsc --build && pnpm run lint --fix"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"_resolved":"/tmp/f1966b3c7b4f104c2bd53b0d99096d2b/pnpm-error-1000.1.0.tgz","_integrity":"sha512-Dqc2IJJPjUatwc9Letw+vG29rnaMrDGi5g6WCx1HiZYm0obXbTmLygeRafMbgf+sLKXrWE1shOeiayQuczBdoA==","repository":{"url":"git+https://github.com/pnpm/pnpm.git#main","type":"git"},"_npmVersion":"11.6.2","description":"An error class for pnpm errors","directories":{},"_nodeVersion":"20.20.1","dependencies":{"@pnpm/constants":"1001.3.1"},"_hasShrinkwrap":false,"devDependencies":{"@pnpm/error":"1000.1.0"},"_npmOperationalInternal":{"tmp":"tmp/error_1000.1.0_1774369598479_0.37742645900335603","host":"s3://npm-registry-packages-npm-production"},"readme":"# @pnpm/error\n\n> An error class for pnpm errors\n\n<!--@shields('npm')-->\n[![npm version](https://img.shields.io/npm/v/@pnpm/error.svg)](https://npmx.dev/package/@pnpm/error)\n<!--/@-->\n\n## Installation\n\n```sh\npnpm add @pnpm/error\n```\n\n### Usage\n\n```ts\nimport { PnpmError } from '@pnpm/error'\n\ntry {\n    throw new PnpmError('THE_ERROR_CODE', 'The error message')\n} catch (err: any) { // eslint-disable-line\n    console.log(err.code)\n    //> ERR_PNPM_THE_ERROR_CODE\n    console.log(err.message)\n    //> The error message\n}\n```\n\n## License\n\nMIT\n","publish_time":1774369598624,"_cnpm_publish_time":1774369598624,"dist-tags":{"dev":"0.0.0-20230605-20230605142810","latest":"1100.2.3","pnpm-temp":"1.3.0"}}