@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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@supraio/client-daemon-js",
3
- "version": "0.0.1-mz-warmup.2",
3
+ "version": "0.0.1-mz-webcodecs.2",
4
4
  "description": "",
5
5
  "main": "sdk.js",
6
6
  "scripts": {
7
- "build-daemon": "esbuild --bundle --sourcemap --target=chrome88,firefox86,edge89 --outfile=dist/daemon.js daemon.ts",
8
- "build-screen": "esbuild --bundle --sourcemap --target=chrome88,firefox86,edge89 --outfile=dist/screen.js screen.ts",
9
- "build-sdk": "esbuild --bundle --sourcemap --target=chrome88,firefox86,edge89 --outfile=dist/sdk.js --format=cjs sdk.ts",
7
+ "build-daemon": "esbuild --bundle --sourcemap --target=chrome79,firefox86,edge89 --outfile=dist/daemon.js daemon.ts",
8
+ "build-screen": "esbuild --bundle --sourcemap --target=chrome79,firefox86,edge89 --outfile=dist/screen.js screen.ts",
9
+ "build-sdk": "esbuild --bundle --sourcemap --target=chrome79,firefox86,edge89 --outfile=dist/sdk.js --format=cjs sdk.ts",
10
10
  "build-types": "tsc --declaration --emitDeclarationOnly",
11
11
  "clean": "rm -rf dist/*",
12
12
  "check": "tsc --noEmit",
package/screen.js CHANGED
@@ -17233,14 +17233,14 @@
17233
17233
  return;
17234
17234
  }
17235
17235
  return origClose.call(this, ...args, function(err) {
17236
- return callback.call(this, err ?? null);
17236
+ return callback.call(this, err != null ? err : null);
17237
17237
  });
17238
17238
  };
17239
17239
  const origMkdir = fs.mkdir;
17240
17240
  fs.mkdir = function(...args) {
17241
17241
  const callback = args.pop();
17242
17242
  return origMkdir.call(this, ...args, function(err, path) {
17243
- return callback.call(this, err ?? null, path);
17243
+ return callback.call(this, err != null ? err : null, path);
17244
17244
  });
17245
17245
  };
17246
17246
  const origWrite = fs.write;
@@ -17445,7 +17445,7 @@
17445
17445
  // screen/wasm.ts
17446
17446
  var SCREEN_WASM_URL = "supra-client-screen.wasm";
17447
17447
  async function startWasmScreen(options) {
17448
- const screenOptions = options ?? parseQueryOptions();
17448
+ const screenOptions = options != null ? options : parseQueryOptions();
17449
17449
  const h264Decoder = await createH264Decoder();
17450
17450
  window.h264Decoder = h264Decoder;
17451
17451
  await initGoEnvironment();
@@ -17527,7 +17527,6 @@
17527
17527
  console.error("Error process", error);
17528
17528
  } finally {
17529
17529
  console.log("Reloading window");
17530
- location.reload();
17531
17530
  }
17532
17531
  });
17533
17532
  })();