@dxos/teleport 0.3.1 → 0.3.2-main.0f6af28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/browser/{chunk-J7JAYLIJ.mjs → chunk-UGINOVDT.mjs} +27 -27
- package/dist/lib/browser/chunk-UGINOVDT.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +2 -2
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/testing/index.mjs +1 -1
- package/dist/lib/node/index.cjs +27 -27
- package/dist/lib/node/index.cjs.map +2 -2
- package/dist/lib/node/meta.json +1 -1
- package/dist/lib/node/testing/index.cjs +26 -26
- package/dist/lib/node/testing/index.cjs.map +2 -2
- package/dist/types/src/muxing/balancer.d.ts +1 -1
- package/dist/types/src/muxing/balancer.d.ts.map +1 -1
- package/dist/types/src/muxing/framer.d.ts +1 -1
- package/dist/types/src/muxing/framer.d.ts.map +1 -1
- package/dist/types/src/muxing/muxer.d.ts +2 -2
- package/dist/types/src/muxing/muxer.d.ts.map +1 -1
- package/dist/types/src/muxing/rpc-port.d.ts +1 -1
- package/dist/types/src/muxing/rpc-port.d.ts.map +1 -1
- package/dist/types/src/rpc-extension.d.ts +2 -2
- package/dist/types/src/rpc-extension.d.ts.map +1 -1
- package/dist/types/src/teleport.d.ts +3 -3
- package/dist/types/src/teleport.d.ts.map +1 -1
- package/dist/types/src/testing/test-extension-with-streams.d.ts +1 -1
- package/dist/types/src/testing/test-extension-with-streams.d.ts.map +1 -1
- package/dist/types/src/testing/test-extension.d.ts +1 -1
- package/dist/types/src/testing/test-extension.d.ts.map +1 -1
- package/package.json +12 -12
- package/src/muxing/balancer.ts +1 -1
- package/src/muxing/framer.ts +1 -1
- package/src/muxing/muxer.test.ts +2 -2
- package/src/muxing/muxer.ts +2 -2
- package/src/muxing/rpc-port.test.ts +2 -2
- package/src/muxing/rpc-port.ts +1 -1
- package/src/rpc-extension.ts +2 -2
- package/src/teleport.ts +13 -6
- package/src/testing/test-builder.ts +1 -1
- package/src/testing/test-extension-with-streams.ts +4 -4
- package/src/testing/test-extension.ts +3 -3
- package/dist/lib/browser/chunk-J7JAYLIJ.mjs.map +0 -7
package/dist/lib/node/meta.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"inputs":{"packages/core/mesh/teleport/src/muxing/framer.ts":{"bytes":15780,"imports":[{"path":"node:stream","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"packages/core/mesh/teleport/src/muxing/balancer.ts":{"bytes":19941,"imports":[{"path":"varint","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"packages/core/mesh/teleport/src/muxing/framer.ts","kind":"import-statement","original":"./framer"}],"format":"esm"},"packages/core/mesh/teleport/src/muxing/muxer.ts":{"bytes":39208,"imports":[{"path":"node:stream","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"packages/core/mesh/teleport/src/muxing/balancer.ts","kind":"import-statement","original":"./balancer"}],"format":"esm"},"packages/core/mesh/teleport/src/muxing/rpc-port.ts":{"bytes":915,"imports":[],"format":"esm"},"packages/core/mesh/teleport/src/muxing/index.ts":{"bytes":631,"imports":[{"path":"packages/core/mesh/teleport/src/muxing/framer.ts","kind":"import-statement","original":"./framer"},{"path":"packages/core/mesh/teleport/src/muxing/muxer.ts","kind":"import-statement","original":"./muxer"},{"path":"packages/core/mesh/teleport/src/muxing/rpc-port.ts","kind":"import-statement","original":"./rpc-port"}],"format":"esm"},"packages/core/mesh/teleport/src/teleport.ts":{"bytes":36758,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/core/mesh/teleport/src/muxing/index.ts","kind":"import-statement","original":"./muxing"}],"format":"esm"},"packages/core/mesh/teleport/src/testing/test-builder.ts":{"bytes":15612,"imports":[{"path":"node:stream","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"packages/core/mesh/teleport/src/teleport.ts","kind":"import-statement","original":"../teleport"}],"format":"esm"},"packages/core/mesh/teleport/src/testing/test-extension.ts":{"bytes":9896,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true}],"format":"esm"},"packages/core/mesh/teleport/src/testing/test-extension-with-streams.ts":{"bytes":27053,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true}],"format":"esm"},"packages/core/mesh/teleport/src/testing/index.ts":{"bytes":718,"imports":[{"path":"packages/core/mesh/teleport/src/testing/test-builder.ts","kind":"import-statement","original":"./test-builder"},{"path":"packages/core/mesh/teleport/src/testing/test-extension.ts","kind":"import-statement","original":"./test-extension"},{"path":"packages/core/mesh/teleport/src/testing/test-extension-with-streams.ts","kind":"import-statement","original":"./test-extension-with-streams"}],"format":"esm"},"packages/core/mesh/teleport/src/rpc-extension.ts":{"bytes":6023,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true}],"format":"esm"},"packages/core/mesh/teleport/src/index.ts":{"bytes":731,"imports":[{"path":"packages/core/mesh/teleport/src/muxing/index.ts","kind":"import-statement","original":"./muxing"},{"path":"packages/core/mesh/teleport/src/teleport.ts","kind":"import-statement","original":"./teleport"},{"path":"packages/core/mesh/teleport/src/testing/index.ts","kind":"import-statement","original":"./testing"},{"path":"packages/core/mesh/teleport/src/rpc-extension.ts","kind":"import-statement","original":"./rpc-extension"}],"format":"esm"}},"outputs":{"packages/core/mesh/teleport/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":81234},"packages/core/mesh/teleport/dist/lib/node/index.cjs":{"imports":[{"path":"node:stream","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"node:stream","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"varint","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"node:stream","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true},{"path":"node:crypto","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/core/mesh/teleport/src/index.ts","inputs":{"packages/core/mesh/teleport/src/index.ts":{"bytesInOutput":471},"packages/core/mesh/teleport/src/muxing/framer.ts":{"bytesInOutput":3865},"packages/core/mesh/teleport/src/muxing/index.ts":{"bytesInOutput":0},"packages/core/mesh/teleport/src/muxing/muxer.ts":{"bytesInOutput":9559},"packages/core/mesh/teleport/src/muxing/balancer.ts":{"bytesInOutput":4615},"packages/core/mesh/teleport/src/teleport.ts":{"bytesInOutput":11116},"packages/core/mesh/teleport/src/testing/test-builder.ts":{"bytesInOutput":5213},"packages/core/mesh/teleport/src/testing/index.ts":{"bytesInOutput":0},"packages/core/mesh/teleport/src/testing/test-extension.ts":{"bytesInOutput":2751},"packages/core/mesh/teleport/src/testing/test-extension-with-streams.ts":{"bytesInOutput":7593},"packages/core/mesh/teleport/src/rpc-extension.ts":{"bytesInOutput":1395}},"bytes":48821},"packages/core/mesh/teleport/dist/lib/node/testing/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":78316},"packages/core/mesh/teleport/dist/lib/node/testing/index.cjs":{"imports":[{"path":"node:stream","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"node:stream","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"node:stream","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"varint","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true},{"path":"node:crypto","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/core/mesh/teleport/src/testing/index.ts","inputs":{"packages/core/mesh/teleport/src/testing/index.ts":{"bytesInOutput":305},"packages/core/mesh/teleport/src/testing/test-builder.ts":{"bytesInOutput":5213},"packages/core/mesh/teleport/src/teleport.ts":{"bytesInOutput":11116},"packages/core/mesh/teleport/src/muxing/framer.ts":{"bytesInOutput":3865},"packages/core/mesh/teleport/src/muxing/index.ts":{"bytesInOutput":0},"packages/core/mesh/teleport/src/muxing/muxer.ts":{"bytesInOutput":9559},"packages/core/mesh/teleport/src/muxing/balancer.ts":{"bytesInOutput":4615},"packages/core/mesh/teleport/src/testing/test-extension.ts":{"bytesInOutput":2751},"packages/core/mesh/teleport/src/testing/test-extension-with-streams.ts":{"bytesInOutput":7593}},"bytes":47246}}}
|
|
1
|
+
{"inputs":{"packages/core/mesh/teleport/src/muxing/framer.ts":{"bytes":15794,"imports":[{"path":"node:stream","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true}],"format":"esm"},"packages/core/mesh/teleport/src/muxing/balancer.ts":{"bytes":19955,"imports":[{"path":"varint","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"packages/core/mesh/teleport/src/muxing/framer.ts","kind":"import-statement","original":"./framer"}],"format":"esm"},"packages/core/mesh/teleport/src/muxing/muxer.ts":{"bytes":39230,"imports":[{"path":"node:stream","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"packages/core/mesh/teleport/src/muxing/balancer.ts","kind":"import-statement","original":"./balancer"}],"format":"esm"},"packages/core/mesh/teleport/src/muxing/rpc-port.ts":{"bytes":933,"imports":[],"format":"esm"},"packages/core/mesh/teleport/src/muxing/index.ts":{"bytes":641,"imports":[{"path":"packages/core/mesh/teleport/src/muxing/framer.ts","kind":"import-statement","original":"./framer"},{"path":"packages/core/mesh/teleport/src/muxing/muxer.ts","kind":"import-statement","original":"./muxer"},{"path":"packages/core/mesh/teleport/src/muxing/rpc-port.ts","kind":"import-statement","original":"./rpc-port"}],"format":"esm"},"packages/core/mesh/teleport/src/teleport.ts":{"bytes":36844,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/context","kind":"import-statement","external":true},{"path":"@dxos/debug","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true},{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"packages/core/mesh/teleport/src/muxing/index.ts","kind":"import-statement","original":"./muxing"}],"format":"esm"},"packages/core/mesh/teleport/src/testing/test-builder.ts":{"bytes":15630,"imports":[{"path":"node:stream","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/keys","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"packages/core/mesh/teleport/src/teleport.ts","kind":"import-statement","original":"../teleport"}],"format":"esm"},"packages/core/mesh/teleport/src/testing/test-extension.ts":{"bytes":9934,"imports":[{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true}],"format":"esm"},"packages/core/mesh/teleport/src/testing/test-extension-with-streams.ts":{"bytes":27099,"imports":[{"path":"node:crypto","kind":"import-statement","external":true},{"path":"@dxos/async","kind":"import-statement","external":true},{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/protocols","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true}],"format":"esm"},"packages/core/mesh/teleport/src/testing/index.ts":{"bytes":728,"imports":[{"path":"packages/core/mesh/teleport/src/testing/test-builder.ts","kind":"import-statement","original":"./test-builder"},{"path":"packages/core/mesh/teleport/src/testing/test-extension.ts","kind":"import-statement","original":"./test-extension"},{"path":"packages/core/mesh/teleport/src/testing/test-extension-with-streams.ts","kind":"import-statement","original":"./test-extension-with-streams"}],"format":"esm"},"packages/core/mesh/teleport/src/rpc-extension.ts":{"bytes":6061,"imports":[{"path":"@dxos/invariant","kind":"import-statement","external":true},{"path":"@dxos/rpc","kind":"import-statement","external":true}],"format":"esm"},"packages/core/mesh/teleport/src/index.ts":{"bytes":741,"imports":[{"path":"packages/core/mesh/teleport/src/muxing/index.ts","kind":"import-statement","original":"./muxing"},{"path":"packages/core/mesh/teleport/src/teleport.ts","kind":"import-statement","original":"./teleport"},{"path":"packages/core/mesh/teleport/src/testing/index.ts","kind":"import-statement","original":"./testing"},{"path":"packages/core/mesh/teleport/src/rpc-extension.ts","kind":"import-statement","original":"./rpc-extension"}],"format":"esm"}},"outputs":{"packages/core/mesh/teleport/dist/lib/node/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":81377},"packages/core/mesh/teleport/dist/lib/node/index.cjs":{"imports":[{"path":"node:stream","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"node:stream","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"varint","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"node:stream","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true},{"path":"node:crypto","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/core/mesh/teleport/src/index.ts","inputs":{"packages/core/mesh/teleport/src/index.ts":{"bytesInOutput":471},"packages/core/mesh/teleport/src/muxing/framer.ts":{"bytesInOutput":3875},"packages/core/mesh/teleport/src/muxing/index.ts":{"bytesInOutput":0},"packages/core/mesh/teleport/src/muxing/muxer.ts":{"bytesInOutput":9569},"packages/core/mesh/teleport/src/muxing/balancer.ts":{"bytesInOutput":4625},"packages/core/mesh/teleport/src/teleport.ts":{"bytesInOutput":11126},"packages/core/mesh/teleport/src/testing/test-builder.ts":{"bytesInOutput":5223},"packages/core/mesh/teleport/src/testing/index.ts":{"bytesInOutput":0},"packages/core/mesh/teleport/src/testing/test-extension.ts":{"bytesInOutput":2761},"packages/core/mesh/teleport/src/testing/test-extension-with-streams.ts":{"bytesInOutput":7603},"packages/core/mesh/teleport/src/rpc-extension.ts":{"bytesInOutput":1405}},"bytes":48901},"packages/core/mesh/teleport/dist/lib/node/testing/index.cjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":78440},"packages/core/mesh/teleport/dist/lib/node/testing/index.cjs":{"imports":[{"path":"node:stream","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/keys","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true},{"path":"@dxos/util","kind":"require-call","external":true},{"path":"node:stream","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"node:stream","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/context","kind":"require-call","external":true},{"path":"@dxos/debug","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"varint","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true},{"path":"node:crypto","kind":"require-call","external":true},{"path":"@dxos/async","kind":"require-call","external":true},{"path":"@dxos/invariant","kind":"require-call","external":true},{"path":"@dxos/log","kind":"require-call","external":true},{"path":"@dxos/protocols","kind":"require-call","external":true},{"path":"@dxos/rpc","kind":"require-call","external":true}],"exports":[],"entryPoint":"packages/core/mesh/teleport/src/testing/index.ts","inputs":{"packages/core/mesh/teleport/src/testing/index.ts":{"bytesInOutput":305},"packages/core/mesh/teleport/src/testing/test-builder.ts":{"bytesInOutput":5223},"packages/core/mesh/teleport/src/teleport.ts":{"bytesInOutput":11126},"packages/core/mesh/teleport/src/muxing/framer.ts":{"bytesInOutput":3875},"packages/core/mesh/teleport/src/muxing/index.ts":{"bytesInOutput":0},"packages/core/mesh/teleport/src/muxing/muxer.ts":{"bytesInOutput":9569},"packages/core/mesh/teleport/src/muxing/balancer.ts":{"bytesInOutput":4625},"packages/core/mesh/teleport/src/testing/test-extension.ts":{"bytesInOutput":2761},"packages/core/mesh/teleport/src/testing/test-extension-with-streams.ts":{"bytesInOutput":7603}},"bytes":47316}}}
|
|
@@ -58,7 +58,7 @@ var import_util = require("@dxos/util");
|
|
|
58
58
|
// packages/core/mesh/teleport/src/muxing/framer.ts
|
|
59
59
|
var import_node_stream = require("node:stream");
|
|
60
60
|
var import_invariant = require("@dxos/invariant");
|
|
61
|
-
var __dxlog_file = "/
|
|
61
|
+
var __dxlog_file = "/home/runner/work/dxos/dxos/packages/core/mesh/teleport/src/muxing/framer.ts";
|
|
62
62
|
var FRAME_LENGTH_SIZE = 2;
|
|
63
63
|
var Framer = class {
|
|
64
64
|
constructor() {
|
|
@@ -208,7 +208,7 @@ var import_protocols = require("@dxos/protocols");
|
|
|
208
208
|
var varint = __toESM(require("varint"));
|
|
209
209
|
var import_async = require("@dxos/async");
|
|
210
210
|
var import_log = require("@dxos/log");
|
|
211
|
-
var __dxlog_file2 = "/
|
|
211
|
+
var __dxlog_file2 = "/home/runner/work/dxos/dxos/packages/core/mesh/teleport/src/muxing/balancer.ts";
|
|
212
212
|
var MAX_CHUNK_SIZE = 8192;
|
|
213
213
|
var Balancer = class {
|
|
214
214
|
constructor(_sysChannelId) {
|
|
@@ -359,7 +359,7 @@ var decodeChunk = (data, withLength) => {
|
|
|
359
359
|
};
|
|
360
360
|
|
|
361
361
|
// packages/core/mesh/teleport/src/muxing/muxer.ts
|
|
362
|
-
var __dxlog_file3 = "/
|
|
362
|
+
var __dxlog_file3 = "/home/runner/work/dxos/dxos/packages/core/mesh/teleport/src/muxing/muxer.ts";
|
|
363
363
|
var Command = import_protocols.schema.getCodecForType("dxos.mesh.muxer.Command");
|
|
364
364
|
var STATS_INTERVAL = 1e3;
|
|
365
365
|
var MAX_SAFE_FRAME_SIZE = 1e6;
|
|
@@ -696,7 +696,7 @@ function _ts_decorate(decorators, target, key, desc) {
|
|
|
696
696
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
697
697
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
698
698
|
}
|
|
699
|
-
var __dxlog_file4 = "/
|
|
699
|
+
var __dxlog_file4 = "/home/runner/work/dxos/dxos/packages/core/mesh/teleport/src/teleport.ts";
|
|
700
700
|
var Teleport = class {
|
|
701
701
|
constructor({ initiator, localPeerId, remotePeerId }) {
|
|
702
702
|
this._ctx = new import_context2.Context({
|
|
@@ -704,7 +704,7 @@ var Teleport = class {
|
|
|
704
704
|
void this.destroy(err).catch(() => {
|
|
705
705
|
import_log3.log.error("Error during destroy", err, {
|
|
706
706
|
F: __dxlog_file4,
|
|
707
|
-
L:
|
|
707
|
+
L: 44,
|
|
708
708
|
S: this,
|
|
709
709
|
C: (f, a) => f(...a)
|
|
710
710
|
});
|
|
@@ -721,13 +721,13 @@ var Teleport = class {
|
|
|
721
721
|
}
|
|
722
722
|
(0, import_log3.log)("destroy teleport due to onTimeout in ControlExtension", void 0, {
|
|
723
723
|
F: __dxlog_file4,
|
|
724
|
-
L:
|
|
724
|
+
L: 59,
|
|
725
725
|
S: this,
|
|
726
726
|
C: (f, a) => f(...a)
|
|
727
727
|
});
|
|
728
728
|
this.destroy(new import_protocols2.TimeoutError("control extension")).catch((err) => import_log3.log.catch(err, void 0, {
|
|
729
729
|
F: __dxlog_file4,
|
|
730
|
-
L:
|
|
730
|
+
L: 60,
|
|
731
731
|
S: this,
|
|
732
732
|
C: (f, a) => f(...a)
|
|
733
733
|
}));
|
|
@@ -740,7 +740,7 @@ var Teleport = class {
|
|
|
740
740
|
this._aborting = false;
|
|
741
741
|
(0, import_invariant3.invariant)(typeof initiator === "boolean", void 0, {
|
|
742
742
|
F: __dxlog_file4,
|
|
743
|
-
L:
|
|
743
|
+
L: 72,
|
|
744
744
|
S: this,
|
|
745
745
|
A: [
|
|
746
746
|
"typeof initiator === 'boolean'",
|
|
@@ -749,7 +749,7 @@ var Teleport = class {
|
|
|
749
749
|
});
|
|
750
750
|
(0, import_invariant3.invariant)(import_keys.PublicKey.isPublicKey(localPeerId), void 0, {
|
|
751
751
|
F: __dxlog_file4,
|
|
752
|
-
L:
|
|
752
|
+
L: 73,
|
|
753
753
|
S: this,
|
|
754
754
|
A: [
|
|
755
755
|
"PublicKey.isPublicKey(localPeerId)",
|
|
@@ -758,7 +758,7 @@ var Teleport = class {
|
|
|
758
758
|
});
|
|
759
759
|
(0, import_invariant3.invariant)(import_keys.PublicKey.isPublicKey(remotePeerId), void 0, {
|
|
760
760
|
F: __dxlog_file4,
|
|
761
|
-
L:
|
|
761
|
+
L: 74,
|
|
762
762
|
S: this,
|
|
763
763
|
A: [
|
|
764
764
|
"PublicKey.isPublicKey(remotePeerId)",
|
|
@@ -773,13 +773,13 @@ var Teleport = class {
|
|
|
773
773
|
name
|
|
774
774
|
}, {
|
|
775
775
|
F: __dxlog_file4,
|
|
776
|
-
L:
|
|
776
|
+
L: 80,
|
|
777
777
|
S: this,
|
|
778
778
|
C: (f, a) => f(...a)
|
|
779
779
|
});
|
|
780
780
|
(0, import_invariant3.invariant)(!this._remoteExtensions.has(name), "Remote extension already exists", {
|
|
781
781
|
F: __dxlog_file4,
|
|
782
|
-
L:
|
|
782
|
+
L: 81,
|
|
783
783
|
S: this,
|
|
784
784
|
A: [
|
|
785
785
|
"!this._remoteExtensions.has(name)",
|
|
@@ -800,7 +800,7 @@ var Teleport = class {
|
|
|
800
800
|
if (this._destroying || this._aborting) {
|
|
801
801
|
(0, import_log3.log)("destroy teleport due to muxer stream close, skipping due to already destroying/aborting", void 0, {
|
|
802
802
|
F: __dxlog_file4,
|
|
803
|
-
L:
|
|
803
|
+
L: 97,
|
|
804
804
|
S: this,
|
|
805
805
|
C: (f, a) => f(...a)
|
|
806
806
|
});
|
|
@@ -823,7 +823,7 @@ var Teleport = class {
|
|
|
823
823
|
channels: stats.channels
|
|
824
824
|
}, {
|
|
825
825
|
F: __dxlog_file4,
|
|
826
|
-
L:
|
|
826
|
+
L: 110,
|
|
827
827
|
S: this,
|
|
828
828
|
C: (f, a) => f(...a)
|
|
829
829
|
});
|
|
@@ -861,7 +861,7 @@ var Teleport = class {
|
|
|
861
861
|
} catch (err2) {
|
|
862
862
|
import_log3.log.catch(err2, void 0, {
|
|
863
863
|
F: __dxlog_file4,
|
|
864
|
-
L:
|
|
864
|
+
L: 163,
|
|
865
865
|
S: this,
|
|
866
866
|
C: (f, a) => f(...a)
|
|
867
867
|
});
|
|
@@ -884,7 +884,7 @@ var Teleport = class {
|
|
|
884
884
|
} catch (err2) {
|
|
885
885
|
import_log3.log.catch(err2, void 0, {
|
|
886
886
|
F: __dxlog_file4,
|
|
887
|
-
L:
|
|
887
|
+
L: 187,
|
|
888
888
|
S: this,
|
|
889
889
|
C: (f, a) => f(...a)
|
|
890
890
|
});
|
|
@@ -900,7 +900,7 @@ var Teleport = class {
|
|
|
900
900
|
name
|
|
901
901
|
}, {
|
|
902
902
|
F: __dxlog_file4,
|
|
903
|
-
L:
|
|
903
|
+
L: 199,
|
|
904
904
|
S: this,
|
|
905
905
|
C: (f, a) => f(...a)
|
|
906
906
|
});
|
|
@@ -924,7 +924,7 @@ var Teleport = class {
|
|
|
924
924
|
_setExtension(extensionName, extension) {
|
|
925
925
|
(0, import_invariant3.invariant)(!extensionName.includes("/"), "Invalid extension name", {
|
|
926
926
|
F: __dxlog_file4,
|
|
927
|
-
L:
|
|
927
|
+
L: 223,
|
|
928
928
|
S: this,
|
|
929
929
|
A: [
|
|
930
930
|
"!extensionName.includes('/')",
|
|
@@ -933,7 +933,7 @@ var Teleport = class {
|
|
|
933
933
|
});
|
|
934
934
|
(0, import_invariant3.invariant)(!this._extensions.has(extensionName), "Extension already exists", {
|
|
935
935
|
F: __dxlog_file4,
|
|
936
|
-
L:
|
|
936
|
+
L: 224,
|
|
937
937
|
S: this,
|
|
938
938
|
A: [
|
|
939
939
|
"!this._extensions.has(extensionName)",
|
|
@@ -947,7 +947,7 @@ var Teleport = class {
|
|
|
947
947
|
extensionName
|
|
948
948
|
}, {
|
|
949
949
|
F: __dxlog_file4,
|
|
950
|
-
L:
|
|
950
|
+
L: 229,
|
|
951
951
|
S: this,
|
|
952
952
|
C: (f, a) => f(...a)
|
|
953
953
|
});
|
|
@@ -959,7 +959,7 @@ var Teleport = class {
|
|
|
959
959
|
createPort: async (channelName, opts) => {
|
|
960
960
|
(0, import_invariant3.invariant)(!channelName.includes("/"), "Invalid channel name", {
|
|
961
961
|
F: __dxlog_file4,
|
|
962
|
-
L:
|
|
962
|
+
L: 237,
|
|
963
963
|
S: this,
|
|
964
964
|
A: [
|
|
965
965
|
"!channelName.includes('/')",
|
|
@@ -971,7 +971,7 @@ var Teleport = class {
|
|
|
971
971
|
createStream: async (channelName, opts) => {
|
|
972
972
|
(0, import_invariant3.invariant)(!channelName.includes("/"), "Invalid channel name", {
|
|
973
973
|
F: __dxlog_file4,
|
|
974
|
-
L:
|
|
974
|
+
L: 241,
|
|
975
975
|
S: this,
|
|
976
976
|
A: [
|
|
977
977
|
"!channelName.includes('/')",
|
|
@@ -991,7 +991,7 @@ var Teleport = class {
|
|
|
991
991
|
extensionName
|
|
992
992
|
}, {
|
|
993
993
|
F: __dxlog_file4,
|
|
994
|
-
L:
|
|
994
|
+
L: 252,
|
|
995
995
|
S: this,
|
|
996
996
|
C: (f, a) => f(...a)
|
|
997
997
|
});
|
|
@@ -1060,7 +1060,7 @@ var ControlExtension = class {
|
|
|
1060
1060
|
};
|
|
1061
1061
|
|
|
1062
1062
|
// packages/core/mesh/teleport/src/testing/test-builder.ts
|
|
1063
|
-
var __dxlog_file5 = "/
|
|
1063
|
+
var __dxlog_file5 = "/home/runner/work/dxos/dxos/packages/core/mesh/teleport/src/testing/test-builder.ts";
|
|
1064
1064
|
var TestBuilder = class {
|
|
1065
1065
|
constructor() {
|
|
1066
1066
|
this._peers = /* @__PURE__ */ new Set();
|
|
@@ -1266,7 +1266,7 @@ var import_invariant5 = require("@dxos/invariant");
|
|
|
1266
1266
|
var import_log5 = require("@dxos/log");
|
|
1267
1267
|
var import_protocols3 = require("@dxos/protocols");
|
|
1268
1268
|
var import_rpc2 = require("@dxos/rpc");
|
|
1269
|
-
var __dxlog_file6 = "/
|
|
1269
|
+
var __dxlog_file6 = "/home/runner/work/dxos/dxos/packages/core/mesh/teleport/src/testing/test-extension.ts";
|
|
1270
1270
|
var TestExtension = class {
|
|
1271
1271
|
constructor(callbacks = {}) {
|
|
1272
1272
|
this.callbacks = callbacks;
|
|
@@ -1373,7 +1373,7 @@ var import_invariant6 = require("@dxos/invariant");
|
|
|
1373
1373
|
var import_log6 = require("@dxos/log");
|
|
1374
1374
|
var import_protocols4 = require("@dxos/protocols");
|
|
1375
1375
|
var import_rpc3 = require("@dxos/rpc");
|
|
1376
|
-
var __dxlog_file7 = "/
|
|
1376
|
+
var __dxlog_file7 = "/home/runner/work/dxos/dxos/packages/core/mesh/teleport/src/testing/test-extension-with-streams.ts";
|
|
1377
1377
|
var TestExtensionWithStreams = class {
|
|
1378
1378
|
constructor(callbacks = {}) {
|
|
1379
1379
|
this.callbacks = callbacks;
|