@getvouch/sdk 0.1.2 → 0.1.3

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.
@@ -7,7 +7,12 @@ export function toBase64InBrowser(encodedText) {
7
7
  }
8
8
  export function toBase64(encodedText) {
9
9
  if (typeof Buffer !== "undefined") {
10
- return Buffer.from(encodedText, "utf-8").toString("base64url");
10
+ try {
11
+ return Buffer.from(encodedText, "utf-8").toString("base64url");
12
+ }
13
+ catch (_a) {
14
+ /* empty */
15
+ }
11
16
  }
12
17
  return toBase64InBrowser(encodedText);
13
18
  }
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "url": "git+https://github.com/vlayer-xyz/vouch.git#main"
9
9
  },
10
10
  "private": false,
11
- "version": "0.1.2",
11
+ "version": "0.1.3",
12
12
  "description": "vouch SDK",
13
13
  "keywords": [
14
14
  "webproof",