{"name":"@pnpm/error","version":"1100.0.0","description":"An error class for pnpm errors","keywords":["pnpm","pnpm11","error"],"license":"MIT","funding":"https://opencollective.com/pnpm","repository":"https://github.com/pnpm/pnpm/tree/main/core/error","homepage":"https://github.com/pnpm/pnpm/tree/main/core/error#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"type":"module","main":"lib/index.js","types":"lib/index.d.ts","exports":{".":"./lib/index.js"},"dependencies":{"@pnpm/constants":"1100.0.0"},"devDependencies":{"@pnpm/error":"1100.0.0"},"engines":{"node":">=22.13"},"jest":{"preset":"@pnpm/jest-config"},"scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.ts\"","test":"pn compile && pn .test","compile":"tsgo --build && pn lint --fix",".test":"cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169\" jest"},"_nodeVersion":"25.6.1","_id":"@pnpm/error@1100.0.0","dist":{"integrity":"sha512-Pe+UcOhBwBBM38GPavnPJllik4/DZ8Fawt9+D2JLoWSo6FNZBJWQbaDMuwba3W0Ej0v43etKmyCT+MOvwt95Gg==","shasum":"e71c608fd5bbad50a9fa64a36aede53e9e9e8bf2","tarball":"http://registry-npm.ywwl.com/@pnpm/error/download/@pnpm/error-1100.0.0.tgz","fileCount":5,"unpackedSize":6003,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@pnpm%2ferror@1100.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEfDMOEw3ARUsxIw5x5zP1vrCihRMD3479iydjhyEtB3AiACy9P+578BdzQq8qf7n3dTu/Oj+tXCoIMQIzHLO20V1g=="}],"size":2754,"noattachment":false,"key":"/@pnpm/error/-/@pnpm/error-1100.0.0.tgz"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"directories":{},"maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/error_1100.0.0_1775839299242_0.2161442356772556"},"_hasShrinkwrap":false,"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":1775839299422,"_cnpm_publish_time":1775839299422,"dist-tags":{"dev":"0.0.0-20230605-20230605142810","latest":"1100.2.3","pnpm-temp":"1.3.0"}}