Skip to content

Commit

Permalink
refactor: remove usage of _.values
Browse files Browse the repository at this point in the history
  • Loading branch information
mjeanroy committed Mar 9, 2024
1 parent 8f98129 commit ca6b6d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/license-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class LicensePlugin {
}

const includePrivate = thirdParty.includePrivate || false;
const outputDependencies = _.values(this._dependencies).filter((dependency) => (
const outputDependencies = Object.values(this._dependencies).filter((dependency) => (
includePrivate || !dependency.private
));

Expand Down Expand Up @@ -429,7 +429,7 @@ class LicensePlugin {

// Generate the banner.
const pkg = this._pkg;
const dependencies = _.values(this._dependencies);
const dependencies = Object.values(this._dependencies);
const data = banner.data ? _.result(banner, 'data') : {};
const text = tmpl({_, moment, pkg, dependencies, data});

Expand Down

0 comments on commit ca6b6d9

Please sign in to comment.