Skip to content

Commit ca6b6d9

Browse files
committedMar 9, 2024
refactor: remove usage of _.values
1 parent 8f98129 commit ca6b6d9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/license-plugin.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ class LicensePlugin {
307307
}
308308

309309
const includePrivate = thirdParty.includePrivate || false;
310-
const outputDependencies = _.values(this._dependencies).filter((dependency) => (
310+
const outputDependencies = Object.values(this._dependencies).filter((dependency) => (
311311
includePrivate || !dependency.private
312312
));
313313

@@ -429,7 +429,7 @@ class LicensePlugin {
429429

430430
// Generate the banner.
431431
const pkg = this._pkg;
432-
const dependencies = _.values(this._dependencies);
432+
const dependencies = Object.values(this._dependencies);
433433
const data = banner.data ? _.result(banner, 'data') : {};
434434
const text = tmpl({_, moment, pkg, dependencies, data});
435435

0 commit comments

Comments
 (0)
Please sign in to comment.