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 2.0.0 to 2.0.1

13

index.d.ts
/**
* Throw a given error.
*
* @type {{
* (error: Error): never
* (error: null | undefined): void
* (): void
* }} */
export var bail: {
(error: Error): never
(error: null | undefined): void
(): void
}
* @param {Error | null | undefined} [error]
*/
export function bail(error?: Error | null | undefined): void

@@ -1,21 +0,10 @@

// prettier-ignore
/**
* Throw a given error.
*
* @type {{
* (error: Error): never
* (error: null | undefined): void
* (): void
* }} */
export var bail = (
/**
* Throw a given error.
*
* @param {Error?} [error]
*/
function (error) {
if (error) {
throw error
}
* @param {Error | null | undefined} [error]
*/
export function bail(error) {
if (error) {
throw error
}
)
}
{
"name": "bail",
"version": "2.0.0",
"version": "2.0.1",
"description": "Throw a given error",

@@ -5,0 +5,0 @@ "license": "MIT",

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