Skip to content

Commit

Permalink
Revert "[AWC-1316] fix: Fix dependency with lodash"
Browse files Browse the repository at this point in the history
This reverts commit a2d3504.
  • Loading branch information
sbor767 committed Jun 20, 2023
1 parent a2d3504 commit cbe0a27
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/hdprivatekey.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ HDPrivateKey._getDerivationIndexes = function(path) {
var steps = path.split('/');

// Special cases:
if (_.includes(HDPrivateKey.RootElementAlias, path)) {
if (_.contains(HDPrivateKey.RootElementAlias, path)) {
return [];
}

if (!_.includes(HDPrivateKey.RootElementAlias, steps[0])) {
if (!_.contains(HDPrivateKey.RootElementAlias, steps[0])) {
return null;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"buffer-compare": "=1.0.0",
"elliptic": "=3.0.3",
"inherits": "=2.0.1",
"lodash": "4.17.21"
"lodash": "=3.10.1"
},
"devDependencies": {
"brfs": "^1.2.0",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1293,10 +1293,10 @@ lodash.templatesettings@^3.0.0:
lodash._reinterpolate "^3.0.0"
lodash.escape "^3.0.0"

lodash@4.17.21:
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==
lodash@=3.10.1:
version "3.10.1"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6"
integrity sha1-W/Rejkm6QYnhfUgnid/RW9FAt7Y=

lodash@~1.0.1:
version "1.0.2"
Expand Down

0 comments on commit cbe0a27

Please sign in to comment.