Comparing version 2.2.0 to 2.3.0
@@ -0,1 +1,7 @@ | ||
<a name="2.3.0"></a> | ||
# [2.3.0](https://github.com/blockai/bitstore-client/compare/v2.3.0...v2.3.0) (2015-11-04) | ||
<a name="2.2.0"></a> | ||
@@ -2,0 +8,0 @@ # [2.2.0](https://github.com/blockai/bitstore-client/compare/v2.2.0...v2.2.0) (2015-10-23) |
@@ -56,4 +56,8 @@ #!/usr/bin/env node | ||
var defaultConfigPath = _path2['default'].join(process.env.HOME, '.bitstore'); | ||
var initConfig = function initConfig() { | ||
var config = _nconf2['default'].file(_path2['default'].join(process.env.HOME, '.bitstore')).defaults({ | ||
var configPath = arguments.length <= 0 || arguments[0] === undefined ? _commander2['default'].config : arguments[0]; | ||
var config = _nconf2['default'].file(configPath).defaults({ | ||
network: 'livenet' | ||
@@ -72,3 +76,3 @@ }).get(); | ||
if (!config.privateKey) { | ||
exit('Configure { privateKey: "" } in ' + process.env.HOME + '/.bitstore'); | ||
exit('Configure { privateKey: "" } in ' + configPath); | ||
} | ||
@@ -88,3 +92,3 @@ | ||
_commander2['default'].version('bitstore version: ' + _packageJson2['default'].version + '\n'); | ||
_commander2['default'].version('bitstore version: ' + _packageJson2['default'].version + '\n').option('-c, --config [path]', 'location of config file', defaultConfigPath); | ||
@@ -91,0 +95,0 @@ _commander2['default'].command('files').description('list uploaded files').action(function () { |
@@ -301,2 +301,5 @@ 'use strict'; | ||
return req.get('/' + addressPath + '/wallet/transactions').result().nodeify(cb); | ||
}, | ||
sendRaw: function sendRaw(txHex, cb) { | ||
return req.post('/' + addressPath + '/wallet/transactions/sendRaw').send({ txHex: txHex }).result().nodeify(cb); | ||
} | ||
@@ -303,0 +306,0 @@ } |
@@ -9,2 +9,3 @@ { | ||
"build": "babel ./src --out-dir ./lib --copy-files", | ||
"bundle": "npm run build && browserify ./lib/index.js -s bitstore > browser/bundle.js", | ||
"pretest": "npm run lint", | ||
@@ -63,3 +64,3 @@ "cli": "babel-node -- ./src/cli.js", | ||
}, | ||
"version": "2.2.0" | ||
"version": "2.3.0" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
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
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 2 instances in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
613734
18488
11
6