@ckb-lumos/rpc
Advanced tools
Comparing version 0.16.0 to 0.17.0-rc5
@@ -13,5 +13,6 @@ import { Alert, BannedAddr, Block, BlockEconomicState, CellWithStatus, ChainInfo, Consensus, DryRunResult, Epoch, Hash, Header, HexNumber, HexString, Indexer, LocalNode, OutPoint, RemoteNode, SyncState, Transaction, TransactionProof, TransactionWithStatus, TxPoolIds, TxPoolInfo, TxPoolVerbosity } from "@ckb-lumos/base"; | ||
*/ | ||
constructor(uri: string, indexer?: Indexer, { waitForSyncCheckIntervalSeconds, blockDifference, }?: { | ||
constructor(uri: string, indexer?: Indexer, { waitForSyncCheckIntervalSeconds, blockDifference, rpcOptions, }?: { | ||
waitForSyncCheckIntervalSeconds?: number; | ||
blockDifference?: number; | ||
rpcOptions?: object; | ||
}); | ||
@@ -18,0 +19,0 @@ /** |
@@ -20,4 +20,4 @@ "use strict"; | ||
class RpcProxy { | ||
constructor(uri, indexer, { waitForSyncCheckIntervalSeconds = 1, blockDifference = 3, } = {}) { | ||
this.rpc = new ckb_js_toolkit_1.RPC(uri); | ||
constructor(uri, indexer, { waitForSyncCheckIntervalSeconds = 1, blockDifference = 3, rpcOptions = {}, } = {}) { | ||
this.rpc = new ckb_js_toolkit_1.RPC(uri, rpcOptions); | ||
this.indexer = indexer; | ||
@@ -59,6 +59,7 @@ this.waitForSyncCheckIntervalSeconds = waitForSyncCheckIntervalSeconds; | ||
*/ | ||
constructor(uri, indexer, { waitForSyncCheckIntervalSeconds = 1, blockDifference = 3, } = {}) { | ||
constructor(uri, indexer, { waitForSyncCheckIntervalSeconds = 1, blockDifference = 3, rpcOptions = {}, } = {}) { | ||
this.rpcProxy = new RpcProxy(uri, indexer, { | ||
waitForSyncCheckIntervalSeconds, | ||
blockDifference, | ||
rpcOptions, | ||
}).getProxy(); | ||
@@ -65,0 +66,0 @@ } |
{ | ||
"name": "@ckb-lumos/rpc", | ||
"version": "0.16.0", | ||
"version": "0.17.0-rc5", | ||
"description": "RPC module for CKB", | ||
@@ -13,5 +13,2 @@ "author": "Xuejie Xiao <xxuejie@gmail.com>", | ||
}, | ||
"cpu": [ | ||
"x64" | ||
], | ||
"os": [ | ||
@@ -50,3 +47,3 @@ "win32", | ||
"dependencies": { | ||
"@ckb-lumos/base": "^0.16.0", | ||
"@ckb-lumos/base": "^0.17.0-rc5", | ||
"ckb-js-toolkit": "^0.10.2" | ||
@@ -53,0 +50,0 @@ }, |
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
17460
245
+ Added@ckb-lumos/base@0.17.0(transitive)
+ Added@ckb-lumos/bi@0.17.0(transitive)
+ Added@ckb-lumos/toolkit@0.17.0(transitive)
+ Added@types/lodash@4.17.15(transitive)
+ Added@types/lodash.isequal@4.5.8(transitive)
+ Addedjsbi@4.3.0(transitive)
+ Addedlodash.isequal@4.5.0(transitive)
- Removed@ckb-lumos/base@0.16.0(transitive)
- Removedimmutable@4.3.7(transitive)
Updated@ckb-lumos/base@^0.17.0-rc5