@leofcoin/chain 1.6.0 → 1.6.2
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/exports/browser/{browser-Ei0BXMlu-C0woTcHa.js → browser-Ei0BXMlu-9eQR3AGp.js} +2 -2
- package/exports/browser/chain.js +3 -3
- package/exports/browser/{client-A009z8av-Ssch8Yea.js → client-A009z8av-DavUUkay.js} +4 -4
- package/exports/browser/{_polyfill-node.child_process-CblghArn.js → index-Bz6K16zr.js} +6 -2003
- package/exports/browser/{index-G74WLzL7-BnLRqHoy.js → index-G74WLzL7-d1Vs_wqe.js} +2 -2
- package/exports/browser/{index-YQrIDBUQ-APwDgUUG.js → index-YQrIDBUQ-CbL47K_x.js} +2 -2
- package/exports/browser/{messages-lWRTai7t-DJnHZSdM.js → messages-lWRTai7t-Cs3eU5Cb.js} +2 -2
- package/exports/browser/{node-browser-CeM_F-HL.js → node-browser-CC3grAN3.js} +4 -4
- package/exports/browser/node-browser.js +2 -2
- package/exports/browser/workers/block-worker.js +1 -1
- package/exports/browser/workers/machine-worker.js +348 -348
- package/exports/browser/workers/{worker-CbAak_hM.js → worker-CFrwP8cD.js} +1 -4
- package/exports/workers/block-worker.js +1 -1
- package/exports/workers/machine-worker.js +348 -348
- package/exports/workers/{worker-CbAak_hM.js → worker-CFrwP8cD.js} +1 -4
- package/package.json +27 -56
- package/exports/browser/_polyfill-node.url-BLK_MhDf.js +0 -1196
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs } from './node-browser-
|
|
2
|
-
import './
|
|
1
|
+
import { g as getDefaultExportFromCjs } from './node-browser-CC3grAN3.js';
|
|
2
|
+
import './index-Bz6K16zr.js';
|
|
3
3
|
|
|
4
4
|
var global;
|
|
5
5
|
var hasRequiredGlobal;
|
package/exports/browser/chain.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { B as BigNumber, L as Logger, v as version$1, h as hexZeroPad, i as isBigNumberish, a as arrayify, b as isBytes, T as TransactionMessage, t as toBase58, C as ContractMessage, R as RawTransactionMessage, g as getDefaultExportFromCjs, c as BlockMessage, d as BWMessage, e as BWRequestMessage } from './index-Bz6K16zr.js';
|
|
2
2
|
|
|
3
3
|
if (!globalThis.DEBUG) {
|
|
4
4
|
let DEBUG = [];
|
|
@@ -3819,7 +3819,7 @@ class EasyWorker {
|
|
|
3819
3819
|
this.worker = new Worker(url, {...options});
|
|
3820
3820
|
} else {
|
|
3821
3821
|
return new Promise(async (resolve, reject) => {
|
|
3822
|
-
const {fork} = await import('
|
|
3822
|
+
const {fork} = await import('child_process');
|
|
3823
3823
|
this.worker = fork(url, ['easy-worker-child'], options);
|
|
3824
3824
|
resolve(this);
|
|
3825
3825
|
})
|
|
@@ -4016,7 +4016,7 @@ class Machine {
|
|
|
4016
4016
|
pubsub.subscribe('machine.ready', machineReady);
|
|
4017
4017
|
let pre;
|
|
4018
4018
|
try {
|
|
4019
|
-
const importee = await import('
|
|
4019
|
+
const importee = await import('url');
|
|
4020
4020
|
const url = importee.default;
|
|
4021
4021
|
if (url)
|
|
4022
4022
|
pre = url.fileURLToPath(new URL('.', import.meta.url));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { L as LittlePubSub } from './node-browser-
|
|
2
|
-
import './
|
|
1
|
+
import { L as LittlePubSub } from './node-browser-CC3grAN3.js';
|
|
2
|
+
import './index-Bz6K16zr.js';
|
|
3
3
|
|
|
4
4
|
class Api {
|
|
5
5
|
_pubsub;
|
|
@@ -206,7 +206,7 @@ class SocketRequestClient {
|
|
|
206
206
|
const init = async () => {
|
|
207
207
|
// @ts-ignore
|
|
208
208
|
if (!globalThis.WebSocket)
|
|
209
|
-
globalThis.WebSocket = (await import('./browser-Ei0BXMlu-
|
|
209
|
+
globalThis.WebSocket = (await import('./browser-Ei0BXMlu-9eQR3AGp.js').then(function (n) { return n.b; })).default.w3cwebsocket;
|
|
210
210
|
const client = new WebSocket(this.#url, this.#protocol);
|
|
211
211
|
client.onmessage = this.onmessage;
|
|
212
212
|
client.onerror = this.onerror;
|
|
@@ -280,7 +280,7 @@ const iceServers = [
|
|
|
280
280
|
credential: 'openrelayproject'
|
|
281
281
|
}
|
|
282
282
|
];
|
|
283
|
-
const SimplePeer = (await import('./index-YQrIDBUQ-
|
|
283
|
+
const SimplePeer = (await import('./index-YQrIDBUQ-CbL47K_x.js').then(function (n) { return n.i; })).default;
|
|
284
284
|
class Peer extends SimplePeer {
|
|
285
285
|
peerId;
|
|
286
286
|
channelName;
|