diff --git a/src/base16.js b/src/base16.js index 0f22f33..74a8ead 100644 --- a/src/base16.js +++ b/src/base16.js @@ -9,6 +9,6 @@ export function parse (string, opts) { return codec.parse(string.toUpperCase(), encoding, opts) } -export function stringify (data, opts) { - return codec.stringify(data, encoding, opts) +export function stringify (data) { + return codec.stringify(data, encoding) } diff --git a/src/base32.js b/src/base32.js index fe6b0a5..2a701a5 100644 --- a/src/base32.js +++ b/src/base32.js @@ -9,6 +9,6 @@ export function parse (string, opts) { return codec.parse(string, encoding, opts) } -export function stringify (data, opts) { - return codec.stringify(data, encoding, opts) +export function stringify (data) { + return codec.stringify(data, encoding) } diff --git a/src/base32hex.js b/src/base32hex.js index d5a7cd8..508eafc 100644 --- a/src/base32hex.js +++ b/src/base32hex.js @@ -9,6 +9,6 @@ export function parse (string, opts) { return codec.parse(string, encoding, opts) } -export function stringify (data, opts) { - return codec.stringify(data, encoding, opts) +export function stringify (data) { + return codec.stringify(data, encoding) } diff --git a/src/base64.js b/src/base64.js index 9d727a2..4692990 100644 --- a/src/base64.js +++ b/src/base64.js @@ -9,6 +9,6 @@ export function parse (string, opts) { return codec.parse(string, encoding, opts) } -export function stringify (data, opts) { - return codec.stringify(data, encoding, opts) +export function stringify (data) { + return codec.stringify(data, encoding) } diff --git a/src/base64url.js b/src/base64url.js index 59d3dbe..b7ae83e 100644 --- a/src/base64url.js +++ b/src/base64url.js @@ -9,6 +9,6 @@ export function parse (string, opts) { return codec.parse(string, encoding, opts) } -export function stringify (data, opts) { - return codec.stringify(data, encoding, opts) +export function stringify (data) { + return codec.stringify(data, encoding) } diff --git a/src/codec.js b/src/codec.js index f8db16a..7db2ee8 100644 --- a/src/codec.js +++ b/src/codec.js @@ -68,7 +68,7 @@ export function parse (string, encoding, opts = {}) { return out } -export function stringify (data, encoding, opts = {}) { +export function stringify (data, encoding) { let out = '' let bits = 0 // Number of bits currently in the buffer