Skip to content

Commit c97ef8a

Browse files
owlstronautwraithgar
authored andcommitted
deps: init-package-json@8.2.1
1 parent a0e60fb commit c97ef8a

File tree

4 files changed

+28
-8
lines changed

4 files changed

+28
-8
lines changed

node_modules/init-package-json/lib/default-input.js

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,17 @@ const npa = require('npm-package-arg')
88
const semver = require('semver')
99

1010
// more popular packages should go here, maybe?
11-
const isTestPkg = (p) => !!p.match(/^(expresso|mocha|tap|coffee-script|coco|streamline)$/)
11+
const testPkgs = [
12+
'coco',
13+
'coffee-script',
14+
'expresso',
15+
'jasmine',
16+
'jest',
17+
'mocha',
18+
'streamline',
19+
'tap',
20+
]
21+
const isTestPkg = p => testPkgs.includes(p)
1222

1323
const invalid = (msg) => Object.assign(new Error(msg), { notValid: true })
1424

@@ -266,3 +276,13 @@ const type = package.type || getConfig('type') || 'commonjs'
266276
exports.type = yes ? type : prompt('type', type, (data) => {
267277
return data
268278
})
279+
280+
// Only include private field if it already exists or if explicitly set in config
281+
const configPrivate = getConfig('private')
282+
if (package.private !== undefined || configPrivate !== undefined) {
283+
if (package.private !== undefined) {
284+
exports.private = package.private
285+
} else if (!config.isDefault || !config.isDefault('init-private')) {
286+
exports.private = configPrivate
287+
}
288+
}

node_modules/init-package-json/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "init-package-json",
3-
"version": "8.0.0",
3+
"version": "8.2.1",
44
"main": "lib/init-package-json.js",
55
"scripts": {
66
"test": "tap",
@@ -29,7 +29,7 @@
2929
"validate-npm-package-name": "^6.0.0"
3030
},
3131
"devDependencies": {
32-
"@npmcli/config": "^9.0.0",
32+
"@npmcli/config": "^10.0.0",
3333
"@npmcli/eslint-config": "^5.0.0",
3434
"@npmcli/template-oss": "4.23.4",
3535
"tap": "^16.0.1"

package-lock.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
"graceful-fs": "^4.2.11",
107107
"hosted-git-info": "^8.1.0",
108108
"ini": "^5.0.0",
109-
"init-package-json": "^8.0.0",
109+
"init-package-json": "^8.2.1",
110110
"is-cidr": "^5.1.1",
111111
"json-parse-even-better-errors": "^4.0.0",
112112
"libnpmaccess": "^10.0.0",
@@ -9493,9 +9493,9 @@
94939493
}
94949494
},
94959495
"node_modules/init-package-json": {
9496-
"version": "8.0.0",
9497-
"resolved": "https://registry.npmjs.org/init-package-json/-/init-package-json-8.0.0.tgz",
9498-
"integrity": "sha512-zKgxfaGt6Zzi8VBSInOK0CYDigA9gzDCWPnSzGIoUlTU/5w7qIyi+6MyJYX96mMlxDGrIR85FhQszVyodYfB9g==",
9496+
"version": "8.2.1",
9497+
"resolved": "https://registry.npmjs.org/init-package-json/-/init-package-json-8.2.1.tgz",
9498+
"integrity": "sha512-8lhupwQjiwCJzwVILceTq0Kvyj+0cFun0jvmMz0TwCFFgCAqLV6tZl07VAexh8YFOWwIN9jxN+XHkW27fy1nZg==",
94999499
"inBundle": true,
95009500
"license": "ISC",
95019501
"dependencies": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"graceful-fs": "^4.2.11",
7474
"hosted-git-info": "^8.1.0",
7575
"ini": "^5.0.0",
76-
"init-package-json": "^8.0.0",
76+
"init-package-json": "^8.2.1",
7777
"is-cidr": "^5.1.1",
7878
"json-parse-even-better-errors": "^4.0.0",
7979
"libnpmaccess": "^10.0.0",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy