-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: iconVersionId wrong encode decode #156
Conversation
Co-authored-by: Gregor MacLennan <[email protected]>
Co-authored-by: Gregor MacLennan <[email protected]>
in protobufs, enums need to start at 0, so we can't align the numbers...
…IconWrongEncodeDecode
Not super sure about the changes here. Makes me wonder if the That has a |
Yeah, I think that makes a lot of sense. I made it those changes on the last commit but now I have a type error because |
Co-authored-by: Gregor MacLennan <[email protected]>
on
src/lib/{encode,decode}-conversions.js
when converting theiconVersionId
forIconVariant
we where encoding//decoding the string as 'hex'.Since the strings has a slash ('/'), we where losing it when encoding the document.
Tests weren't failing since we weren't generating a valid
versionId
(without the/${index}
)Buffer.from(string, 'utf-8')
andbuf.toString('utf-8')
is safe