File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -237,6 +237,7 @@ In addition to the common `package.json` fields, manifests include:
237
237
artifact can be found.
238
238
* ` manifest._from ` A normalized form of the spec passed in as an argument.
239
239
* ` manifest._integrity ` The integrity value for the package artifact.
240
+ * ` manifest._id ` The canonical spec of this package version: name@version.
240
241
* ` manifest.dist ` Registry manifests (those included in a packument) have a
241
242
` dist ` object. Only ` tarball ` is required, though at least one of
242
243
` shasum ` or ` integrity ` is almost always present.
@@ -274,3 +275,8 @@ For Pacote's purposes, the following fields are relevant:
274
275
` foo@latest ` gets turned into ` foo@1.2.3 ` .
275
276
* ` time ` In the full packument, an object mapping version numbers to
276
277
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.
You can’t perform that action at this time.
0 commit comments