projects
/
dotfiles
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Giant blob of minor changes
[dotfiles/.git]
/
.config
/
coc
/
extensions
/
node_modules
/
coc-prettier
/
node_modules
/
js-base64
/
base64.js
diff --git
a/.config/coc/extensions/node_modules/coc-prettier/node_modules/js-base64/base64.js
b/.config/coc/extensions/node_modules/coc-prettier/node_modules/js-base64/base64.js
index 507a9c2019edd462c33de867d0c2297ff10b7c5c..92f4d4bfd8ac006d0b1df5b05c721cc4f09e99f6 100644
(file)
--- a/
.config/coc/extensions/node_modules/coc-prettier/node_modules/js-base64/base64.js
+++ b/
.config/coc/extensions/node_modules/coc-prettier/node_modules/js-base64/base64.js
@@
-22,7
+22,7
@@
// existing version for noConflict()
global = global || {};
var _Base64 = global.Base64;
// existing version for noConflict()
global = global || {};
var _Base64 = global.Base64;
- var version = "2.6.
2
";
+ var version = "2.6.
4
";
// constants
var b64chars
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
// constants
var b64chars
= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
@@
-155,16
+155,17
@@
return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, ''));
};
var _decode = function(a) { return btou(_atob(a)) };
return _atob(String(a).replace(/[^A-Za-z0-9\+\/]/g, ''));
};
var _decode = function(a) { return btou(_atob(a)) };
+ var _fromURI = function(a) {
+ return String(a).replace(/[-_]/g, function(m0) {
+ return m0 == '-' ? '+' : '/'
+ }).replace(/[^A-Za-z0-9\+\/]/g, '');
+ };
var decode = function(a){
var decode = function(a){
- return _decode(
- String(a).replace(/[-_]/g, function(m0) {
- return m0 == '-' ? '+' : '/'
- }).replace(/[^A-Za-z0-9\+\/]/g, '')
- );
+ return _decode(_fromURI(a));
};
var toUint8Array;
if (global.Uint8Array) toUint8Array = function(a) {
};
var toUint8Array;
if (global.Uint8Array) toUint8Array = function(a) {
- return Uint8Array.from(atob(
a
), function(c) {
+ return Uint8Array.from(atob(
_fromURI(a)
), function(c) {
return c.charCodeAt(0);
});
};
return c.charCodeAt(0);
});
};