@flow-player/test-streams 0.7.1 → 0.7.3
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/vite-plugin.js +4 -10
- package/package.json +1 -1
package/dist/vite-plugin.js
CHANGED
|
@@ -8,16 +8,10 @@ var DEFAULT_HEALTH_URL = "https://127.0.0.1:4177/streams/health";
|
|
|
8
8
|
var DEFAULT_LOG_PATH = "/tmp/test-streams.log";
|
|
9
9
|
function streamsHealthy(healthUrl) {
|
|
10
10
|
return new Promise((resolveHealthy) => {
|
|
11
|
-
const req = https.get(
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
res.resume();
|
|
16
|
-
resolveHealthy(
|
|
17
|
-
res.statusCode !== void 0 && res.statusCode >= 200 && res.statusCode < 300
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
);
|
|
11
|
+
const req = https.get(healthUrl, { rejectUnauthorized: false, timeout: 2e3 }, (res) => {
|
|
12
|
+
res.resume();
|
|
13
|
+
resolveHealthy(res.statusCode !== void 0 && res.statusCode >= 200 && res.statusCode < 300);
|
|
14
|
+
});
|
|
21
15
|
req.on("timeout", () => {
|
|
22
16
|
req.destroy();
|
|
23
17
|
resolveHealthy(false);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flow-player/test-streams",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.3",
|
|
4
4
|
"description": "ffmpeg-driven local test stream service for Flow Player integration testing: generates and serves H.264/HEVC × HTTP-FLV / HLS / fMP4 / MP4 / MPEG-TS fixtures on 127.0.0.1:4177 (live infinite-loop + 5s VOD fixtures).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"esm",
|