@attocash/commons-js 5.0.0 → 5.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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-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-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/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/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- 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/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 +104 -104
- 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
|
@@ -28,13 +28,13 @@ function ByteWriteChannel$flushAndClose$ref() {
|
|
|
28
28
|
if (ByteWriteChannel$flushAndClose$refClass === VOID) {
|
|
29
29
|
class $ {
|
|
30
30
|
constructor(p0) {
|
|
31
|
-
this.
|
|
31
|
+
this.g3n_1 = p0;
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
return this.
|
|
33
|
+
q3m($completion) {
|
|
34
|
+
return this.g3n_1.k3b($completion);
|
|
35
35
|
}
|
|
36
36
|
pe($completion) {
|
|
37
|
-
return this.
|
|
37
|
+
return this.q3m($completion);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
initMetadataForFunctionReference($, VOID, VOID, [0]);
|
|
@@ -45,7 +45,7 @@ function ByteWriteChannel$flushAndClose$ref() {
|
|
|
45
45
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
46
46
|
var i = new (ByteWriteChannel$flushAndClose$ref())(p0);
|
|
47
47
|
var l = function ($completion) {
|
|
48
|
-
return i.
|
|
48
|
+
return i.q3m($completion);
|
|
49
49
|
};
|
|
50
50
|
l.callableName = 'flushAndClose';
|
|
51
51
|
l.$arity = 0;
|
|
@@ -57,7 +57,7 @@ function $flushIfNeededCOROUTINE$() {
|
|
|
57
57
|
class $ extends CoroutineImpl() {
|
|
58
58
|
constructor(_this__u8e3s4, resultContinuation) {
|
|
59
59
|
super(resultContinuation);
|
|
60
|
-
this.
|
|
60
|
+
this.f3n_1 = _this__u8e3s4;
|
|
61
61
|
}
|
|
62
62
|
ic() {
|
|
63
63
|
var suspendResult = this.cc_1;
|
|
@@ -67,19 +67,19 @@ function $flushIfNeededCOROUTINE$() {
|
|
|
67
67
|
switch (tmp) {
|
|
68
68
|
case 0:
|
|
69
69
|
this.bc_1 = 3;
|
|
70
|
-
rethrowCloseCauseIfNeeded(this.
|
|
70
|
+
rethrowCloseCauseIfNeeded(this.f3n_1);
|
|
71
71
|
var tmp_0;
|
|
72
|
-
var tmp_1 = this.
|
|
72
|
+
var tmp_1 = this.f3n_1;
|
|
73
73
|
var tmp0_safe_receiver = tmp_1 instanceof ByteChannel() ? tmp_1 : null;
|
|
74
|
-
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
74
|
+
if ((tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p38_1) === true) {
|
|
75
75
|
tmp_0 = true;
|
|
76
76
|
} else {
|
|
77
|
-
tmp_0 = get_size(this.
|
|
77
|
+
tmp_0 = get_size(this.f3n_1.d3b()) >= 1048576;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
if (tmp_0) {
|
|
81
81
|
this.ac_1 = 1;
|
|
82
|
-
suspendResult = this.
|
|
82
|
+
suspendResult = this.f3n_1.z3a(this);
|
|
83
83
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
84
84
|
return suspendResult;
|
|
85
85
|
}
|
|
@@ -42,11 +42,11 @@ function WriterJob() {
|
|
|
42
42
|
if (WriterJobClass === VOID) {
|
|
43
43
|
class $ {
|
|
44
44
|
constructor(channel, job) {
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
45
|
+
this.h3n_1 = channel;
|
|
46
|
+
this.i3n_1 = job;
|
|
47
47
|
}
|
|
48
48
|
i24() {
|
|
49
|
-
return this.
|
|
49
|
+
return this.i3n_1;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
52
|
initMetadataForClass($, 'WriterJob');
|
|
@@ -65,11 +65,11 @@ function WriterScope() {
|
|
|
65
65
|
if (WriterScopeClass === VOID) {
|
|
66
66
|
class $ {
|
|
67
67
|
constructor(channel, coroutineContext) {
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
68
|
+
this.j3n_1 = channel;
|
|
69
|
+
this.k3n_1 = coroutineContext;
|
|
70
70
|
}
|
|
71
71
|
s1x() {
|
|
72
|
-
return this.
|
|
72
|
+
return this.k3n_1;
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
initMetadataForClass($, 'WriterScope', VOID, VOID, [CoroutineScope()]);
|
|
@@ -80,7 +80,7 @@ function WriterScope() {
|
|
|
80
80
|
function writeFully(_this__u8e3s4, value, startIndex, endIndex, $completion) {
|
|
81
81
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
82
82
|
endIndex = endIndex === VOID ? value.length : endIndex;
|
|
83
|
-
_this__u8e3s4.
|
|
83
|
+
_this__u8e3s4.d3b().b2t(value, startIndex, endIndex);
|
|
84
84
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
85
85
|
}
|
|
86
86
|
function close(_this__u8e3s4, cause) {
|
|
@@ -88,7 +88,7 @@ function close(_this__u8e3s4, cause) {
|
|
|
88
88
|
if (cause == null) {
|
|
89
89
|
fireAndForget(ByteWriteChannel$flushAndClose$ref_0(_this__u8e3s4));
|
|
90
90
|
} else {
|
|
91
|
-
_this__u8e3s4.
|
|
91
|
+
_this__u8e3s4.l3b(cause);
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
function invokeOnCompletion(_this__u8e3s4, block) {
|
|
@@ -118,23 +118,23 @@ function writer_0(_this__u8e3s4, coroutineContext, channel, block) {
|
|
|
118
118
|
return new (WriterJob())(channel, job);
|
|
119
119
|
}
|
|
120
120
|
function writeShort(_this__u8e3s4, value, $completion) {
|
|
121
|
-
_this__u8e3s4.
|
|
121
|
+
_this__u8e3s4.d3b().n2t(value);
|
|
122
122
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
123
123
|
}
|
|
124
124
|
function writeByte(_this__u8e3s4, value, $completion) {
|
|
125
|
-
_this__u8e3s4.
|
|
125
|
+
_this__u8e3s4.d3b().l2t(value);
|
|
126
126
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
127
127
|
}
|
|
128
128
|
function writeLong(_this__u8e3s4, value, $completion) {
|
|
129
|
-
_this__u8e3s4.
|
|
129
|
+
_this__u8e3s4.d3b().r2t(value);
|
|
130
130
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
131
131
|
}
|
|
132
132
|
function writeInt(_this__u8e3s4, value, $completion) {
|
|
133
|
-
_this__u8e3s4.
|
|
133
|
+
_this__u8e3s4.d3b().p2t(value);
|
|
134
134
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
135
135
|
}
|
|
136
136
|
function writeByteArray(_this__u8e3s4, array, $completion) {
|
|
137
|
-
_this__u8e3s4.
|
|
137
|
+
_this__u8e3s4.d3b().e2t(array);
|
|
138
138
|
return flushIfNeeded(_this__u8e3s4, $completion);
|
|
139
139
|
}
|
|
140
140
|
function cancel_0(_this__u8e3s4) {
|
|
@@ -158,10 +158,10 @@ function NO_CALLBACK$1() {
|
|
|
158
158
|
if (NO_CALLBACK$1Class === VOID) {
|
|
159
159
|
class $ {
|
|
160
160
|
constructor() {
|
|
161
|
-
this.
|
|
161
|
+
this.v3n_1 = EmptyCoroutineContext_getInstance();
|
|
162
162
|
}
|
|
163
163
|
gc() {
|
|
164
|
-
return this.
|
|
164
|
+
return this.v3n_1;
|
|
165
165
|
}
|
|
166
166
|
hc(result) {
|
|
167
167
|
return Unit_instance;
|
|
@@ -180,13 +180,13 @@ function ByteWriteChannel$flushAndClose$ref() {
|
|
|
180
180
|
if (ByteWriteChannel$flushAndClose$refClass === VOID) {
|
|
181
181
|
class $ {
|
|
182
182
|
constructor(p0) {
|
|
183
|
-
this.
|
|
183
|
+
this.w3n_1 = p0;
|
|
184
184
|
}
|
|
185
|
-
|
|
186
|
-
return this.
|
|
185
|
+
q3m($completion) {
|
|
186
|
+
return this.w3n_1.k3b($completion);
|
|
187
187
|
}
|
|
188
188
|
pe($completion) {
|
|
189
|
-
return this.
|
|
189
|
+
return this.q3m($completion);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
initMetadataForFunctionReference($, VOID, VOID, [0]);
|
|
@@ -197,7 +197,7 @@ function ByteWriteChannel$flushAndClose$ref() {
|
|
|
197
197
|
function ByteWriteChannel$flushAndClose$ref_0(p0) {
|
|
198
198
|
var i = new (ByteWriteChannel$flushAndClose$ref())(p0);
|
|
199
199
|
var l = function ($completion) {
|
|
200
|
-
return i.
|
|
200
|
+
return i.q3m($completion);
|
|
201
201
|
};
|
|
202
202
|
l.callableName = 'flushAndClose';
|
|
203
203
|
l.$arity = 0;
|
|
@@ -210,18 +210,18 @@ function writer$slambda() {
|
|
|
210
210
|
constructor($block, $channel, resultContinuation, $box) {
|
|
211
211
|
if ($box === VOID)
|
|
212
212
|
$box = {};
|
|
213
|
-
$box.
|
|
214
|
-
$box.
|
|
213
|
+
$box.f3o_1 = $block;
|
|
214
|
+
$box.g3o_1 = $channel;
|
|
215
215
|
super(resultContinuation, $box);
|
|
216
216
|
}
|
|
217
|
-
|
|
218
|
-
var tmp = this.
|
|
217
|
+
z37($this$launch, $completion) {
|
|
218
|
+
var tmp = this.d36($this$launch, $completion);
|
|
219
219
|
tmp.cc_1 = Unit_instance;
|
|
220
220
|
tmp.dc_1 = null;
|
|
221
221
|
return tmp.ic();
|
|
222
222
|
}
|
|
223
223
|
kd(p1, $completion) {
|
|
224
|
-
return this.
|
|
224
|
+
return this.z37((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
|
|
225
225
|
}
|
|
226
226
|
ic() {
|
|
227
227
|
var suspendResult = this.cc_1;
|
|
@@ -231,29 +231,29 @@ function writer$slambda() {
|
|
|
231
231
|
switch (tmp) {
|
|
232
232
|
case 0:
|
|
233
233
|
this.bc_1 = 14;
|
|
234
|
-
this.
|
|
234
|
+
this.i3o_1 = Job(get_job(this.h3o_1.s1x()));
|
|
235
235
|
this.ac_1 = 1;
|
|
236
236
|
continue $sm;
|
|
237
237
|
case 1:
|
|
238
238
|
this.bc_1 = 4;
|
|
239
239
|
this.bc_1 = 3;
|
|
240
240
|
this.ac_1 = 2;
|
|
241
|
-
suspendResult = this.
|
|
241
|
+
suspendResult = this.f3o_1(new (WriterScope())(this.g3o_1, this.h3o_1.s1x().lm(this.i3o_1)), this);
|
|
242
242
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
243
243
|
return suspendResult;
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
continue $sm;
|
|
247
247
|
case 2:
|
|
248
|
-
this.
|
|
248
|
+
this.i3o_1.d25();
|
|
249
249
|
var tmp_0 = this;
|
|
250
250
|
var tmp_1;
|
|
251
|
-
if (get_job(this.
|
|
252
|
-
this.
|
|
251
|
+
if (get_job(this.h3o_1.s1x()).p1y()) {
|
|
252
|
+
this.g3o_1.l3b(get_job(this.h3o_1.s1x()).s1y());
|
|
253
253
|
tmp_1 = Unit_instance;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
tmp_0.
|
|
256
|
+
tmp_0.j3o_1 = tmp_1;
|
|
257
257
|
this.bc_1 = 14;
|
|
258
258
|
this.ac_1 = 9;
|
|
259
259
|
continue $sm;
|
|
@@ -261,11 +261,11 @@ function writer$slambda() {
|
|
|
261
261
|
this.bc_1 = 4;
|
|
262
262
|
var tmp_2 = this.dc_1;
|
|
263
263
|
if (tmp_2 instanceof Error) {
|
|
264
|
-
this.
|
|
264
|
+
this.k3o_1 = this.dc_1;
|
|
265
265
|
var tmp_3 = this;
|
|
266
|
-
cancel(this.
|
|
267
|
-
this.
|
|
268
|
-
tmp_3.
|
|
266
|
+
cancel(this.i3o_1, 'Exception thrown while writing to channel', this.k3o_1);
|
|
267
|
+
this.g3o_1.l3b(this.k3o_1);
|
|
268
|
+
tmp_3.j3o_1 = Unit_instance;
|
|
269
269
|
this.bc_1 = 14;
|
|
270
270
|
this.ac_1 = 9;
|
|
271
271
|
continue $sm;
|
|
@@ -275,9 +275,9 @@ function writer$slambda() {
|
|
|
275
275
|
|
|
276
276
|
case 4:
|
|
277
277
|
this.bc_1 = 14;
|
|
278
|
-
this.
|
|
278
|
+
this.l3o_1 = this.dc_1;
|
|
279
279
|
this.ac_1 = 5;
|
|
280
|
-
suspendResult = this.
|
|
280
|
+
suspendResult = this.i3o_1.z1y(this);
|
|
281
281
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
282
282
|
return suspendResult;
|
|
283
283
|
}
|
|
@@ -285,27 +285,27 @@ function writer$slambda() {
|
|
|
285
285
|
continue $sm;
|
|
286
286
|
case 5:
|
|
287
287
|
var tmp_4 = this;
|
|
288
|
-
tmp_4.
|
|
289
|
-
this.
|
|
288
|
+
tmp_4.m3o_1 = this.h3o_1;
|
|
289
|
+
this.n3o_1 = this.m3o_1;
|
|
290
290
|
this.bc_1 = 7;
|
|
291
291
|
var tmp_5 = this;
|
|
292
|
-
tmp_5.
|
|
292
|
+
tmp_5.p3o_1 = Companion_instance;
|
|
293
293
|
var tmp_6 = this;
|
|
294
|
-
tmp_6.
|
|
295
|
-
this.
|
|
294
|
+
tmp_6.q3o_1 = this.n3o_1;
|
|
295
|
+
this.r3o_1 = this.q3o_1;
|
|
296
296
|
this.ac_1 = 6;
|
|
297
|
-
suspendResult = this.
|
|
297
|
+
suspendResult = this.g3o_1.k3b(this);
|
|
298
298
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
299
299
|
return suspendResult;
|
|
300
300
|
}
|
|
301
301
|
|
|
302
302
|
continue $sm;
|
|
303
303
|
case 6:
|
|
304
|
-
this.
|
|
304
|
+
this.s3o_1 = Unit_instance;
|
|
305
305
|
var tmp_7 = this;
|
|
306
|
-
this.
|
|
307
|
-
var value = this.
|
|
308
|
-
tmp_7.
|
|
306
|
+
this.p3o_1;
|
|
307
|
+
var value = this.s3o_1;
|
|
308
|
+
tmp_7.o3o_1 = _Result___init__impl__xyqfz8(value);
|
|
309
309
|
this.bc_1 = 14;
|
|
310
310
|
this.ac_1 = 8;
|
|
311
311
|
continue $sm;
|
|
@@ -313,10 +313,10 @@ function writer$slambda() {
|
|
|
313
313
|
this.bc_1 = 14;
|
|
314
314
|
var tmp_8 = this.dc_1;
|
|
315
315
|
if (tmp_8 instanceof Error) {
|
|
316
|
-
this.
|
|
316
|
+
this.t3o_1 = this.dc_1;
|
|
317
317
|
var tmp_9 = this;
|
|
318
|
-
var exception = this.
|
|
319
|
-
tmp_9.
|
|
318
|
+
var exception = this.t3o_1;
|
|
319
|
+
tmp_9.o3o_1 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
320
320
|
this.ac_1 = 8;
|
|
321
321
|
continue $sm;
|
|
322
322
|
} else {
|
|
@@ -325,11 +325,11 @@ function writer$slambda() {
|
|
|
325
325
|
|
|
326
326
|
case 8:
|
|
327
327
|
this.bc_1 = 14;
|
|
328
|
-
throw this.
|
|
328
|
+
throw this.l3o_1;
|
|
329
329
|
case 9:
|
|
330
330
|
this.bc_1 = 14;
|
|
331
331
|
this.ac_1 = 10;
|
|
332
|
-
suspendResult = this.
|
|
332
|
+
suspendResult = this.i3o_1.z1y(this);
|
|
333
333
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
334
334
|
return suspendResult;
|
|
335
335
|
}
|
|
@@ -337,16 +337,16 @@ function writer$slambda() {
|
|
|
337
337
|
continue $sm;
|
|
338
338
|
case 10:
|
|
339
339
|
var tmp_10 = this;
|
|
340
|
-
tmp_10.
|
|
341
|
-
this.
|
|
340
|
+
tmp_10.u3o_1 = this.h3o_1;
|
|
341
|
+
this.v3o_1 = this.u3o_1;
|
|
342
342
|
this.bc_1 = 12;
|
|
343
343
|
var tmp_11 = this;
|
|
344
|
-
tmp_11.
|
|
344
|
+
tmp_11.x3o_1 = Companion_instance;
|
|
345
345
|
var tmp_12 = this;
|
|
346
|
-
tmp_12.
|
|
347
|
-
this.
|
|
346
|
+
tmp_12.y3o_1 = this.v3o_1;
|
|
347
|
+
this.z3o_1 = this.y3o_1;
|
|
348
348
|
this.ac_1 = 11;
|
|
349
|
-
suspendResult = this.
|
|
349
|
+
suspendResult = this.g3o_1.k3b(this);
|
|
350
350
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
351
351
|
return suspendResult;
|
|
352
352
|
}
|
|
@@ -354,8 +354,8 @@ function writer$slambda() {
|
|
|
354
354
|
continue $sm;
|
|
355
355
|
case 11:
|
|
356
356
|
var tmp_13 = this;
|
|
357
|
-
this.
|
|
358
|
-
tmp_13.
|
|
357
|
+
this.x3o_1;
|
|
358
|
+
tmp_13.w3o_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
359
359
|
this.bc_1 = 14;
|
|
360
360
|
this.ac_1 = 13;
|
|
361
361
|
continue $sm;
|
|
@@ -365,7 +365,7 @@ function writer$slambda() {
|
|
|
365
365
|
if (tmp_14 instanceof Error) {
|
|
366
366
|
var e = this.dc_1;
|
|
367
367
|
var tmp_15 = this;
|
|
368
|
-
tmp_15.
|
|
368
|
+
tmp_15.w3o_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
369
369
|
this.ac_1 = 13;
|
|
370
370
|
continue $sm;
|
|
371
371
|
} else {
|
|
@@ -389,9 +389,9 @@ function writer$slambda() {
|
|
|
389
389
|
}
|
|
390
390
|
while (true);
|
|
391
391
|
}
|
|
392
|
-
|
|
393
|
-
var i = new (writer$slambda())(this.
|
|
394
|
-
i.
|
|
392
|
+
d36($this$launch, completion) {
|
|
393
|
+
var i = new (writer$slambda())(this.f3o_1, this.g3o_1, completion);
|
|
394
|
+
i.h3o_1 = $this$launch;
|
|
395
395
|
return i;
|
|
396
396
|
}
|
|
397
397
|
}
|
|
@@ -403,7 +403,7 @@ function writer$slambda() {
|
|
|
403
403
|
function writer$slambda_0($block, $channel, resultContinuation) {
|
|
404
404
|
var i = new (writer$slambda())($block, $channel, resultContinuation);
|
|
405
405
|
var l = function ($this$launch, $completion) {
|
|
406
|
-
return i.
|
|
406
|
+
return i.z37($this$launch, $completion);
|
|
407
407
|
};
|
|
408
408
|
l.$arity = 1;
|
|
409
409
|
return l;
|
|
@@ -411,8 +411,8 @@ function writer$slambda_0($block, $channel, resultContinuation) {
|
|
|
411
411
|
function writer$lambda($channel) {
|
|
412
412
|
return function (it) {
|
|
413
413
|
var tmp;
|
|
414
|
-
if (!(it == null) && !$channel.
|
|
415
|
-
$channel.
|
|
414
|
+
if (!(it == null) && !$channel.e3b()) {
|
|
415
|
+
$channel.l3b(it);
|
|
416
416
|
tmp = Unit_instance;
|
|
417
417
|
}
|
|
418
418
|
return Unit_instance;
|
|
@@ -424,8 +424,8 @@ function $writePacketCOROUTINE$() {
|
|
|
424
424
|
class $ extends CoroutineImpl() {
|
|
425
425
|
constructor(_this__u8e3s4, source, resultContinuation) {
|
|
426
426
|
super(resultContinuation);
|
|
427
|
-
this.
|
|
428
|
-
this.
|
|
427
|
+
this.t3n_1 = _this__u8e3s4;
|
|
428
|
+
this.u3n_1 = source;
|
|
429
429
|
}
|
|
430
430
|
ic() {
|
|
431
431
|
var suspendResult = this.cc_1;
|
|
@@ -438,14 +438,14 @@ function $writePacketCOROUTINE$() {
|
|
|
438
438
|
this.ac_1 = 1;
|
|
439
439
|
continue $sm;
|
|
440
440
|
case 1:
|
|
441
|
-
if (!!this.
|
|
441
|
+
if (!!this.u3n_1.o2r()) {
|
|
442
442
|
this.ac_1 = 3;
|
|
443
443
|
continue $sm;
|
|
444
444
|
}
|
|
445
445
|
|
|
446
|
-
this.
|
|
446
|
+
this.t3n_1.d3b().f2t(this.u3n_1, get_remaining(this.u3n_1));
|
|
447
447
|
this.ac_1 = 2;
|
|
448
|
-
suspendResult = flushIfNeeded(this.
|
|
448
|
+
suspendResult = flushIfNeeded(this.t3n_1, this);
|
|
449
449
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
450
450
|
return suspendResult;
|
|
451
451
|
}
|
|
@@ -19,7 +19,7 @@ function $flushAndCloseCOROUTINE$() {
|
|
|
19
19
|
class $ extends CoroutineImpl() {
|
|
20
20
|
constructor(_this__u8e3s4, resultContinuation) {
|
|
21
21
|
super(resultContinuation);
|
|
22
|
-
this.
|
|
22
|
+
this.i3p_1 = _this__u8e3s4;
|
|
23
23
|
}
|
|
24
24
|
ic() {
|
|
25
25
|
var suspendResult = this.cc_1;
|
|
@@ -30,7 +30,7 @@ function $flushAndCloseCOROUTINE$() {
|
|
|
30
30
|
case 0:
|
|
31
31
|
this.bc_1 = 3;
|
|
32
32
|
this.ac_1 = 1;
|
|
33
|
-
suspendResult = this.
|
|
33
|
+
suspendResult = this.i3p_1.j3p_1.k3b(this);
|
|
34
34
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
35
35
|
return suspendResult;
|
|
36
36
|
}
|
|
@@ -38,7 +38,7 @@ function $flushAndCloseCOROUTINE$() {
|
|
|
38
38
|
continue $sm;
|
|
39
39
|
case 1:
|
|
40
40
|
this.ac_1 = 2;
|
|
41
|
-
suspendResult = this.
|
|
41
|
+
suspendResult = this.i3p_1.k3p_1(this);
|
|
42
42
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
43
43
|
return suspendResult;
|
|
44
44
|
}
|
|
@@ -71,26 +71,26 @@ function CloseHookByteWriteChannel() {
|
|
|
71
71
|
if (CloseHookByteWriteChannelClass === VOID) {
|
|
72
72
|
class $ {
|
|
73
73
|
constructor(delegate, onClose) {
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
74
|
+
this.j3p_1 = delegate;
|
|
75
|
+
this.k3p_1 = onClose;
|
|
76
76
|
}
|
|
77
|
-
|
|
77
|
+
k3b($completion) {
|
|
78
78
|
var tmp = new ($flushAndCloseCOROUTINE$())(this, $completion);
|
|
79
79
|
tmp.cc_1 = Unit_instance;
|
|
80
80
|
tmp.dc_1 = null;
|
|
81
81
|
return tmp.ic();
|
|
82
82
|
}
|
|
83
|
-
|
|
84
|
-
return this.
|
|
83
|
+
f3b() {
|
|
84
|
+
return this.j3p_1.f3b();
|
|
85
85
|
}
|
|
86
|
-
|
|
87
|
-
return this.
|
|
86
|
+
d3b() {
|
|
87
|
+
return this.j3p_1.d3b();
|
|
88
88
|
}
|
|
89
|
-
|
|
90
|
-
return this.
|
|
89
|
+
z3a($completion) {
|
|
90
|
+
return this.j3p_1.z3a($completion);
|
|
91
91
|
}
|
|
92
|
-
|
|
93
|
-
this.
|
|
92
|
+
l3b(cause) {
|
|
93
|
+
this.j3p_1.l3b(cause);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
initMetadataForClass($, 'CloseHookByteWriteChannel', VOID, VOID, VOID, [0]);
|
|
@@ -15,7 +15,7 @@ function get_CLOSED() {
|
|
|
15
15
|
var CLOSED;
|
|
16
16
|
function ClosedByteChannelException$_init_$ref_yjp351() {
|
|
17
17
|
var l = function (p0) {
|
|
18
|
-
return ClosedByteChannelException().
|
|
18
|
+
return ClosedByteChannelException().o3p(p0);
|
|
19
19
|
};
|
|
20
20
|
l.callableName = '<init>';
|
|
21
21
|
return l;
|
|
@@ -25,27 +25,27 @@ function CloseToken() {
|
|
|
25
25
|
if (CloseTokenClass === VOID) {
|
|
26
26
|
class $ {
|
|
27
27
|
constructor(origin) {
|
|
28
|
-
this.
|
|
28
|
+
this.b3b_1 = origin;
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
var tmp0_subject = this.
|
|
30
|
+
p3p(wrap) {
|
|
31
|
+
var tmp0_subject = this.b3b_1;
|
|
32
32
|
var tmp;
|
|
33
33
|
if (tmp0_subject == null) {
|
|
34
34
|
tmp = null;
|
|
35
35
|
} else {
|
|
36
36
|
if (!(tmp0_subject == null) ? isInterface(tmp0_subject, CopyableThrowable()) : false) {
|
|
37
|
-
tmp = this.
|
|
37
|
+
tmp = this.b3b_1.o25();
|
|
38
38
|
} else {
|
|
39
39
|
if (tmp0_subject instanceof CancellationException()) {
|
|
40
|
-
tmp = CancellationException().dd(this.
|
|
40
|
+
tmp = CancellationException().dd(this.b3b_1.message, this.b3b_1);
|
|
41
41
|
} else {
|
|
42
|
-
tmp = wrap(this.
|
|
42
|
+
tmp = wrap(this.b3b_1);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
return tmp;
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
g3b(wrap, $super) {
|
|
49
49
|
var tmp;
|
|
50
50
|
if (wrap === VOID) {
|
|
51
51
|
tmp = ClosedByteChannelException$_init_$ref_yjp351();
|
|
@@ -53,10 +53,10 @@ function CloseToken() {
|
|
|
53
53
|
tmp = wrap;
|
|
54
54
|
}
|
|
55
55
|
wrap = tmp;
|
|
56
|
-
return $super === VOID ? this.
|
|
56
|
+
return $super === VOID ? this.p3p(wrap) : $super.p3p.call(this, wrap);
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
var tmp0_safe_receiver = this.
|
|
58
|
+
c3b(wrap) {
|
|
59
|
+
var tmp0_safe_receiver = this.p3p(wrap);
|
|
60
60
|
var tmp;
|
|
61
61
|
if (tmp0_safe_receiver == null) {
|
|
62
62
|
tmp = null;
|
|
@@ -20,12 +20,12 @@ import { protoOf180f3jzyo7rfj as protoOf } from '../../../../../kotlin-kotlin-st
|
|
|
20
20
|
//endregion
|
|
21
21
|
function transferFromDelegate($this) {
|
|
22
22
|
updateConsumed($this);
|
|
23
|
-
var appended = $this.
|
|
24
|
-
$this.
|
|
23
|
+
var appended = $this.r3p_1.k2t($this.q3p_1.a3b());
|
|
24
|
+
$this.s3p_1 = $this.s3p_1.p3(appended);
|
|
25
25
|
}
|
|
26
26
|
function updateConsumed($this) {
|
|
27
|
-
$this.
|
|
28
|
-
$this.
|
|
27
|
+
$this.t3p_1 = $this.t3p_1.p3($this.s3p_1.q3($this.r3p_1.i1()));
|
|
28
|
+
$this.s3p_1 = $this.r3p_1.i1();
|
|
29
29
|
}
|
|
30
30
|
var $awaitContentCOROUTINE$Class;
|
|
31
31
|
function $awaitContentCOROUTINE$() {
|
|
@@ -33,8 +33,8 @@ function $awaitContentCOROUTINE$() {
|
|
|
33
33
|
class $ extends CoroutineImpl() {
|
|
34
34
|
constructor(_this__u8e3s4, min, resultContinuation) {
|
|
35
35
|
super(resultContinuation);
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
36
|
+
this.c3q_1 = _this__u8e3s4;
|
|
37
|
+
this.d3q_1 = min;
|
|
38
38
|
}
|
|
39
39
|
ic() {
|
|
40
40
|
var suspendResult = this.cc_1;
|
|
@@ -44,12 +44,12 @@ function $awaitContentCOROUTINE$() {
|
|
|
44
44
|
switch (tmp) {
|
|
45
45
|
case 0:
|
|
46
46
|
this.bc_1 = 3;
|
|
47
|
-
if (this.
|
|
47
|
+
if (this.c3q_1.a3b().i1().a2(toLong(this.d3q_1)) >= 0) {
|
|
48
48
|
return true;
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
this.ac_1 = 1;
|
|
52
|
-
suspendResult = this.
|
|
52
|
+
suspendResult = this.c3q_1.q3p_1.i3b(this.d3q_1, this);
|
|
53
53
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
54
54
|
return suspendResult;
|
|
55
55
|
}
|
|
@@ -57,7 +57,7 @@ function $awaitContentCOROUTINE$() {
|
|
|
57
57
|
continue $sm;
|
|
58
58
|
case 1:
|
|
59
59
|
if (suspendResult) {
|
|
60
|
-
transferFromDelegate(this.
|
|
60
|
+
transferFromDelegate(this.c3q_1);
|
|
61
61
|
return true;
|
|
62
62
|
} else {
|
|
63
63
|
this.ac_1 = 2;
|
|
@@ -91,37 +91,37 @@ function CountedByteReadChannel() {
|
|
|
91
91
|
if (CountedByteReadChannelClass === VOID) {
|
|
92
92
|
class $ {
|
|
93
93
|
constructor(delegate) {
|
|
94
|
-
this.
|
|
95
|
-
this.
|
|
96
|
-
this.
|
|
97
|
-
this.
|
|
94
|
+
this.q3p_1 = delegate;
|
|
95
|
+
this.r3p_1 = new (Buffer())();
|
|
96
|
+
this.s3p_1 = new (Long())(0, 0);
|
|
97
|
+
this.t3p_1 = new (Long())(0, 0);
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
e3q() {
|
|
100
100
|
updateConsumed(this);
|
|
101
|
-
return this.
|
|
101
|
+
return this.t3p_1;
|
|
102
102
|
}
|
|
103
|
-
|
|
104
|
-
return this.
|
|
103
|
+
f3b() {
|
|
104
|
+
return this.q3p_1.f3b();
|
|
105
105
|
}
|
|
106
|
-
|
|
107
|
-
return this.
|
|
106
|
+
h3b() {
|
|
107
|
+
return this.r3p_1.o2r() && this.q3p_1.h3b();
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
a3b() {
|
|
110
110
|
transferFromDelegate(this);
|
|
111
|
-
return this.
|
|
111
|
+
return this.r3p_1;
|
|
112
112
|
}
|
|
113
|
-
|
|
113
|
+
i3b(min, $completion) {
|
|
114
114
|
var tmp = new ($awaitContentCOROUTINE$())(this, min, $completion);
|
|
115
115
|
tmp.cc_1 = Unit_instance;
|
|
116
116
|
tmp.dc_1 = null;
|
|
117
117
|
return tmp.ic();
|
|
118
118
|
}
|
|
119
|
-
|
|
120
|
-
this.
|
|
121
|
-
this.
|
|
119
|
+
l3b(cause) {
|
|
120
|
+
this.q3p_1.l3b(cause);
|
|
121
|
+
this.r3p_1.v5();
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
|
-
protoOf($).
|
|
124
|
+
protoOf($).j3b = awaitContent$default;
|
|
125
125
|
initMetadataForClass($, 'CountedByteReadChannel', VOID, VOID, [ByteReadChannel()], [1]);
|
|
126
126
|
CountedByteReadChannelClass = $;
|
|
127
127
|
}
|