Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@vechain/connex

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vechain/connex - npm Package Compare versions

Comparing version 2.0.0-beta.7 to 2.0.0-beta.8

dist/compat.d.ts

4

dist/config.js

@@ -44,4 +44,4 @@ "use strict";

tos: 'https://tos.vecha.in:5678/',
spaWallet: 'http://localhost:8080/'
spaWallet: 'https://qianbin.github.io/sync-spa/#/'
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uZmlnLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2NvbmZpZy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFBYSxRQUFBLGFBQWEsR0FBRztJQUN6QixJQUFJLEVBQUU7UUFDRixNQUFNLEVBQUUsQ0FBQztRQUNULEVBQUUsRUFBRSxvRUFBb0U7UUFDeEUsSUFBSSxFQUFFLEdBQUc7UUFDVCxRQUFRLEVBQUUsb0VBQW9FO1FBQzlFLFNBQVMsRUFBRSxVQUFVO1FBQ3JCLFFBQVEsRUFBRSxRQUFRO1FBQ2xCLFdBQVcsRUFBRSw0Q0FBNEM7UUFDekQsT0FBTyxFQUFFLENBQUM7UUFDVixVQUFVLEVBQUUsQ0FBQztRQUNiLE9BQU8sRUFBRSxvRUFBb0U7UUFDN0UsV0FBVyxFQUFFLENBQUM7UUFDZCxTQUFTLEVBQUUsb0VBQW9FO1FBQy9FLFlBQVksRUFBRSxvRUFBb0U7UUFDbEYsTUFBTSxFQUFFLDRDQUE0QztRQUNwRCxPQUFPLEVBQUUsSUFBSTtRQUNiLFlBQVksRUFBRSxFQUFFO0tBQ25CO0lBQ0QsSUFBSSxFQUFFO1FBQ0YsTUFBTSxFQUFFLENBQUM7UUFDVCxFQUFFLEVBQUUs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0FBVyxFQUFFLENBQUM7UUFDZCxTQUFTLEVBQUUsb0VBQW9FO1FBQy9FLFlBQVksRUFBRSxvRUFBb0U7UUFDbEYsTUFBTSxFQUFFLDRDQUE0QztRQUNwRCxPQUFPLEVBQUUsSUFBSTtRQUNiLFlBQVksRUFBRSxFQUFFO0tBQ25CO0lBQ0QsSUFBSSxFQUFFO1FBQ0YsTUFBTSxFQUFFLENBQUM7UUFDVCxFQUFFLEVBQUUsb0VBQW9FO1FBQ3hFLElBQUksRUFBRSxHQUFHO1FBQ1QsUUFBUSxFQUFFLG9FQUFvRTtRQUM5RSxTQUFTLEVBQUUsVUFBVTtRQUNyQixRQUFRLEVBQUUsUUFBUTtRQUNsQixXQUFXLEVBQUUsNENBQTRDO1FBQ3pELE9BQU8sRUFBRSxDQUFDO1FBQ1YsVUFBVSxFQUFFLENBQUM7UUFDYixPQUFPLEVBQUUsb0VBQW9FO1FBQzdFLFdBQVcsRUFBRSxDQUFDO1FBQ2QsU0FBUyxFQUFFLG9FQUFvRTtRQUMvRSxZQUFZLEVBQUUsb0VBQW9FO1FBQ2xGLE1BQU0sRUFBRSw0Q0FBNEM7UUFDcEQsT0FBTyxFQUFFLElBQUk7UUFDYixZQUFZLEVBQUUsRUFBRTtLQUNuQjtDQUNKLENBQUE7QUFFWSxRQUFBLElBQUksR0FBRztJQUNoQixHQUFHLEVBQUUsNEJBQTRCO0lBQ2pDLFNBQVMsRUFBRSx1Q0FBdUM7Q0FDckQsQ0FBQSJ9

