You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workspaces/libnpmdiff/CHANGELOG.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -409,7 +409,8 @@
409
409
410
410
### ⚠️ BREAKING CHANGES
411
411
412
-
*`npm pack` now follows a strict order of operations when applying ignore rules. If a files array is present in the package.json, then rules in .gitignore and .npmignore files from the root will be ignored.
412
+
*`npm pack` now follows a strict order of operations when applying ignore rules.
413
+
If a files array is present in the package.json, then rules in .gitignore and .npmignore files from the root will be ignored.
outlines the process for community interaction and contribution. Please don't
58
-
hesitate to jump in if you'd like to, or even ask us questions if something
59
-
isn't clear.
55
+
There's a bunch of things you can do if you want to contribute!
56
+
The [Contributor Guide](https://github.com/npm/cli/blob/latest/CONTRIBUTING.md) outlines the process for community interaction and contribution.
57
+
Please don't hesitate to jump in if you'd like to, or even ask us questions if something isn't clear.
60
58
61
-
All participants and maintainers in this project are expected to follow the
62
-
[npm Code of Conduct](https://docs.npmjs.com/policies/conduct), and just
63
-
generally be excellent to each other.
59
+
All participants and maintainers in this project are expected to follow the [npm Code of Conduct](https://docs.npmjs.com/policies/conduct), and just generally be excellent to each other.
64
60
65
61
Please refer to the [Changelog](CHANGELOG.md) for project history details, too.
66
62
@@ -70,20 +66,31 @@ Happy hacking!
70
66
71
67
#### `> libnpmdif([ a, b ], [opts]) -> Promise<String>`
72
68
73
-
Fetches the registry tarballs and compare files between a spec `a` and spec `b`. **npm** spec types are usually described in `<pkg-name>@<version>` form but multiple other types are also supported, for more info on valid specs take a look at [`npm-package-arg`](https://github.com/npm/npm-package-arg).
69
+
Fetches the registry tarballs and compare files between a spec `a` and spec `b`.
70
+
**npm** spec types are usually described in `<pkg-name>@<version>` form but multiple other types are also supported, for more info on valid specs take a look at [`npm-package-arg`](https://github.com/npm/npm-package-arg).
74
71
75
72
**Options**:
76
73
77
-
-`color <Boolean>`: Should add ANSI colors to string output? Defaults to `false`.
78
-
-`tagVersionPrefix <String>`: What prefix should be used to define version numbers. Defaults to `v`
79
-
-`diffUnified <Number>`: How many lines of code to print before/after each diff. Defaults to `3`.
80
-
-`diffFiles <Array<String>>`: If set only prints patches for the files listed in this array (also accepts globs). Defaults to `undefined`.
81
-
-`diffIgnoreAllSpace <Boolean>`: Whether or not should ignore changes in whitespace (very useful to avoid indentation changes extra diff lines). Defaults to `false`.
82
-
-`diffNameOnly <Boolean>`: Prints only file names and no patch diffs. Defaults to `false`.
83
-
-`diffNoPrefix <Boolean>`: If true then skips printing any prefixes in filenames. Defaults to `false`.
84
-
-`diffSrcPrefix <String>`: Prefix to be used in the filenames from `a`. Defaults to `a/`.
85
-
-`diffDstPrefix <String>`: Prefix to be used in the filenames from `b`. Defaults to `b/`.
86
-
-`diffText <Boolean>`: Should treat all files as text and try to print diff for binary files. Defaults to `false`.
74
+
-`color <Boolean>`: Should add ANSI colors to string output?
75
+
Defaults to `false`.
76
+
-`tagVersionPrefix <String>`: What prefix should be used to define version numbers.
77
+
Defaults to `v`
78
+
-`diffUnified <Number>`: How many lines of code to print before/after each diff.
79
+
Defaults to `3`.
80
+
-`diffFiles <Array<String>>`: If set only prints patches for the files listed in this array (also accepts globs).
81
+
Defaults to `undefined`.
82
+
-`diffIgnoreAllSpace <Boolean>`: Whether or not should ignore changes in whitespace (very useful to avoid indentation changes extra diff lines).
83
+
Defaults to `false`.
84
+
-`diffNameOnly <Boolean>`: Prints only file names and no patch diffs.
85
+
Defaults to `false`.
86
+
-`diffNoPrefix <Boolean>`: If true then skips printing any prefixes in filenames.
87
+
Defaults to `false`.
88
+
-`diffSrcPrefix <String>`: Prefix to be used in the filenames from `a`.
89
+
Defaults to `a/`.
90
+
-`diffDstPrefix <String>`: Prefix to be used in the filenames from `b`.
91
+
Defaults to `b/`.
92
+
-`diffText <Boolean>`: Should treat all files as text and try to print diff for binary files.
93
+
Defaults to `false`.
87
94
- ...`cache`, `registry`, `where` and other common options accepted by [pacote](https://github.com/npm/pacote#options)
88
95
89
96
Returns a `Promise` that fulfills with a `String` containing the resulting patch diffs.
0 commit comments