@whereby.com/assistant-sdk 1.2.109 → 1.2.110
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/polyfills.cjs +4 -1
- package/package.json +2 -2
package/dist/polyfills.cjs
CHANGED
|
@@ -120,6 +120,9 @@ global.RTCRtpSender = wrtc.RTCRtpSender;
|
|
|
120
120
|
global.RTCRtpTransceiver = wrtc.RTCRtpTransceiver;
|
|
121
121
|
global.RTCSctpTransport = wrtc.RTCSctpTransport;
|
|
122
122
|
global.RTCSessionDescription = wrtc.RTCSessionDescription;
|
|
123
|
-
|
|
123
|
+
// Node's `global` is not an EventTarget, so the spread below copies no event methods. Back them
|
|
124
|
+
// with one so window listeners (e.g. "offline") attach instead of throwing; nothing fires in Node.
|
|
125
|
+
const windowEventTarget = new EventTarget();
|
|
126
|
+
global.window = Object.assign(Object.assign({}, global), { location: { pathname: "" }, screen: { width: 0 }, setInterval: global.setInterval, addEventListener: windowEventTarget.addEventListener.bind(windowEventTarget), removeEventListener: windowEventTarget.removeEventListener.bind(windowEventTarget), dispatchEvent: windowEventTarget.dispatchEvent.bind(windowEventTarget) }); // make sure all the classes / setInterval are available on window for rtcstats
|
|
124
127
|
|
|
125
128
|
exports.setWebsocketOrigin = setWebsocketOrigin;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@whereby.com/assistant-sdk",
|
|
3
3
|
"description": "Assistant SDK for whereby.com",
|
|
4
4
|
"author": "Whereby AS",
|
|
5
|
-
"version": "1.2.
|
|
5
|
+
"version": "1.2.110",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"eslint": "^9.29.0",
|
|
51
51
|
"prettier": "^3.5.3",
|
|
52
52
|
"typescript": "^5.8.3",
|
|
53
|
-
"@whereby.com/eslint-config": "0.1.0",
|
|
54
53
|
"@whereby.com/jest-config": "0.1.0",
|
|
55
54
|
"@whereby.com/prettier-config": "0.1.0",
|
|
56
55
|
"@whereby.com/rollup-config": "0.1.1",
|
|
56
|
+
"@whereby.com/eslint-config": "0.1.0",
|
|
57
57
|
"@whereby.com/tsconfig": "0.1.0"
|
|
58
58
|
},
|
|
59
59
|
"dependencies": {
|