From 4c9eb1703bd41555e4ef7c2fc087a349b90c9b4c Mon Sep 17 00:00:00 2001 From: Luke Karrys Date: Mon, 14 Aug 2023 12:12:35 -0700 Subject: [PATCH] deps: npm-install-checks@6.2.0 --- node_modules/npm-install-checks/lib/index.js | 6 +++--- node_modules/npm-install-checks/package.json | 6 +++--- package-lock.json | 10 +++++----- package.json | 2 +- workspaces/arborist/package.json | 2 +- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/node_modules/npm-install-checks/lib/index.js b/node_modules/npm-install-checks/lib/index.js index fa5f593aaac64..f0ba2c07ad081 100644 --- a/node_modules/npm-install-checks/lib/index.js +++ b/node_modules/npm-install-checks/lib/index.js @@ -22,13 +22,13 @@ const checkEngine = (target, npmVer, nodeVer, force = false) => { const isMusl = (file) => file.includes('libc.musl-') || file.includes('ld-musl-') -const checkPlatform = (target, force = false) => { +const checkPlatform = (target, force = false, environment = {}) => { if (force) { return } - const platform = process.platform - const arch = process.arch + const platform = environment.os || process.platform + const arch = environment.cpu || process.arch const osOk = target.os ? checkList(platform, target.os) : true const cpuOk = target.cpu ? checkList(arch, target.cpu) : true diff --git a/node_modules/npm-install-checks/package.json b/node_modules/npm-install-checks/package.json index 192cf68837146..50378808d75d0 100644 --- a/node_modules/npm-install-checks/package.json +++ b/node_modules/npm-install-checks/package.json @@ -1,6 +1,6 @@ { "name": "npm-install-checks", - "version": "6.1.1", + "version": "6.2.0", "description": "Check the engines and platform fields in package.json", "main": "lib/index.js", "dependencies": { @@ -8,7 +8,7 @@ }, "devDependencies": { "@npmcli/eslint-config": "^4.0.0", - "@npmcli/template-oss": "4.13.0", + "@npmcli/template-oss": "4.18.0", "tap": "^16.0.1" }, "scripts": { @@ -39,7 +39,7 @@ "author": "GitHub Inc.", "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "version": "4.13.0", + "version": "4.18.0", "publish": "true" }, "tap": { diff --git a/package-lock.json b/package-lock.json index 1ec44a4ef3744..235a8cde69a93 100644 --- a/package-lock.json +++ b/package-lock.json @@ -130,7 +130,7 @@ "node-gyp": "^9.4.0", "nopt": "^7.2.0", "npm-audit-report": "^5.0.0", - "npm-install-checks": "^6.1.1", + "npm-install-checks": "^6.2.0", "npm-package-arg": "^10.1.0", "npm-pick-manifest": "^8.0.2", "npm-profile": "^8.0.0", @@ -9648,9 +9648,9 @@ } }, "node_modules/npm-install-checks": { - "version": "6.1.1", - "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-6.1.1.tgz", - "integrity": "sha512-dH3GmQL4vsPtld59cOn8uY0iOqRmqKvV+DLGwNXV/Q7MDgD2QfOADWd/mFXcIE5LVhYYGjA3baz6W9JneqnuCw==", + "version": "6.2.0", + "resolved": "https://registry.npmjs.org/npm-install-checks/-/npm-install-checks-6.2.0.tgz", + "integrity": "sha512-744wat5wAAHsxa4590mWO0tJ8PKxR8ORZsH9wGpQc3nWTzozMAgBN/XyqYw7mg3yqLM8dLwEnwSfKMmXAjF69g==", "inBundle": true, "dependencies": { "semver": "^7.1.1" @@ -15830,7 +15830,7 @@ "json-stringify-nice": "^1.1.4", "minimatch": "^9.0.0", "nopt": "^7.0.0", - "npm-install-checks": "^6.0.0", + "npm-install-checks": "^6.2.0", "npm-package-arg": "^10.1.0", "npm-pick-manifest": "^8.0.2", "npm-registry-fetch": "^15.0.0", diff --git a/package.json b/package.json index f2566322556ba..fd1d933953352 100644 --- a/package.json +++ b/package.json @@ -95,7 +95,7 @@ "node-gyp": "^9.4.0", "nopt": "^7.2.0", "npm-audit-report": "^5.0.0", - "npm-install-checks": "^6.1.1", + "npm-install-checks": "^6.2.0", "npm-package-arg": "^10.1.0", "npm-pick-manifest": "^8.0.2", "npm-profile": "^8.0.0", diff --git a/workspaces/arborist/package.json b/workspaces/arborist/package.json index fddf83be9e73e..d17123678953e 100644 --- a/workspaces/arborist/package.json +++ b/workspaces/arborist/package.json @@ -21,7 +21,7 @@ "json-stringify-nice": "^1.1.4", "minimatch": "^9.0.0", "nopt": "^7.0.0", - "npm-install-checks": "^6.0.0", + "npm-install-checks": "^6.2.0", "npm-package-arg": "^10.1.0", "npm-pick-manifest": "^8.0.2", "npm-registry-fetch": "^15.0.0",