Skip to content

Commit

Permalink
[Deps] update @npm/arborist
Browse files Browse the repository at this point in the history
  • Loading branch information
forivall authored and ljharb committed Jul 22, 2022
1 parent e4bc39d commit b809c0c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions getLockfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const colors = require('colors/safe');
const { Arborist } = require('@npmcli/arborist');
const { stat } = require('fs').promises;

module.exports = async function getLockfile(packageFile, date = void undefined, { only } = {}) {
module.exports = async function getLockfile(packageFile, date = void undefined, options = {}) {
if (typeof packageFile !== 'string' || packageFile.length === 0) {
throw colors.red(`\`packageFile\` must be a non-empty string; got ${inspect(packageFile)}`);
}
Expand All @@ -22,7 +22,7 @@ module.exports = async function getLockfile(packageFile, date = void undefined,
const arb = new Arborist({
path: pkgDir,
before: date,
only,
...options,
});

const { meta } = await arb.buildIdealTree();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
},
"homepage": "https://github.com/ljharb/npm-lockfile#readme",
"dependencies": {
"@npmcli/arborist": "^4.3.1",
"@npmcli/arborist": "^5.3.0",
"colors": "=1.4.0",
"find-package-json": "^1.2.0",
"object-inspect": "^1.12.2",
Expand Down

0 comments on commit b809c0c

Please sign in to comment.