@attocash/commons-js 5.0.0 → 5.1.1
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/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +68 -68
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +56 -56
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +661 -661
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +17 -17
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +42 -42
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -67
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +5 -5
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +35 -35
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +37 -37
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +3 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +19 -5
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +72 -72
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.ts +4 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +16 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +41 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
- package/commons-commons-node.mjs +1 -0
- package/commons-commons-node.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
- package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/selector/SelectorManager.jsAndWasmShared.mjs +2 -2
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +106 -106
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
- package/package.json +1 -1
|
@@ -61,23 +61,23 @@ import { toLongw1zpgk99d84b as toLong } from '../../../../../kotlin-kotlin-stdli
|
|
|
61
61
|
import { CompletableDeferred2lnqvsbvx74d3 as CompletableDeferred } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs';
|
|
62
62
|
import { SocketBase16wq3cyi6rfg8 as SocketBase } from './SocketBase.mjs';
|
|
63
63
|
import { Dispatchers_getInstanceitgtkvqfcnx3 as Dispatchers_getInstance } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs';
|
|
64
|
-
import { ASocket1hggj5ss9a2ef as ASocket } from './Sockets.mjs';
|
|
65
64
|
import { CoroutineScopefcb5f5dwqcas as CoroutineScope } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs';
|
|
65
|
+
import { ASocket1hggj5ss9a2ef as ASocket } from './Sockets.mjs';
|
|
66
66
|
//region block: imports
|
|
67
67
|
//endregion
|
|
68
68
|
//region block: pre-declaration
|
|
69
69
|
//endregion
|
|
70
70
|
function SocketContext$initiate$lambda(this$0) {
|
|
71
71
|
return function (it) {
|
|
72
|
-
this$0.
|
|
73
|
-
this$0.
|
|
74
|
-
this$0.
|
|
72
|
+
this$0.y6w_1.destroy(it == null ? null : toJsError(it));
|
|
73
|
+
this$0.b6x_1.d1z();
|
|
74
|
+
this$0.a6x_1.u2i();
|
|
75
75
|
return Unit_instance;
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
function SocketContext$initiate$lambda_0(this$0) {
|
|
79
79
|
return function (it) {
|
|
80
|
-
this$0.
|
|
80
|
+
this$0.y6w_1.destroy(it == null ? null : toJsError(it));
|
|
81
81
|
return Unit_instance;
|
|
82
82
|
};
|
|
83
83
|
}
|
|
@@ -89,12 +89,12 @@ function SocketContext$initiate$lambda_1($connectCont, this$0) {
|
|
|
89
89
|
var tmp0 = $connectCont;
|
|
90
90
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
91
91
|
// Inline function 'kotlin.Companion.failure' call
|
|
92
|
-
var exception = IOException().
|
|
92
|
+
var exception = IOException().a2v('Failed to connect', toThrowable(error));
|
|
93
93
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
94
94
|
tmp0.lc(tmp$ret$0);
|
|
95
95
|
tmp = Unit_instance;
|
|
96
96
|
} else {
|
|
97
|
-
cancel(get_job(this$0.
|
|
97
|
+
cancel(get_job(this$0.b6x_1), 'Socket error', toThrowable(error));
|
|
98
98
|
tmp = Unit_instance;
|
|
99
99
|
}
|
|
100
100
|
return Unit_instance;
|
|
@@ -108,12 +108,12 @@ function SocketContext$initiate$lambda_2($connectCont, this$0) {
|
|
|
108
108
|
var tmp0 = $connectCont;
|
|
109
109
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
110
110
|
// Inline function 'kotlin.Companion.failure' call
|
|
111
|
-
var exception = SocketTimeoutException().
|
|
111
|
+
var exception = SocketTimeoutException().f6x('timeout');
|
|
112
112
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
113
113
|
tmp0.lc(tmp$ret$0);
|
|
114
114
|
tmp = Unit_instance;
|
|
115
115
|
} else {
|
|
116
|
-
cancel(get_job(this$0.
|
|
116
|
+
cancel(get_job(this$0.b6x_1), 'Socket timeout', SocketTimeoutException().f6x('timeout'));
|
|
117
117
|
tmp = Unit_instance;
|
|
118
118
|
}
|
|
119
119
|
return Unit_instance;
|
|
@@ -121,19 +121,19 @@ function SocketContext$initiate$lambda_2($connectCont, this$0) {
|
|
|
121
121
|
}
|
|
122
122
|
function SocketContext$initiate$lambda_3(this$0) {
|
|
123
123
|
return function () {
|
|
124
|
-
this$0.
|
|
124
|
+
this$0.a6x_1.s2i();
|
|
125
125
|
return Unit_instance;
|
|
126
126
|
};
|
|
127
127
|
}
|
|
128
128
|
function SocketContext$initiate$lambda_4(this$0) {
|
|
129
129
|
return function (it) {
|
|
130
|
-
cancel(get_job(this$0.
|
|
130
|
+
cancel(get_job(this$0.b6x_1), 'Socket closed');
|
|
131
131
|
return Unit_instance;
|
|
132
132
|
};
|
|
133
133
|
}
|
|
134
134
|
function SocketContext$initiate$lambda_5(this$0) {
|
|
135
135
|
return function (data) {
|
|
136
|
-
this$0.
|
|
136
|
+
this$0.a6x_1.f2i(data);
|
|
137
137
|
return Unit_instance;
|
|
138
138
|
};
|
|
139
139
|
}
|
|
@@ -142,7 +142,7 @@ function SocketContext$initiate$lambda_6($connectCont, this$0) {
|
|
|
142
142
|
var tmp0 = $connectCont;
|
|
143
143
|
// Inline function 'kotlin.coroutines.resume' call
|
|
144
144
|
// Inline function 'kotlin.Companion.success' call
|
|
145
|
-
var value = this$0.
|
|
145
|
+
var value = this$0.g6x();
|
|
146
146
|
var tmp$ret$0 = _Result___init__impl__xyqfz8(value);
|
|
147
147
|
tmp0.lc(tmp$ret$0);
|
|
148
148
|
return Unit_instance;
|
|
@@ -153,42 +153,42 @@ function SocketContext() {
|
|
|
153
153
|
if (SocketContextClass === VOID) {
|
|
154
154
|
class $ {
|
|
155
155
|
constructor(socket, address, parentContext) {
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
156
|
+
this.y6w_1 = socket;
|
|
157
|
+
this.z6w_1 = address;
|
|
158
|
+
this.a6x_1 = Channel(2147483647);
|
|
159
|
+
this.b6x_1 = Job(parentContext);
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
h6x(connectCont) {
|
|
162
162
|
if (connectCont == null)
|
|
163
163
|
null;
|
|
164
164
|
else {
|
|
165
165
|
connectCont.i21(SocketContext$initiate$lambda(this));
|
|
166
166
|
}
|
|
167
|
-
this.
|
|
168
|
-
onError(this.
|
|
169
|
-
onTimeout(this.
|
|
170
|
-
onEnd(this.
|
|
171
|
-
onClose(this.
|
|
172
|
-
onData(this.
|
|
167
|
+
this.b6x_1.v1y(SocketContext$initiate$lambda_0(this));
|
|
168
|
+
onError(this.y6w_1, SocketContext$initiate$lambda_1(connectCont, this));
|
|
169
|
+
onTimeout(this.y6w_1, SocketContext$initiate$lambda_2(connectCont, this));
|
|
170
|
+
onEnd(this.y6w_1, SocketContext$initiate$lambda_3(this));
|
|
171
|
+
onClose(this.y6w_1, SocketContext$initiate$lambda_4(this));
|
|
172
|
+
onData(this.y6w_1, SocketContext$initiate$lambda_5(this));
|
|
173
173
|
if (!(connectCont == null)) {
|
|
174
|
-
onConnect(this.
|
|
174
|
+
onConnect(this.y6w_1, SocketContext$initiate$lambda_6(connectCont, this));
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
|
-
|
|
177
|
+
g6x() {
|
|
178
178
|
var tmp;
|
|
179
|
-
if (this.
|
|
180
|
-
tmp = this.
|
|
179
|
+
if (this.z6w_1 instanceof UnixSocketAddress()) {
|
|
180
|
+
tmp = this.z6w_1;
|
|
181
181
|
} else {
|
|
182
|
-
tmp = new (InetSocketAddress())(this.
|
|
182
|
+
tmp = new (InetSocketAddress())(this.y6w_1.localAddress, this.y6w_1.localPort);
|
|
183
183
|
}
|
|
184
184
|
var tmp_0 = tmp;
|
|
185
185
|
var tmp_1;
|
|
186
|
-
if (this.
|
|
187
|
-
tmp_1 = this.
|
|
186
|
+
if (this.z6w_1 instanceof UnixSocketAddress()) {
|
|
187
|
+
tmp_1 = this.z6w_1;
|
|
188
188
|
} else {
|
|
189
|
-
tmp_1 = new (InetSocketAddress())(this.
|
|
189
|
+
tmp_1 = new (InetSocketAddress())(this.y6w_1.remoteAddress, this.y6w_1.remotePort);
|
|
190
190
|
}
|
|
191
|
-
return new (SocketImpl())(tmp_0, tmp_1, this.
|
|
191
|
+
return new (SocketImpl())(tmp_0, tmp_1, this.b6x_1, this.a6x_1, this.y6w_1);
|
|
192
192
|
}
|
|
193
193
|
}
|
|
194
194
|
initMetadataForClass($, 'SocketContext');
|
|
@@ -209,18 +209,18 @@ function SocketImpl$attachForReadingImpl$slambda() {
|
|
|
209
209
|
constructor(this$0, $channel, resultContinuation, $box) {
|
|
210
210
|
if ($box === VOID)
|
|
211
211
|
$box = {};
|
|
212
|
-
$box.
|
|
213
|
-
$box.
|
|
212
|
+
$box.q6x_1 = this$0;
|
|
213
|
+
$box.r6x_1 = $channel;
|
|
214
214
|
super(resultContinuation, $box);
|
|
215
215
|
}
|
|
216
|
-
|
|
217
|
-
var tmp = this.
|
|
216
|
+
z4l($this$writer, $completion) {
|
|
217
|
+
var tmp = this.a4m($this$writer, $completion);
|
|
218
218
|
tmp.cc_1 = Unit_instance;
|
|
219
219
|
tmp.dc_1 = null;
|
|
220
220
|
return tmp.ic();
|
|
221
221
|
}
|
|
222
222
|
kd(p1, $completion) {
|
|
223
|
-
return this.
|
|
223
|
+
return this.z4l(p1 instanceof WriterScope() ? p1 : THROW_CCE(), $completion);
|
|
224
224
|
}
|
|
225
225
|
ic() {
|
|
226
226
|
var suspendResult = this.cc_1;
|
|
@@ -231,15 +231,15 @@ function SocketImpl$attachForReadingImpl$slambda() {
|
|
|
231
231
|
case 0:
|
|
232
232
|
this.bc_1 = 12;
|
|
233
233
|
var tmp_0 = this;
|
|
234
|
-
tmp_0.
|
|
235
|
-
this.
|
|
234
|
+
tmp_0.t6x_1 = this.q6x_1.p6y_1;
|
|
235
|
+
this.u6x_1 = this.t6x_1;
|
|
236
236
|
var tmp_1 = this;
|
|
237
|
-
tmp_1.
|
|
237
|
+
tmp_1.v6x_1 = this.u6x_1;
|
|
238
238
|
this.ac_1 = 1;
|
|
239
239
|
continue $sm;
|
|
240
240
|
case 1:
|
|
241
|
-
this.
|
|
242
|
-
this.
|
|
241
|
+
this.x6x_1 = this.v6x_1;
|
|
242
|
+
this.y6x_1 = null;
|
|
243
243
|
this.ac_1 = 2;
|
|
244
244
|
continue $sm;
|
|
245
245
|
case 2:
|
|
@@ -249,14 +249,14 @@ function SocketImpl$attachForReadingImpl$slambda() {
|
|
|
249
249
|
this.bc_1 = 11;
|
|
250
250
|
this.bc_1 = 10;
|
|
251
251
|
var tmp_2 = this;
|
|
252
|
-
tmp_2.
|
|
253
|
-
this.
|
|
254
|
-
this.
|
|
252
|
+
tmp_2.a6y_1 = this.x6x_1;
|
|
253
|
+
this.b6y_1 = this.a6y_1;
|
|
254
|
+
this.c6y_1 = this.b6y_1.d1();
|
|
255
255
|
this.ac_1 = 4;
|
|
256
256
|
continue $sm;
|
|
257
257
|
case 4:
|
|
258
258
|
this.ac_1 = 5;
|
|
259
|
-
suspendResult = this.
|
|
259
|
+
suspendResult = this.c6y_1.g2f(this);
|
|
260
260
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
261
261
|
return suspendResult;
|
|
262
262
|
}
|
|
@@ -268,12 +268,12 @@ function SocketImpl$attachForReadingImpl$slambda() {
|
|
|
268
268
|
continue $sm;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
this.
|
|
271
|
+
this.d6y_1 = this.c6y_1.f1();
|
|
272
272
|
var tmp_3 = this;
|
|
273
|
-
tmp_3.
|
|
274
|
-
this.
|
|
273
|
+
tmp_3.e6y_1 = this.d6y_1;
|
|
274
|
+
this.f6y_1 = this.e6y_1;
|
|
275
275
|
this.ac_1 = 6;
|
|
276
|
-
suspendResult = writeByteArray(this.
|
|
276
|
+
suspendResult = writeByteArray(this.r6x_1, toByteArray(this.f6y_1), this);
|
|
277
277
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
278
278
|
return suspendResult;
|
|
279
279
|
}
|
|
@@ -281,7 +281,7 @@ function SocketImpl$attachForReadingImpl$slambda() {
|
|
|
281
281
|
continue $sm;
|
|
282
282
|
case 6:
|
|
283
283
|
this.ac_1 = 7;
|
|
284
|
-
suspendResult = this.
|
|
284
|
+
suspendResult = this.r6x_1.z3a(this);
|
|
285
285
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
286
286
|
return suspendResult;
|
|
287
287
|
}
|
|
@@ -292,7 +292,7 @@ function SocketImpl$attachForReadingImpl$slambda() {
|
|
|
292
292
|
continue $sm;
|
|
293
293
|
case 8:
|
|
294
294
|
var tmp_4 = this;
|
|
295
|
-
tmp_4.
|
|
295
|
+
tmp_4.z6x_1 = Unit_instance;
|
|
296
296
|
this.bc_1 = 12;
|
|
297
297
|
this.ac_1 = 9;
|
|
298
298
|
var tmp_5 = this;
|
|
@@ -300,8 +300,8 @@ function SocketImpl$attachForReadingImpl$slambda() {
|
|
|
300
300
|
case 9:
|
|
301
301
|
this.bc_1 = 12;
|
|
302
302
|
var tmp_6 = this;
|
|
303
|
-
cancelConsumed(this.
|
|
304
|
-
tmp_6.
|
|
303
|
+
cancelConsumed(this.x6x_1, this.y6x_1);
|
|
304
|
+
tmp_6.w6x_1 = Unit_instance;
|
|
305
305
|
this.ac_1 = 14;
|
|
306
306
|
continue $sm;
|
|
307
307
|
case 10:
|
|
@@ -310,7 +310,7 @@ function SocketImpl$attachForReadingImpl$slambda() {
|
|
|
310
310
|
if (tmp_7 instanceof Error) {
|
|
311
311
|
var e = this.dc_1;
|
|
312
312
|
var tmp_8 = this;
|
|
313
|
-
this.
|
|
313
|
+
this.y6x_1 = e;
|
|
314
314
|
throw e;
|
|
315
315
|
} else {
|
|
316
316
|
throw this.dc_1;
|
|
@@ -319,13 +319,13 @@ function SocketImpl$attachForReadingImpl$slambda() {
|
|
|
319
319
|
case 11:
|
|
320
320
|
this.bc_1 = 12;
|
|
321
321
|
var t = this.dc_1;
|
|
322
|
-
cancelConsumed(this.
|
|
322
|
+
cancelConsumed(this.x6x_1, this.y6x_1);
|
|
323
323
|
throw t;
|
|
324
324
|
case 12:
|
|
325
325
|
throw this.dc_1;
|
|
326
326
|
case 13:
|
|
327
327
|
this.bc_1 = 12;
|
|
328
|
-
cancelConsumed(this.
|
|
328
|
+
cancelConsumed(this.x6x_1, this.y6x_1);
|
|
329
329
|
if (false) {
|
|
330
330
|
this.ac_1 = 1;
|
|
331
331
|
continue $sm;
|
|
@@ -347,9 +347,9 @@ function SocketImpl$attachForReadingImpl$slambda() {
|
|
|
347
347
|
}
|
|
348
348
|
while (true);
|
|
349
349
|
}
|
|
350
|
-
|
|
351
|
-
var i = new (SocketImpl$attachForReadingImpl$slambda())(this.
|
|
352
|
-
i.
|
|
350
|
+
a4m($this$writer, completion) {
|
|
351
|
+
var i = new (SocketImpl$attachForReadingImpl$slambda())(this.q6x_1, this.r6x_1, completion);
|
|
352
|
+
i.s6x_1 = $this$writer;
|
|
353
353
|
return i;
|
|
354
354
|
}
|
|
355
355
|
}
|
|
@@ -361,7 +361,7 @@ function SocketImpl$attachForReadingImpl$slambda() {
|
|
|
361
361
|
function SocketImpl$attachForReadingImpl$slambda_0(this$0, $channel, resultContinuation) {
|
|
362
362
|
var i = new (SocketImpl$attachForReadingImpl$slambda())(this$0, $channel, resultContinuation);
|
|
363
363
|
var l = function ($this$writer, $completion) {
|
|
364
|
-
return i.
|
|
364
|
+
return i.z4l($this$writer, $completion);
|
|
365
365
|
};
|
|
366
366
|
l.$arity = 1;
|
|
367
367
|
return l;
|
|
@@ -373,18 +373,18 @@ function SocketImpl$attachForWritingImpl$slambda() {
|
|
|
373
373
|
constructor($channel, this$0, resultContinuation, $box) {
|
|
374
374
|
if ($box === VOID)
|
|
375
375
|
$box = {};
|
|
376
|
-
$box.
|
|
377
|
-
$box.
|
|
376
|
+
$box.z6y_1 = $channel;
|
|
377
|
+
$box.a6z_1 = this$0;
|
|
378
378
|
super(resultContinuation, $box);
|
|
379
379
|
}
|
|
380
|
-
|
|
381
|
-
var tmp = this.
|
|
380
|
+
o4f($this$reader, $completion) {
|
|
381
|
+
var tmp = this.p4f($this$reader, $completion);
|
|
382
382
|
tmp.cc_1 = Unit_instance;
|
|
383
383
|
tmp.dc_1 = null;
|
|
384
384
|
return tmp.ic();
|
|
385
385
|
}
|
|
386
386
|
kd(p1, $completion) {
|
|
387
|
-
return this.
|
|
387
|
+
return this.o4f(p1 instanceof ReaderScope() ? p1 : THROW_CCE(), $completion);
|
|
388
388
|
}
|
|
389
389
|
ic() {
|
|
390
390
|
var suspendResult = this.cc_1;
|
|
@@ -403,13 +403,13 @@ function SocketImpl$attachForWritingImpl$slambda() {
|
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
var tmp_0 = this;
|
|
406
|
-
tmp_0.
|
|
406
|
+
tmp_0.c6z_1 = this.z6y_1;
|
|
407
407
|
this.ac_1 = 2;
|
|
408
408
|
continue $sm;
|
|
409
409
|
case 2:
|
|
410
|
-
this.
|
|
411
|
-
if (this.
|
|
412
|
-
this.
|
|
410
|
+
this.e6z_1 = this.c6z_1;
|
|
411
|
+
if (this.e6z_1.h3b()) {
|
|
412
|
+
this.d6z_1 = -1;
|
|
413
413
|
this.ac_1 = 7;
|
|
414
414
|
continue $sm;
|
|
415
415
|
} else {
|
|
@@ -418,9 +418,9 @@ function SocketImpl$attachForWritingImpl$slambda() {
|
|
|
418
418
|
}
|
|
419
419
|
|
|
420
420
|
case 3:
|
|
421
|
-
if (this.
|
|
421
|
+
if (this.e6z_1.a3b().o2r()) {
|
|
422
422
|
this.ac_1 = 4;
|
|
423
|
-
suspendResult = this.
|
|
423
|
+
suspendResult = this.e6z_1.j3b(VOID, this);
|
|
424
424
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
425
425
|
return suspendResult;
|
|
426
426
|
}
|
|
@@ -434,8 +434,8 @@ function SocketImpl$attachForWritingImpl$slambda() {
|
|
|
434
434
|
this.ac_1 = 5;
|
|
435
435
|
continue $sm;
|
|
436
436
|
case 5:
|
|
437
|
-
if (this.
|
|
438
|
-
this.
|
|
437
|
+
if (this.e6z_1.h3b()) {
|
|
438
|
+
this.d6z_1 = -1;
|
|
439
439
|
this.ac_1 = 7;
|
|
440
440
|
continue $sm;
|
|
441
441
|
} else {
|
|
@@ -444,29 +444,29 @@ function SocketImpl$attachForWritingImpl$slambda() {
|
|
|
444
444
|
}
|
|
445
445
|
|
|
446
446
|
case 6:
|
|
447
|
-
var buffer = this.
|
|
448
|
-
if (!!buffer.
|
|
447
|
+
var buffer = this.e6z_1.a3b().n2r();
|
|
448
|
+
if (!!buffer.o2r()) {
|
|
449
449
|
var message = 'Buffer is empty';
|
|
450
450
|
throw IllegalArgumentException().u(toString(message));
|
|
451
451
|
}
|
|
452
452
|
|
|
453
|
-
var head = ensureNotNull(buffer.
|
|
454
|
-
var tmp0 = head.
|
|
455
|
-
var tmp2 = head.
|
|
453
|
+
var head = ensureNotNull(buffer.g2r_1);
|
|
454
|
+
var tmp0 = head.n2u(true);
|
|
455
|
+
var tmp2 = head.t2r_1;
|
|
456
456
|
var tmp_1 = this;
|
|
457
|
-
var endIndex = head.
|
|
458
|
-
this.
|
|
459
|
-
tmp_1.
|
|
460
|
-
var bytesRead = this.
|
|
457
|
+
var endIndex = head.u2r_1;
|
|
458
|
+
this.a6z_1.q6y_1.write(toJsBuffer(tmp0, tmp2, endIndex));
|
|
459
|
+
tmp_1.f6z_1 = endIndex - tmp2 | 0;
|
|
460
|
+
var bytesRead = this.f6z_1;
|
|
461
461
|
if (!(bytesRead === 0)) {
|
|
462
462
|
if (bytesRead < 0)
|
|
463
463
|
throw IllegalStateException().o4('Returned negative read bytes count');
|
|
464
464
|
if (bytesRead > head.i1())
|
|
465
465
|
throw IllegalStateException().o4('Returned too many bytes');
|
|
466
|
-
buffer.
|
|
466
|
+
buffer.p2s(toLong(bytesRead));
|
|
467
467
|
}
|
|
468
468
|
|
|
469
|
-
this.
|
|
469
|
+
this.d6z_1 = this.f6z_1;
|
|
470
470
|
if (false) {
|
|
471
471
|
this.ac_1 = 2;
|
|
472
472
|
continue $sm;
|
|
@@ -475,12 +475,12 @@ function SocketImpl$attachForWritingImpl$slambda() {
|
|
|
475
475
|
this.ac_1 = 7;
|
|
476
476
|
continue $sm;
|
|
477
477
|
case 7:
|
|
478
|
-
this.
|
|
479
|
-
if (this.
|
|
480
|
-
this.
|
|
481
|
-
this.
|
|
478
|
+
this.g6z_1 = this.d6z_1;
|
|
479
|
+
if (this.g6z_1 === -1) {
|
|
480
|
+
this.h6z_1 = CompletableDeferred();
|
|
481
|
+
this.a6z_1.q6y_1.end(SocketImpl$attachForWritingImpl$slambda$lambda(this.h6z_1));
|
|
482
482
|
this.ac_1 = 9;
|
|
483
|
-
suspendResult = this.
|
|
483
|
+
suspendResult = this.h6z_1.b21(this);
|
|
484
484
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
485
485
|
return suspendResult;
|
|
486
486
|
}
|
|
@@ -512,9 +512,9 @@ function SocketImpl$attachForWritingImpl$slambda() {
|
|
|
512
512
|
}
|
|
513
513
|
while (true);
|
|
514
514
|
}
|
|
515
|
-
|
|
516
|
-
var i = new (SocketImpl$attachForWritingImpl$slambda())(this.
|
|
517
|
-
i.
|
|
515
|
+
p4f($this$reader, completion) {
|
|
516
|
+
var i = new (SocketImpl$attachForWritingImpl$slambda())(this.z6y_1, this.a6z_1, completion);
|
|
517
|
+
i.b6z_1 = $this$reader;
|
|
518
518
|
return i;
|
|
519
519
|
}
|
|
520
520
|
}
|
|
@@ -526,7 +526,7 @@ function SocketImpl$attachForWritingImpl$slambda() {
|
|
|
526
526
|
function SocketImpl$attachForWritingImpl$slambda_0($channel, this$0, resultContinuation) {
|
|
527
527
|
var i = new (SocketImpl$attachForWritingImpl$slambda())($channel, this$0, resultContinuation);
|
|
528
528
|
var l = function ($this$reader, $completion) {
|
|
529
|
-
return i.
|
|
529
|
+
return i.o4f($this$reader, $completion);
|
|
530
530
|
};
|
|
531
531
|
l.$arity = 1;
|
|
532
532
|
return l;
|
|
@@ -537,29 +537,29 @@ function SocketImpl() {
|
|
|
537
537
|
class $ extends SocketBase() {
|
|
538
538
|
constructor(localAddress, remoteAddress, coroutineContext, incoming, socket) {
|
|
539
539
|
super(coroutineContext);
|
|
540
|
-
this.
|
|
541
|
-
this.
|
|
542
|
-
this.
|
|
543
|
-
this.
|
|
544
|
-
this.
|
|
540
|
+
this.m6y_1 = localAddress;
|
|
541
|
+
this.n6y_1 = remoteAddress;
|
|
542
|
+
this.o6y_1 = coroutineContext;
|
|
543
|
+
this.p6y_1 = incoming;
|
|
544
|
+
this.q6y_1 = socket;
|
|
545
545
|
}
|
|
546
546
|
s1x() {
|
|
547
|
-
return this.
|
|
547
|
+
return this.o6y_1;
|
|
548
548
|
}
|
|
549
|
-
|
|
549
|
+
s6v(channel) {
|
|
550
550
|
var tmp = Dispatchers_getInstance().l2a_1;
|
|
551
551
|
return writer(this, tmp, channel, SocketImpl$attachForReadingImpl$slambda_0(this, channel, null));
|
|
552
552
|
}
|
|
553
|
-
|
|
553
|
+
u6v(channel) {
|
|
554
554
|
var tmp = Dispatchers_getInstance().l2a_1;
|
|
555
555
|
return reader(this, tmp, channel, SocketImpl$attachForWritingImpl$slambda_0(channel, this, null));
|
|
556
556
|
}
|
|
557
|
-
|
|
558
|
-
this.
|
|
557
|
+
d6v() {
|
|
558
|
+
this.q6y_1.destroy(null);
|
|
559
559
|
return null;
|
|
560
560
|
}
|
|
561
561
|
}
|
|
562
|
-
initMetadataForClass($, 'SocketImpl', VOID, VOID, [SocketBase(),
|
|
562
|
+
initMetadataForClass($, 'SocketImpl', VOID, VOID, [SocketBase(), CoroutineScope(), ASocket()]);
|
|
563
563
|
SocketImplClass = $;
|
|
564
564
|
}
|
|
565
565
|
return SocketImplClass;
|
|
@@ -14,7 +14,7 @@ function tcpConnect(selector, remoteAddress, socketOptions, $completion) {
|
|
|
14
14
|
var cancellable = new (CancellableContinuationImpl())(intercepted($completion), 1);
|
|
15
15
|
cancellable.a23();
|
|
16
16
|
var socket = get_nodeNet().createConnection(CreateConnectionOptions(remoteAddress, socketOptions));
|
|
17
|
-
(new (SocketContext())(socket, remoteAddress, null)).
|
|
17
|
+
(new (SocketContext())(socket, remoteAddress, null)).h6x(cancellable);
|
|
18
18
|
return cancellable.b20();
|
|
19
19
|
}
|
|
20
20
|
//region block: exports
|
|
@@ -26,20 +26,20 @@ function PeerSocketOptions() {
|
|
|
26
26
|
class $ extends SocketOptions() {
|
|
27
27
|
constructor(customOptions) {
|
|
28
28
|
super(customOptions);
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
29
|
+
this.a6w_1 = -1;
|
|
30
|
+
this.b6w_1 = -1;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
super.
|
|
32
|
+
v6v(from) {
|
|
33
|
+
super.v6v(from);
|
|
34
34
|
if (from instanceof PeerSocketOptions()) {
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
35
|
+
this.a6w_1 = from.a6w_1;
|
|
36
|
+
this.b6w_1 = from.b6w_1;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
-
|
|
39
|
+
c6w() {
|
|
40
40
|
// Inline function 'kotlin.apply' call
|
|
41
|
-
var this_0 = new (TCPClientSocketOptions())(HashMap().t8(this.
|
|
42
|
-
this.
|
|
41
|
+
var this_0 = new (TCPClientSocketOptions())(HashMap().t8(this.r6u_1));
|
|
42
|
+
this.v6v(this);
|
|
43
43
|
return this_0;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
@@ -54,17 +54,17 @@ function TCPClientSocketOptions() {
|
|
|
54
54
|
class $ extends PeerSocketOptions() {
|
|
55
55
|
constructor(customOptions) {
|
|
56
56
|
super(customOptions);
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
57
|
+
this.j6w_1 = true;
|
|
58
|
+
this.k6w_1 = -1;
|
|
59
|
+
this.l6w_1 = null;
|
|
60
|
+
this.m6w_1 = new (Long())(-1, 2147483647);
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
super.
|
|
62
|
+
v6v(from) {
|
|
63
|
+
super.v6v(from);
|
|
64
64
|
if (from instanceof TCPClientSocketOptions()) {
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
65
|
+
this.j6w_1 = from.j6w_1;
|
|
66
|
+
this.k6w_1 = from.k6w_1;
|
|
67
|
+
this.l6w_1 = from.l6w_1;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -77,7 +77,7 @@ var CompanionClass;
|
|
|
77
77
|
function Companion() {
|
|
78
78
|
if (CompanionClass === VOID) {
|
|
79
79
|
class $ {
|
|
80
|
-
|
|
80
|
+
w6u() {
|
|
81
81
|
return new (GeneralSocketOptions())(HashMap().e8());
|
|
82
82
|
}
|
|
83
83
|
}
|
|
@@ -95,20 +95,20 @@ function SocketOptions() {
|
|
|
95
95
|
if (SocketOptionsClass === VOID) {
|
|
96
96
|
class $ {
|
|
97
97
|
constructor(customOptions) {
|
|
98
|
-
this.
|
|
99
|
-
this.
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
98
|
+
this.r6u_1 = customOptions;
|
|
99
|
+
this.s6u_1 = Companion_getInstance().n6w_1;
|
|
100
|
+
this.t6u_1 = false;
|
|
101
|
+
this.u6u_1 = false;
|
|
102
102
|
}
|
|
103
|
-
|
|
104
|
-
this.
|
|
105
|
-
this.
|
|
106
|
-
this.
|
|
103
|
+
v6v(from) {
|
|
104
|
+
this.s6u_1 = from.s6u_1;
|
|
105
|
+
this.t6u_1 = from.t6u_1;
|
|
106
|
+
this.u6u_1 = from.u6u_1;
|
|
107
107
|
}
|
|
108
|
-
|
|
108
|
+
v6u() {
|
|
109
109
|
// Inline function 'kotlin.apply' call
|
|
110
|
-
var this_0 = new (PeerSocketOptions())(HashMap().t8(this.
|
|
111
|
-
this.
|
|
110
|
+
var this_0 = new (PeerSocketOptions())(HashMap().t8(this.r6u_1));
|
|
111
|
+
this.v6v(this);
|
|
112
112
|
return this_0;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
@@ -10,13 +10,13 @@ var SocketTimeoutExceptionClass;
|
|
|
10
10
|
function SocketTimeoutException() {
|
|
11
11
|
if (SocketTimeoutExceptionClass === VOID) {
|
|
12
12
|
class $ extends IOException() {
|
|
13
|
-
static
|
|
14
|
-
var $this = this.
|
|
15
|
-
captureStack($this, $this.
|
|
13
|
+
static l6z(message, cause) {
|
|
14
|
+
var $this = this.a2v(message, cause);
|
|
15
|
+
captureStack($this, $this.e6x_1);
|
|
16
16
|
return $this;
|
|
17
17
|
}
|
|
18
|
-
static
|
|
19
|
-
return this.
|
|
18
|
+
static f6x(message) {
|
|
19
|
+
return this.l6z(message, null);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
initMetadataForClass($, 'SocketTimeoutException');
|
|
@@ -15,9 +15,9 @@ function Connection() {
|
|
|
15
15
|
if (ConnectionClass === VOID) {
|
|
16
16
|
class $ {
|
|
17
17
|
constructor(socket, input, output) {
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
18
|
+
this.s6w_1 = socket;
|
|
19
|
+
this.t6w_1 = input;
|
|
20
|
+
this.u6w_1 = output;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
initMetadataForClass($, 'Connection');
|
|
@@ -31,14 +31,14 @@ function connection(_this__u8e3s4) {
|
|
|
31
31
|
function openReadChannel(_this__u8e3s4) {
|
|
32
32
|
// Inline function 'kotlin.also' call
|
|
33
33
|
var this_0 = new (ByteChannel())(false);
|
|
34
|
-
_this__u8e3s4.
|
|
34
|
+
_this__u8e3s4.r6v(this_0);
|
|
35
35
|
return this_0;
|
|
36
36
|
}
|
|
37
37
|
function openWriteChannel(_this__u8e3s4, autoFlush) {
|
|
38
38
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
39
39
|
// Inline function 'kotlin.also' call
|
|
40
40
|
var this_0 = new (ByteChannel())(autoFlush);
|
|
41
|
-
_this__u8e3s4.
|
|
41
|
+
_this__u8e3s4.t6v(this_0);
|
|
42
42
|
return this_0;
|
|
43
43
|
}
|
|
44
44
|
function dispose() {
|
|
@@ -10,14 +10,14 @@ function TcpSocketBuilder() {
|
|
|
10
10
|
if (TcpSocketBuilderClass === VOID) {
|
|
11
11
|
class $ {
|
|
12
12
|
constructor(selector, options) {
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
13
|
+
this.v6w_1 = selector;
|
|
14
|
+
this.w6w_1 = options;
|
|
15
15
|
}
|
|
16
|
-
|
|
16
|
+
x6w(remoteAddress, configure, $completion) {
|
|
17
17
|
// Inline function 'kotlin.apply' call
|
|
18
|
-
var this_0 = this.
|
|
18
|
+
var this_0 = this.w6w_1.c6w();
|
|
19
19
|
configure(this_0);
|
|
20
|
-
return tcpConnect(this.
|
|
20
|
+
return tcpConnect(this.v6w_1, remoteAddress, this_0, $completion);
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
initMetadataForClass($, 'TcpSocketBuilder', VOID, VOID, VOID, [3, 2]);
|