@@ -13,6 +13,2 @@ /// <reference types="@vechain/connex-types" />

};
declare type RelayedResponse = {
error?: string;
payload?: object;
};
export declare class Driver extends DriverNoVendor {

@@ -23,4 +19,4 @@ signTx(msg: Connex.Vendor.TxMessage, options: Connex.Driver.TxOptions): Promise<Connex.Vendor.TxResponse>;

submitRequest(req: RelayedRequest): Promise<string>;
awaitResponse(reqId: string): Promise<RelayedResponse>;
pollData(reqId: string, suffix: string, timeout: number): Promise<any>;
}
export {};

@@ -27,20 +27,33 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
const onPrepared = options.onPrepared;
options = Object.assign(Object.assign({}, options), { onPrepared: undefined });
const reqId = yield this.submitRequest({
type,
gid: this.genesis.id,
payload: {
message: msg,
options: options
},
nonce: randomBytes(16).toString('hex')
});
onPrepared && onPrepared();
yield opener_1.open(reqId);
const resp = yield this.awaitResponse(reqId);
if (resp.error) {
throw new Error(resp.error);
let onAccepted = options.onAccepted;
options = Object.assign(Object.assign({}, options), { onAccepted: undefined });
try {
const reqId = yield this.submitRequest({
type,
gid: this.genesis.id,
payload: {
message: msg,
options: options
},
nonce: randomBytes(16).toString('hex')
});
onAccepted && void (() => __awaiter(this, void 0, void 0, function* () {
try {
yield this.pollData(reqId, '-accepted', 60 * 1000);
onAccepted && onAccepted();
}
catch (err) {
console.warn(err);
}
}))();
yield opener_1.open(reqId);
const resp = yield this.pollData(reqId, '-resp', 2 * 60 * 1000);
if (resp.error) {
throw new Error(resp.error);
}
return resp.payload;
}
return resp.payload;
finally {
onAccepted = undefined;
}
});

