ethereum-console
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -7,2 +7,4 @@ /** | ||
var fs = require("fs"); | ||
module.exports = function() { | ||
@@ -12,9 +14,19 @@ var p = require('path'); | ||
if(process.platform === 'darwin') | ||
path += '/Library/Ethereum/geth.ipc'; | ||
var macDefaultDir = "/Library/Ethereum/geth.ipc"; | ||
var linuxDefaultDir = "/.ethereum/geth.ipc"; | ||
if(process.platform === 'darwin') { | ||
if(fs.existsSync(path + macDefaultDir)) | ||
path += macDefaultDir; | ||
else | ||
if(fs.existsSync(path + linuxDefaultDir)) | ||
path += linuxDefaultDir; | ||
else | ||
path += macDefaultDir; | ||
} | ||
if(process.platform === 'freebsd' || | ||
process.platform === 'linux' || | ||
process.platform === 'sunos') | ||
path += '/.ethereum/geth.ipc'; | ||
path += linuxDefaultDir; | ||
@@ -21,0 +33,0 @@ if(process.platform === 'win32') |
@@ -56,3 +56,7 @@ #!/usr/bin/env node | ||
console.log("Entering interactive mode."); | ||
repl.start(); | ||
repl.start({ | ||
prompt: "> ", | ||
input: process.stdin, | ||
output: process.stdout | ||
}); | ||
} | ||
@@ -59,0 +63,0 @@ } |
{ | ||
"name": "ethereum-console", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Commandline console for Ethereum nodes", | ||
@@ -5,0 +5,0 @@ "main": "main.js", |
@@ -28,3 +28,3 @@ function chainParams(options) { | ||
for (var address in options.accounts) { | ||
params[address] = { wei: options.accounts[address] }; | ||
params.accounts[address] = { wei: options.accounts[address] }; | ||
} | ||
@@ -39,2 +39,2 @@ } | ||
chainParams: chainParams | ||
}; | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
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
248799
531
2
5