@frsource/base64 1.0.10 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +0 -23
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +0 -23
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -10,12 +10,10 @@ const _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+
|
|
|
10
10
|
*
|
|
11
11
|
* @param {string} input - Text to encode
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
13
|
const encode = input => {
|
|
15
14
|
let output = "";
|
|
16
15
|
let i = 0;
|
|
17
16
|
input = _utf8_encode(input);
|
|
18
|
-
|
|
19
17
|
while (i < input.length) {
|
|
20
18
|
const chr1 = input.charCodeAt(i++);
|
|
21
19
|
const chr2 = input.charCodeAt(i++);
|
|
@@ -24,16 +22,13 @@ const encode = input => {
|
|
|
24
22
|
const enc2 = (chr1 & 3) << 4 | chr2 >> 4;
|
|
25
23
|
let enc3 = (chr2 & 15) << 2 | chr3 >> 6;
|
|
26
24
|
let enc4 = chr3 & 63;
|
|
27
|
-
|
|
28
25
|
if (isNaN(chr2)) {
|
|
29
26
|
enc3 = enc4 = 64;
|
|
30
27
|
} else if (isNaN(chr3)) {
|
|
31
28
|
enc4 = 64;
|
|
32
29
|
}
|
|
33
|
-
|
|
34
30
|
output = output + _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4);
|
|
35
31
|
}
|
|
36
|
-
|
|
37
32
|
return output;
|
|
38
33
|
};
|
|
39
34
|
/**
|
|
@@ -41,35 +36,26 @@ const encode = input => {
|
|
|
41
36
|
*
|
|
42
37
|
* @param {string} input - Text to decode
|
|
43
38
|
*/
|
|
44
|
-
|
|
45
39
|
const decode = input => {
|
|
46
40
|
let output = "";
|
|
47
41
|
let i = 0;
|
|
48
42
|
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
|
|
49
|
-
|
|
50
43
|
while (i < input.length) {
|
|
51
44
|
const enc1 = _keyStr.indexOf(input.charAt(i++));
|
|
52
|
-
|
|
53
45
|
const enc2 = _keyStr.indexOf(input.charAt(i++));
|
|
54
|
-
|
|
55
46
|
const enc3 = _keyStr.indexOf(input.charAt(i++));
|
|
56
|
-
|
|
57
47
|
const enc4 = _keyStr.indexOf(input.charAt(i++));
|
|
58
|
-
|
|
59
48
|
const chr1 = enc1 << 2 | enc2 >> 4;
|
|
60
49
|
const chr2 = (enc2 & 15) << 4 | enc3 >> 2;
|
|
61
50
|
const chr3 = (enc3 & 3) << 6 | enc4;
|
|
62
51
|
output = output + String.fromCharCode(chr1);
|
|
63
|
-
|
|
64
52
|
if (enc3 != 64) {
|
|
65
53
|
output = output + String.fromCharCode(chr2);
|
|
66
54
|
}
|
|
67
|
-
|
|
68
55
|
if (enc4 != 64) {
|
|
69
56
|
output = output + String.fromCharCode(chr3);
|
|
70
57
|
}
|
|
71
58
|
}
|
|
72
|
-
|
|
73
59
|
return output = _utf8_decode(output);
|
|
74
60
|
};
|
|
75
61
|
/**
|
|
@@ -78,14 +64,11 @@ const decode = input => {
|
|
|
78
64
|
* @private
|
|
79
65
|
* @param {string} string - Text to encode
|
|
80
66
|
*/
|
|
81
|
-
|
|
82
67
|
function _utf8_encode(string) {
|
|
83
68
|
string = string.replace(/\r\n/g, "\n");
|
|
84
69
|
let utftext = "";
|
|
85
|
-
|
|
86
70
|
for (let n = 0; n < string.length; n++) {
|
|
87
71
|
const c = string.charCodeAt(n);
|
|
88
|
-
|
|
89
72
|
if (c < 128) {
|
|
90
73
|
utftext += String.fromCharCode(c);
|
|
91
74
|
} else if (c > 127 && c < 2048) {
|
|
@@ -94,7 +77,6 @@ function _utf8_encode(string) {
|
|
|
94
77
|
utftext += String.fromCharCode(c >> 12 | 224) + String.fromCharCode(c >> 6 & 63 | 128) + String.fromCharCode(c & 63 | 128);
|
|
95
78
|
}
|
|
96
79
|
}
|
|
97
|
-
|
|
98
80
|
return utftext;
|
|
99
81
|
}
|
|
100
82
|
/**
|
|
@@ -103,15 +85,11 @@ function _utf8_encode(string) {
|
|
|
103
85
|
* @private
|
|
104
86
|
* @param {string} utftext - UTF-8 text to dencode
|
|
105
87
|
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
88
|
function _utf8_decode(utftext) {
|
|
109
89
|
let string = "";
|
|
110
90
|
let i = 0;
|
|
111
|
-
|
|
112
91
|
while (i < utftext.length) {
|
|
113
92
|
const c = utftext.charCodeAt(i);
|
|
114
|
-
|
|
115
93
|
if (c < 128) {
|
|
116
94
|
string += String.fromCharCode(c);
|
|
117
95
|
i++;
|
|
@@ -126,7 +104,6 @@ function _utf8_decode(utftext) {
|
|
|
126
104
|
i += 3;
|
|
127
105
|
}
|
|
128
106
|
}
|
|
129
|
-
|
|
130
107
|
return string;
|
|
131
108
|
}
|
|
132
109
|
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../index.ts"],"sourcesContent":["/**\n *\n * Base64 encode / decode\n * http://www.webtoolkit.info/\n *\n **/\n\nconst _keyStr =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n\n/**\n * Encodes given string.\n *\n * @param {string} input - Text to encode\n */\nexport const encode = (input: string) => {\n let output = \"\";\n let i = 0;\n\n input = _utf8_encode(input);\n\n while (i < input.length) {\n const chr1 = input.charCodeAt(i++);\n const chr2 = input.charCodeAt(i++);\n const chr3 = input.charCodeAt(i++);\n\n const enc1 = chr1 >> 2;\n const enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n let enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n let enc4 = chr3 & 63;\n\n if (isNaN(chr2)) {\n enc3 = enc4 = 64;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n\n output =\n output +\n _keyStr.charAt(enc1) +\n _keyStr.charAt(enc2) +\n _keyStr.charAt(enc3) +\n _keyStr.charAt(enc4);\n }\n\n return output;\n};\n\n/**\n * Decodes given string.\n *\n * @param {string} input - Text to decode\n */\nexport const decode = (input: string) => {\n let output = \"\";\n let i = 0;\n\n input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\n\n while (i < input.length) {\n const enc1 = _keyStr.indexOf(input.charAt(i++));\n const enc2 = _keyStr.indexOf(input.charAt(i++));\n const enc3 = _keyStr.indexOf(input.charAt(i++));\n const enc4 = _keyStr.indexOf(input.charAt(i++));\n\n const chr1 = (enc1 << 2) | (enc2 >> 4);\n const chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\n const chr3 = ((enc3 & 3) << 6) | enc4;\n\n output = output + String.fromCharCode(chr1);\n\n if (enc3 != 64) {\n output = output + String.fromCharCode(chr2);\n }\n\n if (enc4 != 64) {\n output = output + String.fromCharCode(chr3);\n }\n }\n\n return (output = _utf8_decode(output));\n};\n\n/**\n * (private method) does a UTF-8 encoding\n *\n * @private\n * @param {string} string - Text to encode\n */\nfunction _utf8_encode(string: string) {\n string = string.replace(/\\r\\n/g, \"\\n\");\n let utftext = \"\";\n\n for (let n = 0; n < string.length; n++) {\n const c = string.charCodeAt(n);\n\n if (c < 128) {\n utftext += String.fromCharCode(c);\n } else if (c > 127 && c < 2048) {\n utftext +=\n String.fromCharCode((c >> 6) | 192) +\n String.fromCharCode((c & 63) | 128);\n } else {\n utftext +=\n String.fromCharCode((c >> 12) | 224) +\n String.fromCharCode(((c >> 6) & 63) | 128) +\n String.fromCharCode((c & 63) | 128);\n }\n }\n\n return utftext;\n}\n\n/**\n * (private method - do not use) does a UTF-8 decoding\n *\n * @private\n * @param {string} utftext - UTF-8 text to dencode\n */\nfunction _utf8_decode(utftext: string) {\n let string = \"\";\n let i = 0;\n\n while (i < utftext.length) {\n const c = utftext.charCodeAt(i);\n\n if (c < 128) {\n string += String.fromCharCode(c);\n i++;\n } else if (c > 191 && c < 224) {\n const c2 = utftext.charCodeAt(i + 1);\n string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n i += 2;\n } else {\n const c2 = utftext.charCodeAt(i + 1);\n const c3 = utftext.charCodeAt(i + 2);\n string += String.fromCharCode(\n ((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)\n );\n i += 3;\n }\n }\n return string;\n}\n"],"names":["_keyStr","encode","input","output","i","_utf8_encode","length","chr1","charCodeAt","chr2","chr3","enc1","enc2","enc3","enc4","isNaN","charAt","decode","replace","indexOf","String","fromCharCode","_utf8_decode","string","utftext","n","c","c2","c3"],"mappings":"AAAA;;;;;AAKI;AAEJ,MAAMA,OAAO,GACX,
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../index.ts"],"sourcesContent":["/**\n *\n * Base64 encode / decode\n * http://www.webtoolkit.info/\n *\n **/\n\nconst _keyStr =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n\n/**\n * Encodes given string.\n *\n * @param {string} input - Text to encode\n */\nexport const encode = (input: string) => {\n let output = \"\";\n let i = 0;\n\n input = _utf8_encode(input);\n\n while (i < input.length) {\n const chr1 = input.charCodeAt(i++);\n const chr2 = input.charCodeAt(i++);\n const chr3 = input.charCodeAt(i++);\n\n const enc1 = chr1 >> 2;\n const enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n let enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n let enc4 = chr3 & 63;\n\n if (isNaN(chr2)) {\n enc3 = enc4 = 64;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n\n output =\n output +\n _keyStr.charAt(enc1) +\n _keyStr.charAt(enc2) +\n _keyStr.charAt(enc3) +\n _keyStr.charAt(enc4);\n }\n\n return output;\n};\n\n/**\n * Decodes given string.\n *\n * @param {string} input - Text to decode\n */\nexport const decode = (input: string) => {\n let output = \"\";\n let i = 0;\n\n input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\n\n while (i < input.length) {\n const enc1 = _keyStr.indexOf(input.charAt(i++));\n const enc2 = _keyStr.indexOf(input.charAt(i++));\n const enc3 = _keyStr.indexOf(input.charAt(i++));\n const enc4 = _keyStr.indexOf(input.charAt(i++));\n\n const chr1 = (enc1 << 2) | (enc2 >> 4);\n const chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\n const chr3 = ((enc3 & 3) << 6) | enc4;\n\n output = output + String.fromCharCode(chr1);\n\n if (enc3 != 64) {\n output = output + String.fromCharCode(chr2);\n }\n\n if (enc4 != 64) {\n output = output + String.fromCharCode(chr3);\n }\n }\n\n return (output = _utf8_decode(output));\n};\n\n/**\n * (private method) does a UTF-8 encoding\n *\n * @private\n * @param {string} string - Text to encode\n */\nfunction _utf8_encode(string: string) {\n string = string.replace(/\\r\\n/g, \"\\n\");\n let utftext = \"\";\n\n for (let n = 0; n < string.length; n++) {\n const c = string.charCodeAt(n);\n\n if (c < 128) {\n utftext += String.fromCharCode(c);\n } else if (c > 127 && c < 2048) {\n utftext +=\n String.fromCharCode((c >> 6) | 192) +\n String.fromCharCode((c & 63) | 128);\n } else {\n utftext +=\n String.fromCharCode((c >> 12) | 224) +\n String.fromCharCode(((c >> 6) & 63) | 128) +\n String.fromCharCode((c & 63) | 128);\n }\n }\n\n return utftext;\n}\n\n/**\n * (private method - do not use) does a UTF-8 decoding\n *\n * @private\n * @param {string} utftext - UTF-8 text to dencode\n */\nfunction _utf8_decode(utftext: string) {\n let string = \"\";\n let i = 0;\n\n while (i < utftext.length) {\n const c = utftext.charCodeAt(i);\n\n if (c < 128) {\n string += String.fromCharCode(c);\n i++;\n } else if (c > 191 && c < 224) {\n const c2 = utftext.charCodeAt(i + 1);\n string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n i += 2;\n } else {\n const c2 = utftext.charCodeAt(i + 1);\n const c3 = utftext.charCodeAt(i + 2);\n string += String.fromCharCode(\n ((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)\n );\n i += 3;\n }\n }\n return string;\n}\n"],"names":["_keyStr","encode","input","output","i","_utf8_encode","length","chr1","charCodeAt","chr2","chr3","enc1","enc2","enc3","enc4","isNaN","charAt","decode","replace","indexOf","String","fromCharCode","_utf8_decode","string","utftext","n","c","c2","c3"],"mappings":"AAAA;;;;;AAKI;AAEJ,MAAMA,OAAO,GACX,mEAAmE,CAAA;AAErE;;;;AAIG;AACUC,MAAAA,MAAM,GAAIC,KAAa,IAAI;EACtC,IAAIC,MAAM,GAAG,EAAE,CAAA;EACf,IAAIC,CAAC,GAAG,CAAC,CAAA;AAETF,EAAAA,KAAK,GAAGG,YAAY,CAACH,KAAK,CAAC,CAAA;AAE3B,EAAA,OAAOE,CAAC,GAAGF,KAAK,CAACI,MAAM,EAAE;IACvB,MAAMC,IAAI,GAAGL,KAAK,CAACM,UAAU,CAACJ,CAAC,EAAE,CAAC,CAAA;IAClC,MAAMK,IAAI,GAAGP,KAAK,CAACM,UAAU,CAACJ,CAAC,EAAE,CAAC,CAAA;IAClC,MAAMM,IAAI,GAAGR,KAAK,CAACM,UAAU,CAACJ,CAAC,EAAE,CAAC,CAAA;AAElC,IAAA,MAAMO,IAAI,GAAGJ,IAAI,IAAI,CAAC,CAAA;IACtB,MAAMK,IAAI,GAAI,CAACL,IAAI,GAAG,CAAC,KAAK,CAAC,GAAKE,IAAI,IAAI,CAAE,CAAA;IAC5C,IAAII,IAAI,GAAI,CAACJ,IAAI,GAAG,EAAE,KAAK,CAAC,GAAKC,IAAI,IAAI,CAAE,CAAA;AAC3C,IAAA,IAAII,IAAI,GAAGJ,IAAI,GAAG,EAAE,CAAA;AAEpB,IAAA,IAAIK,KAAK,CAACN,IAAI,CAAC,EAAE;MACfI,IAAI,GAAGC,IAAI,GAAG,EAAE,CAAA;AACjB,KAAA,MAAM,IAAIC,KAAK,CAACL,IAAI,CAAC,EAAE;AACtBI,MAAAA,IAAI,GAAG,EAAE,CAAA;AACV,KAAA;AAEDX,I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CAAE,GAAIC,EAAE,GAAG,EAAG,CAChD,CAAA;AACDxB,MAAAA,CAAC,IAAI,CAAC,CAAA;AACP,KAAA;AACF,GAAA;AACD,EAAA,OAAOmB,MAAM,CAAA;AACf;;;;;"}
|
package/dist/index.mjs
CHANGED
|
@@ -10,12 +10,10 @@ const _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+
|
|
|
10
10
|
*
|
|
11
11
|
* @param {string} input - Text to encode
|
|
12
12
|
*/
|
|
13
|
-
|
|
14
13
|
const encode = input => {
|
|
15
14
|
let output = "";
|
|
16
15
|
let i = 0;
|
|
17
16
|
input = _utf8_encode(input);
|
|
18
|
-
|
|
19
17
|
while (i < input.length) {
|
|
20
18
|
const chr1 = input.charCodeAt(i++);
|
|
21
19
|
const chr2 = input.charCodeAt(i++);
|
|
@@ -24,16 +22,13 @@ const encode = input => {
|
|
|
24
22
|
const enc2 = (chr1 & 3) << 4 | chr2 >> 4;
|
|
25
23
|
let enc3 = (chr2 & 15) << 2 | chr3 >> 6;
|
|
26
24
|
let enc4 = chr3 & 63;
|
|
27
|
-
|
|
28
25
|
if (isNaN(chr2)) {
|
|
29
26
|
enc3 = enc4 = 64;
|
|
30
27
|
} else if (isNaN(chr3)) {
|
|
31
28
|
enc4 = 64;
|
|
32
29
|
}
|
|
33
|
-
|
|
34
30
|
output = output + _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4);
|
|
35
31
|
}
|
|
36
|
-
|
|
37
32
|
return output;
|
|
38
33
|
};
|
|
39
34
|
/**
|
|
@@ -41,35 +36,26 @@ const encode = input => {
|
|
|
41
36
|
*
|
|
42
37
|
* @param {string} input - Text to decode
|
|
43
38
|
*/
|
|
44
|
-
|
|
45
39
|
const decode = input => {
|
|
46
40
|
let output = "";
|
|
47
41
|
let i = 0;
|
|
48
42
|
input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
|
|
49
|
-
|
|
50
43
|
while (i < input.length) {
|
|
51
44
|
const enc1 = _keyStr.indexOf(input.charAt(i++));
|
|
52
|
-
|
|
53
45
|
const enc2 = _keyStr.indexOf(input.charAt(i++));
|
|
54
|
-
|
|
55
46
|
const enc3 = _keyStr.indexOf(input.charAt(i++));
|
|
56
|
-
|
|
57
47
|
const enc4 = _keyStr.indexOf(input.charAt(i++));
|
|
58
|
-
|
|
59
48
|
const chr1 = enc1 << 2 | enc2 >> 4;
|
|
60
49
|
const chr2 = (enc2 & 15) << 4 | enc3 >> 2;
|
|
61
50
|
const chr3 = (enc3 & 3) << 6 | enc4;
|
|
62
51
|
output = output + String.fromCharCode(chr1);
|
|
63
|
-
|
|
64
52
|
if (enc3 != 64) {
|
|
65
53
|
output = output + String.fromCharCode(chr2);
|
|
66
54
|
}
|
|
67
|
-
|
|
68
55
|
if (enc4 != 64) {
|
|
69
56
|
output = output + String.fromCharCode(chr3);
|
|
70
57
|
}
|
|
71
58
|
}
|
|
72
|
-
|
|
73
59
|
return output = _utf8_decode(output);
|
|
74
60
|
};
|
|
75
61
|
/**
|
|
@@ -78,14 +64,11 @@ const decode = input => {
|
|
|
78
64
|
* @private
|
|
79
65
|
* @param {string} string - Text to encode
|
|
80
66
|
*/
|
|
81
|
-
|
|
82
67
|
function _utf8_encode(string) {
|
|
83
68
|
string = string.replace(/\r\n/g, "\n");
|
|
84
69
|
let utftext = "";
|
|
85
|
-
|
|
86
70
|
for (let n = 0; n < string.length; n++) {
|
|
87
71
|
const c = string.charCodeAt(n);
|
|
88
|
-
|
|
89
72
|
if (c < 128) {
|
|
90
73
|
utftext += String.fromCharCode(c);
|
|
91
74
|
} else if (c > 127 && c < 2048) {
|
|
@@ -94,7 +77,6 @@ function _utf8_encode(string) {
|
|
|
94
77
|
utftext += String.fromCharCode(c >> 12 | 224) + String.fromCharCode(c >> 6 & 63 | 128) + String.fromCharCode(c & 63 | 128);
|
|
95
78
|
}
|
|
96
79
|
}
|
|
97
|
-
|
|
98
80
|
return utftext;
|
|
99
81
|
}
|
|
100
82
|
/**
|
|
@@ -103,15 +85,11 @@ function _utf8_encode(string) {
|
|
|
103
85
|
* @private
|
|
104
86
|
* @param {string} utftext - UTF-8 text to dencode
|
|
105
87
|
*/
|
|
106
|
-
|
|
107
|
-
|
|
108
88
|
function _utf8_decode(utftext) {
|
|
109
89
|
let string = "";
|
|
110
90
|
let i = 0;
|
|
111
|
-
|
|
112
91
|
while (i < utftext.length) {
|
|
113
92
|
const c = utftext.charCodeAt(i);
|
|
114
|
-
|
|
115
93
|
if (c < 128) {
|
|
116
94
|
string += String.fromCharCode(c);
|
|
117
95
|
i++;
|
|
@@ -126,7 +104,6 @@ function _utf8_decode(utftext) {
|
|
|
126
104
|
i += 3;
|
|
127
105
|
}
|
|
128
106
|
}
|
|
129
|
-
|
|
130
107
|
return string;
|
|
131
108
|
}
|
|
132
109
|
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":["../index.ts"],"sourcesContent":["/**\n *\n * Base64 encode / decode\n * http://www.webtoolkit.info/\n *\n **/\n\nconst _keyStr =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n\n/**\n * Encodes given string.\n *\n * @param {string} input - Text to encode\n */\nexport const encode = (input: string) => {\n let output = \"\";\n let i = 0;\n\n input = _utf8_encode(input);\n\n while (i < input.length) {\n const chr1 = input.charCodeAt(i++);\n const chr2 = input.charCodeAt(i++);\n const chr3 = input.charCodeAt(i++);\n\n const enc1 = chr1 >> 2;\n const enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n let enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n let enc4 = chr3 & 63;\n\n if (isNaN(chr2)) {\n enc3 = enc4 = 64;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n\n output =\n output +\n _keyStr.charAt(enc1) +\n _keyStr.charAt(enc2) +\n _keyStr.charAt(enc3) +\n _keyStr.charAt(enc4);\n }\n\n return output;\n};\n\n/**\n * Decodes given string.\n *\n * @param {string} input - Text to decode\n */\nexport const decode = (input: string) => {\n let output = \"\";\n let i = 0;\n\n input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\n\n while (i < input.length) {\n const enc1 = _keyStr.indexOf(input.charAt(i++));\n const enc2 = _keyStr.indexOf(input.charAt(i++));\n const enc3 = _keyStr.indexOf(input.charAt(i++));\n const enc4 = _keyStr.indexOf(input.charAt(i++));\n\n const chr1 = (enc1 << 2) | (enc2 >> 4);\n const chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\n const chr3 = ((enc3 & 3) << 6) | enc4;\n\n output = output + String.fromCharCode(chr1);\n\n if (enc3 != 64) {\n output = output + String.fromCharCode(chr2);\n }\n\n if (enc4 != 64) {\n output = output + String.fromCharCode(chr3);\n }\n }\n\n return (output = _utf8_decode(output));\n};\n\n/**\n * (private method) does a UTF-8 encoding\n *\n * @private\n * @param {string} string - Text to encode\n */\nfunction _utf8_encode(string: string) {\n string = string.replace(/\\r\\n/g, \"\\n\");\n let utftext = \"\";\n\n for (let n = 0; n < string.length; n++) {\n const c = string.charCodeAt(n);\n\n if (c < 128) {\n utftext += String.fromCharCode(c);\n } else if (c > 127 && c < 2048) {\n utftext +=\n String.fromCharCode((c >> 6) | 192) +\n String.fromCharCode((c & 63) | 128);\n } else {\n utftext +=\n String.fromCharCode((c >> 12) | 224) +\n String.fromCharCode(((c >> 6) & 63) | 128) +\n String.fromCharCode((c & 63) | 128);\n }\n }\n\n return utftext;\n}\n\n/**\n * (private method - do not use) does a UTF-8 decoding\n *\n * @private\n * @param {string} utftext - UTF-8 text to dencode\n */\nfunction _utf8_decode(utftext: string) {\n let string = \"\";\n let i = 0;\n\n while (i < utftext.length) {\n const c = utftext.charCodeAt(i);\n\n if (c < 128) {\n string += String.fromCharCode(c);\n i++;\n } else if (c > 191 && c < 224) {\n const c2 = utftext.charCodeAt(i + 1);\n string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n i += 2;\n } else {\n const c2 = utftext.charCodeAt(i + 1);\n const c3 = utftext.charCodeAt(i + 2);\n string += String.fromCharCode(\n ((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)\n );\n i += 3;\n }\n }\n return string;\n}\n"],"names":["_keyStr","encode","input","output","i","_utf8_encode","length","chr1","charCodeAt","chr2","chr3","enc1","enc2","enc3","enc4","isNaN","charAt","decode","replace","indexOf","String","fromCharCode","_utf8_decode","string","utftext","n","c","c2","c3"],"mappings":"AAAA;;;;;AAKI;AAEJ,MAAMA,OAAO,GACX,
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":["../index.ts"],"sourcesContent":["/**\n *\n * Base64 encode / decode\n * http://www.webtoolkit.info/\n *\n **/\n\nconst _keyStr =\n \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\";\n\n/**\n * Encodes given string.\n *\n * @param {string} input - Text to encode\n */\nexport const encode = (input: string) => {\n let output = \"\";\n let i = 0;\n\n input = _utf8_encode(input);\n\n while (i < input.length) {\n const chr1 = input.charCodeAt(i++);\n const chr2 = input.charCodeAt(i++);\n const chr3 = input.charCodeAt(i++);\n\n const enc1 = chr1 >> 2;\n const enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);\n let enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);\n let enc4 = chr3 & 63;\n\n if (isNaN(chr2)) {\n enc3 = enc4 = 64;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n\n output =\n output +\n _keyStr.charAt(enc1) +\n _keyStr.charAt(enc2) +\n _keyStr.charAt(enc3) +\n _keyStr.charAt(enc4);\n }\n\n return output;\n};\n\n/**\n * Decodes given string.\n *\n * @param {string} input - Text to decode\n */\nexport const decode = (input: string) => {\n let output = \"\";\n let i = 0;\n\n input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, \"\");\n\n while (i < input.length) {\n const enc1 = _keyStr.indexOf(input.charAt(i++));\n const enc2 = _keyStr.indexOf(input.charAt(i++));\n const enc3 = _keyStr.indexOf(input.charAt(i++));\n const enc4 = _keyStr.indexOf(input.charAt(i++));\n\n const chr1 = (enc1 << 2) | (enc2 >> 4);\n const chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);\n const chr3 = ((enc3 & 3) << 6) | enc4;\n\n output = output + String.fromCharCode(chr1);\n\n if (enc3 != 64) {\n output = output + String.fromCharCode(chr2);\n }\n\n if (enc4 != 64) {\n output = output + String.fromCharCode(chr3);\n }\n }\n\n return (output = _utf8_decode(output));\n};\n\n/**\n * (private method) does a UTF-8 encoding\n *\n * @private\n * @param {string} string - Text to encode\n */\nfunction _utf8_encode(string: string) {\n string = string.replace(/\\r\\n/g, \"\\n\");\n let utftext = \"\";\n\n for (let n = 0; n < string.length; n++) {\n const c = string.charCodeAt(n);\n\n if (c < 128) {\n utftext += String.fromCharCode(c);\n } else if (c > 127 && c < 2048) {\n utftext +=\n String.fromCharCode((c >> 6) | 192) +\n String.fromCharCode((c & 63) | 128);\n } else {\n utftext +=\n String.fromCharCode((c >> 12) | 224) +\n String.fromCharCode(((c >> 6) & 63) | 128) +\n String.fromCharCode((c & 63) | 128);\n }\n }\n\n return utftext;\n}\n\n/**\n * (private method - do not use) does a UTF-8 decoding\n *\n * @private\n * @param {string} utftext - UTF-8 text to dencode\n */\nfunction _utf8_decode(utftext: string) {\n let string = \"\";\n let i = 0;\n\n while (i < utftext.length) {\n const c = utftext.charCodeAt(i);\n\n if (c < 128) {\n string += String.fromCharCode(c);\n i++;\n } else if (c > 191 && c < 224) {\n const c2 = utftext.charCodeAt(i + 1);\n string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));\n i += 2;\n } else {\n const c2 = utftext.charCodeAt(i + 1);\n const c3 = utftext.charCodeAt(i + 2);\n string += String.fromCharCode(\n ((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)\n );\n i += 3;\n }\n }\n return string;\n}\n"],"names":["_keyStr","encode","input","output","i","_utf8_encode","length","chr1","charCodeAt","chr2","chr3","enc1","enc2","enc3","enc4","isNaN","charAt","decode","replace","indexOf","String","fromCharCode","_utf8_decode","string","utftext","n","c","c2","c3"],"mappings":"AAAA;;;;;AAKI;AAEJ,MAAMA,OAAO,GACX,mEAAmE,CAAA;AAErE;;;;AAIG;AACUC,MAAAA,MAAM,GAAIC,KAAa,IAAI;EACtC,IAAIC,MAAM,GAAG,EAAE,CAAA;EACf,IAAIC,CAAC,GAAG,CAAC,CAAA;AAETF,EAAAA,KAAK,GAAGG,YAAY,CAACH,KAAK,CAAC,CAAA;AAE3B,EAAA,OAAOE,CAAC,GAAGF,KAAK,CAACI,MAAM,EAAE;IACvB,MAAMC,IAAI,GAAGL,KAAK,CAACM,UAAU,CAACJ,CAAC,EAAE,CAAC,CAAA;IAClC,MAAMK,IAAI,GAAGP,KAAK,CAACM,UAAU,CAACJ,CAAC,EAAE,CAAC,CAAA;IAClC,MAAMM,IAAI,GAAGR,KAAK,CAACM,UAAU,CAACJ,CAAC,EAAE,CAAC,CAAA;AAElC,IAAA,MAAMO,IAAI,GAAGJ,IAAI,IAAI,CAAC,CAAA;IACtB,MAAMK,IAAI,GAAI,CAACL,IAAI,GAAG,CAAC,KAAK,CAAC,GAAKE,IAAI,IAAI,CAAE,CAAA;IAC5C,IAAII,IAAI,GAAI,CAACJ,IAAI,GAAG,EAAE,KAAK,CAAC,GAAKC,IAAI,IAAI,CAAE,CAAA;AAC3C,IAAA,IAAII,IAAI,GAAGJ,IAAI,GAAG,EAAE,CAAA;AAEpB,IAAA,IAAIK,KAAK,CAACN,IAAI,CAAC,EAAE;MACfI,IAAI,GAAGC,IAAI,GAAG,EAAE,CAAA;AACjB,KAAA,MAAM,IAAIC,KAAK,CAACL,IAAI,CAAC,EAAE;AACtBI,MAAAA,IAAI,GAAG,EAAE,CAAA;AACV,KAAA;AAEDX,IAAAA,MAAM,GACJA,MAAM,GACNH,OAAO,CAACgB,MA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DxB,MAAAA,CAAC,IAAI,CAAC,CAAA;AACP,KAAA;AACF,GAAA;AACD,EAAA,OAAOmB,MAAM,CAAA;AACf;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frsource/base64",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"description": "base64 encoder/decoder with UTF-8 support 📔",
|
|
5
5
|
"repository": "https://github.com/FRSOURCE/base64.git",
|
|
6
6
|
"homepage": "http://www.webtoolkit.info/javascript_base64.html",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@semantic-release/commit-analyzer": "9.0.2",
|
|
38
38
|
"@semantic-release/git": "10.0.1",
|
|
39
|
-
"@semantic-release/npm": "10.0.
|
|
39
|
+
"@semantic-release/npm": "10.0.3",
|
|
40
40
|
"del-cli": "5.0.0",
|
|
41
41
|
"microbundle": "0.15.1",
|
|
42
|
-
"prettier": "2.8.
|
|
43
|
-
"semantic-release": "21.0.
|
|
42
|
+
"prettier": "2.8.7",
|
|
43
|
+
"semantic-release": "21.0.1"
|
|
44
44
|
},
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|