@@ -59,7 +72,9 @@ }

}
awaitResponse(reqId) {
pollData(reqId, suffix, timeout) {
return __awaiter(this, void 0, void 0, function* () {
for (let i = 0, errCount = 0; i < 5 && errCount < 2; i++) {
let errCount = 0;
const deadline = Date.now() + timeout;
while (Date.now() < deadline) {
try {
const resp = yield this.net.http('GET', config_1.urls.tos + reqId + '-resp', { query: { wait: '1' } });
const resp = yield this.net.http('GET', `${config_1.urls.tos}${reqId}${suffix}`, { query: { wait: '1' } });
if (resp) {

@@ -70,7 +85,9 @@ return resp;

catch (err) {
yield new Promise(resolve => setTimeout(resolve, 2000));
errCount++;
if (++errCount > 2) {
throw err;
}
yield new Promise(resolve => setTimeout(resolve, 3000));
}
}
return { error: 'timeout' };
throw new Error('timeout');
});

@@ -80,2 +97,2 @@ }

exports.Driver = Driver;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJpdmVyLmpzIiwic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BQUcsTUFBTSxJQUFJLENBQUMsR0FBRyxDQUFDLElBQUksQ0FDNUIsS0FBSyxFQUNMLEdBQUcsYUFBSSxDQUFDLEdBQUcsR0FBRyxLQUFLLEdBQUcsTUFBTSxFQUFFLEVBQzlCLEVBQUUsS0FBSyxFQUFFLEVBQUUsSUFBSSxFQUFFLEdBQUcsRUFBRSxFQUFFLENBQUMsQ0FBQTtvQkFFN0IsSUFBSSxJQUFJLEVBQUU7d0JBQ04sT0FBTyxJQUFJLENBQUE7cUJBQ2Q7aUJBQ0o7Z0JBQUMsT0FBTyxHQUFHLEVBQUU7b0JBQ1YsSUFBSSxFQUFFLFFBQVEsR0FBRyxDQUFDLEVBQUU7d0JBQ2hCLE1BQU0sR0FBRyxDQUFBO3FCQUNaO29CQUNELE1BQU0sSUFBSSxPQUFPLENBQUMsT0FBTyxDQUFDLEVBQUUsQ0FBQyxVQUFVLENBQUMsT0FBTyxFQUFFLElBQUksQ0FBQyxDQUFDLENBQUE7aUJBQzFEO2FBQ0o7WUFDRCxNQUFNLElBQUksS0FBSyxDQUFDLFNBQVMsQ0FBQyxDQUFBO1FBQzlCLENBQUM7S0FBQTtDQUNKO0FBcEZELHdCQW9GQyJ9

@@ -8,2 +8,3 @@ "use strict";

const driver_1 = require("./driver");
const compat_1 = require("./compat");
function extractGenesis(network) {

@@ -27,2 +28,5 @@ network = network || 'main';

if (injected && injected.thor.genesis.id === genesis.id) {
if (/^1\./.test(injected.version)) {
return compat_1.compat1(injected);
}
return injected;

@@ -37,2 +41,2 @@ }

exports.create = create;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsZ0VBQXFEO0FBQ3JELHVFQUFrRTtBQUNsRSxxQ0FBd0M7QUFDeEMscUNBQWlDO0FBV2p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0JBQU8sQ0FBQyxRQUFRLENBQUMsQ0FBQTthQUMzQjtZQUNELE9BQU8sUUFBUSxDQUFBO1NBQ2xCO0tBQ0o7SUFBQyxRQUFRLElBQUksSUFBTixFQUFFLElBQUksRUFBRTtJQUVoQixNQUFNLEdBQUcsR0FBRyxJQUFJLHNCQUFTLENBQUMsT0FBTyxDQUFDLENBQUE7SUFDbEMsTUFBTSxNQUFNLEdBQUcsSUFBSSxlQUFNLENBQUMsR0FBRyxFQUFFLE9BQU8sQ0FBQyxDQUFBO0lBQ3ZDLE9BQU8sSUFBSSw0QkFBUyxDQUFDLE1BQU0sQ0FBQyxDQUFBO0FBQ2hDLENBQUM7QUFyQkQsd0JBcUJDIn0=

@@ -34,3 +34,3 @@ "use strict";

const spaWindowFeatures = 'width=360,height=640,resizable,scrollbars=yes,dependent,modal';
window.open(`${config_1.urls.spaWallet}#/sign?rid=${encodeURIComponent(requestId)}`, spaWindowTarget, spaWindowFeatures, true);
window.open(`${config_1.urls.spaWallet}sign?rid=${encodeURIComponent(requestId)}`, spaWindowTarget, spaWindowFeatures, true);
return;

@@ -45,2 +45,2 @@ }

exports.open = open;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3BlbmVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL29wZW5lci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSxxQ0FBK0I7QUFFL0IsU0FBUyxZQUFZLENBQUMsU0FBaUI7SUFDbkMsTUFBTSxLQUFLLEdBQUcsT0FBTyxDQUFDLDJCQUEyQixDQUFDLENBQUE7SUFDbEQsTUFBTSxHQUFHLEdBQUcsbUJBQW1CLGtCQUFrQixDQUFDLFNBQVMsQ0FBQyxFQUFFLENBQUE7SUFDOUQsT0FBTyxJQUFJLE9BQU8sQ0FBQyxDQUFDLE9BQU8sRUFBRSxNQUFNLEVBQUUsRUFB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0osTUFBTTtTQUNUO1FBQ0QsTUFBTSxJQUFJLEtBQUssQ0FBQyxhQUFhLENBQUMsQ0FBQTtJQUNsQyxDQUFDO0NBQUE7QUFoQkQsb0JBZ0JDIn0=
{
"name": "@vechain/connex",
"version": "2.0.0-beta.7",
"version": "2.0.0-beta.8",
"description": "Standard interface to connect DApp with VeChain and user",

@@ -40,4 +40,4 @@ "main": "dist/index.js",

"dependencies": {
"@vechain/connex-driver": "^2.0.0-beta.7",
"@vechain/connex-framework": "^2.0.0-beta.7",
"@vechain/connex-driver": "^2.0.0-beta.8",
"@vechain/connex-framework": "^2.0.0-beta.8",
"custom-protocol-detection": "^1.0.1",

@@ -47,3 +47,3 @@ "randombytes": "^2.1.0",

},
"gitHead": "4dcd447720abef82f7c3ce93f1b9e92d980fcd96"
"gitHead": "eda8607a51edde0cd78c5b621c918f34038fe403"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc