@moq/net 0.4.7 → 0.22.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/README.md +7 -1
- package/announce.d.ts +1 -1
- package/announce.d.ts.map +1 -1
- package/announce.js +1 -2
- package/announce.js.map +1 -1
- package/announced.d.ts +51 -47
- package/announced.d.ts.map +1 -1
- package/announced.js +183 -32
- package/announced.js.map +1 -1
- package/announced.test-util.d.ts +2 -0
- package/announced.test-util.d.ts.map +1 -0
- package/announced.test-util.js +27 -0
- package/announced.test-util.js.map +1 -0
- package/auth.d.ts +64 -0
- package/auth.d.ts.map +1 -0
- package/auth.js +20 -0
- package/auth.js.map +1 -0
- package/auth_gate.d.ts +2 -0
- package/auth_gate.d.ts.map +1 -0
- package/auth_gate.js +24 -0
- package/auth_gate.js.map +1 -0
- package/auth_session.d.ts +49 -0
- package/auth_session.d.ts.map +1 -0
- package/auth_session.js +1097 -0
- package/auth_session.js.map +1 -0
- package/bandwidth.d.ts +129 -25
- package/bandwidth.d.ts.map +1 -1
- package/bandwidth.js +410 -139
- package/bandwidth.js.map +1 -1
- package/bandwidth_api.d.ts +1 -1
- package/bandwidth_api.d.ts.map +1 -1
- package/bandwidth_api.js +1 -2
- package/bandwidth_api.js.map +1 -1
- package/broadcast.d.ts +64 -38
- package/broadcast.d.ts.map +1 -1
- package/broadcast.js +556 -173
- package/broadcast.js.map +1 -1
- package/cache.d.ts +103 -0
- package/cache.d.ts.map +1 -0
- package/cache.js +254 -0
- package/cache.js.map +1 -0
- package/claim.test-util.d.ts +5 -0
- package/claim.test-util.d.ts.map +1 -0
- package/claim.test-util.js +13 -0
- package/claim.test-util.js.map +1 -0
- package/connection/accept.d.ts +21 -13
- package/connection/accept.d.ts.map +1 -1
- package/connection/accept.js +97 -130
- package/connection/accept.js.map +1 -1
- package/connection/browser.d.ts.map +1 -1
- package/connection/browser.js +28 -20
- package/connection/browser.js.map +1 -1
- package/connection/connect.d.ts +120 -24
- package/connection/connect.d.ts.map +1 -1
- package/connection/connect.js +535 -217
- package/connection/connect.js.map +1 -1
- package/connection/dials.d.ts +45 -0
- package/connection/dials.d.ts.map +1 -0
- package/connection/dials.js +109 -0
- package/connection/dials.js.map +1 -0
- package/connection/endpoint.d.ts +60 -0
- package/connection/endpoint.d.ts.map +1 -0
- package/connection/endpoint.js +114 -0
- package/connection/endpoint.js.map +1 -0
- package/connection/forward.d.ts +7 -1
- package/connection/forward.d.ts.map +1 -1
- package/connection/forward.js +265 -81
- package/connection/forward.js.map +1 -1
- package/connection/goaway.d.ts +16 -9
- package/connection/goaway.d.ts.map +1 -1
- package/connection/goaway.js +22 -95
- package/connection/goaway.js.map +1 -1
- package/connection/handshake.d.ts +34 -8
- package/connection/handshake.d.ts.map +1 -1
- package/connection/handshake.js +97 -21
- package/connection/handshake.js.map +1 -1
- package/connection/index.d.ts +4 -7
- package/connection/index.d.ts.map +1 -1
- package/connection/index.js +1 -3
- package/connection/index.js.map +1 -1
- package/connection/liveness.d.ts +14 -0
- package/connection/liveness.d.ts.map +1 -0
- package/connection/liveness.js +30 -0
- package/connection/liveness.js.map +1 -0
- package/connection/pool.d.ts +142 -63
- package/connection/pool.d.ts.map +1 -1
- package/connection/pool.js +281 -118
- package/connection/pool.js.map +1 -1
- package/connection/reload.d.ts +60 -12
- package/connection/reload.d.ts.map +1 -1
- package/connection/reload.js +859 -234
- package/connection/reload.js.map +1 -1
- package/connection/session.d.ts +91 -0
- package/connection/session.d.ts.map +1 -0
- package/connection/session.js +2 -0
- package/connection/session.js.map +1 -0
- package/connection/stats.d.ts +20 -11
- package/connection/stats.d.ts.map +1 -1
- package/connection/stats.js +64 -9
- package/connection/stats.js.map +1 -1
- package/connection/ticker.d.ts +4 -0
- package/connection/ticker.d.ts.map +1 -0
- package/connection/ticker.js +66 -0
- package/connection/ticker.js.map +1 -0
- package/connection/tokens.d.ts +2 -0
- package/connection/tokens.d.ts.map +1 -0
- package/connection/tokens.js +404 -0
- package/connection/tokens.js.map +1 -0
- package/connection/transport.d.ts.map +1 -1
- package/connection/transport.js +4 -5
- package/connection/transport.js.map +1 -1
- package/connection/withdrawal.d.ts +2 -0
- package/connection/withdrawal.d.ts.map +1 -0
- package/connection/withdrawal.js +23 -0
- package/connection/withdrawal.js.map +1 -0
- package/consume.js +213 -47
- package/consume.js.map +1 -1
- package/cover.d.ts +59 -0
- package/cover.d.ts.map +1 -0
- package/cover.js +375 -0
- package/cover.js.map +1 -0
- package/datagram.d.ts +70 -11
- package/datagram.d.ts.map +1 -1
- package/datagram.js +317 -2
- package/datagram.js.map +1 -1
- package/datagram_stream.d.ts +18 -0
- package/datagram_stream.d.ts.map +1 -0
- package/datagram_stream.js +67 -0
- package/datagram_stream.js.map +1 -0
- package/defined.test-util.d.ts +2 -0
- package/defined.test-util.d.ts.map +1 -0
- package/defined.test-util.js +7 -0
- package/defined.test-util.js.map +1 -0
- package/delivered.d.ts +75 -0
- package/delivered.d.ts.map +1 -0
- package/delivered.js +228 -0
- package/delivered.js.map +1 -0
- package/demand.d.ts +173 -0
- package/demand.d.ts.map +1 -0
- package/demand.js +582 -0
- package/demand.js.map +1 -0
- package/drops.d.ts +93 -0
- package/drops.d.ts.map +1 -0
- package/drops.js +283 -0
- package/drops.js.map +1 -0
- package/error.d.ts +120 -21
- package/error.d.ts.map +1 -1
- package/error.js +230 -38
- package/error.js.map +1 -1
- package/errors.d.ts +2 -2
- package/errors.d.ts.map +1 -1
- package/errors.js +2 -3
- package/errors.js.map +1 -1
- package/fill.d.ts +174 -0
- package/fill.d.ts.map +1 -0
- package/fill.js +760 -0
- package/fill.js.map +1 -0
- package/flate/decoder.d.ts +2 -0
- package/flate/decoder.d.ts.map +1 -0
- package/flate/decoder.js +63 -0
- package/flate/decoder.js.map +1 -0
- package/flate/encoder.d.ts +2 -0
- package/flate/encoder.d.ts.map +1 -0
- package/flate/encoder.js +64 -0
- package/flate/encoder.js.map +1 -0
- package/flate/group.d.ts +34 -0
- package/flate/group.d.ts.map +1 -0
- package/flate/group.js +140 -0
- package/flate/group.js.map +1 -0
- package/frame.d.ts +80 -0
- package/frame.d.ts.map +1 -0
- package/frame.js +296 -0
- package/frame.js.map +1 -0
- package/frame.test-util.d.ts +5 -0
- package/frame.test-util.d.ts.map +1 -0
- package/frame.test-util.js +9 -0
- package/frame.test-util.js.map +1 -0
- package/group.d.ts +108 -45
- package/group.d.ts.map +1 -1
- package/group.js +1616 -308
- package/group.js.map +1 -1
- package/group_api.d.ts +7 -0
- package/group_api.d.ts.map +1 -0
- package/group_api.js +7 -0
- package/group_api.js.map +1 -0
- package/hop.d.ts +62 -76
- package/hop.d.ts.map +1 -1
- package/hop.js +92 -65
- package/hop.js.map +1 -1
- package/identity.d.ts +39 -0
- package/identity.d.ts.map +1 -0
- package/identity.js +47 -0
- package/identity.js.map +1 -0
- package/ietf/active_count.d.ts +2 -0
- package/ietf/active_count.d.ts.map +1 -0
- package/ietf/active_count.js +30 -0
- package/ietf/active_count.js.map +1 -0
- package/ietf/aliases.js +69 -36
- package/ietf/aliases.js.map +1 -1
- package/ietf/cluster.d.ts +3 -3
- package/ietf/cluster.js +14 -55
- package/ietf/cluster.js.map +1 -1
- package/ietf/connection.d.ts +1 -31
- package/ietf/connection.d.ts.map +1 -1
- package/ietf/connection.js +305 -144
- package/ietf/connection.js.map +1 -1
- package/ietf/datagram.d.ts +60 -0
- package/ietf/datagram.d.ts.map +1 -0
- package/ietf/datagram.js +152 -0
- package/ietf/datagram.js.map +1 -0
- package/ietf/error.d.ts +3 -3
- package/ietf/error.js +82 -101
- package/ietf/error.js.map +1 -1
- package/ietf/fetch.d.ts +93 -37
- package/ietf/fetch.d.ts.map +1 -1
- package/ietf/fetch.js +172 -94
- package/ietf/fetch.js.map +1 -1
- package/ietf/filter.d.ts +21 -31
- package/ietf/filter.d.ts.map +1 -1
- package/ietf/filter.js +140 -172
- package/ietf/filter.js.map +1 -1
- package/ietf/goaway.d.ts +12 -10
- package/ietf/goaway.d.ts.map +1 -1
- package/ietf/goaway.js +22 -36
- package/ietf/goaway.js.map +1 -1
- package/ietf/hidden.js +1 -2
- package/ietf/hidden.js.map +1 -1
- package/ietf/index.d.ts +8 -20
- package/ietf/index.d.ts.map +1 -1
- package/ietf/index.js +4 -15
- package/ietf/index.js.map +1 -1
- package/ietf/join.d.ts +7 -0
- package/ietf/join.d.ts.map +1 -0
- package/ietf/join.js +234 -0
- package/ietf/join.js.map +1 -0
- package/ietf/message.d.ts +18 -2
- package/ietf/message.d.ts.map +1 -1
- package/ietf/message.js +60 -41
- package/ietf/message.js.map +1 -1
- package/ietf/message.test-util.d.ts +6 -0
- package/ietf/message.test-util.d.ts.map +1 -0
- package/ietf/message.test-util.js +13 -0
- package/ietf/message.test-util.js.map +1 -0
- package/ietf/namespace.d.ts +19 -5
- package/ietf/namespace.d.ts.map +1 -1
- package/ietf/namespace.js +78 -27
- package/ietf/namespace.js.map +1 -1
- package/ietf/object.d.ts +195 -33
- package/ietf/object.d.ts.map +1 -1
- package/ietf/object.js +405 -179
- package/ietf/object.js.map +1 -1
- package/ietf/parameters.d.ts +25 -45
- package/ietf/parameters.d.ts.map +1 -1
- package/ietf/parameters.js +260 -473
- package/ietf/parameters.js.map +1 -1
- package/ietf/priority.d.ts +17 -2
- package/ietf/priority.d.ts.map +1 -1
- package/ietf/priority.js +19 -5
- package/ietf/priority.js.map +1 -1
- package/ietf/properties.d.ts +6 -5
- package/ietf/properties.d.ts.map +1 -1
- package/ietf/properties.js +78 -49
- package/ietf/properties.js.map +1 -1
- package/ietf/publish.d.ts +25 -33
- package/ietf/publish.d.ts.map +1 -1
- package/ietf/publish.js +45 -140
- package/ietf/publish.js.map +1 -1
- package/ietf/publish_namespace.d.ts +49 -72
- package/ietf/publish_namespace.d.ts.map +1 -1
- package/ietf/publish_namespace.js +66 -185
- package/ietf/publish_namespace.js.map +1 -1
- package/ietf/publisher.js +1800 -601
- package/ietf/publisher.js.map +1 -1
- package/ietf/range.d.ts +2 -0
- package/ietf/range.d.ts.map +1 -0
- package/ietf/range.js +222 -0
- package/ietf/range.js.map +1 -0
- package/ietf/request.d.ts +6 -30
- package/ietf/request.d.ts.map +1 -1
- package/ietf/request.js +41 -79
- package/ietf/request.js.map +1 -1
- package/ietf/request_stream.d.ts +1 -6
- package/ietf/request_stream.d.ts.map +1 -1
- package/ietf/request_stream.js +306 -17
- package/ietf/request_stream.js.map +1 -1
- package/ietf/session.d.ts +41 -0
- package/ietf/session.d.ts.map +1 -0
- package/ietf/session.js +65 -0
- package/ietf/session.js.map +1 -0
- package/ietf/setup.d.ts +5 -30
- package/ietf/setup.d.ts.map +1 -1
- package/ietf/setup.js +6 -118
- package/ietf/setup.js.map +1 -1
- package/ietf/setup_options.d.ts +31 -0
- package/ietf/setup_options.d.ts.map +1 -0
- package/ietf/setup_options.js +138 -0
- package/ietf/setup_options.js.map +1 -0
- package/ietf/solicit.js +4 -15
- package/ietf/solicit.js.map +1 -1
- package/ietf/subscribe.d.ts +52 -45
- package/ietf/subscribe.d.ts.map +1 -1
- package/ietf/subscribe.js +118 -240
- package/ietf/subscribe.js.map +1 -1
- package/ietf/subscribe_namespace.d.ts +16 -79
- package/ietf/subscribe_namespace.d.ts.map +1 -1
- package/ietf/subscribe_namespace.js +30 -202
- package/ietf/subscribe_namespace.js.map +1 -1
- package/ietf/subscriber.js +1839 -537
- package/ietf/subscriber.js.map +1 -1
- package/ietf/token.js +105 -28
- package/ietf/token.js.map +1 -1
- package/ietf/track.d.ts +27 -24
- package/ietf/track.d.ts.map +1 -1
- package/ietf/track.js +48 -62
- package/ietf/track.js.map +1 -1
- package/ietf/version.d.ts +13 -42
- package/ietf/version.d.ts.map +1 -1
- package/ietf/version.js +22 -49
- package/ietf/version.js.map +1 -1
- package/implementation.d.ts +2 -0
- package/implementation.d.ts.map +1 -0
- package/implementation.js +5 -0
- package/implementation.js.map +1 -0
- package/index.d.ts +34 -19
- package/index.d.ts.map +1 -1
- package/index.js +19 -7
- package/index.js.map +1 -1
- package/internal.d.ts +1515 -67
- package/internal.d.ts.map +1 -1
- package/internal.js +557 -80
- package/internal.js.map +1 -1
- package/ledger.d.ts +23 -0
- package/ledger.d.ts.map +1 -0
- package/ledger.js +247 -0
- package/ledger.js.map +1 -0
- package/listing.d.ts +132 -0
- package/listing.d.ts.map +1 -0
- package/listing.js +486 -0
- package/listing.js.map +1 -0
- package/lite/announce.d.ts +127 -66
- package/lite/announce.d.ts.map +1 -1
- package/lite/announce.js +384 -159
- package/lite/announce.js.map +1 -1
- package/lite/announce_stream.d.ts +2 -0
- package/lite/announce_stream.d.ts.map +1 -0
- package/lite/announce_stream.js +92 -0
- package/lite/announce_stream.js.map +1 -0
- package/lite/answer.d.ts +22 -0
- package/lite/answer.d.ts.map +1 -0
- package/lite/answer.js +301 -0
- package/lite/answer.js.map +1 -0
- package/lite/auth.d.ts +45 -0
- package/lite/auth.d.ts.map +1 -0
- package/lite/auth.js +204 -0
- package/lite/auth.js.map +1 -0
- package/lite/compat.d.ts +31 -0
- package/lite/compat.d.ts.map +1 -0
- package/lite/compat.js +86 -0
- package/lite/compat.js.map +1 -0
- package/lite/connection.d.ts +1 -45
- package/lite/connection.d.ts.map +1 -1
- package/lite/connection.js +360 -78
- package/lite/connection.js.map +1 -1
- package/lite/datagram-end.d.ts +26 -0
- package/lite/datagram-end.d.ts.map +1 -0
- package/lite/datagram-end.js +30 -0
- package/lite/datagram-end.js.map +1 -0
- package/lite/datagram.d.ts +73 -8
- package/lite/datagram.d.ts.map +1 -1
- package/lite/datagram.js +144 -10
- package/lite/datagram.js.map +1 -1
- package/lite/duration.d.ts +6 -0
- package/lite/duration.d.ts.map +1 -0
- package/lite/duration.js +14 -0
- package/lite/duration.js.map +1 -0
- package/lite/error.d.ts +9 -0
- package/lite/error.d.ts.map +1 -0
- package/lite/error.js +24 -0
- package/lite/error.js.map +1 -0
- package/lite/fills.d.ts +162 -0
- package/lite/fills.d.ts.map +1 -0
- package/lite/fills.js +486 -0
- package/lite/fills.js.map +1 -0
- package/lite/fit.d.ts +49 -0
- package/lite/fit.d.ts.map +1 -0
- package/lite/fit.js +305 -0
- package/lite/fit.js.map +1 -0
- package/lite/goaway.d.ts +2 -2
- package/lite/goaway.d.ts.map +1 -1
- package/lite/goaway.js +5 -14
- package/lite/goaway.js.map +1 -1
- package/lite/group.d.ts +67 -16
- package/lite/group.d.ts.map +1 -1
- package/lite/group.js +108 -31
- package/lite/group.js.map +1 -1
- package/lite/identity.d.ts +25 -0
- package/lite/identity.d.ts.map +1 -0
- package/lite/identity.js +79 -0
- package/lite/identity.js.map +1 -0
- package/lite/index.d.ts +14 -13
- package/lite/index.d.ts.map +1 -1
- package/lite/index.js +2 -2
- package/lite/index.js.map +1 -1
- package/lite/message.d.ts +10 -2
- package/lite/message.d.ts.map +1 -1
- package/lite/message.js +28 -45
- package/lite/message.js.map +1 -1
- package/lite/priority.d.ts +9 -2
- package/lite/priority.d.ts.map +1 -1
- package/lite/priority.js +11 -106
- package/lite/priority.js.map +1 -1
- package/lite/probe.d.ts +2 -2
- package/lite/probe.d.ts.map +1 -1
- package/lite/probe.js +9 -1
- package/lite/probe.js.map +1 -1
- package/lite/publisher.d.ts +10 -1
- package/lite/publisher.d.ts.map +1 -1
- package/lite/publisher.js +2548 -438
- package/lite/publisher.js.map +1 -1
- package/lite/routed.d.ts +59 -0
- package/lite/routed.d.ts.map +1 -0
- package/lite/routed.js +564 -0
- package/lite/routed.js.map +1 -0
- package/lite/session.d.ts +2 -28
- package/lite/session.d.ts.map +1 -1
- package/lite/session.js +0 -100
- package/lite/session.js.map +1 -1
- package/lite/setup.d.ts +32 -5
- package/lite/setup.d.ts.map +1 -1
- package/lite/setup.js +95 -22
- package/lite/setup.js.map +1 -1
- package/lite/stream.d.ts +5 -11
- package/lite/stream.d.ts.map +1 -1
- package/lite/stream.js +5 -2
- package/lite/stream.js.map +1 -1
- package/lite/subscribe.d.ts +478 -78
- package/lite/subscribe.d.ts.map +1 -1
- package/lite/subscribe.js +1373 -143
- package/lite/subscribe.js.map +1 -1
- package/lite/subscriber.d.ts +7 -44
- package/lite/subscriber.d.ts.map +1 -1
- package/lite/subscriber.js +3290 -516
- package/lite/subscriber.js.map +1 -1
- package/lite/track.d.ts +27 -12
- package/lite/track.d.ts.map +1 -1
- package/lite/track.js +116 -38
- package/lite/track.js.map +1 -1
- package/lite/tracks.d.ts +55 -0
- package/lite/tracks.d.ts.map +1 -0
- package/lite/tracks.js +114 -0
- package/lite/tracks.js.map +1 -0
- package/lite/version.d.ts +132 -24
- package/lite/version.d.ts.map +1 -1
- package/lite/version.js +378 -34
- package/lite/version.js.map +1 -1
- package/meta.d.ts +77 -0
- package/meta.d.ts.map +1 -0
- package/meta.js +130 -0
- package/meta.js.map +1 -0
- package/meta_api.d.ts +7 -0
- package/meta_api.d.ts.map +1 -0
- package/meta_api.js +7 -0
- package/meta_api.js.map +1 -0
- package/mint.d.ts +28 -0
- package/mint.d.ts.map +1 -0
- package/mint.js +66 -0
- package/mint.js.map +1 -0
- package/open.d.ts +63 -0
- package/open.d.ts.map +1 -0
- package/open.js +250 -0
- package/open.js.map +1 -0
- package/origin.d.ts +394 -142
- package/origin.d.ts.map +1 -1
- package/origin.js +2533 -687
- package/origin.js.map +1 -1
- package/package.json +8 -13
- package/path.d.ts +51 -51
- package/path.d.ts.map +1 -1
- package/path.js +210 -58
- package/path.js.map +1 -1
- package/payload.d.ts +33 -0
- package/payload.d.ts.map +1 -0
- package/payload.js +65 -0
- package/payload.js.map +1 -0
- package/prefix.d.ts +152 -0
- package/prefix.d.ts.map +1 -0
- package/prefix.js +349 -0
- package/prefix.js.map +1 -0
- package/priority.d.ts +8 -0
- package/priority.d.ts.map +1 -0
- package/priority.js +185 -0
- package/priority.js.map +1 -0
- package/queue.d.ts +2 -0
- package/queue.d.ts.map +1 -0
- package/queue.js +46 -0
- package/queue.js.map +1 -0
- package/ranges.d.ts +36 -0
- package/ranges.d.ts.map +1 -0
- package/ranges.js +312 -0
- package/ranges.js.map +1 -0
- package/rescale.d.ts +24 -0
- package/rescale.d.ts.map +1 -0
- package/rescale.js +39 -0
- package/rescale.js.map +1 -0
- package/resume.d.ts +55 -0
- package/resume.d.ts.map +1 -0
- package/resume.js +4173 -0
- package/resume.js.map +1 -0
- package/resume.test-util.d.ts +2 -0
- package/resume.test-util.d.ts.map +1 -0
- package/resume.test-util.js +25 -0
- package/resume.test-util.js.map +1 -0
- package/skips.d.ts +48 -0
- package/skips.d.ts.map +1 -0
- package/skips.js +182 -0
- package/skips.js.map +1 -0
- package/stream.d.ts +78 -40
- package/stream.d.ts.map +1 -1
- package/stream.js +236 -93
- package/stream.js.map +1 -1
- package/subscription.test-util.d.ts +2 -0
- package/subscription.test-util.d.ts.map +1 -0
- package/subscription.test-util.js +49 -0
- package/subscription.test-util.js.map +1 -0
- package/tail.d.ts +23 -14
- package/tail.d.ts.map +1 -1
- package/tail.js +224 -98
- package/tail.js.map +1 -1
- package/time.d.ts +41 -102
- package/time.d.ts.map +1 -1
- package/time.js +129 -92
- package/time.js.map +1 -1
- package/timed.d.ts +21 -0
- package/timed.d.ts.map +1 -0
- package/timed.js +2 -0
- package/timed.js.map +1 -0
- package/track.d.ts +578 -246
- package/track.d.ts.map +1 -1
- package/track.js +7306 -772
- package/track.js.map +1 -1
- package/track_api.d.ts +7 -0
- package/track_api.d.ts.map +1 -0
- package/track_api.js +7 -0
- package/track_api.js.map +1 -0
- package/util/abort.d.ts +1 -0
- package/util/abort.d.ts.map +1 -1
- package/util/abort.js +23 -2
- package/util/abort.js.map +1 -1
- package/util/announce.d.ts +4 -0
- package/util/announce.d.ts.map +1 -0
- package/util/announce.js +11 -0
- package/util/announce.js.map +1 -0
- package/util/bigint.d.ts +3 -0
- package/util/bigint.d.ts.map +1 -0
- package/util/bigint.js +8 -0
- package/util/bigint.js.map +1 -0
- package/util/change.d.ts +12 -0
- package/util/change.d.ts.map +1 -0
- package/util/change.js +18 -0
- package/util/change.js.map +1 -0
- package/util/deadline.d.ts +2 -0
- package/util/deadline.d.ts.map +1 -0
- package/util/deadline.js +108 -0
- package/util/deadline.js.map +1 -0
- package/util/decode_error.d.ts +3 -0
- package/util/decode_error.d.ts.map +1 -0
- package/util/decode_error.js +11 -0
- package/util/decode_error.js.map +1 -0
- package/util/demand.d.ts +8 -0
- package/util/demand.d.ts.map +1 -0
- package/util/demand.js +24 -0
- package/util/demand.js.map +1 -0
- package/util/given_up.d.ts +2 -0
- package/util/given_up.d.ts.map +1 -0
- package/util/given_up.js +101 -0
- package/util/given_up.js.map +1 -0
- package/util/hex.d.ts +6 -0
- package/util/hex.d.ts.map +1 -1
- package/util/hex.js +19 -5
- package/util/hex.js.map +1 -1
- package/util/key.d.ts +15 -0
- package/util/key.d.ts.map +1 -0
- package/util/key.js +38 -0
- package/util/key.js.map +1 -0
- package/util/limits.d.ts +2 -0
- package/util/limits.d.ts.map +1 -0
- package/util/limits.js +76 -0
- package/util/limits.js.map +1 -0
- package/util/observed.d.ts +23 -0
- package/util/observed.d.ts.map +1 -0
- package/util/observed.js +122 -0
- package/util/observed.js.map +1 -0
- package/util/sorted.d.ts +2 -0
- package/util/sorted.d.ts.map +1 -0
- package/util/sorted.js +149 -0
- package/util/sorted.js.map +1 -0
- package/util/timeout.d.ts +2 -1
- package/util/timeout.d.ts.map +1 -1
- package/util/timeout.js +13 -10
- package/util/timeout.js.map +1 -1
- package/util/timer.d.ts +2 -0
- package/util/timer.d.ts.map +1 -0
- package/util/timer.js +19 -0
- package/util/timer.js.map +1 -0
- package/util/u64.js +0 -1
- package/util/utf8.d.ts +2 -0
- package/util/utf8.d.ts.map +1 -1
- package/util/utf8.js +7 -2
- package/util/utf8.js.map +1 -1
- package/util/varint.d.ts.map +1 -1
- package/util/varint.js +8 -2
- package/util/varint.js.map +1 -1
- package/util/watch.d.ts +8 -0
- package/util/watch.d.ts.map +1 -0
- package/util/watch.js +38 -0
- package/util/watch.js.map +1 -0
- package/util/yield.d.ts +2 -0
- package/util/yield.d.ts.map +1 -0
- package/util/yield.js +31 -0
- package/util/yield.js.map +1 -0
- package/varint.d.ts +0 -29
- package/varint.d.ts.map +1 -1
- package/varint.js +7 -29
- package/varint.js.map +1 -1
- package/varint_api.d.ts +7 -0
- package/varint_api.d.ts.map +1 -0
- package/varint_api.js +7 -0
- package/varint_api.js.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +4 -0
- package/version.js.map +1 -0
- package/window.d.ts +570 -0
- package/window.d.ts.map +1 -0
- package/window.js +1677 -0
- package/window.js.map +1 -0
- package/wire.d.ts +150 -35
- package/wire.d.ts.map +1 -1
- package/wire.js +27 -1
- package/wire.js.map +1 -1
- package/connection/established.d.ts +0 -53
- package/connection/established.d.ts.map +0 -1
- package/connection/established.js +0 -3
- package/connection/established.js.map +0 -1
- package/ietf/adapter.d.ts +0 -75
- package/ietf/adapter.d.ts.map +0 -1
- package/ietf/adapter.js +0 -700
- package/ietf/adapter.js.map +0 -1
- package/lite/datagram_stream.d.ts +0 -8
- package/lite/datagram_stream.d.ts.map +0 -1
- package/lite/datagram_stream.js +0 -44
- package/lite/datagram_stream.js.map +0 -1
- package/lite/fetch.d.ts +0 -28
- package/lite/fetch.d.ts.map +0 -1
- package/lite/fetch.js +0 -79
- package/lite/fetch.js.map +0 -1
- package/util/log.d.ts +0 -5
- package/util/log.d.ts.map +0 -1
- package/util/log.js +0 -17
- package/util/log.js.map +0 -1
- package/zod.d.ts +0 -13
- package/zod.d.ts.map +0 -1
- package/zod.js +0 -19
- package/zod.js.map +0 -1
package/errors.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/* @ts-self-types="./errors.d.ts" */
|
|
2
1
|
/**
|
|
3
|
-
* Session and stream error types.
|
|
2
|
+
* Session and stream error types, and what to do after one.
|
|
4
3
|
*
|
|
5
4
|
* @module
|
|
6
5
|
*/
|
|
7
|
-
export { FrameTooLarge, GroupTooLarge, NotFound, ProtocolViolation, RefusedRedirect, Session, Stream, TooFarBehind, } from "./error.js";
|
|
6
|
+
export { ConnectTimeout, FrameTooLarge, GroupTooLarge, NotFound, ProtocolViolation, RefusedRedirect, Retry, retry, Session, Skipped, Stream, TimestampMismatch, TooFarBehind, } from "./error.js";
|
|
8
7
|
//# sourceMappingURL=errors.js.map
|
package/errors.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACN,aAAa,EACb,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,OAAO,EACP,MAAM,EAEN,YAAY,GACZ,MAAM,YAAY,CAAC","sourcesContent":["/**\n * Session and stream error types.\n *\n * @module\n */\nexport {\n\tFrameTooLarge,\n\tGroupTooLarge,\n\tNotFound,\n\tProtocolViolation,\n\tRefusedRedirect,\n\tSession,\n\tStream,\n\ttype StreamOptions,\n\tTooFarBehind,\n} from \"./error.ts\";\n"]}
|
|
1
|
+
{"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,EACN,cAAc,EACd,aAAa,EACb,aAAa,EACb,QAAQ,EACR,iBAAiB,EACjB,eAAe,EACf,KAAK,EACL,KAAK,EACL,OAAO,EACP,OAAO,EACP,MAAM,EAEN,iBAAiB,EACjB,YAAY,GACZ,MAAM,YAAY,CAAC","sourcesContent":["/**\n * Session and stream error types, and what to do after one.\n *\n * @module\n */\nexport {\n\tConnectTimeout,\n\tFrameTooLarge,\n\tGroupTooLarge,\n\tNotFound,\n\tProtocolViolation,\n\tRefusedRedirect,\n\tRetry,\n\tretry,\n\tSession,\n\tSkipped,\n\tStream,\n\ttype StreamOptions,\n\tTimestampMismatch,\n\tTooFarBehind,\n} from \"./error.ts\";\n"]}
|
package/fill.d.ts
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
import type { Info as FrameInfo, Producer as FrameProducer } from "./frame.ts";
|
|
2
|
+
import type { Frame, Producer as GroupProducer } from "./group.ts";
|
|
3
|
+
import type { Info, Order } from "./track.ts";
|
|
4
|
+
/**
|
|
5
|
+
* Serves the groups a track's readers miss: from {@link Producer.requests}. Mirrors the Rust
|
|
6
|
+
* `track::Requests`.
|
|
7
|
+
*
|
|
8
|
+
* Most tracks never serve old content, so this lives on its own handle rather than the producer:
|
|
9
|
+
* a publisher backed by storage opens one to serve groups its live cache no longer holds, or
|
|
10
|
+
* never held. While at least one is open, a reader missing a run of groups queues a
|
|
11
|
+
* {@link FillGroups} here; with none open, the miss is given up. {@link close} it once done, and keep
|
|
12
|
+
* taking fills until then: a reader waits on its fill until it is answered or closed, so a handle
|
|
13
|
+
* left open but unread stalls that reader.
|
|
14
|
+
*
|
|
15
|
+
* It is also the only way to create a group below the newest one, with {@link createGroup}, as a
|
|
16
|
+
* store replaying history or an end-to-end copy does: the producer itself only appends.
|
|
17
|
+
*
|
|
18
|
+
* @public
|
|
19
|
+
*/
|
|
20
|
+
export declare class Requests {
|
|
21
|
+
#private;
|
|
22
|
+
private constructor();
|
|
23
|
+
/** The track's name, unique within its broadcast. */
|
|
24
|
+
get name(): string;
|
|
25
|
+
/**
|
|
26
|
+
* Wait until readers miss a run of groups, returning the {@link FillGroups} to serve, including
|
|
27
|
+
* the group containing a reader's time start that no cached group places (see
|
|
28
|
+
* {@link FillGroups.floor}). Resolves `undefined` once the track closes with nothing queued, or
|
|
29
|
+
* this handle closes, even while it waits.
|
|
30
|
+
*/
|
|
31
|
+
requestedFill(): Promise<FillGroups | undefined>;
|
|
32
|
+
/**
|
|
33
|
+
* Create a group whose first frame is `frame`: the group starts at its timestamp, its key on the
|
|
34
|
+
* track, converted as {@link Producer.appendGroup} converts it. Unlike that, it may start below
|
|
35
|
+
* the newest group. Mirrors the Rust `Requests::create_group`.
|
|
36
|
+
*
|
|
37
|
+
* It says nothing about the keys around it. A key below it the track's own publisher never
|
|
38
|
+
* produced stays owed while a handle lives, since that handle may still create it: an ordered
|
|
39
|
+
* reader waits on it, locally or through a relay. Once the last handle closes, every such key is
|
|
40
|
+
* skipped, except those a fill already handed out still answers. A key already skipped throws
|
|
41
|
+
* {@link Skipped}, a timestamp that doesn't match the track {@link TimestampMismatch}, and the
|
|
42
|
+
* reserved key 2^64-1 a `RangeError`.
|
|
43
|
+
*
|
|
44
|
+
* A key another group holds is replaced: the new group takes the slot, and readers already
|
|
45
|
+
* draining the old one keep it. The same broadcast, track, and group key always name the same
|
|
46
|
+
* content, and nothing checks it, as with {@link Producer.appendGroup}.
|
|
47
|
+
*/
|
|
48
|
+
createGroup(frame: Frame): GroupProducer;
|
|
49
|
+
/**
|
|
50
|
+
* {@link createGroup} with its first frame streamed: the group exists once this returns, and
|
|
51
|
+
* {@link FrameProducer.finish} hands it back to write the rest. Mirrors the Rust `create_frame`.
|
|
52
|
+
*/
|
|
53
|
+
createFrame(info: FrameInfo): FrameProducer;
|
|
54
|
+
/**
|
|
55
|
+
* Record that the publisher does not have `[start, end)`, at any key: a reader waiting on one
|
|
56
|
+
* moves past it as not found, the declared end does not wait for them, and a relay serving this
|
|
57
|
+
* track forwards the drop. Unlike a skip it is not permanent: a group created there later is
|
|
58
|
+
* served, but only to a reader that has not yet moved past it. A reader the drop already
|
|
59
|
+
* settled, here or through a relay, never sees it: the same broadcast, track, and group key
|
|
60
|
+
* always name the same content, so a publisher that re-creates a group it dropped breaks that
|
|
61
|
+
* for its own broadcast alone. For a producer that knows a group existed but cannot produce it,
|
|
62
|
+
* such as a replay whose copy was pruned; one that never will produce it says so with
|
|
63
|
+
* {@link skipGroups}. Once the track declared its end, naming any key at or past it throws and
|
|
64
|
+
* records nothing. Mirrors the Rust
|
|
65
|
+
* `Requests::drop_groups`.
|
|
66
|
+
*/
|
|
67
|
+
dropGroups(start: bigint, end: bigint): void;
|
|
68
|
+
/**
|
|
69
|
+
* Declare that the track will never hold `[start, end)`, at any key. A skip is final: creating a group there throws
|
|
70
|
+
* {@link Skipped}. A group that finished here keeps what it is, since it was produced after all;
|
|
71
|
+
* one still arriving, or aborted, ends for good, as `GroupProducer.skip` ends one. Mirrors the
|
|
72
|
+
* Rust `Requests::skip_groups`.
|
|
73
|
+
*/
|
|
74
|
+
skipGroups(start: bigint, end: bigint): void;
|
|
75
|
+
/**
|
|
76
|
+
* Stop serving. The last handle closing skips every key below the newest group the track's own
|
|
77
|
+
* publisher never produced, since no handle is left to create it, except those a fill already
|
|
78
|
+
* handed out still answers; then it names every miss still queued dropped, so its readers stop
|
|
79
|
+
* waiting. A fill already handed out keeps its own handle. Idempotent.
|
|
80
|
+
*/
|
|
81
|
+
close(): void;
|
|
82
|
+
[Symbol.dispose](): void;
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* A run of groups readers miss, from {@link Requests.requestedFill}: `start` up to the exclusive
|
|
86
|
+
* `end`. Mirrors the Rust `track::FillGroups`. A reader's time start that no cached group places
|
|
87
|
+
* asks for the group containing that time as a fill one key wide, from the time, whose first group
|
|
88
|
+
* may start below it: see {@link floor}.
|
|
89
|
+
*
|
|
90
|
+
* Its {@link priority} and {@link order} follow its readers as they change, so
|
|
91
|
+
* read them as each group is served. Call {@link accept} for each group the source has, writing
|
|
92
|
+
* its frames into the returned producer, and {@link dropGroups} for those it does not. Readers
|
|
93
|
+
* that leave, or narrow their ranges past a group, stop wanting it: serve {@link wanted} until it
|
|
94
|
+
* is `undefined`, which {@link wantedChanged} waits on. {@link close} the fill once done; closing
|
|
95
|
+
* names whatever is still wanted dropped rather than leaving its readers waiting.
|
|
96
|
+
*
|
|
97
|
+
* Groups keep their key, so an accepted group should hold the frames, payloads, and
|
|
98
|
+
* boundaries it had when it was first published: a fill replays the track, never a new version.
|
|
99
|
+
*
|
|
100
|
+
* @public
|
|
101
|
+
*/
|
|
102
|
+
export declare class FillGroups {
|
|
103
|
+
#private;
|
|
104
|
+
/** The first group to fill. */
|
|
105
|
+
readonly start: bigint;
|
|
106
|
+
/** The exclusive end group. */
|
|
107
|
+
readonly end: bigint;
|
|
108
|
+
/**
|
|
109
|
+
* The oldest group the first group may start at: {@link start}, unless that is a reader's time
|
|
110
|
+
* start no cached group places. Then the first group is the one containing that time: the group
|
|
111
|
+
* starting at it, or else the newest one starting before it, at or after the floor; once that
|
|
112
|
+
* group ends whole at or before the time, the reader starts past it, at its End. A handler
|
|
113
|
+
* knowing its groups only by key serves that key as any other; one that can tell which group
|
|
114
|
+
* holds the time, as from an index, may {@link accept} that group instead, or
|
|
115
|
+
* {@link dropGroups} the key when none does. The reader starts where the answer says, never
|
|
116
|
+
* where the cached groups happen to say: a drop, or the fill closed unanswered, says no group
|
|
117
|
+
* starts from the floor through the time, so it starts at the group just below the floor (at its
|
|
118
|
+
* End once the time is past that group's span), or past the time when the floor is 0. A
|
|
119
|
+
* {@link refuseGroups refusal} fails the reader with its error until its ranges change.
|
|
120
|
+
*/
|
|
121
|
+
readonly floor: bigint;
|
|
122
|
+
private constructor();
|
|
123
|
+
/** The most urgent delivery priority among the readers waiting on it now. */
|
|
124
|
+
get priority(): number;
|
|
125
|
+
/** Which end to fill first now: `"descending"`, newest first, if any reader asks it. */
|
|
126
|
+
get order(): Order;
|
|
127
|
+
/** Whether a reader still waits for group `key` from this fill. Once false, it stays false. */
|
|
128
|
+
isWanted(key: bigint): boolean;
|
|
129
|
+
/**
|
|
130
|
+
* The next group still owed in the fill's {@link order}: a reader still reads it, it was
|
|
131
|
+
* neither answered nor delivered live since it was asked, and the track does not hold it whole.
|
|
132
|
+
* `undefined` once none is, so stop serving the fill.
|
|
133
|
+
*/
|
|
134
|
+
wanted(): bigint | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* {@link wanted} once it differs from what this handle last returned: at once on the first
|
|
137
|
+
* call, then on each change. So `for (let at = await fill.wantedChanged(); at !== undefined;
|
|
138
|
+
* at = await fill.wantedChanged())` serves each group as it becomes owed, and ends once the
|
|
139
|
+
* fill is answered or withdrawn.
|
|
140
|
+
*/
|
|
141
|
+
wantedChanged(): Promise<bigint | undefined>;
|
|
142
|
+
/** Resolves once no reader waits for group `key` from this fill, so stop serving it. */
|
|
143
|
+
unwanted(key: bigint): Promise<void>;
|
|
144
|
+
/**
|
|
145
|
+
* Insert group `key` into the track's cache, handing it to the readers waiting on it,
|
|
146
|
+
* and return the producer to write its frames into. A live subscription covering it receives
|
|
147
|
+
* it too. `info` commits the track's {@link Info} if it has none yet. A key from the
|
|
148
|
+
* {@link floor} up to the start answers the start with that group. A cached copy missing its
|
|
149
|
+
* first frames, which a reader asked whole, is replaced. Returns `undefined` if the group was
|
|
150
|
+
* already answered or cached whole. Throws a `RangeError` outside the fill, and an error if the
|
|
151
|
+
* track is closed.
|
|
152
|
+
*
|
|
153
|
+
* A group is named by its frame 0's timestamp, so on a timed track writing frame 0 at any other
|
|
154
|
+
* time throws `TimestampMismatch`.
|
|
155
|
+
*/
|
|
156
|
+
accept(start: bigint, info?: Info): GroupProducer | undefined;
|
|
157
|
+
/**
|
|
158
|
+
* Name `[start, end)` as never to be delivered: the source does not have them. Readers stop
|
|
159
|
+
* waiting for them, and the track records them so nobody asks again. Only the groups a reader
|
|
160
|
+
* still reads count; the rest of the fill was never owed.
|
|
161
|
+
*/
|
|
162
|
+
dropGroups(start: bigint, end: bigint): void;
|
|
163
|
+
/**
|
|
164
|
+
* Refuse `[start, end)` with `error` without saying the source lost them, as when serving them
|
|
165
|
+
* failed for now. The readers waiting now stop waiting and get `error`; a later reader asks
|
|
166
|
+
* again.
|
|
167
|
+
*/
|
|
168
|
+
refuseGroups(start: bigint, end: bigint, error: Error): void;
|
|
169
|
+
/** Done serving: whatever a reader still wants is named dropped. Idempotent. */
|
|
170
|
+
close(): void;
|
|
171
|
+
/** Closes the fill; see {@link close}. */
|
|
172
|
+
[Symbol.dispose](): void;
|
|
173
|
+
}
|
|
174
|
+
//# sourceMappingURL=fill.d.ts.map
|
package/fill.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fill.d.ts","sourceRoot":"","sources":["../src/fill.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,IAAI,IAAI,SAAS,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,KAAK,EAAE,KAAK,EAAE,QAAQ,IAAI,aAAa,EAAE,MAAM,YAAY,CAAC;AAEnE,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AA0iB9C;;;;;;;;;;;;;;;GAeG;AACH,qBAAa,QAAQ;;IAIpB,OAAO,eAGN;IAMD,qDAAqD;IAErD,IAAI,IAAI,IAAI,MAAM,CAEjB;IAED;;;;;OAKG;IACG,aAAa,IAAI,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAIrD;IAED;;;;;;;;;;;;;;;OAeG;IACH,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,aAAa,CAGvC;IAED;;;OAGG;IACH,WAAW,CAAC,IAAI,EAAE,SAAS,GAAG,aAAa,CAG1C;IAED;;;;;;;;;;;;OAYG;IACH,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAK3C;IAED;;;;;OAKG;IACH,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAK3C;IAOD;;;;;OAKG;IACH,KAAK,IAAI,IAAI,CAIZ;IAED,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,CAEvB;CACD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,qBAAa,UAAU;;IACtB,+BAA+B;IAC/B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,+BAA+B;IAC/B,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAOvB,OAAO,eAMN;IAQD,6EAA6E;IAC7E,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED,wFAAwF;IACxF,IAAI,KAAK,IAAI,KAAK,CAGjB;IAED,+FAA+F;IAC/F,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAG7B;IAED;;;;OAIG;IACH,MAAM,IAAI,MAAM,GAAG,SAAS,CAS3B;IAED;;;;;OAKG;IACG,aAAa,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CASjD;IAED,wFAAwF;IAClF,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAGzC;IAED;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,IAAI,GAAG,aAAa,GAAG,SAAS,CAK5D;IAED;;;;OAIG;IACH,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI,CAI3C;IAED;;;;OAIG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,GAAG,IAAI,CAI3D;IAED,gFAAgF;IAChF,KAAK,IAAI,IAAI,CAEZ;IAED,0CAA0C;IAC1C,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,IAAI,CAEvB;CACD"}
|