New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@0xsequence/network

Package Overview
Dependencies
Maintainers
5
Versions
508
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0xsequence/network - npm Package Compare versions

Comparing version 0.36.8 to 0.36.9

6

dist/0xsequence-network.cjs.dev.js

@@ -711,8 +711,8 @@ 'use strict';

const chainIdLabel = chainId ? ` chainId:${chainId}` : '';
console.log(`[provider request]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params);
utils.logger.info(`[provider request]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params);
next(request, (error, response) => {
if (error) {
console.warn(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `error:`, error);
utils.logger.warn(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `error:`, error);
} else {
console.log(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `response:`, response);
utils.logger.info(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `response:`, response);
}

@@ -719,0 +719,0 @@

@@ -711,8 +711,8 @@ 'use strict';

const chainIdLabel = chainId ? ` chainId:${chainId}` : '';
console.log(`[provider request]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params);
utils.logger.info(`[provider request]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params);
next(request, (error, response) => {
if (error) {
console.warn(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `error:`, error);
utils.logger.warn(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `error:`, error);
} else {
console.log(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `response:`, response);
utils.logger.info(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `response:`, response);
}

@@ -719,0 +719,0 @@

@@ -707,8 +707,8 @@ import { urlClean, logger } from '@0xsequence/utils';

const chainIdLabel = chainId ? ` chainId:${chainId}` : '';
console.log(`[provider request]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params);
logger.info(`[provider request]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params);
next(request, (error, response) => {
if (error) {
console.warn(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `error:`, error);
logger.warn(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `error:`, error);
} else {
console.log(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `response:`, response);
logger.info(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `response:`, response);
}

@@ -715,0 +715,0 @@

{
"name": "@0xsequence/network",
"version": "0.36.8",
"version": "0.36.9",
"description": "network sub-package for Sequence",

@@ -16,3 +16,3 @@ "repository": "https://github.com/0xsequence/sequence.js/tree/master/packages/network",

"dependencies": {
"@0xsequence/utils": "^0.36.8",
"@0xsequence/utils": "^0.36.9",
"@ethersproject/providers": "^5.5.1",

@@ -19,0 +19,0 @@ "ethers": "^5.5.2"

import { JsonRpcHandlerFunc, JsonRpcRequest, JsonRpcResponse, JsonRpcResponseCallback, JsonRpcMiddleware } from '../types'
import { logger } from '@0xsequence/utils'

@@ -6,9 +7,9 @@ export const loggingProviderMiddleware: JsonRpcMiddleware = (next: JsonRpcHandlerFunc) => {

const chainIdLabel = chainId ? ` chainId:${chainId}` : ''
console.log(`[provider request]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params)
logger.info(`[provider request]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params)
next(request, (error: any, response?: JsonRpcResponse) => {
if (error) {
console.warn(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `error:`, error)
logger.warn(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `error:`, error)
} else {
console.log(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `response:`, response)
logger.info(`[provider response]${chainIdLabel} id:${request.id} method:${request.method} params:`, request.params, `response:`, response)
}

@@ -15,0 +16,0 @@ callback(error, response)

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