{"name":"@pnpm/error","version":"1100.1.0","keywords":["pnpm","pnpm11","error"],"license":"MIT","_id":"@pnpm/error@1100.1.0","maintainers":[{"name":"pnpmuser","email":"publish-bot@pnpm.io"},{"name":"zkochan","email":"z@kochan.io"}],"homepage":"https://github.com/pnpm/pnpm/tree/main/pnpm11/core/error#readme","bugs":{"url":"https://github.com/pnpm/pnpm/issues"},"dist":{"shasum":"58cae41d2effd4f17e4a9a59894978764713e84a","tarball":"http://registry-npm.ywwl.com/@pnpm/error/download/@pnpm/error-1100.1.0.tgz","fileCount":6,"integrity":"sha512-ZpinzFJNeHEvNxm3lWvZ1jqZ78DTNoClPrNSvZH83JNEWmyDAdw2QDNmiYjpG5nIYarZjahEGKz+oQlgKrvnNg==","signatures":[{"sig":"MEYCIQDzJBKBs3MroV9upmP1j+K/JoZ2ne1OQS8FYfE5R+UrIQIhAMeh7Onj8IB8QUc1tcSDQXaTjxreVDDrSBZHgn14sE4k","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@pnpm%2ferror@1100.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":11825,"size":4638,"noattachment":false,"key":"/@pnpm/error/-/@pnpm/error-1100.1.0.tgz"},"jest":{"preset":"@pnpm/jest-config"},"main":"lib/index.js","type":"module","types":"lib/index.d.ts","engines":{"node":">=22.13"},"exports":{".":"./lib/index.js"},"funding":"https://opencollective.com/pnpm","scripts":{"lint":"eslint \"src/**/*.ts\" \"test/**/*.ts\"","test":"pn compile && pn .test",".test":"cross-env NODE_OPTIONS=\"$NODE_OPTIONS --experimental-vm-modules --disable-warning=ExperimentalWarning --disable-warning=DEP0169\" jest","compile":"tsgo --build && pn lint --fix"},"_npmUser":{"name":"pnpmuser","email":"publish-bot@pnpm.io"},"repository":{"url":"https://github.com/pnpm/pnpm/tree/main/pnpm11/core/error","type":"git"},"description":"An error class for pnpm errors","directories":{},"dependencies":{"@pnpm/constants":"1100.0.1"},"_hasShrinkwrap":false,"devDependencies":{"@pnpm/error":"1100.1.0","@jest/globals":"30.4.1"},"_npmOperationalInternal":{"tmp":"tmp/error_1100.1.0_1784825128847_0.7097644674328767","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":1784825129024,"_cnpm_publish_time":1784825129024,"dist-tags":{"dev":"0.0.0-20230605-20230605142810","latest":"1100.2.3","pnpm-temp":"1.3.0"}}