Skip to content
This repository has been archived by the owner on Jul 31, 2021. It is now read-only.

Commit

Permalink
fix undefined arrays (#144)
Browse files Browse the repository at this point in the history
* fix undefined arrays

* 5.5.1

* fix

* fix areArraysEquals function

* lint fix
  • Loading branch information
luisbritos authored Apr 21, 2021
1 parent 67aa629 commit c29de35
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth0-source-control-extension-tools",
"version": "5.5.0",
"version": "5.5.1",
"description": "Supporting tools for the Source Control extensions",
"main": "lib/index.js",
"scripts": {
Expand Down
5 changes: 1 addition & 4 deletions src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,5 @@ export function filterExcluded(changes, exclude) {
}

export function areArraysEquals(x, y) {
if (x.length !== y.length) {
return false;
}
return _(x).differenceWith(y, _.isEqual).isEmpty();
return _.isEqual(x && x.sort(), y && y.sort());
}

0 comments on commit c29de35

Please sign in to comment.