Closed junderw closed 2 years ago
Nice work. Might be an idea to have tagsObject directly available on the decoded obj (next to tags)?
Feel free to make a PR to this branch. I'll leave this open until you figure out what you want to do.
Currently there are a lot of assumptions baked into the tests which I don't want to break.
Before pushing your new PR, locally run npm ci
to install dependencies and run npm run lint && npm run coverage
to make sure all the lints, tests, and coverage work on your changes. Then push.
I guess it could be made into a getter somehow?
But a lot of the tests check that encode(decode(x)) === decode(x)
sooooo it might be difficult to mix in all those keys.
Tried adding a getter but failed to match fixtures.json. I added tagsObject like I suggested and adjusted the tests.
Great!
published as v1.4.0
Replaces #60
@dylancom Please review.