🚀 Socket Launch Week 🚀 Day 5: Introducing Socket Fix.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/default-reporter

Package Overview
Dependencies
Maintainers
3
Versions
369
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/default-reporter - npm Package Compare versions

Comparing version

to
7.9.1

9

CHANGELOG.md
# @pnpm/default-reporter
## 7.9.1
### Patch Changes
- 3b8e3b6b1: Always print the final progress stats.
- Updated dependencies [767212f4e]
- Updated dependencies [092f8dd83]
- @pnpm/config@11.3.0
## 7.9.0

@@ -4,0 +13,0 @@

2

lib/reporterForClient/index.js

@@ -25,3 +25,3 @@ "use strict";

const throttle = typeof opts.throttleProgress === 'number' && opts.throttleProgress > 0
? operators_1.throttleTime(opts.throttleProgress)
? operators_1.throttleTime(opts.throttleProgress, undefined, { leading: true, trailing: true })
: undefined;

@@ -28,0 +28,0 @@ const outputs = [

@@ -42,9 +42,10 @@ "use strict";

throttle, importingDone$, progress$) {
// Reporting is done every `throttleProgress` milliseconds
// and once all packages are fetched.
return Rx.combineLatest(throttle ? progress$.pipe(throttle) : progress$, importingDone$)
.pipe(operators_1.map(createStatusMessage),
// Avoid logs after all resolved packages were downloaded.
// Fixing issue: https://github.com/pnpm/pnpm/issues/1028#issuecomment-364782901
operators_1.takeWhile((msg) => msg['done'] !== true, true));
let combinedProgress = Rx.combineLatest(progress$, importingDone$)
// Avoid logs after all resolved packages were downloaded.
// Fixing issue: https://github.com/pnpm/pnpm/issues/1028#issuecomment-364782901
.pipe(operators_1.takeWhile(([, importingDone]) => !importingDone, true));
if (throttle) {
combinedProgress = combinedProgress.pipe(throttle);
}
return combinedProgress.pipe(operators_1.map(createStatusMessage));
}

@@ -51,0 +52,0 @@ function getModulesInstallProgress$(stage$, progress$) {

{
"name": "@pnpm/default-reporter",
"version": "7.9.0",
"version": "7.9.1",
"description": "The default reporter of pnpm",

@@ -33,3 +33,3 @@ "main": "lib/index.js",

"dependencies": {
"@pnpm/config": "11.2.7",
"@pnpm/config": "11.3.0",
"@pnpm/core-loggers": "5.0.0",

@@ -36,0 +36,0 @@ "@pnpm/error": "1.3.1",