libnpmdiff 8.0.8 → 8.0.9
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 +27 -20
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -52,15 +52,11 @@ index v1.1.0..v1.1.1 100644
|
|
|
52
52
|
### Contributing
|
|
53
53
|
|
|
54
54
|
The npm team enthusiastically welcomes contributions and project participation!
|
|
55
|
-
There's a bunch of things you can do if you want to contribute!
|
|
56
|
-
[Contributor Guide](https://github.com/npm/cli/blob/latest/CONTRIBUTING.md)
|
|
57
|
-
|
|
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,23 +66,34 @@ 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`.
|
|
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?
|
|
78
|
-
|
|
79
|
-
- `
|
|
80
|
-
|
|
81
|
-
- `
|
|
82
|
-
|
|
83
|
-
- `
|
|
84
|
-
|
|
85
|
-
- `
|
|
86
|
-
|
|
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
|
-
Returns a `Promise` that
|
|
96
|
+
Returns a `Promise` that fulfills with a `String` containing the resulting patch diffs.
|
|
90
97
|
|
|
91
98
|
Throws an error if either `a` or `b` are missing or if trying to diff more than two specs.
|
|
92
99
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "libnpmdiff",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.9",
|
|
4
4
|
"description": "The registry diff",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"tap": "^16.3.8"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@npmcli/arborist": "^9.1.
|
|
50
|
+
"@npmcli/arborist": "^9.1.6",
|
|
51
51
|
"@npmcli/installed-package-contents": "^3.0.0",
|
|
52
52
|
"binary-extensions": "^3.0.0",
|
|
53
53
|
"diff": "^8.0.2",
|