@basmilius/apple-rtsp 0.10.1 → 0.11.0
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/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -4,7 +4,7 @@ import { Connection, Context } from "@basmilius/apple-common";
|
|
|
4
4
|
/**
|
|
5
5
|
* Supported RTSP/HTTP method verbs used in Apple protocol communication.
|
|
6
6
|
*/
|
|
7
|
-
type Method = "ANNOUNCE" | "FLUSH" | "GET" | "GET_PARAMETER" | "OPTIONS" | "POST" | "PUT" | "RECORD" | "SETUP" | "SET_PARAMETER" | "TEARDOWN";
|
|
7
|
+
type Method = "ANNOUNCE" | "FLUSH" | "FLUSHBUFFERED" | "GET" | "GET_PARAMETER" | "OPTIONS" | "POST" | "PUT" | "RECORD" | "SETUP" | "SET_PARAMETER" | "TEARDOWN";
|
|
8
8
|
/**
|
|
9
9
|
* Parsed RTSP request containing method, path, headers, body, and total byte length.
|
|
10
10
|
*/
|
package/dist/index.mjs
CHANGED
|
@@ -97,7 +97,7 @@ function parseHeaders(lines) {
|
|
|
97
97
|
for (let i = 0; i < lines.length; i++) {
|
|
98
98
|
const colon = lines[i].indexOf(":");
|
|
99
99
|
if (colon <= 0) continue;
|
|
100
|
-
const name = lines[i].substring(0, colon).trim().replace(/(^|-)(\w)/g, (_, prefix, char) => prefix + char.toUpperCase());
|
|
100
|
+
const name = lines[i].substring(0, colon).trim().toLowerCase().replace(/(^|-)(\w)/g, (_, prefix, char) => prefix + char.toUpperCase());
|
|
101
101
|
headers[name] = lines[i].substring(colon + 1).trim();
|
|
102
102
|
}
|
|
103
103
|
return headers;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basmilius/apple-rtsp",
|
|
3
3
|
"description": "RTSP protocol implementation for Apple Protocols.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.11.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -42,8 +42,8 @@
|
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@basmilius/apple-common": "0.
|
|
46
|
-
"@basmilius/apple-encoding": "0.
|
|
45
|
+
"@basmilius/apple-common": "0.11.0",
|
|
46
|
+
"@basmilius/apple-encoding": "0.11.0"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@types/bun": "^1.3.11",
|