Socket
Socket
Sign inDemoInstall

bail

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.0.2

25

index.js

@@ -1,30 +0,5 @@

/**
* @author Titus Wormer
* @copyright 2015 Titus Wormer
* @license MIT
* @module bail
* @fileoverview Throw a given error.
*/
'use strict';
/* Expose. */
module.exports = bail;
/**
* Throw a given error.
*
* @example
* bail();
*
* @example
* bail(new Error('failure'));
* // Error: failure
* // at repl:1:6
* // at REPLServer.defaultEval (repl.js:154:27)
* // ...
*
* @param {Error?} [err] - Optional error.
* @throws {Error} - `err`, when given.
*/
function bail(err) {

@@ -31,0 +6,0 @@ if (err) {

38

package.json
{
"name": "bail",
"version": "1.0.1",
"version": "1.0.2",
"description": "Throw a given error",

@@ -24,15 +24,12 @@ "license": "MIT",

"devDependencies": {
"browserify": "^13.0.1",
"browserify": "^14.0.0",
"esmangle": "^1.0.1",
"nyc": "^7.0.0",
"remark-cli": "^1.0.0",
"remark-comment-config": "^4.0.0",
"remark-github": "^5.0.0",
"remark-lint": "^4.0.0",
"remark-validate-links": "^4.0.0",
"nyc": "^11.0.0",
"remark-cli": "^3.0.0",
"remark-preset-wooorm": "^3.0.0",
"tape": "^4.0.0",
"xo": "^0.16.0"
"xo": "^0.18.0"
},
"scripts": {
"build-md": "remark . --quiet --frail",
"build-md": "remark . -qfo",
"build-bundle": "browserify index.js --bare -s bail > bail.js",

@@ -46,21 +43,18 @@ "build-mangle": "esmangle bail.js > bail.min.js",

},
"nyc": {
"check-coverage": true,
"lines": 100,
"functions": 100,
"branches": 100
},
"xo": {
"space": true,
"esnext": false,
"ignores": [
"bail.js",
"bail.min.js"
"bail.js"
]
},
"remarkConfig": {
"output": true,
"plugins": [
"comment-config",
"github",
"lint",
"validate-links"
],
"settings": {
"bullet": "*"
}
"plugins": ["preset-wooorm"]
}
}
# bail [![Build Status][travis-badge]][travis] [![Coverage Status][codecov-badge]][codecov]
<!--lint disable heading-increment list-item-spacing-->
:warning: Throw a given error.

@@ -45,5 +43,5 @@

* [`noop`][noop];
* [`noop2`][noop2];
* [`noop3`][noop3];
* [`noop`][noop]
* [`noop2`][noop2]
* [`noop3`][noop3]

@@ -50,0 +48,0 @@ ## License

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc