go-macaroon / js-macaroon

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

rename import/export methods #21

Closed rogpeppe closed 7 years ago

rogpeppe commented 7 years ago

We make the following changes in the interests of conciseness, consistency and clarity.

exportToJSONObject becomes exportJSON. serializeBinary becomes exportBinary. importMacaroon replaces importFromJSONObject and deserializeBinary but always imports a single macaroon only. importMacaroons also replaces importFromJSONObject and deserializeBinary but alwaus imports an array of macaroons (it also allows import of a single macaroon, even though it always returns an array).