File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 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)" ,
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" ,
Original file line number Diff line number Diff line change 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
33function encodeToUTF7 ( str ) {
44 const b = new Uint8Array ( str . length * 2 )
@@ -14,7 +14,7 @@ function encodeToUTF7 (str) {
1414}
1515
1616function 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.
You can’t perform that action at this time.
0 commit comments