@pnpm/default-reporter 1001.3.5 → 1001.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,13 +31,6 @@ function reporterForClient(log$, opts) {
|
|
|
31
31
|
? (0, operators_1.throttleTime)(opts.throttleProgress, undefined, { leading: true, trailing: true })
|
|
32
32
|
: undefined;
|
|
33
33
|
const outputs = [
|
|
34
|
-
(0, reportLifecycleScripts_1.reportLifecycleScripts)(log$, {
|
|
35
|
-
appendOnly: (opts.appendOnly === true || opts.streamLifecycleOutput) && !opts.hideLifecycleOutput,
|
|
36
|
-
aggregateOutput: opts.aggregateOutput,
|
|
37
|
-
hideLifecyclePrefix: opts.hideLifecyclePrefix,
|
|
38
|
-
cwd,
|
|
39
|
-
width,
|
|
40
|
-
}),
|
|
41
34
|
(0, reportMisc_1.reportMisc)(log$, {
|
|
42
35
|
appendOnly: opts.appendOnly === true,
|
|
43
36
|
config: opts.config,
|
|
@@ -46,21 +39,10 @@ function reporterForClient(log$, opts) {
|
|
|
46
39
|
zoomOutCurrent: opts.isRecursive,
|
|
47
40
|
peerDependencyRules: opts.peerDependencyRules,
|
|
48
41
|
}),
|
|
49
|
-
(0, reportInstallChecks_1.reportInstallChecks)(log$.installCheck, { cwd }),
|
|
50
|
-
(0, reportScope_1.reportScope)(log$.scope, { isRecursive: opts.isRecursive, cmd: opts.cmd }),
|
|
51
|
-
(0, reportSkippedOptionalDependencies_1.reportSkippedOptionalDependencies)(log$.skippedOptionalDependency, { cwd }),
|
|
52
|
-
(0, reportHooks_1.reportHooks)(log$.hook, { cwd, isRecursive: opts.isRecursive }),
|
|
53
|
-
(0, reportUpdateCheck_1.reportUpdateCheck)(log$.updateCheck, opts),
|
|
54
42
|
];
|
|
55
|
-
if (opts.cmd !== 'dlx') {
|
|
56
|
-
outputs.push((0, reportContext_1.reportContext)(log$, { cwd }));
|
|
57
|
-
}
|
|
58
43
|
// logLevelNumber: 0123 = error warn info debug
|
|
59
44
|
const logLevelNumber = reportMisc_1.LOG_LEVEL_NUMBER[opts.logLevel ?? 'info'] ?? reportMisc_1.LOG_LEVEL_NUMBER['info'];
|
|
60
45
|
const showInfo = logLevelNumber >= reportMisc_1.LOG_LEVEL_NUMBER.info;
|
|
61
|
-
if (opts.cmd in PRINT_EXECUTION_TIME_IN_COMMANDS && showInfo) {
|
|
62
|
-
outputs.push((0, reportExecutionTime_1.reportExecutionTime)(log$.executionTime));
|
|
63
|
-
}
|
|
64
46
|
if (logLevelNumber >= reportMisc_1.LOG_LEVEL_NUMBER.warn) {
|
|
65
47
|
outputs.push((0, reportPeerDependencyIssues_1.reportPeerDependencyIssues)(log$, opts.peerDependencyRules), (0, reportDeprecations_1.reportDeprecations)({
|
|
66
48
|
deprecation: log$.deprecation,
|
|
@@ -68,7 +50,19 @@ function reporterForClient(log$, opts) {
|
|
|
68
50
|
}, { cwd, isRecursive: opts.isRecursive }), (0, reportRequestRetry_1.reportRequestRetry)(log$.requestRetry));
|
|
69
51
|
}
|
|
70
52
|
if (showInfo) {
|
|
71
|
-
|
|
53
|
+
if (opts.cmd in PRINT_EXECUTION_TIME_IN_COMMANDS) {
|
|
54
|
+
outputs.push((0, reportExecutionTime_1.reportExecutionTime)(log$.executionTime));
|
|
55
|
+
}
|
|
56
|
+
if (opts.cmd !== 'dlx') {
|
|
57
|
+
outputs.push((0, reportContext_1.reportContext)(log$, { cwd }));
|
|
58
|
+
}
|
|
59
|
+
outputs.push((0, reportLifecycleScripts_1.reportLifecycleScripts)(log$, {
|
|
60
|
+
appendOnly: (opts.appendOnly === true || opts.streamLifecycleOutput) && !opts.hideLifecycleOutput,
|
|
61
|
+
aggregateOutput: opts.aggregateOutput,
|
|
62
|
+
hideLifecyclePrefix: opts.hideLifecyclePrefix,
|
|
63
|
+
cwd,
|
|
64
|
+
width,
|
|
65
|
+
}), (0, reportInstallChecks_1.reportInstallChecks)(log$.installCheck, { cwd }), (0, reportScope_1.reportScope)(log$.scope, { isRecursive: opts.isRecursive, cmd: opts.cmd }), (0, reportSkippedOptionalDependencies_1.reportSkippedOptionalDependencies)(log$.skippedOptionalDependency, { cwd }), (0, reportHooks_1.reportHooks)(log$.hook, { cwd, isRecursive: opts.isRecursive }), (0, reportUpdateCheck_1.reportUpdateCheck)(log$.updateCheck, opts), (0, reportProgress_1.reportProgress)(log$, {
|
|
72
66
|
cwd,
|
|
73
67
|
throttle,
|
|
74
68
|
hideAddedPkgsProgress: opts.hideAddedPkgsProgress,
|
|
@@ -80,18 +74,18 @@ function reporterForClient(log$, opts) {
|
|
|
80
74
|
width,
|
|
81
75
|
hideProgressPrefix: opts.hideProgressPrefix,
|
|
82
76
|
}));
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
}
|
|
77
|
+
if (!opts.appendOnly) {
|
|
78
|
+
outputs.push((0, reportBigTarballsProgress_1.reportBigTarballProgress)(log$));
|
|
79
|
+
}
|
|
80
|
+
if (!opts.isRecursive) {
|
|
81
|
+
outputs.push((0, reportSummary_1.reportSummary)(log$, {
|
|
82
|
+
cmd: opts.cmd,
|
|
83
|
+
cwd,
|
|
84
|
+
env: opts.env,
|
|
85
|
+
filterPkgsDiff: opts.filterPkgsDiff,
|
|
86
|
+
pnpmConfig: opts.pnpmConfig,
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
95
89
|
}
|
|
96
90
|
return outputs;
|
|
97
91
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reporterForClient/index.ts"],"names":[],"mappings":";;AA8BA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/reporterForClient/index.ts"],"names":[],"mappings":";;AA8BA,8CAmIC;AA7JD,8CAA6C;AAC7C,2EAAsE;AACtE,mDAA+C;AAC/C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Check(log$, opts) {
|
|
|
43
43
|
return Rx.of({
|
|
44
44
|
msg: (0, boxen_1.default)(`\
|
|
45
45
|
Update available! ${chalk_1.default.red(log.currentVersion)} → ${chalk_1.default.green(log.latestVersion)}.
|
|
46
|
-
${chalk_1.default.magenta('Changelog:')} https://
|
|
46
|
+
${chalk_1.default.magenta('Changelog:')} https://pnpm.io/v/${log.latestVersion}
|
|
47
47
|
${updateMessage}`, {
|
|
48
48
|
padding: 1,
|
|
49
49
|
margin: 1,
|
|
@@ -56,7 +56,7 @@ ${updateMessage}`, {
|
|
|
56
56
|
}
|
|
57
57
|
function renderUpdateMessage(opts) {
|
|
58
58
|
const updateCommand = renderUpdateCommand(opts);
|
|
59
|
-
return `
|
|
59
|
+
return `To update, run: ${chalk_1.default.magenta(updateCommand)}`;
|
|
60
60
|
}
|
|
61
61
|
function renderUpdateCommand(opts) {
|
|
62
62
|
if ((0, cli_meta_1.isExecutedByCorepack)(opts.env)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reportUpdateCheck.js","sourceRoot":"","sources":["../../src/reporterForClient/reportUpdateCheck.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,8CA6BC;AApCD,6CAAqF;AACrF,kDAAyB;AACzB,kDAAyB;AACzB,yCAA0B;AAC1B,8CAAkD;AAClD,oDAA2B;AAE3B,SAAgB,iBAAiB,CAAE,IAAmC,EAAE,IAGvE;IACC,OAAO,IAAI,CAAC,IAAI,CACd,IAAA,gBAAI,EAAC,CAAC,CAAC,EACP,IAAA,kBAAM,EAAC,CAAC,GAAG,EAAE,EAAE,CAAC,gBAAM,CAAC,EAAE,CAAC,GAAG,CAAC,aAAa,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC,EACjE,IAAA,eAAG,EAAC,CAAC,GAAG,EAAE,EAAE;QACV,MAAM,aAAa,GAAG,mBAAmB,CAAC;YACxC,sBAAsB,EAAE,IAAA,yCAA8B,EAAC,IAAI,C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AK,CAAC,OAAO,CAAC,YAAY,CAAC,sBAAsB,GAAG,CAAC,aAAa;EAClE,aAAa,EAAE,EACT;gBACE,OAAO,EAAE,CAAC;gBACV,MAAM,EAAE,CAAC;gBACT,KAAK,EAAE,QAAQ;gBACf,WAAW,EAAE,QAAQ;gBACrB,WAAW,EAAE,OAAO;aACrB,CACA;SACF,CAAC,CAAA;IACJ,CAAC,CAAC,CACH,CAAA;AACH,CAAC;AAQD,SAAS,mBAAmB,CAAE,IAA0B;IACtD,MAAM,aAAa,GAAG,mBAAmB,CAAC,IAAI,CAAC,CAAA;IAC/C,OAAO,mBAAmB,eAAK,CAAC,OAAO,CAAC,aAAa,CAAC,EAAE,CAAA;AAC1D,CAAC;AAED,SAAS,mBAAmB,CAAE,IAA0B;IACtD,IAAI,IAAA,+BAAoB,EAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QACnC,OAAO,qBAAqB,IAAI,CAAC,aAAa,EAAE,CAAA;IAClD,CAAC;IACD,IAAI,IAAI,CAAC,GAAG,CAAC,SAAS,EAAE,CAAC;QACvB,OAAO,kBAAkB,CAAA;IAC3B,CAAC;IACD,MAAM,OAAO,GAAG,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAA;IAClE,OAAO,eAAe,OAAO,EAAE,CAAA;AACjC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnpm/default-reporter",
|
|
3
|
-
"version": "1001.3.
|
|
3
|
+
"version": "1001.3.7",
|
|
4
4
|
"description": "The default reporter of pnpm",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pnpm",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"!*.map"
|
|
25
25
|
],
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@pnpm/util.lex-comparator": "3.0.
|
|
27
|
+
"@pnpm/util.lex-comparator": "3.0.1",
|
|
28
28
|
"ansi-diff": "^1.2.0",
|
|
29
29
|
"boxen": "^5.1.2",
|
|
30
30
|
"chalk": "^4.1.2",
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"stacktracey": "^2.1.8",
|
|
39
39
|
"string-length": "^4.0.2",
|
|
40
40
|
"@pnpm/cli-meta": "1000.0.4",
|
|
41
|
-
"@pnpm/config": "1002.5.
|
|
41
|
+
"@pnpm/config": "1002.5.3",
|
|
42
42
|
"@pnpm/dedupe.issues-renderer": "1000.0.1",
|
|
43
|
+
"@pnpm/dedupe.types": "1000.0.0",
|
|
43
44
|
"@pnpm/core-loggers": "1000.1.4",
|
|
44
45
|
"@pnpm/error": "1000.0.2",
|
|
45
46
|
"@pnpm/render-peer-issues": "1000.0.6",
|
|
46
|
-
"@pnpm/types": "1000.2.1"
|
|
47
|
-
"@pnpm/dedupe.types": "1000.0.0"
|
|
47
|
+
"@pnpm/types": "1000.2.1"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"@pnpm/logger": ">=5.1.0 <1001.0.0"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"ghooks": "2.0.4",
|
|
57
57
|
"load-json-file": "^6.2.0",
|
|
58
58
|
"normalize-newline": "3.0.0",
|
|
59
|
-
"@pnpm/default-reporter": "1001.3.
|
|
59
|
+
"@pnpm/default-reporter": "1001.3.7",
|
|
60
60
|
"@pnpm/logger": "1000.0.0"
|
|
61
61
|
},
|
|
62
62
|
"engines": {
|