GenericDifferentialDownloader.js 855 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.GenericDifferentialDownloader = void 0;
  6. function _bluebirdLst() {
  7. const data = require("bluebird-lst");
  8. _bluebirdLst = function () {
  9. return data;
  10. };
  11. return data;
  12. }
  13. function _DifferentialDownloader() {
  14. const data = require("./DifferentialDownloader");
  15. _DifferentialDownloader = function () {
  16. return data;
  17. };
  18. return data;
  19. }
  20. class GenericDifferentialDownloader extends _DifferentialDownloader().DifferentialDownloader {
  21. download(oldBlockMap, newBlockMap) {
  22. var _this = this;
  23. return (0, _bluebirdLst().coroutine)(function* () {
  24. yield _this.doDownload(oldBlockMap, newBlockMap);
  25. })();
  26. }
  27. } exports.GenericDifferentialDownloader = GenericDifferentialDownloader;
  28. //# sourceMappingURL=GenericDifferentialDownloader.js.map