@leofcoin/workers 1.3.8 → 1.3.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/package.json +5 -3
  2. package/src/block-worker.js +1 -10
  3. package/src/machine-worker.js +21 -18
  4. package/src/pool-worker.js +0 -9
  5. package/src/transaction-worker.js +1 -9
  6. package/dist/bundle/commonjs/block-worker-21ad8152.js +0 -45
  7. package/dist/bundle/commonjs/block-worker.js +0 -14
  8. package/dist/bundle/commonjs/machine-worker-70f71351.js +0 -255
  9. package/dist/bundle/commonjs/machine-worker.js +0 -14
  10. package/dist/bundle/commonjs/pool-worker-f450eeff.js +0 -35
  11. package/dist/bundle/commonjs/pool-worker.js +0 -14
  12. package/dist/bundle/commonjs/transaction-d7c6a8ee.js +0 -33
  13. package/dist/bundle/commonjs/transaction-worker-176a5aaa.js +0 -27
  14. package/dist/bundle/commonjs/transaction-worker.js +0 -14
  15. package/dist/bundle/commonjs/utils-6e881be4.js +0 -4139
  16. package/dist/bundle/commonjs/worker-6ace445f.js +0 -4891
  17. package/dist/bundle/commonjs/workers.js +0 -29
  18. package/dist/bundle/module/block-worker-414860e0.js +0 -43
  19. package/dist/bundle/module/block-worker.js +0 -11
  20. package/dist/bundle/module/machine-worker-5896ac08.js +0 -253
  21. package/dist/bundle/module/machine-worker.js +0 -11
  22. package/dist/bundle/module/pool-worker-0d927e3c.js +0 -33
  23. package/dist/bundle/module/pool-worker.js +0 -11
  24. package/dist/bundle/module/transaction-cec98ce8.js +0 -31
  25. package/dist/bundle/module/transaction-worker-548cd200.js +0 -25
  26. package/dist/bundle/module/transaction-worker.js +0 -11
  27. package/dist/bundle/module/utils-ac8c68e6.js +0 -4135
  28. package/dist/bundle/module/worker-def77c26.js +0 -4858
  29. package/dist/bundle/module/workers.js +0 -22
  30. package/dist/commonjs/block-worker-60e4cfa3.js +0 -50
  31. package/dist/commonjs/block-worker.js +0 -11
  32. package/dist/commonjs/machine-worker-b46cac38.js +0 -260
  33. package/dist/commonjs/machine-worker.js +0 -11
  34. package/dist/commonjs/pool-worker-81e8b4c0.js +0 -40
  35. package/dist/commonjs/pool-worker.js +0 -7
  36. package/dist/commonjs/transaction-220a3a15.js +0 -33
  37. package/dist/commonjs/transaction-worker-8eecc7a1.js +0 -32
  38. package/dist/commonjs/transaction-worker.js +0 -7
  39. package/dist/commonjs/utils-1dc37f72.js +0 -352
  40. package/dist/commonjs/workers.js +0 -26
  41. package/dist/module/block-worker-f539b1b2.js +0 -44
  42. package/dist/module/block-worker.js +0 -8
  43. package/dist/module/machine-worker-da95e492.js +0 -254
  44. package/dist/module/machine-worker.js +0 -8
  45. package/dist/module/pool-worker-f65671d7.js +0 -34
  46. package/dist/module/pool-worker.js +0 -4
  47. package/dist/module/transaction-d06dc6c4.js +0 -31
  48. package/dist/module/transaction-worker-105deaa8.js +0 -26
  49. package/dist/module/transaction-worker.js +0 -4
  50. package/dist/module/utils-e87bc63d.js +0 -344
  51. package/dist/module/workers.js +0 -19
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- var worker$1 = require('./worker-6ace445f.js');
4
- var transaction = require('./transaction-d7c6a8ee.js');
5
-
6
- globalThis.peernet = globalThis.peernet || {};
7
- globalThis.contracts = {};
8
-
9
- const worker = new worker$1.EasyWorker();
10
-
11
- worker.onmessage(async (transactions) => {
12
- globalThis.peernet.codecs = {
13
- 'transaction-message': {
14
- codec: parseInt('746d', 16),
15
- hashAlg: 'keccak-256'
16
- }
17
- };
18
- transactions = await Promise.all(transactions.map(async message => new transaction.TransactionMessage(message)));
19
-
20
- worker.postMessage(transactions);
21
- });
22
-
23
- var transactionWorker = /*#__PURE__*/Object.freeze({
24
- __proto__: null
25
- });
26
-
27
- exports.transactionWorker = transactionWorker;
@@ -1,14 +0,0 @@
1
- 'use strict';
2
-
3
- require('./worker-6ace445f.js');
4
- require('./transaction-d7c6a8ee.js');
5
- require('./transaction-worker-176a5aaa.js');
6
- require('stream');
7
- require('events');
8
- require('buffer');
9
- require('util');
10
- require('string_decoder/');
11
- require('fs');
12
- require('path');
13
- require('os');
14
-