Skip to content

Commit

Permalink
fix: add missing fields to abbreviated metadata (#3347)
Browse files Browse the repository at this point in the history
* fix: add missing fields to abbreviated metadata

The abbreviated metadata should include the cpu, os, and peerDependenciesMeta fields

* chore: update types

Co-authored-by: Juan Picado <juanpicado19@gmail.com>
  • Loading branch information
zkochan and juanpicado committed Sep 4, 2022
1 parent 60be3e6 commit 317177a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 15 deletions.
18 changes: 9 additions & 9 deletions .pnp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"@typescript-eslint/parser": "5.22.0",
"@verdaccio-scope/verdaccio-auth-foo": "0.0.2",
"@verdaccio/eslint-config": "^10.0.0",
"@verdaccio/types": "10.6.0",
"@verdaccio/types": "10.7.0",
"all-contributors-cli": "6.20.0",
"babel-eslint": "10.1.0",
"babel-jest": "26.6.3",
Expand Down
3 changes: 3 additions & 0 deletions src/lib/storage-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,14 @@ export function convertAbbreviatedManifest(manifest: Manifest): AbbreviatedManif
bin: _version.bin,
dist: _version.dist,
engines: _version.engines,
cpu: _version.cpu,
os: _version.os,
funding: _version.funding,
directories: _version.directories,
dependencies: _version.dependencies,
devDependencies: _version.devDependencies,
peerDependencies: _version.peerDependencies,
peerDependenciesMeta: _version.peerDependenciesMeta,
optionalDependencies: _version.optionalDependencies,
bundleDependencies: _version.bundleDependencies,
// npm cli specifics
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4071,10 +4071,10 @@ __metadata:
languageName: node
linkType: hard

"@verdaccio/types@npm:10.6.0":
version: 10.6.0
resolution: "@verdaccio/types@npm:10.6.0"
checksum: 7065a8551b9e3f622143fba73e0088a824bf432fb4ea9b02d6f3042929f1faf3a2c1289a0b724963631bdbd5d9a17c96471bede5452a2538f4ecc63e3880628c
"@verdaccio/types@npm:10.7.0":
version: 10.7.0
resolution: "@verdaccio/types@npm:10.7.0"
checksum: 5f88847beaaa9e58884b1e82b884d0ab6adb176be59ae5926c27170937cca4d00ba654e5ca6b6cd6ec420ce37fbd9f1f7f0bd9a4201764ed29a2a1020fd56675
languageName: node
linkType: hard

Expand Down Expand Up @@ -15056,7 +15056,7 @@ typescript@4.1.3:
"@verdaccio/local-storage": 10.3.1
"@verdaccio/readme": 10.4.1
"@verdaccio/streams": 10.2.0
"@verdaccio/types": 10.6.0
"@verdaccio/types": 10.7.0
"@verdaccio/ui-theme": 6.0.0-6-next.28
JSONStream: 1.3.5
all-contributors-cli: 6.20.0
Expand Down

0 comments on commit 317177a

Please sign in to comment.