batoulapps / adhan-js

High precision Islamic prayer time library for JavaScript
MIT License
376 stars 86 forks source link

Fix backwards compatibility with commonjs #111

Closed sgtsquiggs closed 2 years ago

sgtsquiggs commented 2 years ago

As-is you cannot var adhan = require('adhan'); and have the same functionality as before. With this MR, commonjs usage will remain the same.

codecov[bot] commented 2 years ago

Codecov Report

Merging #111 (6a137e9) into master (a9620ff) will increase coverage by 0.01%. The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #111      +/-   ##
==========================================
+ Coverage   99.21%   99.22%   +0.01%     
==========================================
  Files          19       19              
  Lines         636      646      +10     
  Branches      123      123              
==========================================
+ Hits          631      641      +10     
  Misses          5        5              
Impacted Files Coverage Δ
src/Adhan.ts 100.00% <ø> (ø)

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 a9620ff...6a137e9. Read the comment docs.

github-actions[bot] commented 2 years ago

:tada: This PR is included in version 4.4.2 :tada:

The release is available on:

Your semantic-release bot :package::rocket: