Socket
Socket
Sign inDemoInstall

ethjs-query

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethjs-query - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 0.1.5 -- format update
1. Tigher formatting enforcement
2. Small schema update
# 0.1.4 -- less dependencies

@@ -2,0 +7,0 @@

4

lib/index.js

@@ -54,2 +54,3 @@ 'use strict';

var inputs = null; // eslint-disable-line
var inputError = null; // eslint-disable-line
var self = this;

@@ -71,5 +72,3 @@ var args = [].slice.call(arguments); // eslint-disable-line

self.log('attempting method formatting for \'' + protoMethod + '\' with raw outputs: ' + JSON.stringify(callbackResult, null, self.options.jsonSpace));
var methodOutputs = format.formatOutputs(method, callbackResult);
self.log('method formatting success for \'' + protoMethod + '\' formatted result: ' + JSON.stringify(methodOutputs, null, self.options.jsonSpace));

@@ -104,3 +103,2 @@

inputs = format.formatInputs(method, args);
self.log('method formatting success for \'' + protoMethod + '\' with formatted result: ' + JSON.stringify(inputs, null, self.options.jsonSpace));

@@ -107,0 +105,0 @@ } catch (formattingError) {

{
"name": "ethjs-query",
"version": "0.1.4",
"version": "0.1.5",
"description": "A simple query layer for the Ethereum RPC.",

@@ -120,3 +120,3 @@ "main": "lib/index.js",

"dependencies": {
"ethjs-format": "0.1.4"
"ethjs-format": "0.1.5"
},

@@ -123,0 +123,0 @@ "devDependencies": {

@@ -48,2 +48,3 @@ const format = require('ethjs-format');

var inputs = null; // eslint-disable-line
var inputError = null; // eslint-disable-line
const self = this;

@@ -65,5 +66,3 @@ const args = [].slice.call(arguments); // eslint-disable-line

self.log(`attempting method formatting for '${protoMethod}' with raw outputs: ${JSON.stringify(callbackResult, null, self.options.jsonSpace)}`);
const methodOutputs = format.formatOutputs(method, callbackResult);
self.log(`method formatting success for '${protoMethod}' formatted result: ${JSON.stringify(methodOutputs, null, self.options.jsonSpace)}`);

@@ -98,3 +97,2 @@

inputs = format.formatInputs(method, args);
self.log(`method formatting success for '${protoMethod}' with formatted result: ${JSON.stringify(inputs, null, self.options.jsonSpace)}`);

@@ -101,0 +99,0 @@ } catch (formattingError) {

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

Sorry, the diff of this file is not supported yet

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