Skip to content

Commit 14c9f47

Browse files
committed
Update base64 version
1 parent 319e6c0 commit 14c9f47

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "emailjs-utf7",
33
"main": "dist/utf7.js",
4-
"version": "4.0.0",
4+
"version": "4.0.1",
55
"homepage": "https://github.com/emailjs/emailjs-utf7",
66
"author": "Konstantin Käfer",
77
"description": "Converts text to and from UTF-7 (RFC 2152 and IMAP)",
@@ -24,7 +24,7 @@
2424
},
2525
"license": "MIT",
2626
"dependencies": {
27-
"emailjs-base64": "^1.0.3"
27+
"emailjs-base64": "^1.1.2"
2828
},
2929
"devDependencies": {
3030
"babel-cli": "^6.26.0",

src/utf7.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { encode as encodeBase64, decode as decodeBase64 } from 'emailjs-base64'
1+
import { encode as encodeBase64, decode as decodeBase64, OUTPUT_TYPED_ARRAY } from 'emailjs-base64'
22

33
function encodeToUTF7 (str) {
44
const b = new Uint8Array(str.length * 2)
@@ -14,7 +14,7 @@ function encodeToUTF7 (str) {
1414
}
1515

1616
function decodeFromUTF7 (str) {
17-
const octets = decodeBase64(str)
17+
const octets = decodeBase64(str, OUTPUT_TYPED_ARRAY)
1818
let output = ''
1919

2020
// In modified UTF-7, all characters are represented by their two byte Unicode ID.

0 commit comments

Comments
 (0)