Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/default-reporter

Package Overview
Dependencies
Maintainers
2
Versions
343
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 12.3.5 to 12.4.0

2

lib/index.d.ts

@@ -21,2 +21,3 @@ /// <reference types="node" />

hideLifecycleOutput?: boolean;
hideLifecyclePrefix?: boolean;
};

@@ -43,2 +44,3 @@ context: {

hideLifecycleOutput?: boolean;
hideLifecyclePrefix?: boolean;
};

@@ -45,0 +47,0 @@ context: {

@@ -249,2 +249,3 @@ "use strict";

hideLifecycleOutput: opts.reportingOptions?.hideLifecycleOutput,
hideLifecyclePrefix: opts.reportingOptions?.hideLifecyclePrefix,
});

@@ -251,0 +252,0 @@ if (opts.reportingOptions?.appendOnly) {

@@ -47,4 +47,5 @@ /// <reference types="node" />

hideLifecycleOutput?: boolean;
hideLifecyclePrefix?: boolean;
}): Array<Rx.Observable<Rx.Observable<{
msg: string;
}>>>;

@@ -37,2 +37,3 @@ "use strict";

aggregateOutput: opts.aggregateOutput,
hideLifecyclePrefix: opts.hideLifecyclePrefix,
cwd,

@@ -39,0 +40,0 @@ width,

@@ -8,2 +8,3 @@ import { type LifecycleLog } from '@pnpm/core-loggers';

aggregateOutput?: boolean;
hideLifecyclePrefix?: boolean;
cwd: string;

@@ -10,0 +11,0 @@ width: number;

10

lib/reporterForClient/reportLifecycleScripts.js

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

}
const streamLifecycleOutput = createStreamLifecycleOutput(opts.cwd);
const streamLifecycleOutput = createStreamLifecycleOutput(opts.cwd, !!opts.hideLifecyclePrefix);
return lifecycle$.pipe((0, operators_1.map)((log) => Rx.of({

@@ -170,8 +170,8 @@ msg: streamLifecycleOutput(log),

const ANSI_ESCAPES_LENGTH_OF_PREFIX = (0, outputConstants_1.hlValue)(' ').length - 1;
function createStreamLifecycleOutput(cwd) {
function createStreamLifecycleOutput(cwd, hideLifecyclePrefix) {
currentColor = 0;
const colorByPrefix = new Map();
return streamLifecycleOutput.bind(null, colorByPrefix, cwd);
return streamLifecycleOutput.bind(null, colorByPrefix, cwd, hideLifecyclePrefix);
}
function streamLifecycleOutput(colorByPkg, cwd, logObj) {
function streamLifecycleOutput(colorByPkg, cwd, hideLifecyclePrefix, logObj) {
const prefix = formatLifecycleScriptPrefix(colorByPkg, cwd, logObj.wd, logObj.stage);

@@ -190,3 +190,3 @@ if (typeof logObj['exitCode'] === 'number') {

const line = formatLine(Infinity, logObj);
return `${prefix}: ${line}`;
return hideLifecyclePrefix ? line : `${prefix}: ${line}`;
}

@@ -193,0 +193,0 @@ function formatIndentedOutput(maxWidth, logObj) {

{
"name": "@pnpm/default-reporter",
"version": "12.3.5",
"version": "12.4.0",
"description": "The default reporter of pnpm",

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

"string-length": "^4.0.2",
"@pnpm/config": "19.0.3",
"@pnpm/config": "19.1.0",
"@pnpm/core-loggers": "9.0.2",

@@ -57,3 +57,3 @@ "@pnpm/dedupe.issues-renderer": "1.0.0",

"strip-ansi": "^6.0.1",
"@pnpm/default-reporter": "12.3.5"
"@pnpm/default-reporter": "12.4.0"
},

@@ -60,0 +60,0 @@ "homepage": "https://github.com/pnpm/pnpm/blob/main/cli/default-reporter#readme",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc