File tree Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Expand file tree Collapse file tree 3 files changed +18
-10
lines changed Original file line number Diff line number Diff line change 40
40
"homepage" : " https://github.com/Eppo-exp/js-client-sdk-common#readme" ,
41
41
"devDependencies" : {
42
42
"@types/jest" : " ^29.5.11" ,
43
+ "@types/js-base64" : " ^3.3.1" ,
43
44
"@types/md5" : " ^2.3.2" ,
44
45
"@types/semver" : " ^7.5.6" ,
45
46
"@typescript-eslint/eslint-plugin" : " ^5.13.0" ,
63
64
"webpack-cli" : " ^4.10.0"
64
65
},
65
66
"dependencies" : {
67
+ "js-base64" : " ^3.7.7" ,
66
68
"md5" : " ^2.3.0" ,
67
69
"pino" : " ^8.19.0" ,
68
- "semver" : " ^7.5.4" ,
69
- "universal-base64" : " ^2.1.0"
70
+ "semver" : " ^7.5.4"
70
71
}
71
72
}
Original file line number Diff line number Diff line change
1
+ import base64 = require( 'js-base64' ) ;
1
2
import * as md5 from 'md5' ;
2
- import { decode , encode } from 'universal-base64' ;
3
3
4
4
export function getMD5Hash ( input : string ) : string {
5
5
return md5 ( input ) ;
6
6
}
7
7
8
8
export function encodeBase64 ( input : string ) {
9
- return encode ( input ) ;
9
+ return base64 . btoaPolyfill ( input ) ;
10
10
}
11
11
12
12
export function decodeBase64 ( input : string ) {
13
- return decode ( input ) ;
13
+ return base64 . atobPolyfill ( input ) ;
14
14
}
Original file line number Diff line number Diff line change 747
747
expect "^29.0.0"
748
748
pretty-format "^29.0.0"
749
749
750
+ " @types/js-base64@^3.3.1 " :
751
+ version "3.3.1"
752
+ resolved "https://registry.yarnpkg.com/@types/js-base64/-/js-base64-3.3.1.tgz#36c2d6dc126277ea28a4d0599d0cafbf547b51e6"
753
+ integrity sha512-Zw33oQNAvDdAN9b0IE5stH0y2MylYvtU7VVTKEJPxhyM2q57CVaNJhtJW258ah24NRtaiA23tptUmVn3dmTKpw==
754
+ dependencies :
755
+ js-base64 "*"
756
+
750
757
" @types/jsdom@^20.0.0 " :
751
758
version "20.0.1"
752
759
resolved "https://registry.npmjs.org/@types/jsdom/-/jsdom-20.0.1.tgz"
@@ -2934,6 +2941,11 @@ jest@^29.7.0:
2934
2941
import-local "^3.0.2"
2935
2942
jest-cli "^29.7.0"
2936
2943
2944
+ js-base64@*, js-base64@^3.7.7 :
2945
+ version "3.7.7"
2946
+ resolved "https://registry.yarnpkg.com/js-base64/-/js-base64-3.7.7.tgz#e51b84bf78fbf5702b9541e2cb7bfcb893b43e79"
2947
+ integrity sha512-7rCnleh0z2CkXhH67J8K1Ytz0b2Y+yxTPL+/KOJoa20hfnVQ/3/T6W/KflYI4bRHRagNeXeU2bkNGI3v1oS/lw==
2948
+
2937
2949
js-tokens@^4.0.0 :
2938
2950
version "4.0.0"
2939
2951
resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz"
@@ -4105,11 +4117,6 @@ undici-types@~5.26.4:
4105
4117
resolved "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz"
4106
4118
integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==
4107
4119
4108
- universal-base64@^2.1.0 :
4109
- version "2.1.0"
4110
- resolved "https://registry.yarnpkg.com/universal-base64/-/universal-base64-2.1.0.tgz#511af92b3a07340fc2647036045aadb3bedcc320"
4111
- integrity sha512-WeOkACVnIXJZr/qlv7++Rl1zuZOHN96v2yS5oleUuv8eJOs5j9M5U3xQEIoWqn1OzIuIcgw0fswxWnUVGDfW6g==
4112
-
4113
4120
universalify@^0.2.0 :
4114
4121
version "0.2.0"
4115
4122
resolved "https://registry.npmjs.org/universalify/-/universalify-0.2.0.tgz"
You can’t perform that action at this time.
0 commit comments