| 1 |
/* IMPORTANT |
| 2 |
* This snapshot file is auto-generated, but designed for humans. |
| 3 |
* It should be checked into source control and tracked carefully. |
| 4 |
* Re-generate by setting TAP_SNAPSHOT=1 and running tests. |
| 5 |
* Make sure to inspect the output below. Do not ignore changes! |
| 6 |
*/ |
| 7 |
'use strict' |
| 8 |
exports[`test/lib/commands/view.js TAP allow-git=root, package with multiple dist‑tags and no time > must match snapshot 1`] = ` |
| 9 |
|
| 10 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m1[39m |
| 11 |
|
| 12 |
dist |
| 13 |
.tarball: [34mhttp://gray/1.1.0.tgz[39m |
| 14 |
.shasum: [32mb[39m |
| 15 |
|
| 16 |
dist-tags: |
| 17 |
[34mlatest[39m: 1.1.0 |
| 18 |
[34mstable[39m: 1.1.0 |
| 19 |
[34mold[39m: 1.0.0 |
| 20 |
[34mbeta[39m: 1.2.0-beta |
| 21 |
[34malpha[39m: 1.2.0-alpha |
| 22 |
` |
| 23 |
|
| 24 |
exports[`test/lib/commands/view.js TAP deprecated package with license, bugs, repository and other fields > must match snapshot 1`] = ` |
| 25 |
|
| 26 |
[4m[[email protected][39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m |
| 27 |
green is a very important color |
| 28 |
|
| 29 |
[91mDEPRECATED[39m!! - true |
| 30 |
|
| 31 |
keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m |
| 32 |
|
| 33 |
bin: [36mgreen[39m |
| 34 |
|
| 35 |
dist |
| 36 |
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m |
| 37 |
.shasum: [32m123[39m |
| 38 |
.integrity: [32m---[39m |
| 39 |
.unpackedSize: [34m1.0 GB[39m |
| 40 |
|
| 41 |
dependencies: |
| 42 |
[34mred[39m: 1.0.0, [34myellow[39m: 1.0.0 |
| 43 |
|
| 44 |
maintainers: |
| 45 |
- [34mclaudia[39m <[[email protected][22m> |
| 46 |
- [34misaacs[39m <[[email protected][22m> |
| 47 |
|
| 48 |
dist-tags: |
| 49 |
[34mlatest[39m: 1.0.0 |
| 50 |
` |
| 51 |
|
| 52 |
exports[`test/lib/commands/view.js TAP deprecated package with unicode > must match snapshot 1`] = ` |
| 53 |
|
| 54 |
[4m[[email protected][39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m |
| 55 |
green is a very important color |
| 56 |
|
| 57 |
[91mDEPRECATED[39m ⚠️ - true |
| 58 |
|
| 59 |
keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m |
| 60 |
|
| 61 |
bin: [36mgreen[39m |
| 62 |
|
| 63 |
dist |
| 64 |
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m |
| 65 |
.shasum: [32m123[39m |
| 66 |
.integrity: [32m---[39m |
| 67 |
.unpackedSize: [34m1.0 GB[39m |
| 68 |
|
| 69 |
dependencies: |
| 70 |
[34mred[39m: 1.0.0, [34myellow[39m: 1.0.0 |
| 71 |
|
| 72 |
maintainers: |
| 73 |
- [34mclaudia[39m <[[email protected][22m> |
| 74 |
- [34misaacs[39m <[[email protected][22m> |
| 75 |
|
| 76 |
dist-tags: |
| 77 |
[34mlatest[39m: 1.0.0 |
| 78 |
` |
| 79 |
|
| 80 |
exports[`test/lib/commands/view.js TAP package from git > must match snapshot 1`] = ` |
| 81 |
|
| 82 |
[4m[[email protected][39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m |
| 83 |
green is a very important color |
| 84 |
|
| 85 |
[91mDEPRECATED[39m!! - true |
| 86 |
|
| 87 |
keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m |
| 88 |
|
| 89 |
bin: [36mgreen[39m |
| 90 |
|
| 91 |
dist |
| 92 |
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m |
| 93 |
.shasum: [32m123[39m |
| 94 |
.integrity: [32m---[39m |
| 95 |
.unpackedSize: [34m1.0 GB[39m |
| 96 |
|
| 97 |
dependencies: |
| 98 |
[34mred[39m: 1.0.0, [34myellow[39m: 1.0.0 |
| 99 |
|
| 100 |
maintainers: |
| 101 |
- [34mclaudia[39m <[[email protected][22m> |
| 102 |
- [34misaacs[39m <[[email protected][22m> |
| 103 |
|
| 104 |
dist-tags: |
| 105 |
[34mlatest[39m: 1.0.0 |
| 106 |
` |
| 107 |
|
| 108 |
exports[`test/lib/commands/view.js TAP package in cwd directory > must match snapshot 1`] = ` |
| 109 |
|
| 110 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m |
| 111 |
|
| 112 |
dist |
| 113 |
.tarball: [34mhttp://hm.blue.com/1.0.0.tgz[39m |
| 114 |
.shasum: [32m123[39m |
| 115 |
|
| 116 |
dist-tags: |
| 117 |
[34mlatest[39m: 1.0.0 |
| 118 |
[34mz[39m: 1.0.0 |
| 119 |
[34my[39m: 1.0.0 |
| 120 |
[34mv1[39m: 1.0.0 |
| 121 |
[34mprev[39m: 1.0.0 |
| 122 |
[2m(...and 10 more.)[22m |
| 123 |
|
| 124 |
published {TIME} ago[39m |
| 125 |
` |
| 126 |
|
| 127 |
exports[`test/lib/commands/view.js TAP package in cwd non-specific version > must match snapshot 1`] = ` |
| 128 |
|
| 129 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m |
| 130 |
|
| 131 |
dist |
| 132 |
.tarball: [34mhttp://hm.blue.com/1.0.0.tgz[39m |
| 133 |
.shasum: [32m123[39m |
| 134 |
|
| 135 |
dist-tags: |
| 136 |
[34mlatest[39m: 1.0.0 |
| 137 |
[34mz[39m: 1.0.0 |
| 138 |
[34my[39m: 1.0.0 |
| 139 |
[34mv1[39m: 1.0.0 |
| 140 |
[34mprev[39m: 1.0.0 |
| 141 |
[2m(...and 10 more.)[22m |
| 142 |
|
| 143 |
published {TIME} ago[39m |
| 144 |
` |
| 145 |
|
| 146 |
exports[`test/lib/commands/view.js TAP package in cwd specific version > must match snapshot 1`] = ` |
| 147 |
|
| 148 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m |
| 149 |
|
| 150 |
dist |
| 151 |
.tarball: [34mhttp://hm.blue.com/1.0.0.tgz[39m |
| 152 |
.shasum: [32m123[39m |
| 153 |
|
| 154 |
dist-tags: |
| 155 |
[34mlatest[39m: 1.0.0 |
| 156 |
[34mz[39m: 1.0.0 |
| 157 |
[34my[39m: 1.0.0 |
| 158 |
[34mv1[39m: 1.0.0 |
| 159 |
[34mprev[39m: 1.0.0 |
| 160 |
[2m(...and 10 more.)[22m |
| 161 |
|
| 162 |
published {TIME} ago[39m |
| 163 |
` |
| 164 |
|
| 165 |
exports[`test/lib/commands/view.js TAP package with --json and semver range > must match snapshot 1`] = ` |
| 166 |
[ |
| 167 |
{ |
| 168 |
"_npmUser": "claudia <[email protected]>", |
| 169 |
"name": "cyan", |
| 170 |
"dist-tags": { |
| 171 |
"latest": "1.0.0" |
| 172 |
}, |
| 173 |
"versions": [ |
| 174 |
"1.0.0", |
| 175 |
"1.0.1" |
| 176 |
], |
| 177 |
"version": "1.0.0", |
| 178 |
"dist": { |
| 179 |
"shasum": "123", |
| 180 |
"tarball": "http://hm.cyan.com/1.0.0.tgz", |
| 181 |
"integrity": "---", |
| 182 |
"fileCount": 1, |
| 183 |
"unpackedSize": 1000000 |
| 184 |
} |
| 185 |
}, |
| 186 |
{ |
| 187 |
"_npmUser": "claudia <[email protected]>", |
| 188 |
"name": "cyan", |
| 189 |
"dist-tags": { |
| 190 |
"latest": "1.0.0" |
| 191 |
}, |
| 192 |
"versions": [ |
| 193 |
"1.0.0", |
| 194 |
"1.0.1" |
| 195 |
] |
| 196 |
} |
| 197 |
] |
| 198 |
` |
| 199 |
|
| 200 |
exports[`test/lib/commands/view.js TAP package with homepage > must match snapshot 1`] = ` |
| 201 |
|
| 202 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m |
| 203 |
[34mhttp://hm.orange.com[39m |
| 204 |
|
| 205 |
dist |
| 206 |
.tarball: [34mhttp://hm.orange.com/1.0.0.tgz[39m |
| 207 |
.shasum: [32m123[39m |
| 208 |
.integrity: [32m---[39m |
| 209 |
.unpackedSize: [34m1 B[39m |
| 210 |
|
| 211 |
dist-tags: |
| 212 |
[34mlatest[39m: 1.0.0 |
| 213 |
` |
| 214 |
|
| 215 |
exports[`test/lib/commands/view.js TAP package with invalid version > must match snapshot 1`] = ` |
| 216 |
[ [32m'1.0.0'[39m, [32m'1.0.1'[39m ] |
| 217 |
` |
| 218 |
|
| 219 |
exports[`test/lib/commands/view.js TAP package with maintainers info as object > must match snapshot 1`] = ` |
| 220 |
|
| 221 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m |
| 222 |
|
| 223 |
dist |
| 224 |
.tarball: [34mhttp://hm.pink.com/1.0.0.tgz[39m |
| 225 |
.shasum: [32m123[39m |
| 226 |
.integrity: [32m---[39m |
| 227 |
.unpackedSize: [34m1 B[39m |
| 228 |
|
| 229 |
dist-tags: |
| 230 |
[34mlatest[39m: 1.0.0 |
| 231 |
` |
| 232 |
|
| 233 |
exports[`test/lib/commands/view.js TAP package with more than 25 deps > must match snapshot 1`] = ` |
| 234 |
|
| 235 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36m25[39m | versions: [36m2[39m |
| 236 |
|
| 237 |
dist |
| 238 |
.tarball: [34mhttp://hm.black.com/1.0.0.tgz[39m |
| 239 |
.shasum: [32m123[39m |
| 240 |
.integrity: [32m---[39m |
| 241 |
.unpackedSize: [34m1 B[39m |
| 242 |
|
| 243 |
dependencies: |
| 244 |
[34m0[39m: 1.0.0, [34m1[39m: 1.0.0, [34m2[39m: 1.0.0, [34m3[39m: 1.0.0, [34m4[39m: 1.0.0, [34m5[39m: 1.0.0, [34m6[39m: 1.0.0, [34m7[39m: 1.0.0, [34m8[39m: 1.0.0, [34m9[39m: 1.0.0, [34m10[39m: 1.0.0, [34m11[39m: 1.0.0, [34m12[39m: 1.0.0, [34m13[39m: 1.0.0, [34m14[39m: 1.0.0, [34m15[39m: 1.0.0, [34m16[39m: 1.0.0, [34m17[39m: 1.0.0, [34m18[39m: 1.0.0, [34m19[39m: 1.0.0, [34m20[39m: 1.0.0, [34m21[39m: 1.0.0, [34m22[39m: 1.0.0, [34m23[39m: 1.0.0 |
| 245 |
[2m(...and 1 more.)[22m |
| 246 |
|
| 247 |
dist-tags: |
| 248 |
[34mlatest[39m: 1.0.0 |
| 249 |
` |
| 250 |
|
| 251 |
exports[`test/lib/commands/view.js TAP package with no modified time > must match snapshot 1`] = ` |
| 252 |
|
| 253 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m |
| 254 |
|
| 255 |
dist |
| 256 |
.tarball: [34mhttp://hm.cyan.com/1.0.0.tgz[39m |
| 257 |
.shasum: [32m123[39m |
| 258 |
.integrity: [32m---[39m |
| 259 |
.unpackedSize: [34m1.0 MB[39m |
| 260 |
|
| 261 |
dist-tags: |
| 262 |
[34mlatest[39m: 1.0.0 |
| 263 |
|
| 264 |
published by [34mclaudia[39m <[[email protected][22m> |
| 265 |
` |
| 266 |
|
| 267 |
exports[`test/lib/commands/view.js TAP package with no repo or homepage > must match snapshot 1`] = ` |
| 268 |
|
| 269 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m |
| 270 |
|
| 271 |
dist |
| 272 |
.tarball: [34mhttp://hm.blue.com/1.0.0.tgz[39m |
| 273 |
.shasum: [32m123[39m |
| 274 |
|
| 275 |
dist-tags: |
| 276 |
[34mlatest[39m: 1.0.0 |
| 277 |
[34mz[39m: 1.0.0 |
| 278 |
[34my[39m: 1.0.0 |
| 279 |
[34mv1[39m: 1.0.0 |
| 280 |
[34mprev[39m: 1.0.0 |
| 281 |
[2m(...and 10 more.)[22m |
| 282 |
|
| 283 |
published {TIME} ago[39m |
| 284 |
` |
| 285 |
|
| 286 |
exports[`test/lib/commands/view.js TAP package with semver range > must match snapshot 1`] = ` |
| 287 |
|
| 288 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m |
| 289 |
|
| 290 |
dist |
| 291 |
.tarball: [34mhttp://hm.blue.com/1.0.0.tgz[39m |
| 292 |
.shasum: [32m123[39m |
| 293 |
|
| 294 |
dist-tags: |
| 295 |
[34mlatest[39m: 1.0.0 |
| 296 |
[34mz[39m: 1.0.0 |
| 297 |
[34my[39m: 1.0.0 |
| 298 |
[34mv1[39m: 1.0.0 |
| 299 |
[34mprev[39m: 1.0.0 |
| 300 |
[2m(...and 10 more.)[22m |
| 301 |
|
| 302 |
published {TIME} ago[39m |
| 303 |
|
| 304 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m |
| 305 |
|
| 306 |
dist |
| 307 |
.tarball: [34mhttp://hm.blue.com/1.0.1.tgz[39m |
| 308 |
.shasum: [32m124[39m |
| 309 |
.integrity: [32m---[39m |
| 310 |
.unpackedSize: [34m1.0 kB[39m |
| 311 |
|
| 312 |
dist-tags: |
| 313 |
[34mlatest[39m: 1.0.0 |
| 314 |
[34mz[39m: 1.0.0 |
| 315 |
[34my[39m: 1.0.0 |
| 316 |
[34mv1[39m: 1.0.0 |
| 317 |
[34mprev[39m: 1.0.0 |
| 318 |
[2m(...and 10 more.)[22m |
| 319 |
|
| 320 |
published {TIME} ago[39m |
| 321 |
` |
| 322 |
|
| 323 |
exports[`test/lib/commands/view.js TAP package with single version full json > must match snapshot 1`] = ` |
| 324 |
{ |
| 325 |
"_id": "single-version", |
| 326 |
"name": "single-version", |
| 327 |
"dist-tags": { |
| 328 |
"latest": "1.0.0" |
| 329 |
}, |
| 330 |
"versions": [ |
| 331 |
"1.0.0" |
| 332 |
], |
| 333 |
"version": "1.0.0", |
| 334 |
"dist": { |
| 335 |
"shasum": "123", |
| 336 |
"tarball": "http://hm.single-version.com/1.0.0.tgz", |
| 337 |
"fileCount": 1 |
| 338 |
} |
| 339 |
} |
| 340 |
` |
| 341 |
|
| 342 |
exports[`test/lib/commands/view.js TAP specific field names array field - 1 element > must match snapshot 1`] = ` |
| 343 |
claudia |
| 344 |
` |
| 345 |
|
| 346 |
exports[`test/lib/commands/view.js TAP specific field names array field - 2 elements > must match snapshot 1`] = ` |
| 347 |
maintainers[0].name = 'claudia' |
| 348 |
maintainers[1].name = 'isaacs' |
| 349 |
` |
| 350 |
|
| 351 |
exports[`test/lib/commands/view.js TAP specific field names fields with empty values > must match snapshot 1`] = ` |
| 352 |
|
| 353 |
` |
| 354 |
|
| 355 |
exports[`test/lib/commands/view.js TAP specific field names maintainers with email > must match snapshot 1`] = ` |
| 356 |
maintainers = [ |
| 357 |
{ name: 'claudia', email: '[email protected]', twitter: 'cyellow' }, |
| 358 |
{ name: 'isaacs', email: '[email protected]', twitter: 'iyellow' } |
| 359 |
] |
| 360 |
name = 'yellow' |
| 361 |
` |
| 362 |
|
| 363 |
exports[`test/lib/commands/view.js TAP specific field names maintainers with url > must match snapshot 1`] = ` |
| 364 |
[ 'claudia (http://c.pink.com)', 'isaacs (http://i.pink.com)' ] |
| 365 |
` |
| 366 |
|
| 367 |
exports[`test/lib/commands/view.js TAP specific field names nested field with brackets > must match snapshot 1`] = ` |
| 368 |
123 |
| 369 |
` |
| 370 |
|
| 371 |
exports[`test/lib/commands/view.js TAP specific field names readme > must match snapshot 1`] = ` |
| 372 |
a very useful readme |
| 373 |
` |
| 374 |
|
| 375 |
exports[`test/lib/commands/view.js TAP specific field names several fields > must match snapshot 1`] = ` |
| 376 |
name = 'yellow' |
| 377 |
version = '1.0.0' |
| 378 |
` |
| 379 |
|
| 380 |
exports[`test/lib/commands/view.js TAP specific field names several fields with several versions > must match snapshot 1`] = ` |
| 381 |
[email protected] 'claudia' |
| 382 |
[email protected] 'claudia' |
| 383 |
[email protected] 'claudia' |
| 384 |
` |
| 385 |
|
| 386 |
exports[`test/lib/commands/view.js TAP workspaces 404 workspaces basic > must match snapshot 1`] = ` |
| 387 |
|
| 388 |
[4m[[email protected][39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m |
| 389 |
green is a very important color |
| 390 |
|
| 391 |
[91mDEPRECATED[39m!! - true |
| 392 |
|
| 393 |
keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m |
| 394 |
|
| 395 |
bin: [36mgreen[39m |
| 396 |
|
| 397 |
dist |
| 398 |
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m |
| 399 |
.shasum: [32m123[39m |
| 400 |
.integrity: [32m---[39m |
| 401 |
.unpackedSize: [34m1.0 GB[39m |
| 402 |
|
| 403 |
dependencies: |
| 404 |
[34mred[39m: 1.0.0, [34myellow[39m: 1.0.0 |
| 405 |
|
| 406 |
maintainers: |
| 407 |
- [34mclaudia[39m <[[email protected][22m> |
| 408 |
- [34misaacs[39m <[[email protected][22m> |
| 409 |
|
| 410 |
dist-tags: |
| 411 |
[34mlatest[39m: 1.0.0 |
| 412 |
error [94mcode[39m E404 |
| 413 |
error [94m404[39m 404 |
| 414 |
` |
| 415 |
|
| 416 |
exports[`test/lib/commands/view.js TAP workspaces 404 workspaces json > must match snapshot 1`] = ` |
| 417 |
{ |
| 418 |
"green": { |
| 419 |
"_id": "green", |
| 420 |
"name": "green", |
| 421 |
"dist-tags": { |
| 422 |
"latest": "1.0.0" |
| 423 |
}, |
| 424 |
"maintainers": [ |
| 425 |
{ |
| 426 |
"name": "claudia", |
| 427 |
"email": "[email protected]", |
| 428 |
"twitter": "cyellow" |
| 429 |
}, |
| 430 |
{ |
| 431 |
"name": "isaacs", |
| 432 |
"email": "[email protected]", |
| 433 |
"twitter": "iyellow" |
| 434 |
} |
| 435 |
], |
| 436 |
"keywords": [ |
| 437 |
"colors", |
| 438 |
"green", |
| 439 |
"crayola" |
| 440 |
], |
| 441 |
"versions": [ |
| 442 |
"1.0.0", |
| 443 |
"1.0.1" |
| 444 |
], |
| 445 |
"version": "1.0.0", |
| 446 |
"description": "green is a very important color", |
| 447 |
"bugs": { |
| 448 |
"url": "http://bugs.green.com" |
| 449 |
}, |
| 450 |
"deprecated": true, |
| 451 |
"repository": { |
| 452 |
"url": "http://repository.green.com" |
| 453 |
}, |
| 454 |
"license": { |
| 455 |
"type": "ACME" |
| 456 |
}, |
| 457 |
"bin": { |
| 458 |
"green": "bin/green.js" |
| 459 |
}, |
| 460 |
"dependencies": { |
| 461 |
"red": "1.0.0", |
| 462 |
"yellow": "1.0.0" |
| 463 |
}, |
| 464 |
"dist": { |
| 465 |
"shasum": "123", |
| 466 |
"tarball": "http://hm.green.com/1.0.0.tgz", |
| 467 |
"integrity": "---", |
| 468 |
"fileCount": 1, |
| 469 |
"unpackedSize": 1000000000 |
| 470 |
} |
| 471 |
}, |
| 472 |
"error": { |
| 473 |
"missing-package": { |
| 474 |
"code": "E404", |
| 475 |
"summary": "404", |
| 476 |
"detail": "" |
| 477 |
} |
| 478 |
} |
| 479 |
} |
| 480 |
` |
| 481 |
|
| 482 |
exports[`test/lib/commands/view.js TAP workspaces 404 workspaces json with package named error > must match snapshot 1`] = ` |
| 483 |
warn overwriting existing error on json output |
| 484 |
{ |
| 485 |
"error": { |
| 486 |
"missing-package": { |
| 487 |
"code": "E404", |
| 488 |
"summary": "404", |
| 489 |
"detail": "" |
| 490 |
} |
| 491 |
} |
| 492 |
} |
| 493 |
` |
| 494 |
|
| 495 |
exports[`test/lib/commands/view.js TAP workspaces 404 workspaces non-404 error rejects > must match snapshot 1`] = ` |
| 496 |
|
| 497 |
[4m[[email protected][39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m |
| 498 |
green is a very important color |
| 499 |
|
| 500 |
[91mDEPRECATED[39m!! - true |
| 501 |
|
| 502 |
keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m |
| 503 |
|
| 504 |
bin: [36mgreen[39m |
| 505 |
|
| 506 |
dist |
| 507 |
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m |
| 508 |
.shasum: [32m123[39m |
| 509 |
.integrity: [32m---[39m |
| 510 |
.unpackedSize: [34m1.0 GB[39m |
| 511 |
|
| 512 |
dependencies: |
| 513 |
[34mred[39m: 1.0.0, [34myellow[39m: 1.0.0 |
| 514 |
|
| 515 |
maintainers: |
| 516 |
- [34mclaudia[39m <[[email protected][22m> |
| 517 |
- [34misaacs[39m <[[email protected][22m> |
| 518 |
|
| 519 |
dist-tags: |
| 520 |
[34mlatest[39m: 1.0.0 |
| 521 |
error Unknown error |
| 522 |
` |
| 523 |
|
| 524 |
exports[`test/lib/commands/view.js TAP workspaces 404 workspaces non-404 error rejects with single arg > must match snapshot 1`] = ` |
| 525 |
green: |
| 526 |
1.0.0 |
| 527 |
unknown-error: |
| 528 |
error Unknown error |
| 529 |
` |
| 530 |
|
| 531 |
exports[`test/lib/commands/view.js TAP workspaces all workspaces --json > must match snapshot 1`] = ` |
| 532 |
{ |
| 533 |
"green": { |
| 534 |
"_id": "green", |
| 535 |
"name": "green", |
| 536 |
"dist-tags": { |
| 537 |
"latest": "1.0.0" |
| 538 |
}, |
| 539 |
"maintainers": [ |
| 540 |
{ |
| 541 |
"name": "claudia", |
| 542 |
"email": "[email protected]", |
| 543 |
"twitter": "cyellow" |
| 544 |
}, |
| 545 |
{ |
| 546 |
"name": "isaacs", |
| 547 |
"email": "[email protected]", |
| 548 |
"twitter": "iyellow" |
| 549 |
} |
| 550 |
], |
| 551 |
"keywords": [ |
| 552 |
"colors", |
| 553 |
"green", |
| 554 |
"crayola" |
| 555 |
], |
| 556 |
"versions": [ |
| 557 |
"1.0.0", |
| 558 |
"1.0.1" |
| 559 |
], |
| 560 |
"version": "1.0.0", |
| 561 |
"description": "green is a very important color", |
| 562 |
"bugs": { |
| 563 |
"url": "http://bugs.green.com" |
| 564 |
}, |
| 565 |
"deprecated": true, |
| 566 |
"repository": { |
| 567 |
"url": "http://repository.green.com" |
| 568 |
}, |
| 569 |
"license": { |
| 570 |
"type": "ACME" |
| 571 |
}, |
| 572 |
"bin": { |
| 573 |
"green": "bin/green.js" |
| 574 |
}, |
| 575 |
"dependencies": { |
| 576 |
"red": "1.0.0", |
| 577 |
"yellow": "1.0.0" |
| 578 |
}, |
| 579 |
"dist": { |
| 580 |
"shasum": "123", |
| 581 |
"tarball": "http://hm.green.com/1.0.0.tgz", |
| 582 |
"integrity": "---", |
| 583 |
"fileCount": 1, |
| 584 |
"unpackedSize": 1000000000 |
| 585 |
} |
| 586 |
}, |
| 587 |
"orange": { |
| 588 |
"name": "orange", |
| 589 |
"dist-tags": { |
| 590 |
"latest": "1.0.0" |
| 591 |
}, |
| 592 |
"versions": [ |
| 593 |
"1.0.0", |
| 594 |
"1.0.1" |
| 595 |
], |
| 596 |
"version": "1.0.0", |
| 597 |
"homepage": "http://hm.orange.com", |
| 598 |
"license": {}, |
| 599 |
"dist": { |
| 600 |
"shasum": "123", |
| 601 |
"tarball": "http://hm.orange.com/1.0.0.tgz", |
| 602 |
"integrity": "---", |
| 603 |
"fileCount": 1, |
| 604 |
"unpackedSize": 1 |
| 605 |
} |
| 606 |
} |
| 607 |
} |
| 608 |
` |
| 609 |
|
| 610 |
exports[`test/lib/commands/view.js TAP workspaces all workspaces > must match snapshot 1`] = ` |
| 611 |
|
| 612 |
[4m[[email protected][39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m |
| 613 |
green is a very important color |
| 614 |
|
| 615 |
[91mDEPRECATED[39m!! - true |
| 616 |
|
| 617 |
keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m |
| 618 |
|
| 619 |
bin: [36mgreen[39m |
| 620 |
|
| 621 |
dist |
| 622 |
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m |
| 623 |
.shasum: [32m123[39m |
| 624 |
.integrity: [32m---[39m |
| 625 |
.unpackedSize: [34m1.0 GB[39m |
| 626 |
|
| 627 |
dependencies: |
| 628 |
[34mred[39m: 1.0.0, [34myellow[39m: 1.0.0 |
| 629 |
|
| 630 |
maintainers: |
| 631 |
- [34mclaudia[39m <[[email protected][22m> |
| 632 |
- [34misaacs[39m <[[email protected][22m> |
| 633 |
|
| 634 |
dist-tags: |
| 635 |
[34mlatest[39m: 1.0.0 |
| 636 |
|
| 637 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m |
| 638 |
[34mhttp://hm.orange.com[39m |
| 639 |
|
| 640 |
dist |
| 641 |
.tarball: [34mhttp://hm.orange.com/1.0.0.tgz[39m |
| 642 |
.shasum: [32m123[39m |
| 643 |
.integrity: [32m---[39m |
| 644 |
.unpackedSize: [34m1 B[39m |
| 645 |
|
| 646 |
dist-tags: |
| 647 |
[34mlatest[39m: 1.0.0 |
| 648 |
` |
| 649 |
|
| 650 |
exports[`test/lib/commands/view.js TAP workspaces all workspaces nonexistent field --json > must match snapshot 1`] = ` |
| 651 |
|
| 652 |
` |
| 653 |
|
| 654 |
exports[`test/lib/commands/view.js TAP workspaces all workspaces nonexistent field > must match snapshot 1`] = ` |
| 655 |
green: |
| 656 |
orange: |
| 657 |
` |
| 658 |
|
| 659 |
exports[`test/lib/commands/view.js TAP workspaces all workspaces single field --json > must match snapshot 1`] = ` |
| 660 |
{ |
| 661 |
"green": "green", |
| 662 |
"orange": "orange" |
| 663 |
} |
| 664 |
` |
| 665 |
|
| 666 |
exports[`test/lib/commands/view.js TAP workspaces all workspaces single field > must match snapshot 1`] = ` |
| 667 |
green: |
| 668 |
green |
| 669 |
orange: |
| 670 |
orange |
| 671 |
` |
| 672 |
|
| 673 |
exports[`test/lib/commands/view.js TAP workspaces one specific workspace > must match snapshot 1`] = ` |
| 674 |
|
| 675 |
[4m[[email protected][39m[24m | [32mACME[39m | deps: [36m2[39m | versions: [36m2[39m |
| 676 |
green is a very important color |
| 677 |
|
| 678 |
[91mDEPRECATED[39m!! - true |
| 679 |
|
| 680 |
keywords: [36mcolors[39m, [36mgreen[39m, [36mcrayola[39m |
| 681 |
|
| 682 |
bin: [36mgreen[39m |
| 683 |
|
| 684 |
dist |
| 685 |
.tarball: [34mhttp://hm.green.com/1.0.0.tgz[39m |
| 686 |
.shasum: [32m123[39m |
| 687 |
.integrity: [32m---[39m |
| 688 |
.unpackedSize: [34m1.0 GB[39m |
| 689 |
|
| 690 |
dependencies: |
| 691 |
[34mred[39m: 1.0.0, [34myellow[39m: 1.0.0 |
| 692 |
|
| 693 |
maintainers: |
| 694 |
- [34mclaudia[39m <[[email protected][22m> |
| 695 |
- [34misaacs[39m <[[email protected][22m> |
| 696 |
|
| 697 |
dist-tags: |
| 698 |
[34mlatest[39m: 1.0.0 |
| 699 |
` |
| 700 |
|
| 701 |
exports[`test/lib/commands/view.js TAP workspaces remote package name > must match snapshot 1`] = ` |
| 702 |
|
| 703 |
[4m[[email protected][39m[24m | [31mProprietary[39m | deps: [36mnone[39m | versions: [36m2[39m |
| 704 |
|
| 705 |
dist |
| 706 |
.tarball: [34mhttp://hm.pink.com/1.0.0.tgz[39m |
| 707 |
.shasum: [32m123[39m |
| 708 |
.integrity: [32m---[39m |
| 709 |
.unpackedSize: [34m1 B[39m |
| 710 |
|
| 711 |
dist-tags: |
| 712 |
[34mlatest[39m: 1.0.0 |
| 713 |
` |
| 714 |
|
| 715 |
exports[`test/lib/commands/view.js TAP workspaces remote package name > should have warning of ignoring workspaces 1`] = ` |
| 716 |
Array [ |
| 717 |
"\\u001b[94mIgnoring workspaces for specified package(s)\\u001b[39m", |
| 718 |
] |
| 719 |
` |
| 720 |
|
| 721 |
exports[`test/lib/commands/view.js TAP workspaces single workspace --json > must match snapshot 1`] = ` |
| 722 |
{ |
| 723 |
"green": { |
| 724 |
"_id": "green", |
| 725 |
"name": "green", |
| 726 |
"dist-tags": { |
| 727 |
"latest": "1.0.0" |
| 728 |
}, |
| 729 |
"maintainers": [ |
| 730 |
{ |
| 731 |
"name": "claudia", |
| 732 |
"email": "[email protected]", |
| 733 |
"twitter": "cyellow" |
| 734 |
}, |
| 735 |
{ |
| 736 |
"name": "isaacs", |
| 737 |
"email": "[email protected]", |
| 738 |
"twitter": "iyellow" |
| 739 |
} |
| 740 |
], |
| 741 |
"keywords": [ |
| 742 |
"colors", |
| 743 |
"green", |
| 744 |
"crayola" |
| 745 |
], |
| 746 |
"versions": [ |
| 747 |
"1.0.0", |
| 748 |
"1.0.1" |
| 749 |
], |
| 750 |
"version": "1.0.0", |
| 751 |
"description": "green is a very important color", |
| 752 |
"bugs": { |
| 753 |
"url": "http://bugs.green.com" |
| 754 |
}, |
| 755 |
"deprecated": true, |
| 756 |
"repository": { |
| 757 |
"url": "http://repository.green.com" |
| 758 |
}, |
| 759 |
"license": { |
| 760 |
"type": "ACME" |
| 761 |
}, |
| 762 |
"bin": { |
| 763 |
"green": "bin/green.js" |
| 764 |
}, |
| 765 |
"dependencies": { |
| 766 |
"red": "1.0.0", |
| 767 |
"yellow": "1.0.0" |
| 768 |
}, |
| 769 |
"dist": { |
| 770 |
"shasum": "123", |
| 771 |
"tarball": "http://hm.green.com/1.0.0.tgz", |
| 772 |
"integrity": "---", |
| 773 |
"fileCount": 1, |
| 774 |
"unpackedSize": 1000000000 |
| 775 |
} |
| 776 |
} |
| 777 |
} |
| 778 |
` |