npm CLI robot 25b22e4754
deps: upgrade npm to 11.0.0
PR-URL: https://github.com/nodejs/node/pull/56274
Reviewed-By: Jordan Harband <ljharb@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2025-01-10 16:20:27 +00:00

835 lines
19 KiB
JavaScript
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/* IMPORTANT
* This snapshot file is auto-generated, but designed for humans.
* It should be checked into source control and tracked carefully.
* Re-generate by setting TAP_SNAPSHOT=1 and running tests.
* Make sure to inspect the output below. Do not ignore changes!
*/
'use strict'
exports[`test/lib/commands/view.js TAP deprecated package with license, bugs, repository and other fields > must match snapshot 1`] = `
green@1.0.0 | ACME | deps: 2 | versions: 2
green is a very important color
DEPRECATED!! - true
keywords: colors, green, crayola
bin: green
dist
.tarball: http://hm.green.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1.0 GB
dependencies:
red: 1.0.0
yellow: 1.0.0
maintainers:
- claudia <c@yellow.com>
- isaacs <i@yellow.com>
dist-tags:
latest: 1.0.0
`
exports[`test/lib/commands/view.js TAP deprecated package with unicode > must match snapshot 1`] = `
green@1.0.0 | ACME | deps: 2 | versions: 2
green is a very important color
DEPRECATED ⚠️ - true
keywords: colors, green, crayola
bin: green
dist
.tarball: http://hm.green.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1.0 GB
dependencies:
red: 1.0.0
yellow: 1.0.0
maintainers:
- claudia <c@yellow.com>
- isaacs <i@yellow.com>
dist-tags:
latest: 1.0.0
`
exports[`test/lib/commands/view.js TAP package from git > must match snapshot 1`] = `
green@1.0.0 | ACME | deps: 2 | versions: 2
green is a very important color
DEPRECATED!! - true
keywords: colors, green, crayola
bin: green
dist
.tarball: http://hm.green.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1.0 GB
dependencies:
red: 1.0.0
yellow: 1.0.0
maintainers:
- claudia <c@yellow.com>
- isaacs <i@yellow.com>
dist-tags:
latest: 1.0.0
`
exports[`test/lib/commands/view.js TAP package in cwd directory > must match snapshot 1`] = `
blue@1.0.0 | Proprietary | deps: none | versions: 2
dist
.tarball: http://hm.blue.com/1.0.0.tgz
.shasum: 123
dist-tags:
latest: 1.0.0
z: 1.0.0
y: 1.0.0
v1: 1.0.0
prev: 1.0.0
d: 1.0.0
c: 1.0.0
b: 1.0.0
a: 1.0.0
x: 1.0.1
next: 1.0.1
h: 1.0.1
(...and 3 more.)
published {TIME} ago
`
exports[`test/lib/commands/view.js TAP package in cwd non-specific version > must match snapshot 1`] = `
blue@1.0.0 | Proprietary | deps: none | versions: 2
dist
.tarball: http://hm.blue.com/1.0.0.tgz
.shasum: 123
dist-tags:
latest: 1.0.0
z: 1.0.0
y: 1.0.0
v1: 1.0.0
prev: 1.0.0
d: 1.0.0
c: 1.0.0
b: 1.0.0
a: 1.0.0
x: 1.0.1
next: 1.0.1
h: 1.0.1
(...and 3 more.)
published {TIME} ago
`
exports[`test/lib/commands/view.js TAP package in cwd specific version > must match snapshot 1`] = `
blue@1.0.0 | Proprietary | deps: none | versions: 2
dist
.tarball: http://hm.blue.com/1.0.0.tgz
.shasum: 123
dist-tags:
latest: 1.0.0
z: 1.0.0
y: 1.0.0
v1: 1.0.0
prev: 1.0.0
d: 1.0.0
c: 1.0.0
b: 1.0.0
a: 1.0.0
x: 1.0.1
next: 1.0.1
h: 1.0.1
(...and 3 more.)
published {TIME} ago
`
exports[`test/lib/commands/view.js TAP package with --json and semver range > must match snapshot 1`] = `
[
{
"_npmUser": "claudia <claudia@cyan.com>",
"name": "cyan",
"dist-tags": {
"latest": "1.0.0"
},
"versions": [
"1.0.0",
"1.0.1"
],
"version": "1.0.0",
"dist": {
"shasum": "123",
"tarball": "http://hm.cyan.com/1.0.0.tgz",
"integrity": "---",
"fileCount": 1,
"unpackedSize": 1000000
}
},
{
"_npmUser": "claudia <claudia@cyan.com>",
"name": "cyan",
"dist-tags": {
"latest": "1.0.0"
},
"versions": [
"1.0.0",
"1.0.1"
]
}
]
`
exports[`test/lib/commands/view.js TAP package with homepage > must match snapshot 1`] = `
orange@1.0.0 | Proprietary | deps: none | versions: 2
http://hm.orange.com
dist
.tarball: http://hm.orange.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1 B
dist-tags:
latest: 1.0.0
`
exports[`test/lib/commands/view.js TAP package with invalid version > must match snapshot 1`] = `
[ '1.0.0', '1.0.1' ]
`
exports[`test/lib/commands/view.js TAP package with maintainers info as object > must match snapshot 1`] = `
pink@1.0.0 | Proprietary | deps: none | versions: 2
dist
.tarball: http://hm.pink.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1 B
dist-tags:
latest: 1.0.0
`
exports[`test/lib/commands/view.js TAP package with more than 25 deps > must match snapshot 1`] = `
black@1.0.0 | Proprietary | deps: 25 | versions: 2
dist
.tarball: http://hm.black.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1 B
dependencies:
0: 1.0.0
10: 1.0.0
11: 1.0.0
12: 1.0.0
13: 1.0.0
14: 1.0.0
15: 1.0.0
16: 1.0.0
17: 1.0.0
18: 1.0.0
19: 1.0.0
1: 1.0.0
20: 1.0.0
21: 1.0.0
22: 1.0.0
23: 1.0.0
2: 1.0.0
3: 1.0.0
4: 1.0.0
5: 1.0.0
6: 1.0.0
7: 1.0.0
8: 1.0.0
9: 1.0.0
(...and 1 more.)
dist-tags:
latest: 1.0.0
`
exports[`test/lib/commands/view.js TAP package with no modified time > must match snapshot 1`] = `
cyan@1.0.0 | Proprietary | deps: none | versions: 2
dist
.tarball: http://hm.cyan.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1.0 MB
dist-tags:
latest: 1.0.0
published by claudia <claudia@cyan.com>
`
exports[`test/lib/commands/view.js TAP package with no repo or homepage > must match snapshot 1`] = `
blue@1.0.0 | Proprietary | deps: none | versions: 2
dist
.tarball: http://hm.blue.com/1.0.0.tgz
.shasum: 123
dist-tags:
latest: 1.0.0
z: 1.0.0
y: 1.0.0
v1: 1.0.0
prev: 1.0.0
d: 1.0.0
c: 1.0.0
b: 1.0.0
a: 1.0.0
x: 1.0.1
next: 1.0.1
h: 1.0.1
(...and 3 more.)
published {TIME} ago
`
exports[`test/lib/commands/view.js TAP package with semver range > must match snapshot 1`] = `
blue@1.0.0 | Proprietary | deps: none | versions: 2
dist
.tarball: http://hm.blue.com/1.0.0.tgz
.shasum: 123
dist-tags:
latest: 1.0.0
z: 1.0.0
y: 1.0.0
v1: 1.0.0
prev: 1.0.0
d: 1.0.0
c: 1.0.0
b: 1.0.0
a: 1.0.0
x: 1.0.1
next: 1.0.1
h: 1.0.1
(...and 3 more.)
published {TIME} ago
blue@1.0.1 | Proprietary | deps: none | versions: 2
dist
.tarball: http://hm.blue.com/1.0.1.tgz
.shasum: 124
.integrity: ---
.unpackedSize: 1.0 kB
dist-tags:
latest: 1.0.0
z: 1.0.0
y: 1.0.0
v1: 1.0.0
prev: 1.0.0
d: 1.0.0
c: 1.0.0
b: 1.0.0
a: 1.0.0
x: 1.0.1
next: 1.0.1
h: 1.0.1
(...and 3 more.)
published {TIME} ago
`
exports[`test/lib/commands/view.js TAP package with single version full json > must match snapshot 1`] = `
{
"_id": "single-version",
"name": "single-version",
"dist-tags": {
"latest": "1.0.0"
},
"versions": [
"1.0.0"
],
"version": "1.0.0",
"dist": {
"shasum": "123",
"tarball": "http://hm.single-version.com/1.0.0.tgz",
"fileCount": 1
}
}
`
exports[`test/lib/commands/view.js TAP specific field names array field - 1 element > must match snapshot 1`] = `
claudia
`
exports[`test/lib/commands/view.js TAP specific field names array field - 2 elements > must match snapshot 1`] = `
maintainers[0].name = 'claudia'
maintainers[1].name = 'isaacs'
`
exports[`test/lib/commands/view.js TAP specific field names fields with empty values > must match snapshot 1`] = `
`
exports[`test/lib/commands/view.js TAP specific field names maintainers with email > must match snapshot 1`] = `
maintainers = [
{ name: 'claudia', email: 'c@yellow.com', twitter: 'cyellow' },
{ name: 'isaacs', email: 'i@yellow.com', twitter: 'iyellow' }
]
name = 'yellow'
`
exports[`test/lib/commands/view.js TAP specific field names maintainers with url > must match snapshot 1`] = `
[ 'claudia (http://c.pink.com)', 'isaacs (http://i.pink.com)' ]
`
exports[`test/lib/commands/view.js TAP specific field names nested field with brackets > must match snapshot 1`] = `
123
`
exports[`test/lib/commands/view.js TAP specific field names readme > must match snapshot 1`] = `
a very useful readme
`
exports[`test/lib/commands/view.js TAP specific field names several fields > must match snapshot 1`] = `
name = 'yellow'
version = '1.0.0'
`
exports[`test/lib/commands/view.js TAP specific field names several fields with several versions > must match snapshot 1`] = `
yellow@1.0.0 'claudia'
yellow@1.0.1 'claudia'
yellow@1.0.2 'claudia'
`
exports[`test/lib/commands/view.js TAP workspaces 404 workspaces basic > must match snapshot 1`] = `
green@1.0.0 | ACME | deps: 2 | versions: 2
green is a very important color
DEPRECATED!! - true
keywords: colors, green, crayola
bin: green
dist
.tarball: http://hm.green.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1.0 GB
dependencies:
red: 1.0.0
yellow: 1.0.0
maintainers:
- claudia <c@yellow.com>
- isaacs <i@yellow.com>
dist-tags:
latest: 1.0.0
error code E404
error 404 404
`
exports[`test/lib/commands/view.js TAP workspaces 404 workspaces json > must match snapshot 1`] = `
{
"green": {
"_id": "green",
"name": "green",
"dist-tags": {
"latest": "1.0.0"
},
"maintainers": [
{
"name": "claudia",
"email": "c@yellow.com",
"twitter": "cyellow"
},
{
"name": "isaacs",
"email": "i@yellow.com",
"twitter": "iyellow"
}
],
"keywords": [
"colors",
"green",
"crayola"
],
"versions": [
"1.0.0",
"1.0.1"
],
"version": "1.0.0",
"description": "green is a very important color",
"bugs": {
"url": "http://bugs.green.com"
},
"deprecated": true,
"repository": {
"url": "http://repository.green.com"
},
"license": {
"type": "ACME"
},
"bin": {
"green": "bin/green.js"
},
"dependencies": {
"red": "1.0.0",
"yellow": "1.0.0"
},
"dist": {
"shasum": "123",
"tarball": "http://hm.green.com/1.0.0.tgz",
"integrity": "---",
"fileCount": 1,
"unpackedSize": 1000000000
}
},
"error": {
"missing-package": {
"code": "E404",
"summary": "404",
"detail": ""
}
}
}
`
exports[`test/lib/commands/view.js TAP workspaces 404 workspaces json with package named error > must match snapshot 1`] = `
warn overwriting existing error on json output
{
"error": {
"missing-package": {
"code": "E404",
"summary": "404",
"detail": ""
}
}
}
`
exports[`test/lib/commands/view.js TAP workspaces 404 workspaces non-404 error rejects > must match snapshot 1`] = `
green@1.0.0 | ACME | deps: 2 | versions: 2
green is a very important color
DEPRECATED!! - true
keywords: colors, green, crayola
bin: green
dist
.tarball: http://hm.green.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1.0 GB
dependencies:
red: 1.0.0
yellow: 1.0.0
maintainers:
- claudia <c@yellow.com>
- isaacs <i@yellow.com>
dist-tags:
latest: 1.0.0
error Unknown error
`
exports[`test/lib/commands/view.js TAP workspaces 404 workspaces non-404 error rejects with single arg > must match snapshot 1`] = `
green:
1.0.0
unknown-error:
error Unknown error
`
exports[`test/lib/commands/view.js TAP workspaces all workspaces --json > must match snapshot 1`] = `
{
"green": {
"_id": "green",
"name": "green",
"dist-tags": {
"latest": "1.0.0"
},
"maintainers": [
{
"name": "claudia",
"email": "c@yellow.com",
"twitter": "cyellow"
},
{
"name": "isaacs",
"email": "i@yellow.com",
"twitter": "iyellow"
}
],
"keywords": [
"colors",
"green",
"crayola"
],
"versions": [
"1.0.0",
"1.0.1"
],
"version": "1.0.0",
"description": "green is a very important color",
"bugs": {
"url": "http://bugs.green.com"
},
"deprecated": true,
"repository": {
"url": "http://repository.green.com"
},
"license": {
"type": "ACME"
},
"bin": {
"green": "bin/green.js"
},
"dependencies": {
"red": "1.0.0",
"yellow": "1.0.0"
},
"dist": {
"shasum": "123",
"tarball": "http://hm.green.com/1.0.0.tgz",
"integrity": "---",
"fileCount": 1,
"unpackedSize": 1000000000
}
},
"orange": {
"name": "orange",
"dist-tags": {
"latest": "1.0.0"
},
"versions": [
"1.0.0",
"1.0.1"
],
"version": "1.0.0",
"homepage": "http://hm.orange.com",
"license": {},
"dist": {
"shasum": "123",
"tarball": "http://hm.orange.com/1.0.0.tgz",
"integrity": "---",
"fileCount": 1,
"unpackedSize": 1
}
}
}
`
exports[`test/lib/commands/view.js TAP workspaces all workspaces > must match snapshot 1`] = `
green@1.0.0 | ACME | deps: 2 | versions: 2
green is a very important color
DEPRECATED!! - true
keywords: colors, green, crayola
bin: green
dist
.tarball: http://hm.green.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1.0 GB
dependencies:
red: 1.0.0
yellow: 1.0.0
maintainers:
- claudia <c@yellow.com>
- isaacs <i@yellow.com>
dist-tags:
latest: 1.0.0
orange@1.0.0 | Proprietary | deps: none | versions: 2
http://hm.orange.com
dist
.tarball: http://hm.orange.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1 B
dist-tags:
latest: 1.0.0
`
exports[`test/lib/commands/view.js TAP workspaces all workspaces nonexistent field --json > must match snapshot 1`] = `
`
exports[`test/lib/commands/view.js TAP workspaces all workspaces nonexistent field > must match snapshot 1`] = `
green:
orange:
`
exports[`test/lib/commands/view.js TAP workspaces all workspaces single field --json > must match snapshot 1`] = `
{
"green": "green",
"orange": "orange"
}
`
exports[`test/lib/commands/view.js TAP workspaces all workspaces single field > must match snapshot 1`] = `
green:
green
orange:
orange
`
exports[`test/lib/commands/view.js TAP workspaces one specific workspace > must match snapshot 1`] = `
green@1.0.0 | ACME | deps: 2 | versions: 2
green is a very important color
DEPRECATED!! - true
keywords: colors, green, crayola
bin: green
dist
.tarball: http://hm.green.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1.0 GB
dependencies:
red: 1.0.0
yellow: 1.0.0
maintainers:
- claudia <c@yellow.com>
- isaacs <i@yellow.com>
dist-tags:
latest: 1.0.0
`
exports[`test/lib/commands/view.js TAP workspaces remote package name > must match snapshot 1`] = `
pink@1.0.0 | Proprietary | deps: none | versions: 2
dist
.tarball: http://hm.pink.com/1.0.0.tgz
.shasum: 123
.integrity: ---
.unpackedSize: 1 B
dist-tags:
latest: 1.0.0
`
exports[`test/lib/commands/view.js TAP workspaces remote package name > should have warning of ignoring workspaces 1`] = `
Array [
"\\u001b[94mIgnoring workspaces for specified package(s)\\u001b[39m",
]
`
exports[`test/lib/commands/view.js TAP workspaces single workspace --json > must match snapshot 1`] = `
{
"green": {
"_id": "green",
"name": "green",
"dist-tags": {
"latest": "1.0.0"
},
"maintainers": [
{
"name": "claudia",
"email": "c@yellow.com",
"twitter": "cyellow"
},
{
"name": "isaacs",
"email": "i@yellow.com",
"twitter": "iyellow"
}
],
"keywords": [
"colors",
"green",
"crayola"
],
"versions": [
"1.0.0",
"1.0.1"
],
"version": "1.0.0",
"description": "green is a very important color",
"bugs": {
"url": "http://bugs.green.com"
},
"deprecated": true,
"repository": {
"url": "http://repository.green.com"
},
"license": {
"type": "ACME"
},
"bin": {
"green": "bin/green.js"
},
"dependencies": {
"red": "1.0.0",
"yellow": "1.0.0"
},
"dist": {
"shasum": "123",
"tarball": "http://hm.green.com/1.0.0.tgz",
"integrity": "---",
"fileCount": 1,
"unpackedSize": 1000000000
}
}
}
`