Skip to content
This repository was archived by the owner on Feb 25, 2022. It is now read-only.

Commit c2c6fe9

Browse files
authoredJun 17, 2018
Merge pull request #18 from jacob-lassen/lodash-nsp-fix
Depend on lodash.flatten instead of lodash
2 parents 6c9d291 + 04107e4 commit c2c6fe9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎lib/Discoverable.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Promise from "bluebird";
2-
import _ from "lodash";
2+
import flatten from "lodash.flatten";
33
import f from "fs";
44

55
let fs = Promise.promisifyAll(f);
@@ -28,7 +28,7 @@ class Discoverable {
2828
return this._dive(location)
2929
.then((results) => {
3030
this._log("debug", "Flattening results");
31-
return _.flatten(results, true);
31+
return flatten(results, true);
3232
})
3333
.filter((value) => {
3434
return value !== false

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
],
2828
"dependencies": {
2929
"bluebird": "^2.10.2",
30-
"lodash": "^3.10.1"
30+
"lodash.flatten": "^4.4.0"
3131
},
3232
"peerDependencies": {
3333
"sequelize": ">=4.0"

0 commit comments

Comments
 (0)
This repository has been archived.