Skip to content

Commit 40b7fbf

Browse files
authored
1 parent 377f55e commit 40b7fbf

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

node_modules/read-package-json/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "read-package-json",
3-
"version": "4.1.1",
3+
"version": "4.1.2",
44
"author": "Isaac Z. Schlueter <[email protected]> (http://blog.izs.me/)",
55
"description": "The thing npm uses to read package.json files with semantics and defaults and validation",
66
"repository": {

node_modules/read-package-json/read-json.js

+4
Original file line numberDiff line numberDiff line change
@@ -522,6 +522,10 @@ function final (file, data, log, strict, cb) {
522522
function fillTypes (file, data, cb) {
523523
var index = data.main ? data.main : 'index.js'
524524

525+
if (typeof index !== 'string') {
526+
return cb(new TypeError('The "main" attribute must be of type string.'))
527+
}
528+
525529
// TODO exports is much more complicated than this in verbose format
526530
// We need to support for instance
527531

package-lock.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@
144144
"proc-log": "^2.0.0",
145145
"qrcode-terminal": "^0.12.0",
146146
"read": "~1.0.7",
147-
"read-package-json": "^4.1.1",
147+
"read-package-json": "^4.1.2",
148148
"read-package-json-fast": "^2.0.3",
149149
"readdir-scoped-modules": "^1.1.0",
150150
"rimraf": "^3.0.2",
@@ -6435,9 +6435,9 @@
64356435
"integrity": "sha512-HJpV9bQpkl6KwjxlJcBoqu9Ba0PQg8TqSNIOrulGt54a0uup0HtevreFHzYzkm0lpnleRdNBzXznKrgxglEHQw=="
64366436
},
64376437
"node_modules/read-package-json": {
6438-
"version": "4.1.1",
6439-
"resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-4.1.1.tgz",
6440-
"integrity": "sha512-P82sbZJ3ldDrWCOSKxJT0r/CXMWR0OR3KRh55SgKo3p91GSIEEC32v3lSHAvO/UcH3/IoL7uqhOFBduAnwdldw==",
6438+
"version": "4.1.2",
6439+
"resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-4.1.2.tgz",
6440+
"integrity": "sha512-Dqer4pqzamDE2O4M55xp1qZMuLPqi4ldk2ya648FOMHRjwMzFhuxVrG04wd0c38IsvkVdr3vgHI6z+QTPdAjrQ==",
64416441
"inBundle": true,
64426442
"dependencies": {
64436443
"glob": "^7.1.1",
@@ -15805,9 +15805,9 @@
1580515805
"integrity": "sha512-HJpV9bQpkl6KwjxlJcBoqu9Ba0PQg8TqSNIOrulGt54a0uup0HtevreFHzYzkm0lpnleRdNBzXznKrgxglEHQw=="
1580615806
},
1580715807
"read-package-json": {
15808-
"version": "4.1.1",
15809-
"resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-4.1.1.tgz",
15810-
"integrity": "sha512-P82sbZJ3ldDrWCOSKxJT0r/CXMWR0OR3KRh55SgKo3p91GSIEEC32v3lSHAvO/UcH3/IoL7uqhOFBduAnwdldw==",
15808+
"version": "4.1.2",
15809+
"resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-4.1.2.tgz",
15810+
"integrity": "sha512-Dqer4pqzamDE2O4M55xp1qZMuLPqi4ldk2ya648FOMHRjwMzFhuxVrG04wd0c38IsvkVdr3vgHI6z+QTPdAjrQ==",
1581115811
"requires": {
1581215812
"glob": "^7.1.1",
1581315813
"json-parse-even-better-errors": "^2.3.0",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
"proc-log": "^2.0.0",
113113
"qrcode-terminal": "^0.12.0",
114114
"read": "~1.0.7",
115-
"read-package-json": "^4.1.1",
115+
"read-package-json": "^4.1.2",
116116
"read-package-json-fast": "^2.0.3",
117117
"readdir-scoped-modules": "^1.1.0",
118118
"rimraf": "^3.0.2",

0 commit comments

Comments
 (0)