@eppo/js-client-sdk-common
Advanced tools
Comparing version 2.2.0 to 2.2.1
@@ -5,2 +5,3 @@ "use strict"; | ||
const md5 = require("md5"); | ||
const universal_base64_1 = require("universal-base64"); | ||
function getMD5Hash(input) { | ||
@@ -11,9 +12,9 @@ return md5(input); | ||
function encodeBase64(input) { | ||
return Buffer.from(input, 'utf8').toString('base64'); | ||
return (0, universal_base64_1.encode)(input); | ||
} | ||
exports.encodeBase64 = encodeBase64; | ||
function decodeBase64(input) { | ||
return Buffer.from(input, 'base64').toString('utf8'); | ||
return (0, universal_base64_1.decode)(input); | ||
} | ||
exports.decodeBase64 = decodeBase64; | ||
//# sourceMappingURL=obfuscation.js.map |
{ | ||
"name": "@eppo/js-client-sdk-common", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"description": "Eppo SDK for client-side JavaScript applications (base for both web and react native)", | ||
@@ -70,4 +70,5 @@ "main": "dist/index.js", | ||
"md5": "^2.3.0", | ||
"semver": "^7.5.4" | ||
"semver": "^7.5.4", | ||
"universal-base64": "^2.1.0" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
774226
1667
5
1
+ Addeduniversal-base64@^2.1.0
+ Addeduniversal-base64@2.1.0(transitive)