@moqtap/codec 0.8.1 → 0.9.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/CHANGELOG.md +49 -0
- package/README.md +16 -4
- package/dist/chunk-BMJMY6FX.cjs +868 -0
- package/dist/chunk-MAXEHYVB.cjs +2362 -0
- package/dist/{chunk-3YAR3I3S.js → chunk-Q7NSUXXB.js} +3 -1
- package/dist/{chunk-VWXUT5R2.cjs → chunk-TVSFDQYE.cjs} +3 -1
- package/dist/chunk-WX5PU7HF.js +868 -0
- package/dist/chunk-YJGOD3Y4.js +2362 -0
- package/dist/{codec-BLYAy2OP.d.ts → codec--CVeqGQv.d.ts} +1 -1
- package/dist/{codec-DujHf55Z.d.ts → codec-BJ7BHuiZ.d.ts} +1 -1
- package/dist/{codec-D47r_-Rl.d.ts → codec-BKsVu3Fr.d.ts} +1 -1
- package/dist/{codec-BNS3gS77.d.ts → codec-BMwgZIgG.d.ts} +1 -1
- package/dist/{codec-CI0BjmHc.d.ts → codec-BNy5syCU.d.ts} +1 -1
- package/dist/{codec-v6Vloc7H.d.ts → codec-BQa6Qsav.d.ts} +1 -1
- package/dist/codec-Bym-K2q2.d.cts +49 -0
- package/dist/{codec-D2JbI2tp.d.ts → codec-C006F75E.d.ts} +1 -1
- package/dist/codec-C5evFHL-.d.ts +49 -0
- package/dist/{codec-DQWQSam3.d.cts → codec-C6Mx4bwz.d.cts} +1 -1
- package/dist/{codec-DL0njGkL.d.ts → codec-CA6nbbEk.d.ts} +1 -1
- package/dist/{codec-D89DWXbv.d.cts → codec-CSBFdPgP.d.cts} +1 -1
- package/dist/{codec-DvcJgYKq.d.cts → codec-CXCjya_G.d.cts} +1 -1
- package/dist/{codec-hvkJfCF5.d.cts → codec-C_xxsbKy.d.cts} +1 -1
- package/dist/{codec-BOyrk_C9.d.cts → codec-Cfo_z5ET.d.cts} +1 -1
- package/dist/{codec-xeuGZY77.d.cts → codec-CgZdadPt.d.cts} +2 -2
- package/dist/{codec-WwwUipaU.d.ts → codec-Cl73EfRW.d.ts} +1 -1
- package/dist/{codec-BOtv3R5j.d.cts → codec-CtvFK4aV.d.cts} +1 -1
- package/dist/{codec-DAePx2NL.d.ts → codec-CviAa4lp.d.ts} +2 -2
- package/dist/{codec-DJmV04i0.d.ts → codec-D4RvFQmu.d.ts} +1 -1
- package/dist/{codec-cou9XBMF.d.cts → codec-DAyiF5sq.d.cts} +1 -1
- package/dist/{codec-CyApDKwf.d.cts → codec-DJmqoIsp.d.cts} +1 -1
- package/dist/{codec-NMsTK0GX.d.cts → codec-DchsPfr3.d.cts} +1 -1
- package/dist/{codec-DplRgIKq.d.ts → codec-Dl_QIXMz.d.ts} +1 -1
- package/dist/{codec-N3g1lxQQ.d.cts → codec-DzLvG8Wb.d.cts} +1 -1
- package/dist/{codec-D95gT98n.d.cts → codec-DzkdW4kO.d.cts} +1 -1
- package/dist/{codec-CWj5iTxA.d.ts → codec-O-1Js7h4.d.ts} +1 -1
- package/dist/{codec-BqqoYdh_.d.cts → codec-vddqy0KY.d.cts} +1 -1
- package/dist/draft07-session.d.cts +3 -3
- package/dist/draft07-session.d.ts +3 -3
- package/dist/draft07.d.cts +3 -3
- package/dist/draft07.d.ts +3 -3
- package/dist/draft08-session.d.cts +3 -3
- package/dist/draft08-session.d.ts +3 -3
- package/dist/draft08.d.cts +4 -4
- package/dist/draft08.d.ts +4 -4
- package/dist/draft09-session.d.cts +3 -3
- package/dist/draft09-session.d.ts +3 -3
- package/dist/draft09.d.cts +4 -4
- package/dist/draft09.d.ts +4 -4
- package/dist/draft10-session.d.cts +3 -3
- package/dist/draft10-session.d.ts +3 -3
- package/dist/draft10.d.cts +4 -4
- package/dist/draft10.d.ts +4 -4
- package/dist/draft11-session.d.cts +3 -3
- package/dist/draft11-session.d.ts +3 -3
- package/dist/draft11.d.cts +4 -4
- package/dist/draft11.d.ts +4 -4
- package/dist/draft12-session.d.cts +3 -3
- package/dist/draft12-session.d.ts +3 -3
- package/dist/draft12.d.cts +4 -4
- package/dist/draft12.d.ts +4 -4
- package/dist/draft13-session.d.cts +3 -3
- package/dist/draft13-session.d.ts +3 -3
- package/dist/draft13.d.cts +4 -4
- package/dist/draft13.d.ts +4 -4
- package/dist/draft14-session.d.cts +3 -3
- package/dist/draft14-session.d.ts +3 -3
- package/dist/draft14.d.cts +4 -4
- package/dist/draft14.d.ts +4 -4
- package/dist/draft15-session.d.cts +3 -3
- package/dist/draft15-session.d.ts +3 -3
- package/dist/draft15.d.cts +4 -4
- package/dist/draft15.d.ts +4 -4
- package/dist/draft16-session.d.cts +3 -3
- package/dist/draft16-session.d.ts +3 -3
- package/dist/draft16.d.cts +4 -4
- package/dist/draft16.d.ts +4 -4
- package/dist/draft17-session.d.cts +3 -3
- package/dist/draft17-session.d.ts +3 -3
- package/dist/draft17.d.cts +3 -3
- package/dist/draft17.d.ts +3 -3
- package/dist/draft18-session.d.cts +3 -3
- package/dist/draft18-session.d.ts +3 -3
- package/dist/draft18.d.cts +3 -3
- package/dist/draft18.d.ts +3 -3
- package/dist/draft19-session.d.cts +3 -3
- package/dist/draft19-session.d.ts +3 -3
- package/dist/draft19.cjs +2 -2
- package/dist/draft19.d.cts +3 -3
- package/dist/draft19.d.ts +3 -3
- package/dist/draft19.js +1 -1
- package/dist/draft20-session.cjs +8 -0
- package/dist/draft20-session.d.cts +195 -0
- package/dist/draft20-session.d.ts +195 -0
- package/dist/draft20-session.js +8 -0
- package/dist/draft20.cjs +217 -0
- package/dist/draft20.d.cts +175 -0
- package/dist/draft20.d.ts +175 -0
- package/dist/draft20.js +217 -0
- package/dist/index.cjs +9 -3
- package/dist/index.d.cts +32 -17
- package/dist/index.d.ts +32 -17
- package/dist/index.js +8 -2
- package/dist/{session-types-KsqyVp6y.d.cts → session-types-B9idsih-.d.cts} +13 -1
- package/dist/{session-types-C0l_-Ups.d.ts → session-types-Dn7b3RZM.d.ts} +13 -1
- package/dist/session.cjs +5 -1
- package/dist/session.d.cts +5 -3
- package/dist/session.d.ts +5 -3
- package/dist/session.js +5 -1
- package/dist/types-CWCQwuvy.d.cts +359 -0
- package/dist/types-CWCQwuvy.d.ts +359 -0
- package/dist/{types-CdCSIfvI.d.cts → types-DG5_iKuv.d.cts} +1 -1
- package/dist/{types-CdCSIfvI.d.ts → types-DG5_iKuv.d.ts} +1 -1
- package/package.json +16 -3
- package/src/core/session-types.ts +7 -0
- package/src/core/types.ts +1 -0
- package/src/drafts/draft19/codec.ts +4 -2
- package/src/drafts/draft20/codec.ts +1737 -0
- package/src/drafts/draft20/data-streams.ts +1291 -0
- package/src/drafts/draft20/error-codes.ts +135 -0
- package/src/drafts/draft20/index.ts +165 -0
- package/src/drafts/draft20/messages.ts +68 -0
- package/src/drafts/draft20/rules.ts +107 -0
- package/src/drafts/draft20/session-fsm.ts +1063 -0
- package/src/drafts/draft20/session.ts +21 -0
- package/src/drafts/draft20/types.ts +455 -0
- package/src/index.ts +20 -2
- package/src/session.ts +4 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft10Message, S as SubgroupStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, b as Draft10DataStream } from './types-0IWbU9Z_.js';
|
|
3
3
|
|
|
4
4
|
declare function encodeMessage(message: Draft10Message): Uint8Array;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft07Message, S as SubgroupStream, b as DatagramObject, F as FetchStream } from './types-Dl4IaAHR.js';
|
|
3
3
|
|
|
4
4
|
interface Draft07Codec extends BaseCodec<Draft07Message> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft12Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft12DataStream } from './types-Bio-91Rt.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft15Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft15DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-CPaYBsMG.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft09Message, S as SubgroupStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, b as Draft09DataStream } from './types-B3g5G9KP.js';
|
|
3
3
|
|
|
4
4
|
declare function encodeMessage(message: Draft09Message): Uint8Array;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft14Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft14DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-HI_bbXka.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
import { D as Draft20Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft20DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-CWCQwuvy.cjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `PUBLISH_DONE.Stream Count` "unknown" sentinel — draft-20 Section 10.12.
|
|
6
|
+
*
|
|
7
|
+
* draft-19 used `2^62 - 1`; draft-20 raised it to `2^64 - 1`. Both are
|
|
8
|
+
* encodable because MOQT's vi64 (Section 1.4.1) is a leading-ones-length
|
|
9
|
+
* prefix reaching a full 64 bits in nine bytes — it is NOT the QUIC varint and
|
|
10
|
+
* has no `2^62 - 1` ceiling. On the wire this is `ff` followed by eight `ff`
|
|
11
|
+
* bytes.
|
|
12
|
+
*
|
|
13
|
+
* JS `bigint` is required: `2^64 - 1` does not fit a `number`, and comparing a
|
|
14
|
+
* `Number(stream_count)` against this sentinel would be wrong for every value
|
|
15
|
+
* above `2^53`.
|
|
16
|
+
*
|
|
17
|
+
* Note (SPEC-DELTA Section 11 Q14): unlike the old `2^62 - 1` marker, this
|
|
18
|
+
* value is also a well-formed exact count. There is no longer any headroom
|
|
19
|
+
* that separates "unknown" from "absurdly many streams"; the draft does not
|
|
20
|
+
* acknowledge the collision.
|
|
21
|
+
*/
|
|
22
|
+
declare const UNKNOWN_STREAM_COUNT = 18446744073709551615n;
|
|
23
|
+
/**
|
|
24
|
+
* Encode a draft-20 control message: type (vi64) + length (uint16 BE) + payload.
|
|
25
|
+
*/
|
|
26
|
+
declare function encodeMessage(message: Draft20Message): Uint8Array;
|
|
27
|
+
/**
|
|
28
|
+
* Decode a draft-20 control message from bytes (type + uint16 length + payload).
|
|
29
|
+
*/
|
|
30
|
+
declare function decodeMessage(bytes: Uint8Array): DecodeResult<Draft20Message>;
|
|
31
|
+
|
|
32
|
+
declare function createStreamDecoder(): TransformStream<Uint8Array, Draft20Message>;
|
|
33
|
+
interface Draft20Codec extends BaseCodec<Draft20Message> {
|
|
34
|
+
readonly draft: '20';
|
|
35
|
+
encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
36
|
+
encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
37
|
+
encodeFetchStream(stream: FetchStream): Uint8Array;
|
|
38
|
+
decodeSubgroupStream(bytes: Uint8Array): DecodeResult<SubgroupStream>;
|
|
39
|
+
decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>;
|
|
40
|
+
decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
|
|
41
|
+
decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft20DataStream>;
|
|
42
|
+
createStreamDecoder(): TransformStream<Uint8Array, Draft20Message>;
|
|
43
|
+
createSubgroupStreamDecoder(): TransformStream<Uint8Array, SubgroupStreamHeader | ObjectPayload>;
|
|
44
|
+
createFetchStreamDecoder(): TransformStream<Uint8Array, FetchStreamHeader | ObjectPayload>;
|
|
45
|
+
createDataStreamDecoder(): TransformStream<Uint8Array, DataStreamEvent>;
|
|
46
|
+
}
|
|
47
|
+
declare function createDraft20Codec(): Draft20Codec;
|
|
48
|
+
|
|
49
|
+
export { type Draft20Codec as D, UNKNOWN_STREAM_COUNT as U, createStreamDecoder as a, createDraft20Codec as c, decodeMessage as d, encodeMessage as e };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft16Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft16DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-Cm9fjeYC.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
import { D as Draft20Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft20DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-CWCQwuvy.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* `PUBLISH_DONE.Stream Count` "unknown" sentinel — draft-20 Section 10.12.
|
|
6
|
+
*
|
|
7
|
+
* draft-19 used `2^62 - 1`; draft-20 raised it to `2^64 - 1`. Both are
|
|
8
|
+
* encodable because MOQT's vi64 (Section 1.4.1) is a leading-ones-length
|
|
9
|
+
* prefix reaching a full 64 bits in nine bytes — it is NOT the QUIC varint and
|
|
10
|
+
* has no `2^62 - 1` ceiling. On the wire this is `ff` followed by eight `ff`
|
|
11
|
+
* bytes.
|
|
12
|
+
*
|
|
13
|
+
* JS `bigint` is required: `2^64 - 1` does not fit a `number`, and comparing a
|
|
14
|
+
* `Number(stream_count)` against this sentinel would be wrong for every value
|
|
15
|
+
* above `2^53`.
|
|
16
|
+
*
|
|
17
|
+
* Note (SPEC-DELTA Section 11 Q14): unlike the old `2^62 - 1` marker, this
|
|
18
|
+
* value is also a well-formed exact count. There is no longer any headroom
|
|
19
|
+
* that separates "unknown" from "absurdly many streams"; the draft does not
|
|
20
|
+
* acknowledge the collision.
|
|
21
|
+
*/
|
|
22
|
+
declare const UNKNOWN_STREAM_COUNT = 18446744073709551615n;
|
|
23
|
+
/**
|
|
24
|
+
* Encode a draft-20 control message: type (vi64) + length (uint16 BE) + payload.
|
|
25
|
+
*/
|
|
26
|
+
declare function encodeMessage(message: Draft20Message): Uint8Array;
|
|
27
|
+
/**
|
|
28
|
+
* Decode a draft-20 control message from bytes (type + uint16 length + payload).
|
|
29
|
+
*/
|
|
30
|
+
declare function decodeMessage(bytes: Uint8Array): DecodeResult<Draft20Message>;
|
|
31
|
+
|
|
32
|
+
declare function createStreamDecoder(): TransformStream<Uint8Array, Draft20Message>;
|
|
33
|
+
interface Draft20Codec extends BaseCodec<Draft20Message> {
|
|
34
|
+
readonly draft: '20';
|
|
35
|
+
encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
36
|
+
encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
37
|
+
encodeFetchStream(stream: FetchStream): Uint8Array;
|
|
38
|
+
decodeSubgroupStream(bytes: Uint8Array): DecodeResult<SubgroupStream>;
|
|
39
|
+
decodeDatagram(bytes: Uint8Array): DecodeResult<DatagramObject>;
|
|
40
|
+
decodeFetchStream(bytes: Uint8Array): DecodeResult<FetchStream>;
|
|
41
|
+
decodeDataStream(streamType: 'subgroup' | 'datagram' | 'fetch', bytes: Uint8Array): DecodeResult<Draft20DataStream>;
|
|
42
|
+
createStreamDecoder(): TransformStream<Uint8Array, Draft20Message>;
|
|
43
|
+
createSubgroupStreamDecoder(): TransformStream<Uint8Array, SubgroupStreamHeader | ObjectPayload>;
|
|
44
|
+
createFetchStreamDecoder(): TransformStream<Uint8Array, FetchStreamHeader | ObjectPayload>;
|
|
45
|
+
createDataStreamDecoder(): TransformStream<Uint8Array, DataStreamEvent>;
|
|
46
|
+
}
|
|
47
|
+
declare function createDraft20Codec(): Draft20Codec;
|
|
48
|
+
|
|
49
|
+
export { type Draft20Codec as D, UNKNOWN_STREAM_COUNT as U, createStreamDecoder as a, createDraft20Codec as c, decodeMessage as d, encodeMessage as e };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft07Message, S as SubgroupStream, b as DatagramObject, F as FetchStream } from './types-Dl4IaAHR.cjs';
|
|
3
3
|
|
|
4
4
|
interface Draft07Codec extends BaseCodec<Draft07Message> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft11Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft11DataStream } from './types-Ck45Ex5S.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft18Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft18DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-Cqp10JtB.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft09Message, S as SubgroupStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, b as Draft09DataStream } from './types-B3g5G9KP.cjs';
|
|
3
3
|
|
|
4
4
|
declare function encodeMessage(message: Draft09Message): Uint8Array;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft13Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft13DataStream } from './types-CXlSn0I9.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft10Message, S as SubgroupStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, b as Draft10DataStream } from './types-0IWbU9Z_.cjs';
|
|
3
3
|
|
|
4
4
|
declare function encodeMessage(message: Draft10Message): Uint8Array;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft19Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft19DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-zHgCS6o5.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -12,7 +12,7 @@ declare function decodeMessage(bytes: Uint8Array): DecodeResult<Draft19Message>;
|
|
|
12
12
|
|
|
13
13
|
declare function createStreamDecoder(): TransformStream<Uint8Array, Draft19Message>;
|
|
14
14
|
interface Draft19Codec extends BaseCodec<Draft19Message> {
|
|
15
|
-
readonly draft: '
|
|
15
|
+
readonly draft: '19';
|
|
16
16
|
encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
17
17
|
encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
18
18
|
encodeFetchStream(stream: FetchStream): Uint8Array;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft18Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft18DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-Cqp10JtB.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft12Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft12DataStream } from './types-Bio-91Rt.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft19Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft19DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-zHgCS6o5.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -12,7 +12,7 @@ declare function decodeMessage(bytes: Uint8Array): DecodeResult<Draft19Message>;
|
|
|
12
12
|
|
|
13
13
|
declare function createStreamDecoder(): TransformStream<Uint8Array, Draft19Message>;
|
|
14
14
|
interface Draft19Codec extends BaseCodec<Draft19Message> {
|
|
15
|
-
readonly draft: '
|
|
15
|
+
readonly draft: '19';
|
|
16
16
|
encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
17
17
|
encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
18
18
|
encodeFetchStream(stream: FetchStream): Uint8Array;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft17Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft17DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-D9eiB_9A.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft11Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft11DataStream } from './types-Ck45Ex5S.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft16Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft16DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-Cm9fjeYC.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft17Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft17DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-D9eiB_9A.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft08Message, S as SubgroupStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, b as Draft08DataStream } from './types-jV1yDDBA.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft14Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft14DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-HI_bbXka.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft08Message, S as SubgroupStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, b as Draft08DataStream } from './types-jV1yDDBA.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
2
|
import { D as Draft13Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft13DataStream } from './types-CXlSn0I9.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { B as BaseCodec, b as DecodeResult } from './types-
|
|
1
|
+
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
2
|
import { D as Draft15Message, f as SubgroupStream, d as DatagramObject, e as FetchStream, c as Draft15DataStream, S as SubgroupStreamHeader, O as ObjectPayload, F as FetchStreamHeader, b as DataStreamEvent } from './types-CPaYBsMG.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
3
3
|
import { D as Draft07Message, a as Draft07MessageType } from './types-Dl4IaAHR.cjs';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft07SessionState(role: SessionStateOptionsRole): SessionState<Draft07Message, Draft07MessageType>;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
3
3
|
import { D as Draft07Message, a as Draft07MessageType } from './types-Dl4IaAHR.js';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft07SessionState(role: SessionStateOptionsRole): SessionState<Draft07Message, Draft07MessageType>;
|
|
7
7
|
|
package/dist/draft07.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as DecodeResult } from './types-
|
|
2
|
-
export { D as DecodeError, a as DecodeErrorCode } from './types-
|
|
3
|
-
export { D as Draft07Codec, c as createDraft07Codec } from './codec-
|
|
1
|
+
import { b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
+
export { D as DecodeError, a as DecodeErrorCode } from './types-DG5_iKuv.cjs';
|
|
3
|
+
export { D as Draft07Codec, c as createDraft07Codec } from './codec-C6Mx4bwz.cjs';
|
|
4
4
|
import { b as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft07MessageType, D as Draft07Message } from './types-Dl4IaAHR.cjs';
|
|
5
5
|
export { A as Announce, c as AnnounceCancel, d as AnnounceError, e as AnnounceOk, C as ClientSetup, f as DataStreamEvent, g as DataStreamHeader, h as Draft07DataStream, i as Draft07Params, j as Draft07SetupParams, k as Fetch, l as FetchCancel, m as FetchError, n as FetchObjectPayload, o as FetchOk, p as FetchStreamHeader, G as GoAway, M as MaxSubscribeId, O as ObjectDatagram, q as ObjectPayload, r as ServerSetup, s as StreamHeaderSubgroup, t as SubgroupStreamHeader, u as Subscribe, v as SubscribeAnnounces, w as SubscribeAnnouncesError, x as SubscribeAnnouncesOk, y as SubscribeDone, z as SubscribeError, B as SubscribeOk, E as SubscribeUpdate, T as TrackStatus, H as TrackStatusRequest, U as Unannounce, I as UnknownParam, J as Unsubscribe, K as UnsubscribeAnnounces } from './types-Dl4IaAHR.cjs';
|
|
6
6
|
|
package/dist/draft07.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { b as DecodeResult } from './types-
|
|
2
|
-
export { D as DecodeError, a as DecodeErrorCode } from './types-
|
|
3
|
-
export { D as Draft07Codec, c as createDraft07Codec } from './codec-
|
|
1
|
+
import { b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
+
export { D as DecodeError, a as DecodeErrorCode } from './types-DG5_iKuv.js';
|
|
3
|
+
export { D as Draft07Codec, c as createDraft07Codec } from './codec-BJ7BHuiZ.js';
|
|
4
4
|
import { b as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft07MessageType, D as Draft07Message } from './types-Dl4IaAHR.js';
|
|
5
5
|
export { A as Announce, c as AnnounceCancel, d as AnnounceError, e as AnnounceOk, C as ClientSetup, f as DataStreamEvent, g as DataStreamHeader, h as Draft07DataStream, i as Draft07Params, j as Draft07SetupParams, k as Fetch, l as FetchCancel, m as FetchError, n as FetchObjectPayload, o as FetchOk, p as FetchStreamHeader, G as GoAway, M as MaxSubscribeId, O as ObjectDatagram, q as ObjectPayload, r as ServerSetup, s as StreamHeaderSubgroup, t as SubgroupStreamHeader, u as Subscribe, v as SubscribeAnnounces, w as SubscribeAnnouncesError, x as SubscribeAnnouncesOk, y as SubscribeDone, z as SubscribeError, B as SubscribeOk, E as SubscribeUpdate, T as TrackStatus, H as TrackStatusRequest, U as Unannounce, I as UnknownParam, J as Unsubscribe, K as UnsubscribeAnnounces } from './types-Dl4IaAHR.js';
|
|
6
6
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
3
3
|
import { D as Draft08Message, a as Draft08MessageType } from './types-jV1yDDBA.cjs';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft08SessionState(role: SessionStateOptionsRole): SessionState<Draft08Message, Draft08MessageType>;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
3
3
|
import { D as Draft08Message, a as Draft08MessageType } from './types-jV1yDDBA.js';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft08SessionState(role: SessionStateOptionsRole): SessionState<Draft08Message, Draft08MessageType>;
|
|
7
7
|
|
package/dist/draft08.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { D as Draft08Codec, c as createDraft08Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
1
|
+
export { D as Draft08Codec, c as createDraft08Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-DzkdW4kO.cjs';
|
|
2
2
|
import { b as Draft08DataStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, S as SubgroupStream, a as Draft08MessageType, D as Draft08Message } from './types-jV1yDDBA.cjs';
|
|
3
3
|
export { e as DataStreamEvent, f as DataStreamHeader, g as Draft08Announce, h as Draft08AnnounceCancel, i as Draft08AnnounceError, j as Draft08AnnounceOk, k as Draft08BaseMessage, l as Draft08ClientSetup, m as Draft08Fetch, n as Draft08FetchCancel, o as Draft08FetchError, p as Draft08FetchOk, q as Draft08GoAway, r as Draft08MaxSubscribeId, s as Draft08Params, t as Draft08ServerSetup, u as Draft08SetupParams, v as Draft08Subscribe, w as Draft08SubscribeAnnounces, x as Draft08SubscribeAnnouncesError, y as Draft08SubscribeAnnouncesOk, z as Draft08SubscribeDone, A as Draft08SubscribeError, B as Draft08SubscribeOk, C as Draft08SubscribeUpdate, E as Draft08SubscribesBlocked, G as Draft08TrackStatus, H as Draft08TrackStatusRequest, I as Draft08Unannounce, J as Draft08Unsubscribe, K as Draft08UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as ObjectPayload, P as StandaloneFetch, Q as SubgroupStreamHeader, U as UnknownParam } from './types-jV1yDDBA.cjs';
|
|
4
4
|
export { createDraft08SessionState } from './draft08-session.cjs';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
5
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-B9idsih-.cjs';
|
|
6
|
+
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-B9idsih-.cjs';
|
|
7
|
+
import { b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
8
8
|
|
|
9
9
|
declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
10
10
|
declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
package/dist/draft08.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { D as Draft08Codec, c as createDraft08Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
1
|
+
export { D as Draft08Codec, c as createDraft08Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-Dl_QIXMz.js';
|
|
2
2
|
import { b as Draft08DataStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, S as SubgroupStream, a as Draft08MessageType, D as Draft08Message } from './types-jV1yDDBA.js';
|
|
3
3
|
export { e as DataStreamEvent, f as DataStreamHeader, g as Draft08Announce, h as Draft08AnnounceCancel, i as Draft08AnnounceError, j as Draft08AnnounceOk, k as Draft08BaseMessage, l as Draft08ClientSetup, m as Draft08Fetch, n as Draft08FetchCancel, o as Draft08FetchError, p as Draft08FetchOk, q as Draft08GoAway, r as Draft08MaxSubscribeId, s as Draft08Params, t as Draft08ServerSetup, u as Draft08SetupParams, v as Draft08Subscribe, w as Draft08SubscribeAnnounces, x as Draft08SubscribeAnnouncesError, y as Draft08SubscribeAnnouncesOk, z as Draft08SubscribeDone, A as Draft08SubscribeError, B as Draft08SubscribeOk, C as Draft08SubscribeUpdate, E as Draft08SubscribesBlocked, G as Draft08TrackStatus, H as Draft08TrackStatusRequest, I as Draft08Unannounce, J as Draft08Unsubscribe, K as Draft08UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as ObjectPayload, P as StandaloneFetch, Q as SubgroupStreamHeader, U as UnknownParam } from './types-jV1yDDBA.js';
|
|
4
4
|
export { createDraft08SessionState } from './draft08-session.js';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
5
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-Dn7b3RZM.js';
|
|
6
|
+
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-Dn7b3RZM.js';
|
|
7
|
+
import { b as DecodeResult } from './types-DG5_iKuv.js';
|
|
8
8
|
|
|
9
9
|
declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
10
10
|
declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
3
3
|
import { D as Draft09Message, a as Draft09MessageType } from './types-B3g5G9KP.cjs';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft09SessionState(role: SessionStateOptionsRole): SessionState<Draft09Message, Draft09MessageType>;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
3
3
|
import { D as Draft09Message, a as Draft09MessageType } from './types-B3g5G9KP.js';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft09SessionState(role: SessionStateOptionsRole): SessionState<Draft09Message, Draft09MessageType>;
|
|
7
7
|
|
package/dist/draft09.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { D as Draft09Codec, c as createDraft09Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
1
|
+
export { D as Draft09Codec, c as createDraft09Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-CXCjya_G.cjs';
|
|
2
2
|
import { b as Draft09DataStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, S as SubgroupStream, a as Draft09MessageType, D as Draft09Message } from './types-B3g5G9KP.cjs';
|
|
3
3
|
export { e as DataStreamEvent, f as DataStreamHeader, g as Draft09Announce, h as Draft09AnnounceCancel, i as Draft09AnnounceError, j as Draft09AnnounceOk, k as Draft09BaseMessage, l as Draft09ClientSetup, m as Draft09Fetch, n as Draft09FetchCancel, o as Draft09FetchError, p as Draft09FetchOk, q as Draft09GoAway, r as Draft09MaxSubscribeId, s as Draft09Params, t as Draft09ServerSetup, u as Draft09SetupParams, v as Draft09Subscribe, w as Draft09SubscribeAnnounces, x as Draft09SubscribeAnnouncesError, y as Draft09SubscribeAnnouncesOk, z as Draft09SubscribeDone, A as Draft09SubscribeError, B as Draft09SubscribeOk, C as Draft09SubscribeUpdate, E as Draft09SubscribesBlocked, G as Draft09TrackStatus, H as Draft09TrackStatusRequest, I as Draft09Unannounce, J as Draft09Unsubscribe, K as Draft09UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as ObjectPayload, P as StandaloneFetch, Q as SubgroupStreamHeader, U as UnknownParam } from './types-B3g5G9KP.cjs';
|
|
4
4
|
export { createDraft09SessionState } from './draft09-session.cjs';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
5
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-B9idsih-.cjs';
|
|
6
|
+
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-B9idsih-.cjs';
|
|
7
|
+
import { b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
8
8
|
|
|
9
9
|
declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
10
10
|
declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
package/dist/draft09.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { D as Draft09Codec, c as createDraft09Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
1
|
+
export { D as Draft09Codec, c as createDraft09Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-BNy5syCU.js';
|
|
2
2
|
import { b as Draft09DataStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, S as SubgroupStream, a as Draft09MessageType, D as Draft09Message } from './types-B3g5G9KP.js';
|
|
3
3
|
export { e as DataStreamEvent, f as DataStreamHeader, g as Draft09Announce, h as Draft09AnnounceCancel, i as Draft09AnnounceError, j as Draft09AnnounceOk, k as Draft09BaseMessage, l as Draft09ClientSetup, m as Draft09Fetch, n as Draft09FetchCancel, o as Draft09FetchError, p as Draft09FetchOk, q as Draft09GoAway, r as Draft09MaxSubscribeId, s as Draft09Params, t as Draft09ServerSetup, u as Draft09SetupParams, v as Draft09Subscribe, w as Draft09SubscribeAnnounces, x as Draft09SubscribeAnnouncesError, y as Draft09SubscribeAnnouncesOk, z as Draft09SubscribeDone, A as Draft09SubscribeError, B as Draft09SubscribeOk, C as Draft09SubscribeUpdate, E as Draft09SubscribesBlocked, G as Draft09TrackStatus, H as Draft09TrackStatusRequest, I as Draft09Unannounce, J as Draft09Unsubscribe, K as Draft09UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as ObjectPayload, P as StandaloneFetch, Q as SubgroupStreamHeader, U as UnknownParam } from './types-B3g5G9KP.js';
|
|
4
4
|
export { createDraft09SessionState } from './draft09-session.js';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
5
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-Dn7b3RZM.js';
|
|
6
|
+
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-Dn7b3RZM.js';
|
|
7
|
+
import { b as DecodeResult } from './types-DG5_iKuv.js';
|
|
8
8
|
|
|
9
9
|
declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
10
10
|
declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
3
3
|
import { D as Draft10Message, a as Draft10MessageType } from './types-0IWbU9Z_.cjs';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft10SessionState(role: SessionStateOptionsRole): SessionState<Draft10Message, Draft10MessageType>;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
3
3
|
import { D as Draft10Message, a as Draft10MessageType } from './types-0IWbU9Z_.js';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft10SessionState(role: SessionStateOptionsRole): SessionState<Draft10Message, Draft10MessageType>;
|
|
7
7
|
|
package/dist/draft10.d.cts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { D as Draft10Codec, c as createDraft10Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
1
|
+
export { D as Draft10Codec, c as createDraft10Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-Cfo_z5ET.cjs';
|
|
2
2
|
import { b as Draft10DataStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, S as SubgroupStream, a as Draft10MessageType, D as Draft10Message } from './types-0IWbU9Z_.cjs';
|
|
3
3
|
export { e as DataStreamEvent, f as DataStreamHeader, g as Draft10Announce, h as Draft10AnnounceCancel, i as Draft10AnnounceError, j as Draft10AnnounceOk, k as Draft10BaseMessage, l as Draft10ClientSetup, m as Draft10Fetch, n as Draft10FetchCancel, o as Draft10FetchError, p as Draft10FetchOk, q as Draft10GoAway, r as Draft10MaxSubscribeId, s as Draft10Params, t as Draft10ServerSetup, u as Draft10SetupParams, v as Draft10Subscribe, w as Draft10SubscribeAnnounces, x as Draft10SubscribeAnnouncesError, y as Draft10SubscribeAnnouncesOk, z as Draft10SubscribeDone, A as Draft10SubscribeError, B as Draft10SubscribeOk, C as Draft10SubscribeUpdate, E as Draft10SubscribesBlocked, G as Draft10TrackStatus, H as Draft10TrackStatusRequest, I as Draft10Unannounce, J as Draft10Unsubscribe, K as Draft10UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as ObjectPayload, P as StandaloneFetch, Q as SubgroupStreamHeader, U as UnknownParam } from './types-0IWbU9Z_.cjs';
|
|
4
4
|
export { createDraft10SessionState } from './draft10-session.cjs';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
5
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-B9idsih-.cjs';
|
|
6
|
+
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-B9idsih-.cjs';
|
|
7
|
+
import { b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
8
8
|
|
|
9
9
|
declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
10
10
|
declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
package/dist/draft10.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export { D as Draft10Codec, c as createDraft10Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec
|
|
1
|
+
export { D as Draft10Codec, c as createDraft10Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec--CVeqGQv.js';
|
|
2
2
|
import { b as Draft10DataStream, c as DatagramObject, d as DatagramStatusObject, F as FetchStream, S as SubgroupStream, a as Draft10MessageType, D as Draft10Message } from './types-0IWbU9Z_.js';
|
|
3
3
|
export { e as DataStreamEvent, f as DataStreamHeader, g as Draft10Announce, h as Draft10AnnounceCancel, i as Draft10AnnounceError, j as Draft10AnnounceOk, k as Draft10BaseMessage, l as Draft10ClientSetup, m as Draft10Fetch, n as Draft10FetchCancel, o as Draft10FetchError, p as Draft10FetchOk, q as Draft10GoAway, r as Draft10MaxSubscribeId, s as Draft10Params, t as Draft10ServerSetup, u as Draft10SetupParams, v as Draft10Subscribe, w as Draft10SubscribeAnnounces, x as Draft10SubscribeAnnouncesError, y as Draft10SubscribeAnnouncesOk, z as Draft10SubscribeDone, A as Draft10SubscribeError, B as Draft10SubscribeOk, C as Draft10SubscribeUpdate, E as Draft10SubscribesBlocked, G as Draft10TrackStatus, H as Draft10TrackStatusRequest, I as Draft10Unannounce, J as Draft10Unsubscribe, K as Draft10UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as ObjectPayload, P as StandaloneFetch, Q as SubgroupStreamHeader, U as UnknownParam } from './types-0IWbU9Z_.js';
|
|
4
4
|
export { createDraft10SessionState } from './draft10-session.js';
|
|
5
|
-
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-
|
|
6
|
-
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-
|
|
7
|
-
import { b as DecodeResult } from './types-
|
|
5
|
+
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, c as FetchState, V as ValidationResult, T as TransitionResult } from './session-types-Dn7b3RZM.js';
|
|
6
|
+
export { A as AnnouncePhase, F as FetchPhase, P as ProtocolViolation, d as ProtocolViolationCode, a as SessionState, h as SideEffect, i as SubscriptionPhase } from './session-types-Dn7b3RZM.js';
|
|
7
|
+
import { b as DecodeResult } from './types-DG5_iKuv.js';
|
|
8
8
|
|
|
9
9
|
declare function encodeSubgroupStream(stream: SubgroupStream): Uint8Array;
|
|
10
10
|
declare function encodeDatagram(dg: DatagramObject): Uint8Array;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
3
3
|
import { D as Draft11Message, a as Draft11MessageType } from './types-Ck45Ex5S.cjs';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft11SessionState(role: SessionStateOptionsRole): SessionState<Draft11Message, Draft11MessageType>;
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-
|
|
2
|
-
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-
|
|
1
|
+
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
|
|
2
|
+
export { A as AnnouncePhase, b as AnnounceState, F as FetchPhase, c as FetchState, P as ProtocolViolation, d as ProtocolViolationCode, g as SessionPhase, h as SideEffect, i as SubscriptionPhase, j as SubscriptionState, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
3
3
|
import { D as Draft11Message, a as Draft11MessageType } from './types-Ck45Ex5S.js';
|
|
4
|
-
import './types-
|
|
4
|
+
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft11SessionState(role: SessionStateOptionsRole): SessionState<Draft11Message, Draft11MessageType>;
|
|
7
7
|
|