@norskvideo/norsk-studio-alpha 1.27.0-2025-10-25-76263b2e → 1.27.0-2025-10-27-c407398f
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/client/info.js +16 -0
- package/package.json +4 -4
package/client/info.js
CHANGED
|
@@ -48,6 +48,7 @@ var require_util = __commonJS({
|
|
|
48
48
|
exports.displayNodeId = displayNodeId;
|
|
49
49
|
exports.assertUnreachable = assertUnreachable6;
|
|
50
50
|
exports.waitForCondition = waitForCondition;
|
|
51
|
+
exports.waitForEvent = waitForEvent;
|
|
51
52
|
exports.streamMatchesExpected = streamMatchesExpected;
|
|
52
53
|
exports.shortStreamNameFromDefinition = shortStreamNameFromDefinition;
|
|
53
54
|
exports.shortStreamNameFromFilter = shortStreamNameFromFilter;
|
|
@@ -139,6 +140,21 @@ var require_util = __commonJS({
|
|
|
139
140
|
}, timeout ?? 2e3);
|
|
140
141
|
});
|
|
141
142
|
}
|
|
143
|
+
async function waitForEvent(result, nodeId, eventType, timeout = 5e3) {
|
|
144
|
+
return new Promise((resolve2, reject) => {
|
|
145
|
+
const timer = setTimeout(() => {
|
|
146
|
+
reject(new Error(`Timeout waiting for event '${eventType}' from node '${nodeId}'`));
|
|
147
|
+
}, timeout);
|
|
148
|
+
const handler = (data) => {
|
|
149
|
+
if (data.id === nodeId && data.event.type === eventType) {
|
|
150
|
+
clearTimeout(timer);
|
|
151
|
+
result.runtimeState.events.off("event", handler);
|
|
152
|
+
resolve2(data.event);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
result.runtimeState.events.on("event", handler);
|
|
156
|
+
});
|
|
157
|
+
}
|
|
142
158
|
function streamMatchesExpected(s2, expectedStreams) {
|
|
143
159
|
const matchingStream = expectedStreams.find((expected) => {
|
|
144
160
|
if (expected.media !== s2.message.case)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@norskvideo/norsk-studio-alpha",
|
|
3
|
-
"version": "1.27.0-2025-10-
|
|
3
|
+
"version": "1.27.0-2025-10-27-c407398f",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"clean": "rm -rf lib client build && make clean",
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"@apidevtools/json-schema-ref-parser": "^12.0.1",
|
|
26
26
|
"@norskvideo/norsk-player": "1.0.4",
|
|
27
27
|
"@norskvideo/norsk-player-react": "*",
|
|
28
|
-
"@norskvideo/norsk-sdk": "^1.0.402-2025-10-
|
|
29
|
-
"@norskvideo/norsk-studio": "1.27.0-2025-10-
|
|
30
|
-
"@norskvideo/norsk-studio-built-ins": "1.27.0-2025-10-
|
|
28
|
+
"@norskvideo/norsk-sdk": "^1.0.402-2025-10-27-a1dab708",
|
|
29
|
+
"@norskvideo/norsk-studio": "1.27.0-2025-10-27-c407398f",
|
|
30
|
+
"@norskvideo/norsk-studio-built-ins": "1.27.0-2025-10-27-c407398f",
|
|
31
31
|
"@norskvideo/webrtc-client": "^0.1.2",
|
|
32
32
|
"@react-icons/all-files": "^4.1.0",
|
|
33
33
|
"chart.js": "^4.4.2",
|