jfroelich / rss-reader

A simple Chrome extension for viewing RSS feeds
Other
10 stars 0 forks source link

Reintroduce db module as single api access point #806

Closed jfroelich closed 5 years ago

jfroelich commented 5 years ago

The revision to including directly the helper modules was half right. What I want is a set of functions all in the same module. What I don't want is a mega-class. It is an api coming from one file that internally happens to be implemented in several files.

What I want, is an api to the db module. This is exported from one place, the db.js module. That module re-exports things. Outside the db folder, clients should only access db.js. Inside, like in the test modules, they can directly access private helpers.