Skip to content

Commit

Permalink
deps: read-package-json@4.1.2 (#4531)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruyadorno committed Mar 10, 2022
1 parent 377f55e commit 40b7fbf
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion node_modules/read-package-json/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "read-package-json",
"version": "4.1.1",
"version": "4.1.2",
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
"description": "The thing npm uses to read package.json files with semantics and defaults and validation",
"repository": {
Expand Down
4 changes: 4 additions & 0 deletions node_modules/read-package-json/read-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -522,6 +522,10 @@ function final (file, data, log, strict, cb) {
function fillTypes (file, data, cb) {
var index = data.main ? data.main : 'index.js'

if (typeof index !== 'string') {
return cb(new TypeError('The "main" attribute must be of type string.'))
}

// TODO exports is much more complicated than this in verbose format
// We need to support for instance

Expand Down
14 changes: 7 additions & 7 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@
"proc-log": "^2.0.0",
"qrcode-terminal": "^0.12.0",
"read": "~1.0.7",
"read-package-json": "^4.1.1",
"read-package-json": "^4.1.2",
"read-package-json-fast": "^2.0.3",
"readdir-scoped-modules": "^1.1.0",
"rimraf": "^3.0.2",
Expand Down Expand Up @@ -6435,9 +6435,9 @@
"integrity": "sha512-HJpV9bQpkl6KwjxlJcBoqu9Ba0PQg8TqSNIOrulGt54a0uup0HtevreFHzYzkm0lpnleRdNBzXznKrgxglEHQw=="
},
"node_modules/read-package-json": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-4.1.1.tgz",
"integrity": "sha512-P82sbZJ3ldDrWCOSKxJT0r/CXMWR0OR3KRh55SgKo3p91GSIEEC32v3lSHAvO/UcH3/IoL7uqhOFBduAnwdldw==",
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-4.1.2.tgz",
"integrity": "sha512-Dqer4pqzamDE2O4M55xp1qZMuLPqi4ldk2ya648FOMHRjwMzFhuxVrG04wd0c38IsvkVdr3vgHI6z+QTPdAjrQ==",
"inBundle": true,
"dependencies": {
"glob": "^7.1.1",
Expand Down Expand Up @@ -15805,9 +15805,9 @@
"integrity": "sha512-HJpV9bQpkl6KwjxlJcBoqu9Ba0PQg8TqSNIOrulGt54a0uup0HtevreFHzYzkm0lpnleRdNBzXznKrgxglEHQw=="
},
"read-package-json": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-4.1.1.tgz",
"integrity": "sha512-P82sbZJ3ldDrWCOSKxJT0r/CXMWR0OR3KRh55SgKo3p91GSIEEC32v3lSHAvO/UcH3/IoL7uqhOFBduAnwdldw==",
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-4.1.2.tgz",
"integrity": "sha512-Dqer4pqzamDE2O4M55xp1qZMuLPqi4ldk2ya648FOMHRjwMzFhuxVrG04wd0c38IsvkVdr3vgHI6z+QTPdAjrQ==",
"requires": {
"glob": "^7.1.1",
"json-parse-even-better-errors": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"proc-log": "^2.0.0",
"qrcode-terminal": "^0.12.0",
"read": "~1.0.7",
"read-package-json": "^4.1.1",
"read-package-json": "^4.1.2",
"read-package-json-fast": "^2.0.3",
"readdir-scoped-modules": "^1.1.0",
"rimraf": "^3.0.2",
Expand Down

0 comments on commit 40b7fbf

Please sign in to comment.