@moqtap/codec 0.9.0 → 0.10.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 +26 -0
- package/dist/{chunk-KCH4BQXK.cjs → chunk-AQ445VV7.cjs} +15 -9
- package/dist/{chunk-UZO5Z2XT.cjs → chunk-BIBMDTU5.cjs} +12 -6
- package/dist/{chunk-23KRITJ6.js → chunk-BX2N7TZM.js} +14 -8
- package/dist/{chunk-XQGEOFGE.js → chunk-CF5DDD3Q.js} +14 -8
- package/dist/{chunk-YJGOD3Y4.js → chunk-FT3HDNIB.js} +33 -21
- package/dist/{chunk-TMXRYOBS.js → chunk-G53WYUXL.js} +13 -7
- package/dist/{chunk-JKMYAUGY.js → chunk-K2B3OVFK.js} +11 -8
- package/dist/{chunk-Q7NSUXXB.js → chunk-KGDVC4O6.js} +33 -21
- package/dist/{chunk-TVSFDQYE.cjs → chunk-KTNERCTZ.cjs} +33 -21
- package/dist/{chunk-H6DTAIWM.js → chunk-L5DRACXS.js} +22 -16
- package/dist/{chunk-UA5XFP4O.cjs → chunk-OUNN4IQB.cjs} +14 -8
- package/dist/{chunk-NH4L6NIY.js → chunk-OZRK73NQ.js} +12 -6
- package/dist/{chunk-PU2KV7VP.cjs → chunk-RYKQXBG6.cjs} +12 -6
- package/dist/{chunk-EVCPBFSR.cjs → chunk-SDJTSMOW.cjs} +23 -17
- package/dist/{chunk-MAXEHYVB.cjs → chunk-T4VWPKDG.cjs} +33 -21
- package/dist/{chunk-2XH6PHXR.js → chunk-TSUZ6GJV.js} +12 -6
- package/dist/{chunk-QGIHC6BA.cjs → chunk-UKKDOOUO.cjs} +12 -9
- package/dist/{chunk-BV6MITLO.js → chunk-WCPENYNE.js} +14 -8
- package/dist/{chunk-IADVBKEJ.cjs → chunk-WCTMPDUX.cjs} +15 -9
- package/dist/{chunk-7ENEWAMZ.cjs → chunk-XCRCAUGI.cjs} +15 -9
- package/dist/{codec-BMwgZIgG.d.ts → codec-08ZOr5wI.d.ts} +1 -1
- package/dist/{codec-DzLvG8Wb.d.cts → codec-Bd60SGKH.d.cts} +1 -1
- package/dist/{codec-CgZdadPt.d.cts → codec-BrTi4K7r.d.cts} +1 -1
- package/dist/{codec-D4RvFQmu.d.ts → codec-Bux_Q40X.d.ts} +1 -1
- package/dist/{codec-vddqy0KY.d.cts → codec-BxQTybUX.d.cts} +1 -1
- package/dist/{codec-C006F75E.d.ts → codec-C3mdsGx3.d.ts} +1 -1
- package/dist/{codec-CviAa4lp.d.ts → codec-CBdOIfMY.d.ts} +1 -1
- package/dist/{codec-Bym-K2q2.d.cts → codec-CFWu5KVT.d.cts} +1 -1
- package/dist/{codec-DJmqoIsp.d.cts → codec-CWnf8mn_.d.cts} +1 -1
- package/dist/{codec-BQa6Qsav.d.ts → codec-Cm3D261p.d.ts} +1 -1
- package/dist/{codec-C5evFHL-.d.ts → codec-CwZ6OCPP.d.ts} +1 -1
- package/dist/{codec-DchsPfr3.d.cts → codec-Czejcmxr.d.cts} +1 -1
- package/dist/{codec-C_xxsbKy.d.cts → codec-DNmiG2e0.d.cts} +1 -1
- package/dist/{codec-O-1Js7h4.d.ts → codec-DOmAmFkI.d.ts} +1 -1
- package/dist/{codec-Cl73EfRW.d.ts → codec-DaXjRrOV.d.ts} +1 -1
- package/dist/{codec-DAyiF5sq.d.cts → codec-EvybrBuY.d.cts} +1 -1
- package/dist/{codec-CA6nbbEk.d.ts → codec-alVA27Uc.d.ts} +1 -1
- package/dist/{codec-CSBFdPgP.d.cts → codec-f7vxeVIS.d.cts} +1 -1
- package/dist/{codec-BKsVu3Fr.d.ts → codec-gl4_QEva.d.ts} +1 -1
- package/dist/{codec-CtvFK4aV.d.cts → codec-guzqtfMk.d.cts} +1 -1
- package/dist/draft11-session.d.cts +1 -1
- package/dist/draft11-session.d.ts +1 -1
- package/dist/draft11.cjs +2 -2
- package/dist/draft11.d.cts +3 -3
- package/dist/draft11.d.ts +3 -3
- package/dist/draft11.js +1 -1
- package/dist/draft12-session.d.cts +1 -1
- package/dist/draft12-session.d.ts +1 -1
- package/dist/draft12.cjs +2 -2
- package/dist/draft12.d.cts +3 -3
- package/dist/draft12.d.ts +3 -3
- package/dist/draft12.js +1 -1
- package/dist/draft13-session.d.cts +1 -1
- package/dist/draft13-session.d.ts +1 -1
- package/dist/draft13.cjs +2 -2
- package/dist/draft13.d.cts +3 -3
- package/dist/draft13.d.ts +3 -3
- package/dist/draft13.js +1 -1
- package/dist/draft14-session.d.cts +1 -1
- package/dist/draft14-session.d.ts +1 -1
- package/dist/draft14.cjs +2 -2
- package/dist/draft14.d.cts +3 -3
- package/dist/draft14.d.ts +3 -3
- package/dist/draft14.js +1 -1
- package/dist/draft15-session.d.cts +1 -1
- package/dist/draft15-session.d.ts +1 -1
- package/dist/draft15.cjs +2 -2
- package/dist/draft15.d.cts +3 -3
- package/dist/draft15.d.ts +3 -3
- package/dist/draft15.js +1 -1
- package/dist/draft16-session.d.cts +1 -1
- package/dist/draft16-session.d.ts +1 -1
- package/dist/draft16.cjs +2 -2
- package/dist/draft16.d.cts +3 -3
- package/dist/draft16.d.ts +3 -3
- package/dist/draft16.js +1 -1
- package/dist/draft17-session.d.cts +1 -1
- package/dist/draft17-session.d.ts +1 -1
- package/dist/draft17.cjs +2 -2
- package/dist/draft17.d.cts +3 -3
- package/dist/draft17.d.ts +3 -3
- package/dist/draft17.js +1 -1
- package/dist/draft18-session.d.cts +1 -1
- package/dist/draft18-session.d.ts +1 -1
- package/dist/draft18.cjs +2 -2
- package/dist/draft18.d.cts +3 -3
- package/dist/draft18.d.ts +3 -3
- package/dist/draft18.js +1 -1
- package/dist/draft19-session.d.cts +1 -1
- package/dist/draft19-session.d.ts +1 -1
- 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.d.cts +1 -1
- package/dist/draft20-session.d.ts +1 -1
- package/dist/draft20.cjs +2 -2
- package/dist/draft20.d.cts +3 -3
- package/dist/draft20.d.ts +3 -3
- package/dist/draft20.js +1 -1
- package/dist/index.cjs +20 -20
- package/dist/index.d.cts +20 -20
- package/dist/index.d.ts +20 -20
- package/dist/index.js +10 -10
- package/dist/session.d.cts +10 -10
- package/dist/session.d.ts +10 -10
- package/dist/{types-Cqp10JtB.d.cts → types-Bg86GGVZ.d.cts} +2 -2
- package/dist/{types-Cqp10JtB.d.ts → types-Bg86GGVZ.d.ts} +2 -2
- package/dist/{types-zHgCS6o5.d.cts → types-C1rxh-id.d.cts} +7 -7
- package/dist/{types-zHgCS6o5.d.ts → types-C1rxh-id.d.ts} +7 -7
- package/dist/{types-Bio-91Rt.d.cts → types-CI_SX4Xe.d.cts} +2 -2
- package/dist/{types-Bio-91Rt.d.ts → types-CI_SX4Xe.d.ts} +2 -2
- package/dist/{types-CWCQwuvy.d.cts → types-CY-QWxd-.d.cts} +11 -11
- package/dist/{types-CWCQwuvy.d.ts → types-CY-QWxd-.d.ts} +11 -11
- package/dist/{types-Cm9fjeYC.d.cts → types-CZTzbIzQ.d.cts} +2 -2
- package/dist/{types-Cm9fjeYC.d.ts → types-CZTzbIzQ.d.ts} +2 -2
- package/dist/{types-HI_bbXka.d.cts → types-CmqT0jUf.d.cts} +1 -1
- package/dist/{types-HI_bbXka.d.ts → types-CmqT0jUf.d.ts} +1 -1
- package/dist/{types-Ck45Ex5S.d.cts → types-D0kTgUuL.d.cts} +1 -1
- package/dist/{types-Ck45Ex5S.d.ts → types-D0kTgUuL.d.ts} +1 -1
- package/dist/{types-D9eiB_9A.d.cts → types-D4bmW8rY.d.cts} +2 -2
- package/dist/{types-D9eiB_9A.d.ts → types-D4bmW8rY.d.ts} +2 -2
- package/dist/{types-CXlSn0I9.d.cts → types-DjxexghA.d.cts} +2 -2
- package/dist/{types-CXlSn0I9.d.ts → types-DjxexghA.d.ts} +2 -2
- package/dist/{types-CPaYBsMG.d.cts → types-pShrs3fN.d.cts} +2 -2
- package/dist/{types-CPaYBsMG.d.ts → types-pShrs3fN.d.ts} +2 -2
- package/package.json +2 -2
- package/src/drafts/draft11/codec.ts +11 -8
- package/src/drafts/draft11/types.ts +1 -1
- package/src/drafts/draft12/codec.ts +22 -16
- package/src/drafts/draft12/types.ts +2 -2
- package/src/drafts/draft13/codec.ts +14 -8
- package/src/drafts/draft13/types.ts +2 -2
- package/src/drafts/draft14/codec.ts +14 -8
- package/src/drafts/draft14/types.ts +1 -1
- package/src/drafts/draft15/codec.ts +14 -8
- package/src/drafts/draft15/types.ts +2 -2
- package/src/drafts/draft16/codec.ts +13 -7
- package/src/drafts/draft16/types.ts +2 -2
- package/src/drafts/draft17/codec.ts +12 -6
- package/src/drafts/draft17/types.ts +2 -2
- package/src/drafts/draft18/codec.ts +12 -6
- package/src/drafts/draft18/types.ts +2 -2
- package/src/drafts/draft19/codec.ts +33 -21
- package/src/drafts/draft19/types.ts +10 -7
- package/src/drafts/draft20/codec.ts +33 -21
- package/src/drafts/draft20/types.ts +17 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -428,13 +428,13 @@ function decodeSetupParams(r) {
|
|
|
428
428
|
}
|
|
429
429
|
function encodeParams(params, w) {
|
|
430
430
|
let count = params.unknown ? params.unknown.length : 0;
|
|
431
|
-
|
|
431
|
+
count += _nullishCoalesce(_optionalChain([params, 'access', _2 => _2.authorization_token, 'optionalAccess', _3 => _3.length]), () => ( 0));
|
|
432
432
|
if (params.delivery_timeout !== void 0) count++;
|
|
433
433
|
if (params.max_cache_duration !== void 0) count++;
|
|
434
434
|
w.writeVarInt(count);
|
|
435
|
-
|
|
435
|
+
for (const token of _nullishCoalesce(params.authorization_token, () => ( []))) {
|
|
436
436
|
w.writeVarInt(PARAM_AUTHORIZATION_TOKEN);
|
|
437
|
-
const at =
|
|
437
|
+
const at = token;
|
|
438
438
|
const tmpW = new (0, _chunk4XLYCT5Qcjs.BufferWriter)(64);
|
|
439
439
|
tmpW.writeVarInt(at.alias_type);
|
|
440
440
|
tmpW.writeVarInt(at.token_type);
|
|
@@ -497,11 +497,14 @@ function decodeParams(r) {
|
|
|
497
497
|
const token_type = r.readVarInt();
|
|
498
498
|
const tokenBytesLen = length - (r.offset - startOff);
|
|
499
499
|
const tokenBytes = r.readBytes(tokenBytesLen);
|
|
500
|
-
result.authorization_token =
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
500
|
+
result.authorization_token = [
|
|
501
|
+
..._nullishCoalesce(result.authorization_token, () => ( [])),
|
|
502
|
+
{
|
|
503
|
+
alias_type,
|
|
504
|
+
token_type,
|
|
505
|
+
token_value: tokenBytes
|
|
506
|
+
}
|
|
507
|
+
];
|
|
505
508
|
} else {
|
|
506
509
|
const bytes = r.readBytes(length);
|
|
507
510
|
unknown.push({
|
|
@@ -747,7 +747,7 @@ function encodeSetupParams(params, writer) {
|
|
|
747
747
|
let count = 0;
|
|
748
748
|
if (params.path !== void 0) count++;
|
|
749
749
|
if (params.max_request_id !== void 0) count++;
|
|
750
|
-
|
|
750
|
+
count += params.authorization_token?.length ?? 0;
|
|
751
751
|
if (params.max_auth_token_cache_size !== void 0) count++;
|
|
752
752
|
if (params.authority !== void 0) count++;
|
|
753
753
|
if (params.moqt_implementation !== void 0) count++;
|
|
@@ -763,10 +763,10 @@ function encodeSetupParams(params, writer) {
|
|
|
763
763
|
writer.writeVarInt(SETUP_PARAM_MAX_REQUEST_ID);
|
|
764
764
|
writer.writeVarInt(params.max_request_id);
|
|
765
765
|
}
|
|
766
|
-
|
|
766
|
+
for (const token of params.authorization_token ?? []) {
|
|
767
767
|
writer.writeVarInt(SETUP_PARAM_AUTHORIZATION_TOKEN);
|
|
768
768
|
const tmpW = new BufferWriter(64);
|
|
769
|
-
encodeAuthorizationToken(
|
|
769
|
+
encodeAuthorizationToken(token, tmpW);
|
|
770
770
|
const raw = tmpW.finish();
|
|
771
771
|
writer.writeVarInt(raw.byteLength);
|
|
772
772
|
writer.writeBytes(raw);
|
|
@@ -832,7 +832,10 @@ function decodeSetupParams(reader) {
|
|
|
832
832
|
if (paramType === SETUP_PARAM_PATH) {
|
|
833
833
|
result.path = textDecoder.decode(bytes);
|
|
834
834
|
} else if (paramType === SETUP_PARAM_AUTHORIZATION_TOKEN) {
|
|
835
|
-
result.authorization_token =
|
|
835
|
+
result.authorization_token = [
|
|
836
|
+
...result.authorization_token ?? [],
|
|
837
|
+
decodeAuthorizationToken(new BufferReader(bytes))
|
|
838
|
+
];
|
|
836
839
|
} else if (paramType === SETUP_PARAM_AUTHORITY) {
|
|
837
840
|
result.authority = textDecoder.decode(bytes);
|
|
838
841
|
} else if (paramType === SETUP_PARAM_MOQT_IMPLEMENTATION) {
|
|
@@ -890,7 +893,7 @@ var PARAM_NEW_GROUP_REQUEST = 0x32n;
|
|
|
890
893
|
function encodeParams(params, writer) {
|
|
891
894
|
let count = params.unknown ? params.unknown.length : 0;
|
|
892
895
|
if (params.delivery_timeout !== void 0) count++;
|
|
893
|
-
|
|
896
|
+
count += params.authorization_token?.length ?? 0;
|
|
894
897
|
if (params.max_cache_duration !== void 0) count++;
|
|
895
898
|
if (params.expires !== void 0) count++;
|
|
896
899
|
if (params.largest_object !== void 0) count++;
|
|
@@ -906,10 +909,10 @@ function encodeParams(params, writer) {
|
|
|
906
909
|
writer.writeVarInt(PARAM_DELIVERY_TIMEOUT);
|
|
907
910
|
writer.writeVarInt(params.delivery_timeout);
|
|
908
911
|
}
|
|
909
|
-
|
|
912
|
+
for (const token of params.authorization_token ?? []) {
|
|
910
913
|
writer.writeVarInt(PARAM_AUTHORIZATION_TOKEN);
|
|
911
914
|
const tmpW = new BufferWriter(64);
|
|
912
|
-
encodeAuthorizationToken(
|
|
915
|
+
encodeAuthorizationToken(token, tmpW);
|
|
913
916
|
const raw = tmpW.finish();
|
|
914
917
|
writer.writeVarInt(raw.byteLength);
|
|
915
918
|
writer.writeBytes(raw);
|
|
@@ -999,7 +1002,10 @@ function decodeParams(reader) {
|
|
|
999
1002
|
} else if (paramType === PARAM_AUTHORIZATION_TOKEN) {
|
|
1000
1003
|
const length = Number(reader.readVarInt());
|
|
1001
1004
|
const tokenBytes = reader.readBytes(length);
|
|
1002
|
-
result.authorization_token =
|
|
1005
|
+
result.authorization_token = [
|
|
1006
|
+
...result.authorization_token ?? [],
|
|
1007
|
+
decodeAuthorizationToken(new BufferReader(tokenBytes))
|
|
1008
|
+
];
|
|
1003
1009
|
} else if (paramType === PARAM_MAX_CACHE_DURATION) {
|
|
1004
1010
|
result.max_cache_duration = reader.readVarInt();
|
|
1005
1011
|
} else if (paramType === PARAM_EXPIRES) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -747,7 +747,7 @@ function encodeSetupParams(params, writer) {
|
|
|
747
747
|
let count = 0;
|
|
748
748
|
if (params.path !== void 0) count++;
|
|
749
749
|
if (params.max_request_id !== void 0) count++;
|
|
750
|
-
|
|
750
|
+
count += _nullishCoalesce(_optionalChain([params, 'access', _ => _.authorization_token, 'optionalAccess', _2 => _2.length]), () => ( 0));
|
|
751
751
|
if (params.max_auth_token_cache_size !== void 0) count++;
|
|
752
752
|
if (params.authority !== void 0) count++;
|
|
753
753
|
if (params.moqt_implementation !== void 0) count++;
|
|
@@ -763,10 +763,10 @@ function encodeSetupParams(params, writer) {
|
|
|
763
763
|
writer.writeVarInt(SETUP_PARAM_MAX_REQUEST_ID);
|
|
764
764
|
writer.writeVarInt(params.max_request_id);
|
|
765
765
|
}
|
|
766
|
-
|
|
766
|
+
for (const token of _nullishCoalesce(params.authorization_token, () => ( []))) {
|
|
767
767
|
writer.writeVarInt(SETUP_PARAM_AUTHORIZATION_TOKEN);
|
|
768
768
|
const tmpW = new (0, _chunk4XLYCT5Qcjs.BufferWriter)(64);
|
|
769
|
-
encodeAuthorizationToken(
|
|
769
|
+
encodeAuthorizationToken(token, tmpW);
|
|
770
770
|
const raw = tmpW.finish();
|
|
771
771
|
writer.writeVarInt(raw.byteLength);
|
|
772
772
|
writer.writeBytes(raw);
|
|
@@ -832,7 +832,10 @@ function decodeSetupParams(reader) {
|
|
|
832
832
|
if (paramType === SETUP_PARAM_PATH) {
|
|
833
833
|
result.path = textDecoder.decode(bytes);
|
|
834
834
|
} else if (paramType === SETUP_PARAM_AUTHORIZATION_TOKEN) {
|
|
835
|
-
result.authorization_token =
|
|
835
|
+
result.authorization_token = [
|
|
836
|
+
..._nullishCoalesce(result.authorization_token, () => ( [])),
|
|
837
|
+
decodeAuthorizationToken(new (0, _chunk4XLYCT5Qcjs.BufferReader)(bytes))
|
|
838
|
+
];
|
|
836
839
|
} else if (paramType === SETUP_PARAM_AUTHORITY) {
|
|
837
840
|
result.authority = textDecoder.decode(bytes);
|
|
838
841
|
} else if (paramType === SETUP_PARAM_MOQT_IMPLEMENTATION) {
|
|
@@ -890,7 +893,7 @@ var PARAM_NEW_GROUP_REQUEST = 0x32n;
|
|
|
890
893
|
function encodeParams(params, writer) {
|
|
891
894
|
let count = params.unknown ? params.unknown.length : 0;
|
|
892
895
|
if (params.delivery_timeout !== void 0) count++;
|
|
893
|
-
|
|
896
|
+
count += _nullishCoalesce(_optionalChain([params, 'access', _3 => _3.authorization_token, 'optionalAccess', _4 => _4.length]), () => ( 0));
|
|
894
897
|
if (params.max_cache_duration !== void 0) count++;
|
|
895
898
|
if (params.expires !== void 0) count++;
|
|
896
899
|
if (params.largest_object !== void 0) count++;
|
|
@@ -906,10 +909,10 @@ function encodeParams(params, writer) {
|
|
|
906
909
|
writer.writeVarInt(PARAM_DELIVERY_TIMEOUT);
|
|
907
910
|
writer.writeVarInt(params.delivery_timeout);
|
|
908
911
|
}
|
|
909
|
-
|
|
912
|
+
for (const token of _nullishCoalesce(params.authorization_token, () => ( []))) {
|
|
910
913
|
writer.writeVarInt(PARAM_AUTHORIZATION_TOKEN);
|
|
911
914
|
const tmpW = new (0, _chunk4XLYCT5Qcjs.BufferWriter)(64);
|
|
912
|
-
encodeAuthorizationToken(
|
|
915
|
+
encodeAuthorizationToken(token, tmpW);
|
|
913
916
|
const raw = tmpW.finish();
|
|
914
917
|
writer.writeVarInt(raw.byteLength);
|
|
915
918
|
writer.writeBytes(raw);
|
|
@@ -999,7 +1002,10 @@ function decodeParams(reader) {
|
|
|
999
1002
|
} else if (paramType === PARAM_AUTHORIZATION_TOKEN) {
|
|
1000
1003
|
const length = Number(reader.readVarInt());
|
|
1001
1004
|
const tokenBytes = reader.readBytes(length);
|
|
1002
|
-
result.authorization_token =
|
|
1005
|
+
result.authorization_token = [
|
|
1006
|
+
..._nullishCoalesce(result.authorization_token, () => ( [])),
|
|
1007
|
+
decodeAuthorizationToken(new (0, _chunk4XLYCT5Qcjs.BufferReader)(tokenBytes))
|
|
1008
|
+
];
|
|
1003
1009
|
} else if (paramType === PARAM_MAX_CACHE_DURATION) {
|
|
1004
1010
|
result.max_cache_duration = reader.readVarInt();
|
|
1005
1011
|
} else if (paramType === PARAM_EXPIRES) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
@@ -801,7 +801,7 @@ function encodeSetupParams(params, writer) {
|
|
|
801
801
|
if (params.role !== void 0) count++;
|
|
802
802
|
if (params.path !== void 0) count++;
|
|
803
803
|
if (params.max_request_id !== void 0) count++;
|
|
804
|
-
|
|
804
|
+
count += _nullishCoalesce(_optionalChain([params, 'access', _ => _.authorization_token, 'optionalAccess', _2 => _2.length]), () => ( 0));
|
|
805
805
|
if (params.authority !== void 0) count++;
|
|
806
806
|
if (params.max_auth_token_cache_size !== void 0) count++;
|
|
807
807
|
if (params.moqt_implementation !== void 0) count++;
|
|
@@ -821,9 +821,9 @@ function encodeSetupParams(params, writer) {
|
|
|
821
821
|
writer.writeVarInt(PARAM_MAX_REQUEST_ID);
|
|
822
822
|
writer.writeVarInt(params.max_request_id);
|
|
823
823
|
}
|
|
824
|
-
|
|
824
|
+
for (const token of _nullishCoalesce(params.authorization_token, () => ( []))) {
|
|
825
825
|
writer.writeVarInt(PARAM_AUTHORIZATION_TOKEN);
|
|
826
|
-
const tok =
|
|
826
|
+
const tok = token;
|
|
827
827
|
const tmpWriter = new (0, _chunk4XLYCT5Qcjs.BufferWriter)(64);
|
|
828
828
|
tmpWriter.writeVarInt(tok.alias_type);
|
|
829
829
|
if (tok.token_type !== void 0) {
|
|
@@ -905,7 +905,10 @@ function decodeSetupParams(reader) {
|
|
|
905
905
|
tok.token_value = new Uint8Array(tokenValue);
|
|
906
906
|
}
|
|
907
907
|
}
|
|
908
|
-
result.authorization_token =
|
|
908
|
+
result.authorization_token = [
|
|
909
|
+
..._nullishCoalesce(result.authorization_token, () => ( [])),
|
|
910
|
+
tok
|
|
911
|
+
];
|
|
909
912
|
} else if (paramType === PARAM_AUTHORITY) {
|
|
910
913
|
result.authority = textDecoder.decode(bytes);
|
|
911
914
|
} else if (paramType === PARAM_MOQT_IMPLEMENTATION) {
|
|
@@ -925,7 +928,7 @@ function decodeSetupParams(reader) {
|
|
|
925
928
|
function encodeMessageParams(params, writer) {
|
|
926
929
|
let count = 0;
|
|
927
930
|
if (params.delivery_timeout !== void 0) count++;
|
|
928
|
-
|
|
931
|
+
count += _nullishCoalesce(_optionalChain([params, 'access', _3 => _3.authorization_token, 'optionalAccess', _4 => _4.length]), () => ( 0));
|
|
929
932
|
if (params.max_cache_duration !== void 0) count++;
|
|
930
933
|
if (params.unknown) count += params.unknown.length;
|
|
931
934
|
writer.writeVarInt(count);
|
|
@@ -933,9 +936,9 @@ function encodeMessageParams(params, writer) {
|
|
|
933
936
|
writer.writeVarInt(PARAM_DELIVERY_TIMEOUT);
|
|
934
937
|
writer.writeVarInt(params.delivery_timeout);
|
|
935
938
|
}
|
|
936
|
-
|
|
939
|
+
for (const token of _nullishCoalesce(params.authorization_token, () => ( []))) {
|
|
937
940
|
writer.writeVarInt(PARAM_AUTHORIZATION_TOKEN);
|
|
938
|
-
const tok =
|
|
941
|
+
const tok = token;
|
|
939
942
|
const tmpWriter = new (0, _chunk4XLYCT5Qcjs.BufferWriter)(64);
|
|
940
943
|
tmpWriter.writeVarInt(tok.alias_type);
|
|
941
944
|
if (tok.token_type !== void 0) {
|
|
@@ -1001,7 +1004,10 @@ function decodeMessageParams(reader) {
|
|
|
1001
1004
|
tok.token_value = new Uint8Array(tokenValue);
|
|
1002
1005
|
}
|
|
1003
1006
|
}
|
|
1004
|
-
result.authorization_token =
|
|
1007
|
+
result.authorization_token = [
|
|
1008
|
+
..._nullishCoalesce(result.authorization_token, () => ( [])),
|
|
1009
|
+
tok
|
|
1010
|
+
];
|
|
1005
1011
|
} else {
|
|
1006
1012
|
unknown.push({
|
|
1007
1013
|
id: `0x${paramType.toString(16)}`,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
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-
|
|
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-pShrs3fN.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-15 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
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-
|
|
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-CmqT0jUf.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-14 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
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-
|
|
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-C1rxh-id.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-18 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
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-
|
|
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-D4bmW8rY.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-17 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
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-
|
|
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-pShrs3fN.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-15 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
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-
|
|
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-CZTzbIzQ.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-16 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
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-
|
|
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-C1rxh-id.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-18 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
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-CY-QWxd-.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `PUBLISH_DONE.Stream Count` "unknown" sentinel — draft-20 Section 10.12.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
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-
|
|
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-CZTzbIzQ.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-16 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
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-
|
|
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-CmqT0jUf.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-14 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
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-
|
|
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-CY-QWxd-.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* `PUBLISH_DONE.Stream Count` "unknown" sentinel — draft-20 Section 10.12.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
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-
|
|
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-D4bmW8rY.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-17 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
-
import { D as Draft13Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft13DataStream } from './types-
|
|
2
|
+
import { D as Draft13Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft13DataStream } from './types-DjxexghA.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-13 control message.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
-
import { D as Draft13Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft13DataStream } from './types-
|
|
2
|
+
import { D as Draft13Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft13DataStream } from './types-DjxexghA.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-13 control message.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
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-
|
|
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-Bg86GGVZ.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-18 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
-
import { D as Draft11Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft11DataStream } from './types-
|
|
2
|
+
import { D as Draft11Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft11DataStream } from './types-D0kTgUuL.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-11 control message with type(varint) + length(varint) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
-
import { D as Draft11Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft11DataStream } from './types-
|
|
2
|
+
import { D as Draft11Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft11DataStream } from './types-D0kTgUuL.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-11 control message with type(varint) + length(varint) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
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-
|
|
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-Bg86GGVZ.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-18 control message with type(varint) + length(uint16 BE) + payload.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.js';
|
|
2
|
-
import { D as Draft12Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft12DataStream } from './types-
|
|
2
|
+
import { D as Draft12Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft12DataStream } from './types-CI_SX4Xe.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-12 control message.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { B as BaseCodec, b as DecodeResult } from './types-DG5_iKuv.cjs';
|
|
2
|
-
import { D as Draft12Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft12DataStream } from './types-
|
|
2
|
+
import { D as Draft12Message, S as SubgroupStream, c as DatagramObject, F as FetchStream, b as Draft12DataStream } from './types-CI_SX4Xe.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Encode a draft-12 control message.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
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
|
-
import { D as Draft11Message, a as Draft11MessageType } from './types-
|
|
3
|
+
import { D as Draft11Message, a as Draft11MessageType } from './types-D0kTgUuL.cjs';
|
|
4
4
|
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft11SessionState(role: SessionStateOptionsRole): SessionState<Draft11Message, Draft11MessageType>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
|
|
2
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
|
-
import { D as Draft11Message, a as Draft11MessageType } from './types-
|
|
3
|
+
import { D as Draft11Message, a as Draft11MessageType } from './types-D0kTgUuL.js';
|
|
4
4
|
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft11SessionState(role: SessionStateOptionsRole): SessionState<Draft11Message, Draft11MessageType>;
|
package/dist/draft11.cjs
CHANGED
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
|
|
44
44
|
|
|
45
|
-
var
|
|
45
|
+
var _chunkUKKDOOUOcjs = require('./chunk-UKKDOOUO.cjs');
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
@@ -110,4 +110,4 @@ var DRAFT_VERSION = 0xff00000bn;
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
exports.BIDIRECTIONAL_MESSAGES = _chunkJ3XCPBW3cjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkJ3XCPBW3cjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkJ3XCPBW3cjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.Draft11SessionFSM = _chunkJ3XCPBW3cjs.Draft11SessionFSM; exports.MESSAGE_ID_MAP =
|
|
113
|
+
exports.BIDIRECTIONAL_MESSAGES = _chunkJ3XCPBW3cjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkJ3XCPBW3cjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkJ3XCPBW3cjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.Draft11SessionFSM = _chunkJ3XCPBW3cjs.Draft11SessionFSM; exports.MESSAGE_ID_MAP = _chunkUKKDOOUOcjs.MESSAGE_ID_MAP; exports.MESSAGE_TYPE_MAP = _chunkUKKDOOUOcjs.MESSAGE_TYPE_MAP; exports.MSG_ANNOUNCE = _chunkUKKDOOUOcjs.MSG_ANNOUNCE; exports.MSG_ANNOUNCE_CANCEL = _chunkUKKDOOUOcjs.MSG_ANNOUNCE_CANCEL; exports.MSG_ANNOUNCE_ERROR = _chunkUKKDOOUOcjs.MSG_ANNOUNCE_ERROR; exports.MSG_ANNOUNCE_OK = _chunkUKKDOOUOcjs.MSG_ANNOUNCE_OK; exports.MSG_CLIENT_SETUP = _chunkUKKDOOUOcjs.MSG_CLIENT_SETUP; exports.MSG_FETCH = _chunkUKKDOOUOcjs.MSG_FETCH; exports.MSG_FETCH_CANCEL = _chunkUKKDOOUOcjs.MSG_FETCH_CANCEL; exports.MSG_FETCH_ERROR = _chunkUKKDOOUOcjs.MSG_FETCH_ERROR; exports.MSG_FETCH_OK = _chunkUKKDOOUOcjs.MSG_FETCH_OK; exports.MSG_GOAWAY = _chunkUKKDOOUOcjs.MSG_GOAWAY; exports.MSG_MAX_REQUEST_ID = _chunkUKKDOOUOcjs.MSG_MAX_REQUEST_ID; exports.MSG_REQUESTS_BLOCKED = _chunkUKKDOOUOcjs.MSG_REQUESTS_BLOCKED; exports.MSG_SERVER_SETUP = _chunkUKKDOOUOcjs.MSG_SERVER_SETUP; exports.MSG_SUBSCRIBE = _chunkUKKDOOUOcjs.MSG_SUBSCRIBE; exports.MSG_SUBSCRIBE_ANNOUNCES = _chunkUKKDOOUOcjs.MSG_SUBSCRIBE_ANNOUNCES; exports.MSG_SUBSCRIBE_ANNOUNCES_ERROR = _chunkUKKDOOUOcjs.MSG_SUBSCRIBE_ANNOUNCES_ERROR; exports.MSG_SUBSCRIBE_ANNOUNCES_OK = _chunkUKKDOOUOcjs.MSG_SUBSCRIBE_ANNOUNCES_OK; exports.MSG_SUBSCRIBE_DONE = _chunkUKKDOOUOcjs.MSG_SUBSCRIBE_DONE; exports.MSG_SUBSCRIBE_ERROR = _chunkUKKDOOUOcjs.MSG_SUBSCRIBE_ERROR; exports.MSG_SUBSCRIBE_OK = _chunkUKKDOOUOcjs.MSG_SUBSCRIBE_OK; exports.MSG_SUBSCRIBE_UPDATE = _chunkUKKDOOUOcjs.MSG_SUBSCRIBE_UPDATE; exports.MSG_TRACK_STATUS = _chunkUKKDOOUOcjs.MSG_TRACK_STATUS; exports.MSG_TRACK_STATUS_REQUEST = _chunkUKKDOOUOcjs.MSG_TRACK_STATUS_REQUEST; exports.MSG_UNANNOUNCE = _chunkUKKDOOUOcjs.MSG_UNANNOUNCE; exports.MSG_UNSUBSCRIBE = _chunkUKKDOOUOcjs.MSG_UNSUBSCRIBE; exports.MSG_UNSUBSCRIBE_ANNOUNCES = _chunkUKKDOOUOcjs.MSG_UNSUBSCRIBE_ANNOUNCES; exports.PARAM_AUTHORIZATION_TOKEN = _chunkUKKDOOUOcjs.PARAM_AUTHORIZATION_TOKEN; exports.PARAM_DELIVERY_TIMEOUT = _chunkUKKDOOUOcjs.PARAM_DELIVERY_TIMEOUT; exports.SERVER_ONLY_MESSAGES = _chunkJ3XCPBW3cjs.SERVER_ONLY_MESSAGES; exports.SETUP_PARAM_MAX_REQUEST_ID = _chunkUKKDOOUOcjs.SETUP_PARAM_MAX_REQUEST_ID; exports.SETUP_PARAM_PATH = _chunkUKKDOOUOcjs.SETUP_PARAM_PATH; exports.createDraft11Codec = _chunkUKKDOOUOcjs.createDraft11Codec; exports.createDraft11SessionState = _chunkJ3XCPBW3cjs.createDraft11SessionState; exports.createStreamDecoder = _chunkUKKDOOUOcjs.createStreamDecoder; exports.decodeDataStream = _chunkUKKDOOUOcjs.decodeDataStream; exports.decodeDatagram = _chunkUKKDOOUOcjs.decodeDatagram; exports.decodeFetchStream = _chunkUKKDOOUOcjs.decodeFetchStream; exports.decodeMessage = _chunkUKKDOOUOcjs.decodeMessage; exports.decodeSubgroupStream = _chunkUKKDOOUOcjs.decodeSubgroupStream; exports.encodeDatagram = _chunkUKKDOOUOcjs.encodeDatagram; exports.encodeFetchStream = _chunkUKKDOOUOcjs.encodeFetchStream; exports.encodeMessage = _chunkUKKDOOUOcjs.encodeMessage; exports.encodeSubgroupStream = _chunkUKKDOOUOcjs.encodeSubgroupStream; exports.getLegalIncoming = _chunkJ3XCPBW3cjs.getLegalIncoming; exports.getLegalOutgoing = _chunkJ3XCPBW3cjs.getLegalOutgoing;
|
package/dist/draft11.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { D as Draft11Codec, c as createDraft11Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
2
|
-
import { b as Draft11DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft11MessageType, D as Draft11Message } from './types-
|
|
3
|
-
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft11Announce, g as Draft11AnnounceCancel, h as Draft11AnnounceError, i as Draft11AnnounceOk, j as Draft11BaseMessage, k as Draft11ClientSetup, l as Draft11Fetch, m as Draft11FetchCancel, n as Draft11FetchError, o as Draft11FetchOk, p as Draft11GoAway, q as Draft11MaxRequestId, r as Draft11Params, s as Draft11RequestsBlocked, t as Draft11ServerSetup, u as Draft11SetupParams, v as Draft11Subscribe, w as Draft11SubscribeAnnounces, x as Draft11SubscribeAnnouncesError, y as Draft11SubscribeAnnouncesOk, z as Draft11SubscribeDone, B as Draft11SubscribeError, C as Draft11SubscribeOk, E as Draft11SubscribeUpdate, G as Draft11TrackStatus, H as Draft11TrackStatusRequest, I as Draft11Unannounce, J as Draft11Unsubscribe, K as Draft11UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as LargestLocation, P as ObjectPayload, Q as StandaloneFetch, R as SubgroupStreamHeader, U as UnknownParam } from './types-
|
|
1
|
+
export { D as Draft11Codec, c as createDraft11Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-EvybrBuY.cjs';
|
|
2
|
+
import { b as Draft11DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft11MessageType, D as Draft11Message } from './types-D0kTgUuL.cjs';
|
|
3
|
+
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft11Announce, g as Draft11AnnounceCancel, h as Draft11AnnounceError, i as Draft11AnnounceOk, j as Draft11BaseMessage, k as Draft11ClientSetup, l as Draft11Fetch, m as Draft11FetchCancel, n as Draft11FetchError, o as Draft11FetchOk, p as Draft11GoAway, q as Draft11MaxRequestId, r as Draft11Params, s as Draft11RequestsBlocked, t as Draft11ServerSetup, u as Draft11SetupParams, v as Draft11Subscribe, w as Draft11SubscribeAnnounces, x as Draft11SubscribeAnnouncesError, y as Draft11SubscribeAnnouncesOk, z as Draft11SubscribeDone, B as Draft11SubscribeError, C as Draft11SubscribeOk, E as Draft11SubscribeUpdate, G as Draft11TrackStatus, H as Draft11TrackStatusRequest, I as Draft11Unannounce, J as Draft11Unsubscribe, K as Draft11UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as LargestLocation, P as ObjectPayload, Q as StandaloneFetch, R as SubgroupStreamHeader, U as UnknownParam } from './types-D0kTgUuL.cjs';
|
|
4
4
|
export { createDraft11SessionState } from './draft11-session.cjs';
|
|
5
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
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';
|
package/dist/draft11.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { D as Draft11Codec, c as createDraft11Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
2
|
-
import { b as Draft11DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft11MessageType, D as Draft11Message } from './types-
|
|
3
|
-
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft11Announce, g as Draft11AnnounceCancel, h as Draft11AnnounceError, i as Draft11AnnounceOk, j as Draft11BaseMessage, k as Draft11ClientSetup, l as Draft11Fetch, m as Draft11FetchCancel, n as Draft11FetchError, o as Draft11FetchOk, p as Draft11GoAway, q as Draft11MaxRequestId, r as Draft11Params, s as Draft11RequestsBlocked, t as Draft11ServerSetup, u as Draft11SetupParams, v as Draft11Subscribe, w as Draft11SubscribeAnnounces, x as Draft11SubscribeAnnouncesError, y as Draft11SubscribeAnnouncesOk, z as Draft11SubscribeDone, B as Draft11SubscribeError, C as Draft11SubscribeOk, E as Draft11SubscribeUpdate, G as Draft11TrackStatus, H as Draft11TrackStatusRequest, I as Draft11Unannounce, J as Draft11Unsubscribe, K as Draft11UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as LargestLocation, P as ObjectPayload, Q as StandaloneFetch, R as SubgroupStreamHeader, U as UnknownParam } from './types-
|
|
1
|
+
export { D as Draft11Codec, c as createDraft11Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-alVA27Uc.js';
|
|
2
|
+
import { b as Draft11DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft11MessageType, D as Draft11Message } from './types-D0kTgUuL.js';
|
|
3
|
+
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft11Announce, g as Draft11AnnounceCancel, h as Draft11AnnounceError, i as Draft11AnnounceOk, j as Draft11BaseMessage, k as Draft11ClientSetup, l as Draft11Fetch, m as Draft11FetchCancel, n as Draft11FetchError, o as Draft11FetchOk, p as Draft11GoAway, q as Draft11MaxRequestId, r as Draft11Params, s as Draft11RequestsBlocked, t as Draft11ServerSetup, u as Draft11SetupParams, v as Draft11Subscribe, w as Draft11SubscribeAnnounces, x as Draft11SubscribeAnnouncesError, y as Draft11SubscribeAnnouncesOk, z as Draft11SubscribeDone, B as Draft11SubscribeError, C as Draft11SubscribeOk, E as Draft11SubscribeUpdate, G as Draft11TrackStatus, H as Draft11TrackStatusRequest, I as Draft11Unannounce, J as Draft11Unsubscribe, K as Draft11UnsubscribeAnnounces, L as FetchObjectPayload, M as FetchStreamHeader, N as JoiningFetch, O as LargestLocation, P as ObjectPayload, Q as StandaloneFetch, R as SubgroupStreamHeader, U as UnknownParam } from './types-D0kTgUuL.js';
|
|
4
4
|
export { createDraft11SessionState } from './draft11-session.js';
|
|
5
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
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';
|
package/dist/draft11.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-B9idsih-.cjs';
|
|
2
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
|
-
import { D as Draft12Message, a as Draft12MessageType } from './types-
|
|
3
|
+
import { D as Draft12Message, a as Draft12MessageType } from './types-CI_SX4Xe.cjs';
|
|
4
4
|
import './types-DG5_iKuv.cjs';
|
|
5
5
|
|
|
6
6
|
declare function createDraft12SessionState(role: SessionStateOptionsRole): SessionState<Draft12Message, Draft12MessageType>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { k as SessionStateOptionsRole, a as SessionState } from './session-types-Dn7b3RZM.js';
|
|
2
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
|
-
import { D as Draft12Message, a as Draft12MessageType } from './types-
|
|
3
|
+
import { D as Draft12Message, a as Draft12MessageType } from './types-CI_SX4Xe.js';
|
|
4
4
|
import './types-DG5_iKuv.js';
|
|
5
5
|
|
|
6
6
|
declare function createDraft12SessionState(role: SessionStateOptionsRole): SessionState<Draft12Message, Draft12MessageType>;
|
package/dist/draft12.cjs
CHANGED
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkSDJTSMOWcjs = require('./chunk-SDJTSMOW.cjs');
|
|
50
50
|
|
|
51
51
|
|
|
52
52
|
|
|
@@ -118,4 +118,4 @@ var DRAFT_VERSION = 0xff00000cn;
|
|
|
118
118
|
|
|
119
119
|
|
|
120
120
|
|
|
121
|
-
exports.BIDIRECTIONAL_MESSAGES = _chunkH5NSL4MOcjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkH5NSL4MOcjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkH5NSL4MOcjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.Draft12SessionFSM = _chunkH5NSL4MOcjs.Draft12SessionFSM; exports.MESSAGE_ID_MAP =
|
|
121
|
+
exports.BIDIRECTIONAL_MESSAGES = _chunkH5NSL4MOcjs.BIDIRECTIONAL_MESSAGES; exports.CLIENT_ONLY_MESSAGES = _chunkH5NSL4MOcjs.CLIENT_ONLY_MESSAGES; exports.CONTROL_MESSAGES = _chunkH5NSL4MOcjs.CONTROL_MESSAGES; exports.DRAFT_VERSION = DRAFT_VERSION; exports.Draft12SessionFSM = _chunkH5NSL4MOcjs.Draft12SessionFSM; exports.MESSAGE_ID_MAP = _chunkSDJTSMOWcjs.MESSAGE_ID_MAP; exports.MESSAGE_TYPE_MAP = _chunkSDJTSMOWcjs.MESSAGE_TYPE_MAP; exports.MSG_ANNOUNCE = _chunkSDJTSMOWcjs.MSG_ANNOUNCE; exports.MSG_ANNOUNCE_CANCEL = _chunkSDJTSMOWcjs.MSG_ANNOUNCE_CANCEL; exports.MSG_ANNOUNCE_ERROR = _chunkSDJTSMOWcjs.MSG_ANNOUNCE_ERROR; exports.MSG_ANNOUNCE_OK = _chunkSDJTSMOWcjs.MSG_ANNOUNCE_OK; exports.MSG_CLIENT_SETUP = _chunkSDJTSMOWcjs.MSG_CLIENT_SETUP; exports.MSG_FETCH = _chunkSDJTSMOWcjs.MSG_FETCH; exports.MSG_FETCH_CANCEL = _chunkSDJTSMOWcjs.MSG_FETCH_CANCEL; exports.MSG_FETCH_ERROR = _chunkSDJTSMOWcjs.MSG_FETCH_ERROR; exports.MSG_FETCH_OK = _chunkSDJTSMOWcjs.MSG_FETCH_OK; exports.MSG_GOAWAY = _chunkSDJTSMOWcjs.MSG_GOAWAY; exports.MSG_MAX_REQUEST_ID = _chunkSDJTSMOWcjs.MSG_MAX_REQUEST_ID; exports.MSG_PUBLISH = _chunkSDJTSMOWcjs.MSG_PUBLISH; exports.MSG_PUBLISH_ERROR = _chunkSDJTSMOWcjs.MSG_PUBLISH_ERROR; exports.MSG_PUBLISH_OK = _chunkSDJTSMOWcjs.MSG_PUBLISH_OK; exports.MSG_REQUESTS_BLOCKED = _chunkSDJTSMOWcjs.MSG_REQUESTS_BLOCKED; exports.MSG_SERVER_SETUP = _chunkSDJTSMOWcjs.MSG_SERVER_SETUP; exports.MSG_SUBSCRIBE = _chunkSDJTSMOWcjs.MSG_SUBSCRIBE; exports.MSG_SUBSCRIBE_ANNOUNCES = _chunkSDJTSMOWcjs.MSG_SUBSCRIBE_ANNOUNCES; exports.MSG_SUBSCRIBE_ANNOUNCES_ERROR = _chunkSDJTSMOWcjs.MSG_SUBSCRIBE_ANNOUNCES_ERROR; exports.MSG_SUBSCRIBE_ANNOUNCES_OK = _chunkSDJTSMOWcjs.MSG_SUBSCRIBE_ANNOUNCES_OK; exports.MSG_SUBSCRIBE_DONE = _chunkSDJTSMOWcjs.MSG_SUBSCRIBE_DONE; exports.MSG_SUBSCRIBE_ERROR = _chunkSDJTSMOWcjs.MSG_SUBSCRIBE_ERROR; exports.MSG_SUBSCRIBE_OK = _chunkSDJTSMOWcjs.MSG_SUBSCRIBE_OK; exports.MSG_SUBSCRIBE_UPDATE = _chunkSDJTSMOWcjs.MSG_SUBSCRIBE_UPDATE; exports.MSG_TRACK_STATUS = _chunkSDJTSMOWcjs.MSG_TRACK_STATUS; exports.MSG_TRACK_STATUS_REQUEST = _chunkSDJTSMOWcjs.MSG_TRACK_STATUS_REQUEST; exports.MSG_UNANNOUNCE = _chunkSDJTSMOWcjs.MSG_UNANNOUNCE; exports.MSG_UNSUBSCRIBE = _chunkSDJTSMOWcjs.MSG_UNSUBSCRIBE; exports.MSG_UNSUBSCRIBE_ANNOUNCES = _chunkSDJTSMOWcjs.MSG_UNSUBSCRIBE_ANNOUNCES; exports.PARAM_AUTHORIZATION_TOKEN = _chunkSDJTSMOWcjs.PARAM_AUTHORIZATION_TOKEN; exports.PARAM_DELIVERY_TIMEOUT = _chunkSDJTSMOWcjs.PARAM_DELIVERY_TIMEOUT; exports.SERVER_ONLY_MESSAGES = _chunkH5NSL4MOcjs.SERVER_ONLY_MESSAGES; exports.SETUP_PARAM_MAX_REQUEST_ID = _chunkSDJTSMOWcjs.SETUP_PARAM_MAX_REQUEST_ID; exports.SETUP_PARAM_PATH = _chunkSDJTSMOWcjs.SETUP_PARAM_PATH; exports.VARINT_FRAMED_MESSAGES = _chunkSDJTSMOWcjs.VARINT_FRAMED_MESSAGES; exports.createDraft12Codec = _chunkSDJTSMOWcjs.createDraft12Codec; exports.createDraft12SessionState = _chunkH5NSL4MOcjs.createDraft12SessionState; exports.createStreamDecoder = _chunkSDJTSMOWcjs.createStreamDecoder; exports.decodeDataStream = _chunkSDJTSMOWcjs.decodeDataStream; exports.decodeDatagram = _chunkSDJTSMOWcjs.decodeDatagram; exports.decodeFetchStream = _chunkSDJTSMOWcjs.decodeFetchStream; exports.decodeMessage = _chunkSDJTSMOWcjs.decodeMessage; exports.decodeSubgroupStream = _chunkSDJTSMOWcjs.decodeSubgroupStream; exports.encodeDatagram = _chunkSDJTSMOWcjs.encodeDatagram; exports.encodeFetchStream = _chunkSDJTSMOWcjs.encodeFetchStream; exports.encodeMessage = _chunkSDJTSMOWcjs.encodeMessage; exports.encodeSubgroupStream = _chunkSDJTSMOWcjs.encodeSubgroupStream; exports.getLegalIncoming = _chunkH5NSL4MOcjs.getLegalIncoming; exports.getLegalOutgoing = _chunkH5NSL4MOcjs.getLegalOutgoing;
|
package/dist/draft12.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { D as Draft12Codec, c as createDraft12Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
2
|
-
import { b as Draft12DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft12MessageType, D as Draft12Message } from './types-
|
|
3
|
-
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft12Announce, g as Draft12AnnounceCancel, h as Draft12AnnounceError, i as Draft12AnnounceOk, j as Draft12BaseMessage, k as Draft12ClientSetup, l as Draft12Fetch, m as Draft12FetchCancel, n as Draft12FetchError, o as Draft12FetchOk, p as Draft12GoAway, q as Draft12MaxRequestId, r as Draft12Params, s as Draft12Publish, t as Draft12PublishError, u as Draft12PublishOk, v as Draft12RequestsBlocked, w as Draft12ServerSetup, x as Draft12SetupParams, y as Draft12Subscribe, z as Draft12SubscribeAnnounces, B as Draft12SubscribeAnnouncesError, C as Draft12SubscribeAnnouncesOk, E as Draft12SubscribeDone, G as Draft12SubscribeError, H as Draft12SubscribeOk, I as Draft12SubscribeUpdate, J as Draft12TrackStatus, K as Draft12TrackStatusRequest, L as Draft12Unannounce, M as Draft12Unsubscribe, N as Draft12UnsubscribeAnnounces, O as FetchObjectPayload, P as FetchStreamHeader, Q as JoiningFetch, R as LargestLocation, T as ObjectPayload, U as StandaloneFetch, V as SubgroupStreamHeader, W as UnknownParam } from './types-
|
|
1
|
+
export { D as Draft12Codec, c as createDraft12Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-guzqtfMk.cjs';
|
|
2
|
+
import { b as Draft12DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft12MessageType, D as Draft12Message } from './types-CI_SX4Xe.cjs';
|
|
3
|
+
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft12Announce, g as Draft12AnnounceCancel, h as Draft12AnnounceError, i as Draft12AnnounceOk, j as Draft12BaseMessage, k as Draft12ClientSetup, l as Draft12Fetch, m as Draft12FetchCancel, n as Draft12FetchError, o as Draft12FetchOk, p as Draft12GoAway, q as Draft12MaxRequestId, r as Draft12Params, s as Draft12Publish, t as Draft12PublishError, u as Draft12PublishOk, v as Draft12RequestsBlocked, w as Draft12ServerSetup, x as Draft12SetupParams, y as Draft12Subscribe, z as Draft12SubscribeAnnounces, B as Draft12SubscribeAnnouncesError, C as Draft12SubscribeAnnouncesOk, E as Draft12SubscribeDone, G as Draft12SubscribeError, H as Draft12SubscribeOk, I as Draft12SubscribeUpdate, J as Draft12TrackStatus, K as Draft12TrackStatusRequest, L as Draft12Unannounce, M as Draft12Unsubscribe, N as Draft12UnsubscribeAnnounces, O as FetchObjectPayload, P as FetchStreamHeader, Q as JoiningFetch, R as LargestLocation, T as ObjectPayload, U as StandaloneFetch, V as SubgroupStreamHeader, W as UnknownParam } from './types-CI_SX4Xe.cjs';
|
|
4
4
|
export { createDraft12SessionState } from './draft12-session.cjs';
|
|
5
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
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';
|
package/dist/draft12.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { D as Draft12Codec, c as createDraft12Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-
|
|
2
|
-
import { b as Draft12DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft12MessageType, D as Draft12Message } from './types-
|
|
3
|
-
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft12Announce, g as Draft12AnnounceCancel, h as Draft12AnnounceError, i as Draft12AnnounceOk, j as Draft12BaseMessage, k as Draft12ClientSetup, l as Draft12Fetch, m as Draft12FetchCancel, n as Draft12FetchError, o as Draft12FetchOk, p as Draft12GoAway, q as Draft12MaxRequestId, r as Draft12Params, s as Draft12Publish, t as Draft12PublishError, u as Draft12PublishOk, v as Draft12RequestsBlocked, w as Draft12ServerSetup, x as Draft12SetupParams, y as Draft12Subscribe, z as Draft12SubscribeAnnounces, B as Draft12SubscribeAnnouncesError, C as Draft12SubscribeAnnouncesOk, E as Draft12SubscribeDone, G as Draft12SubscribeError, H as Draft12SubscribeOk, I as Draft12SubscribeUpdate, J as Draft12TrackStatus, K as Draft12TrackStatusRequest, L as Draft12Unannounce, M as Draft12Unsubscribe, N as Draft12UnsubscribeAnnounces, O as FetchObjectPayload, P as FetchStreamHeader, Q as JoiningFetch, R as LargestLocation, T as ObjectPayload, U as StandaloneFetch, V as SubgroupStreamHeader, W as UnknownParam } from './types-
|
|
1
|
+
export { D as Draft12Codec, c as createDraft12Codec, a as createStreamDecoder, d as decodeMessage, e as encodeMessage } from './codec-gl4_QEva.js';
|
|
2
|
+
import { b as Draft12DataStream, c as DatagramObject, F as FetchStream, S as SubgroupStream, a as Draft12MessageType, D as Draft12Message } from './types-CI_SX4Xe.js';
|
|
3
|
+
export { A as AuthorizationToken, d as DataStreamEvent, e as DataStreamHeader, f as Draft12Announce, g as Draft12AnnounceCancel, h as Draft12AnnounceError, i as Draft12AnnounceOk, j as Draft12BaseMessage, k as Draft12ClientSetup, l as Draft12Fetch, m as Draft12FetchCancel, n as Draft12FetchError, o as Draft12FetchOk, p as Draft12GoAway, q as Draft12MaxRequestId, r as Draft12Params, s as Draft12Publish, t as Draft12PublishError, u as Draft12PublishOk, v as Draft12RequestsBlocked, w as Draft12ServerSetup, x as Draft12SetupParams, y as Draft12Subscribe, z as Draft12SubscribeAnnounces, B as Draft12SubscribeAnnouncesError, C as Draft12SubscribeAnnouncesOk, E as Draft12SubscribeDone, G as Draft12SubscribeError, H as Draft12SubscribeOk, I as Draft12SubscribeUpdate, J as Draft12TrackStatus, K as Draft12TrackStatusRequest, L as Draft12Unannounce, M as Draft12Unsubscribe, N as Draft12UnsubscribeAnnounces, O as FetchObjectPayload, P as FetchStreamHeader, Q as JoiningFetch, R as LargestLocation, T as ObjectPayload, U as StandaloneFetch, V as SubgroupStreamHeader, W as UnknownParam } from './types-CI_SX4Xe.js';
|
|
4
4
|
export { createDraft12SessionState } from './draft12-session.js';
|
|
5
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
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';
|