Skip to content

Commit

Permalink
deps: read-package-json@6.0.3
Browse files Browse the repository at this point in the history
wraithgar committed May 3, 2023

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent e498f82 commit 72291f7
Showing 4 changed files with 11 additions and 10 deletions.
9 changes: 5 additions & 4 deletions node_modules/read-package-json/lib/read-json.js
Original file line number Diff line number Diff line change
@@ -67,13 +67,15 @@ function jsonClone (obj) {
} else if (Array.isArray(obj)) {
var newarr = new Array(obj.length)
for (var ii in obj) {
newarr[ii] = obj[ii]
newarr[ii] = jsonClone(obj[ii])
}
return newarr
} else if (typeof obj === 'object') {
var newobj = {}
for (var kk in obj) {
newobj[kk] = jsonClone[kk]
newobj[kk] = jsonClone(obj[kk])
}
return newobj
} else {
return obj
}
@@ -115,7 +117,6 @@ function parseJson (file, er, d, log, strict, cb) {
return cb(parseError(jsonErr, file))
}
}

extrasCached(file, d, data, log, strict, cb)
}

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

function fillTypes (file, data, cb) {
var index = data.main ? data.main : 'index.js'
var index = data.main || 'index.js'

if (typeof index !== 'string') {
return cb(new TypeError('The "main" attribute must be of type string.'))
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": "6.0.2",
"version": "6.0.3",
"author": "GitHub Inc.",
"description": "The thing npm uses to read package.json files with semantics and defaults and validation",
"repository": {
8 changes: 4 additions & 4 deletions package-lock.json
Original file line number Diff line number Diff line change
@@ -138,7 +138,7 @@
"proc-log": "^3.0.0",
"qrcode-terminal": "^0.12.0",
"read": "^2.1.0",
"read-package-json": "^6.0.2",
"read-package-json": "^6.0.3",
"read-package-json-fast": "^3.0.2",
"semver": "^7.5.0",
"ssri": "^10.0.4",
@@ -10632,9 +10632,9 @@
}
},
"node_modules/read-package-json": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-6.0.2.tgz",
"integrity": "sha512-Ismd3km1d/FGzcjm8fBf/4ktkyd0t6pbkjYqu1gvRzOzN+aTxi1eigdZp7441TlszQ+GsdYezgS+g9cgy8QK9w==",
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/read-package-json/-/read-package-json-6.0.3.tgz",
"integrity": "sha512-4QbpReW4kxFgeBQ0vPAqh2y8sXEB3D4t3jsXbJKIhBiF80KT6XRo45reqwtftju5J6ru1ax06A2Gb/wM1qCOEQ==",
"inBundle": true,
"dependencies": {
"glob": "^10.2.2",
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -107,7 +107,7 @@
"proc-log": "^3.0.0",
"qrcode-terminal": "^0.12.0",
"read": "^2.1.0",
"read-package-json": "^6.0.2",
"read-package-json": "^6.0.3",
"read-package-json-fast": "^3.0.2",
"semver": "^7.5.0",
"ssri": "^10.0.4",

0 comments on commit 72291f7

Please sign in to comment.