libnpmdiff 2.0.2 → 2.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.3
4
+
5
+ - fix name of options sent by the npm cli
6
+
7
+ ## 2.0.2
8
+
9
+ - fix matching basename file filter
10
+
3
11
  ## 2.0.1
4
12
 
5
13
  - fix for tarballs not listing folder names
package/README.md CHANGED
@@ -78,9 +78,9 @@ Fetches the registry tarballs and compare files between a spec `a` and spec `b`.
78
78
 
79
79
  - `color <Boolean>`: Should add ANSI colors to string output? Defaults to `false`.
80
80
  - `tagVersionPrefix <Sring>`: What prefix should be used to define version numbers. Defaults to `v`
81
- - `diffContext <Number>`: How many lines of code to print before/after each diff. Defaults to `3`.
81
+ - `diffUnified <Number>`: How many lines of code to print before/after each diff. Defaults to `3`.
82
82
  - `diffFiles <Array<String>>`: If set only prints patches for the files listed in this array (also accepts globs). Defaults to `undefined`.
83
- - `diffIgnoreWhitespace <Boolean>`: Whether or not should ignore changes in whitespace (very useful to avoid indentation changes extra diff lines). Defaults to `false`.
83
+ - `diffIgnoreAllSpace <Boolean>`: Whether or not should ignore changes in whitespace (very useful to avoid indentation changes extra diff lines). Defaults to `false`.
84
84
  - `diffNameOnly <Boolean>`: Prints only file names and no patch diffs. Defaults to `false`.
85
85
  - `diffNoPrefix <Boolean>`: If true then skips printing any prefixes in filenames. Defaults to `false`.
86
86
  - `diffSrcPrefix <String>`: Prefix to be used in the filenames from `a`. Defaults to `a/`.
@@ -70,8 +70,8 @@ const formatDiff = ({ files, opts = {}, refs, versions }) => {
70
70
  '',
71
71
  '',
72
72
  {
73
- context: opts.diffContext === 0 ? 0 : opts.diffContext || 3,
74
- ignoreWhitespace: opts.diffIgnoreWhitespace,
73
+ context: opts.diffUnified === 0 ? 0 : opts.diffUnified || 3,
74
+ ignoreWhitespace: opts.diffIgnoreAllSpace,
75
75
  }
76
76
  ).replace(
77
77
  '===================================================================\n',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libnpmdiff",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "The registry diff",
5
5
  "repository": "https://github.com/npm/libnpmdiff",
6
6
  "files": [