Skip to content

Commit 72291f7

Browse files
committedMay 3, 2023
deps: read-package-json@6.0.3
1 parent e498f82 commit 72291f7

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed
 

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

+5-4
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,15 @@ function jsonClone (obj) {
6767
} else if (Array.isArray(obj)) {
6868
var newarr = new Array(obj.length)
6969
for (var ii in obj) {
70-
newarr[ii] = obj[ii]
70+
newarr[ii] = jsonClone(obj[ii])
7171
}
72+
return newarr
7273
} else if (typeof obj === 'object') {
7374
var newobj = {}
7475
for (var kk in obj) {
75-
newobj[kk] = jsonClone[kk]
76+
newobj[kk] = jsonClone(obj[kk])
7677
}
78+
return newobj
7779
} else {
7880
return obj
7981
}
@@ -115,7 +117,6 @@ function parseJson (file, er, d, log, strict, cb) {
115117
return cb(parseError(jsonErr, file))
116118
}
117119
}
118-
119120
extrasCached(file, d, data, log, strict, cb)
120121
}
121122

@@ -505,7 +506,7 @@ function final (file, data, log, strict, cb) {
505506
}
506507

507508
function fillTypes (file, data, cb) {
508-
var index = data.main ? data.main : 'index.js'
509+
var index = data.main || 'index.js'
509510

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

‎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": "6.0.2",
3+
"version": "6.0.3",
44
"author": "GitHub Inc.",
55
"description": "The thing npm uses to read package.json files with semantics and defaults and validation",
66
"repository": {

‎package-lock.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
"proc-log": "^3.0.0",
139139
"qrcode-terminal": "^0.12.0",
140140
"read": "^2.1.0",
141-
"read-package-json": "^6.0.2",
141+
"read-package-json": "^6.0.3",
142142
"read-package-json-fast": "^3.0.2",
143143
"semver": "^7.5.0",
144144
"ssri": "^10.0.4",
@@ -10632,9 +10632,9 @@
1063210632
}
1063310633
},
1063410634
"node_modules/read-package-json": {
10635-
"version": "6.0.2",
10636-
"resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-6.0.2.tgz",
10637-
"integrity": "sha512-Ismd3km1d/FGzcjm8fBf/4ktkyd0t6pbkjYqu1gvRzOzN+aTxi1eigdZp7441TlszQ+GsdYezgS+g9cgy8QK9w==",
10635+
"version": "6.0.3",
10636+
"resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-6.0.3.tgz",
10637+
"integrity": "sha512-4QbpReW4kxFgeBQ0vPAqh2y8sXEB3D4t3jsXbJKIhBiF80KT6XRo45reqwtftju5J6ru1ax06A2Gb/wM1qCOEQ==",
1063810638
"inBundle": true,
1063910639
"dependencies": {
1064010640
"glob": "^10.2.2",

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"proc-log": "^3.0.0",
108108
"qrcode-terminal": "^0.12.0",
109109
"read": "^2.1.0",
110-
"read-package-json": "^6.0.2",
110+
"read-package-json": "^6.0.3",
111111
"read-package-json-fast": "^3.0.2",
112112
"semver": "^7.5.0",
113113
"ssri": "^10.0.4",

0 commit comments

Comments
 (0)
Please sign in to comment.