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

@vechain/connex.driver-nodejs

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vechain/connex.driver-nodejs - npm Package Compare versions

Comparing version 1.0.0-beta-9 to 1.0.0

dist/simple-websocket-reader.d.ts

26

dist/driver-no-vendor.d.ts

@@ -30,26 +30,4 @@ /// <reference types="@vechain/connex" />

filterTransferLogs(arg: object): Promise<any>;
abstract buildTx(msg: Array<{
to: string | null;
value: string;
data: string;
comment?: string;
abi?: object;
}>, options: {
signer?: string;
gas?: number;
dependsOn?: string;
link?: string;
comment?: string;
}): Promise<{
origin: string;
raw: string;
sign(delegation?: {
signature?: string;
error?: Error;
}): Promise<Connex.Vendor.TxResponse>;
}>;
abstract signCert(msg: Connex.Vendor.CertMessage, options: {
signer?: string;
link?: string;
}): Promise<Connex.Vendor.CertResponse>;
abstract signTx(msg: Connex.Driver.SignTxArg, option: Connex.Driver.SignTxOption): Promise<Connex.Driver.SignTxResult>;
abstract signCert(msg: Connex.Driver.SignCertArg, options: Connex.Driver.SignCertOption): Promise<Connex.Driver.SignCertResult>;
abstract isAddressOwned(addr: string): boolean;

@@ -56,0 +34,0 @@ protected httpGet(path: string, query?: object): Promise<any>;

@@ -11,7 +11,5 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
const websocket_reader_1 = require("./websocket-reader");
const NodeURL = require("url");
const promint_1 = require("./promint");
const cache_1 = require("./cache");
const cry_1 = require("thor-devkit/dist/cry");
const blake2b_1 = require("thor-devkit/dist/cry/blake2b");
/** class implements Connex.Driver leaves out Vendor related methods */

@@ -68,11 +66,11 @@ class DriverNoVendor {

explain(arg, revision, cacheTies) {
const cacheKey = `explain-${cry_1.blake2b256(JSON.stringify(arg)).toString('hex')}`;
const cacheKey = `explain-${blake2b_1.blake2b256(JSON.stringify(arg)).toString('hex')}`;
return this.cache.getTied(cacheKey, revision, () => this.httpPost('accounts/*', arg, { revision }), cacheTies);
}
filterEventLogs(arg) {
const cacheKey = `event-${cry_1.blake2b256(JSON.stringify(arg)).toString('hex')}`;
const cacheKey = `event-${blake2b_1.blake2b256(JSON.stringify(arg)).toString('hex')}`;
return this.cache.getTied(cacheKey, this.head.id, () => this.httpPost('logs/event', arg));
}
filterTransferLogs(arg) {
const cacheKey = `transfer-${cry_1.blake2b256(JSON.stringify(arg)).toString('hex')}`;
const cacheKey = `transfer-${blake2b_1.blake2b256(JSON.stringify(arg)).toString('hex')}`;
return this.cache.getTied(cacheKey, this.head.id, () => this.httpPost('logs/transfer', arg));

@@ -106,3 +104,4 @@ }

try {
const beat = yield this.int.wrap(wsr.read());
const data = yield this.int.wrap(wsr.read());
const beat = JSON.parse(data);
if (!beat.obsolete && beat.id !== this.head.id && beat.number >= this.head.number) {

@@ -150,7 +149,11 @@ this.head = {

counter = 0;
const wsURL = NodeURL.resolve(this.net.baseURL, `subscriptions/beat?x-genesis-id=${this.genesis.id}&pos=${this.head.parentID}`)
.replace(/^https:/i, 'wss:')
.replace(/^http:/i, 'ws:');
wsr = new websocket_reader_1.WebSocketReader(wsURL);
continue;
const wsPath = `subscriptions/beat?pos=${this.head.parentID}`;
try {
wsr = this.net.openWebSocketReader(wsPath);
continue;
}
catch (err) {
// tslint:disable-next-line: no-console
console.warn('headTracker(openws):', err);
}
}

@@ -181,2 +184,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZHJpdmVyLW5vLXZlbmRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9kcml2ZXItbm8tdmVuZG9yLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFDQSx5REFBb0Q7QUFDcEQsK0JBQThCO0FBQzlCLHVDQUFxRDtBQUNyRCxtQ0FBK0I7QUFDL0IsOEN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sQ0FBQyxDQUFBO3FCQUN4QztvQkFBQyxXQUFNO3dCQUNKLE1BQUs7cUJBQ1I7aUJBQ0o7YUFDSjtRQUNMLENBQUM7S0FBQTtDQUNKO0FBekxELHdDQXlMQztBQUVELFNBQVMsS0FBSyxDQUFDLEVBQVU7SUFDckIsT0FBTyxJQUFJLE9BQU8sQ0FBQyxPQUFPLENBQUMsRUFBRSxDQUFDLFVBQVUsQ0FBQyxPQUFPLEVBQUUsRUFBRSxDQUFDLENBQUMsQ0FBQTtBQUMxRCxDQUFDIn0=
/// <reference types="@vechain/connex" />
/// <reference types="@vechain/connex.driver" />
import { DriverNoVendor } from './driver-no-vendor';

@@ -22,33 +23,4 @@ import { Net, Wallet } from './interfaces';

constructor(net: Net, genesis: Connex.Thor.Block, initialHead?: Connex.Thor.Status['head'], wallet?: Wallet | undefined);
buildTx(msg: Array<{
to: string | null;
value: string;
data: string;
comment?: string;
abi?: object;
}>, options: {
signer?: string | undefined;
gas?: number | undefined;
dependsOn?: string | undefined;
link?: string | undefined;
comment?: string | undefined;
}): Promise<{
origin: string;
raw: string;
sign(delegation?: {
signature?: string;
error?: Error;
}): Promise<Connex.Vendor.TxResponse>;
}>;
signCert(msg: Connex.Vendor.CertMessage, options: {
signer?: string | undefined;
link?: string | undefined;
}): Promise<{
annex: {
domain: string;
timestamp: number;
signer: string;
};
signature: string;
}>;
signTx(msg: Connex.Driver.SignTxArg, option: Connex.Driver.SignTxOption): Promise<Connex.Driver.SignTxResult>;
signCert(msg: Connex.Driver.SignCertArg, options: Connex.Driver.SignCertOption): Promise<Connex.Driver.SignCertResult>;
isAddressOwned(addr: string): boolean;

@@ -55,0 +27,0 @@ private findKey;

@@ -12,3 +12,5 @@ "use strict";

const driver_no_vendor_1 = require("./driver-no-vendor");
const thor_devkit_1 = require("thor-devkit");
const transaction_1 = require("thor-devkit/dist/transaction");
const certificate_1 = require("thor-devkit/dist/certificate");
const blake2b_1 = require("thor-devkit/dist/cry/blake2b");
const crypto_1 = require("crypto");

@@ -45,7 +47,7 @@ /** class fully implements Connex.Driver */

}
buildTx(msg, options) {
signTx(msg, option) {
return __awaiter(this, void 0, void 0, function* () {
const key = this.findKey(options.signer);
const key = this.findKey(option.signer);
const clauses = msg.map(c => ({ to: c.to, value: c.value, data: c.data }));
const gas = options.gas ||
const gas = option.gas ||
(yield this.estimateGas(clauses, key.address));

@@ -59,44 +61,41 @@ const txBody = {

gas,
dependsOn: options.dependsOn || null,
dependsOn: option.dependsOn || null,
nonce: '0x' + crypto_1.randomBytes(8).toString('hex')
};
const delegatedTx = new thor_devkit_1.Transaction(Object.assign({}, txBody, { reserved: { features: 1 /* vip191 */ } }));
let tx;
if (option.delegationHandler) {
const delegatedTx = new transaction_1.Transaction(Object.assign({}, txBody, { reserved: { features: 1 /* vip191 */ } }));
const originSig = yield key.sign(delegatedTx.signingHash());
try {
const result = yield option.delegationHandler({
raw: '0x' + delegatedTx.encode().toString('hex'),
origin: key.address
});
delegatedTx.signature = Buffer.concat([originSig, Buffer.from(result.signature.slice(2), 'hex')]);
tx = delegatedTx;
}
catch (err) {
// tslint:disable-next-line: no-console
console.warn('tx delegation error: ', err);
// fallback to non-vip191 tx
}
}
if (!tx) {
tx = new transaction_1.Transaction(txBody);
tx.signature = yield key.sign(tx.signingHash());
}
const raw = '0x' + tx.encode().toString('hex');
if (this.onTxCommit) {
this.onTxCommit({
id: tx.id,
raw,
resend: () => __awaiter(this, void 0, void 0, function* () {
yield this.sendTx(raw);
})
});
}
yield this.sendTx(raw);
return {
raw: '0x' + delegatedTx.encode().toString('hex'),
origin: key.address,
sign: (delegation) => __awaiter(this, void 0, void 0, function* () {
let tx;
if (delegation && !delegation.error) {
tx = delegatedTx;
const originSig = yield key.sign(tx.signingHash());
tx.signature = Buffer.concat([
originSig,
Buffer.from(delegation.signature.slice(2), 'hex')
]);
}
else {
if (delegation && delegation.error) {
// tslint:disable-next-line: no-console
console.warn('tx delegation error: ', delegation.error);
// fallback to non-vip191 tx
}
tx = new thor_devkit_1.Transaction(txBody);
tx.signature = yield key.sign(tx.signingHash());
}
const raw = '0x' + tx.encode().toString('hex');
if (this.onTxCommit) {
this.onTxCommit({
id: tx.id,
raw,
resend: () => __awaiter(this, void 0, void 0, function* () {
yield this.sendTx(raw);
})
});
}
yield this.sendTx(raw);
return {
txid: tx.id,
signer: key.address
};
})
txid: tx.id,
signer: key.address
};

@@ -113,4 +112,4 @@ });

};
const unsigned = thor_devkit_1.Certificate.encode(Object.assign({}, msg, annex));
const signature = yield key.sign(thor_devkit_1.cry.blake2b256(unsigned));
const unsigned = certificate_1.Certificate.encode(Object.assign({}, msg, annex));
const signature = yield key.sign(blake2b_1.blake2b256(unsigned));
return {

@@ -145,3 +144,3 @@ annex,

const execGas = outputs.reduce((sum, out) => sum + out.gasUsed, 0);
const intrinsicGas = thor_devkit_1.Transaction.intrinsicGas(clauses);
const intrinsicGas = transaction_1.Transaction.intrinsicGas(clauses);
return intrinsicGas + (execGas ? (execGas + 15000) : 0);

@@ -152,2 +151,2 @@ });

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

@@ -14,2 +14,7 @@ /// <reference types="node" />

http(method: 'GET' | 'POST', path: string, params?: Net.Params): Promise<any>;
/**
* open websocket reader on path
* @param path
*/
openWebSocketReader(path: string): Net.WebSocketReader;
}

@@ -23,2 +28,8 @@ export declare namespace Net {

}
/** websocket reader */
interface WebSocketReader {
/** read data */
read(): Promise<any>;
close(): void;
}
}

