Skip to content

Align engine range ^18.17.0 || >=20.5.0 #7803

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 59 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
a9e7059
chore: engine ^18.17.0 || >=20.5.0 in package template
reggi Oct 2, 2024
5030cc0
fix!: align libnpmversion to npm 10 node engine range
reggi Oct 2, 2024
5b93465
fix!: align libnpmteam to npm 10 node engine range
reggi Oct 2, 2024
2380232
fix!: align libnpmsearch to npm 10 node engine range
reggi Oct 2, 2024
327cfb2
fix!: align libnpmpublish to npm 10 node engine range
reggi Oct 2, 2024
f4e34b1
fix!: align libnpmpack to npm 10 node engine range
reggi Oct 2, 2024
b4fa422
fix!: align libnpmorg to npm 10 node engine range
reggi Oct 2, 2024
8be5530
fix!: align libnpmhook to npm 10 node engine range
reggi Oct 2, 2024
8c81ccf
fix!: align libnpmfund to npm 10 node engine range
reggi Oct 2, 2024
0cbf70c
fix!: align libnpmexec to npm 10 node engine range
reggi Oct 2, 2024
774c18d
fix!: align libnpmdiff to npm 10 node engine range
reggi Oct 2, 2024
9483fa8
fix!: align libnpmaccess to npm 10 node engine range
reggi Oct 2, 2024
fadeba3
fix!: align @npmcli/config to npm 10 node engine range
reggi Oct 2, 2024
28b38bf
fix!: align @npmcli/arborist to npm 10 node engine range
reggi Oct 2, 2024
8a2fba2
deps: update @npmcli/fs@4.0.0
reggi Oct 2, 2024
4e04f44
deps: update @npmcli/map-workspaces@4.0.1
reggi Oct 2, 2024
91a1d41
deps: update @npmcli/package-json@6.0.1
reggi Oct 2, 2024
794b1a7
deps: update @npmcli/promise-spawn@8.0.1
reggi Oct 2, 2024
8287d9a
deps: update @npmcli/redact@3.0.0
reggi Oct 2, 2024
b3095b9
deps: update @npmcli/run-script@9.0.1
reggi Oct 2, 2024
3be174a
deps: update abbrev@3.0.0
reggi Oct 2, 2024
5d3b8a8
deps: update cacache@19.0.1
reggi Oct 2, 2024
0ee74b3
deps: update hosted-git-info@8.0.0
reggi Oct 2, 2024
e5ce0de
deps: update ini@5.0.0
reggi Oct 2, 2024
de6600e
deps: update init-package-json@7.0.1
reggi Oct 2, 2024
e331741
deps: update json-parse-even-better-errors@4.0.0
reggi Oct 2, 2024
9e731da
deps: update make-fetch-happen@14.0.1
reggi Oct 2, 2024
47088cd
deps: update nopt@8.0.0
reggi Oct 2, 2024
e7155bb
deps: update normalize-package-data@7.0.0
reggi Oct 2, 2024
42ea103
deps: update npm-audit-report@6.0.0
reggi Oct 2, 2024
c45d6a0
deps: update npm-install-checks@7.1.0
reggi Oct 2, 2024
47822dd
deps: update npm-package-arg@12.0.0
reggi Oct 2, 2024
0aa9e9c
deps: update npm-pick-manifest@10.0.0
reggi Oct 2, 2024
35cb582
deps: update npm-profile@11.0.1
reggi Oct 2, 2024
2fa6f1d
deps: update npm-registry-fetch@18.0.1
reggi Oct 2, 2024
7e4405e
deps: update npm-user-validate@3.0.0
reggi Oct 2, 2024
969425c
deps: update pacote@19.0.0
reggi Oct 2, 2024
7127081
deps: update parse-conflict-json@4.0.0
reggi Oct 2, 2024
a714252
deps: update proc-log@5.0.0
reggi Oct 2, 2024
7d44323
deps: update read@4.0.0
reggi Oct 2, 2024
1a8ac96
deps: update ssri@12.0.0
reggi Oct 2, 2024
6b75de7
deps: update validate-npm-package-name@6.0.0
reggi Oct 2, 2024
effe669
deps: update which@5.0.0
reggi Oct 2, 2024
5bb933b
deps: update write-file-atomic@6.0.0
reggi Oct 2, 2024
88392e4
deps: update @npmcli/git@6.0.1
reggi Oct 2, 2024
033fb3b
deps: update read-package-json-fast@4.0.0
reggi Oct 2, 2024
d4c1869
deps: update @npmcli/installed-package-contents@3.0.0
reggi Oct 2, 2024
3e2e8cb
deps: update @npmcli/metavuln-calculator@8.0.0
reggi Oct 2, 2024
223d281
deps: update @npmcli/name-from-folder@3.0.0
reggi Oct 2, 2024
2dd0b3b
deps: update @npmcli/node-gyp@4.0.0
reggi Oct 2, 2024
bd49c3b
deps: update @npmcli/query@4.0.0
reggi Oct 2, 2024
928c80b
deps: update bin-links@5.0.0
reggi Oct 2, 2024
6d27382
deps: update proggy@3.0.0
reggi Oct 2, 2024
950d2bd
chore: update @npmcli/eslint-config@5.0.1
reggi Oct 2, 2024
0801c85
chore: update npm-packlist@9.0.0
reggi Oct 2, 2024
f2d0f61
chore: update ignore-walk@7.0.0
reggi Oct 2, 2024
0366fc6
chore: update minify-registry-metadata@4.0.0
reggi Oct 2, 2024
cf8847d
deps: hoist minipass-fetch
reggi Oct 2, 2024
972579c
deps: hoist npm-normalize-package-bin
reggi Oct 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
deps: update @npmcli/promise-spawn@8.0.1
  • Loading branch information
