Skip to content

Commit 9e4a859

Browse files
committed
Update snapshots
1 parent a203491 commit 9e4a859

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

lib/npm.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ class Npm {
136136
// configuration to enable the terminal title to be prefixed with the project's name.
137137
let titlePrefix = []
138138
if (this.config.get('prefix-package-name-in-title')) {
139-
const pck4 = await pkgJson
139+
const packageJson = await pkgJson
140140
.normalize(this.localPrefix)
141141
.then((p) => p.content)
142-
if (pck4.name) {
143-
titlePrefix = [pck4.name, '::']
142+
if (packageJson.name) {
143+
titlePrefix = [packageJson.name, '::']
144144
}
145145
}
146146

tap-snapshots/test/lib/commands/install.js.test.cjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ verbose stack Error: The developer of this package has specified the following t
135135
verbose stack Invalid devEngines.runtime
136136
verbose stack Invalid name "nondescript" does not match "node" for "runtime"
137137
verbose stack at Install.checkDevEngines ({CWD}/lib/base-cmd.js:247:27)
138-
verbose stack at MockNpm.execCommandClass ({CWD}/lib/npm.js:281:7)
139-
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:182:9)
138+
verbose stack at MockNpm.execCommandClass ({CWD}/lib/npm.js:293:7)
139+
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:194:9)
140140
error code EBADDEVENGINES
141141
error EBADDEVENGINES The developer of this package has specified the following through devEngines
142142
error EBADDEVENGINES Invalid devEngines.runtime
@@ -200,8 +200,8 @@ verbose stack Error: The developer of this package has specified the following t
200200
verbose stack Invalid devEngines.runtime
201201
verbose stack Invalid name "nondescript" does not match "node" for "runtime"
202202
verbose stack at Install.checkDevEngines ({CWD}/lib/base-cmd.js:247:27)
203-
verbose stack at MockNpm.execCommandClass ({CWD}/lib/npm.js:281:7)
204-
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:182:9)
203+
verbose stack at MockNpm.execCommandClass ({CWD}/lib/npm.js:293:7)
204+
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:194:9)
205205
error code EBADDEVENGINES
206206
error EBADDEVENGINES The developer of this package has specified the following through devEngines
207207
error EBADDEVENGINES Invalid devEngines.runtime
@@ -226,8 +226,8 @@ verbose stack Error: The developer of this package has specified the following t
226226
verbose stack Invalid devEngines.runtime
227227
verbose stack Invalid name "nondescript" does not match "node" for "runtime"
228228
verbose stack at Install.checkDevEngines ({CWD}/lib/base-cmd.js:247:27)
229-
verbose stack at MockNpm.execCommandClass ({CWD}/lib/npm.js:281:7)
230-
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:182:9)
229+
verbose stack at MockNpm.execCommandClass ({CWD}/lib/npm.js:293:7)
230+
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:194:9)
231231
error code EBADDEVENGINES
232232
error EBADDEVENGINES The developer of this package has specified the following through devEngines
233233
error EBADDEVENGINES Invalid devEngines.runtime

0 commit comments

Comments
 (0)