Skip to content

Commit 9519f18

Browse files
committed
1 parent 34bafd1 commit 9519f18

File tree

5 files changed

+22
-20
lines changed

5 files changed

+22
-20
lines changed

node_modules/npm-install-checks/lib/dev-engines.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,14 @@ function checkDependency (wanted, current, opts) {
9090
/** checks devEngines package property and returns array of warnings / errors */
9191
function checkDevEngines (wanted, current = {}, opts = {}) {
9292
if ((typeof wanted !== 'object' || wanted === null) || Array.isArray(wanted)) {
93-
throw new Error(`Invalid non-object value for devEngines`)
93+
throw new Error(`Invalid non-object value for "devEngines"`)
9494
}
9595

9696
const errors = []
9797

9898
for (const engine of Object.keys(wanted)) {
9999
if (!recognizedEngines.includes(engine)) {
100-
throw new Error(`Invalid property "${engine}"`)
100+
throw new Error(`Invalid property "devEngines.${engine}"`)
101101
}
102102
const dependencyAsAuthored = wanted[engine]
103103
const dependencies = [dependencyAsAuthored].flat()
@@ -125,7 +125,7 @@ function checkDevEngines (wanted, current = {}, opts = {}) {
125125
onFail = 'error'
126126
}
127127

128-
const err = Object.assign(new Error(`Invalid engine "${engine}"`), {
128+
const err = Object.assign(new Error(`Invalid devEngines.${engine}`), {
129129
errors: depErrors,
130130
engine,
131131
isWarn: onFail === 'warn',

node_modules/npm-install-checks/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
22
"name": "npm-install-checks",
3-
"version": "7.1.1",
3+
"version": "7.1.2",
44
"description": "Check the engines and platform fields in package.json",
55
"main": "lib/index.js",
66
"dependencies": {
77
"semver": "^7.1.1"
88
},
99
"devDependencies": {
1010
"@npmcli/eslint-config": "^5.0.0",
11-
"@npmcli/template-oss": "4.23.4",
11+
"@npmcli/template-oss": "4.25.0",
1212
"tap": "^16.0.1"
1313
},
1414
"scripts": {
@@ -40,7 +40,7 @@
4040
"author": "GitHub Inc.",
4141
"templateOSS": {
4242
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
43-
"version": "4.23.4",
43+
"version": "4.25.0",
4444
"publish": "true"
4545
},
4646
"tap": {

package-lock.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
"nopt": "^8.1.0",
129129
"normalize-package-data": "^8.0.0",
130130
"npm-audit-report": "^6.0.0",
131-
"npm-install-checks": "^7.1.1",
131+
"npm-install-checks": "^7.1.2",
132132
"npm-package-arg": "^13.0.0",
133133
"npm-pick-manifest": "^11.0.1",
134134
"npm-profile": "^12.0.0",
@@ -11037,7 +11037,9 @@
1103711037
}
1103811038
},
1103911039
"node_modules/npm-install-checks": {
11040-
"version": "7.1.1",
11040+
"version": "7.1.2",
11041+
"resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-7.1.2.tgz",
11042+
"integrity": "sha512-z9HJBCYw9Zr8BqXcllKIs5nI+QggAImbBdHphOzVYrz2CB4iQ6FzWyKmlqDZua+51nAu7FcemlbTc9VgQN5XDQ==",
1104111043
"inBundle": true,
1104211044
"license": "BSD-2-Clause",
1104311045
"dependencies": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"nopt": "^8.1.0",
9696
"normalize-package-data": "^8.0.0",
9797
"npm-audit-report": "^6.0.0",
98-
"npm-install-checks": "^7.1.1",
98+
"npm-install-checks": "^7.1.2",
9999
"npm-package-arg": "^13.0.0",
100100
"npm-pick-manifest": "^11.0.1",
101101
"npm-profile": "^12.0.0",

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
1616
verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
1717
silly logfile done cleaning log files
1818
warn EBADDEVENGINES The developer of this package has specified the following through devEngines
19-
warn EBADDEVENGINES Invalid engine "runtime"
19+
warn EBADDEVENGINES Invalid devEngines.runtime
2020
warn EBADDEVENGINES Invalid semver version "0.0.1" does not match "v1337.0.0" for "runtime"
2121
warn EBADDEVENGINES {
2222
warn EBADDEVENGINES current: { name: 'node', version: 'v1337.0.0' },
@@ -132,14 +132,14 @@ verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
132132
verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
133133
silly logfile done cleaning log files
134134
verbose stack Error: The developer of this package has specified the following through devEngines
135-
verbose stack Invalid engine "runtime"
135+
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:181:27)
138138
verbose stack at MockNpm.#exec ({CWD}/lib/npm.js:252:7)
139139
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:208:9)
140140
error code EBADDEVENGINES
141141
error EBADDEVENGINES The developer of this package has specified the following through devEngines
142-
error EBADDEVENGINES Invalid engine "runtime"
142+
error EBADDEVENGINES Invalid devEngines.runtime
143143
error EBADDEVENGINES Invalid name "nondescript" does not match "node" for "runtime"
144144
error EBADDEVENGINES {
145145
error EBADDEVENGINES current: { name: 'node', version: 'v1337.0.0' },
@@ -158,13 +158,13 @@ verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
158158
verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
159159
silly logfile done cleaning log files
160160
warn EBADDEVENGINES The developer of this package has specified the following through devEngines
161-
warn EBADDEVENGINES Invalid engine "runtime"
161+
warn EBADDEVENGINES Invalid devEngines.runtime
162162
warn EBADDEVENGINES Invalid name "nondescript" does not match "node" for "runtime"
163163
warn EBADDEVENGINES {
164164
warn EBADDEVENGINES current: { name: 'node', version: 'v1337.0.0' },
165165
warn EBADDEVENGINES required: { name: 'nondescript', onFail: 'warn' }
166166
warn EBADDEVENGINES }
167-
warn EBADDEVENGINES Invalid engine "cpu"
167+
warn EBADDEVENGINES Invalid devEngines.cpu
168168
warn EBADDEVENGINES Invalid name "risv" does not match "x86" for "cpu"
169169
warn EBADDEVENGINES {
170170
warn EBADDEVENGINES current: { name: 'x86' },
@@ -190,21 +190,21 @@ verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
190190
verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
191191
silly logfile done cleaning log files
192192
warn EBADDEVENGINES The developer of this package has specified the following through devEngines
193-
warn EBADDEVENGINES Invalid engine "cpu"
193+
warn EBADDEVENGINES Invalid devEngines.cpu
194194
warn EBADDEVENGINES Invalid name "risv" does not match "x86" for "cpu"
195195
warn EBADDEVENGINES {
196196
warn EBADDEVENGINES current: { name: 'x86' },
197197
warn EBADDEVENGINES required: { name: 'risv', onFail: 'warn' }
198198
warn EBADDEVENGINES }
199199
verbose stack Error: The developer of this package has specified the following through devEngines
200-
verbose stack Invalid engine "runtime"
200+
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:181:27)
203203
verbose stack at MockNpm.#exec ({CWD}/lib/npm.js:252:7)
204204
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:208:9)
205205
error code EBADDEVENGINES
206206
error EBADDEVENGINES The developer of this package has specified the following through devEngines
207-
error EBADDEVENGINES Invalid engine "runtime"
207+
error EBADDEVENGINES Invalid devEngines.runtime
208208
error EBADDEVENGINES Invalid name "nondescript" does not match "node" for "runtime"
209209
error EBADDEVENGINES {
210210
error EBADDEVENGINES current: { name: 'node', version: 'v1337.0.0' },
@@ -223,14 +223,14 @@ verbose logfile logs-max:10 dir:{CWD}/cache/_logs/{DATE}-
223223
verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
224224
silly logfile done cleaning log files
225225
verbose stack Error: The developer of this package has specified the following through devEngines
226-
verbose stack Invalid engine "runtime"
226+
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:181:27)
229229
verbose stack at MockNpm.#exec ({CWD}/lib/npm.js:252:7)
230230
verbose stack at MockNpm.exec ({CWD}/lib/npm.js:208:9)
231231
error code EBADDEVENGINES
232232
error EBADDEVENGINES The developer of this package has specified the following through devEngines
233-
error EBADDEVENGINES Invalid engine "runtime"
233+
error EBADDEVENGINES Invalid devEngines.runtime
234234
error EBADDEVENGINES Invalid name "nondescript" does not match "node" for "runtime"
235235
error EBADDEVENGINES {
236236
error EBADDEVENGINES current: { name: 'node', version: 'v1337.0.0' },
@@ -250,7 +250,7 @@ verbose logfile {CWD}/cache/_logs/{DATE}-debug-0.log
250250
warn using --force Recommended protections disabled.
251251
silly logfile done cleaning log files
252252
warn EBADDEVENGINES The developer of this package has specified the following through devEngines
253-
warn EBADDEVENGINES Invalid engine "runtime"
253+
warn EBADDEVENGINES Invalid devEngines.runtime
254254
warn EBADDEVENGINES Invalid name "nondescript" does not match "node" for "runtime"
255255
warn EBADDEVENGINES {
256256
warn EBADDEVENGINES current: { name: 'node', version: 'v1337.0.0' },

0 commit comments

Comments
 (0)