reggi committed Oct 2, 2024
commit 794b1a71c91d460d0ddbd556311f9deb36297948
12 changes: 11 additions & 1 deletion node_modules/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
!/@npmcli/agent
!/@npmcli/fs
!/@npmcli/git
!/@npmcli/git/node_modules/
/@npmcli/git/node_modules/*
!/@npmcli/git/node_modules/@npmcli/
/@npmcli/git/node_modules/@npmcli/*
!/@npmcli/git/node_modules/@npmcli/promise-spawn
!/@npmcli/installed-package-contents
!/@npmcli/map-workspaces
!/@npmcli/map-workspaces/node_modules/
Expand All @@ -34,7 +39,6 @@
!/@npmcli/package-json/node_modules/@npmcli/
/@npmcli/package-json/node_modules/@npmcli/*
!/@npmcli/package-json/node_modules/@npmcli/git
!/@npmcli/package-json/node_modules/@npmcli/promise-spawn
!/@npmcli/package-json/node_modules/hosted-git-info
!/@npmcli/package-json/node_modules/ini
!/@npmcli/package-json/node_modules/isexe
Expand All @@ -48,6 +52,10 @@
!/@npmcli/package-json/node_modules/validate-npm-package-name
!/@npmcli/package-json/node_modules/which
!/@npmcli/promise-spawn
!/@npmcli/promise-spawn/node_modules/
/@npmcli/promise-spawn/node_modules/*
!/@npmcli/promise-spawn/node_modules/isexe
!/@npmcli/promise-spawn/node_modules/which
!/@npmcli/query
!/@npmcli/redact
!/@npmcli/run-script
Expand All @@ -56,6 +64,7 @@
!/@npmcli/run-script/node_modules/@npmcli/
/@npmcli/run-script/node_modules/@npmcli/*
!/@npmcli/run-script/node_modules/@npmcli/package-json
!/@npmcli/run-script/node_modules/@npmcli/promise-spawn
!/@pkgjs/
/@pkgjs/*
!/@pkgjs/parseargs
Expand Down Expand Up @@ -194,6 +203,7 @@
!/pacote/node_modules/@npmcli/
/pacote/node_modules/@npmcli/*
!/pacote/node_modules/@npmcli/package-json
!/pacote/node_modules/@npmcli/promise-spawn
!/parse-conflict-json
!/path-key
!/path-scurry
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"name": "@npmcli/promise-spawn",
"version": "7.0.2",
"files": [
"bin/",
"lib/"
],
"main": "./lib/index.js",
"description": "spawn processes the way the npm cli likes to do",
"repository": {
"type": "git",
"url": "git+https://github.com/npm/promise-spawn.git"
},
"author": "GitHub Inc.",
"license": "ISC",
"scripts": {
"test": "tap",
"snap": "tap",
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
"lintfix": "npm run lint -- --fix",
"posttest": "npm run lint",
"postsnap": "npm run lintfix --",
"postlint": "template-oss-check",
"template-oss-apply": "template-oss-apply --force"
},
"tap": {
"check-coverage": true,
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
},
"devDependencies": {
"@npmcli/eslint-config": "^4.0.0",
"@npmcli/template-oss": "4.22.0",
"spawk": "^1.7.1",
"tap": "^16.0.1"
},
"engines": {
"node": "^16.14.0 || >=18.0.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.22.0",
"publish": true
},
"dependencies": {
"which": "^4.0.0"
}
}
15 changes: 15 additions & 0 deletions node_modules/@npmcli/promise-spawn/node_modules/isexe/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
The ISC License

Copyright (c) 2016-2022 Isaac Z. Schlueter and Contributors

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.sync = exports.isexe = exports.posix = exports.win32 = void 0;
const posix = __importStar(require("./posix.js"));
exports.posix = posix;
const win32 = __importStar(require("./win32.js"));
exports.win32 = win32;
__exportStar(require("./options.js"), exports);
const platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform;
const impl = platform === 'win32' ? win32 : posix;
/**
* Determine whether a path is executable on the current platform.
*/
exports.isexe = impl.isexe;
/**
* Synchronously determine whether a path is executable on the
* current platform.
*/
exports.sync = impl.sync;
//# sourceMappingURL=index.js.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
//# sourceMappingURL=options.js.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "commonjs"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
"use strict";
/**
* This is the Posix implementation of isexe, which uses the file
* mode and uid/gid values.
*
* @module
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.sync = exports.isexe = void 0;
const fs_1 = require("fs");
const promises_1 = require("fs/promises");
/**
* Determine whether a path is executable according to the mode and
* current (or specified) user and group IDs.
*/
const isexe = async (path, options = {}) => {
const { ignoreErrors = false } = options;
try {
return checkStat(await (0, promises_1.stat)(path), options);
}
catch (e) {
const er = e;
if (ignoreErrors || er.code === 'EACCES')
return false;
throw er;
}
};
exports.isexe = isexe;
/**
* Synchronously determine whether a path is executable according to
* the mode and current (or specified) user and group IDs.
*/
const sync = (path, options = {}) => {
const { ignoreErrors = false } = options;
try {
return checkStat((0, fs_1.statSync)(path), options);
}
catch (e) {
const er = e;
if (ignoreErrors || er.code === 'EACCES')
return false;
throw er;
}
};
exports.sync = sync;
const checkStat = (stat, options) => stat.isFile() && checkMode(stat, options);
const checkMode = (stat, options) => {
const myUid = options.uid ?? process.getuid?.();
const myGroups = options.groups ?? process.getgroups?.() ?? [];
const myGid = options.gid ?? process.getgid?.() ?? myGroups[0];
if (myUid === undefined || myGid === undefined) {
throw new Error('cannot get uid or gid');
}
const groups = new Set([myGid, ...myGroups]);
const mod = stat.mode;
const uid = stat.uid;
const gid = stat.gid;
const u = parseInt('100', 8);
const g = parseInt('010', 8);
const o = parseInt('001', 8);
const ug = u | g;
return !!(mod & o ||
(mod & g && groups.has(gid)) ||
(mod & u && uid === myUid) ||
(mod & ug && myUid === 0));
};
//# sourceMappingURL=posix.js.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
"use strict";
/**
* This is the Windows implementation of isexe, which uses the file
* extension and PATHEXT setting.
*
* @module
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.sync = exports.isexe = void 0;
const fs_1 = require("fs");
const promises_1 = require("fs/promises");
/**
* Determine whether a path is executable based on the file extension
* and PATHEXT environment variable (or specified pathExt option)
*/
const isexe = async (path, options = {}) => {
const { ignoreErrors = false } = options;
try {
return checkStat(await (0, promises_1.stat)(path), path, options);
}
catch (e) {
const er = e;
if (ignoreErrors || er.code === 'EACCES')
return false;
throw er;
}
};
exports.isexe = isexe;
/**
* Synchronously determine whether a path is executable based on the file
* extension and PATHEXT environment variable (or specified pathExt option)
*/
const sync = (path, options = {}) => {
const { ignoreErrors = false } = options;
try {
return checkStat((0, fs_1.statSync)(path), path, options);
}
catch (e) {
const er = e;
if (ignoreErrors || er.code === 'EACCES')
return false;
throw er;
}
};
exports.sync = sync;
const checkPathExt = (path, options) => {
const { pathExt = process.env.PATHEXT || '' } = options;
const peSplit = pathExt.split(';');
if (peSplit.indexOf('') !== -1) {
return true;
}
for (let i = 0; i < peSplit.length; i++) {
const p = peSplit[i].toLowerCase();
const ext = path.substring(path.length - p.length).toLowerCase();
if (p && ext === p) {
return true;
}
}
return false;
};
const checkStat = (stat, path, options) => stat.isFile() && checkPathExt(path, options);
//# sourceMappingURL=win32.js.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import * as posix from './posix.js';
import * as win32 from './win32.js';
export * from './options.js';
export { win32, posix };
const platform = process.env._ISEXE_TEST_PLATFORM_ || process.platform;
const impl = platform === 'win32' ? win32 : posix;
/**
* Determine whether a path is executable on the current platform.
*/
export const isexe = impl.isexe;
/**
* Synchronously determine whether a path is executable on the
* current platform.
*/
export const sync = impl.sync;
//# sourceMappingURL=index.js.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export {};
//# sourceMappingURL=options.js.map
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "module"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
/**
* This is the Posix implementation of isexe, which uses the file
* mode and uid/gid values.
*
* @module
*/
import { statSync } from 'fs';
import { stat } from 'fs/promises';
/**
* Determine whether a path is executable according to the mode and
* current (or specified) user and group IDs.
*/
export const isexe = async (path, options = {}) => {
const { ignoreErrors = false } = options;
try {
return checkStat(await stat(path), options);
}
catch (e) {
const er = e;
if (ignoreErrors || er.code === 'EACCES')
return false;
throw er;
}
};
/**
* Synchronously determine whether a path is executable according to
* the mode and current (or specified) user and group IDs.
*/
export const sync = (path, options = {}) => {
const { ignoreErrors = false } = options;
try {
return checkStat(statSync(path), options);
}
catch (e) {
const er = e;
if (ignoreErrors || er.code === 'EACCES')
return false;
throw er;
}
};
const checkStat = (stat, options) => stat.isFile() && checkMode(stat, options);
const checkMode = (stat, options) => {
const myUid = options.uid ?? process.getuid?.();
const myGroups = options.groups ?? process.getgroups?.() ?? [];
const myGid = options.gid ?? process.getgid?.() ?? myGroups[0];
if (myUid === undefined || myGid === undefined) {
throw new Error('cannot get uid or gid');
}
const groups = new Set([myGid, ...myGroups]);
const mod = stat.mode;
const uid = stat.uid;
const gid = stat.gid;
const u = parseInt('100', 8);
const g = parseInt('010', 8);
const o = parseInt('001', 8);
const ug = u | g;
return !!(mod & o ||
(mod & g && groups.has(gid)) ||
(mod & u && uid === myUid) ||
(mod & ug && myUid === 0));
};
//# sourceMappingURL=posix.js.map
Loading
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