@moqtap/codec 0.10.0 → 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/CHANGELOG.md +147 -0
- package/dist/auth-redaction-DsdLq4Qs.d.cts +102 -0
- package/dist/auth-redaction-DsdLq4Qs.d.ts +102 -0
- package/dist/{chunk-RYKQXBG6.cjs → chunk-27K5BUAG.cjs} +481 -517
- package/dist/{chunk-WCPENYNE.js → chunk-3RNQMGKA.js} +359 -390
- package/dist/{chunk-TSUZ6GJV.js → chunk-5AWIXOLB.js} +438 -469
- package/dist/{chunk-4XLYCT5Q.cjs → chunk-5IMHJIAZ.cjs} +52 -2
- package/dist/{chunk-KTNERCTZ.cjs → chunk-5JGZCKJO.cjs} +488 -518
- package/dist/{chunk-WCTMPDUX.cjs → chunk-73K4OSAN.cjs} +401 -432
- package/dist/{chunk-N2V7Z37J.js → chunk-7VQKRGRD.js} +19 -3
- package/dist/{chunk-BIBMDTU5.cjs → chunk-A3UCQOIB.cjs} +486 -517
- package/dist/{chunk-K2B3OVFK.js → chunk-A7PDMVXM.js} +24 -3
- package/dist/{chunk-VZHL2U2N.cjs → chunk-A7VQO6YC.cjs} +54 -38
- package/dist/{chunk-AQ445VV7.cjs → chunk-ACQHZLRZ.cjs} +66 -46
- package/dist/{chunk-L5DRACXS.js → chunk-BBICOMW6.js} +25 -3
- package/dist/{chunk-T4VWPKDG.cjs → chunk-BNIUVOCJ.cjs} +529 -599
- package/dist/{chunk-UKKDOOUO.cjs → chunk-CNC6ANS4.cjs} +58 -37
- package/dist/{chunk-OZRK73NQ.js → chunk-FDLQSWHK.js} +433 -469
- package/dist/{chunk-IJAF6PAY.js → chunk-FFNOE4UR.js} +19 -3
- package/dist/{chunk-CZNW3R5E.cjs → chunk-GMENT63T.cjs} +54 -38
- package/dist/{chunk-XCRCAUGI.cjs → chunk-HM7BLRVP.cjs} +291 -297
- package/dist/{chunk-XHAP2YST.js → chunk-HZONHFNO.js} +19 -3
- package/dist/{chunk-SDJTSMOW.cjs → chunk-ILYABWDK.cjs} +60 -38
- package/dist/{chunk-IDV2JYJ6.cjs → chunk-KRSFTZVO.cjs} +56 -40
- package/dist/{chunk-RIIA4ALQ.cjs → chunk-KSPH6KMH.cjs} +54 -38
- package/dist/{chunk-OUNN4IQB.cjs → chunk-KTY4LAUV.cjs} +482 -497
- package/dist/{chunk-RZTLQAKF.js → chunk-OJNLJT5D.js} +0 -1
- package/dist/{chunk-FT3HDNIB.js → chunk-PJK2ZS3I.js} +467 -537
- package/dist/{chunk-G53WYUXL.js → chunk-PSMZKHOC.js} +441 -456
- package/dist/{chunk-7RE6KSIY.cjs → chunk-Q5JQGHWY.cjs} +0 -1
- package/dist/{chunk-BX2N7TZM.js → chunk-SQTUQY5E.js} +31 -11
- package/dist/{chunk-CF5DDD3Q.js → chunk-WCRLAKDW.js} +239 -245
- package/dist/{chunk-KYVTM5VI.js → chunk-WL2YUEXH.js} +19 -3
- package/dist/{chunk-KGDVC4O6.js → chunk-YCNIVZS7.js} +439 -469
- package/dist/{chunk-KLPWJU6W.js → chunk-YRZQVNZO.js} +50 -0
- package/dist/{codec-CFWu5KVT.d.cts → codec-76xzrLTL.d.cts} +21 -2
- package/dist/{codec-gl4_QEva.d.ts → codec-8p40WdLg.d.ts} +20 -1
- package/dist/{codec-Dl_QIXMz.d.ts → codec-BN2Bu0KI.d.ts} +20 -1
- package/dist/{codec-Bux_Q40X.d.ts → codec-Bb6GKTrv.d.ts} +21 -2
- package/dist/{codec-EvybrBuY.d.cts → codec-BgpfHoAd.d.cts} +20 -1
- package/dist/{codec-alVA27Uc.d.ts → codec-BkheTXO7.d.ts} +20 -1
- package/dist/{codec-Czejcmxr.d.cts → codec-BwVDkokh.d.cts} +21 -2
- package/dist/{codec-BrTi4K7r.d.cts → codec-C5s1eBJX.d.cts} +21 -2
- package/dist/codec-CM5yd6n3.d.ts +38 -0
- package/dist/{codec-CWnf8mn_.d.cts → codec-Cb8HC3XV.d.cts} +21 -2
- package/dist/codec-Clu_skx8.d.cts +38 -0
- package/dist/{codec-DzkdW4kO.d.cts → codec-CpOpemR8.d.cts} +20 -1
- package/dist/{codec-CXCjya_G.d.cts → codec-Cshdl9Tt.d.cts} +20 -1
- package/dist/{codec-f7vxeVIS.d.cts → codec-DELe00w_.d.cts} +21 -2
- package/dist/{codec-DNmiG2e0.d.cts → codec-DHzKAUCa.d.cts} +20 -1
- package/dist/{codec--CVeqGQv.d.ts → codec-DdVBtvx7.d.ts} +20 -1
- package/dist/{codec-CBdOIfMY.d.ts → codec-DlxGuYMv.d.ts} +21 -2
- package/dist/{codec-BNy5syCU.d.ts → codec-DxtgPxJS.d.ts} +20 -1
- package/dist/{codec-guzqtfMk.d.cts → codec-GAY4lybi.d.cts} +20 -1
- package/dist/{codec-Cfo_z5ET.d.cts → codec-I8u2pfS4.d.cts} +20 -1
- package/dist/{codec-BxQTybUX.d.cts → codec-XLrnreeu.d.cts} +21 -2
- package/dist/{codec-DOmAmFkI.d.ts → codec-c0YEwwWn.d.ts} +20 -1
- package/dist/{codec-DaXjRrOV.d.ts → codec-ejDu-va6.d.ts} +21 -2
- package/dist/{codec-C3mdsGx3.d.ts → codec-kaBUzdpV.d.ts} +21 -2
- package/dist/{codec-CwZ6OCPP.d.ts → codec-mVYqkIUF.d.ts} +21 -2
- package/dist/{codec-08ZOr5wI.d.ts → codec-qSbO5nOa.d.ts} +21 -2
- package/dist/{codec-Cm3D261p.d.ts → codec-yYKGOipj.d.ts} +20 -1
- package/dist/{codec-Bd60SGKH.d.cts → codec-zfzg9uiy.d.cts} +20 -1
- package/dist/draft07.cjs +48 -4
- package/dist/draft07.d.cts +42 -2
- package/dist/draft07.d.ts +42 -2
- package/dist/draft07.js +49 -5
- package/dist/draft08.cjs +76 -3
- package/dist/draft08.d.cts +70 -2
- package/dist/draft08.d.ts +70 -2
- package/dist/draft08.js +77 -4
- package/dist/draft09.cjs +76 -3
- package/dist/draft09.d.cts +70 -2
- package/dist/draft09.d.ts +70 -2
- package/dist/draft09.js +77 -4
- package/dist/draft10.cjs +76 -3
- package/dist/draft10.d.cts +70 -2
- package/dist/draft10.d.ts +70 -2
- package/dist/draft10.js +77 -4
- package/dist/draft11.cjs +104 -3
- package/dist/draft11.d.cts +98 -2
- package/dist/draft11.d.ts +98 -2
- package/dist/draft11.js +105 -4
- package/dist/draft12.cjs +113 -3
- package/dist/draft12.d.cts +107 -2
- package/dist/draft12.d.ts +107 -2
- package/dist/draft12.js +114 -4
- package/dist/draft13.cjs +105 -3
- package/dist/draft13.d.cts +99 -2
- package/dist/draft13.d.ts +99 -2
- package/dist/draft13.js +106 -4
- package/dist/draft14.cjs +107 -3
- package/dist/draft14.d.cts +101 -28
- package/dist/draft14.d.ts +101 -28
- package/dist/draft14.js +108 -4
- package/dist/draft15-session.d.cts +1 -1
- package/dist/draft15-session.d.ts +1 -1
- package/dist/draft15.cjs +69 -3
- package/dist/draft15.d.cts +65 -22
- package/dist/draft15.d.ts +65 -22
- package/dist/draft15.js +70 -4
- package/dist/draft16-session.cjs +2 -2
- package/dist/draft16-session.d.cts +1 -1
- package/dist/draft16-session.d.ts +1 -1
- package/dist/draft16-session.js +1 -1
- package/dist/draft16.cjs +76 -8
- package/dist/draft16.d.cts +67 -13
- package/dist/draft16.d.ts +67 -13
- package/dist/draft16.js +73 -5
- package/dist/draft17-session.d.cts +1 -1
- package/dist/draft17-session.d.ts +1 -1
- package/dist/draft17.cjs +77 -3
- package/dist/draft17.d.cts +73 -4
- package/dist/draft17.d.ts +73 -4
- package/dist/draft17.js +78 -4
- package/dist/draft18-session.d.cts +1 -1
- package/dist/draft18-session.d.ts +1 -1
- package/dist/draft18.cjs +8 -3
- package/dist/draft18.d.cts +4 -3
- package/dist/draft18.d.ts +4 -3
- package/dist/draft18.js +9 -4
- package/dist/draft19-session.d.cts +1 -1
- package/dist/draft19-session.d.ts +1 -1
- package/dist/draft19.cjs +11 -4
- package/dist/draft19.d.cts +4 -3
- package/dist/draft19.d.ts +4 -3
- package/dist/draft19.js +12 -5
- package/dist/draft20-session.d.cts +1 -1
- package/dist/draft20-session.d.ts +1 -1
- package/dist/draft20.cjs +8 -3
- package/dist/draft20.d.cts +4 -3
- package/dist/draft20.d.ts +4 -3
- package/dist/draft20.js +9 -4
- package/dist/index.cjs +30 -30
- package/dist/index.d.cts +21 -20
- package/dist/index.d.ts +21 -20
- package/dist/index.js +15 -15
- package/dist/session.cjs +2 -2
- package/dist/session.d.cts +6 -6
- package/dist/session.d.ts +6 -6
- package/dist/session.js +1 -1
- package/dist/{types-C1rxh-id.d.cts → types-Btp416jt.d.cts} +8 -0
- package/dist/{types-C1rxh-id.d.ts → types-Btp416jt.d.ts} +8 -0
- package/dist/{types-CZTzbIzQ.d.cts → types-BxTL1NXw.d.cts} +7 -0
- package/dist/{types-CZTzbIzQ.d.ts → types-BxTL1NXw.d.ts} +7 -0
- package/dist/{types-pShrs3fN.d.cts → types-CuibHYcf.d.cts} +7 -0
- package/dist/{types-pShrs3fN.d.ts → types-CuibHYcf.d.ts} +7 -0
- package/dist/{types-CY-QWxd-.d.cts → types-CwN7AEoL.d.cts} +13 -1
- package/dist/{types-CY-QWxd-.d.ts → types-CwN7AEoL.d.ts} +13 -1
- package/dist/{types-D4bmW8rY.d.cts → types-DAnalt5K.d.cts} +7 -0
- package/dist/{types-D4bmW8rY.d.ts → types-DAnalt5K.d.ts} +7 -0
- package/dist/{types-Bg86GGVZ.d.cts → types-DxXNP32l.d.cts} +8 -0
- package/dist/{types-Bg86GGVZ.d.ts → types-DxXNP32l.d.ts} +8 -0
- package/package.json +3 -3
- package/src/core/auth-redaction.ts +192 -0
- package/src/drafts/draft07/codec.ts +40 -0
- package/src/drafts/draft07/error-codes.ts +44 -0
- package/src/drafts/draft07/index.ts +15 -0
- package/src/drafts/draft08/codec.ts +40 -0
- package/src/drafts/draft08/error-codes.ts +76 -0
- package/src/drafts/draft08/index.ts +21 -0
- package/src/drafts/draft09/codec.ts +40 -0
- package/src/drafts/draft09/error-codes.ts +76 -0
- package/src/drafts/draft09/index.ts +21 -0
- package/src/drafts/draft10/codec.ts +40 -0
- package/src/drafts/draft10/error-codes.ts +76 -0
- package/src/drafts/draft10/index.ts +21 -0
- package/src/drafts/draft11/codec.ts +60 -0
- package/src/drafts/draft11/error-codes.ts +106 -0
- package/src/drafts/draft11/index.ts +23 -0
- package/src/drafts/draft12/codec.ts +61 -0
- package/src/drafts/draft12/error-codes.ts +116 -0
- package/src/drafts/draft12/index.ts +25 -0
- package/src/drafts/draft13/codec.ts +69 -11
- package/src/drafts/draft13/error-codes.ts +107 -0
- package/src/drafts/draft13/index.ts +23 -0
- package/src/drafts/draft13/types.ts +1 -1
- package/src/drafts/draft14/codec.ts +65 -4
- package/src/drafts/draft14/data-streams.ts +331 -259
- package/src/drafts/draft14/error-codes.ts +109 -0
- package/src/drafts/draft14/index.ts +23 -0
- package/src/drafts/draft15/codec.ts +65 -8
- package/src/drafts/draft15/data-streams.ts +489 -444
- package/src/drafts/draft15/error-codes.ts +66 -0
- package/src/drafts/draft15/index.ts +15 -0
- package/src/drafts/draft15/types.ts +7 -0
- package/src/drafts/draft16/codec.ts +146 -52
- package/src/drafts/draft16/data-streams.ts +513 -442
- package/src/drafts/draft16/error-codes.ts +68 -0
- package/src/drafts/draft16/index.ts +15 -0
- package/src/drafts/draft16/messages.ts +4 -4
- package/src/drafts/draft16/session-fsm.ts +0 -1
- package/src/drafts/draft16/types.ts +22 -8
- package/src/drafts/draft17/codec.ts +73 -12
- package/src/drafts/draft17/data-streams.ts +567 -488
- package/src/drafts/draft17/index.ts +15 -0
- package/src/drafts/draft17/types.ts +7 -0
- package/src/drafts/draft18/codec.ts +66 -9
- package/src/drafts/draft18/data-streams.ts +570 -482
- package/src/drafts/draft18/index.ts +3 -0
- package/src/drafts/draft18/types.ts +16 -8
- package/src/drafts/draft19/codec.ts +70 -10
- package/src/drafts/draft19/data-streams.ts +570 -482
- package/src/drafts/draft19/error-codes.ts +3 -1
- package/src/drafts/draft19/index.ts +3 -0
- package/src/drafts/draft19/messages.ts +3 -1
- package/src/drafts/draft19/types.ts +22 -11
- package/src/drafts/draft20/codec.ts +90 -23
- package/src/drafts/draft20/data-streams.ts +610 -563
- package/src/drafts/draft20/index.ts +3 -0
- package/src/drafts/draft20/types.ts +14 -2
- package/dist/codec-BJ7BHuiZ.d.ts +0 -18
- package/dist/codec-C6Mx4bwz.d.cts +0 -18
package/dist/draft19.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-DsdLq4Qs.js';
|
|
2
|
+
export { D as Draft19Codec, c as createDraft19Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-DlxGuYMv.js';
|
|
3
|
+
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft19DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft19MessageType } from './types-Btp416jt.js';
|
|
4
|
+
export { g as DataStreamHeader, h as Draft19BaseMessage, i as Draft19Fetch, j as Draft19FetchOk, k as Draft19GoAway, D as Draft19Message, l as Draft19Namespace, m as Draft19NamespaceDone, n as Draft19Params, o as Draft19Publish, p as Draft19PublishDone, q as Draft19PublishNamespace, r as Draft19PublishSkipped, s as Draft19RequestError, t as Draft19RequestOk, u as Draft19RequestUpdate, v as Draft19Setup, w as Draft19SetupOptions, x as Draft19Subscribe, y as Draft19SubscribeNamespace, z as Draft19SubscribeOk, A as Draft19SubscribeTracks, B as Draft19TrackProperties, C as Draft19TrackStatus, E as FetchObjectPayload, J as JoiningFetch, L as LargestObject, G as LocationFilter, R as RangeFilter, H as RangeFilterRange, I as Redirect, K as StandaloneFetch, U as UnknownParam } from './types-Btp416jt.js';
|
|
4
5
|
export { Draft19SessionFSM, createDraft19SessionState } from './draft19-session.js';
|
|
5
6
|
export { P as ProtocolViolation, g as SessionPhase, h as SideEffect, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
6
7
|
import { b as DecodeResult } from './types-DG5_iKuv.js';
|
package/dist/draft19.js
CHANGED
|
@@ -40,8 +40,9 @@ import {
|
|
|
40
40
|
encodeDatagram,
|
|
41
41
|
encodeFetchStream,
|
|
42
42
|
encodeMessage,
|
|
43
|
-
encodeSubgroupStream
|
|
44
|
-
|
|
43
|
+
encodeSubgroupStream,
|
|
44
|
+
redactAuthTokens
|
|
45
|
+
} from "./chunk-YCNIVZS7.js";
|
|
45
46
|
import {
|
|
46
47
|
BIDIRECTIONAL_MESSAGES,
|
|
47
48
|
CLIENT_ONLY_MESSAGES,
|
|
@@ -52,7 +53,9 @@ import {
|
|
|
52
53
|
getLegalIncoming,
|
|
53
54
|
getLegalOutgoing
|
|
54
55
|
} from "./chunk-O5DQ44TM.js";
|
|
55
|
-
import
|
|
56
|
+
import {
|
|
57
|
+
REDACTION_FILL
|
|
58
|
+
} from "./chunk-YRZQVNZO.js";
|
|
56
59
|
|
|
57
60
|
// src/drafts/draft19/error-codes.ts
|
|
58
61
|
var SessionTerminationCode = {
|
|
@@ -91,7 +94,9 @@ var RequestErrorCode = {
|
|
|
91
94
|
DoesNotExist: 0x10n,
|
|
92
95
|
InvalidRange: 0x11n,
|
|
93
96
|
MalformedTrack: 0x12n,
|
|
94
|
-
//
|
|
97
|
+
// 0x19 is unassigned in draft-19: Section 5.1 lets an endpoint hold multiple concurrent
|
|
98
|
+
// subscriptions to the same Track, so there is no DuplicateSubscription error. Draft-18
|
|
99
|
+
// binds 0x19 to DUPLICATE_SUBSCRIPTION.
|
|
95
100
|
Uninterested: 0x20n,
|
|
96
101
|
PrefixOverlap: 0x30n,
|
|
97
102
|
NamespaceTooLarge: 0x31n,
|
|
@@ -159,6 +164,7 @@ export {
|
|
|
159
164
|
MSG_SUBSCRIBE_TRACKS,
|
|
160
165
|
MSG_TRACK_STATUS,
|
|
161
166
|
PublishDoneCode,
|
|
167
|
+
REDACTION_FILL,
|
|
162
168
|
RequestErrorCode,
|
|
163
169
|
SERVER_ONLY_MESSAGES,
|
|
164
170
|
SETUP_OPT_AUTHORITY,
|
|
@@ -185,5 +191,6 @@ export {
|
|
|
185
191
|
encodeMessage,
|
|
186
192
|
encodeSubgroupStream,
|
|
187
193
|
getLegalIncoming,
|
|
188
|
-
getLegalOutgoing
|
|
194
|
+
getLegalOutgoing,
|
|
195
|
+
redactAuthTokens
|
|
189
196
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult, h as SideEffect } from './session-types-B9idsih-.cjs';
|
|
2
2
|
export { P as ProtocolViolation } from './session-types-B9idsih-.cjs';
|
|
3
|
-
import { a as Draft20MessageType, D as Draft20Message } from './types-
|
|
3
|
+
import { a as Draft20MessageType, D as Draft20Message } from './types-CwN7AEoL.cjs';
|
|
4
4
|
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { g as SessionPhase, j as SubscriptionState, b as AnnounceState, f as PublishState, c as FetchState, V as ValidationResult, T as TransitionResult, h as SideEffect } from './session-types-Dn7b3RZM.js';
|
|
2
2
|
export { P as ProtocolViolation } from './session-types-Dn7b3RZM.js';
|
|
3
|
-
import { a as Draft20MessageType, D as Draft20Message } from './types-
|
|
3
|
+
import { a as Draft20MessageType, D as Draft20Message } from './types-CwN7AEoL.js';
|
|
4
4
|
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
/**
|
package/dist/draft20.cjs
CHANGED
|
@@ -43,7 +43,8 @@
|
|
|
43
43
|
|
|
44
44
|
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
|
|
47
|
+
var _chunkBNIUVOCJcjs = require('./chunk-BNIUVOCJ.cjs');
|
|
47
48
|
|
|
48
49
|
|
|
49
50
|
|
|
@@ -55,7 +56,9 @@ var _chunkT4VWPKDGcjs = require('./chunk-T4VWPKDG.cjs');
|
|
|
55
56
|
|
|
56
57
|
|
|
57
58
|
var _chunkBMJMY6FXcjs = require('./chunk-BMJMY6FX.cjs');
|
|
58
|
-
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
var _chunk5IMHJIAZcjs = require('./chunk-5IMHJIAZ.cjs');
|
|
59
62
|
|
|
60
63
|
// src/drafts/draft20/error-codes.ts
|
|
61
64
|
var SessionTerminationCode = {
|
|
@@ -214,4 +217,6 @@ var DRAFT_VERSION = 0xff000014n;
|
|
|
214
217
|
|
|
215
218
|
|
|
216
219
|
|
|
217
|
-
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
exports.BIDIRECTIONAL_MESSAGES = _chunkBMJMY6FXcjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkBMJMY6FXcjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkBMJMY6FXcjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.DataStreamResetCode = DataStreamResetCode; exports.Draft20SessionFSM = _chunkBMJMY6FXcjs.Draft20SessionFSM; exports.MESSAGE_ID_MAP = _chunkBNIUVOCJcjs.MESSAGE_ID_MAP; exports.MESSAGE_TYPE_MAP = _chunkBNIUVOCJcjs.MESSAGE_TYPE_MAP; exports.MSG_FETCH = _chunkBNIUVOCJcjs.MSG_FETCH; exports.MSG_FETCH_OK = _chunkBNIUVOCJcjs.MSG_FETCH_OK; exports.MSG_GOAWAY = _chunkBNIUVOCJcjs.MSG_GOAWAY; exports.MSG_NAMESPACE = _chunkBNIUVOCJcjs.MSG_NAMESPACE; exports.MSG_NAMESPACE_DONE = _chunkBNIUVOCJcjs.MSG_NAMESPACE_DONE; exports.MSG_PUBLISH = _chunkBNIUVOCJcjs.MSG_PUBLISH; exports.MSG_PUBLISH_DONE = _chunkBNIUVOCJcjs.MSG_PUBLISH_DONE; exports.MSG_PUBLISH_NAMESPACE = _chunkBNIUVOCJcjs.MSG_PUBLISH_NAMESPACE; exports.MSG_PUBLISH_OK = _chunkBNIUVOCJcjs.MSG_PUBLISH_OK; exports.MSG_PUBLISH_SKIPPED = _chunkBNIUVOCJcjs.MSG_PUBLISH_SKIPPED; exports.MSG_PUBLISH_STATE_NOTIFY = _chunkBNIUVOCJcjs.MSG_PUBLISH_STATE_NOTIFY; exports.MSG_REQUEST_ERROR = _chunkBNIUVOCJcjs.MSG_REQUEST_ERROR; exports.MSG_REQUEST_OK = _chunkBNIUVOCJcjs.MSG_REQUEST_OK; exports.MSG_REQUEST_UPDATE = _chunkBNIUVOCJcjs.MSG_REQUEST_UPDATE; exports.MSG_SETUP = _chunkBNIUVOCJcjs.MSG_SETUP; exports.MSG_SUBSCRIBE = _chunkBNIUVOCJcjs.MSG_SUBSCRIBE; exports.MSG_SUBSCRIBE_NAMESPACE = _chunkBNIUVOCJcjs.MSG_SUBSCRIBE_NAMESPACE; exports.MSG_SUBSCRIBE_OK = _chunkBNIUVOCJcjs.MSG_SUBSCRIBE_OK; exports.MSG_SUBSCRIBE_TRACKS = _chunkBNIUVOCJcjs.MSG_SUBSCRIBE_TRACKS; exports.MSG_TRACK_STATUS = _chunkBNIUVOCJcjs.MSG_TRACK_STATUS; exports.PROTOCOL_STRING = PROTOCOL_STRING; exports.PublishDoneCode = PublishDoneCode; exports.REDACTION_FILL = _chunk5IMHJIAZcjs.REDACTION_FILL; exports.REQUEST_STREAM_OPENERS = _chunkBMJMY6FXcjs.REQUEST_STREAM_OPENERS; exports.RETIRED_PUBLISH_DONE_CODES = RETIRED_PUBLISH_DONE_CODES; exports.RETIRED_REQUEST_ERROR_CODES = RETIRED_REQUEST_ERROR_CODES; exports.RETIRED_SESSION_TERMINATION_CODES = RETIRED_SESSION_TERMINATION_CODES; exports.RequestErrorCode = RequestErrorCode; exports.SERVER_ONLY_MESSAGES = _chunkBMJMY6FXcjs.SERVER_ONLY_MESSAGES; exports.SETUP_OPT_AUTHORITY = _chunkBNIUVOCJcjs.SETUP_OPT_AUTHORITY; exports.SETUP_OPT_AUTHORIZATION_TOKEN = _chunkBNIUVOCJcjs.SETUP_OPT_AUTHORIZATION_TOKEN; exports.SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE = _chunkBNIUVOCJcjs.SETUP_OPT_MAX_AUTH_TOKEN_CACHE_SIZE; exports.SETUP_OPT_MAX_FILTER_RANGES = _chunkBNIUVOCJcjs.SETUP_OPT_MAX_FILTER_RANGES; exports.SETUP_OPT_MAX_REQUEST_UPDATES = _chunkBNIUVOCJcjs.SETUP_OPT_MAX_REQUEST_UPDATES; exports.SETUP_OPT_MOQT_IMPLEMENTATION = _chunkBNIUVOCJcjs.SETUP_OPT_MOQT_IMPLEMENTATION; exports.SETUP_OPT_PATH = _chunkBNIUVOCJcjs.SETUP_OPT_PATH; exports.SessionTerminationCode = SessionTerminationCode; exports.UNKNOWN_STREAM_COUNT = _chunkBNIUVOCJcjs.UNKNOWN_STREAM_COUNT; exports.createDataStreamDecoder = _chunkBNIUVOCJcjs.createDataStreamDecoder; exports.createDraft20Codec = _chunkBNIUVOCJcjs.createDraft20Codec; exports.createDraft20SessionState = _chunkBMJMY6FXcjs.createDraft20SessionState; exports.createFetchStreamDecoder = _chunkBNIUVOCJcjs.createFetchStreamDecoder; exports.createStreamDecoder = _chunkBNIUVOCJcjs.createStreamDecoder; exports.createSubgroupStreamDecoder = _chunkBNIUVOCJcjs.createSubgroupStreamDecoder; exports.decodeDataStream = _chunkBNIUVOCJcjs.decodeDataStream; exports.decodeDatagram = _chunkBNIUVOCJcjs.decodeDatagram; exports.decodeFetchStream = _chunkBNIUVOCJcjs.decodeFetchStream; exports.decodeMessage = _chunkBNIUVOCJcjs.decodeMessage; exports.decodeSubgroupStream = _chunkBNIUVOCJcjs.decodeSubgroupStream; exports.encodeDatagram = _chunkBNIUVOCJcjs.encodeDatagram; exports.encodeFetchStream = _chunkBNIUVOCJcjs.encodeFetchStream; exports.encodeMessage = _chunkBNIUVOCJcjs.encodeMessage; exports.encodeSubgroupStream = _chunkBNIUVOCJcjs.encodeSubgroupStream; exports.getLegalIncoming = _chunkBMJMY6FXcjs.getLegalIncoming; exports.getLegalOutgoing = _chunkBMJMY6FXcjs.getLegalOutgoing; exports.redactAuthTokens = _chunkBNIUVOCJcjs.redactAuthTokens;
|
package/dist/draft20.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-DsdLq4Qs.cjs';
|
|
2
|
+
export { D as Draft20Codec, U as UNKNOWN_STREAM_COUNT, c as createDraft20Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-76xzrLTL.cjs';
|
|
3
|
+
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft20DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft20MessageType } from './types-CwN7AEoL.cjs';
|
|
4
|
+
export { g as DataStreamHeader, h as Draft20BaseMessage, i as Draft20Fetch, j as Draft20FetchOk, k as Draft20FillParameters, l as Draft20GoAway, D as Draft20Message, m as Draft20Namespace, n as Draft20NamespaceDone, o as Draft20Params, p as Draft20Publish, q as Draft20PublishDone, r as Draft20PublishNamespace, s as Draft20PublishSkipped, t as Draft20PublishStateNotify, u as Draft20RequestError, v as Draft20RequestOk, w as Draft20RequestUpdate, x as Draft20Setup, y as Draft20SetupOptions, z as Draft20Subscribe, A as Draft20SubscribeNamespace, B as Draft20SubscribeOk, C as Draft20SubscribeTracks, E as Draft20TrackProperties, G as Draft20TrackStatus, H as FetchObjectPayload, L as LargestObject, I as LocationFilter, R as RangeFilter, J as RangeFilterRange, K as Redirect, U as UnknownParam } from './types-CwN7AEoL.cjs';
|
|
4
5
|
export { Draft20SessionFSM, FillFetchStreamPhase, FillFetchStreamState, PublisherSide, RequestKind, createDraft20SessionState } from './draft20-session.cjs';
|
|
5
6
|
export { P as ProtocolViolation, g as SessionPhase, h as SideEffect, T as TransitionResult, V as ValidationResult } from './session-types-B9idsih-.cjs';
|
|
6
7
|
import { b as DecodeResult } from './types-DG5_iKuv.cjs';
|
package/dist/draft20.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
export {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
export { A as AuthRedaction, R as REDACTION_FILL } from './auth-redaction-DsdLq4Qs.js';
|
|
2
|
+
export { D as Draft20Codec, U as UNKNOWN_STREAM_COUNT, c as createDraft20Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage, r as redactAuthTokens } from './codec-mVYqkIUF.js';
|
|
3
|
+
import { b as DataStreamEvent, F as FetchStreamHeader, O as ObjectPayload, S as SubgroupStreamHeader, c as Draft20DataStream, d as DatagramObject, e as FetchStream, f as SubgroupStream, a as Draft20MessageType } from './types-CwN7AEoL.js';
|
|
4
|
+
export { g as DataStreamHeader, h as Draft20BaseMessage, i as Draft20Fetch, j as Draft20FetchOk, k as Draft20FillParameters, l as Draft20GoAway, D as Draft20Message, m as Draft20Namespace, n as Draft20NamespaceDone, o as Draft20Params, p as Draft20Publish, q as Draft20PublishDone, r as Draft20PublishNamespace, s as Draft20PublishSkipped, t as Draft20PublishStateNotify, u as Draft20RequestError, v as Draft20RequestOk, w as Draft20RequestUpdate, x as Draft20Setup, y as Draft20SetupOptions, z as Draft20Subscribe, A as Draft20SubscribeNamespace, B as Draft20SubscribeOk, C as Draft20SubscribeTracks, E as Draft20TrackProperties, G as Draft20TrackStatus, H as FetchObjectPayload, L as LargestObject, I as LocationFilter, R as RangeFilter, J as RangeFilterRange, K as Redirect, U as UnknownParam } from './types-CwN7AEoL.js';
|
|
4
5
|
export { Draft20SessionFSM, FillFetchStreamPhase, FillFetchStreamState, PublisherSide, RequestKind, createDraft20SessionState } from './draft20-session.js';
|
|
5
6
|
export { P as ProtocolViolation, g as SessionPhase, h as SideEffect, T as TransitionResult, V as ValidationResult } from './session-types-Dn7b3RZM.js';
|
|
6
7
|
import { b as DecodeResult } from './types-DG5_iKuv.js';
|
package/dist/draft20.js
CHANGED
|
@@ -42,8 +42,9 @@ import {
|
|
|
42
42
|
encodeDatagram,
|
|
43
43
|
encodeFetchStream,
|
|
44
44
|
encodeMessage,
|
|
45
|
-
encodeSubgroupStream
|
|
46
|
-
|
|
45
|
+
encodeSubgroupStream,
|
|
46
|
+
redactAuthTokens
|
|
47
|
+
} from "./chunk-PJK2ZS3I.js";
|
|
47
48
|
import {
|
|
48
49
|
BIDIRECTIONAL_MESSAGES,
|
|
49
50
|
CLIENT_ONLY_MESSAGES,
|
|
@@ -55,7 +56,9 @@ import {
|
|
|
55
56
|
getLegalIncoming,
|
|
56
57
|
getLegalOutgoing
|
|
57
58
|
} from "./chunk-WX5PU7HF.js";
|
|
58
|
-
import
|
|
59
|
+
import {
|
|
60
|
+
REDACTION_FILL
|
|
61
|
+
} from "./chunk-YRZQVNZO.js";
|
|
59
62
|
|
|
60
63
|
// src/drafts/draft20/error-codes.ts
|
|
61
64
|
var SessionTerminationCode = {
|
|
@@ -182,6 +185,7 @@ export {
|
|
|
182
185
|
MSG_TRACK_STATUS,
|
|
183
186
|
PROTOCOL_STRING,
|
|
184
187
|
PublishDoneCode,
|
|
188
|
+
REDACTION_FILL,
|
|
185
189
|
REQUEST_STREAM_OPENERS,
|
|
186
190
|
RETIRED_PUBLISH_DONE_CODES,
|
|
187
191
|
RETIRED_REQUEST_ERROR_CODES,
|
|
@@ -213,5 +217,6 @@ export {
|
|
|
213
217
|
encodeMessage,
|
|
214
218
|
encodeSubgroupStream,
|
|
215
219
|
getLegalIncoming,
|
|
216
|
-
getLegalOutgoing
|
|
220
|
+
getLegalOutgoing,
|
|
221
|
+
redactAuthTokens
|
|
217
222
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkA3UCQOIBcjs = require('./chunk-A3UCQOIB.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk5JGZCKJOcjs = require('./chunk-5JGZCKJO.cjs');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkBNIUVOCJcjs = require('./chunk-BNIUVOCJ.cjs');
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkHM7BLRVPcjs = require('./chunk-HM7BLRVP.cjs');
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunk73K4OSANcjs = require('./chunk-73K4OSAN.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkKTY4LAUVcjs = require('./chunk-KTY4LAUV.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunk27K5BUAGcjs = require('./chunk-27K5BUAG.cjs');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkKSPH6KMHcjs = require('./chunk-KSPH6KMH.cjs');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunkCNC6ANS4cjs = require('./chunk-CNC6ANS4.cjs');
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _chunkILYABWDKcjs = require('./chunk-ILYABWDK.cjs');
|
|
31
31
|
|
|
32
32
|
|
|
33
|
-
var
|
|
33
|
+
var _chunkACQHZLRZcjs = require('./chunk-ACQHZLRZ.cjs');
|
|
34
34
|
|
|
35
35
|
|
|
36
|
-
var
|
|
36
|
+
var _chunkKRSFTZVOcjs = require('./chunk-KRSFTZVO.cjs');
|
|
37
37
|
|
|
38
38
|
|
|
39
|
-
var
|
|
39
|
+
var _chunkA7VQO6YCcjs = require('./chunk-A7VQO6YC.cjs');
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
42
|
+
var _chunkGMENT63Tcjs = require('./chunk-GMENT63T.cjs');
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunk5IMHJIAZcjs = require('./chunk-5IMHJIAZ.cjs');
|
|
46
46
|
|
|
47
47
|
// src/core/accessors.ts
|
|
48
48
|
function pick(msg, names) {
|
|
@@ -119,33 +119,33 @@ Supported draft values: ${Object.keys(DRAFT_VERSIONS).join(", ")}`
|
|
|
119
119
|
}
|
|
120
120
|
switch (options.draft) {
|
|
121
121
|
case "07":
|
|
122
|
-
return
|
|
122
|
+
return _chunkKRSFTZVOcjs.createDraft07Codec.call(void 0, );
|
|
123
123
|
case "08":
|
|
124
|
-
return
|
|
124
|
+
return _chunkA7VQO6YCcjs.createDraft08Codec.call(void 0, );
|
|
125
125
|
case "09":
|
|
126
|
-
return
|
|
126
|
+
return _chunkGMENT63Tcjs.createDraft09Codec.call(void 0, );
|
|
127
127
|
case "10":
|
|
128
|
-
return
|
|
128
|
+
return _chunkKSPH6KMHcjs.createDraft10Codec.call(void 0, );
|
|
129
129
|
case "11":
|
|
130
|
-
return
|
|
130
|
+
return _chunkCNC6ANS4cjs.createDraft11Codec.call(void 0, );
|
|
131
131
|
case "12":
|
|
132
|
-
return
|
|
132
|
+
return _chunkILYABWDKcjs.createDraft12Codec.call(void 0, );
|
|
133
133
|
case "13":
|
|
134
|
-
return
|
|
134
|
+
return _chunkACQHZLRZcjs.createDraft13Codec.call(void 0, );
|
|
135
135
|
case "14":
|
|
136
|
-
return
|
|
136
|
+
return _chunkHM7BLRVPcjs.createDraft14Codec.call(void 0, );
|
|
137
137
|
case "15":
|
|
138
|
-
return
|
|
138
|
+
return _chunk73K4OSANcjs.createDraft15Codec.call(void 0, );
|
|
139
139
|
case "16":
|
|
140
|
-
return
|
|
140
|
+
return _chunkKTY4LAUVcjs.createDraft16Codec.call(void 0, );
|
|
141
141
|
case "17":
|
|
142
|
-
return
|
|
142
|
+
return _chunk27K5BUAGcjs.createDraft17Codec.call(void 0, );
|
|
143
143
|
case "18":
|
|
144
|
-
return
|
|
144
|
+
return _chunkA3UCQOIBcjs.createDraft18Codec.call(void 0, );
|
|
145
145
|
case "19":
|
|
146
|
-
return
|
|
146
|
+
return _chunk5JGZCKJOcjs.createDraft19Codec.call(void 0, );
|
|
147
147
|
case "20":
|
|
148
|
-
return
|
|
148
|
+
return _chunkBNIUVOCJcjs.createDraft20Codec.call(void 0, );
|
|
149
149
|
default:
|
|
150
150
|
throw new Error(`Unsupported draft: ${draft}`);
|
|
151
151
|
}
|
|
@@ -158,4 +158,4 @@ Supported draft values: ${Object.keys(DRAFT_VERSIONS).join(", ")}`
|
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
exports.DRAFT_VERSIONS = DRAFT_VERSIONS; exports.DecodeError =
|
|
161
|
+
exports.DRAFT_VERSIONS = DRAFT_VERSIONS; exports.DecodeError = _chunk5IMHJIAZcjs.DecodeError; exports.createCodec = createCodec; exports.joiningRequestIdOf = joiningRequestIdOf; exports.requestIdOf = requestIdOf; exports.trackAliasOf = trackAliasOf; exports.trackOf = trackOf;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { C as CodecOptions } from './types-DG5_iKuv.cjs';
|
|
2
2
|
export { B as BaseCodec, D as DecodeError, a as DecodeErrorCode, b as DecodeResult, c as Draft } from './types-DG5_iKuv.cjs';
|
|
3
|
-
import { D as Draft07Codec } from './codec-
|
|
4
|
-
import { D as Draft08Codec } from './codec-
|
|
5
|
-
import { D as Draft09Codec } from './codec-
|
|
6
|
-
import { D as Draft10Codec } from './codec-
|
|
7
|
-
import { D as Draft11Codec } from './codec-
|
|
8
|
-
import { D as Draft12Codec } from './codec-
|
|
9
|
-
import { D as Draft13Codec } from './codec-
|
|
10
|
-
import { D as Draft14Codec } from './codec-
|
|
11
|
-
import { D as Draft15Codec } from './codec-
|
|
12
|
-
import { D as Draft16Codec } from './codec-
|
|
13
|
-
import { D as Draft17Codec } from './codec-
|
|
14
|
-
import { D as Draft18Codec } from './codec-
|
|
15
|
-
import { D as Draft19Codec } from './codec-
|
|
16
|
-
import { D as Draft20Codec } from './codec-
|
|
3
|
+
import { D as Draft07Codec } from './codec-Clu_skx8.cjs';
|
|
4
|
+
import { D as Draft08Codec } from './codec-CpOpemR8.cjs';
|
|
5
|
+
import { D as Draft09Codec } from './codec-Cshdl9Tt.cjs';
|
|
6
|
+
import { D as Draft10Codec } from './codec-I8u2pfS4.cjs';
|
|
7
|
+
import { D as Draft11Codec } from './codec-BgpfHoAd.cjs';
|
|
8
|
+
import { D as Draft12Codec } from './codec-GAY4lybi.cjs';
|
|
9
|
+
import { D as Draft13Codec } from './codec-DHzKAUCa.cjs';
|
|
10
|
+
import { D as Draft14Codec } from './codec-zfzg9uiy.cjs';
|
|
11
|
+
import { D as Draft15Codec } from './codec-XLrnreeu.cjs';
|
|
12
|
+
import { D as Draft16Codec } from './codec-Cb8HC3XV.cjs';
|
|
13
|
+
import { D as Draft17Codec } from './codec-BwVDkokh.cjs';
|
|
14
|
+
import { D as Draft18Codec } from './codec-DELe00w_.cjs';
|
|
15
|
+
import { D as Draft19Codec } from './codec-C5s1eBJX.cjs';
|
|
16
|
+
import { D as Draft20Codec } from './codec-76xzrLTL.cjs';
|
|
17
|
+
import './auth-redaction-DsdLq4Qs.cjs';
|
|
17
18
|
import './types-Dl4IaAHR.cjs';
|
|
18
19
|
import './types-jV1yDDBA.cjs';
|
|
19
20
|
import './types-B3g5G9KP.cjs';
|
|
@@ -22,12 +23,12 @@ import './types-D0kTgUuL.cjs';
|
|
|
22
23
|
import './types-CI_SX4Xe.cjs';
|
|
23
24
|
import './types-DjxexghA.cjs';
|
|
24
25
|
import './types-CmqT0jUf.cjs';
|
|
25
|
-
import './types-
|
|
26
|
-
import './types-
|
|
27
|
-
import './types-
|
|
28
|
-
import './types-
|
|
29
|
-
import './types-
|
|
30
|
-
import './types-
|
|
26
|
+
import './types-CuibHYcf.cjs';
|
|
27
|
+
import './types-BxTL1NXw.cjs';
|
|
28
|
+
import './types-DAnalt5K.cjs';
|
|
29
|
+
import './types-DxXNP32l.cjs';
|
|
30
|
+
import './types-Btp416jt.cjs';
|
|
31
|
+
import './types-CwN7AEoL.cjs';
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* Draft-agnostic readers for decoded control messages.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { C as CodecOptions } from './types-DG5_iKuv.js';
|
|
2
2
|
export { B as BaseCodec, D as DecodeError, a as DecodeErrorCode, b as DecodeResult, c as Draft } from './types-DG5_iKuv.js';
|
|
3
|
-
import { D as Draft07Codec } from './codec-
|
|
4
|
-
import { D as Draft08Codec } from './codec-
|
|
5
|
-
import { D as Draft09Codec } from './codec-
|
|
6
|
-
import { D as Draft10Codec } from './codec
|
|
7
|
-
import { D as Draft11Codec } from './codec-
|
|
8
|
-
import { D as Draft12Codec } from './codec-
|
|
9
|
-
import { D as Draft13Codec } from './codec-
|
|
10
|
-
import { D as Draft14Codec } from './codec-
|
|
11
|
-
import { D as Draft15Codec } from './codec-
|
|
12
|
-
import { D as Draft16Codec } from './codec-
|
|
13
|
-
import { D as Draft17Codec } from './codec-
|
|
14
|
-
import { D as Draft18Codec } from './codec-
|
|
15
|
-
import { D as Draft19Codec } from './codec-
|
|
16
|
-
import { D as Draft20Codec } from './codec-
|
|
3
|
+
import { D as Draft07Codec } from './codec-CM5yd6n3.js';
|
|
4
|
+
import { D as Draft08Codec } from './codec-BN2Bu0KI.js';
|
|
5
|
+
import { D as Draft09Codec } from './codec-DxtgPxJS.js';
|
|
6
|
+
import { D as Draft10Codec } from './codec-DdVBtvx7.js';
|
|
7
|
+
import { D as Draft11Codec } from './codec-BkheTXO7.js';
|
|
8
|
+
import { D as Draft12Codec } from './codec-8p40WdLg.js';
|
|
9
|
+
import { D as Draft13Codec } from './codec-c0YEwwWn.js';
|
|
10
|
+
import { D as Draft14Codec } from './codec-yYKGOipj.js';
|
|
11
|
+
import { D as Draft15Codec } from './codec-qSbO5nOa.js';
|
|
12
|
+
import { D as Draft16Codec } from './codec-kaBUzdpV.js';
|
|
13
|
+
import { D as Draft17Codec } from './codec-Bb6GKTrv.js';
|
|
14
|
+
import { D as Draft18Codec } from './codec-ejDu-va6.js';
|
|
15
|
+
import { D as Draft19Codec } from './codec-DlxGuYMv.js';
|
|
16
|
+
import { D as Draft20Codec } from './codec-mVYqkIUF.js';
|
|
17
|
+
import './auth-redaction-DsdLq4Qs.js';
|
|
17
18
|
import './types-Dl4IaAHR.js';
|
|
18
19
|
import './types-jV1yDDBA.js';
|
|
19
20
|
import './types-B3g5G9KP.js';
|
|
@@ -22,12 +23,12 @@ import './types-D0kTgUuL.js';
|
|
|
22
23
|
import './types-CI_SX4Xe.js';
|
|
23
24
|
import './types-DjxexghA.js';
|
|
24
25
|
import './types-CmqT0jUf.js';
|
|
25
|
-
import './types-
|
|
26
|
-
import './types-
|
|
27
|
-
import './types-
|
|
28
|
-
import './types-
|
|
29
|
-
import './types-
|
|
30
|
-
import './types-
|
|
26
|
+
import './types-CuibHYcf.js';
|
|
27
|
+
import './types-BxTL1NXw.js';
|
|
28
|
+
import './types-DAnalt5K.js';
|
|
29
|
+
import './types-DxXNP32l.js';
|
|
30
|
+
import './types-Btp416jt.js';
|
|
31
|
+
import './types-CwN7AEoL.js';
|
|
31
32
|
|
|
32
33
|
/**
|
|
33
34
|
* Draft-agnostic readers for decoded control messages.
|
package/dist/index.js
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDraft18Codec
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5AWIXOLB.js";
|
|
4
4
|
import {
|
|
5
5
|
createDraft19Codec
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YCNIVZS7.js";
|
|
7
7
|
import {
|
|
8
8
|
createDraft20Codec
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-PJK2ZS3I.js";
|
|
10
10
|
import {
|
|
11
11
|
createDraft14Codec
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WCRLAKDW.js";
|
|
13
13
|
import {
|
|
14
14
|
createDraft15Codec
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-3RNQMGKA.js";
|
|
16
16
|
import {
|
|
17
17
|
createDraft16Codec
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-PSMZKHOC.js";
|
|
19
19
|
import {
|
|
20
20
|
createDraft17Codec
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FDLQSWHK.js";
|
|
22
22
|
import {
|
|
23
23
|
createDraft10Codec
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-7VQKRGRD.js";
|
|
25
25
|
import {
|
|
26
26
|
createDraft11Codec
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-A7PDMVXM.js";
|
|
28
28
|
import {
|
|
29
29
|
createDraft12Codec
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-BBICOMW6.js";
|
|
31
31
|
import {
|
|
32
32
|
createDraft13Codec
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-SQTUQY5E.js";
|
|
34
34
|
import {
|
|
35
35
|
createDraft07Codec
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-WL2YUEXH.js";
|
|
37
37
|
import {
|
|
38
38
|
createDraft08Codec
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-HZONHFNO.js";
|
|
40
40
|
import {
|
|
41
41
|
createDraft09Codec
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-FFNOE4UR.js";
|
|
43
43
|
import {
|
|
44
44
|
DecodeError
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-YRZQVNZO.js";
|
|
46
46
|
|
|
47
47
|
// src/core/accessors.ts
|
|
48
48
|
function pick(msg, names) {
|
package/dist/session.cjs
CHANGED
|
@@ -15,7 +15,7 @@ var _chunkE65QKRSNcjs = require('./chunk-E65QKRSN.cjs');
|
|
|
15
15
|
var _chunkJKOEJZ5Bcjs = require('./chunk-JKOEJZ5B.cjs');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkQ5JQGHWYcjs = require('./chunk-Q5JQGHWY.cjs');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
var _chunkYTPZZI2Mcjs = require('./chunk-YTPZZI2M.cjs');
|
|
@@ -55,7 +55,7 @@ function createSessionState(options) {
|
|
|
55
55
|
"13": _chunkLV5C6MECcjs.createDraft13SessionState,
|
|
56
56
|
"14": _chunkE65QKRSNcjs.createDraft14SessionState,
|
|
57
57
|
"15": _chunkJKOEJZ5Bcjs.createDraft15SessionState,
|
|
58
|
-
"16":
|
|
58
|
+
"16": _chunkQ5JQGHWYcjs.createDraft16SessionState,
|
|
59
59
|
"17": _chunkYTPZZI2Mcjs.createDraft17SessionState,
|
|
60
60
|
"18": _chunkA655PHFXcjs.createDraft18SessionState,
|
|
61
61
|
"19": _chunkCQ65LKPQcjs.createDraft19SessionState,
|
package/dist/session.d.cts
CHANGED
|
@@ -9,12 +9,12 @@ import { D as Draft11Message, a as Draft11MessageType } from './types-D0kTgUuL.c
|
|
|
9
9
|
import { D as Draft12Message, a as Draft12MessageType } from './types-CI_SX4Xe.cjs';
|
|
10
10
|
import { D as Draft13Message, a as Draft13MessageType } from './types-DjxexghA.cjs';
|
|
11
11
|
import { D as Draft14Message, a as Draft14MessageType } from './types-CmqT0jUf.cjs';
|
|
12
|
-
import { D as Draft15Message, a as Draft15MessageType } from './types-
|
|
13
|
-
import { D as Draft16Message, a as Draft16MessageType } from './types-
|
|
14
|
-
import { D as Draft17Message, a as Draft17MessageType } from './types-
|
|
15
|
-
import { D as Draft18Message, a as Draft18MessageType } from './types-
|
|
16
|
-
import { D as Draft19Message, a as Draft19MessageType } from './types-
|
|
17
|
-
import { D as Draft20Message, a as Draft20MessageType } from './types-
|
|
12
|
+
import { D as Draft15Message, a as Draft15MessageType } from './types-CuibHYcf.cjs';
|
|
13
|
+
import { D as Draft16Message, a as Draft16MessageType } from './types-BxTL1NXw.cjs';
|
|
14
|
+
import { D as Draft17Message, a as Draft17MessageType } from './types-DAnalt5K.cjs';
|
|
15
|
+
import { D as Draft18Message, a as Draft18MessageType } from './types-DxXNP32l.cjs';
|
|
16
|
+
import { D as Draft19Message, a as Draft19MessageType } from './types-Btp416jt.cjs';
|
|
17
|
+
import { D as Draft20Message, a as Draft20MessageType } from './types-CwN7AEoL.cjs';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @moqtap/codec/session — MoQT session state machine
|
package/dist/session.d.ts
CHANGED
|
@@ -9,12 +9,12 @@ import { D as Draft11Message, a as Draft11MessageType } from './types-D0kTgUuL.j
|
|
|
9
9
|
import { D as Draft12Message, a as Draft12MessageType } from './types-CI_SX4Xe.js';
|
|
10
10
|
import { D as Draft13Message, a as Draft13MessageType } from './types-DjxexghA.js';
|
|
11
11
|
import { D as Draft14Message, a as Draft14MessageType } from './types-CmqT0jUf.js';
|
|
12
|
-
import { D as Draft15Message, a as Draft15MessageType } from './types-
|
|
13
|
-
import { D as Draft16Message, a as Draft16MessageType } from './types-
|
|
14
|
-
import { D as Draft17Message, a as Draft17MessageType } from './types-
|
|
15
|
-
import { D as Draft18Message, a as Draft18MessageType } from './types-
|
|
16
|
-
import { D as Draft19Message, a as Draft19MessageType } from './types-
|
|
17
|
-
import { D as Draft20Message, a as Draft20MessageType } from './types-
|
|
12
|
+
import { D as Draft15Message, a as Draft15MessageType } from './types-CuibHYcf.js';
|
|
13
|
+
import { D as Draft16Message, a as Draft16MessageType } from './types-BxTL1NXw.js';
|
|
14
|
+
import { D as Draft17Message, a as Draft17MessageType } from './types-DAnalt5K.js';
|
|
15
|
+
import { D as Draft18Message, a as Draft18MessageType } from './types-DxXNP32l.js';
|
|
16
|
+
import { D as Draft19Message, a as Draft19MessageType } from './types-Btp416jt.js';
|
|
17
|
+
import { D as Draft20Message, a as Draft20MessageType } from './types-CwN7AEoL.js';
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* @moqtap/codec/session — MoQT session state machine
|
package/dist/session.js
CHANGED
|
@@ -250,10 +250,18 @@ interface FetchStream {
|
|
|
250
250
|
type Draft19DataStream = SubgroupStream | DatagramObject | FetchStream;
|
|
251
251
|
interface SubgroupStreamHeader {
|
|
252
252
|
readonly type: 'subgroup_header';
|
|
253
|
+
/**
|
|
254
|
+
* The stream Type Flags, the same value `SubgroupStream.headerType` carries.
|
|
255
|
+
* Without it the incremental decoder drops every flag the header encodes
|
|
256
|
+
* and a consumer cannot tell the modes apart.
|
|
257
|
+
*/
|
|
258
|
+
readonly headerType: number;
|
|
253
259
|
readonly trackAlias: bigint;
|
|
254
260
|
readonly groupId: bigint;
|
|
255
261
|
readonly subgroupId: bigint;
|
|
256
262
|
readonly publisherPriority: number;
|
|
263
|
+
readonly endOfGroup?: boolean;
|
|
264
|
+
readonly firstObject?: boolean;
|
|
257
265
|
}
|
|
258
266
|
interface FetchStreamHeader {
|
|
259
267
|
readonly type: 'fetch_header';
|
|
@@ -250,10 +250,18 @@ interface FetchStream {
|
|
|
250
250
|
type Draft19DataStream = SubgroupStream | DatagramObject | FetchStream;
|
|
251
251
|
interface SubgroupStreamHeader {
|
|
252
252
|
readonly type: 'subgroup_header';
|
|
253
|
+
/**
|
|
254
|
+
* The stream Type Flags, the same value `SubgroupStream.headerType` carries.
|
|
255
|
+
* Without it the incremental decoder drops every flag the header encodes
|
|
256
|
+
* and a consumer cannot tell the modes apart.
|
|
257
|
+
*/
|
|
258
|
+
readonly headerType: number;
|
|
253
259
|
readonly trackAlias: bigint;
|
|
254
260
|
readonly groupId: bigint;
|
|
255
261
|
readonly subgroupId: bigint;
|
|
256
262
|
readonly publisherPriority: number;
|
|
263
|
+
readonly endOfGroup?: boolean;
|
|
264
|
+
readonly firstObject?: boolean;
|
|
257
265
|
}
|
|
258
266
|
interface FetchStreamHeader {
|
|
259
267
|
readonly type: 'fetch_header';
|
|
@@ -249,10 +249,17 @@ interface FetchStream {
|
|
|
249
249
|
type Draft16DataStream = SubgroupStream | DatagramObject | FetchStream;
|
|
250
250
|
interface SubgroupStreamHeader {
|
|
251
251
|
readonly type: 'subgroup_header';
|
|
252
|
+
/**
|
|
253
|
+
* The stream Type Flags, the same value `SubgroupStream.headerType` carries.
|
|
254
|
+
* Without it the incremental decoder drops every flag the header encodes
|
|
255
|
+
* and a consumer cannot tell the modes apart.
|
|
256
|
+
*/
|
|
257
|
+
readonly headerType: number;
|
|
252
258
|
readonly trackAlias: bigint;
|
|
253
259
|
readonly groupId: bigint;
|
|
254
260
|
readonly subgroupId: bigint;
|
|
255
261
|
readonly publisherPriority: number;
|
|
262
|
+
readonly endOfGroup?: boolean;
|
|
256
263
|
}
|
|
257
264
|
interface FetchStreamHeader {
|
|
258
265
|
readonly type: 'fetch_header';
|