@basmilius/apple-encoding 0.7.1 → 0.8.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/chunk-0Lt9GpW0.mjs +1 -0
- package/dist/index.d.mts +231 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +9 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +10 -9
- package/dist/daap.d.ts +0 -95
- package/dist/index.d.ts +0 -6
- package/dist/index.js +0 -1687
- package/dist/ntp.d.ts +0 -17
- package/dist/opack.d.ts +0 -23
- package/dist/plist.d.ts +0 -2
- package/dist/rtsp.d.ts +0 -16
- package/dist/tlv8.d.ts +0 -49
package/dist/ntp.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export declare function now(): bigint;
|
|
2
|
-
export declare function ns(): bigint;
|
|
3
|
-
export declare function parts(ntp: bigint): [number, number];
|
|
4
|
-
export declare function decode(buffer: Buffer): PacketFields;
|
|
5
|
-
export declare function encode(fields: PacketFields): Buffer;
|
|
6
|
-
export type PacketFields = {
|
|
7
|
-
readonly proto: number;
|
|
8
|
-
readonly type: number;
|
|
9
|
-
readonly seqno: number;
|
|
10
|
-
readonly padding: number;
|
|
11
|
-
readonly reftime_sec: number;
|
|
12
|
-
readonly reftime_frac: number;
|
|
13
|
-
readonly recvtime_sec: number;
|
|
14
|
-
readonly recvtime_frac: number;
|
|
15
|
-
readonly sendtime_sec: number;
|
|
16
|
-
readonly sendtime_frac: number;
|
|
17
|
-
};
|
package/dist/opack.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
declare class Float {
|
|
2
|
-
#private;
|
|
3
|
-
get value(): number;
|
|
4
|
-
constructor(value: number);
|
|
5
|
-
}
|
|
6
|
-
declare class Integer {
|
|
7
|
-
#private;
|
|
8
|
-
get value(): number;
|
|
9
|
-
constructor(value: number);
|
|
10
|
-
}
|
|
11
|
-
declare class SizedInteger {
|
|
12
|
-
#private;
|
|
13
|
-
get size(): number;
|
|
14
|
-
get value(): number;
|
|
15
|
-
constructor(value: number, size: number);
|
|
16
|
-
valueOf(): number;
|
|
17
|
-
}
|
|
18
|
-
export declare function float(value: number): Float;
|
|
19
|
-
export declare function int(value: number): Integer;
|
|
20
|
-
export declare function sizedInteger(value: number, size: number): SizedInteger;
|
|
21
|
-
export declare function decode(data: Uint8Array): any;
|
|
22
|
-
export declare function encode(data: any): Uint8Array;
|
|
23
|
-
export {};
|
package/dist/plist.d.ts
DELETED
package/dist/rtsp.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export type Method = "GET" | "OPTIONS" | "POST" | "PUT" | "GET_PARAMETER" | "SET_PARAMETER" | "ANNOUNCE" | "FLUSH" | "RECORD" | "SETUP" | "TEARDOWN";
|
|
2
|
-
export declare function makeHeader(method: Method, path: string, headers: HeadersInit, cseq: number, activeRemote: string, dacpId: string, sessionId: string): string;
|
|
3
|
-
export declare function makeRequest(buffer: Buffer): HttpRequest | null;
|
|
4
|
-
export declare function makeResponse(buffer: Buffer): HttpResponse | null;
|
|
5
|
-
type HttpRequest = {
|
|
6
|
-
readonly headers: Record<string, string>;
|
|
7
|
-
readonly method: Method;
|
|
8
|
-
readonly path: string;
|
|
9
|
-
readonly body: Buffer;
|
|
10
|
-
readonly requestLength: number;
|
|
11
|
-
};
|
|
12
|
-
type HttpResponse = {
|
|
13
|
-
readonly response: Response;
|
|
14
|
-
readonly responseLength: number;
|
|
15
|
-
};
|
|
16
|
-
export {};
|
package/dist/tlv8.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export declare const Flags: {
|
|
2
|
-
readonly TransientPairing: 0x10;
|
|
3
|
-
};
|
|
4
|
-
export declare const ErrorCode: {
|
|
5
|
-
readonly Unknown: 0x01;
|
|
6
|
-
readonly Authentication: 0x02;
|
|
7
|
-
readonly BackOff: 0x03;
|
|
8
|
-
readonly MaxPeers: 0x04;
|
|
9
|
-
readonly MaxTries: 0x05;
|
|
10
|
-
readonly Unavailable: 0x06;
|
|
11
|
-
readonly Busy: 0x07;
|
|
12
|
-
};
|
|
13
|
-
export declare const Method: {
|
|
14
|
-
readonly PairSetup: 0x00;
|
|
15
|
-
readonly PairSetupWithAuth: 0x01;
|
|
16
|
-
readonly PairVerify: 0x02;
|
|
17
|
-
readonly AddPairing: 0x03;
|
|
18
|
-
readonly RemovePairing: 0x04;
|
|
19
|
-
readonly ListPairing: 0x05;
|
|
20
|
-
};
|
|
21
|
-
export declare const State: {
|
|
22
|
-
readonly M1: 0x01;
|
|
23
|
-
readonly M2: 0x02;
|
|
24
|
-
readonly M3: 0x03;
|
|
25
|
-
readonly M4: 0x04;
|
|
26
|
-
readonly M5: 0x05;
|
|
27
|
-
readonly M6: 0x06;
|
|
28
|
-
};
|
|
29
|
-
export declare const Value: {
|
|
30
|
-
readonly Method: 0x00;
|
|
31
|
-
readonly Identifier: 0x01;
|
|
32
|
-
readonly Salt: 0x02;
|
|
33
|
-
readonly PublicKey: 0x03;
|
|
34
|
-
readonly Proof: 0x04;
|
|
35
|
-
readonly EncryptedData: 0x05;
|
|
36
|
-
readonly State: 0x06;
|
|
37
|
-
readonly Error: 0x07;
|
|
38
|
-
readonly BackOff: 0x08;
|
|
39
|
-
readonly Certificate: 0x09;
|
|
40
|
-
readonly Signature: 0x0A;
|
|
41
|
-
readonly Permissions: 0x0B;
|
|
42
|
-
readonly FragmentData: 0x0C;
|
|
43
|
-
readonly FragmentLast: 0x0D;
|
|
44
|
-
readonly Name: 0x11;
|
|
45
|
-
readonly Flags: 0x13;
|
|
46
|
-
};
|
|
47
|
-
export declare function bail(data: Map<number, Buffer>): never;
|
|
48
|
-
export declare function encode(entries: [number, number | Buffer | Uint8Array][]): Buffer;
|
|
49
|
-
export declare function decode(buf: Buffer): Map<number, Buffer>;
|