@leofcoin/workers 1.3.2 → 1.3.3
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.
- package/dist/bundle/commonjs/{machine-worker-a91140f8.js → machine-worker-ffb53877.js} +1 -7
- package/dist/bundle/commonjs/machine-worker.js +1 -6
- package/dist/bundle/commonjs/workers.js +1 -1
- package/dist/bundle/module/{machine-worker-b674296f.js → machine-worker-cf4a1a57.js} +2 -7
- package/dist/bundle/module/machine-worker.js +1 -1
- package/dist/bundle/module/workers.js +1 -1
- package/dist/commonjs/{machine-worker-8ed82a54.js → machine-worker-5c403db5.js} +1 -7
- package/dist/commonjs/machine-worker.js +1 -6
- package/dist/commonjs/workers.js +1 -1
- package/dist/module/{machine-worker-30ef6a37.js → machine-worker-fb6e00a8.js} +2 -7
- package/dist/module/machine-worker.js +1 -1
- package/dist/module/workers.js +1 -1
- package/package.json +1 -1
- package/src/machine-worker.js +1 -1
|
@@ -49,10 +49,6 @@ globalThis.BigNumber = utils.BigNumber;
|
|
|
49
49
|
globalThis.peernet = globalThis.peernet || {};
|
|
50
50
|
globalThis.contracts = {};
|
|
51
51
|
|
|
52
|
-
const unique = arr => arr.filter((el, pos, arr) => {
|
|
53
|
-
return arr.indexOf(el) == pos;
|
|
54
|
-
});
|
|
55
|
-
|
|
56
52
|
const get = (contract, method, params) => {
|
|
57
53
|
let result;
|
|
58
54
|
if (params?.length > 0) {
|
|
@@ -239,9 +235,7 @@ const tasks = async (e) => {
|
|
|
239
235
|
worker.onmessage(data => tasks(data));
|
|
240
236
|
|
|
241
237
|
var machineWorker = /*#__PURE__*/Object.freeze({
|
|
242
|
-
__proto__: null
|
|
243
|
-
unique: unique
|
|
238
|
+
__proto__: null
|
|
244
239
|
});
|
|
245
240
|
|
|
246
241
|
exports.machineWorker = machineWorker;
|
|
247
|
-
exports.unique = unique;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var machineWorker = require('./machine-worker-a91140f8.js');
|
|
3
|
+
require('./machine-worker-ffb53877.js');
|
|
6
4
|
require('./worker-6ace445f.js');
|
|
7
5
|
require('./utils-6e881be4.js');
|
|
8
6
|
require('path');
|
|
@@ -14,6 +12,3 @@ require('string_decoder/');
|
|
|
14
12
|
require('fs');
|
|
15
13
|
require('os');
|
|
16
14
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
exports.unique = machineWorker.unique;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var transactionWorker = require('./transaction-worker-176a5aaa.js');
|
|
6
6
|
var blockWorker = require('./block-worker-21ad8152.js');
|
|
7
7
|
var poolWorker = require('./pool-worker-f450eeff.js');
|
|
8
|
-
var machineWorker = require('./machine-worker-
|
|
8
|
+
var machineWorker = require('./machine-worker-ffb53877.js');
|
|
9
9
|
require('./worker-6ace445f.js');
|
|
10
10
|
require('stream');
|
|
11
11
|
require('events');
|
|
@@ -47,10 +47,6 @@ globalThis.BigNumber = BigNumber;
|
|
|
47
47
|
globalThis.peernet = globalThis.peernet || {};
|
|
48
48
|
globalThis.contracts = {};
|
|
49
49
|
|
|
50
|
-
const unique = arr => arr.filter((el, pos, arr) => {
|
|
51
|
-
return arr.indexOf(el) == pos;
|
|
52
|
-
});
|
|
53
|
-
|
|
54
50
|
const get = (contract, method, params) => {
|
|
55
51
|
let result;
|
|
56
52
|
if (params?.length > 0) {
|
|
@@ -237,8 +233,7 @@ const tasks = async (e) => {
|
|
|
237
233
|
worker.onmessage(data => tasks(data));
|
|
238
234
|
|
|
239
235
|
var machineWorker = /*#__PURE__*/Object.freeze({
|
|
240
|
-
__proto__: null
|
|
241
|
-
unique: unique
|
|
236
|
+
__proto__: null
|
|
242
237
|
});
|
|
243
238
|
|
|
244
|
-
export { machineWorker as m
|
|
239
|
+
export { machineWorker as m };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as transactionWorker } from './transaction-worker-548cd200.js';
|
|
2
2
|
import { b as blockWorker } from './block-worker-414860e0.js';
|
|
3
3
|
import { p as poolWorker } from './pool-worker-0d927e3c.js';
|
|
4
|
-
import { m as machineWorker } from './machine-worker-
|
|
4
|
+
import { m as machineWorker } from './machine-worker-cf4a1a57.js';
|
|
5
5
|
import './worker-def77c26.js';
|
|
6
6
|
import 'stream';
|
|
7
7
|
import 'events';
|
|
@@ -54,10 +54,6 @@ globalThis.BigNumber = utils.BigNumber;
|
|
|
54
54
|
globalThis.peernet = globalThis.peernet || {};
|
|
55
55
|
globalThis.contracts = {};
|
|
56
56
|
|
|
57
|
-
const unique = arr => arr.filter((el, pos, arr) => {
|
|
58
|
-
return arr.indexOf(el) == pos;
|
|
59
|
-
});
|
|
60
|
-
|
|
61
57
|
const get = (contract, method, params) => {
|
|
62
58
|
let result;
|
|
63
59
|
if (params?.length > 0) {
|
|
@@ -244,9 +240,7 @@ const tasks = async (e) => {
|
|
|
244
240
|
worker.onmessage(data => tasks(data));
|
|
245
241
|
|
|
246
242
|
var machineWorker = /*#__PURE__*/Object.freeze({
|
|
247
|
-
__proto__: null
|
|
248
|
-
unique: unique
|
|
243
|
+
__proto__: null
|
|
249
244
|
});
|
|
250
245
|
|
|
251
246
|
exports.machineWorker = machineWorker;
|
|
252
|
-
exports.unique = unique;
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
var machineWorker = require('./machine-worker-8ed82a54.js');
|
|
3
|
+
require('./machine-worker-5c403db5.js');
|
|
6
4
|
require('@leofcoin/codec-format-interface');
|
|
7
5
|
require('./utils-1dc37f72.js');
|
|
8
6
|
require('path');
|
|
@@ -12,6 +10,3 @@ require('@ethersproject/bytes');
|
|
|
12
10
|
require('@ethersproject/logger');
|
|
13
11
|
require('@ethersproject/bignumber');
|
|
14
12
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
exports.unique = machineWorker.unique;
|
package/dist/commonjs/workers.js
CHANGED
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var transactionWorker = require('./transaction-worker-8eecc7a1.js');
|
|
6
6
|
var blockWorker = require('./block-worker-60e4cfa3.js');
|
|
7
7
|
var poolWorker = require('./pool-worker-81e8b4c0.js');
|
|
8
|
-
var machineWorker = require('./machine-worker-
|
|
8
|
+
var machineWorker = require('./machine-worker-5c403db5.js');
|
|
9
9
|
require('@leofcoin/codec-format-interface');
|
|
10
10
|
require('./transaction-220a3a15.js');
|
|
11
11
|
require('@vandeurenglenn/easy-worker');
|
|
@@ -48,10 +48,6 @@ globalThis.BigNumber = BigNumber;
|
|
|
48
48
|
globalThis.peernet = globalThis.peernet || {};
|
|
49
49
|
globalThis.contracts = {};
|
|
50
50
|
|
|
51
|
-
const unique = arr => arr.filter((el, pos, arr) => {
|
|
52
|
-
return arr.indexOf(el) == pos;
|
|
53
|
-
});
|
|
54
|
-
|
|
55
51
|
const get = (contract, method, params) => {
|
|
56
52
|
let result;
|
|
57
53
|
if (params?.length > 0) {
|
|
@@ -238,8 +234,7 @@ const tasks = async (e) => {
|
|
|
238
234
|
worker.onmessage(data => tasks(data));
|
|
239
235
|
|
|
240
236
|
var machineWorker = /*#__PURE__*/Object.freeze({
|
|
241
|
-
__proto__: null
|
|
242
|
-
unique: unique
|
|
237
|
+
__proto__: null
|
|
243
238
|
});
|
|
244
239
|
|
|
245
|
-
export { machineWorker as m
|
|
240
|
+
export { machineWorker as m };
|
package/dist/module/workers.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as transactionWorker } from './transaction-worker-105deaa8.js';
|
|
2
2
|
import { b as blockWorker } from './block-worker-f539b1b2.js';
|
|
3
3
|
import { p as poolWorker } from './pool-worker-f65671d7.js';
|
|
4
|
-
import { m as machineWorker } from './machine-worker-
|
|
4
|
+
import { m as machineWorker } from './machine-worker-fb6e00a8.js';
|
|
5
5
|
import '@leofcoin/codec-format-interface';
|
|
6
6
|
import './transaction-d06dc6c4.js';
|
|
7
7
|
import '@vandeurenglenn/easy-worker';
|
package/package.json
CHANGED
package/src/machine-worker.js
CHANGED
|
@@ -16,7 +16,7 @@ globalThis.BigNumber = BigNumber
|
|
|
16
16
|
globalThis.peernet = globalThis.peernet || {}
|
|
17
17
|
globalThis.contracts = {}
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
const unique = arr => arr.filter((el, pos, arr) => {
|
|
20
20
|
return arr.indexOf(el) == pos;
|
|
21
21
|
})
|
|
22
22
|
|