@pnpm/default-reporter 9.0.2 → 9.0.3

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.
@@ -32,11 +32,12 @@ const Rx = __importStar(require("rxjs"));
32
32
  const operators_1 = require("rxjs/operators");
33
33
  const semver_1 = __importDefault(require("semver"));
34
34
  exports.default = (log$) => {
35
+ const pkgName = process['pkg'] != null ? '@pnpm/exe' : 'pnpm';
35
36
  return log$.pipe((0, operators_1.take)(1), (0, operators_1.filter)((log) => semver_1.default.gt(log.latestVersion, log.currentVersion)), (0, operators_1.map)((log) => Rx.of({
36
37
  msg: (0, boxen_1.default)(`\
37
38
  Update available! ${chalk_1.default.red(log.currentVersion)} → ${chalk_1.default.green(log.latestVersion)}.
38
39
  ${chalk_1.default.magenta('Changelog:')} https://github.com/pnpm/pnpm/releases/tag/v${log.latestVersion}
39
- Run ${chalk_1.default.magenta('pnpm add -g pnpm')} to update.
40
+ Run ${chalk_1.default.magenta(`pnpm add -g ${pkgName}`)} to update.
40
41
 
41
42
  Follow ${chalk_1.default.magenta('@pnpmjs')} for updates: https://twitter.com/pnpmjs`, {
42
43
  padding: 1,
@@ -1 +1 @@
1
- {"version":3,"file":"reportUpdateCheck.js","sourceRoot":"","sources":["../../src/reporterForClient/reportUpdateCheck.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,kDAAyB;AACzB,kDAAyB;AACzB,yCAA0B;AAC1B,8CAAkD;AAClD,oDAA2B;AAE3B,kBAAe,CAAC,IAAmC,EAAE,EAAE;IACrD,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,CAAC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AAC,MAAM,eAAK,CAAC,KAAK,CAAC,GAAG,CAAC,aAAa,CAAC;EACnF,eAAK,CAAC,OAAO,CAAC,YAAY,CAAC,+CAA+C,GAAG,CAAC,aAAa;MACvF,eAAK,CAAC,OAAO,CAAC,eAAe,OAAO,EAAE,CAAC;;SAEpC,eAAK,CAAC,OAAO,CAAC,SAAS,CAAC,0CAA0C,EACrE;YACE,OAAO,EAAE,CAAC;YACV,MAAM,EAAE,CAAC;YACT,KAAK,EAAE,QAAQ;YACf,WAAW,EAAE,QAAQ;YACrB,WAAW,EAAE,OAAO;SACrB,CACA;KACF,CAAC,CAAC,CACJ,CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/default-reporter",
3
- "version": "9.0.2",
3
+ "version": "9.0.3",
4
4
  "description": "The default reporter of pnpm",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -24,11 +24,11 @@
24
24
  "@pnpm/logger": "^4.0.0"
25
25
  },
26
26
  "dependencies": {
27
- "@pnpm/config": "15.1.0",
28
- "@pnpm/core-loggers": "7.0.0",
27
+ "@pnpm/config": "15.1.1",
28
+ "@pnpm/core-loggers": "7.0.1",
29
29
  "@pnpm/error": "3.0.1",
30
- "@pnpm/render-peer-issues": "2.0.0",
31
- "@pnpm/types": "8.0.0",
30
+ "@pnpm/render-peer-issues": "2.0.1",
31
+ "@pnpm/types": "8.0.1",
32
32
  "ansi-diff": "^1.1.1",
33
33
  "boxen": "^5.0.0",
34
34
  "chalk": "^4.1.0",
@@ -44,7 +44,7 @@
44
44
  "strip-ansi": "^6.0.0"
45
45
  },
46
46
  "devDependencies": {
47
- "@pnpm/default-reporter": "9.0.2",
47
+ "@pnpm/default-reporter": "9.0.3",
48
48
  "@pnpm/logger": "^4.0.0",
49
49
  "@types/normalize-path": "^3.0.0",
50
50
  "@types/ramda": "0.27.39",