dff-util 1.3.1 → 1.3.2

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/main/util.js CHANGED
@@ -223,10 +223,10 @@ const CurrencyConvert = (from, to) => __awaiter(void 0, void 0, void 0, function
223
223
  });
224
224
  exports.CurrencyConvert = CurrencyConvert;
225
225
  function EncodeBase64(input) {
226
- return Buffer.from(input, 'utf-8').toString('base64');
226
+ return btoa(input);
227
227
  }
228
228
  function DecodeBase64(encoded) {
229
- return Buffer.from(encoded, 'base64').toString('utf-8');
229
+ return atob(encoded);
230
230
  }
231
231
  function EncodeURL(input) {
232
232
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dff-util",
3
- "version": "1.3.1",
3
+ "version": "1.3.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {