@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
|
@@ -16,54 +16,54 @@ function DefaultPool() {
|
|
|
16
16
|
if (DefaultPoolClass === VOID) {
|
|
17
17
|
class $ {
|
|
18
18
|
constructor(capacity) {
|
|
19
|
-
this.
|
|
19
|
+
this.v3q_1 = capacity;
|
|
20
20
|
var tmp = this;
|
|
21
21
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
22
|
-
var size = this.
|
|
23
|
-
tmp.
|
|
24
|
-
this.
|
|
22
|
+
var size = this.v3q_1;
|
|
23
|
+
tmp.w3q_1 = Array(size);
|
|
24
|
+
this.x3q_1 = 0;
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
y3q(instance) {
|
|
27
27
|
}
|
|
28
|
-
|
|
28
|
+
z3q(instance) {
|
|
29
29
|
return instance;
|
|
30
30
|
}
|
|
31
|
-
|
|
31
|
+
a3r(instance) {
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
if (this.
|
|
35
|
-
return this.
|
|
36
|
-
this.
|
|
37
|
-
var idx = this.
|
|
38
|
-
var tmp = this.
|
|
33
|
+
b3r() {
|
|
34
|
+
if (this.x3q_1 === 0)
|
|
35
|
+
return this.u3q();
|
|
36
|
+
this.x3q_1 = this.x3q_1 - 1 | 0;
|
|
37
|
+
var idx = this.x3q_1;
|
|
38
|
+
var tmp = this.w3q_1[idx];
|
|
39
39
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
40
|
-
this.
|
|
41
|
-
return this.
|
|
40
|
+
this.w3q_1[idx] = null;
|
|
41
|
+
return this.z3q(instance);
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
this.
|
|
45
|
-
if (this.
|
|
46
|
-
this.
|
|
43
|
+
c3r(instance) {
|
|
44
|
+
this.a3r(instance);
|
|
45
|
+
if (this.x3q_1 === this.v3q_1) {
|
|
46
|
+
this.y3q(instance);
|
|
47
47
|
} else {
|
|
48
|
-
var _unary__edvuaz = this.
|
|
49
|
-
this.
|
|
50
|
-
this.
|
|
48
|
+
var _unary__edvuaz = this.x3q_1;
|
|
49
|
+
this.x3q_1 = _unary__edvuaz + 1 | 0;
|
|
50
|
+
this.w3q_1[_unary__edvuaz] = instance;
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
u21() {
|
|
54
54
|
var inductionVariable = 0;
|
|
55
|
-
var last = this.
|
|
55
|
+
var last = this.x3q_1;
|
|
56
56
|
if (inductionVariable < last)
|
|
57
57
|
do {
|
|
58
58
|
var i = inductionVariable;
|
|
59
59
|
inductionVariable = inductionVariable + 1 | 0;
|
|
60
|
-
var tmp = this.
|
|
60
|
+
var tmp = this.w3q_1[i];
|
|
61
61
|
var instance = !(tmp == null) ? tmp : THROW_CCE();
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
62
|
+
this.w3q_1[i] = null;
|
|
63
|
+
this.y3q(instance);
|
|
64
64
|
}
|
|
65
65
|
while (inductionVariable < last);
|
|
66
|
-
this.
|
|
66
|
+
this.x3q_1 = 0;
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
protoOf($).v5 = close;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EmptyCoroutineContext_getInstance31fow51ayy30t as EmptyCoroutineContext_getInstance } from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs';
|
|
2
2
|
import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
3
|
-
import { AutoCloseable1l5p57f9lp7kv as AutoCloseable } from '../../../../../kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs';
|
|
4
3
|
import { CoroutineScopefcb5f5dwqcas as CoroutineScope } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs';
|
|
4
|
+
import { AutoCloseable1l5p57f9lp7kv as AutoCloseable } from '../../../../../kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs';
|
|
5
5
|
import { initMetadataForObject1cxne3s9w65el as initMetadataForObject } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
6
6
|
//region block: imports
|
|
7
7
|
//endregion
|
|
@@ -21,7 +21,7 @@ function NoopSelectorManager() {
|
|
|
21
21
|
v5() {
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
initMetadataForObject($, 'NoopSelectorManager', VOID, VOID, [
|
|
24
|
+
initMetadataForObject($, 'NoopSelectorManager', VOID, VOID, [CoroutineScope(), AutoCloseable()], [2]);
|
|
25
25
|
NoopSelectorManagerClass = $;
|
|
26
26
|
}
|
|
27
27
|
return NoopSelectorManagerClass;
|
|
@@ -11,11 +11,11 @@ function SocketBuilder() {
|
|
|
11
11
|
if (SocketBuilderClass === VOID) {
|
|
12
12
|
class $ {
|
|
13
13
|
constructor(selector, options) {
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
14
|
+
this.o6u_1 = selector;
|
|
15
|
+
this.p6u_1 = options;
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
return new (TcpSocketBuilder())(this.
|
|
17
|
+
q6u() {
|
|
18
|
+
return new (TcpSocketBuilder())(this.o6u_1, this.p6u_1.v6u());
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
initMetadataForClass($, 'SocketBuilder');
|
|
@@ -24,7 +24,7 @@ function SocketBuilder() {
|
|
|
24
24
|
return SocketBuilderClass;
|
|
25
25
|
}
|
|
26
26
|
function aSocket(selector) {
|
|
27
|
-
return new (SocketBuilder())(selector, Companion_instance.
|
|
27
|
+
return new (SocketBuilder())(selector, Companion_instance.w6u());
|
|
28
28
|
}
|
|
29
29
|
//region block: exports
|
|
30
30
|
export {
|
|
@@ -37,7 +37,7 @@ function UnixSocketAddress() {
|
|
|
37
37
|
class $ extends SocketAddress() {
|
|
38
38
|
constructor(path) {
|
|
39
39
|
super();
|
|
40
|
-
this.
|
|
40
|
+
this.k6z_1 = path;
|
|
41
41
|
}
|
|
42
42
|
equals(other) {
|
|
43
43
|
var tmp;
|
|
@@ -48,13 +48,13 @@ function UnixSocketAddress() {
|
|
|
48
48
|
}
|
|
49
49
|
if (tmp)
|
|
50
50
|
return false;
|
|
51
|
-
return other.
|
|
51
|
+
return other.k6z_1 === this.k6z_1;
|
|
52
52
|
}
|
|
53
53
|
hashCode() {
|
|
54
|
-
return getStringHashCode(this.
|
|
54
|
+
return getStringHashCode(this.k6z_1);
|
|
55
55
|
}
|
|
56
56
|
toString() {
|
|
57
|
-
return 'UnixSocketAddress(' + this.
|
|
57
|
+
return 'UnixSocketAddress(' + this.k6z_1 + ')';
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
initMetadataForClass($, 'UnixSocketAddress');
|
|
@@ -68,8 +68,8 @@ function InetSocketAddress() {
|
|
|
68
68
|
class $ extends SocketAddress() {
|
|
69
69
|
constructor(hostname, port) {
|
|
70
70
|
super();
|
|
71
|
-
this.
|
|
72
|
-
this.
|
|
71
|
+
this.i6z_1 = hostname;
|
|
72
|
+
this.j6z_1 = port;
|
|
73
73
|
}
|
|
74
74
|
equals(other) {
|
|
75
75
|
var tmp;
|
|
@@ -80,13 +80,13 @@ function InetSocketAddress() {
|
|
|
80
80
|
}
|
|
81
81
|
if (tmp)
|
|
82
82
|
return false;
|
|
83
|
-
return other.
|
|
83
|
+
return other.i6z_1 === this.i6z_1 && other.j6z_1 === this.j6z_1;
|
|
84
84
|
}
|
|
85
85
|
hashCode() {
|
|
86
|
-
return imul(getStringHashCode(this.
|
|
86
|
+
return imul(getStringHashCode(this.i6z_1), 31) + this.j6z_1 | 0;
|
|
87
87
|
}
|
|
88
88
|
toString() {
|
|
89
|
-
return 'InetSocketAddress(' + this.
|
|
89
|
+
return 'InetSocketAddress(' + this.i6z_1 + ':' + this.j6z_1 + ')';
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
initMetadataForClass($, 'InetSocketAddress');
|
|
@@ -40,10 +40,10 @@ import { ASocket1hggj5ss9a2ef as ASocket } from './Sockets.mjs';
|
|
|
40
40
|
function checkChannels($this) {
|
|
41
41
|
var tmp;
|
|
42
42
|
var tmp_0;
|
|
43
|
-
if ($this.
|
|
43
|
+
if ($this.x6u_1.kotlinx$atomicfu$value) {
|
|
44
44
|
// Inline function 'io.ktor.network.sockets.SocketBase.completedOrNotStarted' call
|
|
45
45
|
// Inline function 'kotlin.let' call
|
|
46
|
-
var it = $this.
|
|
46
|
+
var it = $this.z6u_1.kotlinx$atomicfu$value;
|
|
47
47
|
tmp_0 = it == null || get_isCompleted(it);
|
|
48
48
|
} else {
|
|
49
49
|
tmp_0 = false;
|
|
@@ -51,16 +51,16 @@ function checkChannels($this) {
|
|
|
51
51
|
if (tmp_0) {
|
|
52
52
|
// Inline function 'io.ktor.network.sockets.SocketBase.completedOrNotStarted' call
|
|
53
53
|
// Inline function 'kotlin.let' call
|
|
54
|
-
var it_0 = $this.
|
|
54
|
+
var it_0 = $this.a6v_1.kotlinx$atomicfu$value;
|
|
55
55
|
tmp = it_0 == null || get_isCompleted(it_0);
|
|
56
56
|
} else {
|
|
57
57
|
tmp = false;
|
|
58
58
|
}
|
|
59
59
|
if (tmp) {
|
|
60
|
-
if (!$this.
|
|
60
|
+
if (!$this.y6u_1.atomicfu$compareAndSet(false, true))
|
|
61
61
|
return Unit_instance;
|
|
62
62
|
// Inline function 'io.ktor.network.sockets.SocketBase.exception' call
|
|
63
|
-
var tmp0_safe_receiver = $this.
|
|
63
|
+
var tmp0_safe_receiver = $this.z6u_1.kotlinx$atomicfu$value;
|
|
64
64
|
var tmp_1;
|
|
65
65
|
if (tmp0_safe_receiver == null) {
|
|
66
66
|
tmp_1 = null;
|
|
@@ -78,7 +78,7 @@ function checkChannels($this) {
|
|
|
78
78
|
var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : getCancellationException(tmp1_safe_receiver);
|
|
79
79
|
var e1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.cause;
|
|
80
80
|
// Inline function 'io.ktor.network.sockets.SocketBase.exception' call
|
|
81
|
-
var tmp0_safe_receiver_0 = $this.
|
|
81
|
+
var tmp0_safe_receiver_0 = $this.a6v_1.kotlinx$atomicfu$value;
|
|
82
82
|
var tmp_3;
|
|
83
83
|
if (tmp0_safe_receiver_0 == null) {
|
|
84
84
|
tmp_3 = null;
|
|
@@ -95,12 +95,12 @@ function checkChannels($this) {
|
|
|
95
95
|
var tmp1_safe_receiver_0 = tmp_3;
|
|
96
96
|
var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : getCancellationException(tmp1_safe_receiver_0);
|
|
97
97
|
var e2 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.cause;
|
|
98
|
-
var e3 = $this.
|
|
98
|
+
var e3 = $this.d6v();
|
|
99
99
|
var combined = combine($this, combine($this, e1, e2), e3);
|
|
100
100
|
if (combined == null)
|
|
101
|
-
$this.
|
|
101
|
+
$this.e6v().d25();
|
|
102
102
|
else
|
|
103
|
-
$this.
|
|
103
|
+
$this.e6v().c25(combined);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
function combine($this, e1, e2) {
|
|
@@ -130,17 +130,17 @@ function SocketBase$close$slambda() {
|
|
|
130
130
|
constructor(this$0, resultContinuation, $box) {
|
|
131
131
|
if ($box === VOID)
|
|
132
132
|
$box = {};
|
|
133
|
-
$box.
|
|
133
|
+
$box.n6v_1 = this$0;
|
|
134
134
|
super(resultContinuation, $box);
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
var tmp = this.
|
|
136
|
+
z37($this$launch, $completion) {
|
|
137
|
+
var tmp = this.d36($this$launch, $completion);
|
|
138
138
|
tmp.cc_1 = Unit_instance;
|
|
139
139
|
tmp.dc_1 = null;
|
|
140
140
|
return tmp.ic();
|
|
141
141
|
}
|
|
142
142
|
kd(p1, $completion) {
|
|
143
|
-
return this.
|
|
143
|
+
return this.z37((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
|
|
144
144
|
}
|
|
145
145
|
ic() {
|
|
146
146
|
var suspendResult = this.cc_1;
|
|
@@ -150,14 +150,14 @@ function SocketBase$close$slambda() {
|
|
|
150
150
|
switch (tmp) {
|
|
151
151
|
case 0:
|
|
152
152
|
this.bc_1 = 3;
|
|
153
|
-
this.
|
|
154
|
-
if (this.
|
|
155
|
-
this.
|
|
153
|
+
this.p6v_1 = this.n6v_1.z6u_1.kotlinx$atomicfu$value;
|
|
154
|
+
if (this.p6v_1 == null) {
|
|
155
|
+
this.q6v_1 = null;
|
|
156
156
|
this.ac_1 = 2;
|
|
157
157
|
continue $sm;
|
|
158
158
|
} else {
|
|
159
159
|
this.ac_1 = 1;
|
|
160
|
-
suspendResult = this.
|
|
160
|
+
suspendResult = this.p6v_1.k3b(this);
|
|
161
161
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
162
162
|
return suspendResult;
|
|
163
163
|
}
|
|
@@ -166,18 +166,18 @@ function SocketBase$close$slambda() {
|
|
|
166
166
|
|
|
167
167
|
case 1:
|
|
168
168
|
var tmp_0 = this;
|
|
169
|
-
tmp_0.
|
|
169
|
+
tmp_0.q6v_1 = Unit_instance;
|
|
170
170
|
this.ac_1 = 2;
|
|
171
171
|
continue $sm;
|
|
172
172
|
case 2:
|
|
173
|
-
var tmp1_safe_receiver = this.
|
|
173
|
+
var tmp1_safe_receiver = this.n6v_1.a6v_1.kotlinx$atomicfu$value;
|
|
174
174
|
if (tmp1_safe_receiver == null)
|
|
175
175
|
null;
|
|
176
176
|
else {
|
|
177
177
|
cancel(tmp1_safe_receiver);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
checkChannels(this.
|
|
180
|
+
checkChannels(this.n6v_1);
|
|
181
181
|
return Unit_instance;
|
|
182
182
|
case 3:
|
|
183
183
|
throw this.dc_1;
|
|
@@ -193,9 +193,9 @@ function SocketBase$close$slambda() {
|
|
|
193
193
|
}
|
|
194
194
|
while (true);
|
|
195
195
|
}
|
|
196
|
-
|
|
197
|
-
var i = new (SocketBase$close$slambda())(this.
|
|
198
|
-
i.
|
|
196
|
+
d36($this$launch, completion) {
|
|
197
|
+
var i = new (SocketBase$close$slambda())(this.n6v_1, completion);
|
|
198
|
+
i.o6v_1 = $this$launch;
|
|
199
199
|
return i;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
@@ -207,7 +207,7 @@ function SocketBase$close$slambda() {
|
|
|
207
207
|
function SocketBase$close$slambda_0(this$0, resultContinuation) {
|
|
208
208
|
var i = new (SocketBase$close$slambda())(this$0, resultContinuation);
|
|
209
209
|
var l = function ($this$launch, $completion) {
|
|
210
|
-
return i.
|
|
210
|
+
return i.z37($this$launch, $completion);
|
|
211
211
|
};
|
|
212
212
|
l.$arity = 1;
|
|
213
213
|
return l;
|
|
@@ -218,75 +218,75 @@ function SocketBase() {
|
|
|
218
218
|
class $ extends SelectableBase() {
|
|
219
219
|
constructor(parent) {
|
|
220
220
|
super();
|
|
221
|
-
this.
|
|
222
|
-
this.
|
|
223
|
-
this.
|
|
224
|
-
this.
|
|
221
|
+
this.x6u_1 = atomic$boolean$1(false);
|
|
222
|
+
this.y6u_1 = atomic$boolean$1(false);
|
|
223
|
+
this.z6u_1 = atomic$ref$1(null);
|
|
224
|
+
this.a6v_1 = atomic$ref$1(null);
|
|
225
225
|
var tmp = this;
|
|
226
|
-
tmp.
|
|
227
|
-
this.
|
|
226
|
+
tmp.b6v_1 = SocketBase$channelCompletionHandler$lambda(this);
|
|
227
|
+
this.c6v_1 = Job(parent.nc(Key_instance));
|
|
228
228
|
}
|
|
229
|
-
|
|
230
|
-
return this.
|
|
229
|
+
e6v() {
|
|
230
|
+
return this.c6v_1;
|
|
231
231
|
}
|
|
232
232
|
s1x() {
|
|
233
|
-
return this.
|
|
233
|
+
return this.e6v();
|
|
234
234
|
}
|
|
235
235
|
u21() {
|
|
236
236
|
this.v5();
|
|
237
237
|
}
|
|
238
238
|
v5() {
|
|
239
|
-
if (!this.
|
|
239
|
+
if (!this.x6u_1.atomicfu$compareAndSet(false, true))
|
|
240
240
|
return Unit_instance;
|
|
241
241
|
var tmp = new (CoroutineName())('socket-close');
|
|
242
242
|
launch(this, tmp, VOID, SocketBase$close$slambda_0(this, null));
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
r6v(channel) {
|
|
245
245
|
// Inline function 'io.ktor.network.sockets.SocketBase.attachFor' call
|
|
246
|
-
var ref = this.
|
|
247
|
-
if (this.
|
|
248
|
-
var e = IOException().
|
|
246
|
+
var ref = this.a6v_1;
|
|
247
|
+
if (this.x6u_1.kotlinx$atomicfu$value) {
|
|
248
|
+
var e = IOException().z2u('Socket closed');
|
|
249
249
|
close(channel, e);
|
|
250
250
|
throw e;
|
|
251
251
|
}
|
|
252
|
-
var j = this.
|
|
252
|
+
var j = this.s6v(channel);
|
|
253
253
|
if (!ref.atomicfu$compareAndSet(null, j)) {
|
|
254
254
|
var e_0 = IllegalStateException().o4('reading' + ' channel has already been set');
|
|
255
255
|
cancel(j);
|
|
256
256
|
throw e_0;
|
|
257
257
|
}
|
|
258
|
-
if (this.
|
|
259
|
-
var e_1 = IOException().
|
|
258
|
+
if (this.x6u_1.kotlinx$atomicfu$value) {
|
|
259
|
+
var e_1 = IOException().z2u('Socket closed');
|
|
260
260
|
cancel(j);
|
|
261
261
|
close(channel, e_1);
|
|
262
262
|
throw e_1;
|
|
263
263
|
}
|
|
264
264
|
attachJob(channel, j);
|
|
265
|
-
invokeOnCompletion(j, this.
|
|
265
|
+
invokeOnCompletion(j, this.b6v_1);
|
|
266
266
|
return j;
|
|
267
267
|
}
|
|
268
|
-
|
|
268
|
+
t6v(channel) {
|
|
269
269
|
// Inline function 'io.ktor.network.sockets.SocketBase.attachFor' call
|
|
270
|
-
var ref = this.
|
|
271
|
-
if (this.
|
|
272
|
-
var e = IOException().
|
|
270
|
+
var ref = this.z6u_1;
|
|
271
|
+
if (this.x6u_1.kotlinx$atomicfu$value) {
|
|
272
|
+
var e = IOException().z2u('Socket closed');
|
|
273
273
|
close(channel, e);
|
|
274
274
|
throw e;
|
|
275
275
|
}
|
|
276
|
-
var j = this.
|
|
276
|
+
var j = this.u6v(channel);
|
|
277
277
|
if (!ref.atomicfu$compareAndSet(null, j)) {
|
|
278
278
|
var e_0 = IllegalStateException().o4('writing' + ' channel has already been set');
|
|
279
279
|
cancel(j);
|
|
280
280
|
throw e_0;
|
|
281
281
|
}
|
|
282
|
-
if (this.
|
|
283
|
-
var e_1 = IOException().
|
|
282
|
+
if (this.x6u_1.kotlinx$atomicfu$value) {
|
|
283
|
+
var e_1 = IOException().z2u('Socket closed');
|
|
284
284
|
cancel(j);
|
|
285
285
|
close(channel, e_1);
|
|
286
286
|
throw e_1;
|
|
287
287
|
}
|
|
288
288
|
attachJob(channel, j);
|
|
289
|
-
invokeOnCompletion(j, this.
|
|
289
|
+
invokeOnCompletion(j, this.b6v_1);
|
|
290
290
|
return j;
|
|
291
291
|
}
|
|
292
292
|
}
|