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

ethrpc

Package Overview
Dependencies
Maintainers
6
Versions
367
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethrpc - npm Package Compare versions

Comparing version 2.3.2 to 2.3.3

38

gulpfile.js

@@ -9,31 +9,31 @@ "use strict";

gulp.task("clean", function (callback) {
del([path.join("dist", "*.js")], callback);
del([path.join("dist", "*.js")], callback);
});
gulp.task("lint", function (callback) {
cp.exec("npm run lint", function (err, stdout) {
if (err) if (stdout) process.stdout.write(stdout);
callback(err);
});
cp.exec("npm run lint", function (err, stdout) {
if (err) if (stdout) process.stdout.write(stdout);
callback(err);
});
});
gulp.task("build", function (callback) {
del([path.join("dist", "*.js")], function (err) {
if (err) throw err;
cp.exec("./node_modules/browserify/bin/cmd.js ./exports.js | "+
"./node_modules/uglify-js/bin/uglifyjs > ./dist/ethrpc.min.js",
del([path.join("dist", "*.js")], function (err) {
if (err) throw err;
cp.exec("./node_modules/browserify/bin/cmd.js ./exports.js | "+
"./node_modules/uglify-js/bin/uglifyjs > ./dist/ethrpc.min.js",
function (err, stdout) {
if (err) throw err;
if (stdout) process.stdout.write(stdout);
cp.exec("./node_modules/browserify/bin/cmd.js ./exports.js "+
"> ./dist/ethrpc.js",
function (err, stdout) {
if (err) throw err;
if (stdout) process.stdout.write(stdout);
cp.exec("./node_modules/browserify/bin/cmd.js ./exports.js "+
"> ./dist/ethrpc.js",
function (err, stdout) {
if (err) throw err;
if (stdout) process.stdout.write(stdout);
callback();
if (err) throw err;
if (stdout) process.stdout.write(stdout);
callback();
});
});
});
});
});
});
gulp.task("default", ["lint", "build"]);
{
"name": "ethrpc",
"version": "2.3.2",
"version": "2.3.3",
"description": "Ethereum JSON RPC",

@@ -24,4 +24,4 @@ "main": "index.js",

"async": "1.5.2",
"augur-abi": "1.0.0",
"augur-contracts": "2.7.0",
"augur-abi": "1.1.1",
"augur-contracts": "2.7.4",
"bignumber.js": "2.3.0",

@@ -28,0 +28,0 @@ "browser-request": "0.3.3",

@@ -9,31 +9,31 @@ #!/usr/bin/env node

var log = function (label, res) {
console.log(
chalk.cyan(label + ":"),
chalk.white.dim(JSON.stringify(res, null, 2))
);
console.log(
chalk.cyan(label + ":"),
chalk.white.dim(JSON.stringify(res, null, 2))
);
};
var tx = {
to: contracts.faucets,
from: rpc.coinbase(),
method: "reputationFaucet",
signature: "i",
params: "0xf69b5",
returns: "number"
to: contracts.faucets,
from: rpc.coinbase(),
method: "reputationFaucet",
signature: "i",
params: "0xf69b5",
returns: "number"
};
var callbacks = {
onSent: function (res) {
log("sent", res);
},
onSuccess: function (res) {
log("success", res);
assert(false);
},
onFailed: function (res) {
log("failed", res.message);
console.log(res.stack);
}
onSent: function (res) {
log("sent", res);
},
onSuccess: function (res) {
log("success", res);
assert(false);
},
onFailed: function (res) {
log("failed", res.message);
console.log(res.stack);
}
};
rpc.transact(tx, callbacks.onSent, callbacks.onSuccess, callbacks.onFailed);

@@ -8,14 +8,14 @@ #!/usr/bin/env node

websocket.onerror = function () {
console.log("websocket error :(");
console.log("websocket error :(");
};
websocket.onclose = function () {
console.log("websocket closed");
console.log("websocket closed");
};
websocket.onmessage = function (msg) {
console.log("websocket message:", msg.data);
console.log("websocket message:", msg.data);
};
websocket.onopen = function () {
console.log("websocket open:", websocket.readyState);
websocket.send(JSON.stringify({"id":1,"jsonrpc":"2.0","method":"eth_gasPrice","params":[]}));
websocket.send(JSON.stringify({"id":2,"jsonrpc":"2.0","method":"eth_coinbase","params":[]}));
console.log("websocket open:", websocket.readyState);
websocket.send(JSON.stringify({"id":1,"jsonrpc":"2.0","method":"eth_gasPrice","params":[]}));
websocket.send(JSON.stringify({"id":2,"jsonrpc":"2.0","method":"eth_coinbase","params":[]}));
};

Sorry, the diff of this file is not supported yet

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

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

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