@gjsify/resolve-npm 0.64.49-next.348 → 0.64.50
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/lib/globals-map.mjs +6 -0
- package/lib/index.mjs +11 -1
- package/package.json +2 -3
package/lib/globals-map.mjs
CHANGED
|
@@ -272,6 +272,10 @@ export const GJS_GLOBALS_MAP = {
|
|
|
272
272
|
// --- Gamepad API (libmanette backend) -----------------------------------
|
|
273
273
|
GamepadEvent: '@gjsify/gamepad/register',
|
|
274
274
|
|
|
275
|
+
// --- Web Serial API (BlueZ RFCOMM backend) ------------------------------
|
|
276
|
+
Serial: '@gjsify/webserial/register',
|
|
277
|
+
SerialPort: '@gjsify/webserial/register',
|
|
278
|
+
|
|
275
279
|
// --- Web Speech synthesis (libspiel backend) ----------------------------
|
|
276
280
|
speechSynthesis: '@gjsify/speech-synthesis/register',
|
|
277
281
|
SpeechSynthesis: '@gjsify/speech-synthesis/register',
|
|
@@ -498,6 +502,8 @@ export const BROWSER_NATIVE_IDENTS = new Set([
|
|
|
498
502
|
'Audio',
|
|
499
503
|
'HTMLAudioElement',
|
|
500
504
|
'GamepadEvent',
|
|
505
|
+
'Serial',
|
|
506
|
+
'SerialPort',
|
|
501
507
|
'speechSynthesis',
|
|
502
508
|
'SpeechSynthesis',
|
|
503
509
|
'SpeechSynthesisUtterance',
|
package/lib/index.mjs
CHANGED
|
@@ -455,7 +455,6 @@ export const ALIASES_NODE_FOR_NATIVESCRIPT = {
|
|
|
455
455
|
perf_hooks: '@gjsify/empty',
|
|
456
456
|
diagnostics_channel: '@gjsify/empty',
|
|
457
457
|
domain: '@gjsify/empty',
|
|
458
|
-
sqlite: '@gjsify/empty',
|
|
459
458
|
sys: '@gjsify/empty',
|
|
460
459
|
zlib: '@gjsify/empty',
|
|
461
460
|
|
|
@@ -463,6 +462,8 @@ export const ALIASES_NODE_FOR_NATIVESCRIPT = {
|
|
|
463
462
|
assert: '@gjsify/assert',
|
|
464
463
|
'assert/strict': '@gjsify/assert',
|
|
465
464
|
async_hooks: '@gjsify/async_hooks',
|
|
465
|
+
// Partial: Android binds androidx.sqlite via @gjsify/native-sqlite-bridge (ADR 0147); iOS throws on open.
|
|
466
|
+
sqlite: '@gjsify/sqlite',
|
|
466
467
|
buffer: '@gjsify/buffer',
|
|
467
468
|
// `@gjsify/module` (not `@gjsify/empty`): provides the named exports
|
|
468
469
|
// `createRequire` / `builtinModules` / `isBuiltin`, so `import { createRequire }
|
|
@@ -560,6 +561,10 @@ export const ALIASES_WEB_FOR_GJS = {
|
|
|
560
561
|
gamepad: '@gjsify/gamepad',
|
|
561
562
|
'gamepad/register': '@gjsify/gamepad/register',
|
|
562
563
|
|
|
564
|
+
// Web Serial API (BlueZ RFCOMM backend)
|
|
565
|
+
webserial: '@gjsify/webserial',
|
|
566
|
+
'webserial/register': '@gjsify/webserial/register',
|
|
567
|
+
|
|
563
568
|
// WebRTC API (GStreamer webrtcbin backend)
|
|
564
569
|
webrtc: '@gjsify/webrtc',
|
|
565
570
|
'webrtc/register': '@gjsify/webrtc/register',
|
|
@@ -744,6 +749,11 @@ export const ALIASES_WEB_FOR_NODE = {
|
|
|
744
749
|
'gamepad/register': '@gjsify/empty',
|
|
745
750
|
'@gjsify/gamepad/register': '@gjsify/empty',
|
|
746
751
|
|
|
752
|
+
// Web Serial API — no-op on Node
|
|
753
|
+
webserial: '@gjsify/empty',
|
|
754
|
+
'webserial/register': '@gjsify/empty',
|
|
755
|
+
'@gjsify/webserial/register': '@gjsify/empty',
|
|
756
|
+
|
|
747
757
|
// WebRTC API — no-op on Node (Phase 1 is GStreamer-only, no fallback)
|
|
748
758
|
webrtc: '@gjsify/empty',
|
|
749
759
|
'webrtc/register': '@gjsify/empty',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/resolve-npm",
|
|
3
|
-
"version": "0.64.
|
|
3
|
+
"version": "0.64.50",
|
|
4
4
|
"description": "Resolve NPM package aliases",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.mjs",
|
|
@@ -43,6 +43,5 @@
|
|
|
43
43
|
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/infra/resolve-npm#readme",
|
|
44
44
|
"gjsify": {
|
|
45
45
|
"tier": 1
|
|
46
|
-
}
|
|
47
|
-
"gitHead": "c61ed1ad2d0c4bacbd6a1652663d5bfbf2fca47b"
|
|
46
|
+
}
|
|
48
47
|
}
|