@welshman/net 0.0.42 → 0.0.44
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/build/src/Connection.d.ts +13 -12
- package/build/src/Connection.js +57 -0
- package/build/src/Connection.js.map +1 -0
- package/build/src/ConnectionAuth.d.ts +1 -1
- package/build/src/ConnectionAuth.js +99 -0
- package/build/src/ConnectionAuth.js.map +1 -0
- package/build/src/{ConnectionEvent.mjs → ConnectionEvent.js} +1 -1
- package/build/src/ConnectionEvent.js.map +1 -0
- package/build/src/ConnectionSender.d.ts +3 -4
- package/build/src/ConnectionSender.js +48 -0
- package/build/src/ConnectionSender.js.map +1 -0
- package/build/src/ConnectionState.d.ts +2 -2
- package/build/src/ConnectionState.js +80 -0
- package/build/src/ConnectionState.js.map +1 -0
- package/build/src/ConnectionStats.d.ts +1 -1
- package/build/src/{ConnectionStats.mjs → ConnectionStats.js} +31 -30
- package/build/src/ConnectionStats.js.map +1 -0
- package/build/src/Context.d.ts +7 -7
- package/build/src/{Context.mjs → Context.js} +8 -9
- package/build/src/Context.js.map +1 -0
- package/build/src/Executor.d.ts +8 -7
- package/build/src/{Executor.mjs → Executor.js} +32 -31
- package/build/src/Executor.js.map +1 -0
- package/build/src/{Negentropy.mjs → Negentropy.js} +1 -1
- package/build/src/Negentropy.js.map +1 -0
- package/build/src/Pool.d.ts +2 -2
- package/build/src/{Pool.mjs → Pool.js} +6 -5
- package/build/src/Pool.js.map +1 -0
- package/build/src/Publish.d.ts +3 -3
- package/build/src/{Publish.mjs → Publish.js} +5 -6
- package/build/src/Publish.js.map +1 -0
- package/build/src/Socket.d.ts +2 -2
- package/build/src/Socket.js +110 -0
- package/build/src/Socket.js.map +1 -0
- package/build/src/Subscribe.d.ts +4 -4
- package/build/src/{Subscribe.mjs → Subscribe.js} +65 -67
- package/build/src/Subscribe.js.map +1 -0
- package/build/src/Sync.d.ts +2 -2
- package/build/src/{Sync.mjs → Sync.js} +11 -12
- package/build/src/Sync.js.map +1 -0
- package/build/src/Tracker.d.ts +2 -2
- package/build/src/Tracker.js +63 -0
- package/build/src/Tracker.js.map +1 -0
- package/build/src/index.d.ts +25 -19
- package/build/src/index.js +20 -0
- package/build/src/index.js.map +1 -0
- package/build/src/target/Echo.d.ts +3 -3
- package/build/src/target/Echo.js +13 -0
- package/build/src/target/Echo.js.map +1 -0
- package/build/src/target/Local.d.ts +5 -5
- package/build/src/target/Local.js +25 -0
- package/build/src/target/Local.js.map +1 -0
- package/build/src/target/Multi.d.ts +5 -5
- package/build/src/target/Multi.js +22 -0
- package/build/src/target/Multi.js.map +1 -0
- package/build/src/target/Relay.d.ts +4 -4
- package/build/src/target/Relay.js +24 -0
- package/build/src/target/Relay.js.map +1 -0
- package/build/src/target/Relays.d.ts +4 -4
- package/build/src/target/Relays.js +25 -0
- package/build/src/target/Relays.js.map +1 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/package.json +7 -10
- package/build/src/Connection.cjs +0 -49
- package/build/src/Connection.cjs.map +0 -1
- package/build/src/Connection.mjs +0 -45
- package/build/src/Connection.mjs.map +0 -1
- package/build/src/ConnectionAuth.cjs +0 -109
- package/build/src/ConnectionAuth.cjs.map +0 -1
- package/build/src/ConnectionAuth.mjs +0 -105
- package/build/src/ConnectionAuth.mjs.map +0 -1
- package/build/src/ConnectionEvent.cjs +0 -16
- package/build/src/ConnectionEvent.cjs.map +0 -1
- package/build/src/ConnectionEvent.mjs.map +0 -1
- package/build/src/ConnectionSender.cjs +0 -50
- package/build/src/ConnectionSender.cjs.map +0 -1
- package/build/src/ConnectionSender.mjs +0 -46
- package/build/src/ConnectionSender.mjs.map +0 -1
- package/build/src/ConnectionState.cjs +0 -68
- package/build/src/ConnectionState.cjs.map +0 -1
- package/build/src/ConnectionState.mjs +0 -64
- package/build/src/ConnectionState.mjs.map +0 -1
- package/build/src/ConnectionStats.cjs +0 -86
- package/build/src/ConnectionStats.cjs.map +0 -1
- package/build/src/ConnectionStats.mjs.map +0 -1
- package/build/src/Context.cjs +0 -47
- package/build/src/Context.cjs.map +0 -1
- package/build/src/Context.mjs.map +0 -1
- package/build/src/Executor.cjs +0 -109
- package/build/src/Executor.cjs.map +0 -1
- package/build/src/Executor.mjs.map +0 -1
- package/build/src/Negentropy.cjs +0 -516
- package/build/src/Negentropy.cjs.map +0 -1
- package/build/src/Negentropy.mjs.map +0 -1
- package/build/src/Pool.cjs +0 -38
- package/build/src/Pool.cjs.map +0 -1
- package/build/src/Pool.mjs.map +0 -1
- package/build/src/Publish.cjs +0 -74
- package/build/src/Publish.cjs.map +0 -1
- package/build/src/Publish.mjs.map +0 -1
- package/build/src/Socket.cjs +0 -120
- package/build/src/Socket.cjs.map +0 -1
- package/build/src/Socket.mjs +0 -113
- package/build/src/Socket.mjs.map +0 -1
- package/build/src/Subscribe.cjs +0 -294
- package/build/src/Subscribe.cjs.map +0 -1
- package/build/src/Subscribe.mjs.map +0 -1
- package/build/src/Sync.cjs +0 -136
- package/build/src/Sync.cjs.map +0 -1
- package/build/src/Sync.mjs.map +0 -1
- package/build/src/Tracker.cjs +0 -68
- package/build/src/Tracker.cjs.map +0 -1
- package/build/src/Tracker.mjs +0 -64
- package/build/src/Tracker.mjs.map +0 -1
- package/build/src/index.cjs +0 -36
- package/build/src/index.cjs.map +0 -1
- package/build/src/index.mjs +0 -20
- package/build/src/index.mjs.map +0 -1
- package/build/src/target/Echo.cjs +0 -20
- package/build/src/target/Echo.cjs.map +0 -1
- package/build/src/target/Echo.mjs +0 -16
- package/build/src/target/Echo.mjs.map +0 -1
- package/build/src/target/Local.cjs +0 -28
- package/build/src/target/Local.cjs.map +0 -1
- package/build/src/target/Local.mjs +0 -24
- package/build/src/target/Local.mjs.map +0 -1
- package/build/src/target/Multi.cjs +0 -25
- package/build/src/target/Multi.cjs.map +0 -1
- package/build/src/target/Multi.mjs +0 -21
- package/build/src/target/Multi.mjs.map +0 -1
- package/build/src/target/Relay.cjs +0 -27
- package/build/src/target/Relay.cjs.map +0 -1
- package/build/src/target/Relay.mjs +0 -23
- package/build/src/target/Relay.mjs.map +0 -1
- package/build/src/target/Relays.cjs +0 -30
- package/build/src/target/Relays.cjs.map +0 -1
- package/build/src/target/Relays.mjs +0 -26
- package/build/src/target/Relays.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../lib/build/src/context.d.ts","../../lib/build/src/deferred.d.ts","../../../node_modules/@types/events/index.d.ts","../../lib/build/src/emitter.d.ts","../../lib/build/src/lrucache.d.ts","../../lib/build/src/tools.d.ts","../../lib/build/src/worker.d.ts","../../lib/build/src/normalize-url/index.d.ts","../../lib/build/src/index.d.ts","../../util/build/src/address.d.ts","../../../node_modules/nostr-tools/lib/types/core.d.ts","../../../node_modules/nostr-tools/lib/types/pure.d.ts","../../util/build/src/events.d.ts","../../util/build/src/encryptable.d.ts","../../util/build/src/filters.d.ts","../../util/build/src/handler.d.ts","../../../node_modules/nostr-tools/lib/types/kinds.d.ts","../../util/build/src/kinds.d.ts","../../util/build/src/links.d.ts","../../util/build/src/list.d.ts","../../util/build/src/profile.d.ts","../../util/build/src/repository.d.ts","../../util/build/src/relay.d.ts","../../util/build/src/tags.d.ts","../../util/build/src/zaps.d.ts","../../util/build/src/index.d.ts","../../../node_modules/@types/node/compatibility/disposable.d.ts","../../../node_modules/@types/node/compatibility/indexable.d.ts","../../../node_modules/@types/node/compatibility/iterators.d.ts","../../../node_modules/@types/node/compatibility/index.d.ts","../../../node_modules/@types/node/globals.typedarray.d.ts","../../../node_modules/@types/node/buffer.buffer.d.ts","../../../node_modules/undici-types/header.d.ts","../../../node_modules/undici-types/readable.d.ts","../../../node_modules/undici-types/file.d.ts","../../../node_modules/undici-types/fetch.d.ts","../../../node_modules/undici-types/formdata.d.ts","../../../node_modules/undici-types/connector.d.ts","../../../node_modules/undici-types/client.d.ts","../../../node_modules/undici-types/errors.d.ts","../../../node_modules/undici-types/dispatcher.d.ts","../../../node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/undici-types/global-origin.d.ts","../../../node_modules/undici-types/pool-stats.d.ts","../../../node_modules/undici-types/pool.d.ts","../../../node_modules/undici-types/handlers.d.ts","../../../node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/undici-types/agent.d.ts","../../../node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/undici-types/mock-agent.d.ts","../../../node_modules/undici-types/mock-client.d.ts","../../../node_modules/undici-types/mock-pool.d.ts","../../../node_modules/undici-types/mock-errors.d.ts","../../../node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/undici-types/env-http-proxy-agent.d.ts","../../../node_modules/undici-types/retry-handler.d.ts","../../../node_modules/undici-types/retry-agent.d.ts","../../../node_modules/undici-types/api.d.ts","../../../node_modules/undici-types/interceptors.d.ts","../../../node_modules/undici-types/util.d.ts","../../../node_modules/undici-types/cookies.d.ts","../../../node_modules/undici-types/patch.d.ts","../../../node_modules/undici-types/websocket.d.ts","../../../node_modules/undici-types/eventsource.d.ts","../../../node_modules/undici-types/filereader.d.ts","../../../node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/undici-types/content-type.d.ts","../../../node_modules/undici-types/cache.d.ts","../../../node_modules/undici-types/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/dom-events.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/readline/promises.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/sea.d.ts","../../../node_modules/@types/node/sqlite.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/test.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/ws/index.d.ts","../../../node_modules/isomorphic-ws/index.d.ts","../src/connectionevent.ts","../src/socket.ts","../src/connectionstate.ts","../src/connectionstats.ts","../src/connectionauth.ts","../src/connectionsender.ts","../src/connection.ts","../src/pool.ts","../src/negentropy.ts","../src/executor.ts","../src/target/relays.ts","../src/tracker.ts","../src/subscribe.ts","../src/context.ts","../src/publish.ts","../src/sync.ts","../src/target/echo.ts","../src/target/multi.ts","../src/target/relay.ts","../src/target/local.ts","../src/index.ts","../../../node_modules/@types/estree/index.d.ts","../../../node_modules/@types/unist/index.d.ts","../../../node_modules/@types/hast/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../../node_modules/@types/minimist/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/@types/semver/classes/semver.d.ts","../../../node_modules/@types/semver/functions/parse.d.ts","../../../node_modules/@types/semver/functions/valid.d.ts","../../../node_modules/@types/semver/functions/clean.d.ts","../../../node_modules/@types/semver/functions/inc.d.ts","../../../node_modules/@types/semver/functions/diff.d.ts","../../../node_modules/@types/semver/functions/major.d.ts","../../../node_modules/@types/semver/functions/minor.d.ts","../../../node_modules/@types/semver/functions/patch.d.ts","../../../node_modules/@types/semver/functions/prerelease.d.ts","../../../node_modules/@types/semver/functions/compare.d.ts","../../../node_modules/@types/semver/functions/rcompare.d.ts","../../../node_modules/@types/semver/functions/compare-loose.d.ts","../../../node_modules/@types/semver/functions/compare-build.d.ts","../../../node_modules/@types/semver/functions/sort.d.ts","../../../node_modules/@types/semver/functions/rsort.d.ts","../../../node_modules/@types/semver/functions/gt.d.ts","../../../node_modules/@types/semver/functions/lt.d.ts","../../../node_modules/@types/semver/functions/eq.d.ts","../../../node_modules/@types/semver/functions/neq.d.ts","../../../node_modules/@types/semver/functions/gte.d.ts","../../../node_modules/@types/semver/functions/lte.d.ts","../../../node_modules/@types/semver/functions/cmp.d.ts","../../../node_modules/@types/semver/functions/coerce.d.ts","../../../node_modules/@types/semver/classes/comparator.d.ts","../../../node_modules/@types/semver/classes/range.d.ts","../../../node_modules/@types/semver/functions/satisfies.d.ts","../../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../../node_modules/@types/semver/ranges/min-version.d.ts","../../../node_modules/@types/semver/ranges/valid.d.ts","../../../node_modules/@types/semver/ranges/outside.d.ts","../../../node_modules/@types/semver/ranges/gtr.d.ts","../../../node_modules/@types/semver/ranges/ltr.d.ts","../../../node_modules/@types/semver/ranges/intersects.d.ts","../../../node_modules/@types/semver/ranges/simplify.d.ts","../../../node_modules/@types/semver/ranges/subset.d.ts","../../../node_modules/@types/semver/internals/identifiers.d.ts","../../../node_modules/@types/semver/index.d.ts","../../../node_modules/@types/throttle-debounce/index.d.ts"],"fileIdsList":[[109,151],[109,151,226],[109,148,151],[109,150,151],[151],[109,151,156,186],[109,151,152,157,163,164,171,183,194],[109,151,152,153,163,171],[104,105,106,109,151],[109,151,154,195],[109,151,155,156,164,172],[109,151,156,183,191],[109,151,157,159,163,171],[109,150,151,158],[109,151,159,160],[109,151,163],[109,151,161,163],[109,150,151,163],[109,151,163,164,165,183,194],[109,151,163,164,165,178,183,186],[109,146,151,199],[109,146,151,159,163,166,171,183,194],[109,151,163,164,166,167,171,183,191,194],[109,151,166,168,183,191,194],[107,108,109,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200],[109,151,163,169],[109,151,170,194,199],[109,151,159,163,171,183],[109,151,172],[109,151,173],[109,150,151,174],[109,148,149,150,151,152,153,154,155,156,157,158,159,160,161,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200],[109,151,176],[109,151,177],[109,151,163,178,179],[109,151,178,180,195,197],[109,151,163,183,184,185,186],[109,151,183,185],[109,151,183,184],[109,151,186],[109,151,187],[109,148,151,183],[109,151,163,189,190],[109,151,189,190],[109,151,156,171,183,191],[109,151,192],[109,151,171,193],[109,151,166,177,194],[109,151,156,195],[109,151,183,196],[109,151,170,197],[109,151,198],[109,151,156,163,165,174,183,194,197,199],[109,151,183,200],[109,151,231,270],[109,151,231,255,270],[109,151,270],[109,151,231],[109,151,231,256,270],[109,151,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269],[109,151,256,270],[109,151,163,166,168,183,191,194,200,201],[109,151,202],[89,109,151],[88,109,151],[109,118,122,151,194],[109,118,151,183,194],[109,113,151],[109,115,118,151,191,194],[109,151,171,191],[109,151,201],[109,113,151,201],[109,115,118,151,171,194],[109,110,111,114,117,151,163,183,194],[109,118,125,151],[109,110,116,151],[109,118,139,140,151],[109,114,118,151,186,194,201],[109,139,151,201],[109,112,113,151,201],[109,118,151],[109,112,113,114,115,116,117,118,119,120,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,140,141,142,143,144,145,151],[109,118,133,151],[109,118,125,126,151],[109,116,118,126,127,151],[109,117,151],[109,110,113,118,151],[109,118,122,126,127,151],[109,122,151],[109,116,118,121,151,194],[109,110,115,118,125,151],[109,151,183],[109,113,118,139,151,199,201],[86,109,151,224],[78,79,81,82,83,84,85,109,151,224],[86,103,109,151,204,205,206,207,208,209,224],[86,103,109,151,204,205,210,224],[86,103,109,151,205,208,210,224],[109,151,204,205,210],[86,103,109,151,208,211,213,214,216,224],[86,103,109,151,205,210,212,224],[86,109,151,204,205,206,207,208,209,210,211,213,214,215,216,217,218,219,220,221,222,223],[86,109,151,210,224],[86,103,109,151,224],[86,109,151,203,204,210,224],[86,103,109,151,204,210,215,224],[86,103,109,151,216,218,224],[86,109,151,205,224],[86,103,109,151,205,224],[86,109,151,205,213,224],[86,109,151,204,205,210,224],[90,109,151],[87,90,91,92,93,95,96,97,98,99,100,101,102,109,151],[94,109,151],[90,91,109,151],[86,90,92,99,109,151,224],[86,90,92,109,151,224]],"fileInfos":[{"version":"e41c290ef7dd7dab3493e6cbe5909e0148edf4a8dad0271be08edec368a0f7b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"e12a46ce14b817d4c9e6b2b478956452330bf00c9801b79de46f7a1815b5bd40","impliedFormat":1},{"version":"4fd3f3422b2d2a3dfd5cdd0f387b3a8ec45f006c6ea896a4cb41264c2100bb2c","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"62bb211266ee48b2d0edf0d8d1b191f0c24fc379a82bd4c1692a082c540bc6b1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"936e80ad36a2ee83fc3caf008e7c4c5afe45b3cf3d5c24408f039c1d47bdc1df","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"fef8cfad2e2dc5f5b3d97a6f4f2e92848eb1b88e897bb7318cef0e2820bceaab","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"f1e2a172204962276504466a6393426d2ca9c54894b1ad0a6c9dad867a65f876","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"b5ce7a470bc3628408429040c4e3a53a27755022a32fd05e2cb694e7015386c7","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"bab26767638ab3557de12c900f0b91f710c7dc40ee9793d5a27d32c04f0bf646","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"61d6a2092f48af66dbfb220e31eea8b10bc02b6932d6e529005fd2d7b3281290","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"2585ed3df3f96a6e5656517d5b21fe2b80a584559202896d53c1339f999ba7f7","impliedFormat":99},{"version":"8ab03ebe0dfdb33be7373b4abdd55eb63e4fc1a2032cd88635d0ea938f99c3bc","impliedFormat":99},{"version":"93d28b4eb12c68fccc1f2fc04a4ef83ea3b2a03b18055d3bf29cab267aa7042e","impliedFormat":1},{"version":"1d89a3a8b04d3835a4acd125b06b41e9659b84c8c60ef63127e756913ce3ff58","impliedFormat":99},{"version":"68232c6dbd4ed796ed0cf0923e1a042b35baab95417be6659f38cc3c6f024366","impliedFormat":99},{"version":"3f98c38f71cba3a72e52b7945e05aa64692bbcd9dbc6ab79dbae56c67706cada","impliedFormat":99},{"version":"27912d54d993ca93541065b3f7e1151f58d23df02e291f39dd2ca8df29adecf3","impliedFormat":99},{"version":"7d355df26781aa9aae1f60ef9d267e7b43d66a7380f0bc0ce537be79f4b78f88","impliedFormat":99},{"version":"59ab8acc9c4e9bc87e42d6871b0adcf7a76e8a3ce00da1cda9ab6ee6c5836ca5","impliedFormat":99},{"version":"409d7e3250956d526e979ed26dd05c88d8ece1a11bef62666f67e6f837dd23a5","impliedFormat":99},{"version":"8ca865e3208d76f4f8f4d9bf17343c70043775921f9064259ca8543b5cddecfc","impliedFormat":99},{"version":"dc6767da0feb3a50b5aae66a5987671d4de64fd96eddd170ad09e66bc7e8ec9a","impliedFormat":99},{"version":"bd463084df2e8579bbce798607b34ec338471851157f3a5db4ea7c08b35a88b2","impliedFormat":99},{"version":"ca617b9ec209914c312edffb39ac4ffebc1f2b61b23b5e7d16c0e3553fab3c16","impliedFormat":99},{"version":"621fdbdf2a695a405d909f0a9ecadadf367fac03223d1802c140a829ba3f6cab","impliedFormat":99},{"version":"0429afe52cb6d23fca7704838760f2bf22c5447c122ecd65ea52bdaf4f5dc701","impliedFormat":99},{"version":"ef6efd7667c18e35237f72841e5841a4c2276b2933eeeb8aedf5f37ff6222f97","impliedFormat":99},{"version":"d3cb139577f168eef5f0d8f115d4914238fd0a996d87014c250ce5a241199774","impliedFormat":99},{"version":"9aa170d661a7fd7c372fcf64f2553a1121339c42483b4b4c7c98192a59ff6835","impliedFormat":99},{"version":"2331bffa05f7d9aa1a7dcba3f5435e97db008a699239a412dec7d519e2072130","impliedFormat":99},{"version":"d45c4841afd139bf3d3906dba16f014c6046b8e35d6d1982e3a763de7821cf85","impliedFormat":99},{"version":"f892a36f458d56403eb279f3cd8f84424d94bd4e0b086cea974e75f4c9eaa7c6","impliedFormat":99},{"version":"e563ba41f094d15a9a0a957b46c1a975b2579312cbaa4d86ffbbece21042243c","impliedFormat":99},{"version":"bd4ff295d7015cb05d99d82875a3b724b8452bb2ade227237547f546cc045f37","impliedFormat":99},{"version":"6e496ce8a98ba8db856aba972f9b57c48a0c1665daa32f729b89570e38df3a64","impliedFormat":99},{"version":"59b8486ba8e170b83672f3d8b3ec8ea3b979410601deac18ce1a0066cdc92bf6","impliedFormat":99},{"version":"70521b6ab0dcba37539e5303104f29b721bfb2940b2776da4cc818c07e1fefc1","affectsGlobalScope":true,"impliedFormat":1},{"version":"030e350db2525514580ed054f712ffb22d273e6bc7eddc1bb7eda1e0ba5d395e","affectsGlobalScope":true,"impliedFormat":1},{"version":"d153a11543fd884b596587ccd97aebbeed950b26933ee000f94009f1ab142848","affectsGlobalScope":true,"impliedFormat":1},{"version":"21d819c173c0cf7cc3ce57c3276e77fd9a8a01d35a06ad87158781515c9a438a","impliedFormat":1},{"version":"a79e62f1e20467e11a904399b8b18b18c0c6eea6b50c1168bf215356d5bebfaf","affectsGlobalScope":true,"impliedFormat":1},{"version":"0fd06258805d26c72f5997e07a23155d322d5f05387adb3744a791fe6a0b042d","affectsGlobalScope":true,"impliedFormat":1},{"version":"5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","impliedFormat":1},{"version":"24bd580b5743dc56402c440dc7f9a4f5d592ad7a419f25414d37a7bfe11e342b","impliedFormat":1},{"version":"25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","impliedFormat":1},{"version":"c464d66b20788266e5353b48dc4aa6bc0dc4a707276df1e7152ab0c9ae21fad8","impliedFormat":1},{"version":"78d0d27c130d35c60b5e5566c9f1e5be77caf39804636bc1a40133919a949f21","impliedFormat":1},{"version":"c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","impliedFormat":1},{"version":"1d6e127068ea8e104a912e42fc0a110e2aa5a66a356a917a163e8cf9a65e4a75","impliedFormat":1},{"version":"5ded6427296cdf3b9542de4471d2aa8d3983671d4cac0f4bf9c637208d1ced43","impliedFormat":1},{"version":"6bdc71028db658243775263e93a7db2fd2abfce3ca569c3cca5aee6ed5eb186d","impliedFormat":1},{"version":"cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","impliedFormat":1},{"version":"385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","impliedFormat":1},{"version":"9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","impliedFormat":1},{"version":"0b8a9268adaf4da35e7fa830c8981cfa22adbbe5b3f6f5ab91f6658899e657a7","impliedFormat":1},{"version":"11396ed8a44c02ab9798b7dca436009f866e8dae3c9c25e8c1fbc396880bf1bb","impliedFormat":1},{"version":"ba7bc87d01492633cb5a0e5da8a4a42a1c86270e7b3d2dea5d156828a84e4882","impliedFormat":1},{"version":"4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","impliedFormat":1},{"version":"c21dc52e277bcfc75fac0436ccb75c204f9e1b3fa5e12729670910639f27343e","impliedFormat":1},{"version":"13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","impliedFormat":1},{"version":"9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","impliedFormat":1},{"version":"4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","impliedFormat":1},{"version":"24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","impliedFormat":1},{"version":"ea0148f897b45a76544ae179784c95af1bd6721b8610af9ffa467a518a086a43","impliedFormat":1},{"version":"24c6a117721e606c9984335f71711877293a9651e44f59f3d21c1ea0856f9cc9","impliedFormat":1},{"version":"dd3273ead9fbde62a72949c97dbec2247ea08e0c6952e701a483d74ef92d6a17","impliedFormat":1},{"version":"405822be75ad3e4d162e07439bac80c6bcc6dbae1929e179cf467ec0b9ee4e2e","impliedFormat":1},{"version":"0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","impliedFormat":1},{"version":"e61be3f894b41b7baa1fbd6a66893f2579bfad01d208b4ff61daef21493ef0a8","impliedFormat":1},{"version":"bd0532fd6556073727d28da0edfd1736417a3f9f394877b6d5ef6ad88fba1d1a","impliedFormat":1},{"version":"89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","impliedFormat":1},{"version":"615ba88d0128ed16bf83ef8ccbb6aff05c3ee2db1cc0f89ab50a4939bfc1943f","impliedFormat":1},{"version":"a4d551dbf8746780194d550c88f26cf937caf8d56f102969a110cfaed4b06656","impliedFormat":1},{"version":"8bd86b8e8f6a6aa6c49b71e14c4ffe1211a0e97c80f08d2c8cc98838006e4b88","impliedFormat":1},{"version":"317e63deeb21ac07f3992f5b50cdca8338f10acd4fbb7257ebf56735bf52ab00","impliedFormat":1},{"version":"4732aec92b20fb28c5fe9ad99521fb59974289ed1e45aecb282616202184064f","impliedFormat":1},{"version":"2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","impliedFormat":1},{"version":"c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","impliedFormat":1},{"version":"bf67d53d168abc1298888693338cb82854bdb2e69ef83f8a0092093c2d562107","impliedFormat":1},{"version":"81184fe8e67d78ac4e5374650f0892d547d665d77da2b2f544b5d84729c4a15d","affectsGlobalScope":true,"impliedFormat":1},{"version":"f52e8dacc97d71dcc96af29e49584353f9c54cb916d132e3e768d8b8129c928d","impliedFormat":1},{"version":"7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","impliedFormat":1},{"version":"76103716ba397bbb61f9fa9c9090dca59f39f9047cb1352b2179c5d8e7f4e8d0","impliedFormat":1},{"version":"53eac70430b30089a3a1959d8306b0f9cfaf0de75224b68ef25243e0b5ad1ca3","affectsGlobalScope":true,"impliedFormat":1},{"version":"4314c7a11517e221f7296b46547dbc4df047115b182f544d072bdccffa57fc72","impliedFormat":1},{"version":"115971d64632ea4742b5b115fb64ed04bcaae2c3c342f13d9ba7e3f9ee39c4e7","impliedFormat":1},{"version":"c2510f124c0293ab80b1777c44d80f812b75612f297b9857406468c0f4dafe29","affectsGlobalScope":true,"impliedFormat":1},{"version":"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb","impliedFormat":1},{"version":"86956cc2eb9dd371d6fab493d326a574afedebf76eef3fa7833b8e0d9b52d6f1","affectsGlobalScope":true,"impliedFormat":1},{"version":"24642567d3729bcc545bacb65ee7c0db423400c7f1ef757cab25d05650064f98","impliedFormat":1},{"version":"e6f5a38687bebe43a4cef426b69d34373ef68be9a6b1538ec0a371e69f309354","impliedFormat":1},{"version":"a6bf63d17324010ca1fbf0389cab83f93389bb0b9a01dc8a346d092f65b3605f","impliedFormat":1},{"version":"e009777bef4b023a999b2e5b9a136ff2cde37dc3f77c744a02840f05b18be8ff","impliedFormat":1},{"version":"1e0d1f8b0adfa0b0330e028c7941b5a98c08b600efe7f14d2d2a00854fb2f393","impliedFormat":1},{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true,"impliedFormat":1},{"version":"875928df2f3e9a3aed4019539a15d04ff6140a06df6cd1b2feb836d22a81eaca","affectsGlobalScope":true,"impliedFormat":1},{"version":"e9ad08a376ac84948fcca0013d6f1d4ae4f9522e26b91f87945b97c99d7cc30b","impliedFormat":1},{"version":"eaf9ee1d90a35d56264f0bf39842282c58b9219e112ac7d0c1bce98c6c5da672","impliedFormat":1},{"version":"c15c4427ae7fd1dcd7f312a8a447ac93581b0d4664ddf151ecd07de4bf2bb9d7","impliedFormat":1},{"version":"5135bdd72cc05a8192bd2e92f0914d7fc43ee077d1293dc622a049b7035a0afb","impliedFormat":1},{"version":"4f80de3a11c0d2f1329a72e92c7416b2f7eab14f67e92cac63bb4e8d01c6edc8","impliedFormat":1},{"version":"6d386bc0d7f3afa1d401afc3e00ed6b09205a354a9795196caed937494a713e6","impliedFormat":1},{"version":"75c3400359d59fae5aed4c4a59fcd8a9760cf451e25dc2174cb5e08b9d4803e2","affectsGlobalScope":true,"impliedFormat":1},{"version":"94c4187083503a74f4544503b5a30e2bd7af0032dc739b0c9a7ce87f8bddc7b9","impliedFormat":1},{"version":"b1b6ee0d012aeebe11d776a155d8979730440082797695fc8e2a5c326285678f","impliedFormat":1},{"version":"45875bcae57270aeb3ebc73a5e3fb4c7b9d91d6b045f107c1d8513c28ece71c0","impliedFormat":1},{"version":"3eb62baae4df08c9173e6903d3ca45942ccec8c3659b0565684a75f3292cffbb","affectsGlobalScope":true,"impliedFormat":1},{"version":"a85683ef86875f4ad4c6b7301bbcc63fb379a8d80d3d3fd735ee57f48ef8a47e","affectsGlobalScope":true,"impliedFormat":1},{"version":"3f16a7e4deafa527ed9995a772bb380eb7d3c2c0fd4ae178c5263ed18394db2c","impliedFormat":1},{"version":"c6b4e0a02545304935ecbf7de7a8e056a31bb50939b5b321c9d50a405b5a0bba","impliedFormat":1},{"version":"fab29e6d649aa074a6b91e3bdf2bff484934a46067f6ee97a30fcd9762ae2213","impliedFormat":1},{"version":"8145e07aad6da5f23f2fcd8c8e4c5c13fb26ee986a79d03b0829b8fce152d8b2","impliedFormat":1},{"version":"e1120271ebbc9952fdc7b2dd3e145560e52e06956345e6fdf91d70ca4886464f","impliedFormat":1},{"version":"15c5e91b5f08be34a78e3d976179bf5b7a9cc28dc0ef1ffebffeb3c7812a2dca","impliedFormat":1},{"version":"a8f06c2382a30b7cb89ad2dfc48fc3b2b490f3dafcd839dadc008e4e5d57031d","impliedFormat":1},{"version":"553870e516f8c772b89f3820576152ebc70181d7994d96917bb943e37da7f8a7","impliedFormat":1},{"version":"37ba7b45141a45ce6e80e66f2a96c8a5ab1bcef0fc2d0f56bb58df96ec67e972","impliedFormat":1},{"version":"93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","impliedFormat":1},{"version":"745c4240220559bd340c8aeb6e3c5270a709d3565e934dc22a69c304703956bc","affectsGlobalScope":true,"impliedFormat":1},{"version":"2754d8221d77c7b382096651925eb476f1066b3348da4b73fe71ced7801edada","impliedFormat":1},{"version":"9212c6e9d80cb45441a3614e95afd7235a55a18584c2ed32d6c1aca5a0c53d93","affectsGlobalScope":true,"impliedFormat":1},{"version":"bef91efa0baea5d0e0f0f27b574a8bc100ce62a6d7e70220a0d58af6acab5e89","affectsGlobalScope":true,"impliedFormat":1},{"version":"282fd2a1268a25345b830497b4b7bf5037a5e04f6a9c44c840cb605e19fea841","impliedFormat":1},{"version":"5360a27d3ebca11b224d7d3e38e3e2c63f8290cb1fcf6c3610401898f8e68bc3","impliedFormat":1},{"version":"66ba1b2c3e3a3644a1011cd530fb444a96b1b2dfe2f5e837a002d41a1a799e60","impliedFormat":1},{"version":"7e514f5b852fdbc166b539fdd1f4e9114f29911592a5eb10a94bb3a13ccac3c4","impliedFormat":1},{"version":"7d6ff413e198d25639f9f01f16673e7df4e4bd2875a42455afd4ecc02ef156da","affectsGlobalScope":true,"impliedFormat":1},{"version":"6bd91a2a356600dee28eb0438082d0799a18a974a6537c4410a796bab749813c","affectsGlobalScope":true,"impliedFormat":1},{"version":"f689c4237b70ae6be5f0e4180e8833f34ace40529d1acc0676ab8fb8f70457d7","impliedFormat":1},{"version":"ae25afbbf1ed5df63a177d67b9048bf7481067f1b8dc9c39212e59db94fc9fc6","impliedFormat":1},{"version":"ac5ed35e649cdd8143131964336ab9076937fa91802ec760b3ea63b59175c10a","impliedFormat":1},{"version":"52a8e7e8a1454b6d1b5ad428efae3870ffc56f2c02d923467f2940c454aa9aec","affectsGlobalScope":true,"impliedFormat":1},{"version":"78dc0513cc4f1642906b74dda42146bcbd9df7401717d6e89ea6d72d12ecb539","impliedFormat":1},{"version":"ad90122e1cb599b3bc06a11710eb5489101be678f2920f2322b0ac3e195af78d","impliedFormat":1},{"version":"eb15edfcef078300657e1d5d678e1944b3518c2dd8f26792fdba2fe29f73d32b","impliedFormat":1},{"version":"1442a75050bad91356b11dcea6dfb877154d1f2e00f863a9b17ba5e903659503","impliedFormat":1},{"version":"e1e9ae78fe15b53c15265ec651e06522d4edd2d6baebeffab6ec69b0ade7887d","signature":"d99367daf345adfb02b785ec08026e831a0dd8e849d2cff97cc55a79d48fb081","impliedFormat":99},{"version":"283b2dbd3c96e92b69463879fcd3fb9588ffac6fa4f493fdb3afffe8718bd103","signature":"290cca79f199c1914348baa8f70ae826ed7652679721a996890b3edf0313fe80","impliedFormat":99},{"version":"88650e8d569d6463428d2fae74d14ab6c42f92705991008edc69a44b5c1f2f28","signature":"8d71d184a49f29e706dec206afd90e751a52032bb9036fed84d21ba2334da515","impliedFormat":99},{"version":"504e83eb876ac9b9e0b8ef46747539d6dbe36772dbdffaed5be5165d721090ae","signature":"ad3ca4f27b5fdf8de7285957ed9cca8435834f9f622fa67349df4199470988b3","impliedFormat":99},{"version":"1532fd4c3d934f2b3eff2525273fe9f86b27be21fa7b15f7dd5b83479f5ef17f","signature":"2cfd743026af64f03293e0789ec6395979a4829f20937a3807e1f4949c76877a","impliedFormat":99},{"version":"7d2656a499df56bb8c93a94b0454a7a4cfe756268372f1eaeddcdace586e170a","signature":"9e67618aff560e97a8ed9e139f995be1332d249135b3127dac64b3238950ef8d","impliedFormat":99},{"version":"3fa51b0841d876d49854c6a040fa1bda7b19d42172669b17dd0f3fcdf3a413ef","signature":"9ab718bdc0a7c3e3eae4cbfce1a716cc699b4341acd4e6fdc6e91b593db1dcdb","impliedFormat":99},{"version":"46f460b2db5efa8d6dd47a311457cd83c41dc23ec625251bad22d159587aa756","signature":"50aed46dea0eeca0af370a1b30fbbbbdaaf8ea8f8d14d8df1cb58a036c483b20","impliedFormat":99},{"version":"22870c6393c917c83df13a143dfcf5e46c1e6370b2cd7b88fa365eccd1c319bc","signature":"0ddc1243de2f8ae56b3bec91eea158aa1e237b3552fb591e9f7c2b23323ad59d","impliedFormat":99},{"version":"b106d154c266c3c94af07143ff57830ea2f223f5ff3c0ae1d0f7aaf9e5ae2ddc","signature":"77d3438cf28a906e3b50ed74dfb311b263d35192d9e1dbfa3e3358636a7052c5","impliedFormat":99},{"version":"0189a15679d681a9ac88d9e902f3b3c6d8cff774b6dfa8b203ecec8bc2a78976","signature":"dfb605ef0a7a4a17f161788c7628ca89f36e98a8530501a58172b1cf09c05731","impliedFormat":99},{"version":"5eeeaa602f8960776b8338e6496f2707cc04682a297a77d7ee11fdff297df157","signature":"c53060020506053406d1addaa20c6c1fa1b63021935ee32758be7adaf9d54e0b","impliedFormat":99},{"version":"d8d641e973f89de92ce44a263a51b81861d6081f030fc822f5c7b3f39bfd3d21","signature":"9cc2b3c3f791404e9364416a8b660d0b3324b7064f16d3663041ced78468f929","impliedFormat":99},{"version":"85017cd2bffc2c205b7c45df7624ed93c7c2eef0768d25033aead3610678e45d","signature":"3c58a65de09e6ae8e9c653d36753e972b42191f093d9c3448e471cd799a8a00c","impliedFormat":99},{"version":"6f575fc969557f2a2291631a4d111cfe87245cc79e6903ee2dff9b2f1f57d5c9","signature":"eecc79c62777ac9121546af0a7ca0e109b8de8481a6d0880135d0b5f1c611490","impliedFormat":99},{"version":"589d4c48c9e450f8c2c21f248b3aef7238e753e3d10454a4d3328115c6cea766","signature":"3ed9202614c3b8054d52c0965ea69f4ac5e80f1859619cc192f1086d4895c53c","impliedFormat":99},{"version":"a23774409a2b2d6ed4af1cae29fa685be41515d62346b1b97b4354befb829b44","signature":"596096a5c10b6e99beb68ce4facfcd110c7ebf3f9aa9d7c713015e97ac702985","impliedFormat":99},{"version":"e4a23958db6036b0933bd45cba6c9db367c6af724bbcf003d0dd67e5c6681e31","signature":"438bda364b9b33f423c6472f7b6e9f6f322b2ae871f3156cb01f40f6f3649a4a","impliedFormat":99},{"version":"cac61ce7ef77d0fda2f4ae25565f416e9cfb9285dbe539a77a09e714abc73d38","signature":"ba58d886c906f1d86e40bdb3dc313970d02e13933e8bf8680b6b2da06a7f3fba","impliedFormat":99},{"version":"c22ebeee9beb6bf17f6186adc7b64b234d15c13cee04cce1c33e76dfe476f6b4","signature":"b234a445224c7bc77e705fa59169882f917f01aca6b270848bce367ad925d9c3","impliedFormat":99},{"version":"960c19ae56ae5d442c4de64e7efbbc4cabd3ad4b38397ff4b8123f25657e8a91","signature":"70e609fbcebd64e13a07ea30d08fd96a22fdc9a4533f1fdd125bcb8f2a2b92f8","impliedFormat":99},{"version":"785b9d575b49124ce01b46f5b9402157c7611e6532effa562ac6aebec0074dfc","impliedFormat":1},{"version":"89121c1bf2990f5219bfd802a3e7fc557de447c62058d6af68d6b6348d64499a","impliedFormat":1},{"version":"79b4369233a12c6fa4a07301ecb7085802c98f3a77cf9ab97eee27e1656f82e6","impliedFormat":1},{"version":"f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","impliedFormat":1},{"version":"fbca5ffaebf282ec3cdac47b0d1d4a138a8b0bb32105251a38acb235087d3318","impliedFormat":1},{"version":"22293bd6fa12747929f8dfca3ec1684a3fe08638aa18023dd286ab337e88a592","impliedFormat":1},{"version":"cf3d384d082b933d987c4e2fe7bfb8710adfd9dc8155190056ed6695a25a559e","impliedFormat":1},{"version":"9871b7ee672bc16c78833bdab3052615834b08375cb144e4d2cba74473f4a589","impliedFormat":1},{"version":"c863198dae89420f3c552b5a03da6ed6d0acfa3807a64772b895db624b0de707","impliedFormat":1},{"version":"8b03a5e327d7db67112ebbc93b4f744133eda2c1743dbb0a990c61a8007823ef","impliedFormat":1},{"version":"86c73f2ee1752bac8eeeece234fd05dfcf0637a4fbd8032e4f5f43102faa8eec","impliedFormat":1},{"version":"42fad1f540271e35ca37cecda12c4ce2eef27f0f5cf0f8dd761d723c744d3159","impliedFormat":1},{"version":"ff3743a5de32bee10906aff63d1de726f6a7fd6ee2da4b8229054dfa69de2c34","impliedFormat":1},{"version":"83acd370f7f84f203e71ebba33ba61b7f1291ca027d7f9a662c6307d74e4ac22","impliedFormat":1},{"version":"1445cec898f90bdd18b2949b9590b3c012f5b7e1804e6e329fb0fe053946d5ec","impliedFormat":1},{"version":"0e5318ec2275d8da858b541920d9306650ae6ac8012f0e872fe66eb50321a669","impliedFormat":1},{"version":"cf530297c3fb3a92ec9591dd4fa229d58b5981e45fe6702a0bd2bea53a5e59be","impliedFormat":1},{"version":"c1f6f7d08d42148ddfe164d36d7aba91f467dbcb3caa715966ff95f55048b3a4","impliedFormat":1},{"version":"f4e9bf9103191ef3b3612d3ec0044ca4044ca5be27711fe648ada06fad4bcc85","impliedFormat":1},{"version":"0c1ee27b8f6a00097c2d6d91a21ee4d096ab52c1e28350f6362542b55380059a","impliedFormat":1},{"version":"7677d5b0db9e020d3017720f853ba18f415219fb3a9597343b1b1012cfd699f7","impliedFormat":1},{"version":"bc1c6bc119c1784b1a2be6d9c47addec0d83ef0d52c8fbe1f14a51b4dfffc675","impliedFormat":1},{"version":"52cf2ce99c2a23de70225e252e9822a22b4e0adb82643ab0b710858810e00bf1","impliedFormat":1},{"version":"770625067bb27a20b9826255a8d47b6b5b0a2d3dfcbd21f89904c731f671ba77","impliedFormat":1},{"version":"d1ed6765f4d7906a05968fb5cd6d1db8afa14dbe512a4884e8ea5c0f5e142c80","impliedFormat":1},{"version":"799c0f1b07c092626cf1efd71d459997635911bb5f7fc1196efe449bba87e965","impliedFormat":1},{"version":"2a184e4462b9914a30b1b5c41cf80c6d3428f17b20d3afb711fff3f0644001fd","impliedFormat":1},{"version":"9eabde32a3aa5d80de34af2c2206cdc3ee094c6504a8d0c2d6d20c7c179503cc","impliedFormat":1},{"version":"397c8051b6cfcb48aa22656f0faca2553c5f56187262135162ee79d2b2f6c966","impliedFormat":1},{"version":"a8ead142e0c87dcd5dc130eba1f8eeed506b08952d905c47621dc2f583b1bff9","impliedFormat":1},{"version":"a02f10ea5f73130efca046429254a4e3c06b5475baecc8f7b99a0014731be8b3","impliedFormat":1},{"version":"c2576a4083232b0e2d9bd06875dd43d371dee2e090325a9eac0133fd5650c1cb","impliedFormat":1},{"version":"4c9a0564bb317349de6a24eb4efea8bb79898fa72ad63a1809165f5bd42970dd","impliedFormat":1},{"version":"f40ac11d8859092d20f953aae14ba967282c3bb056431a37fced1866ec7a2681","impliedFormat":1},{"version":"cc11e9e79d4746cc59e0e17473a59d6f104692fd0eeea1bdb2e206eabed83b03","impliedFormat":1},{"version":"b444a410d34fb5e98aa5ee2b381362044f4884652e8bc8a11c8fe14bbd85518e","impliedFormat":1},{"version":"c35808c1f5e16d2c571aa65067e3cb95afeff843b259ecfa2fc107a9519b5392","impliedFormat":1},{"version":"14d5dc055143e941c8743c6a21fa459f961cbc3deedf1bfe47b11587ca4b3ef5","impliedFormat":1},{"version":"a3ad4e1fc542751005267d50a6298e6765928c0c3a8dce1572f2ba6ca518661c","impliedFormat":1},{"version":"f237e7c97a3a89f4591afd49ecb3bd8d14f51a1c4adc8fcae3430febedff5eb6","impliedFormat":1},{"version":"3ffdfbec93b7aed71082af62b8c3e0cc71261cc68d796665faa1e91604fbae8f","impliedFormat":1},{"version":"662201f943ed45b1ad600d03a90dffe20841e725203ced8b708c91fcd7f9379a","impliedFormat":1},{"version":"c9ef74c64ed051ea5b958621e7fb853fe3b56e8787c1587aefc6ea988b3c7e79","impliedFormat":1},{"version":"2462ccfac5f3375794b861abaa81da380f1bbd9401de59ffa43119a0b644253d","impliedFormat":1},{"version":"34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","impliedFormat":1},{"version":"7d8ddf0f021c53099e34ee831a06c394d50371816caa98684812f089b4c6b3d4","impliedFormat":1},{"version":"918213c1577676cc8c3930a21a39177c664b9f5f11ab6fa1c1f725a285f978c0","impliedFormat":1}],"root":[[204,224]],"options":{"allowUnreachableCode":false,"allowUnusedLabels":false,"composite":true,"module":199,"noEmitOnError":true,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"outDir":"./","rootDir":"..","sourceMap":true,"strict":true,"stripInternal":true,"target":9},"referencedMap":[[225,1],[80,1],[227,2],[228,1],[229,1],[148,3],[149,3],[150,4],[109,5],[151,6],[152,7],[153,8],[104,1],[107,9],[105,1],[106,1],[154,10],[155,11],[156,12],[157,13],[158,14],[159,15],[160,15],[162,16],[161,17],[163,18],[164,19],[165,20],[147,21],[108,1],[166,22],[167,23],[168,24],[201,25],[169,26],[170,27],[171,28],[172,29],[173,30],[174,31],[175,32],[176,33],[177,34],[178,35],[179,35],[180,36],[181,1],[182,1],[183,37],[185,38],[184,39],[186,40],[187,41],[188,42],[189,43],[190,44],[191,45],[192,46],[193,47],[194,48],[195,49],[196,50],[197,51],[198,52],[199,53],[200,54],[230,1],[255,55],[256,56],[231,57],[234,57],[253,55],[254,55],[244,55],[243,58],[241,55],[236,55],[249,55],[247,55],[251,55],[235,55],[248,55],[252,55],[237,55],[238,55],[250,55],[232,55],[239,55],[240,55],[242,55],[246,55],[257,59],[245,55],[233,55],[270,60],[269,1],[264,59],[266,61],[265,59],[258,59],[259,59],[261,59],[263,59],[267,61],[268,61],[260,61],[262,61],[271,1],[226,1],[202,62],[203,63],[88,1],[94,64],[89,65],[76,1],[77,1],[13,1],[15,1],[14,1],[2,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[3,1],[24,1],[25,1],[4,1],[26,1],[30,1],[27,1],[28,1],[29,1],[31,1],[32,1],[33,1],[5,1],[34,1],[35,1],[36,1],[37,1],[6,1],[41,1],[38,1],[39,1],[40,1],[42,1],[7,1],[43,1],[48,1],[49,1],[44,1],[45,1],[46,1],[47,1],[8,1],[53,1],[50,1],[51,1],[52,1],[54,1],[9,1],[55,1],[56,1],[57,1],[59,1],[58,1],[60,1],[61,1],[10,1],[62,1],[63,1],[64,1],[11,1],[65,1],[66,1],[67,1],[68,1],[69,1],[1,1],[70,1],[71,1],[12,1],[74,1],[73,1],[72,1],[75,1],[125,66],[135,67],[124,66],[145,68],[116,69],[115,70],[144,71],[138,72],[143,73],[118,74],[132,75],[117,76],[141,77],[113,78],[112,71],[142,79],[114,80],[119,81],[120,1],[123,81],[110,1],[146,82],[136,83],[127,84],[128,85],[130,86],[126,87],[129,88],[139,71],[121,89],[122,90],[131,91],[111,92],[134,83],[133,81],[137,1],[140,93],[78,94],[79,1],[81,16],[86,95],[82,1],[85,1],[83,1],[84,1],[210,96],[208,97],[204,1],[209,98],[206,97],[207,99],[217,100],[213,101],[224,102],[212,1],[211,103],[218,104],[205,105],[216,106],[219,107],[220,108],[223,109],[221,110],[222,111],[214,111],[215,94],[87,1],[91,112],[90,64],[92,112],[93,112],[103,113],[95,114],[96,1],[97,115],[98,112],[100,116],[99,117],[101,1],[102,112]],"latestChangedDtsFile":"./src/index.d.ts","version":"5.7.2"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@welshman/net",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.44",
|
|
4
4
|
"author": "hodlbod",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Utilities for connecting with nostr relays.",
|
|
@@ -15,26 +15,23 @@
|
|
|
15
15
|
"exports": {
|
|
16
16
|
".": {
|
|
17
17
|
"types": "./build/src/index.d.ts",
|
|
18
|
-
"import": "./build/src/index.
|
|
19
|
-
"require": "./build/src/index.
|
|
18
|
+
"import": "./build/src/index.js",
|
|
19
|
+
"require": "./build/src/index.js"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
"scripts": {
|
|
23
23
|
"pub": "npm run lint && npm run build && npm publish",
|
|
24
|
-
"build": "gts clean && tsc
|
|
24
|
+
"build": "gts clean && tsc",
|
|
25
25
|
"lint": "gts lint",
|
|
26
26
|
"fix": "gts fix",
|
|
27
27
|
"test": "mocha"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"
|
|
31
|
-
"mocha": "^10.7.3",
|
|
32
|
-
"tsc-multi": "^1.1.0",
|
|
33
|
-
"typescript": "~5.1.6"
|
|
30
|
+
"mocha": "^10.7.3"
|
|
34
31
|
},
|
|
35
32
|
"dependencies": {
|
|
36
|
-
"@welshman/lib": "~0.0.
|
|
37
|
-
"@welshman/util": "~0.0.
|
|
33
|
+
"@welshman/lib": "~0.0.34",
|
|
34
|
+
"@welshman/util": "~0.0.52",
|
|
38
35
|
"isomorphic-ws": "^5.0.0",
|
|
39
36
|
"ws": "^8.16.0"
|
|
40
37
|
}
|
package/build/src/Connection.cjs
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Connection = exports.ConnectionStatus = void 0;
|
|
4
|
-
const lib_1 = require("@welshman/lib");
|
|
5
|
-
const util_1 = require("@welshman/util");
|
|
6
|
-
const Socket_1 = require("./Socket.cjs");
|
|
7
|
-
const ConnectionState_1 = require("./ConnectionState.cjs");
|
|
8
|
-
const ConnectionStats_1 = require("./ConnectionStats.cjs");
|
|
9
|
-
const ConnectionAuth_1 = require("./ConnectionAuth.cjs");
|
|
10
|
-
const ConnectionSender_1 = require("./ConnectionSender.cjs");
|
|
11
|
-
var ConnectionStatus;
|
|
12
|
-
(function (ConnectionStatus) {
|
|
13
|
-
ConnectionStatus["Ready"] = "ready";
|
|
14
|
-
ConnectionStatus["Closed"] = "Closed";
|
|
15
|
-
ConnectionStatus["Closing"] = "Closing";
|
|
16
|
-
})(ConnectionStatus || (exports.ConnectionStatus = ConnectionStatus = {}));
|
|
17
|
-
const { Ready, Closed, Closing } = ConnectionStatus;
|
|
18
|
-
class Connection extends lib_1.Emitter {
|
|
19
|
-
constructor(url) {
|
|
20
|
-
super();
|
|
21
|
-
this.status = Ready;
|
|
22
|
-
this.emit = (type, ...args) => super.emit(type, this, ...args);
|
|
23
|
-
this.send = async (message) => {
|
|
24
|
-
await this.socket.open();
|
|
25
|
-
if (this.status === Ready) {
|
|
26
|
-
this.sender.push(message);
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
this.close = async () => {
|
|
30
|
-
this.status = Closing;
|
|
31
|
-
await this.sender.close();
|
|
32
|
-
await this.socket.close();
|
|
33
|
-
this.status = Closed;
|
|
34
|
-
this.removeAllListeners();
|
|
35
|
-
};
|
|
36
|
-
if (url !== (0, util_1.normalizeRelayUrl)(url)) {
|
|
37
|
-
console.warn(`Attempted to open connection to non-normalized url ${url}`);
|
|
38
|
-
}
|
|
39
|
-
this.url = url;
|
|
40
|
-
this.socket = new Socket_1.Socket(this);
|
|
41
|
-
this.sender = new ConnectionSender_1.ConnectionSender(this);
|
|
42
|
-
this.state = new ConnectionState_1.ConnectionState(this);
|
|
43
|
-
this.stats = new ConnectionStats_1.ConnectionStats(this);
|
|
44
|
-
this.auth = new ConnectionAuth_1.ConnectionAuth(this);
|
|
45
|
-
this.setMaxListeners(100);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
exports.Connection = Connection;
|
|
49
|
-
//# sourceMappingURL=Connection.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Connection.cjs","sourceR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,sDAAsD,GAAG,EAAE,CAAC,CAAA;SAC1E;QAED,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,MAAM,GAAG,IAAI,eAAM,CAAC,IAAI,CAAC,CAAA;QAC9B,IAAI,CAAC,MAAM,GAAG,IAAI,mCAAgB,CAAC,IAAI,CAAC,CAAA;QACxC,IAAI,CAAC,KAAK,GAAG,IAAI,iCAAe,CAAC,IAAI,CAAC,CAAA;QACtC,IAAI,CAAC,KAAK,GAAG,IAAI,iCAAe,CAAC,IAAI,CAAC,CAAA;QACtC,IAAI,CAAC,IAAI,GAAG,IAAI,+BAAc,CAAC,IAAI,CAAC,CAAA;QACpC,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,CAAA;IAC3B,CAAC;CAqBF;AA5CD,gCA4CC"}
|
package/build/src/Connection.mjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Emitter } from '@welshman/lib';
|
|
2
|
-
import { normalizeRelayUrl } from '@welshman/util';
|
|
3
|
-
import { Socket } from "./Socket.mjs";
|
|
4
|
-
import { ConnectionState } from "./ConnectionState.mjs";
|
|
5
|
-
import { ConnectionStats } from "./ConnectionStats.mjs";
|
|
6
|
-
import { ConnectionAuth } from "./ConnectionAuth.mjs";
|
|
7
|
-
import { ConnectionSender } from "./ConnectionSender.mjs";
|
|
8
|
-
export var ConnectionStatus;
|
|
9
|
-
(function (ConnectionStatus) {
|
|
10
|
-
ConnectionStatus["Ready"] = "ready";
|
|
11
|
-
ConnectionStatus["Closed"] = "Closed";
|
|
12
|
-
ConnectionStatus["Closing"] = "Closing";
|
|
13
|
-
})(ConnectionStatus || (ConnectionStatus = {}));
|
|
14
|
-
const { Ready, Closed, Closing } = ConnectionStatus;
|
|
15
|
-
export class Connection extends Emitter {
|
|
16
|
-
constructor(url) {
|
|
17
|
-
super();
|
|
18
|
-
this.status = Ready;
|
|
19
|
-
this.emit = (type, ...args) => super.emit(type, this, ...args);
|
|
20
|
-
this.send = async (message) => {
|
|
21
|
-
await this.socket.open();
|
|
22
|
-
if (this.status === Ready) {
|
|
23
|
-
this.sender.push(message);
|
|
24
|
-
}
|
|
25
|
-
};
|
|
26
|
-
this.close = async () => {
|
|
27
|
-
this.status = Closing;
|
|
28
|
-
await this.sender.close();
|
|
29
|
-
await this.socket.close();
|
|
30
|
-
this.status = Closed;
|
|
31
|
-
this.removeAllListeners();
|
|
32
|
-
};
|
|
33
|
-
if (url !== normalizeRelayUrl(url)) {
|
|
34
|
-
console.warn(`Attempted to open connection to non-normalized url ${url}`);
|
|
35
|
-
}
|
|
36
|
-
this.url = url;
|
|
37
|
-
this.socket = new Socket(this);
|
|
38
|
-
this.sender = new ConnectionSender(this);
|
|
39
|
-
this.state = new ConnectionState(this);
|
|
40
|
-
this.stats = new ConnectionStats(this);
|
|
41
|
-
this.auth = new ConnectionAuth(this);
|
|
42
|
-
this.setMaxListeners(100);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
//# sourceMappingURL=Connection.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Connection.mjs","sourceRoot":"","sources":["../../src/Connection.ts"],"names":[],"mappings":"OAAO,EAAC,OAAO,EAAC,MAAM,eAAe;OAC9B,EAAC,iBAAiB,EAAC,MAAM,gBAAgB;OACzC,EAAC,MAAM,EAAC;OAGR,EAAC,eAAe,EAAC;OACjB,EAAC,eAAe,EAAC;OACjB,EAAC,cAAc,EAAC;OAChB,EAAC,gBAAgB,EAAC;AAEzB,MAAM,CAAN,IAAY,gBAIX;AAJD,WAAY,gBAAgB;IAC1B,mCAAe,CAAA;IACf,qCAAiB,CAAA;IACjB,uCAAmB,CAAA;AACrB,CAAC,EAJW,gBAAgB,KAAhB,gBAAgB,QAI3B;AAED,MAAM,EAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAC,GAAG,gBAAgB,CAAA;AAEjD,MAAM,OAAO,UAAW,SAAQ,OAAO;IASrC,YAAY,GAAW;QAC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AAC,eAAe,CAAC,GAAG,CAAC,CAAA;IAC3B,CAAC;CAqBF"}
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
3
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
4
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
5
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
6
|
-
};
|
|
7
|
-
var _ConnectionAuth_onReceive, _ConnectionAuth_onClose;
|
|
8
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.ConnectionAuth = exports.AuthStatus = exports.AuthMode = void 0;
|
|
10
|
-
const lib_1 = require("@welshman/lib");
|
|
11
|
-
const util_1 = require("@welshman/util");
|
|
12
|
-
const ConnectionEvent_1 = require("./ConnectionEvent.cjs");
|
|
13
|
-
var AuthMode;
|
|
14
|
-
(function (AuthMode) {
|
|
15
|
-
AuthMode["Implicit"] = "implicit";
|
|
16
|
-
AuthMode["Explicit"] = "explicit";
|
|
17
|
-
})(AuthMode || (exports.AuthMode = AuthMode = {}));
|
|
18
|
-
var AuthStatus;
|
|
19
|
-
(function (AuthStatus) {
|
|
20
|
-
AuthStatus["None"] = "none";
|
|
21
|
-
AuthStatus["Requested"] = "requested";
|
|
22
|
-
AuthStatus["PendingSignature"] = "pending_signature";
|
|
23
|
-
AuthStatus["DeniedSignature"] = "denied_signature";
|
|
24
|
-
AuthStatus["PendingResponse"] = "pending_response";
|
|
25
|
-
AuthStatus["Forbidden"] = "forbidden";
|
|
26
|
-
AuthStatus["Ok"] = "ok";
|
|
27
|
-
})(AuthStatus || (exports.AuthStatus = AuthStatus = {}));
|
|
28
|
-
const { None, Requested, PendingSignature, DeniedSignature, PendingResponse, Forbidden, Ok, } = AuthStatus;
|
|
29
|
-
class ConnectionAuth {
|
|
30
|
-
constructor(cxn) {
|
|
31
|
-
this.cxn = cxn;
|
|
32
|
-
this.status = None;
|
|
33
|
-
_ConnectionAuth_onReceive.set(this, (cxn, [verb, ...extra]) => {
|
|
34
|
-
if (verb === 'OK') {
|
|
35
|
-
const [id, ok, message] = extra;
|
|
36
|
-
if (id === this.request) {
|
|
37
|
-
this.message = message;
|
|
38
|
-
this.status = ok ? Ok : Forbidden;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
if (verb === 'AUTH' && extra[0] !== this.challenge) {
|
|
42
|
-
this.challenge = extra[0];
|
|
43
|
-
this.request = undefined;
|
|
44
|
-
this.message = undefined;
|
|
45
|
-
this.status = Requested;
|
|
46
|
-
if (lib_1.ctx.net.authMode === AuthMode.Implicit) {
|
|
47
|
-
this.respond();
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
_ConnectionAuth_onClose.set(this, (cxn) => {
|
|
52
|
-
this.challenge = undefined;
|
|
53
|
-
this.request = undefined;
|
|
54
|
-
this.message = undefined;
|
|
55
|
-
this.status = None;
|
|
56
|
-
});
|
|
57
|
-
this.waitFor = async (condition, timeout = 300) => {
|
|
58
|
-
const start = Date.now();
|
|
59
|
-
while (Date.now() - timeout <= start) {
|
|
60
|
-
await (0, lib_1.sleep)(100);
|
|
61
|
-
if (condition()) {
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
};
|
|
66
|
-
this.waitForChallenge = async (timeout = 300) => this.waitFor(() => Boolean(this.challenge), timeout);
|
|
67
|
-
this.waitForResolution = async (timeout = 300) => this.waitFor(() => [None, DeniedSignature, Forbidden, Ok].includes(this.status), timeout);
|
|
68
|
-
this.respond = async () => {
|
|
69
|
-
if (!this.challenge) {
|
|
70
|
-
throw new Error("Attempted to authenticate with no challenge");
|
|
71
|
-
}
|
|
72
|
-
if (this.status !== Requested) {
|
|
73
|
-
throw new Error(`Attempted to authenticate when auth is already ${this.status}`);
|
|
74
|
-
}
|
|
75
|
-
this.status = PendingSignature;
|
|
76
|
-
const template = (0, util_1.createEvent)(util_1.CLIENT_AUTH, {
|
|
77
|
-
tags: [
|
|
78
|
-
["relay", this.cxn.url],
|
|
79
|
-
["challenge", this.challenge],
|
|
80
|
-
],
|
|
81
|
-
});
|
|
82
|
-
const [event] = await Promise.all([
|
|
83
|
-
lib_1.ctx.net.signEvent(template),
|
|
84
|
-
this.cxn.socket.open(),
|
|
85
|
-
]);
|
|
86
|
-
if (event) {
|
|
87
|
-
this.request = event.id;
|
|
88
|
-
this.cxn.send(['AUTH', event]);
|
|
89
|
-
this.status = PendingResponse;
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
this.status = DeniedSignature;
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
this.attempt = async (timeout = 300) => {
|
|
96
|
-
await this.cxn.socket.open();
|
|
97
|
-
await this.waitForChallenge(timeout);
|
|
98
|
-
if (this.status === Requested) {
|
|
99
|
-
await this.respond();
|
|
100
|
-
}
|
|
101
|
-
await this.waitForResolution(timeout);
|
|
102
|
-
};
|
|
103
|
-
this.cxn.on(ConnectionEvent_1.ConnectionEvent.Close, __classPrivateFieldGet(this, _ConnectionAuth_onClose, "f"));
|
|
104
|
-
this.cxn.on(ConnectionEvent_1.ConnectionEvent.Receive, __classPrivateFieldGet(this, _ConnectionAuth_onReceive, "f"));
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
exports.ConnectionAuth = ConnectionAuth;
|
|
108
|
-
_ConnectionAuth_onReceive = new WeakMap(), _ConnectionAuth_onClose = new WeakMap();
|
|
109
|
-
//# sourceMappingURL=ConnectionAuth.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionAuth.cjs","sourceRoot":"","sources":["../../src/ConnectionAuth.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uCAAwC;AACxC,yCAAuD;AACvD,2DA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AI,CAAC,GAAG,CAAC,EAAE,CAAC,iCAAe,CAAC,KAAK,EAAE,uBAAA,IAAI,+BAAS,CAAC,CAAA;QACjD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,iCAAe,CAAC,OAAO,EAAE,uBAAA,IAAI,iCAAW,CAAC,CAAA;IACvD,CAAC;CA2FF;AApGD,wCAoGC"}
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
2
|
-
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
3
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
4
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
5
|
-
};
|
|
6
|
-
var _ConnectionAuth_onReceive, _ConnectionAuth_onClose;
|
|
7
|
-
import { ctx, sleep } from '@welshman/lib';
|
|
8
|
-
import { CLIENT_AUTH, createEvent } from '@welshman/util';
|
|
9
|
-
import { ConnectionEvent } from "./ConnectionEvent.mjs";
|
|
10
|
-
export var AuthMode;
|
|
11
|
-
(function (AuthMode) {
|
|
12
|
-
AuthMode["Implicit"] = "implicit";
|
|
13
|
-
AuthMode["Explicit"] = "explicit";
|
|
14
|
-
})(AuthMode || (AuthMode = {}));
|
|
15
|
-
export var AuthStatus;
|
|
16
|
-
(function (AuthStatus) {
|
|
17
|
-
AuthStatus["None"] = "none";
|
|
18
|
-
AuthStatus["Requested"] = "requested";
|
|
19
|
-
AuthStatus["PendingSignature"] = "pending_signature";
|
|
20
|
-
AuthStatus["DeniedSignature"] = "denied_signature";
|
|
21
|
-
AuthStatus["PendingResponse"] = "pending_response";
|
|
22
|
-
AuthStatus["Forbidden"] = "forbidden";
|
|
23
|
-
AuthStatus["Ok"] = "ok";
|
|
24
|
-
})(AuthStatus || (AuthStatus = {}));
|
|
25
|
-
const { None, Requested, PendingSignature, DeniedSignature, PendingResponse, Forbidden, Ok, } = AuthStatus;
|
|
26
|
-
export class ConnectionAuth {
|
|
27
|
-
constructor(cxn) {
|
|
28
|
-
this.cxn = cxn;
|
|
29
|
-
this.status = None;
|
|
30
|
-
_ConnectionAuth_onReceive.set(this, (cxn, [verb, ...extra]) => {
|
|
31
|
-
if (verb === 'OK') {
|
|
32
|
-
const [id, ok, message] = extra;
|
|
33
|
-
if (id === this.request) {
|
|
34
|
-
this.message = message;
|
|
35
|
-
this.status = ok ? Ok : Forbidden;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
if (verb === 'AUTH' && extra[0] !== this.challenge) {
|
|
39
|
-
this.challenge = extra[0];
|
|
40
|
-
this.request = undefined;
|
|
41
|
-
this.message = undefined;
|
|
42
|
-
this.status = Requested;
|
|
43
|
-
if (ctx.net.authMode === AuthMode.Implicit) {
|
|
44
|
-
this.respond();
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
_ConnectionAuth_onClose.set(this, (cxn) => {
|
|
49
|
-
this.challenge = undefined;
|
|
50
|
-
this.request = undefined;
|
|
51
|
-
this.message = undefined;
|
|
52
|
-
this.status = None;
|
|
53
|
-
});
|
|
54
|
-
this.waitFor = async (condition, timeout = 300) => {
|
|
55
|
-
const start = Date.now();
|
|
56
|
-
while (Date.now() - timeout <= start) {
|
|
57
|
-
await sleep(100);
|
|
58
|
-
if (condition()) {
|
|
59
|
-
break;
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
};
|
|
63
|
-
this.waitForChallenge = async (timeout = 300) => this.waitFor(() => Boolean(this.challenge), timeout);
|
|
64
|
-
this.waitForResolution = async (timeout = 300) => this.waitFor(() => [None, DeniedSignature, Forbidden, Ok].includes(this.status), timeout);
|
|
65
|
-
this.respond = async () => {
|
|
66
|
-
if (!this.challenge) {
|
|
67
|
-
throw new Error("Attempted to authenticate with no challenge");
|
|
68
|
-
}
|
|
69
|
-
if (this.status !== Requested) {
|
|
70
|
-
throw new Error(`Attempted to authenticate when auth is already ${this.status}`);
|
|
71
|
-
}
|
|
72
|
-
this.status = PendingSignature;
|
|
73
|
-
const template = createEvent(CLIENT_AUTH, {
|
|
74
|
-
tags: [
|
|
75
|
-
["relay", this.cxn.url],
|
|
76
|
-
["challenge", this.challenge],
|
|
77
|
-
],
|
|
78
|
-
});
|
|
79
|
-
const [event] = await Promise.all([
|
|
80
|
-
ctx.net.signEvent(template),
|
|
81
|
-
this.cxn.socket.open(),
|
|
82
|
-
]);
|
|
83
|
-
if (event) {
|
|
84
|
-
this.request = event.id;
|
|
85
|
-
this.cxn.send(['AUTH', event]);
|
|
86
|
-
this.status = PendingResponse;
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
this.status = DeniedSignature;
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
this.attempt = async (timeout = 300) => {
|
|
93
|
-
await this.cxn.socket.open();
|
|
94
|
-
await this.waitForChallenge(timeout);
|
|
95
|
-
if (this.status === Requested) {
|
|
96
|
-
await this.respond();
|
|
97
|
-
}
|
|
98
|
-
await this.waitForResolution(timeout);
|
|
99
|
-
};
|
|
100
|
-
this.cxn.on(ConnectionEvent.Close, __classPrivateFieldGet(this, _ConnectionAuth_onClose, "f"));
|
|
101
|
-
this.cxn.on(ConnectionEvent.Receive, __classPrivateFieldGet(this, _ConnectionAuth_onReceive, "f"));
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
_ConnectionAuth_onReceive = new WeakMap(), _ConnectionAuth_onClose = new WeakMap();
|
|
105
|
-
//# sourceMappingURL=ConnectionAuth.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionAuth.mjs","sourceRoot":"","sources":["../../src/ConnectionAuth.ts"],"names":[],"mappings":";;;;;;OAAO,EAAC,GAAG,EAAE,KAAK,EAAC,MAAM,eAAe;OACjC,EAAC,WAAW,EAAE,WAAW,EAAC,MAAM,gBA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AC,CAAA;QACvC,CAAC,CAAA;QA5FC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,eAAe,CAAC,KAAK,EAAE,uBAAA,IAAI,+BAAS,CAAC,CAAA;QACjD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,eAAe,CAAC,OAAO,EAAE,uBAAA,IAAI,iCAAW,CAAC,CAAA;IACvD,CAAC;CA2FF"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConnectionEvent = void 0;
|
|
4
|
-
var ConnectionEvent;
|
|
5
|
-
(function (ConnectionEvent) {
|
|
6
|
-
ConnectionEvent["InvalidUrl"] = "invalid:url";
|
|
7
|
-
ConnectionEvent["InvalidMessage"] = "invalid:message:receive";
|
|
8
|
-
ConnectionEvent["Open"] = "socket:open";
|
|
9
|
-
ConnectionEvent["Reset"] = "socket:reset";
|
|
10
|
-
ConnectionEvent["Close"] = "socket:close";
|
|
11
|
-
ConnectionEvent["Error"] = "socket:error";
|
|
12
|
-
ConnectionEvent["Receive"] = "receive:message";
|
|
13
|
-
ConnectionEvent["Notice"] = "receive:notice";
|
|
14
|
-
ConnectionEvent["Send"] = "send:message";
|
|
15
|
-
})(ConnectionEvent || (exports.ConnectionEvent = ConnectionEvent = {}));
|
|
16
|
-
//# sourceMappingURL=ConnectionEvent.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionEvent.cjs","sourceRoot":"","sources":["../../src/ConnectionEvent.ts"],"names":[],"mappings":";;;AAAA,IAAY,eAUX;AAVD,WAAY,eAAe;IACzB,6CAA0B,CAAA;IAC1B,6DAA0C,CAAA;IAC1C,uCAAoB,CAAA;IACpB,yCAAsB,CAAA;IACtB,yCAAsB,CAAA;IACtB,yCAAsB,CAAA;IACtB,8CAA2B,CAAA;IAC3B,4CAAyB,CAAA;IACzB,wCAAqB,CAAA;AACvB,CAAC,EAVW,eAAe,+BAAf,eAAe,QAU1B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionEvent.mjs","sourceRoot":"","sources":["../../src/ConnectionEvent.ts"],"names":[],"mappings":"AAAA,MAAM,CAAN,IAAY,eAUX;AAVD,WAAY,eAAe;IACzB,6CAA0B,CAAA;IAC1B,6DAA0C,CAAA;IAC1C,uCAAoB,CAAA;IACpB,yCAAsB,CAAA;IACtB,yCAAsB,CAAA;IACtB,yCAAsB,CAAA;IACtB,8CAA2B,CAAA;IAC3B,4CAAyB,CAAA;IACzB,wCAAqB,CAAA;AACvB,CAAC,EAVW,eAAe,KAAf,eAAe,QAU1B"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ConnectionSender = void 0;
|
|
4
|
-
const lib_1 = require("@welshman/lib");
|
|
5
|
-
const util_1 = require("@welshman/util");
|
|
6
|
-
const Socket_1 = require("./Socket.cjs");
|
|
7
|
-
const ConnectionAuth_1 = require("./ConnectionAuth.cjs");
|
|
8
|
-
class ConnectionSender {
|
|
9
|
-
constructor(cxn) {
|
|
10
|
-
this.cxn = cxn;
|
|
11
|
-
this.push = (message) => {
|
|
12
|
-
this.worker.push(message);
|
|
13
|
-
};
|
|
14
|
-
this.close = async () => {
|
|
15
|
-
this.worker.pause();
|
|
16
|
-
};
|
|
17
|
-
this.worker = new lib_1.Worker({
|
|
18
|
-
shouldDefer: ([verb, ...extra]) => {
|
|
19
|
-
// If we're not connected, nothing we can do
|
|
20
|
-
if (this.cxn.socket.status !== Socket_1.SocketStatus.Open)
|
|
21
|
-
return true;
|
|
22
|
-
// Always allow sending AUTH
|
|
23
|
-
if (verb === 'AUTH')
|
|
24
|
-
return false;
|
|
25
|
-
// Only close reqs that have been sent
|
|
26
|
-
if (verb === 'CLOSE')
|
|
27
|
-
return !this.cxn.state.pendingRequests.has(extra[0]);
|
|
28
|
-
// Always allow sending join requests
|
|
29
|
-
if (verb === 'EVENT' && extra[0].kind === util_1.AUTH_JOIN)
|
|
30
|
-
return false;
|
|
31
|
-
// Wait for auth
|
|
32
|
-
if (![ConnectionAuth_1.AuthStatus.None, ConnectionAuth_1.AuthStatus.Ok].includes(this.cxn.auth.status))
|
|
33
|
-
return true;
|
|
34
|
-
// Limit concurrent requests
|
|
35
|
-
if (verb === 'REQ')
|
|
36
|
-
return this.cxn.state.pendingRequests.size >= 8;
|
|
37
|
-
return false;
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
this.worker.addGlobalHandler(([verb, ...extra]) => {
|
|
41
|
-
// If we ended up handling a CLOSE before we handled the REQ, don't send the REQ
|
|
42
|
-
if (verb === 'CLOSE') {
|
|
43
|
-
this.worker.buffer = this.worker.buffer.filter(m => !(m[0] === 'REQ' && m[1] === extra[0]));
|
|
44
|
-
}
|
|
45
|
-
this.cxn.socket.send([verb, ...extra]);
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
exports.ConnectionSender = ConnectionSender;
|
|
50
|
-
//# sourceMappingURL=ConnectionSender.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConnectionSender.cjs","sourceRoot":"","sources":["../../src/ConnectionSender.ts"],"names":[],"mappings":";;;AAAA,uCAAoC;AACpC,yCAAwC;AACxC,yCAAqC;AAGrC,yDAA2C;AAE3C,MAAa,gBAAgB;IAG3B,YAAqB,GAAe;QAAf,QAAG,GAAH,GAAG,CAAY;QAmCpC,SAAI,GAAG,CAAC,OAAgB,EAAE,EAAE;YAC1B,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QAC3B,CAAC,CAAA;QAED,UAAK,GAAG,KAAK,IAAI,EAAE;YACjB,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,CAAA;QACrB,CAAC,CAAA;QAxCC,IAAI,CAAC,MAAM,GAAG,IAAI,YA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