@gjsify/webrtc 0.4.35 → 0.4.36
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/globals.mjs +24 -0
- package/package.json +32 -19
package/globals.mjs
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Re-exports native WebRTC globals for browser builds.
|
|
3
|
+
*
|
|
4
|
+
* `RTCPeerConnection` and the related RTP/media hierarchy are universal
|
|
5
|
+
* in modern browsers (Chrome 28+, Firefox 22+, Safari 11+).
|
|
6
|
+
*
|
|
7
|
+
* The dynamic resolver in `@gjsify/resolve-npm/runtime-aliases.mjs` routes
|
|
8
|
+
* `@gjsify/webrtc` here when `package.json#gjsify.runtimes.browser === "native"`.
|
|
9
|
+
*
|
|
10
|
+
* NOT used on Node — Node has no RTCPeerConnection global.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
export const RTCPeerConnection = globalThis.RTCPeerConnection;
|
|
14
|
+
export const RTCDataChannel = globalThis.RTCDataChannel;
|
|
15
|
+
export const RTCRtpSender = globalThis.RTCRtpSender;
|
|
16
|
+
export const RTCRtpReceiver = globalThis.RTCRtpReceiver;
|
|
17
|
+
export const RTCRtpTransceiver = globalThis.RTCRtpTransceiver;
|
|
18
|
+
export const RTCSessionDescription = globalThis.RTCSessionDescription;
|
|
19
|
+
export const RTCIceCandidate = globalThis.RTCIceCandidate;
|
|
20
|
+
export const RTCCertificate = globalThis.RTCCertificate;
|
|
21
|
+
export const RTCStatsReport = globalThis.RTCStatsReport;
|
|
22
|
+
export const RTCDTMFSender = globalThis.RTCDTMFSender;
|
|
23
|
+
export const MediaStream = globalThis.MediaStream;
|
|
24
|
+
export const MediaStreamTrack = globalThis.MediaStreamTrack;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/webrtc",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.36",
|
|
4
4
|
"description": "W3C WebRTC API for GJS using GStreamer webrtcbin as the peer-connection backend",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "lib/esm/index.js",
|
|
@@ -28,14 +28,17 @@
|
|
|
28
28
|
},
|
|
29
29
|
"./register/media-devices": {
|
|
30
30
|
"default": "./lib/esm/register/media-devices.js"
|
|
31
|
-
}
|
|
31
|
+
},
|
|
32
|
+
"./globals": "./globals.mjs"
|
|
32
33
|
},
|
|
33
34
|
"files": [
|
|
34
|
-
"lib"
|
|
35
|
+
"lib",
|
|
36
|
+
"globals.mjs"
|
|
35
37
|
],
|
|
36
38
|
"sideEffects": [
|
|
37
39
|
"./lib/esm/register.js",
|
|
38
|
-
"./lib/esm/register/*.js"
|
|
40
|
+
"./lib/esm/register/*.js",
|
|
41
|
+
"./globals.mjs"
|
|
39
42
|
],
|
|
40
43
|
"scripts": {
|
|
41
44
|
"clear": "rm -rf lib tsconfig.tsbuildinfo tsconfig.types.tsbuildinfo test.gjs.mjs || exit 0",
|
|
@@ -58,28 +61,38 @@
|
|
|
58
61
|
"peer-connection"
|
|
59
62
|
],
|
|
60
63
|
"dependencies": {
|
|
61
|
-
"@gjsify/buffer": "^0.4.
|
|
62
|
-
"@gjsify/dom-events": "^0.4.
|
|
63
|
-
"@gjsify/dom-exception": "^0.4.
|
|
64
|
-
"@gjsify/webrtc-native": "^0.4.
|
|
64
|
+
"@gjsify/buffer": "^0.4.36",
|
|
65
|
+
"@gjsify/dom-events": "^0.4.36",
|
|
66
|
+
"@gjsify/dom-exception": "^0.4.36",
|
|
67
|
+
"@gjsify/webrtc-native": "^0.4.36"
|
|
65
68
|
},
|
|
66
69
|
"devDependencies": {
|
|
67
|
-
"@girs/gjs": "4.0.
|
|
68
|
-
"@girs/glib-2.0": "2.88.0-4.0.
|
|
69
|
-
"@girs/gobject-2.0": "2.88.0-4.0.
|
|
70
|
-
"@girs/gst-1.0": "1.28.1-4.0.
|
|
71
|
-
"@girs/gstsdp-1.0": "1.0.0-4.0.
|
|
72
|
-
"@girs/gstwebrtc-1.0": "1.0.0-4.0.
|
|
73
|
-
"@gjsify/cli": "^0.4.
|
|
74
|
-
"@gjsify/unit": "^0.4.
|
|
70
|
+
"@girs/gjs": "4.0.4",
|
|
71
|
+
"@girs/glib-2.0": "2.88.0-4.0.4",
|
|
72
|
+
"@girs/gobject-2.0": "2.88.0-4.0.4",
|
|
73
|
+
"@girs/gst-1.0": "1.28.1-4.0.4",
|
|
74
|
+
"@girs/gstsdp-1.0": "1.0.0-4.0.4",
|
|
75
|
+
"@girs/gstwebrtc-1.0": "1.0.0-4.0.4",
|
|
76
|
+
"@gjsify/cli": "^0.4.36",
|
|
77
|
+
"@gjsify/unit": "^0.4.36",
|
|
75
78
|
"@types/node": "^25.9.1",
|
|
76
|
-
"typescript": "^
|
|
79
|
+
"typescript": "^5.9.3"
|
|
77
80
|
},
|
|
78
81
|
"gjsify": {
|
|
79
82
|
"runtimes": {
|
|
80
83
|
"gjs": "polyfill",
|
|
81
84
|
"node": "none",
|
|
82
|
-
"browser": "
|
|
85
|
+
"browser": "native"
|
|
83
86
|
}
|
|
84
|
-
}
|
|
87
|
+
},
|
|
88
|
+
"license": "MIT",
|
|
89
|
+
"repository": {
|
|
90
|
+
"type": "git",
|
|
91
|
+
"url": "git+https://github.com/gjsify/gjsify.git",
|
|
92
|
+
"directory": "packages/web/webrtc"
|
|
93
|
+
},
|
|
94
|
+
"bugs": {
|
|
95
|
+
"url": "https://github.com/gjsify/gjsify/issues"
|
|
96
|
+
},
|
|
97
|
+
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/web/webrtc#readme"
|
|
85
98
|
}
|