UNPKG

custom-golos-js

Version:

Golos.js the JavaScript API for Golos blockchain

184 lines (146 loc) 6.38 MB
<!doctype html> <meta charset="UTF-8"> <title>Webpack Visualizer</title> <style>html { background-color: #f7eedf; color: #333; } body { font-family: sans-serif; margin: 10px auto 0; width: 750px; padding: 0 10px; } a, .destyledButton { color: #347AB7; } p { margin-top: 0.5em; } svg { vertical-align: middle; } h1 { font-family: "Oswald", "HelveticaNeue-CondensedBold", "Arial Narrow", sans-serif; font-weight: bold; font-size: 70px; text-transform: uppercase; text-align: center; } hr { border: 0 none; border-top: 1px solid #aaa; } code { font-size: 16px; } .breadcrumbs { height: 1em; margin: 1em 0; } .uploadArea { position: relative; margin: 0 auto; min-height: 350px; } .uploadArea--needsUpload { border: 2px dashed #AC9062; border-radius: 10px; cursor: pointer; } .uploadArea--dragging { border-style: solid; background-color: #E6D4B6; } .uploadArea-uploadMessage { display: none; font-size: 1.9em; text-align: center; margin-top: 100px; pointer-events: none; } .uploadArea--needsUpload .uploadArea-uploadMessage { display: block; } .uploadArea-uploadMessage small { font-size: 0.5em; } .chart { position: relative; margin: 0 auto; min-height: 350px; } .chart--large { width: 950px; margin-left: -100px; } .hiddenFileInput { width: 0px; height: 0px; visibility: hidden; } .chart path { stroke: #fff; } .details { position: absolute; top: 325px; left: 50%; width: 170px; margin-left: -85px; font-size: 14px; text-align: center; color: #666; z-index: -1; overflow: hidden; text-overflow: ellipsis; } .chart--large .details { top: 425px; } .details-size { font-size: 0.9em; margin-top: 1em; } .details-name { font-weight: bold; } .details-subText { min-height: 1.2em; } .details-percentage { margin: 0.4em 0 0em; font-size: 2.4em; line-height: 1em; } .errorMessage { margin-top: 2em; padding: 0.8em 1em; border: 1px solid #ab2222; color: #ab2222; } footer { margin-top: 4em; } footer h2 { margin: 1.5em 0 0.5em; font-size: 1.3em; } .destyledButton { background: none; border: 0 none; cursor: pointer; font-size: inherit; padding: 0; text-decoration: underline; } @font-face { font-family: 'Oswald'; src: url(data:application/font-woff;charset=utf-8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5uect4ihQZJsgRYx9DlPB5rxB3ea6gjQ5Xi3uX8i79fN4/oveYcWNKjzHADkYosMV1TJxQ84RWc3YRMP4hPSPaSqJZL3/q93ftWbTPyBJ7tB/yTMkyZkbL9IgeAR6gJ4xbjPOxJijn3qPV4Od6GyudcLfomPsSrUsivZU9rLBpncMxpuRTMtxyngPecMQzxwF1Kdme36mL6v/fjEJqDNNgOpEJM6fMau6QMfeENuMVsNcHF/b/N9MumsRHFX47U352otZmrLvMk1B+xGymu0ay9UbM2SSjmDWGjHtFr0IiTbyZ0DPJbhhsSvaIaHaGAeXX8paKive2TK8Uv1yirEfCM6Q8ljqmwiHxQGr6wiKS6JfoS6VMfGcz9ysZmtM5FdTbTnTIyqyhvPgM67jHz8zNdDSjrqC10D6k1O7TvsUafb7eiP3am1bryN+zzVuUwieU05dXYuawTusq9x4nczadntzH/mmJcDAo5yoqHXpPTUy96U/yB4cAybh42m3IuQrCUABE0ZlEE/ftDwQVC9GX5cVEsAhKPsJaUEHExsKPF1zelN7mwIWHX68jDvjXGKBHHz4mmGKGORZYYoUEFhlyFNhgyxrrDBiywSZbbLPDLnvsc8AhR8Hp+ryfo/Bxuxhj9s7SfI0/Q0YylolMpZWZXMtcFrJ0xpXTOm21ewOsDSmueNrbwfi/dQNjL4P3Bo6AiI2MjH2RG93YtCMUNwhEem8QCQIyGiJlN7Bpx0QwbGBWcN3ArO2ygV3BdRNzOJM2mMMG5LCbQTmsQA6bGpTDAuSwykI5HCA9K6EcTiCHIx3K4QJyOE0hHMYN3FA7eBRcdzFw1/9nYNLeyOxWBhThBarj0YVz+YBcXkUYN3KDiDYA+l459gABVhALaAAA) format('woff'); font-weight: bold; font-style: normal; } </style> <div id="App"></div> <script>window.stats = {"errors":[],"warnings":["./~/sinon/lib/sinon.js\nCritical dependencies:\n40:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon.js 40:25-32","./~/sinon/lib/sinon/call.js\nCritical dependencies:\n230:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/call.js 230:25-32","./~/sinon/lib/sinon/collection.js\nCritical dependencies:\n164:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/collection.js 164:25-32","./~/sinon/lib/sinon/format.js\nCritical dependencies:\n84:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/format.js 84:25-32","./~/sinon/lib/sinon/log_error.js\nCritical dependencies:\n75:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/log_error.js 75:25-32","./~/sinon/lib/sinon/extend.js\nCritical dependencies:\n102:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/extend.js 102:25-32","./~/sinon/lib/sinon/sandbox.js\nCritical dependencies:\n165:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/sandbox.js 165:25-32","./~/sinon/lib/sinon/stub.js\nCritical dependencies:\n191:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/stub.js 191:25-32","./~/sinon/lib/sinon/test_case.js\nCritical dependencies:\n97:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/test_case.js 97:25-32","./~/sinon/lib/sinon/times_in_words.js\nCritical dependencies:\n40:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/times_in_words.js 40:25-32","./~/sinon/lib/sinon/test.js\nCritical dependencies:\n94:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/test.js 94:25-32","./~/sinon/lib/sinon/typeOf.js\nCritical dependencies:\n44:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/typeOf.js 44:25-32","./~/sinon/lib/sinon/util/event.js\nCritical dependencies:\n107:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/util/event.js 107:25-32","./~/sinon/lib/sinon/util/fake_server_with_clock.js\nCritical dependencies:\n97:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/util/fake_server_with_clock.js 97:25-32","./~/sinon/lib/sinon/util/fake_timers.js\nCritical dependencies:\n69:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/util/fake_timers.js 69:25-32","./~/sinon/lib/sinon/util/fake_xdomain_request.js\nCritical dependencies:\n235:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/util/fake_xdomain_request.js 235:25-32","./~/sinon/lib/sinon/walk.js\nCritical dependencies:\n70:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/walk.js 70:25-32","./~/sinon/lib/sinon/assert.js\nCritical dependencies:\n236:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/assert.js 236:25-32","./~/sinon/lib/sinon/behavior.js\nCritical dependencies:\n362:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/behavior.js 362:25-32","./~/sinon/lib/sinon/match.js\nCritical dependencies:\n252:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/match.js 252:25-32","./~/sinon/lib/sinon/mock.js\nCritical dependencies:\n482:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/mock.js 482:25-32","./~/sinon/lib/sinon/spy.js\nCritical dependencies:\n458:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/spy.js 458:25-32","./~/sinon/lib/sinon/util/core.js\nCritical dependencies:\n414:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/util/core.js 414:25-32","./~/sinon/lib/sinon/util/fake_server.js\nCritical dependencies:\n243:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/util/fake_server.js 243:25-32","./~/sinon/lib/sinon/util/fake_xml_http_request.js\nCritical dependencies:\n729:25-32 require function is used in a way in which dependencies cannot be statically extracted\n @ ./~/sinon/lib/sinon/util/fake_xml_http_request.js 729:25-32"],"version":"1.15.0","hash":"64806846231e86052d23","publicPath":"","assetsByChunkName":{"custom-golos":["custom-golos.min.js","custom-golos.min.js.map"],"custom-golos-tests":["custom-golos-tests.min.js","custom-golos-tests.min.js.map"]},"assets":[{"name":"custom-golos.min.js","size":420558,"chunks":[0],"chunkNames":["custom-golos"]},{"name":"custom-golos-tests.min.js","size":398829,"chunks":[1],"chunkNames":["custom-golos-tests"]},{"name":"custom-golos.min.js.map","size":2896115,"chunks":[0],"chunkNames":["custom-golos"]},{"name":"custom-golos-tests.min.js.map","size":2861334,"chunks":[1],"chunkNames":["custom-golos-tests"]}],"chunks":[{"id":0,"rendered":true,"initial":true,"entry":true,"extraAsync":false,"size":1048830,"names":["custom-golos"],"files":["custom-golos.min.js","custom-golos.min.js.map"],"hash":"c319174e9458e020ffb0","parents":[],"modules":[{"id":0,"identifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/src/browser.js","name":"./src/browser.js","index":0,"index2":300,"size":560,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0],"assets":[],"issuer":null,"failed":false,"errors":0,"warnings":0,"reasons":[],"source":"\"use strict\";\n\nvar api = require(\"./api\");\nvar auth = require(\"./auth\");\nvar broadcast = require(\"./broadcast\");\nvar config = require(\"./config\");\nvar formatter = require(\"./formatter\")(api);\nvar memo = require('./auth/memo');\nvar utils = require(\"./utils\");\n\nvar golos = {\n api: api,\n auth: auth,\n broadcast: broadcast,\n config: config,\n formatter: formatter,\n memo: memo,\n utils: utils\n};\n\nif (typeof window !== \"undefined\") {\n window.golos = golos;\n}\n\nif (typeof global !== \"undefined\") {\n global.golos = golos;\n}\n\nexports = module.exports = golos;"},{"id":1,"identifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/src/api/index.js","name":"./src/api/index.js","index":1,"index2":174,"size":15993,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"assets":[],"issuer":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/src/browser.js","failed":false,"errors":0,"warnings":0,"reasons":[{"moduleId":0,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/src/browser.js","module":"./src/browser.js","moduleName":"./src/browser.js","type":"cjs require","userRequest":"./api","loc":"3:10-26"},{"moduleId":0,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/test/api.test.js","module":"./test/api.test.js","moduleName":"./test/api.test.js","type":"cjs require","userRequest":"../src/api/index","loc":"19:13-40"},{"moduleId":281,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/src/broadcast/index.js","module":"./src/broadcast/index.js","moduleName":"./src/broadcast/index.js","type":"cjs require","userRequest":"../api","loc":"35:11-28"},{"moduleId":283,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/src/broadcast/helpers.js","module":"./src/broadcast/helpers.js","moduleName":"./src/broadcast/helpers.js","type":"cjs require","userRequest":"../api","loc":"29:11-28"}],"source":"'use strict';\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; };\n\nvar _slicedToArray = function () {\n function sliceIterator(arr, i) {\n var _arr = [];var _n = true;var _d = false;var _e = undefined;try {\n for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {\n _arr.push(_s.value);if (i && _arr.length === i) break;\n }\n } catch (err) {\n _d = true;_e = err;\n } finally {\n try {\n if (!_n && _i[\"return\"]) _i[\"return\"]();\n } finally {\n if (_d) throw _e;\n }\n }return _arr;\n }return function (arr, i) {\n if (Array.isArray(arr)) {\n return arr;\n } else if (Symbol.iterator in Object(arr)) {\n return sliceIterator(arr, i);\n } else {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance\");\n }\n };\n}();\n\nvar _createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i &lt; props.length; i++) {\n var descriptor = props[i];descriptor.enumerable = descriptor.enumerable || false;descriptor.configurable = true;if (\"value\" in descriptor) descriptor.writable = true;Object.defineProperty(target, descriptor.key, descriptor);\n }\n }return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);if (staticProps) defineProperties(Constructor, staticProps);return Constructor;\n };\n}();\n\nvar _events = require('events');\n\nvar _events2 = _interopRequireDefault(_events);\n\nvar _bluebird = require('bluebird');\n\nvar _bluebird2 = _interopRequireDefault(_bluebird);\n\nvar _cloneDeep = require('lodash/cloneDeep');\n\nvar _cloneDeep2 = _interopRequireDefault(_cloneDeep);\n\nvar _defaults = require('lodash/defaults');\n\nvar _defaults2 = _interopRequireDefault(_defaults);\n\nvar _detectNode = require('detect-node');\n\nvar _detectNode2 = _interopRequireDefault(_detectNode);\n\nvar _debug = require('debug');\n\nvar _debug2 = _interopRequireDefault(_debug);\n\nvar _config = require('../config');\n\nvar _config2 = _interopRequireDefault(_config);\n\nvar _methods = require('./methods');\n\nvar _methods2 = _interopRequireDefault(_methods);\n\nvar _utils = require('../utils');\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && ((typeof call === \"undefined\" ? \"undefined\" : _typeof(call)) === \"object\" || typeof call === \"function\") ? call : self;\n}\n\nfunction _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === \"undefined\" ? \"undefined\" : _typeof(superClass)));\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n}\n\nvar debugEmitters = (0, _debug2.default)('golos:emitters');\nvar debugProtocol = (0, _debug2.default)('golos:protocol');\nvar debugSetup = (0, _debug2.default)('golos:setup');\nvar debugWs = (0, _debug2.default)('golos:ws');\n\nvar WebSocket = void 0;\nif (_detectNode2.default) {\n WebSocket = require('ws'); // eslint-disable-line global-require\n} else if (typeof window !== 'undefined') {\n WebSocket = window.WebSocket;\n} else {\n throw new Error('Couldn\\'t decide on a `WebSocket` class');\n}\n\nvar DEFAULTS = {\n id: 0\n};\n\nvar cbMethods = ['set_block_applied_callback', 'set_pending_transaction_callback', 'set_callback'];\n\nvar expectedResponseMs = process.env.EXPECTED_RESPONSE_MS || 2000;\n\nvar Golos = function (_EventEmitter) {\n _inherits(Golos, _EventEmitter);\n\n function Golos() {\n var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n\n _classCallCheck(this, Golos);\n\n var _this = _possibleConstructorReturn(this, (Golos.__proto__ || Object.getPrototypeOf(Golos)).call(this, options));\n\n (0, _defaults2.default)(options, DEFAULTS);\n _this.options = (0, _cloneDeep2.default)(options);\n _this.id = 0;\n _this.inFlight = 0;\n _this.currentP = _bluebird2.default.fulfilled();\n _this.isOpen = false;\n _this.releases = [];\n _this.requests = {};\n _this.callbacks = {};\n return _this;\n }\n\n _createClass(Golos, [{\n key: 'setWebSocket',\n value: function setWebSocket(url) {\n console.warn(\"golos.api.setWebSocket(url) is now deprecated instead use golos.config.set('websocket',url)\");\n debugSetup('Setting WS', url);\n _config2.default.set('websocket', url);\n this.stop();\n }\n }, {\n key: 'start',\n value: function start() {\n var _this2 = this;\n\n if (this.startP) {\n return this.startP;\n }\n\n var startP = new _bluebird2.default(function (resolve, reject) {\n if (startP !== _this2.startP) return;\n var url = _config2.default.get('websocket');\n _this2.ws = new WebSocket(url);\n\n var releaseOpen = _this2.listenTo(_this2.ws, 'open', function () {\n debugWs('Opened WS connection with', url);\n _this2.isOpen = true;\n releaseOpen();\n resolve();\n });\n\n var releaseClose = _this2.listenTo(_this2.ws, 'close', function () {\n debugWs('Closed WS connection with', url);\n _this2.isOpen = false;\n delete _this2.ws;\n _this2.stop();\n\n if (startP.isPending()) {\n reject(new Error('The WS connection was closed before this operation was made'));\n }\n });\n\n var releaseMessage = _this2.listenTo(_this2.ws, 'message', function (message) {\n debugWs('Received message', message.data);\n var data = JSON.parse(message.data);\n var id = data.id;\n var request = _this2.requests[id] || _this2.callbacks[id];\n if (!request) {\n debugWs('Golos.onMessage error: unknown request ', id);\n return;\n }\n delete _this2.requests[id];\n _this2.onMessage(data, request);\n });\n\n _this2.releases = _this2.releases.concat([releaseOpen, releaseClose, releaseMessage]);\n });\n\n this.startP = startP;\n\n return startP;\n }\n }, {\n key: 'stop',\n value: function stop() {\n debugSetup('Stopping...');\n if (this.ws) this.ws.close();\n delete this.startP;\n delete this.ws;\n this.releases.forEach(function (release) {\n return release();\n });\n this.releases = [];\n }\n }, {\n key: 'listenTo',\n value: function listenTo(target, eventName, callback) {\n debugEmitters('Adding listener for', eventName, 'from', target.constructor.name);\n if (target.addEventListener) target.addEventListener(eventName, callback);else target.on(eventName, callback);\n\n return function () {\n debugEmitters('Removing listener for', eventName, 'from', target.constructor.name);\n if (target.removeEventListener) target.removeEventListener(eventName, callback);else target.removeListener(eventName, callback);\n };\n }\n }, {\n key: 'onMessage',\n value: function onMessage(message, request) {\n var api = request.api,\n data = request.data,\n resolve = request.resolve,\n reject = request.reject,\n start_time = request.start_time;\n\n debugWs('-- Golos.onMessage -->', message.id);\n var errorCause = message.error;\n if (errorCause) {\n var err = new Error(\n // eslint-disable-next-line prefer-template\n (errorCause.message || 'Failed to complete operation') + ' (see err.payload for the full error payload)');\n err.payload = message;\n reject(err);\n return;\n }\n\n debugProtocol('Resolved', api, data, '->', message);\n if (cbMethods.includes(data.method)) {\n this.callbacks[message.id].cb(null, message.result);\n } else {\n delete this.requests[message.id];\n resolve(message.result);\n }\n }\n }, {\n key: 'send',\n value: function send(api, data, callback) {\n var _this3 = this;\n\n debugSetup('Golos::send', api, data);\n var id = data.id || this.id++;\n var startP = this.start();\n\n this.currentP = startP.then(function () {\n return new _bluebird2.default(function (resolve, reject) {\n if (!_this3.ws) {\n reject(new Error('The WS connection was closed while this request was pending'));\n return;\n }\n\n var payload = JSON.stringify({\n id: id,\n method: 'call',\n jsonrpc: '2.0',\n params: [api, data.method, data.params]\n });\n\n debugWs('Sending message', payload);\n if (cbMethods.includes(data.method)) {\n _this3.callbacks[id] = {\n api: api,\n data: data,\n cb: callback\n };\n } else {\n _this3.requests[id] = {\n api: api,\n data: data,\n resolve: resolve,\n reject: reject,\n start_time: Date.now()\n };\n }\n\n _this3.ws.send(payload);\n });\n }).nodeify(callback);\n\n return this.currentP;\n }\n }, {\n key: 'streamBlockNumber',\n value: function streamBlockNumber() {\n var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'head';\n\n var _this4 = this;\n\n var callback = arguments[1];\n var ts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 200;\n\n if (typeof mode === 'function') {\n callback = mode;\n mode = 'head';\n }\n var current = '';\n var running = true;\n\n var update = function update() {\n if (!running) return;\n\n _this4.getDynamicGlobalPropertiesAsync().then(function (result) {\n var blockId = mode === 'irreversible' ? result.last_irreversible_block_num : result.head_block_number;\n\n if (blockId !== current) {\n if (current) {\n for (var i = current; i &lt; blockId; i++) {\n if (i !== current) {\n callback(null, i);\n }\n current = i;\n }\n } else {\n current = blockId;\n callback(null, blockId);\n }\n }\n\n _bluebird2.default.delay(ts).then(function () {\n update();\n });\n }, function (err) {\n callback(err);\n });\n };\n\n update();\n\n return function () {\n running = false;\n };\n }\n }, {\n key: 'streamBlock',\n value: function streamBlock() {\n var _this5 = this;\n\n var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'head';\n var callback = arguments[1];\n\n if (typeof mode === 'function') {\n callback = mode;\n mode = 'head';\n }\n\n var current = '';\n var last = '';\n\n var release = this.streamBlockNumber(mode, function (err, id) {\n if (err) {\n release();\n callback(err);\n return;\n }\n\n current = id;\n if (current !== last) {\n last = current;\n _this5.getBlock(current, callback);\n }\n });\n\n return release;\n }\n }, {\n key: 'streamTransactions',\n value: function streamTransactions() {\n var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'head';\n var callback = arguments[1];\n\n if (typeof mode === 'function') {\n callback = mode;\n mode = 'head';\n }\n\n var release = this.streamBlock(mode, function (err, result) {\n if (err) {\n release();\n callback(err);\n return;\n }\n\n if (result && result.transactions) {\n result.transactions.forEach(function (transaction) {\n callback(null, transaction);\n });\n }\n });\n\n return release;\n }\n }, {\n key: 'streamOperations',\n value: function streamOperations() {\n var mode = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'head';\n var callback = arguments[1];\n\n if (typeof mode === 'function') {\n callback = mode;\n mode = 'head';\n }\n\n var release = this.streamTransactions(mode, function (err, transaction) {\n if (err) {\n release();\n callback(err);\n return;\n }\n\n transaction.operations.forEach(function (operation) {\n callback(null, operation);\n });\n });\n\n return release;\n }\n }]);\n\n return Golos;\n}(_events2.default);\n\n// Generate Methods from methods.js\n\n\n_methods2.default.forEach(function (method) {\n var methodName = method.method_name || (0, _utils.camelCase)(method.method);\n var methodParams = method.params || [];\n var defaultParms = {};\n var hasDefaultValues = method.has_default_values;\n\n if (hasDefaultValues) {\n methodParams.forEach(function (param) {\n var _param$split = param.split('='),\n _param$split2 = _slicedToArray(_param$split, 2),\n p = _param$split2[0],\n value = _param$split2[1];\n\n defaultParms[p] = value ? JSON.parse(value) : '';\n });\n }\n\n Golos.prototype[methodName + 'With'] = function Golos$$specializedSendWith(options, callback) {\n var params = methodParams.map(function (param) {\n return options[hasDefaultValues ? param.split('=')[0] : param];\n });\n return this.send(method.api, {\n method: method.method,\n params: params\n }, callback);\n };\n\n Golos.prototype[methodName] = function Golos$specializedSend() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key &lt; _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n var options = {};\n if (hasDefaultValues) {\n var argsWithoutCb = args.slice(0, args.length - 1);\n methodParams.forEach(function (param, i) {\n var _param$split3 = param.split('='),\n _param$split4 = _slicedToArray(_param$split3, 2),\n p = _param$split4[0],\n value = _param$split4[1];\n\n if (argsWithoutCb[i]) {\n options[p] = argsWithoutCb[i];\n }\n });\n options = Object.assign({}, defaultParms, options);\n } else {\n var opt = methodParams.reduce(function (memo, param, i) {\n memo[param] = args[i];\n return memo;\n }, {});\n options = Object.assign({}, opt);\n }\n var callback = args[hasDefaultValues ? args.length - 1 : methodParams.length];\n\n return this[methodName + 'With'](options, callback);\n };\n});\n\n_bluebird2.default.promisifyAll(Golos.prototype);\n\nGolos.prototype['setBlockAppliedCallback'] = function Golos$setCallback(type, callback) {\n return this.send('database_api', {\n method: 'set_block_applied_callback',\n params: [type]\n }, callback);\n};\n\nGolos.prototype['setPendingTransactionCallback'] = function Golos$setCallback(callback) {\n return this.send('database_api', {\n method: 'set_pending_transaction_callback',\n params: []\n }, callback);\n};\n\nGolos.prototype['setPrivateMessageCallback'] = function Golos$setCallback(query, callback) {\n return this.send('private_message', {\n method: 'set_callback',\n params: [query]\n }, callback);\n};\n\n// Export singleton instance\nvar golos = new Golos();\nexports = module.exports = golos;\nexports.Golos = Golos;\nexports.Golos.DEFAULTS = DEFAULTS;"},{"id":2,"identifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/process/browser.js","name":"./~/process/browser.js","index":2,"index2":0,"size":5418,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"assets":[],"issuer":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/test/api.test.js","failed":false,"errors":0,"warnings":0,"reasons":[{"moduleId":0,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/test/api.test.js","module":"./test/api.test.js","moduleName":"./test/api.test.js","type":"cjs require","userRequest":"process","loc":"1:0-47"},{"moduleId":1,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/src/api/index.js","module":"./src/api/index.js","moduleName":"./src/api/index.js","type":"cjs require","userRequest":"process","loc":"1:0-50"},{"moduleId":5,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/bluebird/js/release/promise.js","module":"./~/bluebird/js/release/promise.js","moduleName":"./~/bluebird/js/release/promise.js","type":"cjs require","userRequest":"process","loc":"1:0-40"},{"moduleId":6,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/bluebird/js/release/util.js","module":"./~/bluebird/js/release/util.js","moduleName":"./~/bluebird/js/release/util.js","type":"cjs require","userRequest":"process","loc":"1:0-40"},{"moduleId":8,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/bluebird/js/release/async.js","module":"./~/bluebird/js/release/async.js","moduleName":"./~/bluebird/js/release/async.js","type":"cjs require","userRequest":"process","loc":"1:0-40"},{"moduleId":9,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/bluebird/js/release/schedule.js","module":"./~/bluebird/js/release/schedule.js","moduleName":"./~/bluebird/js/release/schedule.js","type":"cjs require","userRequest":"process","loc":"1:0-40"},{"moduleId":11,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/setimmediate/setImmediate.js","module":"./~/setimmediate/setImmediate.js","moduleName":"./~/setimmediate/setImmediate.js","type":"cjs require","userRequest":"process","loc":"1:0-34"},{"moduleId":17,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/bluebird/js/release/debuggability.js","module":"./~/bluebird/js/release/debuggability.js","moduleName":"./~/bluebird/js/release/debuggability.js","type":"cjs require","userRequest":"process","loc":"1:0-40"},{"moduleId":168,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/debug/src/browser.js","module":"./~/debug/src/browser.js","moduleName":"./~/debug/src/browser.js","type":"cjs require","userRequest":"process","loc":"1:0-37"},{"moduleId":186,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/assert/node_modules/util/util.js","module":"./~/assert/~/util/util.js","moduleName":"./~/assert/~/util/util.js","type":"cjs require","userRequest":"process","loc":"1:0-40"},{"moduleId":199,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/src/auth/serializer/src/types.js","module":"./src/auth/serializer/src/types.js","moduleName":"./src/auth/serializer/src/types.js","type":"cjs require","userRequest":"process","loc":"1:0-56"},{"moduleId":211,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/readable-stream/lib/_stream_readable.js","module":"./~/readable-stream/lib/_stream_readable.js","moduleName":"./~/readable-stream/lib/_stream_readable.js","type":"cjs require","userRequest":"process","loc":"1:0-37"},{"moduleId":212,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/process-nextick-args/index.js","module":"./~/process-nextick-args/index.js","moduleName":"./~/process-nextick-args/index.js","type":"cjs require","userRequest":"process","loc":"1:0-34"},{"moduleId":221,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/readable-stream/lib/_stream_writable.js","module":"./~/readable-stream/lib/_stream_writable.js","moduleName":"./~/readable-stream/lib/_stream_writable.js","type":"cjs require","userRequest":"process","loc":"1:0-37"},{"moduleId":242,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/secure-random/lib/secure-random.js","module":"./~/secure-random/lib/secure-random.js","moduleName":"./~/secure-random/lib/secure-random.js","type":"cjs require","userRequest":"process","loc":"1:0-37"},{"moduleId":279,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/src/auth/serializer/src/serializer.js","module":"./src/auth/serializer/src/serializer.js","moduleName":"./src/auth/serializer/src/serializer.js","type":"cjs require","userRequest":"process","loc":"1:0-56"},{"moduleId":307,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/sinon/lib/sinon/behavior.js","module":"./~/sinon/lib/sinon/behavior.js","moduleName":"./~/sinon/lib/sinon/behavior.js","type":"cjs require","userRequest":"process","loc":"1:0-40"},{"moduleId":312,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/util/util.js","module":"./~/util/util.js","moduleName":"./~/util/util.js","type":"cjs require","userRequest":"process","loc":"1:0-34"}],"source":"// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex &lt; len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i &lt; arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n"},{"id":3,"identifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/events/events.js","name":"./~/events/events.js","index":3,"index2":1,"size":8328,"cacheable":true,"built":true,"optional":false,"prefetched":false,"chunks":[0,1],"assets":[],"issuer":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/src/api/index.js","failed":false,"errors":0,"warnings":0,"reasons":[{"moduleId":1,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/babel-loader/lib/index.js!/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/src/api/index.js","module":"./src/api/index.js","moduleName":"./src/api/index.js","type":"cjs require","userRequest":"events","loc":"41:14-31"},{"moduleId":209,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/stream-browserify/index.js","module":"./~/stream-browserify/index.js","moduleName":"./~/stream-browserify/index.js","type":"cjs require","userRequest":"events","loc":"24:9-26"},{"moduleId":211,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/readable-stream/lib/_stream_readable.js","module":"./~/readable-stream/lib/_stream_readable.js","moduleName":"./~/readable-stream/lib/_stream_readable.js","type":"cjs require","userRequest":"events","loc":"42:9-26"},{"moduleId":213,"moduleIdentifier":"/media/disk_f/node.js/blckchnd-services/custom-golos-js/0.7.4/node_modules/readable-stream/lib/internal/streams/stream-browser.js","module":"./~/readable-stream/lib/internal/streams/stream-browser.js","moduleName":"./~/readable-stream/lib/internal/streams/stream-browser.js","type":"cjs require","userRequest":"events","loc":"1:17-34"}],"source":"// Copyright Joyent, Inc. and other Node contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a\n// copy of this software and associated documentation files (the\n// \"Software\"), to deal in the Software without restriction, including\n// without limitation the rights to use, copy, modify, merge, publish,\n// distribute, sublicense, and/or sell copies of the Software, and to permit\n// persons to whom the Software is furnished to do so, subject to the\n// following conditions:\n//\n// The above copyright notice and this permission notice shall be included\n// in all copies or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\n// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN\n// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,\n// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\n// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE\n// USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nfunction EventEmitter() {\n this._events = this._events || {};\n this._maxListeners = this._maxListeners || undefined;\n}\nmodule.exports = EventEmitter;\n\n// Backwards-compat with node 0.10.x\nEventEmitter.EventEmitter = EventEmitter;\n\nEventEmitter.prototype._events = undefined;\nEventEmitter.prototype._maxListeners = undefined;\n\n// By default EventEmitters will print a warning if more than 10 listeners are\n// added to it. T