@buncanvas/core 0.1.4 → 0.1.6

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/index.js +1 -3
  2. package/package.json +22 -5
package/index.js CHANGED
@@ -17,7 +17,6 @@ try {
17
17
  }
18
18
  } catch (ex) {
19
19
  const req = createRequire(import.meta.url);
20
- console.log("first failed!", ex);
21
20
  nativeLib = req.resolve(`@buncanvas/native-${process.platform}-${process.arch}`);
22
21
  }
23
22
  console.log(nativeLib);
@@ -3135,7 +3134,6 @@ class Window {
3135
3134
  const { vsync = true, maxFramerate = 0 } = args ?? {};
3136
3135
  this.#vsync = vsync;
3137
3136
  this.maxFramerate = maxFramerate;
3138
- let lastFrame = performance.now();
3139
3137
  if (process.platform !== "darwin") {
3140
3138
  render_thread.onerror = (msg) => {
3141
3139
  console.error("Render thread error:", msg);
@@ -3152,7 +3150,7 @@ class Window {
3152
3150
  let lastFrame = performance.now();
3153
3151
  render_thread.onmessage = (msg) => {
3154
3152
  const frameSignal = msg.data;
3155
- if (frameSignal === 2) {
3153
+ if (frameSignal == 2) {
3156
3154
  lib.symbols.destroy_window();
3157
3155
  lib.symbols.images_cleanup();
3158
3156
  process.exit(0);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@buncanvas/core",
3
3
  "module": "index.js",
4
4
  "type": "module",
5
- "version": "0.1.4",
5
+ "version": "0.1.6",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
@@ -13,8 +13,25 @@
13
13
  "typescript": "^7"
14
14
  },
15
15
  "optionalDependencies": {
16
- "@buncanvas/native-linux-x64": "0.1.1",
17
- "@buncanvas/native-win32-x64": "0.1.1",
18
- "@buncanvas/native-darwin-x64": "0.1.1"
19
- }
16
+ "@buncanvas/native-linux-x64": "0.1.6",
17
+ "@buncanvas/native-win32-x64": "0.1.6",
18
+ "@buncanvas/native-darwin-x64": "0.1.6"
19
+ },
20
+ "keywords": [
21
+ "canvas",
22
+ "gpu",
23
+ "window",
24
+ "frontend",
25
+ "graphic",
26
+ "graphics",
27
+ "skia",
28
+ "image",
29
+ "audio",
30
+ "gamedev",
31
+ "opengl",
32
+ "bun",
33
+ "ffi",
34
+ "rendering"
35
+ ],
36
+ "license":"Apache-2.0"
20
37
  }