go-macaroon / js-macaroon

Javascript implementation of macaroons
BSD 3-Clause "New" or "Revised" License
41 stars 22 forks source link

unexport Macaroon class #12

Closed rogpeppe closed 7 years ago

rogpeppe commented 7 years ago

Change the single constructor to something we only use internally and provide newMacaroon and importFromJSONObject functions that construct macaroons using the internal constructor.

Also rename js-macaroon.js to macaroon.js, add LICENSE file and reorder package.json attributes in preparation for merge with original js-macaroon branch.