@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/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 ?? null);
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 ?? null, path);
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 ?? parseQueryOptions();
17487
+ const screenOptions = options != null ? options : parseQueryOptions();
17488
17488
  const h264Decoder = await createH264Decoder();
17489
17489
  window.h264Decoder = h264Decoder;
17490
17490
  await initGoEnvironment();