@supraio/client-daemon-js 0.0.1-mz-warmup.2 → 0.0.1-mz-webcodecs.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/daemon.js +2 -2
- package/daemon.js.map +1 -1
- package/package.json +4 -4
- package/screen.js +3 -4
- package/screen.js.map +2 -2
- package/sdk.js +3 -3
- package/sdk.js.map +1 -1
- package/supra-client-daemon.js +2956 -2213
- package/supra-client-daemon.js.map +1 -1
- package/supra-client-daemon.wasm +0 -0
- package/supra-client-screen.js +5426 -4263
- package/supra-client-screen.js.map +1 -1
- package/supra-client-screen.wasm +0 -0
package/sdk.js
CHANGED
|
@@ -17243,14 +17243,14 @@ function shim(fs) {
|
|
|
17243
17243
|
return;
|
|
17244
17244
|
}
|
|
17245
17245
|
return origClose.call(this, ...args, function(err) {
|
|
17246
|
-
return callback.call(this, err
|
|
17246
|
+
return callback.call(this, err != null ? err : null);
|
|
17247
17247
|
});
|
|
17248
17248
|
};
|
|
17249
17249
|
const origMkdir = fs.mkdir;
|
|
17250
17250
|
fs.mkdir = function(...args) {
|
|
17251
17251
|
const callback = args.pop();
|
|
17252
17252
|
return origMkdir.call(this, ...args, function(err, path) {
|
|
17253
|
-
return callback.call(this, err
|
|
17253
|
+
return callback.call(this, err != null ? err : null, path);
|
|
17254
17254
|
});
|
|
17255
17255
|
};
|
|
17256
17256
|
const origWrite = fs.write;
|
|
@@ -17484,7 +17484,7 @@ if (typeof window !== void 0) {
|
|
|
17484
17484
|
// screen/wasm.ts
|
|
17485
17485
|
var SCREEN_WASM_URL = "supra-client-screen.wasm";
|
|
17486
17486
|
async function startWasmScreen(options) {
|
|
17487
|
-
const screenOptions = options
|
|
17487
|
+
const screenOptions = options != null ? options : parseQueryOptions();
|
|
17488
17488
|
const h264Decoder = await createH264Decoder();
|
|
17489
17489
|
window.h264Decoder = h264Decoder;
|
|
17490
17490
|
await initGoEnvironment();
|