@pnpm/default-reporter 8.5.4 → 8.5.8

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.
package/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  ## Installation
6
6
 
7
7
  ```
8
- <pnpm|npm|yarn> add @pnpm/default-reporter
8
+ pnpm add @pnpm/default-reporter
9
9
  ```
10
10
 
11
11
  ## Usage
@@ -28,9 +28,7 @@ const chalk_1 = __importDefault(require("chalk"));
28
28
  const formatWarn_1 = __importDefault(require("./utils/formatWarn"));
29
29
  const zooming_1 = require("./utils/zooming");
30
30
  exports.default = (deprecation$, opts) => {
31
- return deprecation$.pipe(
32
- // print warnings only about deprecated packages from the root
33
- (0, operators_1.filter)((log) => log.depth === 0), (0, operators_1.map)((log) => {
31
+ return deprecation$.pipe((0, operators_1.map)((log) => {
34
32
  if (!opts.isRecursive && log.prefix === opts.cwd) {
35
33
  return Rx.of({
36
34
  msg: (0, formatWarn_1.default)(`${chalk_1.default.red('deprecated')} ${log.pkgName}@${log.pkgVersion}: ${log.deprecated}`),
@@ -1 +1 @@
1
- {"version":3,"file":"reportDeprecations.js","sourceRoot":"","sources":["../../src/reporterForClient/reportDeprecations.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AACA,yCAA0B;AAC1B,8CAA4C;AAC5C,kDAAyB;AACzB,oEAA2C;AAC3C,6CAAyC;AAEzC,kBAAe,CACb,YAA2C,EAC3C,IAGC,EACD,EAAE;IACF,OAAO,YAAY,CAAC,IAAI;IACtB,8DAA8D;IAC9D,IAAA,kBAAM,EAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,CAAC,EAChC,IAAA,eAAG,EAAC,CAAC,GAAG,EAAE,EAAE;QACV,IAAI,CAAC,IAAI,CAAC,WAAW,IAAI,GAAG,CAAC,MAAM,KAAK,IAAI,CAAC,GAAG,EAAE;YAChD,OAAO,EAAE,CAAC,E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GAAG,CAAC,MAAM,EAAE,IAAA,oBAAU,EAAC,GAAG,eAAK,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC,OAAO,IAAI,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC;SAC9G,CAAC,CAAA;IACJ,CAAC,CAAC,CACH,CAAA;AACH,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pnpm/default-reporter",
3
- "version": "8.5.4",
3
+ "version": "8.5.8",
4
4
  "description": "The default reporter of pnpm",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -20,12 +20,15 @@
20
20
  "bugs": {
21
21
  "url": "https://github.com/pnpm/pnpm/issues"
22
22
  },
23
+ "peerDependencies": {
24
+ "@pnpm/logger": "^4.0.0"
25
+ },
23
26
  "dependencies": {
24
- "@pnpm/config": "13.8.0",
25
- "@pnpm/core-loggers": "6.1.2",
27
+ "@pnpm/config": "13.10.0",
28
+ "@pnpm/core-loggers": "6.1.3",
26
29
  "@pnpm/error": "2.0.0",
27
- "@pnpm/render-peer-issues": "1.1.0",
28
- "@pnpm/types": "7.8.0",
30
+ "@pnpm/render-peer-issues": "1.1.1",
31
+ "@pnpm/types": "7.9.0",
29
32
  "ansi-diff": "^1.1.1",
30
33
  "boxen": "^5.0.0",
31
34
  "chalk": "^4.1.0",
@@ -41,6 +44,7 @@
41
44
  "strip-ansi": "^6.0.0"
42
45
  },
43
46
  "devDependencies": {
47
+ "@pnpm/default-reporter": "8.5.8",
44
48
  "@pnpm/logger": "^4.0.0",
45
49
  "@types/normalize-path": "^3.0.0",
46
50
  "@types/ramda": "0.27.39",
@@ -52,7 +56,7 @@
52
56
  "homepage": "https://github.com/pnpm/pnpm/blob/master/packages/default-reporter#readme",
53
57
  "funding": "https://opencollective.com/pnpm",
54
58
  "scripts": {
55
- "start": "pnpm tsc --watch",
59
+ "start": "tsc --watch",
56
60
  "lint": "eslint src/**/*.ts test/**/*.ts",
57
61
  "pretty-test": "ts-node test | tap-diff",
58
62
  "just-test-preview": "ts-node test --type-check",
@@ -60,5 +64,5 @@
60
64
  "test": "pnpm run compile && pnpm run _test",
61
65
  "compile": "rimraf lib tsconfig.tsbuildinfo && tsc --build && pnpm run lint -- --fix"
62
66
  },
63
- "readme": "# @pnpm/default-reporter\n\n> The default reporter of pnpm\n\n## Installation\n\n```\n<pnpm|npm|yarn> add @pnpm/default-reporter\n```\n\n## Usage\n\n```ts\nimport { streamParser } from '@pnpm/logger'\nimport defaultReporter from '@pnpm/default-reporter'\n\nconst stopReporting = defaultReporter({\n context: {\n argv: [],\n },\n streamParser,\n})\n\ntry {\n // calling some pnpm APIs\n} finally {\n stopReporting()\n}\n```\n\n## Style Guide\n\n1. Never use blue or grey as font color as they are hard to read in many consoles.\n 1. Use dim instead of grey\n 1. Use cyan bright instead of blue\n1. Don't hide the CLI cursor. (It is easier to never hide but it is really needed only when scripts are running.)\n1. Don't use green and yellow to distinct something.\n\n## License\n\n[MIT](LICENSE)\n"
67
+ "readme": "# @pnpm/default-reporter\n\n> The default reporter of pnpm\n\n## Installation\n\n```\npnpm add @pnpm/default-reporter\n```\n\n## Usage\n\n```ts\nimport { streamParser } from '@pnpm/logger'\nimport defaultReporter from '@pnpm/default-reporter'\n\nconst stopReporting = defaultReporter({\n context: {\n argv: [],\n },\n streamParser,\n})\n\ntry {\n // calling some pnpm APIs\n} finally {\n stopReporting()\n}\n```\n\n## Style Guide\n\n1. Never use blue or grey as font color as they are hard to read in many consoles.\n 1. Use dim instead of grey\n 1. Use cyan bright instead of blue\n1. Don't hide the CLI cursor. (It is easier to never hide but it is really needed only when scripts are running.)\n1. Don't use green and yellow to distinct something.\n\n## License\n\n[MIT](LICENSE)\n"
64
68
  }