Skip to content

Commit f356cb2

Browse files
authoredJun 1, 2022
docs: add some fields to the README (#180)
1 parent a9a4cdd commit f356cb2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎README.md

+6
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ In addition to the common `package.json` fields, manifests include:
237237
artifact can be found.
238238
* `manifest._from` A normalized form of the spec passed in as an argument.
239239
* `manifest._integrity` The integrity value for the package artifact.
240+
* `manifest._id` The canonical spec of this package version: name@version.
240241
* `manifest.dist` Registry manifests (those included in a packument) have a
241242
`dist` object. Only `tarball` is required, though at least one of
242243
`shasum` or `integrity` is almost always present.
@@ -274,3 +275,8 @@ For Pacote's purposes, the following fields are relevant:
274275
`foo@latest` gets turned into `foo@1.2.3`.
275276
* `time` In the full packument, an object mapping version numbers to
276277
publication times, for the `opts.before` functionality.
278+
279+
Pacote adds the following fields, regardless of the accept header:
280+
281+
* `_cached` Whether the packument was fetched from the network or the local cache.
282+
* `_contentLength` The size of the packument.

0 commit comments

Comments
 (0)
Please sign in to comment.