Comparing version 0.3.25 to 0.3.26
@@ -17,2 +17,6 @@ 'use strict'; | ||
var _cloneDeep = require('lodash/cloneDeep'); | ||
var _cloneDeep2 = _interopRequireDefault(_cloneDeep); | ||
var _detectNode = require('detect-node'); | ||
@@ -72,3 +76,3 @@ | ||
Object.assign(options, DEFAULTS); | ||
_this.options = options; | ||
_this.options = (0, _cloneDeep2.default)(options); | ||
@@ -141,3 +145,7 @@ _this.id = 0; | ||
return _this3.getApiByNameAsync(name).then(function (result) { | ||
_this3.apiIds[name] = result; | ||
if (result) { | ||
_this3.apiIds[name] = result; | ||
} else { | ||
debugSetup('Dropped null API ID for', name); | ||
} | ||
}); | ||
@@ -144,0 +152,0 @@ }); |
'use strict'; | ||
steem = { | ||
var steem = { | ||
api: require('./api'), | ||
@@ -8,2 +8,12 @@ formatter: require('./formatter'), | ||
broadcast: require('./broadcast') | ||
}; | ||
}; | ||
if (typeof window !== 'undefined') { | ||
window.steem = steem; | ||
} | ||
if (typeof global !== 'undefined') { | ||
global.steem = steem; | ||
} | ||
exports = module.exports = steem; |
{ | ||
"name": "steem", | ||
"version": "0.3.25", | ||
"version": "0.3.26", | ||
"description": "Steem.js the JavaScript API for Steem blockchain", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,2 +25,5 @@ 'use strict'; | ||
new webpack.optimize.UglifyJsPlugin({ | ||
output: { | ||
comments: false, | ||
}, | ||
minimize: true, | ||
@@ -27,0 +30,0 @@ compress: { |
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 not supported yet
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 not supported yet
Sorry, the diff of this file is not supported yet
5543988
29
3795