JKHeadley / rest-hapi

🚀 A RESTful API generator for Node.js
https://resthapi.com
MIT License
1.19k stars 153 forks source link

Add a config for ESM compatibility #253

Open hmenzagh opened 4 years ago

hmenzagh commented 4 years ago

Simple PR to add a config.esm property to load models on the .default in the case that ESM is used

codecov[bot] commented 4 years ago

Codecov Report

Merging #253 into master will increase coverage by 0.01%. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #253      +/-   ##
==========================================
+ Coverage   81.49%   81.51%   +0.01%     
==========================================
  Files          24       24              
  Lines        2804     2807       +3     
==========================================
+ Hits         2285     2288       +3     
  Misses        519      519              
Impacted Files Coverage Δ
config.js 100.00% <100.00%> (ø)
rest-hapi.js 90.81% <100.00%> (ø)
utilities/joi-mongoose-helper.js 89.20% <100.00%> (ø)
utilities/model-generator.js 82.00% <100.00%> (+0.36%) :arrow_up:
utilities/rest-helper-factory.js 80.39% <100.00%> (+0.03%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update ff05901...e6bb071. Read the comment docs.