Comparing version 1.0.4 to 1.0.5
@@ -33,2 +33,3 @@ "use strict"; | ||
const [refreshSpeed, setRefreshSpeed] = react_1.useState(500); | ||
const [hasNext, setHasNext] = react_1.useState(false); | ||
const [index, setIndex] = react_1.useState(0); | ||
@@ -97,3 +98,3 @@ const [isPause, setPause] = react_1.useState(false); | ||
react_1.default.createElement(ButtonGroup_1.ButtonGroup, null, | ||
react_1.default.createElement(Button_1.Button, { onClick: finish }, "Finish")))); | ||
react_1.default.createElement(Button_1.Button, { onClick: finish }, hasNext ? 'Next' : 'Finish')))); | ||
return [ | ||
@@ -104,8 +105,7 @@ element, | ||
return new Promise((resolve) => { | ||
console.log(data); | ||
const urs = bc_ur_1.encodeUR(data, 800); | ||
console.log(urs); | ||
setData(urs); | ||
if (options) { | ||
options.refreshSpeed && setRefreshSpeed(options.refreshSpeed); | ||
options.hasNext && setHasNext(options.hasNext); | ||
} | ||
@@ -112,0 +112,0 @@ ee.once('finish', () => { |
@@ -8,4 +8,4 @@ export declare type DecodedResult = { | ||
refreshSpeed?: number; | ||
size?: number; | ||
hasNext?: boolean; | ||
}) => Promise<void>; | ||
export declare type Read = () => Promise<DecodedResult>; |
{ | ||
"name": "@cvbb/sdk", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Cobo Vault SDK", | ||
@@ -30,3 +30,3 @@ "author": "aaronisme <aarondongchen@gmail.com>", | ||
"dependencies": { | ||
"@cvbb/bc-ur": "^0.2.12", | ||
"@cvbb/bc-ur": "^0.2.13", | ||
"@types/qrcode.react": "^1.0.1", | ||
@@ -46,3 +46,3 @@ "@types/react-dom": "^17.0.1", | ||
}, | ||
"gitHead": "bd5d10204268cd6ba60fc4ddecdea953e5b3801a" | ||
"gitHead": "88fec64c1b3c423932e3e7e4d1d1a3272396b423" | ||
} |
Sorry, the diff of this file is not supported yet
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
33803
Updated@cvbb/bc-ur@^0.2.13