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.
- package/crash-js/fs-utils +10 -7
- 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
|
-
|
|
201
|
+
_fs_worker;
|
|
199
202
|
if ( typeof _url === 'undefined' ) {
|
|
200
203
|
_url =
|
|
201
204
|
"fs-worker.js";
|
|
202
205
|
}
|
|
203
|
-
|
|
204
|
-
new
|
|
206
|
+
_fs_worker =
|
|
207
|
+
new _worker(
|
|
205
208
|
_url);
|
|
206
|
-
return
|
|
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
|
-
|
|
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
|
-
|
|
240
|
+
_fs_worker =
|
|
238
241
|
_fs_worker_new(
|
|
239
242
|
_worker_path);
|
|
240
243
|
_connect_opts = {
|
|
241
244
|
worker:
|
|
242
|
-
|
|
245
|
+
_fs_worker,
|
|
243
246
|
bufferLength:
|
|
244
247
|
_buffer_length,
|
|
245
248
|
opTimeout:
|