{"xo":{"rules":{"unicorn/string-content":"off"},"space":true,"prettier":true},"ava":{"files":["test/**/*.test.js"]},"nyc":{"all":true,"include":["index.js"],"reporter":["json","text","html"]},"bugs":{"url":"https://github.com/semantic-release/error/issues"},"dist":{"shasum":"18f646429562cb1b4306482be7d00a9f7c37cc49","tarball":"https://registry.npmjs.org/@semantic-release/error/-/error-3.0.0-beta.1.tgz","fileCount":4,"integrity":"sha512-ID5XJMSNFYw5EucL+Q2QBLT852qW6V+t1o5kY/Y+pv3vqw8It7Jixvao9a3lrPZhniPlvlWB3Jd7jN1lBkPmzw==","signatures":[{"sig":"MEYCIQDNQBDKqVYRYgH1FSKrxflPdTZAfsVi8wzK95nTfm43tgIhAPnToXHMRugGhJK1AN+UpNo+o2XWU6iPY9p5i4n0J3Y6","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":4680,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhMlOgCRA9TVsSAnZWagAA7x0P/RfYpkDk3F1Z5KnBZGZJ\nTXVnNdJPDFmYK7rL4p08FhzvVcXfYMyB43cx4anoEgoPkXvKnzGrZQbm4/js\n+AKlISyMkUfZbq0dVao01Uh2ImzlcD2eyjU3IJ7Y55WboLwFu2y7A8Ncw43z\nG3Oc82AuPd0rxB9ZiYZyJEDfTQ+uwQDecSkaDCIJoQRGZDHCNLuBfrVa/M6A\nv745frA3zqKSiqfc4ZJ7eJ/EidRAwJEg0upy3U4Gyt1TB8bR5OWIbrVd4Ic5\nA4PAepNMLYeGQ8Veh2mKdAXANM/n1Yxjot9FBlkEUg7AR/SyPP79B/xGTkps\nZ+Zt/s4GLN+yN8Wyl6AM9f2InD/OVp/as+3OGVgghYSkdGc9FXwgRG9cMjwo\ngTyGE2MkbDeX/kIA0Zt1PRoojIrVEGY0SYXoVknQ8P6QN4at7acWAo1hQ9DD\nF4y9VgxIvdOB/nWVvSO6+a1SnF8Dmh2fE9WpD1N9lYmUQevH7PZUQcHFvZj6\nAmzFtEOb1d8MA7DowjYjAnOTkOrCAsf+wgsMw63Pce3EtbB2L0FC3IUYvu4Q\nHKPvYutTDrhB/ii/AbukkXtpK0R4laJT9Yu5owxYaaY72gSIXwDE/FdHzhOa\npExNgtFKeRxbSIWHPN/tQnINK9IKtXPZJ2kU8zuaNR6P7SJwq4U35Sy87W8d\nRCL1\r\n=nWNI\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","name":"@semantic-release/error","author":{"url":"http://boennemann.me","name":"Stephan Bönnemann","email":"stephan@boennemann.me"},"readme":"# @semantic-release/error\n\nError type used by all [semantic-release](https://github.com/semantic-release/semantic-release) packages.\n\n[![Build Status](https://github.com/semantic-release/error/workflows/Test/badge.svg)](https://github.com/semantic-release/error/actions?query=workflow%3ATest+branch%3Amaster)\n\nErrors of type `SemanticReleaseError` or an inherited type will be considered by [semantic-release](https://github.com/semantic-release/semantic-release) as an expected exception case (no release to be done, running on a PR etc..). That indicate to the `semantic-release` process to stop and exit with the `0` success code.\n\nAny other type of error will be considered by [semantic-release](https://github.com/semantic-release/semantic-release) as an unexpected error (i/o issue, code problem etc...). That indicate to the `semantic-release` process to stop, log the error and exit with the `1` failure code.\n\n## Usage\n\n```js\nconst SemanticReleaseError = require(\"@semantic-release/error\");\n\n// Default\nthrow new SemanticReleaseError();\n\n// With error message\nthrow new SemanticReleaseError(\"An error happened\");\n\n// With error message and error code\nthrow new SemanticReleaseError(\"An error happened\", \"ECODE\");\n\n// With error message, error code and details\nthrow new SemanticReleaseError(\"An error happened\", \"ECODE\", \"Here is some suggestions to solve this error.\");\n\n// With inheritance\nclass InheritedError extends SemanticReleaseError {\n  constructor(message, code, newProperty, details) {\n    super(message);\n    Error.captureStackTrace(this, this.constructor);\n    this.name = this.constructor.name;\n    this.code = code;\n    this.details = details;\n    this.newProperty = \"newProperty\";\n  }\n}\n\nthrow new InheritedError(\"An error happened\", \"ECODE\", \"Here is some suggestions to solve this error.\");\n```\n","engines":{"node":">=14.17"},"gitHead":"e94458017064d92157b261126982f0d98869e501","license":"MIT","scripts":{"lint":"xo","test":"nyc ava -v","codecov":"codecov -f coverage/coverage-final.json","pretest":"npm run lint","test:ci":"nyc ava -v","semantic-release":"semantic-release"},"_npmUser":{"name":"semantic-release-bot","email":"semantic-release@martynus.net"},"homepage":"https://github.com/semantic-release/error#readme","keywords":["error","semantic-release"],"prettier":{"printWidth":120,"trailingComma":"es5"},"renovate":{"extends":["github>semantic-release/.github"]},"repository":{"url":"git+https://github.com/semantic-release/error.git","type":"git"},"_npmVersion":"6.14.15","description":"errors with more than just a message","directories":{},"maintainers":[{"name":"pvdlg","email":"pierre.denis.vanduynslager@gmail.com"},{"name":"semantic-release-bot","email":"semantic-release@martynus.net"},{"name":"boennemann","email":"me@sbw.one"},{"name":"christophwitzko","email":"npm@christophwitzko.com"},{"name":"gr2m","email":"gregor@martynus.net"}],"_nodeVersion":"14.17.6","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"xo":"0.38.2","ava":"3.15.0","nyc":"15.1.0","codecov":"3.8.1"},"_npmOperationalInternal":{"tmp":"tmp/error_3.0.0-beta.1_1630688160173_0.3314140619048076","host":"s3://npm-registry-packages"},"_id":"@semantic-release/error@3.0.0-beta.1","version":"3.0.0-beta.1"}