@gjsify/resolve-npm 0.64.49 → 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 +9 -0
- package/package.json +1 -1
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
|
@@ -561,6 +561,10 @@ export const ALIASES_WEB_FOR_GJS = {
|
|
|
561
561
|
gamepad: '@gjsify/gamepad',
|
|
562
562
|
'gamepad/register': '@gjsify/gamepad/register',
|
|
563
563
|
|
|
564
|
+
// Web Serial API (BlueZ RFCOMM backend)
|
|
565
|
+
webserial: '@gjsify/webserial',
|
|
566
|
+
'webserial/register': '@gjsify/webserial/register',
|
|
567
|
+
|
|
564
568
|
// WebRTC API (GStreamer webrtcbin backend)
|
|
565
569
|
webrtc: '@gjsify/webrtc',
|
|
566
570
|
'webrtc/register': '@gjsify/webrtc/register',
|
|
@@ -745,6 +749,11 @@ export const ALIASES_WEB_FOR_NODE = {
|
|
|
745
749
|
'gamepad/register': '@gjsify/empty',
|
|
746
750
|
'@gjsify/gamepad/register': '@gjsify/empty',
|
|
747
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
|
+
|
|
748
757
|
// WebRTC API — no-op on Node (Phase 1 is GStreamer-only, no fallback)
|
|
749
758
|
webrtc: '@gjsify/empty',
|
|
750
759
|
'webrtc/register': '@gjsify/empty',
|