@tonconnect/protocol
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -10,3 +10,3 @@ "use strict"; | ||
// noinspection JSConstantReassignment | ||
global.crypto = require('crypto'); | ||
global.crypto = require('crypto').webcrypto; | ||
} | ||
@@ -13,0 +13,0 @@ catch (err) { } |
@@ -17,3 +17,3 @@ "use strict"; | ||
function encode(value, urlSafe) { | ||
if (urlSafe === void 0) { urlSafe = true; } | ||
if (urlSafe === void 0) { urlSafe = false; } | ||
if (!(value instanceof Uint8Array) && !(typeof value === 'string')) { | ||
@@ -26,3 +26,3 @@ value = JSON.stringify(value); | ||
function decode(value, urlSafe) { | ||
if (urlSafe === void 0) { urlSafe = true; } | ||
if (urlSafe === void 0) { urlSafe = false; } | ||
var decodedBuffer = decodeToBuffer(value, urlSafe); | ||
@@ -29,0 +29,0 @@ return { |
{ | ||
"name": "@tonconnect/protocol", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31888