Comparing version 0.11.5 to 0.11.6
{ | ||
"name": "bitcore", | ||
"main": "./bitcore.min.js", | ||
"version": "0.11.5", | ||
"version": "0.11.6", | ||
"homepage": "http://bitcore.io", | ||
@@ -6,0 +6,0 @@ "authors": [ |
var bitcore = module.exports; | ||
// module information | ||
bitcore.version = 'v'+require('./package.json').version; | ||
bitcore.version = 'v' + require('./package.json').version; | ||
var inBrowser = typeof process === 'undefined' || typeof process.versions === 'undefined'; | ||
if ((inBrowser && window._bitcore) || (!inBrowser && global._bitcore)) { | ||
var versions = bitcore.version + ' and ' + inBrowser ? window._bitcore : global._bitcore; | ||
var versions = bitcore.version + ' and ' + (inBrowser ? window._bitcore : global._bitcore); | ||
var message = 'More than one instance of bitcore found with different versions: ' + versions; | ||
@@ -13,4 +13,4 @@ if (inBrowser) { | ||
} else { | ||
message += '. Make sure there are no version conflicts between package.json files of your ' | ||
+ 'dependencies. This could also happen when a package depends on a git repository.'; | ||
message += '. Make sure there are no version conflicts between package.json files of your ' + | ||
'dependencies. This could also happen when a package depends on a git repository.'; | ||
} | ||
@@ -17,0 +17,0 @@ |
@@ -573,2 +573,3 @@ 'use strict'; | ||
this.inputs.push(input); | ||
this._inputAmount = undefined; | ||
this._updateChangeOutput(); | ||
@@ -809,2 +810,3 @@ return this; | ||
this.outputs = _.without(this.outputs, output); | ||
this._outputAmount = undefined; | ||
}; | ||
@@ -869,2 +871,3 @@ | ||
this.inputs = _.without(this.inputs, input); | ||
this._inputAmount = undefined; | ||
this._updateChangeOutput(); | ||
@@ -871,0 +874,0 @@ }; |
{ | ||
"name": "bitcore", | ||
"version": "0.11.5", | ||
"version": "0.11.6", | ||
"description": "A pure and powerful JavaScript Bitcoin library.", | ||
@@ -5,0 +5,0 @@ "author": "BitPay <dev@bitpay.com>", |
@@ -501,5 +501,6 @@ 'use strict'; | ||
transaction.inputs.length.should.equal(1); | ||
transaction.inputAmount.should.equal(simpleUtxoWith1BTC.satoshis); | ||
transaction.removeInput(0); | ||
transaction.inputs.length.should.equal(0); | ||
transaction.inputAmount.should.equal(0); | ||
transaction.inputs.length.should.equal(0); | ||
}); | ||
@@ -510,5 +511,6 @@ it('can remove an input by transaction id', function() { | ||
transaction.inputs.length.should.equal(1); | ||
transaction.inputAmount.should.equal(simpleUtxoWith1BTC.satoshis); | ||
transaction.removeInput(simpleUtxoWith1BTC.txId, simpleUtxoWith1BTC.outputIndex); | ||
transaction.inputs.length.should.equal(0); | ||
transaction.inputAmount.should.equal(0); | ||
transaction.inputs.length.should.equal(0); | ||
}); | ||
@@ -527,4 +529,6 @@ it('fails if the index provided is invalid', function() { | ||
transaction.outputs.length.should.equal(2); | ||
transaction.outputAmount.should.equal(80000000); | ||
transaction.removeOutput(0); | ||
transaction.outputs.length.should.equal(1); | ||
transaction.outputAmount.should.equal(40000000); | ||
}); | ||
@@ -531,0 +535,0 @@ }); |
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
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
1294878
21826