@@ -25,0 +36,0 @@ /** Wallet interface manages private keys */

import { Net } from './interfaces';
import { SimpleWebSocketReader } from './simple-websocket-reader';
/** class simply implements Net interface */
export declare class SimpleNet implements Net {
readonly baseURL: string;
private readonly wsTimeout;
private readonly axios;
constructor(baseURL: string, timeout?: number);
constructor(baseURL: string, timeout?: number, wsTimeout?: number);
http(method: 'GET' | 'POST', path: string, params?: {

@@ -12,2 +14,3 @@ query?: object;

}): Promise<any>;
openWebSocketReader(path: string): SimpleWebSocketReader;
}

@@ -12,6 +12,9 @@ "use strict";

const axios_1 = require("axios");
const simple_websocket_reader_1 = require("./simple-websocket-reader");
const NodeURL = require("url");
/** class simply implements Net interface */
class SimpleNet {
constructor(baseURL, timeout = 15 * 1000) {
constructor(baseURL, timeout = 15 * 1000, wsTimeout = 30 * 1000) {
this.baseURL = baseURL;
this.wsTimeout = wsTimeout;
this.axios = axios_1.default.create({

@@ -41,2 +44,8 @@ baseURL,

}
openWebSocketReader(path) {
const url = NodeURL.resolve(this.baseURL, path)
.replace(/^http:/i, 'ws:')
.replace(/^https:/i, 'wss:');
return new simple_websocket_reader_1.SimpleWebSocketReader(url, this.wsTimeout);
}
}

@@ -62,2 +71,2 @@ exports.SimpleNet = SimpleNet;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2ltcGxlLW5ldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zaW1wbGUtbmV0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFDQSxpQ0FBd0Q7QUFFeEQsNENBQTRDO0FBQzVDLE1BQWEsU0FBUztJQUdsQixZQUFxQixPQUFlLEVBQUUsT0FBTyxHQUFHLEVBQUUsR0FBRyxJQUFJO1FBQXBDLFlBQU8sR0FBUCxPQUFPLENBQVE7UUFDaEMsSUFBSSxDQUFDLEtBQUssR0FBRyxlQUFLLENBQUMsTUFBTSxDQUFDO1lBQ3RCLE9BQU87WUFDUCxPQUFPO1lBQ1AsWUFBWSxFQUFFLE1BQU07U0FDdkIsQ0FBQyxDQUFBO0lBQ04sQ0FBQztJQUVZLElBQUksQ0FDYixNQUFzQixFQUN0QixJQUFZLEVBQ1osTUFBMEQ7O1lBQzFELE1BQU0sR0FBRyxNQUFNLElBQUksRUFBRSxDQUFBO1lBQ3JCLElBQUk7Z0JBQ0EsTUFBTSxJQUFJLEdBQUcsTUFBTSxJQUFJLENBQ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ZQUMzQixJQUFJLElBQUksQ0FBQyxNQUFNLEdBQUcsRUFBRSxFQUFFO2dCQUNsQixJQUFJLEdBQUcsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLEdBQUcsS0FBSyxDQUFBO2FBQ25DO1lBQ0QsT0FBTyxJQUFJLEtBQUssQ0FBQyxHQUFHLElBQUksQ0FBQyxNQUFNLElBQUksR0FBRyxDQUFDLE1BQU0sQ0FBQyxNQUFNLElBQUksR0FBRyxDQUFDLE1BQU0sQ0FBQyxHQUFHLEtBQUssSUFBSSxFQUFFLENBQUMsQ0FBQTtTQUNyRjthQUFNO1lBQ0gsT0FBTyxJQUFJLEtBQUssQ0FBQyxHQUFHLElBQUksQ0FBQyxNQUFNLElBQUksR0FBRyxDQUFDLE1BQU0sQ0FBQyxNQUFNLElBQUksR0FBRyxDQUFDLE1BQU0sQ0FBQyxHQUFHLEVBQUUsQ0FBQyxDQUFBO1NBQzVFO0tBQ0o7U0FBTTtRQUNILE9BQU8sSUFBSSxLQUFLLENBQUMsR0FBRyxHQUFHLENBQUMsTUFBTSxDQUFDLE1BQU0sSUFBSSxHQUFHLENBQUMsTUFBTSxDQUFDLEdBQUcsS0FBSyxHQUFHLENBQUMsT0FBTyxFQUFFLENBQUMsQ0FBQTtLQUM3RTtBQUNMLENBQUMifQ==
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const thor_devkit_1 = require("thor-devkit");
const secp256k1_1 = require("thor-devkit/dist/cry/secp256k1");
const address_1 = require("thor-devkit/dist/cry/address");
/** class simply implements Wallet interface */

@@ -14,3 +15,3 @@ class SimpleWallet {

sign(msgHash) {
return Promise.resolve(thor_devkit_1.cry.secp256k1.sign(msgHash, k.privateKey));
return Promise.resolve(secp256k1_1.secp256k1.sign(msgHash, k.privateKey));
}

@@ -33,3 +34,3 @@ };

const buf = Buffer.from(privateKey, 'hex');
const addr = '0x' + thor_devkit_1.cry.publicKeyToAddress(thor_devkit_1.cry.secp256k1.derivePublicKey(buf)).toString('hex');
const addr = '0x' + address_1.publicKeyToAddress(secp256k1_1.secp256k1.derivePublicKey(buf)).toString('hex');
this.keys.push({ address: addr, privateKey: buf });

@@ -53,2 +54,2 @@ return addr;

exports.SimpleWallet = SimpleWallet;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2ltcGxlLXdhbGxldC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zaW1wbGUtd2FsbGV0LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0EsNkNBQWlDO0FBRWpDLCtDQUErQztBQUMvQyxNQUFhLFlBQVk7SUFBekI7UUFDcUIsU0FBSSxHQUFHLEVBQWlCLENBQUE7SUE0QzdDLENBQUM7SUExQ0csSUFBSSxJQUFJO1FBQ0osT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUMsRUFBRTtZQUNyQixPQUFPO2dCQUNILE9BQU8sRUFBRSxDQUFDLENBQUMsT0FBTztnQkFDbEIsSUFBSSxDQUFDLE9BQWU7b0JBQ2hCLE9BQU8sT0FBTyxDQUFDLE9BQU8sQ0FBQyxpQkFBRyxDQUFDLFNBQVMsQ0FBQyxJQUFJLENBQUMsT0FBTyxFQUFFLENBQUMsQ0FBQyxVQUFVLENBQUMsQ0FBQyxDQUFBO2dCQUNyRSxDQUFDO2FBQ0osQ0FBQTtRQUNMLENBQUMsQ0FBQyxDQUFBO0lBQ04sQ0FBQztJQUVEOzs7O09BSUc7SUFDSSxNQUFNLENBQUMsVUFBa0I7UUFDNUIsSUFBSSxVQUFVLENBQUMsVUFBVSxDQUFDLElBQUksQ0FBQyxFQUFFO1lBQzdCLFVBQVUsR0FBRyxVQUFVLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFBO1NBQ25DO1FBQ0QsSUFBSSxDQUFDLGlCQUFpQixDQU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BQWtCLENBQUMscUJBQVMsQ0FBQyxlQUFlLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxRQUFRLENBQUMsS0FBSyxDQUFDLENBQUE7UUFDdEYsSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsRUFBRSxPQUFPLEVBQUUsSUFBSSxFQUFFLFVBQVUsRUFBRSxHQUFHLEVBQUUsQ0FBQyxDQUFBO1FBQ2xELE9BQU8sSUFBSSxDQUFBO0lBQ2YsQ0FBQztJQUVEOzs7O09BSUc7SUFDSSxNQUFNLENBQUMsSUFBWTtRQUN0QixNQUFNLENBQUMsR0FBRyxJQUFJLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQyxPQUFPLEtBQUssSUFBSSxDQUFDLFdBQVcsRUFBRSxDQUFDLENBQUE7UUFDcEUsSUFBSSxDQUFDLElBQUksQ0FBQyxFQUFFO1lBQ1IsSUFBSSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFBO1lBQ3RCLE9BQU8sSUFBSSxDQUFBO1NBQ2Q7UUFDRCxPQUFPLEtBQUssQ0FBQTtJQUNoQixDQUFDO0NBQ0o7QUE3Q0Qsb0NBNkNDIn0=
{
"name": "@vechain/connex.driver-nodejs",
"version": "1.0.0-beta-9",
"version": "1.0.0",
"description": "Connex framework driver implementation in NodeJS",

@@ -15,3 +15,3 @@ "main": "dist/index.js",

"type": "git",
"url": "git+https://github.com/qianbin/connex.driver-nodejs.git"
"url": "git+https://github.com/vechain/connex.driver-nodejs.git"
},

@@ -25,7 +25,7 @@ "keywords": [

"author": "qianbin",
"license": "ISC",
"license": "LGPL-3.0",
"bugs": {
"url": "https://github.com/qianbin/connex.driver-nodejs/issues"
"url": "https://github.com/vechain/connex.driver-nodejs/issues"
},
"homepage": "https://github.com/qianbin/connex.driver-nodejs#readme",
"homepage": "https://github.com/vechain/connex.driver-nodejs#readme",
"devDependencies": {

@@ -40,3 +40,3 @@ "@types/lru-cache": "^5.1.0",

"@vechain/connex": "^1.3.2",
"@vechain/connex.driver": "^1.0.0-beta-9",
"@vechain/connex.driver": "^1.0.0",
"axios": "^0.19.0",

@@ -46,5 +46,5 @@ "bignumber.js": "^9.0.0",

"lru-cache": "^5.1.1",
"thor-devkit": "^0.11.0",
"thor-devkit": "^1.0.0",
"ws": "^7.1.0"
}
}
# Connex Driver for NodeJS
[![npm version](https://badge.fury.io/js/%40vechain%2Fconnex.driver-nodejs.svg)](https://badge.fury.io/js/%40vechain%2Fconnex.driver-nodejs)
It drives Connex Framework to work in NodeJS environment. Now you can use Connex in NodeJS backend project.

@@ -4,0 +6,0 @@

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