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

@pnpm/default-reporter

Package Overview
Dependencies
Maintainers
3
Versions
349
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 4.1.4 to 5.0.0

6

lib/index.js

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

function default_1(opts) {
var _a, _b;
var _a, _b, _c, _d;
if (opts.context.argv[0] === 'server') {

@@ -23,5 +23,5 @@ const log$ = most.fromEvent('data', opts.streamParser);

}
const outputMaxWidth = ((_a = opts.reportingOptions) === null || _a === void 0 ? void 0 : _a.outputMaxWidth) || process.stdout.columns && process.stdout.columns - 2 || 80;
const outputMaxWidth = (_c = (_b = (_a = opts.reportingOptions) === null || _a === void 0 ? void 0 : _a.outputMaxWidth, (_b !== null && _b !== void 0 ? _b : (process.stdout.columns && process.stdout.columns - 2))), (_c !== null && _c !== void 0 ? _c : 80));
const output$ = toOutput$({ ...opts, reportingOptions: { ...opts.reportingOptions, outputMaxWidth } });
if ((_b = opts.reportingOptions) === null || _b === void 0 ? void 0 : _b.appendOnly) {
if ((_d = opts.reportingOptions) === null || _d === void 0 ? void 0 : _d.appendOnly) {
output$

@@ -28,0 +28,0 @@ .subscribe({

@@ -15,4 +15,5 @@ "use strict";

function default_1(log$, opts) {
const width = opts.width || process.stdout.columns || 80;
const cwd = opts.pnpmConfig && opts.pnpmConfig.prefix || process.cwd();
var _a, _b, _c, _d;
const width = (_b = (_a = opts.width, (_a !== null && _a !== void 0 ? _a : process.stdout.columns)), (_b !== null && _b !== void 0 ? _b : 80));
const cwd = (_d = (_c = opts.pnpmConfig) === null || _c === void 0 ? void 0 : _c.dir, (_d !== null && _d !== void 0 ? _d : process.cwd()));
const outputs = [

@@ -19,0 +20,0 @@ reportProgress_1.default(log$, {

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

.map((obj) => {
var _a;
switch (obj.level) {

@@ -17,3 +18,3 @@ case 'warn':

case 'error':
if (obj['message'] && obj['message']['prefix'] && obj['message']['prefix'] !== opts.cwd) {
if (((_a = obj['message']) === null || _a === void 0 ? void 0 : _a['prefix']) && obj['message']['prefix'] !== opts.cwd) {
return `${obj['message']['prefix']}:` + os.EOL + reportError_1.default(obj);

@@ -20,0 +21,0 @@ }

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

function reportError(logObj) {
var _a, _b, _c;
if (logObj['err']) {

@@ -48,3 +49,3 @@ const err = logObj['err'];

// Errors with known error codes are printed w/o stack trace
if (err.code && err.code.startsWith && err.code.startsWith('ERR_PNPM_')) {
if ((_c = (_a = err.code) === null || _a === void 0 ? void 0 : (_b = _a).startsWith) === null || _c === void 0 ? void 0 : _c.call(_b, 'ERR_PNPM_')) {
return formatErrorSummary(err.message);

@@ -86,3 +87,3 @@ }

You may change the global store location by running "pnpm config set store <location>".
You may change the global store location by running "pnpm config set store-dir <dir>".
(This error may happen if the node_modules was installed with a different major version of pnpm)

@@ -89,0 +90,0 @@ `;

{
"name": "@pnpm/default-reporter",
"version": "4.1.4",
"version": "5.0.0",
"description": "The default reporter of pnpm",

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

"dependencies": {
"@pnpm/config": "4.1.4",
"@pnpm/config": "5.0.0",
"@pnpm/core-loggers": "4.0.0",

@@ -62,3 +62,3 @@ "@pnpm/error": "1.0.0",

"@types/ramda": "0.26.29",
"@types/semver": "6",
"@types/semver": "^6.2.0",
"delay": "4.3.0",

@@ -65,0 +65,0 @@ "ghooks": "2.0.4",

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