Skip to content

Commit

Permalink
Add Base64Url encoding (#56)
Browse files Browse the repository at this point in the history
* Add Base64Url encoding
  • Loading branch information
JordanMartinez authored Jul 5, 2023
1 parent e3fd539 commit c447cb5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ New features:
- `INSPECT_MAX_BYTES`: https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufferinspect_max_bytes
- `MAX_LENGTH`: https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufferconstantsmax_length
- `MAX_STRING_LENGTH`: https://nodejs.org/docs/latest-v18.x/api/buffer.html#bufferconstantsmax_string_length

- Added a new data constructor for `Encoding`: `Base64Url` (#56 by @JordanMartinez)

Bugfixes:

Expand Down
3 changes: 3 additions & 0 deletions src/Node/Encoding.purs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ data Encoding
| UTF16LE
| UCS2
| Base64
| Base64Url
| Latin1
| Binary
| Hex
Expand All @@ -24,6 +25,7 @@ instance showEncoding :: Show Encoding where
show UTF16LE = "UTF16LE"
show UCS2 = "UCS2"
show Base64 = "Base64"
show Base64Url = "Base64Url"
show Latin1 = "Latin1"
show Binary = "Binary"
show Hex = "Hex"
Expand All @@ -36,6 +38,7 @@ encodingToNode UTF8 = "utf8"
encodingToNode UTF16LE = "utf16le"
encodingToNode UCS2 = "ucs2"
encodingToNode Base64 = "base64"
encodingToNode Base64Url = "base64url"
encodingToNode Latin1 = "latin1"
encodingToNode Binary = "binary"
encodingToNode Hex = "hex"
Expand Down

0 comments on commit c447cb5

Please sign in to comment.