Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornlf <quitlahok@gmail.com>2021-02-03 01:35:10 +0300
committerRuy Adorno <ruyadorno@hotmail.com>2021-02-05 02:06:25 +0300
commiteafb0aab844658421a64530cf6fdc5492c6809b7 (patch)
tree6edc4afbb9ab105d24218ffe7c9903da7e36950d
parent62ee2ce50418e99939a3c62d8201bf5b9ce458ef (diff)
remove unused no-progress-while-running utilnlf/remove-spawn-util
PR-URL: https://github.com/npm/cli/pull/2601 Credit: @nlf Close: #2601 Reviewed-by: @ruyadorno, @wraithgar
-rw-r--r--lib/utils/no-progress-while-running.js25
1 files changed, 0 insertions, 25 deletions
diff --git a/lib/utils/no-progress-while-running.js b/lib/utils/no-progress-while-running.js
deleted file mode 100644
index c2e6a01b2..000000000
--- a/lib/utils/no-progress-while-running.js
+++ /dev/null
@@ -1,25 +0,0 @@
-var log = require('npmlog')
-var progressEnabled
-var running = 0
-
-var startRunning = exports.startRunning = function () {
- if (progressEnabled == null)
- progressEnabled = log.progressEnabled
- if (progressEnabled)
- log.disableProgress()
- ++running
-}
-
-var stopRunning = exports.stopRunning = function () {
- --running
- if (progressEnabled && running === 0)
- log.enableProgress()
-}
-
-exports.tillDone = function noProgressTillDone (cb) {
- startRunning()
- return function () {
- stopRunning()
- cb.apply(this, arguments)
- }
-}