Socket
Socket
Sign inDemoInstall

terminal-link

Package Overview
Dependencies
5
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.1.0 to 2.1.1

2

index.d.ts

@@ -8,3 +8,3 @@ declare namespace terminalLink {

*/
fallback?: ((text: string, url: string) => string) | false;
fallback?: ((text: string, url: string) => string) | boolean;
}

@@ -11,0 +11,0 @@ }

@@ -12,3 +12,3 @@ 'use strict';

return options.fallback ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
return typeof options.fallback === 'function' ? options.fallback(text, url) : `${text} (\u200B${url}\u200B)`;
}

@@ -15,0 +15,0 @@

{
"name": "terminal-link",
"version": "2.1.0",
"version": "2.1.1",
"description": "Create clickable links in the terminal",

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

@@ -50,3 +50,3 @@ # terminal-link [![Build Status](https://travis-ci.org/sindresorhus/terminal-link.svg?branch=master)](https://travis-ci.org/sindresorhus/terminal-link)

Type: `Function | false`
Type: `Function | boolean`

@@ -53,0 +53,0 @@ Override the default fallback. The function receives the `text` and `url` as parameters and is expected to return a string.

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