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

@rpch/sdk

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rpch/sdk - npm Package Compare versions

Comparing version 1.9.0 to 1.10.0

4

build/index.d.ts

@@ -36,3 +36,3 @@ import * as DPapi from './dp-api';

* @param debugScope - programatically set debug scope for SDK
* @param debugLevel - only print debug statements that match at least the desired level: verbose < info < warn < error
* @param logLevel - only print log statements that match at least the desired level: verbose < info < warn < error
* @param forceManualRelaying - determine relay nodes for requests/responses and enforce them for one hop messages, can not be used with zero hop

@@ -51,3 +51,3 @@ */

readonly debugScope?: string;
readonly debugLevel?: string;
readonly logLevel?: string;
readonly forceManualRelaying?: boolean;

@@ -54,0 +54,0 @@ };

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

forceManualRelaying: false,
debugLevel: 'info',
logLevel: 'info',
};

@@ -416,3 +416,3 @@ const log = Utils.logger(['sdk']);

debugScope: ops.debugScope,
debugLevel: ops.debugLevel || (process.env.DEBUG ? undefined : defaultOps.debugLevel),
logLevel: ops.logLevel || (process.env.DEBUG ? undefined : defaultOps.logLevel),
forceManualRelaying,

@@ -431,3 +431,3 @@ };

this.fetchChainId = async (provider) => {
const res = await ProviderAPI.fetchChainId(provider).catch((err) => log.error('error fetching chainId for %s: %s[%o]', provider, JSON.stringify(err), err));
const res = await ProviderAPI.fetchChainId(provider).catch((err) => log.warn('error fetching chainId for %s: %s[%o]', provider, JSON.stringify(err), err));
if (!res) {

@@ -437,3 +437,3 @@ return;

if (JRPC.isError(res)) {
log.info('unable to resolve chainId for %s: %s', provider, JSON.stringify(res.error));
log.warn('unable to resolve chainId for %s: %s', provider, JSON.stringify(res.error));
return;

@@ -514,4 +514,4 @@ }

this.ops = this.sdkOps(ops);
(this.ops.debugScope || this.ops.debugLevel) &&
Utils.setDebugScopeLevel(this.ops.debugScope, this.ops.debugLevel);
(this.ops.debugScope || this.ops.logLevel) &&
Utils.setDebugScopeLevel(this.ops.debugScope, this.ops.logLevel);
this.requestCache = RequestCache.init();

@@ -518,0 +518,0 @@ this.segmentCache = SegmentCache.init();

@@ -1,2 +0,2 @@

declare const _default: "1.9.0";
declare const _default: "1.10.0";
export default _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = '1.9.0';
exports.default = '1.10.0';
# @rpch/sdk
## 1.10.0
### Minor Changes
- 2c13794: Rename DEBUG_LEVEL to LOG_LEVEL to avoid conflicts with bash logger inside RPC server container
## 1.9.0

@@ -4,0 +10,0 @@

{
"name": "@rpch/sdk",
"version": "1.9.0",
"version": "1.10.0",
"license": "LGPL-3.0",

@@ -5,0 +5,0 @@ "main": "./build/index.js",

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