@basmilius/apple-raop 0.6.3 → 0.6.5
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.js +2 -2
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -46,7 +46,7 @@ class PacketFifo {
|
|
|
46
46
|
}
|
|
47
47
|
var AudioPacketHeader = {
|
|
48
48
|
encode(header, payloadType, seqno, timestamp, ssrc) {
|
|
49
|
-
const packet = Buffer.
|
|
49
|
+
const packet = Buffer.allocUnsafe(12);
|
|
50
50
|
packet.writeUInt8(header, 0);
|
|
51
51
|
packet.writeUInt8(payloadType, 1);
|
|
52
52
|
packet.writeUInt16BE(seqno, 2);
|
|
@@ -57,7 +57,7 @@ var AudioPacketHeader = {
|
|
|
57
57
|
};
|
|
58
58
|
var SyncPacket = {
|
|
59
59
|
encode(header, payloadType, seqno, rtpTimestamp, ntpSec, ntpFrac, rtpTimestampNow) {
|
|
60
|
-
const packet = Buffer.
|
|
60
|
+
const packet = Buffer.allocUnsafe(20);
|
|
61
61
|
packet.writeUInt8(header, 0);
|
|
62
62
|
packet.writeUInt8(payloadType, 1);
|
|
63
63
|
packet.writeUInt16BE(seqno, 2);
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basmilius/apple-raop",
|
|
3
3
|
"description": "Implementation of Apple's RAOP protocol in Node.js.",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"provenance": true
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
|
-
"build": "
|
|
29
|
+
"build": "tsgo && bun -b build.ts",
|
|
30
30
|
"watch:test": "bun --watch test.ts"
|
|
31
31
|
},
|
|
32
32
|
"main": "./dist/index.js",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@basmilius/apple-airplay": "0.6.
|
|
44
|
-
"@basmilius/apple-common": "0.6.
|
|
45
|
-
"@basmilius/apple-encoding": "0.6.
|
|
46
|
-
"@basmilius/apple-encryption": "0.6.
|
|
43
|
+
"@basmilius/apple-airplay": "0.6.5",
|
|
44
|
+
"@basmilius/apple-common": "0.6.5",
|
|
45
|
+
"@basmilius/apple-encoding": "0.6.5",
|
|
46
|
+
"@basmilius/apple-encryption": "0.6.5"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@basmilius/tools": "^2.
|
|
49
|
+
"@basmilius/tools": "^2.24.0",
|
|
50
50
|
"@types/bun": "^1.3.8"
|
|
51
51
|
}
|
|
52
52
|
}
|