Socket
Socket
Sign inDemoInstall

@cvbb/sdk

Package Overview
Dependencies
37
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.5 to 1.1.0

6

dist/hooks/useAnimatedQRCodePlayer.js

@@ -35,2 +35,4 @@ "use strict";

const [index, setIndex] = react_1.useState(0);
const [title, setTitle] = react_1.useState(null);
const [description, setDescription] = react_1.useState(null);
const [isPause, setPause] = react_1.useState(false);

@@ -88,2 +90,4 @@ const pause = () => {

} },
title && react_1.default.createElement("p", null, title),
description && react_1.default.createElement("p", null, description),
react_1.default.createElement(BaseQRCode_1.BaseQRCode, { size: 288, data: splitArray[index] }),

@@ -110,2 +114,4 @@ react_1.default.createElement("p", { style: { textAlign: 'center' } },

options.hasNext && setHasNext(options.hasNext);
options.title && setTitle(options.title);
options.description && setDescription(options.description);
}

@@ -112,0 +118,0 @@ ee.once('finish', () => {

11

dist/hooks/useAnimatedQRCodeReader.js

@@ -37,2 +37,4 @@ "use strict";

const ee = react_1.useMemo(() => new events_1.EventEmitter(), []);
const [title, setTitle] = react_1.useState(null);
const [description, setDescription] = react_1.useState(null);
const reset = () => {

@@ -107,2 +109,4 @@ setURCodes([]);

} },
title && react_1.default.createElement("p", null, title),
description && react_1.default.createElement("p", null, description),
react_1.default.createElement(react_qr_reader_1.default, { onScan: (data) => {

@@ -123,4 +127,9 @@ if (data) {

{
read: () => {
read: (options) => {
return new Promise((resolve) => {
console.log(options);
if (options) {
options.title && setTitle(options.title);
options.description && setDescription(options.description);
}
ee.once('read', (result) => {

@@ -127,0 +136,0 @@ reset();

4

dist/hooks/useController.js

@@ -78,6 +78,6 @@ "use strict";

}),
read: () => __awaiter(void 0, void 0, void 0, function* () {
read: (options) => __awaiter(void 0, void 0, void 0, function* () {
setVisible(true);
setMode('read');
const result = yield read();
const result = yield read(options);
reset();

@@ -84,0 +84,0 @@ return result;

@@ -9,3 +9,8 @@ export declare type DecodedResult = {

hasNext?: boolean;
title?: string;
description?: string;
}) => Promise<void>;
export declare type Read = () => Promise<DecodedResult>;
export declare type Read = (options?: {
title?: string;
description?: string;
}) => Promise<DecodedResult>;
{
"name": "@cvbb/sdk",
"version": "1.0.5",
"version": "1.1.0",
"description": "Cobo Vault SDK",

@@ -30,3 +30,3 @@ "author": "aaronisme <aarondongchen@gmail.com>",

"dependencies": {
"@cvbb/bc-ur": "^0.2.13",
"@cvbb/bc-ur": "^0.2.14",
"@types/qrcode.react": "^1.0.1",

@@ -46,3 +46,3 @@ "@types/react-dom": "^17.0.1",

},
"gitHead": "88fec64c1b3c423932e3e7e4d1d1a3272396b423"
"gitHead": "f7dcd68308833a1ffe188dfd537f309680f8def9"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc