Socket
Socket
Sign inDemoInstall

gauge

Package Overview
Dependencies
14
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.7.0 to 2.7.1

5

CHANGELOG.md

@@ -0,1 +1,6 @@

### v2.7.1
* Bug fix: Calls to show/pulse while the progress bar is disabled should still
update our internal representation of what would be shown should it be enabled.
### v2.7.0

@@ -2,0 +7,0 @@

6

index.js

@@ -171,3 +171,2 @@ 'use strict'

Gauge.prototype.show = function (section, completed) {
if (this._disabled) return
this._showing = true

@@ -184,2 +183,3 @@ if (typeof section === 'string') {

if (completed != null) this._status.completed = completed
if (this._disabled) return
this._requestRedraw()

@@ -189,6 +189,6 @@ }

Gauge.prototype.pulse = function (subsection) {
this._status.subsection = subsection || ''
this._status.spun ++
if (this._disabled) return
if (!this._showing) return
this._status.subsection = subsection || ''
this._status.spun ++
this._requestRedraw()

@@ -195,0 +195,0 @@ }

{
"name": "gauge",
"version": "2.7.0",
"version": "2.7.1",
"description": "A terminal based horizontal guage",

@@ -5,0 +5,0 @@ "main": "index.js",

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