@gjsify/example-dom-excalibur-jelly-jumper 0.2.0 → 0.3.0
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/dist/gjs.js +339 -76
- package/package.json +6 -6
package/dist/gjs.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
if(typeof globalThis.process==="undefined"){const _s=imports.system,_G=imports.gi.GLib;globalThis.process={platform:"linux",arch:"x64",version:"v20.0.0",env:new Proxy({},{get(_,p){return typeof p==="string"?(_G.getenv(p)??undefined):undefined},set(_,p,v){if(typeof p==="string")_G.setenv(p,String(v),true);return true},has(_,p){return typeof p==="string"&&_G.getenv(p)!==null},deleteProperty(_,p){if(typeof p==="string")_G.unsetenv(p);return true},ownKeys(){return _G.listenv()??[]},getOwnPropertyDescriptor(_,p){const v=_G.getenv(p);return v!==null?{value:v,writable:true,enumerable:true,configurable:true}:undefined}}),argv:_s?.programArgs?["gjs",_s.programInvocationName||"",..._s.programArgs]:["gjs"],versions:{},config:{},cwd(){return _G.get_current_dir()||"/"},exit(c){_s.exit(c??0)},stderr:{write(s){printerr(s)}},stdout:{write(s){print(s)}},stdin:null,exitCode:undefined,nextTick(fn,...a){Promise.resolve().then(()=>fn(...a))},hrtime(t){return t?[0,0]:[0,0]},};}
|
|
1
2
|
var __create = Object.create;
|
|
2
3
|
var __defProp = Object.defineProperty;
|
|
3
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -8118,6 +8119,24 @@ var init_esm7 = __esm({
|
|
|
8118
8119
|
}
|
|
8119
8120
|
});
|
|
8120
8121
|
|
|
8122
|
+
// ../../../packages/node/terminal-native/lib/esm/index.js
|
|
8123
|
+
var _mod, _gi, nativeTerminal;
|
|
8124
|
+
var init_esm8 = __esm({
|
|
8125
|
+
"../../../packages/node/terminal-native/lib/esm/index.js"() {
|
|
8126
|
+
init_console_gjs();
|
|
8127
|
+
init_auto_globals_2efde837f2();
|
|
8128
|
+
_mod = null;
|
|
8129
|
+
_gi = globalThis.imports?.gi;
|
|
8130
|
+
if (_gi) {
|
|
8131
|
+
try {
|
|
8132
|
+
_mod = _gi["GjsifyTerminal"];
|
|
8133
|
+
} catch {
|
|
8134
|
+
}
|
|
8135
|
+
}
|
|
8136
|
+
nativeTerminal = _mod;
|
|
8137
|
+
}
|
|
8138
|
+
});
|
|
8139
|
+
|
|
8121
8140
|
// ../../../packages/node/process/lib/esm/index.js
|
|
8122
8141
|
function getGjsGlobal() {
|
|
8123
8142
|
return globalThis;
|
|
@@ -8203,12 +8222,6 @@ function detectArch() {
|
|
|
8203
8222
|
if (typeof globalThis.process?.arch === "string") {
|
|
8204
8223
|
return globalThis.process.arch;
|
|
8205
8224
|
}
|
|
8206
|
-
try {
|
|
8207
|
-
const system = getGjsGlobal().imports?.system;
|
|
8208
|
-
if (system?.programInvocationName) {
|
|
8209
|
-
}
|
|
8210
|
-
} catch {
|
|
8211
|
-
}
|
|
8212
8225
|
return "x64";
|
|
8213
8226
|
}
|
|
8214
8227
|
function getCwd() {
|
|
@@ -8303,6 +8316,22 @@ function getPid() {
|
|
|
8303
8316
|
}
|
|
8304
8317
|
return 0;
|
|
8305
8318
|
}
|
|
8319
|
+
function getGioNamespace() {
|
|
8320
|
+
const _gi2 = globalThis.imports?.gi;
|
|
8321
|
+
if (!_gi2) return null;
|
|
8322
|
+
let gio = null;
|
|
8323
|
+
try {
|
|
8324
|
+
gio = _gi2["GioUnix"];
|
|
8325
|
+
} catch {
|
|
8326
|
+
}
|
|
8327
|
+
if (!gio) {
|
|
8328
|
+
try {
|
|
8329
|
+
gio = _gi2["Gio"];
|
|
8330
|
+
} catch {
|
|
8331
|
+
}
|
|
8332
|
+
}
|
|
8333
|
+
return gio;
|
|
8334
|
+
}
|
|
8306
8335
|
function getMonotonicTime() {
|
|
8307
8336
|
try {
|
|
8308
8337
|
const GLib8 = getGjsGlobal().imports?.gi?.GLib;
|
|
@@ -8316,14 +8345,246 @@ function getMonotonicTime() {
|
|
|
8316
8345
|
}
|
|
8317
8346
|
return BigInt(Date.now()) * 1000000n;
|
|
8318
8347
|
}
|
|
8319
|
-
var startTime, hrtimeBase, Process, process, platform, arch, env, argv, argv0, execPath, pid, ppid, version, versions, cwd, chdir, exit, nextTick2, hrtime, uptime, memoryUsage, cpuUsage, kill, abort, umask, emitWarning, execArgv, config, stdout, stderr, stdin, index_default;
|
|
8320
|
-
var
|
|
8348
|
+
var _encoder2, startTime, ProcessWriteStream, ProcessReadStream, hrtimeBase, Process, process, platform, arch, env, argv, argv0, execPath, pid, ppid, version, versions, cwd, chdir, exit, nextTick2, hrtime, uptime, memoryUsage, cpuUsage, kill, abort, umask, emitWarning, execArgv, config, stdout, stderr, stdin, index_default;
|
|
8349
|
+
var init_esm9 = __esm({
|
|
8321
8350
|
"../../../packages/node/process/lib/esm/index.js"() {
|
|
8322
8351
|
init_console_gjs();
|
|
8323
8352
|
init_auto_globals_2efde837f2();
|
|
8324
8353
|
init_esm7();
|
|
8325
8354
|
init_esm();
|
|
8355
|
+
init_esm8();
|
|
8356
|
+
_encoder2 = new TextEncoder();
|
|
8326
8357
|
startTime = Date.now();
|
|
8358
|
+
ProcessWriteStream = class extends EventEmitter2 {
|
|
8359
|
+
fd;
|
|
8360
|
+
// Required by Stream.pipe(): without this, pipe skips dest.write() entirely.
|
|
8361
|
+
writable = true;
|
|
8362
|
+
_outGio = null;
|
|
8363
|
+
constructor(fd) {
|
|
8364
|
+
super();
|
|
8365
|
+
this.fd = fd;
|
|
8366
|
+
const gio = getGioNamespace();
|
|
8367
|
+
if (gio) {
|
|
8368
|
+
const Cls = gio.UnixOutputStream ?? gio.OutputStream;
|
|
8369
|
+
if (Cls) {
|
|
8370
|
+
try {
|
|
8371
|
+
this._outGio = Cls.new(this.fd, false);
|
|
8372
|
+
} catch {
|
|
8373
|
+
}
|
|
8374
|
+
}
|
|
8375
|
+
}
|
|
8376
|
+
}
|
|
8377
|
+
write(data) {
|
|
8378
|
+
if (this._outGio) {
|
|
8379
|
+
try {
|
|
8380
|
+
const bytes = typeof data === "string" ? _encoder2.encode(data) : data;
|
|
8381
|
+
this._outGio.write_all(bytes, null);
|
|
8382
|
+
return true;
|
|
8383
|
+
} catch {
|
|
8384
|
+
}
|
|
8385
|
+
}
|
|
8386
|
+
if (this.fd === 2) {
|
|
8387
|
+
console.error(data);
|
|
8388
|
+
} else {
|
|
8389
|
+
console.log(data);
|
|
8390
|
+
}
|
|
8391
|
+
return true;
|
|
8392
|
+
}
|
|
8393
|
+
get isTTY() {
|
|
8394
|
+
if (nativeTerminal) return nativeTerminal.Terminal.is_tty(this.fd);
|
|
8395
|
+
try {
|
|
8396
|
+
const GLib8 = getGjsGlobal().imports?.gi?.GLib;
|
|
8397
|
+
if (GLib8) return !!GLib8.log_writer_supports_color(this.fd);
|
|
8398
|
+
} catch {
|
|
8399
|
+
}
|
|
8400
|
+
return false;
|
|
8401
|
+
}
|
|
8402
|
+
get columns() {
|
|
8403
|
+
if (nativeTerminal) {
|
|
8404
|
+
const [ok, , cols] = nativeTerminal.Terminal.get_size(this.fd);
|
|
8405
|
+
if (ok && cols > 0) return cols;
|
|
8406
|
+
}
|
|
8407
|
+
try {
|
|
8408
|
+
const GLib8 = getGjsGlobal().imports?.gi?.GLib;
|
|
8409
|
+
if (GLib8) {
|
|
8410
|
+
const c = parseInt(GLib8.getenv("COLUMNS") ?? "0", 10);
|
|
8411
|
+
if (c > 0) return c;
|
|
8412
|
+
}
|
|
8413
|
+
} catch {
|
|
8414
|
+
}
|
|
8415
|
+
return 80;
|
|
8416
|
+
}
|
|
8417
|
+
// stdout/stderr must never be closed — the process owns the fds.
|
|
8418
|
+
// pipe() calls end() when its source emits 'end' (e.g. MuteStream); no-op here.
|
|
8419
|
+
end() {
|
|
8420
|
+
}
|
|
8421
|
+
destroy() {
|
|
8422
|
+
}
|
|
8423
|
+
get rows() {
|
|
8424
|
+
if (nativeTerminal) {
|
|
8425
|
+
const [ok, rows] = nativeTerminal.Terminal.get_size(this.fd);
|
|
8426
|
+
if (ok && rows > 0) return rows;
|
|
8427
|
+
}
|
|
8428
|
+
try {
|
|
8429
|
+
const GLib8 = getGjsGlobal().imports?.gi?.GLib;
|
|
8430
|
+
if (GLib8) {
|
|
8431
|
+
const r = parseInt(GLib8.getenv("LINES") ?? "0", 10);
|
|
8432
|
+
if (r > 0) return r;
|
|
8433
|
+
}
|
|
8434
|
+
} catch {
|
|
8435
|
+
}
|
|
8436
|
+
return 24;
|
|
8437
|
+
}
|
|
8438
|
+
};
|
|
8439
|
+
ProcessReadStream = class extends EventEmitter2 {
|
|
8440
|
+
fd;
|
|
8441
|
+
isRaw = false;
|
|
8442
|
+
// Do NOT expose `readableFlowing` as an instance property: @inquirer/core uses
|
|
8443
|
+
// `'readableFlowing' in input` to defer startCycle() via setImmediate. In GJS,
|
|
8444
|
+
// setImmediate fires as a microtask — the property must stay absent so
|
|
8445
|
+
// @inquirer/core calls startCycle() synchronously on its own schedule.
|
|
8446
|
+
_gio = null;
|
|
8447
|
+
_stdinGio = null;
|
|
8448
|
+
_reading = false;
|
|
8449
|
+
_flowing = false;
|
|
8450
|
+
_sttyCleanupRegistered = false;
|
|
8451
|
+
_mainLoopHeld = false;
|
|
8452
|
+
// True while a read_bytes_async is in-flight. Prevents a second concurrent
|
|
8453
|
+
// read from starting when pause()+resume() fires between GLib iterations.
|
|
8454
|
+
_pendingRead = false;
|
|
8455
|
+
constructor(fd) {
|
|
8456
|
+
super();
|
|
8457
|
+
this.fd = fd;
|
|
8458
|
+
this._gio = getGioNamespace();
|
|
8459
|
+
}
|
|
8460
|
+
get isTTY() {
|
|
8461
|
+
if (nativeTerminal) return nativeTerminal.Terminal.is_tty(this.fd);
|
|
8462
|
+
return false;
|
|
8463
|
+
}
|
|
8464
|
+
setRawMode(mode) {
|
|
8465
|
+
if (nativeTerminal) {
|
|
8466
|
+
const ok = nativeTerminal.Terminal.set_raw_mode(this.fd, mode);
|
|
8467
|
+
if (ok) {
|
|
8468
|
+
this.isRaw = mode;
|
|
8469
|
+
return this;
|
|
8470
|
+
}
|
|
8471
|
+
}
|
|
8472
|
+
this._setRawModeViaStty(mode);
|
|
8473
|
+
this.isRaw = mode;
|
|
8474
|
+
return this;
|
|
8475
|
+
}
|
|
8476
|
+
_setRawModeViaStty(mode) {
|
|
8477
|
+
try {
|
|
8478
|
+
const _gi2 = globalThis.imports?.gi;
|
|
8479
|
+
const Gio3 = _gi2?.Gio ?? _gi2?.["Gio"];
|
|
8480
|
+
if (!Gio3) return;
|
|
8481
|
+
const STDIN_INHERIT = Gio3.SubprocessFlags?.STDIN_INHERIT ?? 2;
|
|
8482
|
+
const argv2 = mode ? ["stty", "-icanon", "-echo", "-icrnl", "min", "1", "time", "0"] : ["stty", "icanon", "echo", "icrnl"];
|
|
8483
|
+
const launcher = new Gio3.SubprocessLauncher({ flags: STDIN_INHERIT });
|
|
8484
|
+
const proc = launcher.spawnv(argv2);
|
|
8485
|
+
proc.wait(null);
|
|
8486
|
+
if (mode && !this._sttyCleanupRegistered) {
|
|
8487
|
+
this._sttyCleanupRegistered = true;
|
|
8488
|
+
const proc_ = globalThis.process;
|
|
8489
|
+
if (proc_?.once && typeof proc_.once === "function") {
|
|
8490
|
+
proc_.once("exit", () => this._setRawModeViaStty(false));
|
|
8491
|
+
}
|
|
8492
|
+
}
|
|
8493
|
+
} catch {
|
|
8494
|
+
}
|
|
8495
|
+
}
|
|
8496
|
+
setEncoding(_enc) {
|
|
8497
|
+
return this;
|
|
8498
|
+
}
|
|
8499
|
+
resume() {
|
|
8500
|
+
this._flowing = true;
|
|
8501
|
+
if (this._gio && this.fd === 0 && !this._reading) {
|
|
8502
|
+
this._startReading();
|
|
8503
|
+
}
|
|
8504
|
+
return this;
|
|
8505
|
+
}
|
|
8506
|
+
pause() {
|
|
8507
|
+
this._flowing = false;
|
|
8508
|
+
this._reading = false;
|
|
8509
|
+
if (this._mainLoopHeld) {
|
|
8510
|
+
this._mainLoopHeld = false;
|
|
8511
|
+
const _gi2 = globalThis.imports?.gi;
|
|
8512
|
+
const GLib8 = _gi2?.GLib ?? _gi2?.["GLib"];
|
|
8513
|
+
if (GLib8?.idle_add) {
|
|
8514
|
+
GLib8.idle_add(300, () => {
|
|
8515
|
+
if (!this._mainLoopHeld) quitMainLoop();
|
|
8516
|
+
return false;
|
|
8517
|
+
});
|
|
8518
|
+
} else {
|
|
8519
|
+
quitMainLoop();
|
|
8520
|
+
}
|
|
8521
|
+
}
|
|
8522
|
+
return this;
|
|
8523
|
+
}
|
|
8524
|
+
read() {
|
|
8525
|
+
return null;
|
|
8526
|
+
}
|
|
8527
|
+
_startReading() {
|
|
8528
|
+
if (!this._gio || this._reading) return;
|
|
8529
|
+
if (this._pendingRead) {
|
|
8530
|
+
this._reading = true;
|
|
8531
|
+
if (!this._mainLoopHeld) {
|
|
8532
|
+
this._mainLoopHeld = true;
|
|
8533
|
+
ensureMainLoop();
|
|
8534
|
+
}
|
|
8535
|
+
return;
|
|
8536
|
+
}
|
|
8537
|
+
this._reading = true;
|
|
8538
|
+
if (!this._mainLoopHeld) {
|
|
8539
|
+
this._mainLoopHeld = true;
|
|
8540
|
+
ensureMainLoop();
|
|
8541
|
+
}
|
|
8542
|
+
if (!this._stdinGio) {
|
|
8543
|
+
const Cls = this._gio.UnixInputStream ?? this._gio.InputStream;
|
|
8544
|
+
if (!Cls) {
|
|
8545
|
+
this._reading = false;
|
|
8546
|
+
return;
|
|
8547
|
+
}
|
|
8548
|
+
try {
|
|
8549
|
+
this._stdinGio = Cls.new(this.fd, false);
|
|
8550
|
+
} catch {
|
|
8551
|
+
this._reading = false;
|
|
8552
|
+
return;
|
|
8553
|
+
}
|
|
8554
|
+
}
|
|
8555
|
+
const loop = () => {
|
|
8556
|
+
if (!this._reading) {
|
|
8557
|
+
this._pendingRead = false;
|
|
8558
|
+
return;
|
|
8559
|
+
}
|
|
8560
|
+
this._pendingRead = true;
|
|
8561
|
+
this._stdinGio.read_bytes_async(
|
|
8562
|
+
4096,
|
|
8563
|
+
0,
|
|
8564
|
+
null,
|
|
8565
|
+
(src, res) => {
|
|
8566
|
+
this._pendingRead = false;
|
|
8567
|
+
try {
|
|
8568
|
+
const bytes = src.read_bytes_finish(res);
|
|
8569
|
+
const data = bytes?.get_data?.() ?? null;
|
|
8570
|
+
if (data && data.byteLength > 0) {
|
|
8571
|
+
this.emit("data", Buffer.from(data));
|
|
8572
|
+
} else if (data !== null && data.byteLength === 0) {
|
|
8573
|
+
this._reading = false;
|
|
8574
|
+
this.emit("end");
|
|
8575
|
+
return;
|
|
8576
|
+
}
|
|
8577
|
+
} catch {
|
|
8578
|
+
this._reading = false;
|
|
8579
|
+
return;
|
|
8580
|
+
}
|
|
8581
|
+
if (this._reading) loop();
|
|
8582
|
+
}
|
|
8583
|
+
);
|
|
8584
|
+
};
|
|
8585
|
+
loop();
|
|
8586
|
+
}
|
|
8587
|
+
};
|
|
8327
8588
|
hrtimeBase = getMonotonicTime();
|
|
8328
8589
|
Process = class extends EventEmitter2 {
|
|
8329
8590
|
platform;
|
|
@@ -8487,18 +8748,11 @@ var init_esm8 = __esm({
|
|
|
8487
8748
|
}
|
|
8488
8749
|
return { user: 0, system: 0 };
|
|
8489
8750
|
}
|
|
8490
|
-
// Stub: stdout/stderr/stdin — these need stream to be implemented fully
|
|
8491
8751
|
// Note: Cannot check globalThis.process.stdout here — on GJS globalThis.process
|
|
8492
8752
|
// IS this instance, so that would cause infinite recursion.
|
|
8493
|
-
stdout =
|
|
8494
|
-
|
|
8495
|
-
|
|
8496
|
-
}, fd: 1 };
|
|
8497
|
-
stderr = { write: (data) => {
|
|
8498
|
-
console.error(data);
|
|
8499
|
-
return true;
|
|
8500
|
-
}, fd: 2 };
|
|
8501
|
-
stdin = { fd: 0 };
|
|
8753
|
+
stdout = new ProcessWriteStream(1);
|
|
8754
|
+
stderr = new ProcessWriteStream(2);
|
|
8755
|
+
stdin = new ProcessReadStream(0);
|
|
8502
8756
|
abort() {
|
|
8503
8757
|
this.exit(1);
|
|
8504
8758
|
}
|
|
@@ -8518,6 +8772,17 @@ var init_esm8 = __esm({
|
|
|
8518
8772
|
return getMonotonicTime() - hrtimeBase;
|
|
8519
8773
|
};
|
|
8520
8774
|
process = new Process();
|
|
8775
|
+
if (nativeTerminal) {
|
|
8776
|
+
try {
|
|
8777
|
+
const watcher = new nativeTerminal.ResizeWatcher();
|
|
8778
|
+
watcher.connect("resized", (_obj, _rows, _cols) => {
|
|
8779
|
+
process.stdout.emit("resize");
|
|
8780
|
+
process.stderr.emit("resize");
|
|
8781
|
+
});
|
|
8782
|
+
watcher.start();
|
|
8783
|
+
} catch {
|
|
8784
|
+
}
|
|
8785
|
+
}
|
|
8521
8786
|
platform = process.platform;
|
|
8522
8787
|
arch = process.arch;
|
|
8523
8788
|
env = process.env;
|
|
@@ -8555,7 +8820,7 @@ var init_process = __esm({
|
|
|
8555
8820
|
init_console_gjs();
|
|
8556
8821
|
init_auto_globals_2efde837f2();
|
|
8557
8822
|
init_esm();
|
|
8558
|
-
|
|
8823
|
+
init_esm9();
|
|
8559
8824
|
if (typeof Promise.withResolvers !== "function") {
|
|
8560
8825
|
Promise.withResolvers = function() {
|
|
8561
8826
|
let resolve;
|
|
@@ -8576,14 +8841,12 @@ var init_process = __esm({
|
|
|
8576
8841
|
configurable: true
|
|
8577
8842
|
});
|
|
8578
8843
|
}
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
|
|
8583
|
-
|
|
8584
|
-
|
|
8585
|
-
});
|
|
8586
|
-
}
|
|
8844
|
+
Object.defineProperty(globalThis, "process", {
|
|
8845
|
+
value: index_default,
|
|
8846
|
+
enumerable: false,
|
|
8847
|
+
writable: true,
|
|
8848
|
+
configurable: true
|
|
8849
|
+
});
|
|
8587
8850
|
}
|
|
8588
8851
|
});
|
|
8589
8852
|
|
|
@@ -8732,7 +8995,7 @@ function encodeComponent(s) {
|
|
|
8732
8995
|
return encodeURIComponent(s).replace(/%20/g, "+");
|
|
8733
8996
|
}
|
|
8734
8997
|
var PARSE_FLAGS, URLSearchParams, URL2;
|
|
8735
|
-
var
|
|
8998
|
+
var init_esm10 = __esm({
|
|
8736
8999
|
"../../../packages/node/url/lib/esm/index.js"() {
|
|
8737
9000
|
init_console_gjs();
|
|
8738
9001
|
init_auto_globals_2efde837f2();
|
|
@@ -8982,7 +9245,7 @@ var init_url = __esm({
|
|
|
8982
9245
|
"../../../packages/node/globals/lib/esm/register/url.js"() {
|
|
8983
9246
|
init_console_gjs();
|
|
8984
9247
|
init_auto_globals_2efde837f2();
|
|
8985
|
-
|
|
9248
|
+
init_esm10();
|
|
8986
9249
|
if (typeof globalThis.URL !== "function") {
|
|
8987
9250
|
Object.defineProperty(globalThis, "URL", {
|
|
8988
9251
|
value: URL2,
|
|
@@ -9004,7 +9267,7 @@ var init_url = __esm({
|
|
|
9004
9267
|
|
|
9005
9268
|
// ../../../packages/node/perf_hooks/lib/esm/index.js
|
|
9006
9269
|
var performance2, PerformanceObserverStub, PerformanceEntryStub, PerformanceObserverEntryListStub, PerformanceObserver, PerformanceEntry, PerformanceObserverEntryList, PerformanceMark, PerformanceMeasure;
|
|
9007
|
-
var
|
|
9270
|
+
var init_esm11 = __esm({
|
|
9008
9271
|
"../../../packages/node/perf_hooks/lib/esm/index.js"() {
|
|
9009
9272
|
init_console_gjs();
|
|
9010
9273
|
init_auto_globals_2efde837f2();
|
|
@@ -9127,7 +9390,7 @@ var init_performance = __esm({
|
|
|
9127
9390
|
"../../../packages/web/web-globals/lib/esm/register/performance.js"() {
|
|
9128
9391
|
init_console_gjs();
|
|
9129
9392
|
init_auto_globals_2efde837f2();
|
|
9130
|
-
|
|
9393
|
+
init_esm11();
|
|
9131
9394
|
if (typeof globalThis.performance === "undefined") {
|
|
9132
9395
|
globalThis.performance = performance2;
|
|
9133
9396
|
}
|
|
@@ -9803,7 +10066,7 @@ var init_html_audio_element = __esm({
|
|
|
9803
10066
|
});
|
|
9804
10067
|
|
|
9805
10068
|
// ../../../packages/web/webaudio/lib/esm/index.js
|
|
9806
|
-
var
|
|
10069
|
+
var init_esm12 = __esm({
|
|
9807
10070
|
"../../../packages/web/webaudio/lib/esm/index.js"() {
|
|
9808
10071
|
init_console_gjs();
|
|
9809
10072
|
init_auto_globals_2efde837f2();
|
|
@@ -9817,7 +10080,7 @@ var init_register4 = __esm({
|
|
|
9817
10080
|
"../../../packages/web/webaudio/lib/esm/register.js"() {
|
|
9818
10081
|
init_console_gjs();
|
|
9819
10082
|
init_auto_globals_2efde837f2();
|
|
9820
|
-
|
|
10083
|
+
init_esm12();
|
|
9821
10084
|
if (typeof globalThis.AudioContext === "undefined") {
|
|
9822
10085
|
globalThis.AudioContext = AudioContext2;
|
|
9823
10086
|
}
|
|
@@ -9835,7 +10098,7 @@ var init_register4 = __esm({
|
|
|
9835
10098
|
|
|
9836
10099
|
// ../../../packages/web/abort-controller/lib/esm/index.js
|
|
9837
10100
|
var kAbort, kInternal, AbortSignal2, AbortController2;
|
|
9838
|
-
var
|
|
10101
|
+
var init_esm13 = __esm({
|
|
9839
10102
|
"../../../packages/web/abort-controller/lib/esm/index.js"() {
|
|
9840
10103
|
init_console_gjs();
|
|
9841
10104
|
init_auto_globals_2efde837f2();
|
|
@@ -9928,7 +10191,7 @@ var init_register5 = __esm({
|
|
|
9928
10191
|
"../../../packages/web/abort-controller/lib/esm/register.js"() {
|
|
9929
10192
|
init_console_gjs();
|
|
9930
10193
|
init_auto_globals_2efde837f2();
|
|
9931
|
-
|
|
10194
|
+
init_esm13();
|
|
9932
10195
|
if (typeof globalThis.AbortController === "undefined") {
|
|
9933
10196
|
globalThis.AbortController = AbortController2;
|
|
9934
10197
|
}
|
|
@@ -12319,7 +12582,7 @@ function isNativeStreamUsable(Ctor, method) {
|
|
|
12319
12582
|
}
|
|
12320
12583
|
}
|
|
12321
12584
|
var _ReadableStream, _WritableStream, _TransformStream, _ByteLengthQueuingStrategy, _CountQueuingStrategy, _TextEncoderStream, _TextDecoderStream;
|
|
12322
|
-
var
|
|
12585
|
+
var init_esm14 = __esm({
|
|
12323
12586
|
"../../../packages/web/streams/lib/esm/index.js"() {
|
|
12324
12587
|
init_console_gjs();
|
|
12325
12588
|
init_auto_globals_2efde837f2();
|
|
@@ -12513,7 +12776,7 @@ function isErrored(stream) {
|
|
|
12513
12776
|
return false;
|
|
12514
12777
|
}
|
|
12515
12778
|
var defaultHighWaterMark, defaultObjectHighWaterMark, Stream_, Readable_, Writable_, Duplex_, Transform_, PassThrough_, Stream, Readable, Writable, Duplex, Transform, PassThrough, _default2, index_default2;
|
|
12516
|
-
var
|
|
12779
|
+
var init_esm15 = __esm({
|
|
12517
12780
|
"../../../packages/node/stream/lib/esm/index.js"() {
|
|
12518
12781
|
init_console_gjs();
|
|
12519
12782
|
init_auto_globals_2efde837f2();
|
|
@@ -13726,7 +13989,7 @@ var init_transform_streams = __esm({
|
|
|
13726
13989
|
init_auto_globals_2efde837f2();
|
|
13727
13990
|
init_gio_2();
|
|
13728
13991
|
init_glib_2();
|
|
13729
|
-
|
|
13992
|
+
init_esm15();
|
|
13730
13993
|
ZlibTransform = class extends Transform {
|
|
13731
13994
|
_format;
|
|
13732
13995
|
_mode;
|
|
@@ -14060,7 +14323,7 @@ function brotliDecompressSync(_data, _options) {
|
|
|
14060
14323
|
throw new Error("brotliDecompressSync: Brotli is not supported in this environment");
|
|
14061
14324
|
}
|
|
14062
14325
|
var hasWebCompression, constants2, index_default3;
|
|
14063
|
-
var
|
|
14326
|
+
var init_esm16 = __esm({
|
|
14064
14327
|
"../../../packages/node/zlib/lib/esm/index.js"() {
|
|
14065
14328
|
init_console_gjs();
|
|
14066
14329
|
init_auto_globals_2efde837f2();
|
|
@@ -14137,7 +14400,7 @@ function validateFormat(format) {
|
|
|
14137
14400
|
}
|
|
14138
14401
|
async function loadZlib() {
|
|
14139
14402
|
if (_zlibLoaded) return;
|
|
14140
|
-
const zlib = await Promise.resolve().then(() => (
|
|
14403
|
+
const zlib = await Promise.resolve().then(() => (init_esm16(), esm_exports));
|
|
14141
14404
|
_gzipSync = zlib.gzipSync;
|
|
14142
14405
|
_gunzipSync = zlib.gunzipSync;
|
|
14143
14406
|
_deflateSync = zlib.deflateSync;
|
|
@@ -14167,11 +14430,11 @@ function getDecompressFn(format) {
|
|
|
14167
14430
|
}
|
|
14168
14431
|
}
|
|
14169
14432
|
var VALID_FORMATS, hasNative, _zlibLoaded, _gzipSync, _gunzipSync, _deflateSync, _inflateSync, _deflateRawSync, _inflateRawSync, CompressionStreamImpl, DecompressionStreamImpl;
|
|
14170
|
-
var
|
|
14433
|
+
var init_esm17 = __esm({
|
|
14171
14434
|
"../../../packages/web/compression-streams/lib/esm/index.js"() {
|
|
14172
14435
|
init_console_gjs();
|
|
14173
14436
|
init_auto_globals_2efde837f2();
|
|
14174
|
-
|
|
14437
|
+
init_esm14();
|
|
14175
14438
|
VALID_FORMATS = /* @__PURE__ */ new Set(["gzip", "deflate", "deflate-raw"]);
|
|
14176
14439
|
hasNative = typeof globalThis.CompressionStream === "function" && typeof globalThis.DecompressionStream === "function";
|
|
14177
14440
|
_zlibLoaded = false;
|
|
@@ -14233,7 +14496,7 @@ var init_register6 = __esm({
|
|
|
14233
14496
|
"../../../packages/web/compression-streams/lib/esm/register.js"() {
|
|
14234
14497
|
init_console_gjs();
|
|
14235
14498
|
init_auto_globals_2efde837f2();
|
|
14236
|
-
|
|
14499
|
+
init_esm17();
|
|
14237
14500
|
if (typeof globalThis.CompressionStream === "undefined") {
|
|
14238
14501
|
globalThis.CompressionStream = CompressionStreamImpl;
|
|
14239
14502
|
}
|
|
@@ -14532,7 +14795,7 @@ var init_form_data_to_blob = __esm({
|
|
|
14532
14795
|
});
|
|
14533
14796
|
|
|
14534
14797
|
// ../../../packages/web/formdata/lib/esm/index.js
|
|
14535
|
-
var
|
|
14798
|
+
var init_esm18 = __esm({
|
|
14536
14799
|
"../../../packages/web/formdata/lib/esm/index.js"() {
|
|
14537
14800
|
init_console_gjs();
|
|
14538
14801
|
init_auto_globals_2efde837f2();
|
|
@@ -14600,7 +14863,7 @@ var init_is = __esm({
|
|
|
14600
14863
|
"../../../packages/web/fetch/lib/esm/utils/is.js"() {
|
|
14601
14864
|
init_console_gjs();
|
|
14602
14865
|
init_auto_globals_2efde837f2();
|
|
14603
|
-
|
|
14866
|
+
init_esm10();
|
|
14604
14867
|
NAME = Symbol.toStringTag;
|
|
14605
14868
|
isURLSearchParameters = (object) => {
|
|
14606
14869
|
return typeof object === "object" && typeof object.append === "function" && typeof object.delete === "function" && typeof object.get === "function" && typeof object.getAll === "function" && typeof object.has === "function" && typeof object.set === "function" && typeof object.sort === "function" && object[NAME] === "URLSearchParams";
|
|
@@ -14726,7 +14989,7 @@ var init_multipart_parser = __esm({
|
|
|
14726
14989
|
init_console_gjs();
|
|
14727
14990
|
init_auto_globals_2efde837f2();
|
|
14728
14991
|
init_blob_from();
|
|
14729
|
-
|
|
14992
|
+
init_esm18();
|
|
14730
14993
|
f = 1;
|
|
14731
14994
|
F = {
|
|
14732
14995
|
PART_BOUNDARY: f,
|
|
@@ -15064,11 +15327,11 @@ var init_body = __esm({
|
|
|
15064
15327
|
"../../../packages/web/fetch/lib/esm/body.js"() {
|
|
15065
15328
|
init_console_gjs();
|
|
15066
15329
|
init_auto_globals_2efde837f2();
|
|
15067
|
-
|
|
15330
|
+
init_esm10();
|
|
15068
15331
|
init_blob_from();
|
|
15069
|
-
|
|
15332
|
+
init_esm15();
|
|
15070
15333
|
init_esm6();
|
|
15071
|
-
|
|
15334
|
+
init_esm18();
|
|
15072
15335
|
init_fetch_error();
|
|
15073
15336
|
init_base();
|
|
15074
15337
|
init_is();
|
|
@@ -15329,7 +15592,7 @@ var init_incoming_message = __esm({
|
|
|
15329
15592
|
"../../../packages/node/http/lib/esm/incoming-message.js"() {
|
|
15330
15593
|
init_console_gjs();
|
|
15331
15594
|
init_auto_globals_2efde837f2();
|
|
15332
|
-
|
|
15595
|
+
init_esm15();
|
|
15333
15596
|
}
|
|
15334
15597
|
});
|
|
15335
15598
|
|
|
@@ -15340,7 +15603,7 @@ var init_socket = __esm({
|
|
|
15340
15603
|
init_auto_globals_2efde837f2();
|
|
15341
15604
|
init_gio_2();
|
|
15342
15605
|
init_glib_2();
|
|
15343
|
-
|
|
15606
|
+
init_esm15();
|
|
15344
15607
|
init_esm();
|
|
15345
15608
|
}
|
|
15346
15609
|
});
|
|
@@ -15348,7 +15611,7 @@ var init_socket = __esm({
|
|
|
15348
15611
|
// ../../../packages/node/http-soup-bridge/lib/esm/index.js
|
|
15349
15612
|
import GjsifyHttpSoupBridge from "gi://GjsifyHttpSoupBridge?version=1.0";
|
|
15350
15613
|
var Server, Request, Response;
|
|
15351
|
-
var
|
|
15614
|
+
var init_esm19 = __esm({
|
|
15352
15615
|
"../../../packages/node/http-soup-bridge/lib/esm/index.js"() {
|
|
15353
15616
|
init_console_gjs();
|
|
15354
15617
|
init_auto_globals_2efde837f2();
|
|
@@ -15363,7 +15626,7 @@ var init_server_request_socket = __esm({
|
|
|
15363
15626
|
"../../../packages/node/http/lib/esm/server-request-socket.js"() {
|
|
15364
15627
|
init_console_gjs();
|
|
15365
15628
|
init_auto_globals_2efde837f2();
|
|
15366
|
-
|
|
15629
|
+
init_esm15();
|
|
15367
15630
|
}
|
|
15368
15631
|
});
|
|
15369
15632
|
|
|
@@ -15373,9 +15636,9 @@ var init_server = __esm({
|
|
|
15373
15636
|
init_console_gjs();
|
|
15374
15637
|
init_auto_globals_2efde837f2();
|
|
15375
15638
|
init_esm7();
|
|
15376
|
-
|
|
15639
|
+
init_esm15();
|
|
15377
15640
|
init_socket();
|
|
15378
|
-
|
|
15641
|
+
init_esm19();
|
|
15379
15642
|
init_server_request_socket();
|
|
15380
15643
|
init_esm();
|
|
15381
15644
|
init_constants();
|
|
@@ -15391,7 +15654,7 @@ var init_client_request = __esm({
|
|
|
15391
15654
|
init_glib_2();
|
|
15392
15655
|
init_soup_3();
|
|
15393
15656
|
init_gio_2();
|
|
15394
|
-
|
|
15657
|
+
init_esm10();
|
|
15395
15658
|
init_esm();
|
|
15396
15659
|
init_server();
|
|
15397
15660
|
init_incoming_message();
|
|
@@ -15419,7 +15682,7 @@ function validateHeaderValue(name2, value2) {
|
|
|
15419
15682
|
}
|
|
15420
15683
|
}
|
|
15421
15684
|
var Agent, globalAgent;
|
|
15422
|
-
var
|
|
15685
|
+
var init_esm20 = __esm({
|
|
15423
15686
|
"../../../packages/node/http/lib/esm/index.js"() {
|
|
15424
15687
|
init_console_gjs();
|
|
15425
15688
|
init_auto_globals_2efde837f2();
|
|
@@ -15430,7 +15693,7 @@ var init_esm19 = __esm({
|
|
|
15430
15693
|
init_incoming_message();
|
|
15431
15694
|
init_server();
|
|
15432
15695
|
init_client_request();
|
|
15433
|
-
|
|
15696
|
+
init_esm10();
|
|
15434
15697
|
init_constants();
|
|
15435
15698
|
Agent = class {
|
|
15436
15699
|
defaultPort = 80;
|
|
@@ -15481,7 +15744,7 @@ var init_headers = __esm({
|
|
|
15481
15744
|
init_console_gjs();
|
|
15482
15745
|
init_auto_globals_2efde837f2();
|
|
15483
15746
|
init_soup_3();
|
|
15484
|
-
|
|
15747
|
+
init_esm20();
|
|
15485
15748
|
_headers = /* @__PURE__ */ Symbol("Headers.headers");
|
|
15486
15749
|
Headers = class _Headers {
|
|
15487
15750
|
[_headers];
|
|
@@ -15688,7 +15951,7 @@ var init_response = __esm({
|
|
|
15688
15951
|
init_headers();
|
|
15689
15952
|
init_body();
|
|
15690
15953
|
init_is_redirect();
|
|
15691
|
-
|
|
15954
|
+
init_esm10();
|
|
15692
15955
|
INTERNALS2 = /* @__PURE__ */ Symbol("Response internals");
|
|
15693
15956
|
Response2 = class _Response extends Body {
|
|
15694
15957
|
[INTERNALS2];
|
|
@@ -15851,7 +16114,7 @@ var init_soup_helpers = __esm({
|
|
|
15851
16114
|
init_console_gjs();
|
|
15852
16115
|
init_auto_globals_2efde837f2();
|
|
15853
16116
|
init_glib_2();
|
|
15854
|
-
|
|
16117
|
+
init_esm15();
|
|
15855
16118
|
init_esm();
|
|
15856
16119
|
}
|
|
15857
16120
|
});
|
|
@@ -15884,7 +16147,7 @@ function isIP(input) {
|
|
|
15884
16147
|
return 6;
|
|
15885
16148
|
}
|
|
15886
16149
|
}
|
|
15887
|
-
var
|
|
16150
|
+
var init_esm21 = __esm({
|
|
15888
16151
|
"../../../packages/node/net/lib/esm/index.js"() {
|
|
15889
16152
|
init_console_gjs();
|
|
15890
16153
|
init_auto_globals_2efde837f2();
|
|
@@ -16031,8 +16294,8 @@ var init_referrer = __esm({
|
|
|
16031
16294
|
"../../../packages/web/fetch/lib/esm/utils/referrer.js"() {
|
|
16032
16295
|
init_console_gjs();
|
|
16033
16296
|
init_auto_globals_2efde837f2();
|
|
16034
|
-
|
|
16035
|
-
|
|
16297
|
+
init_esm10();
|
|
16298
|
+
init_esm21();
|
|
16036
16299
|
ReferrerPolicy = /* @__PURE__ */ new Set([
|
|
16037
16300
|
"",
|
|
16038
16301
|
"no-referrer",
|
|
@@ -16058,7 +16321,7 @@ var init_request = __esm({
|
|
|
16058
16321
|
init_soup_3();
|
|
16059
16322
|
init_gio_2();
|
|
16060
16323
|
init_soup_helpers();
|
|
16061
|
-
|
|
16324
|
+
init_esm10();
|
|
16062
16325
|
init_headers();
|
|
16063
16326
|
init_body();
|
|
16064
16327
|
init_is();
|
|
@@ -16401,7 +16664,7 @@ var init_xhr = __esm({
|
|
|
16401
16664
|
"../../../packages/web/fetch/lib/esm/xhr.js"() {
|
|
16402
16665
|
init_console_gjs();
|
|
16403
16666
|
init_auto_globals_2efde837f2();
|
|
16404
|
-
|
|
16667
|
+
init_esm22();
|
|
16405
16668
|
_blobCounter = 0;
|
|
16406
16669
|
UNSENT = 0;
|
|
16407
16670
|
OPENED = 1;
|
|
@@ -16797,12 +17060,12 @@ async function fetch2(url, init = {}) {
|
|
|
16797
17060
|
return new response_default(readable, responseOptions);
|
|
16798
17061
|
}
|
|
16799
17062
|
var supportedSchemas;
|
|
16800
|
-
var
|
|
17063
|
+
var init_esm22 = __esm({
|
|
16801
17064
|
"../../../packages/web/fetch/lib/esm/index.js"() {
|
|
16802
17065
|
init_console_gjs();
|
|
16803
17066
|
init_auto_globals_2efde837f2();
|
|
16804
17067
|
init_glib_2();
|
|
16805
|
-
|
|
17068
|
+
init_esm15();
|
|
16806
17069
|
init_data_uri();
|
|
16807
17070
|
init_body();
|
|
16808
17071
|
init_response();
|
|
@@ -16811,10 +17074,10 @@ var init_esm21 = __esm({
|
|
|
16811
17074
|
init_fetch_error();
|
|
16812
17075
|
init_abort_error();
|
|
16813
17076
|
init_is_redirect();
|
|
16814
|
-
|
|
17077
|
+
init_esm18();
|
|
16815
17078
|
init_is();
|
|
16816
17079
|
init_referrer();
|
|
16817
|
-
|
|
17080
|
+
init_esm10();
|
|
16818
17081
|
supportedSchemas = /* @__PURE__ */ new Set(["data:", "http:", "https:", "file:"]);
|
|
16819
17082
|
}
|
|
16820
17083
|
});
|
|
@@ -16824,7 +17087,7 @@ var init_fetch = __esm({
|
|
|
16824
17087
|
"../../../packages/web/fetch/lib/esm/register/fetch.js"() {
|
|
16825
17088
|
init_console_gjs();
|
|
16826
17089
|
init_auto_globals_2efde837f2();
|
|
16827
|
-
|
|
17090
|
+
init_esm22();
|
|
16828
17091
|
if (typeof globalThis.fetch === "undefined") {
|
|
16829
17092
|
globalThis.fetch = fetch2;
|
|
16830
17093
|
}
|
|
@@ -16860,7 +17123,7 @@ var init_queuing = __esm({
|
|
|
16860
17123
|
"../../../packages/web/streams/lib/esm/register/queuing.js"() {
|
|
16861
17124
|
init_console_gjs();
|
|
16862
17125
|
init_auto_globals_2efde837f2();
|
|
16863
|
-
|
|
17126
|
+
init_esm14();
|
|
16864
17127
|
if (typeof globalThis.ByteLengthQueuingStrategy === "undefined") {
|
|
16865
17128
|
globalThis.ByteLengthQueuingStrategy = _ByteLengthQueuingStrategy;
|
|
16866
17129
|
}
|
|
@@ -16883,7 +17146,7 @@ var init_readable = __esm({
|
|
|
16883
17146
|
"../../../packages/web/streams/lib/esm/register/readable.js"() {
|
|
16884
17147
|
init_console_gjs();
|
|
16885
17148
|
init_auto_globals_2efde837f2();
|
|
16886
|
-
|
|
17149
|
+
init_esm14();
|
|
16887
17150
|
if (!isNativeStreamUsable2(globalThis.ReadableStream, "getReader")) {
|
|
16888
17151
|
globalThis.ReadableStream = _ReadableStream;
|
|
16889
17152
|
}
|
|
@@ -16895,7 +17158,7 @@ var init_text_streams = __esm({
|
|
|
16895
17158
|
"../../../packages/web/streams/lib/esm/register/text-streams.js"() {
|
|
16896
17159
|
init_console_gjs();
|
|
16897
17160
|
init_auto_globals_2efde837f2();
|
|
16898
|
-
|
|
17161
|
+
init_esm14();
|
|
16899
17162
|
if (typeof globalThis.TextEncoderStream === "undefined") {
|
|
16900
17163
|
globalThis.TextEncoderStream = _TextEncoderStream;
|
|
16901
17164
|
}
|
|
@@ -16918,7 +17181,7 @@ var init_transform = __esm({
|
|
|
16918
17181
|
"../../../packages/web/streams/lib/esm/register/transform.js"() {
|
|
16919
17182
|
init_console_gjs();
|
|
16920
17183
|
init_auto_globals_2efde837f2();
|
|
16921
|
-
|
|
17184
|
+
init_esm14();
|
|
16922
17185
|
if (!isNativeStreamUsable3(globalThis.TransformStream, "readable")) {
|
|
16923
17186
|
globalThis.TransformStream = _TransformStream;
|
|
16924
17187
|
}
|
|
@@ -16938,7 +17201,7 @@ var init_writable = __esm({
|
|
|
16938
17201
|
"../../../packages/web/streams/lib/esm/register/writable.js"() {
|
|
16939
17202
|
init_console_gjs();
|
|
16940
17203
|
init_auto_globals_2efde837f2();
|
|
16941
|
-
|
|
17204
|
+
init_esm14();
|
|
16942
17205
|
if (!isNativeStreamUsable4(globalThis.WritableStream, "getWriter")) {
|
|
16943
17206
|
globalThis.WritableStream = _WritableStream;
|
|
16944
17207
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/example-dom-excalibur-jelly-jumper",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "2D platformer showcase using Excalibur.js 0.32.0 with Tiled tilemaps, running natively on GJS/GTK4 and in the browser",
|
|
5
5
|
"main": "dist/gjs.js",
|
|
6
6
|
"type": "module",
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
"@girs/glib-2.0": "^2.88.0-4.0.0-rc.9",
|
|
31
31
|
"@girs/gobject-2.0": "^2.88.0-4.0.0-rc.9",
|
|
32
32
|
"@girs/gtk-4.0": "^4.23.0-4.0.0-rc.9",
|
|
33
|
-
"@gjsify/adwaita-icons": "^0.
|
|
34
|
-
"@gjsify/adwaita-web": "^0.
|
|
35
|
-
"@gjsify/canvas2d": "^0.
|
|
36
|
-
"@gjsify/cli": "^0.
|
|
33
|
+
"@gjsify/adwaita-icons": "^0.3.0",
|
|
34
|
+
"@gjsify/adwaita-web": "^0.3.0",
|
|
35
|
+
"@gjsify/canvas2d": "^0.3.0",
|
|
36
|
+
"@gjsify/cli": "^0.3.0",
|
|
37
37
|
"@types/node": "^25.6.0",
|
|
38
38
|
"excalibur": "0.32.0",
|
|
39
39
|
"http-server": "^14.1.1",
|
|
40
40
|
"typescript": "^6.0.3"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@gjsify/webgl": "^0.
|
|
43
|
+
"@gjsify/webgl": "^0.3.0"
|
|
44
44
|
},
|
|
45
45
|
"author": "Pascal Garber <pascal@artandcode.studio>",
|
|
46
46
|
"license": "MIT"
|