github fergiemcdowall/search-index v0.15.2

latest releases: v5.1.3, v5.0.0, v3.3.0...
5 years ago

As per #471 ->

"
I'm using search-index@0.15.1 with levelup and redis as a db.
I'm not using leveldown/levelDB so I don't want to install it (plus, it doesn't build on the specific node-alpine version I am targeting), that's why I am installing search-index with the --no-optional option.

The problem is, despite leveldown being marked as optional, it's required at the top of the search-index/index.js, so when I start my app it immediately crashes, complaining about leveldown not being resolvable.

The fix is easy: move the require down, so that it's only executed when necessary.
"

Don't miss a new search-index release

NewReleases is sending notifications on new releases.