@semantic-release/error
Advanced tools
Comparing version 3.0.0 to 4.0.0
@@ -1,6 +0,6 @@ | ||
module.exports = class SemanticReleaseError extends Error { | ||
export default class SemanticReleaseError extends Error { | ||
constructor(message, code, details) { | ||
super(message); | ||
Error.captureStackTrace(this, this.constructor); | ||
this.name = 'SemanticReleaseError'; | ||
this.name = "SemanticReleaseError"; | ||
this.code = code; | ||
@@ -10,2 +10,2 @@ this.details = details; | ||
} | ||
}; | ||
} |
{ | ||
"name": "@semantic-release/error", | ||
"description": "errors with more than just a message", | ||
"version": "3.0.0", | ||
"version": "4.0.0", | ||
"type": "module", | ||
"author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)", | ||
@@ -15,9 +16,9 @@ "ava": { | ||
"devDependencies": { | ||
"ava": "3.15.0", | ||
"ava": "5.1.0", | ||
"c8": "7.14.0", | ||
"codecov": "3.8.3", | ||
"nyc": "15.1.0", | ||
"xo": "0.38.2" | ||
"prettier": "2.8.8" | ||
}, | ||
"engines": { | ||
"node": ">=14.17" | ||
"node": ">=18" | ||
}, | ||
@@ -33,4 +34,4 @@ "files": [ | ||
"license": "MIT", | ||
"main": "index.js", | ||
"nyc": { | ||
"exports": "./index.js", | ||
"c8": { | ||
"include": [ | ||
@@ -51,3 +52,4 @@ "index.js" | ||
"publishConfig": { | ||
"access": "public" | ||
"access": "public", | ||
"provenance": true | ||
}, | ||
@@ -59,16 +61,8 @@ "repository": { | ||
"scripts": { | ||
"codecov": "codecov -f coverage/coverage-final.json", | ||
"lint": "xo", | ||
"lint": "prettier --check \"*.{js,json,md}\" \".github/**/*.{md,yml}\" \"{bin,lib,test}/*.js\"", | ||
"lint:fix": "prettier --write \"*.{js,json,md}\" \".github/**/*.{md,yml}\" \"{bin,lib,test}/*.js\"", | ||
"pretest": "npm run lint", | ||
"semantic-release": "semantic-release", | ||
"test": "nyc ava -v", | ||
"test:ci": "nyc ava -v" | ||
"test": "c8 ava -v", | ||
"test:ci": "c8 ava -v" | ||
}, | ||
"xo": { | ||
"prettier": true, | ||
"space": true, | ||
"rules": { | ||
"unicorn/string-content": "off" | ||
} | ||
}, | ||
"renovate": { | ||
@@ -75,0 +69,0 @@ "extends": [ |
@@ -14,3 +14,3 @@ # @semantic-release/error | ||
```js | ||
const SemanticReleaseError = require("@semantic-release/error"); | ||
import SemanticReleaseError from "@semantic-release/error"; | ||
@@ -17,0 +17,0 @@ // Default |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4682
Yes