Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuy Adorno <ruyadorno@hotmail.com>2020-05-17 08:30:11 +0300
committernlf <quitlahok@gmail.com>2021-01-28 23:50:12 +0300
commitd011266b733367aad283ccbfb9d2b19442c3405f (patch)
tree689c45b149cd77b4dab6d12b2c09bfa9c40d8aaa /tap-snapshots
parentbb7329def2631308a82144f050955de913a5c8e4 (diff)
feat: add npm diffruyadorno/npm-diff
- As proposed in RFC: https://github.com/npm/rfcs/pull/144 PR-URL: https://github.com/npm/cli/pull/1319 Credit: @ruyadorno Close: #1319 Reviewed-by: @isaacs
Diffstat (limited to 'tap-snapshots')
-rw-r--r--tap-snapshots/test-lib-utils-cmd-list.js-TAP.test.js1
-rw-r--r--tap-snapshots/test-lib-utils-config.js-TAP.test.js44
-rw-r--r--tap-snapshots/test-lib-utils-flat-options.js-TAP.test.js8
3 files changed, 53 insertions, 0 deletions
diff --git a/tap-snapshots/test-lib-utils-cmd-list.js-TAP.test.js b/tap-snapshots/test-lib-utils-cmd-list.js-TAP.test.js
index 68f0d8328..1c91975c7 100644
--- a/tap-snapshots/test-lib-utils-cmd-list.js-TAP.test.js
+++ b/tap-snapshots/test-lib-utils-cmd-list.js-TAP.test.js
@@ -155,6 +155,7 @@ Object {
"prefix",
"bin",
"whoami",
+ "diff",
"dist-tag",
"ping",
"test",
diff --git a/tap-snapshots/test-lib-utils-config.js-TAP.test.js b/tap-snapshots/test-lib-utils-config.js-TAP.test.js
index 1f525e71c..39927e600 100644
--- a/tap-snapshots/test-lib-utils-config.js-TAP.test.js
+++ b/tap-snapshots/test-lib-utils-config.js-TAP.test.js
@@ -37,6 +37,14 @@ Object {
"depth": null,
"description": true,
"dev": false,
+ "diff": Array [],
+ "diff-dst-prefix": "",
+ "diff-ignore-all-space": false,
+ "diff-name-only": false,
+ "diff-no-prefix": false,
+ "diff-src-prefix": "",
+ "diff-text": false,
+ "diff-unified": null,
"dry-run": false,
"editor": "vim",
"engine-strict": false,
@@ -346,6 +354,20 @@ Object {
],
"description": "{Boolean TYPE}",
"dev": "{Boolean TYPE}",
+ "diff": Array [
+ "{String TYPE}",
+ "{Array TYPE}",
+ ],
+ "diff-dst-prefix": "{String TYPE}",
+ "diff-ignore-all-space": "{Boolean TYPE}",
+ "diff-name-only": "{Boolean TYPE}",
+ "diff-no-prefix": "{Boolean TYPE}",
+ "diff-src-prefix": "{String TYPE}",
+ "diff-text": "{Boolean TYPE}",
+ "diff-unified": Array [
+ null,
+ "{Number TYPE}",
+ ],
"dry-run": "{Boolean TYPE}",
"editor": "{String TYPE}",
"engine-strict": "{Boolean TYPE}",
@@ -566,6 +588,14 @@ Object {
"depth": null,
"description": true,
"dev": false,
+ "diff": Array [],
+ "diff-dst-prefix": "",
+ "diff-ignore-all-space": false,
+ "diff-name-only": false,
+ "diff-no-prefix": false,
+ "diff-src-prefix": "",
+ "diff-text": false,
+ "diff-unified": null,
"dry-run": false,
"editor": "vim",
"engine-strict": false,
@@ -875,6 +905,20 @@ Object {
],
"description": "{Boolean TYPE}",
"dev": "{Boolean TYPE}",
+ "diff": Array [
+ "{String TYPE}",
+ "{Array TYPE}",
+ ],
+ "diff-dst-prefix": "{String TYPE}",
+ "diff-ignore-all-space": "{Boolean TYPE}",
+ "diff-name-only": "{Boolean TYPE}",
+ "diff-no-prefix": "{Boolean TYPE}",
+ "diff-src-prefix": "{String TYPE}",
+ "diff-text": "{Boolean TYPE}",
+ "diff-unified": Array [
+ null,
+ "{Number TYPE}",
+ ],
"dry-run": "{Boolean TYPE}",
"editor": "{String TYPE}",
"engine-strict": "{Boolean TYPE}",
diff --git a/tap-snapshots/test-lib-utils-flat-options.js-TAP.test.js b/tap-snapshots/test-lib-utils-flat-options.js-TAP.test.js
index 93606fcd8..47de89e97 100644
--- a/tap-snapshots/test-lib-utils-flat-options.js-TAP.test.js
+++ b/tap-snapshots/test-lib-utils-flat-options.js-TAP.test.js
@@ -30,6 +30,14 @@ Object {
"commitHooks": "commit-hooks",
"defaultTag": "tag",
"depth": "depth",
+ "diff": undefined,
+ "diffDstPrefix": undefined,
+ "diffIgnoreAllSpace": undefined,
+ "diffNameOnly": undefined,
+ "diffNoPrefix": undefined,
+ "diffSrcPrefix": undefined,
+ "diffText": undefined,
+ "diffUnified": undefined,
"dmode": 511,
"dryRun": "dry-run",
"editor": "editor",