@gjsify/example-node-express-webserver 0.1.9 → 0.1.11

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/dist/index.gjs.js +14 -1
  2. package/package.json +4 -4
package/dist/index.gjs.js CHANGED
@@ -2490,6 +2490,15 @@ var init_html_element = __esm({
2490
2490
  set oncontextmenu(value2) {
2491
2491
  this[propertyEventListeners].set("oncontextmenu", value2);
2492
2492
  }
2493
+ // Wheel events — Excalibur detects wheel support via
2494
+ // `'onwheel' in document.createElement('div')` and only registers its
2495
+ // wheel listener when the property is present on the prototype chain.
2496
+ get onwheel() {
2497
+ return this[propertyEventListeners].get("onwheel") ?? null;
2498
+ }
2499
+ set onwheel(value2) {
2500
+ this[propertyEventListeners].set("onwheel", value2);
2501
+ }
2493
2502
  // Keyboard events
2494
2503
  get onkeydown() {
2495
2504
  return this[propertyEventListeners].get("onkeydown") ?? null;
@@ -3321,6 +3330,10 @@ var init_document2 = __esm({
3321
3330
  globalThis.dispatchEvent = (event) => _globalEventTarget.dispatchEvent(event);
3322
3331
  }
3323
3332
  defineGlobalIfMissing("devicePixelRatio", 1);
3333
+ defineGlobalIfMissing("scrollX", 0);
3334
+ defineGlobalIfMissing("scrollY", 0);
3335
+ defineGlobalIfMissing("pageXOffset", 0);
3336
+ defineGlobalIfMissing("pageYOffset", 0);
3324
3337
  defineGlobalIfMissing("alert", (...args) => console.error("alert:", ...args));
3325
3338
  if (typeof globalThis.top === "undefined") {
3326
3339
  Object.defineProperty(globalThis, "top", {
@@ -4918,7 +4931,7 @@ function getArgv() {
4918
4931
  try {
4919
4932
  const system = getGjsGlobal().imports?.system;
4920
4933
  if (system?.programArgs) {
4921
- return [system.programInvocationName || "gjs", ...system.programArgs];
4934
+ return ["gjs", system.programInvocationName || "", ...system.programArgs];
4922
4935
  }
4923
4936
  } catch {
4924
4937
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gjsify/example-node-express-webserver",
3
- "version": "0.1.9",
3
+ "version": "0.1.11",
4
4
  "description": "Express.js blog showcase with JSON API and static frontend — a real Node.js web app running on GJS",
5
5
  "main": "dist/index.gjs.js",
6
6
  "type": "module",
@@ -21,9 +21,9 @@
21
21
  "build:public": "mkdir -p dist/public && cp -r src/public/* dist/public/"
22
22
  },
23
23
  "devDependencies": {
24
- "@gjsify/cli": "^0.1.9",
25
- "@gjsify/node-globals": "^0.1.9",
26
- "@gjsify/runtime": "^0.1.9",
24
+ "@gjsify/cli": "^0.1.11",
25
+ "@gjsify/node-globals": "^0.1.11",
26
+ "@gjsify/runtime": "^0.1.11",
27
27
  "@types/express": "^5.0.6",
28
28
  "@types/node": "^25.6.0",
29
29
  "express": "^5.2.1",