Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
2 changes: 1 addition & 1 deletion lib/bin/citgm-all.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const yargs = commonArgs()
.example('citgm-all --includeTags express', 'Only test express.')
.example('citgm-all --excludeTags native', "Don't test native modules.");

const app = yargs.argv;
const app = yargs.parse();

const log = logger({
level: app.verbose,
Expand Down
2 changes: 1 addition & 1 deletion lib/bin/citgm.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const yargs = commonArgs().usage('citgm [options] <module>').option('sha', {
description: 'Install module from commit-sha, branch or tag'
});

const app = yargs.argv;
const app = yargs.parse();

mod = app._[0];

Expand Down
6 changes: 5 additions & 1 deletion lib/grab-project.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,14 +107,18 @@ export async function grabProject(context) {
});
}

const downloadAgent = new undici.Agent().compose(
undici.interceptors.redirect({ maxRedirections: 5 })
);

async function downloadPackage(packageUrl, context, timeout) {
const filename = path.basename(packageUrl);
const out = path.join(context.path, filename);

const request = await undici.request(packageUrl, {
headersTimeout: timeout,
bodyTimeout: timeout,
maxRedirections: 5
dispatcher: downloadAgent
});

await pipeline(request.body, createWriteStream(out));
Expand Down
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,39 +36,39 @@
"dependencies": {
"@npmcli/package-json": "^7.0.0",
"async": "^3.2.6",
"bl": "^6.0.16",
"chalk": "^5.4.0",
"bl": "^6.1.3",
"chalk": "^5.6.2",
"columnify": "^1.6.0",
"execa": "^9.5.2",
"execa": "^9.6.0",
"lodash": "^4.17.21",
"normalize-git-url": "^3.0.2",
"npm-package-arg": "^12.0.1",
"npm-package-arg": "^13.0.0",
"npm-which": "^3.0.1",
"pnpm": "^9.15.1",
"pnpm": "^10.15.1",
"root-check": "^2.0.0",
"semver": "^7.6.3",
"strip-ansi": "^7.1.0",
"supports-color": "^10.0.0",
"semver": "^7.7.2",
"strip-ansi": "^7.1.2",
"supports-color": "^10.2.2",
"tar": "^7.4.3",
"uid-number": "0.0.6",
"undici": "^6.21.0",
"undici": "^7.16.0",
"which": "^5.0.0",
"winston": "^3.17.0",
"xml-sanitizer": "^2.0.2",
"xmlbuilder": "^15.1.1",
"yargs": "^17.7.2",
"yargs": "^18.0.0",
"yarn": "^1.22.22"
},
"devDependencies": {
"@eslint/js": "^9.17.0",
"ansi-regex": "^6.1.0",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"globals": "^15.14.0",
"prettier": "^3.4.2",
"@eslint/js": "^9.35.0",
"ansi-regex": "^6.2.2",
"eslint": "^9.35.0",
"eslint-config-prettier": "^10.1.8",
"globals": "^16.4.0",
"prettier": "^3.6.2",
"string-to-stream": "^3.0.1",
"tap": "^20.0.3",
"tap-parser": "^17.0.0",
"tap": "^21.1.0",
"tap-parser": "^18.0.0",
"xml2js": "^0.6.2"
},
"prettier": {
Expand Down
Loading