Skip to content

Commit

Permalink
deps: init-package-json@6.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 7, 2024
1 parent 714e3e1 commit 4c5bf77
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
3 changes: 3 additions & 0 deletions node_modules/init-package-json/lib/init-package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,17 @@ async function init (dir,
if (yes) {
await pkg.save()
if (!config.get('silent')) {
// eslint-disable-next-line no-console
console.log(`Wrote to ${msg}`)
}
return pkg.content
}

// eslint-disable-next-line no-console
console.log(`About to write to ${msg}`)
const ok = await read({ prompt: 'Is this OK? ', default: 'yes' })
if (!ok || !ok.toLowerCase().startsWith('y')) {
// eslint-disable-next-line no-console
console.log('Aborted.')
return
}
Expand Down
11 changes: 6 additions & 5 deletions node_modules/init-package-json/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "init-package-json",
"version": "6.0.2",
"version": "6.0.3",
"main": "lib/init-package-json.js",
"scripts": {
"test": "tap",
Expand All @@ -13,7 +13,7 @@
},
"repository": {
"type": "git",
"url": "https://github.com/npm/init-package-json.git"
"url": "git+https://github.com/npm/init-package-json.git"
},
"author": "GitHub Inc.",
"license": "ISC",
Expand All @@ -30,7 +30,7 @@
"devDependencies": {
"@npmcli/config": "^8.2.0",
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.21.3",
"@npmcli/template-oss": "4.22.0",
"tap": "^16.0.1"
},
"engines": {
Expand All @@ -41,7 +41,8 @@
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
],
"timeout": 300
},
"keywords": [
"init",
Expand All @@ -59,7 +60,7 @@
],
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.21.3",
"version": "4.22.0",
"publish": true
}
}
9 changes: 5 additions & 4 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
"graceful-fs": "^4.2.11",
"hosted-git-info": "^7.0.2",
"ini": "^4.1.2",
"init-package-json": "^6.0.2",
"init-package-json": "^6.0.3",
"is-cidr": "^5.0.5",
"json-parse-even-better-errors": "^3.0.1",
"libnpmaccess": "^8.0.1",
Expand Down Expand Up @@ -6104,10 +6104,11 @@
}
},
"node_modules/init-package-json": {
"version": "6.0.2",
"resolved": "https://registry.npmjs.org/init-package-json/-/init-package-json-6.0.2.tgz",
"integrity": "sha512-ZQ9bxt6PkqIH6fPU69HPheOMoUqIqVqwZj0qlCBfoSCG4lplQhVM/qB3RS4f0RALK3WZZSrNQxNtCZgphuf3IA==",
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/init-package-json/-/init-package-json-6.0.3.tgz",
"integrity": "sha512-Zfeb5ol+H+eqJWHTaGca9BovufyGeIfr4zaaBorPmJBMrJ+KBnN+kQx2ZtXdsotUTgldHmHQV44xvUWOUA7E2w==",
"inBundle": true,
"license": "ISC",
"dependencies": {
"@npmcli/package-json": "^5.0.0",
"npm-package-arg": "^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"graceful-fs": "^4.2.11",
"hosted-git-info": "^7.0.2",
"ini": "^4.1.2",
"init-package-json": "^6.0.2",
"init-package-json": "^6.0.3",
"is-cidr": "^5.0.5",
"json-parse-even-better-errors": "^3.0.1",
"libnpmaccess": "^8.0.1",
Expand Down

0 comments on commit 4c5bf77

Please sign in to comment.