Skip to content

Commit

Permalink
πŸ• Fix export format for Buffer service
Browse files Browse the repository at this point in the history
  • Loading branch information
jjpaulino committed Jun 26, 2023
1 parent 68f1bd5 commit 18205ef
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions lib/utils/buffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
// An example of this is a smart quote ’ -- That value is going to be encoded to `%E2%80%99`.
// We store the actual symbol in our database, not the encoded value, so, when decoding it, we ensure we can get the direct symbol
// and, in consequence, the page we're looking for.
import { encode, decode } from 'js-base64';
import * as Buffer from 'js-base64';

module.exports.encode = encode;
module.exports.decode = decode;
export function encode(uri) {
return Buffer.encode(uri);
};

export function decode(uri) {
return Buffer.decode(uri);
};

0 comments on commit 18205ef

Please sign in to comment.