Socket
Socket
Sign inDemoInstall

@semantic-release/error

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@semantic-release/error - npm Package Compare versions

Comparing version 1.0.0 to 2.0.0

index.js

94

package.json
{
"name": "@semantic-release/error",
"version": "1.0.0",
"description": "errors with more than just a message",
"version": "2.0.0",
"author": "Stephan Bönnemann <stephan@boennemann.me> (http://boennemann.me)",

@@ -10,39 +10,83 @@ "bugs": {

"config": {
"nyc": {
"exclude": [
".test",
"node_modules"
]
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"devDependencies": {
"babel": "^5.5.8",
"coveralls": "^2.11.2",
"mkdirp": "^0.5.1",
"nyc": "^3.0.0",
"rimraf": "^2.4.0",
"standard": "^4.2.1",
"tap": "^1.2.0"
"ava": "^0.22.0",
"codecov": "^2.3.0",
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.0.0",
"eslint": "^4.7.0",
"eslint-config-prettier": "^2.5.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-node": "^5.1.1",
"eslint-plugin-prettier": "^2.2.0",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"nyc": "^11.2.1",
"prettier": "^1.7.0",
"rimraf": "^2.6.2",
"semantic-release": "^8.0.0"
},
"eslintConfig": {
"extends": [
"standard",
"prettier"
],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": 2
}
},
"files": [
"index.js"
],
"homepage": "https://github.com/semantic-release/error#readme",
"keywords": [
"semantic-release",
"error"
"error",
"semantic-release"
],
"license": "MIT",
"main": "dist/index.js",
"main": "index.js",
"nyc": {
"lines": 100,
"statements": 100,
"functions": 100,
"branches": 100,
"include": [
"index.js"
],
"reporter": [
"lcov",
"text"
],
"all": true
},
"prettier": {
"printWidth": 120,
"singleQuote": true,
"bracketSpacing": false,
"trailingComma": "es5"
},
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/semantic-release/error.git"
"url": "https://github.com/semantic-release/error.git"
},
"scripts": {
"build": "rimraf dist && mkdirp dist && babel src --out-dir dist",
"build:tests": "rimraf .test && mkdirp .test && babel test --out-dir .test",
"coverage": "nyc report",
"coverage:upload": "npm run coverage -- --reporter=lcovonly && coveralls < coverage/lcov.info",
"pretest:suite": "npm run build && npm run build:tests",
"test": "npm run test:style && npm run test:suite",
"test:style": "standard",
"test:suite": "nyc tap --no-cov .test/{scenarios,specs}/*.js"
"clean": "rimraf coverage && rimraf .nyc_output",
"cm": "git-cz",
"codecov": "codecov",
"coverage": "nyc check-coverage",
"lint": "eslint .",
"pretest": "npm run clean && npm run lint",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"test": "nyc ava -v"
}
}

@@ -1,7 +0,28 @@

# semantic-release error
[![npm version](https://badge.fury.io/js/%40semantic-release%2Ferror.svg)](http://badge.fury.io/js/%40semantic-release%2Ferror)
[![Build Status](https://travis-ci.org/semantic-release/error.svg?branch=master)](https://travis-ci.org/semantic-release/error)
[![Coverage Status](https://coveralls.io/repos/semantic-release/error/badge.svg)](https://coveralls.io/r/semantic-release/error)
[![Dependency Status](https://david-dm.org/semantic-release/error.svg)](https://david-dm.org/semantic-release/error)
[![devDependency Status](https://david-dm.org/semantic-release/error/dev-status.svg)](https://david-dm.org/semantic-release/error#info=devDependencies)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)
# @semantic-release/error
Error type used by all [semantic-release](https://github.com/semantic-release/semantic-release) packages.
[![npm](https://img.shields.io/npm/v/@semantic-release/error.svg)](https://www.npmjs.com/package/@semantic-release/error)
[![Greenkeeper badge](https://badges.greenkeeper.io/semantic-release/error.svg)](https://greenkeeper.io/)
[![license](https://img.shields.io/github/license/semantic-release/error.svg)](https://github.com/semantic-release/error/blob/master/LICENSE)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
[![Travis](https://img.shields.io/travis/semantic-release/error.svg)](https://travis-ci.org/semantic-release/error)
[![Codecov](https://img.shields.io/codecov/c/github/semantic-release/error.svg)](https://codecov.io/gh/semantic-release/error)
## Usage
```js
const SemanticReleaseError = require('@semantic-release/error');
// Default
throw new SemanticReleaseError();
// With error message
throw new SemanticReleaseError('An error happened');
// With error message and error code
throw new SemanticReleaseError('An error happened', 'ECODE');
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc