diff options
author | Ruy Adorno <ruyadorno@hotmail.com> | 2020-11-10 23:27:59 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-11-13 22:22:56 +0300 |
commit | 2a80c67ef8c12c3d9d254f5be6293a6461067d99 (patch) | |
tree | 8fa29e311d962e48b3701eb810bd9fc5c7b37766 /tap-snapshots | |
parent | 786e36404068fd51657ddac766e066a98754edbf (diff) |
fix: legacy auth tokens
Add legacy `_auth` token to flatOptions in order to support it when
reaching out to registries.
Fixes: #2008
Credit: @ruyadorno
Close: #2153
Reviewed-by: @isaacs
Diffstat (limited to 'tap-snapshots')
-rw-r--r-- | tap-snapshots/test-lib-utils-config.js-TAP.test.js | 15 | ||||
-rw-r--r-- | tap-snapshots/test-lib-utils-flat-options.js-TAP.test.js | 1 |
2 files changed, 16 insertions, 0 deletions
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 5190a5604..3bdf905d8 100644 --- a/tap-snapshots/test-lib-utils-config.js-TAP.test.js +++ b/tap-snapshots/test-lib-utils-config.js-TAP.test.js @@ -8,6 +8,7 @@ exports[`test/lib/utils/config.js TAP no process.umask() method > must match snapshot 1`] = ` Object { "defaults": Object { + "_auth": null, "access": null, "all": false, "allow-same-version": false, @@ -267,6 +268,10 @@ Object { ], }, "types": Object { + "_auth": Array [ + null, + "{String TYPE}", + ], "access": Array [ null, "restricted", @@ -537,6 +542,7 @@ Object { exports[`test/lib/utils/config.js TAP no working network interfaces, on windows > must match snapshot 1`] = ` Object { "defaults": Object { + "_auth": null, "access": null, "all": false, "allow-same-version": false, @@ -796,6 +802,10 @@ Object { ], }, "types": Object { + "_auth": Array [ + null, + "{String TYPE}", + ], "access": Array [ null, "restricted", @@ -1066,6 +1076,7 @@ Object { exports[`test/lib/utils/config.js TAP working network interfaces, not windows > must match snapshot 1`] = ` Object { "defaults": Object { + "_auth": null, "access": null, "all": false, "allow-same-version": false, @@ -1325,6 +1336,10 @@ Object { ], }, "types": Object { + "_auth": Array [ + null, + "{String TYPE}", + ], "access": Array [ null, "restricted", 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 0e6c053b2..6890338a1 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 @@ -7,6 +7,7 @@ 'use strict' exports[`test/lib/utils/flat-options.js TAP basic > flat options 1`] = ` Object { + "_auth": undefined, "@scope:registry": "@scope:registry", "//nerf.dart:_authToken": "//nerf.dart:_authToken", "access": "access", |