@polkadot/react-qr
Advanced tools
Comparing version 0.43.0-beta.9 to 0.43.0-beta.10
{ | ||
"name": "@polkadot/react-qr", | ||
"version": "0.43.0-beta.9", | ||
"version": "0.43.0-beta.10", | ||
"description": "Generates and reads QR codes", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,8 +12,4 @@ "use strict"; | ||
var _util = require("@polkadot/util"); | ||
var _Scan = _interopRequireDefault(require("./Scan")); | ||
var _util2 = require("./util"); | ||
// Copyright 2017-2019 @polkadot/react-qr authors & contributors | ||
@@ -26,3 +22,3 @@ // This software may be modified and distributed under the terms | ||
this.onScan = data => { | ||
this.onScan = signature => { | ||
const { | ||
@@ -32,3 +28,3 @@ onScan | ||
if (!data || !onScan) { | ||
if (!signature || !onScan) { | ||
return; | ||
@@ -38,3 +34,3 @@ } | ||
onScan({ | ||
signature: (0, _util.u8aToHex)((0, _util2.encodeString)(data)) | ||
signature: "0x".concat(signature) | ||
}); | ||
@@ -41,0 +37,0 @@ }; |
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
33993
680