crash-js 0.1.62 → 0.1.64

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 (2) hide show
  1. package/crash-js/fs-utils +10 -7
  2. package/package.json +1 -1
package/crash-js/fs-utils CHANGED
@@ -80,6 +80,9 @@ function
80
80
  return _split;
81
81
  }
82
82
 
83
+ const _worker =
84
+ require(
85
+ "web-worker");
83
86
  const
84
87
  _fs =
85
88
  _fs_module_get();
@@ -195,15 +198,15 @@ function
195
198
  _fs_worker_new(
196
199
  _url) {
197
200
  let
198
- _worker;
201
+ _fs_worker;
199
202
  if ( typeof _url === 'undefined' ) {
200
203
  _url =
201
204
  "fs-worker.js";
202
205
  }
203
- _worker =
204
- new Worker(
206
+ _fs_worker =
207
+ new _worker(
205
208
  _url);
206
- return _worker;
209
+ return _fs_worker;
207
210
  }
208
211
 
209
212
  async function
@@ -215,7 +218,7 @@ async function
215
218
  _agent,
216
219
  _agent_connect,
217
220
  _connect_opts,
218
- _worker;
221
+ _fs_worker;
219
222
  if ( typeof _worker_path === 'undefined' ) {
220
223
  _worker_path =
221
224
  "fs-worker.js";
@@ -234,12 +237,12 @@ async function
234
237
  }
235
238
  _agent_connect =
236
239
  _fs.connectSyncAgent;
237
- _worker =
240
+ _fs_worker =
238
241
  _fs_worker_new(
239
242
  _worker_path);
240
243
  _connect_opts = {
241
244
  worker:
242
- _worker,
245
+ _fs_worker,
243
246
  bufferLength:
244
247
  _buffer_length,
245
248
  opTimeout:
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name":
3
3
  "crash-js",
4
4
  "version":
5
- "0.1.62",
5
+ "0.1.64",
6
6
  "description":
7
7
  "Crash Javascript library.",
8
8
  "funding":