Skip to content
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

Drop support for Node 14 #1246

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
update pacote
mansona committed Aug 31, 2023
commit 854db20e9031be72e834b0e763ec36a619841d69
6,253 changes: 4,787 additions & 1,466 deletions package-lock.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -35,12 +35,13 @@
"version": "git add README.md"
},
"dependencies": {
"@npmcli/arborist": "^6.3.0",
"boilerplate-update": "^2.1.1",
"debug": "^4.2.0",
"execa": "^5.0.0",
"fs-extra": "^10.0.0",
"inquirer": "^8.0.0",
"pacote": "^13.6.0",
"pacote": "^17.0.4",
"resolve": "^1.10.0",
"semver": "^7.3.2",
"tmp": "0.2.1",
5 changes: 4 additions & 1 deletion src/download-package.js
Original file line number Diff line number Diff line change
@@ -4,6 +4,7 @@ const path = require('path');
const { createTmpDir } = require('./tmp');
const pacote = require('pacote');
const { mkdir } = require('fs/promises');
const Arborist = require('@npmcli/arborist');

/**
* Download the package in a temporary location and read the contents of the package.json
@@ -32,7 +33,9 @@ async function downloadPackage(name, url, range) {

await mkdir(_path);

await pacote.extract(url, _path);
await pacote.extract(url, _path, {
Arborist
});

return {
name: manifest.name,