@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
|
@@ -71,7 +71,7 @@ function Companion() {
|
|
|
71
71
|
}
|
|
72
72
|
var tmp$ret$0 = tmp_1;
|
|
73
73
|
var tmp$ret$1 = new (TypeInfo())(tmp_0, tmp$ret$0);
|
|
74
|
-
tmp.
|
|
74
|
+
tmp.x52_1 = new (AttributeKey())(name, tmp$ret$1);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
initMetadataForCompanion($);
|
|
@@ -91,8 +91,8 @@ function $bodyNullableCOROUTINE$() {
|
|
|
91
91
|
class $ extends CoroutineImpl() {
|
|
92
92
|
constructor(_this__u8e3s4, info, resultContinuation) {
|
|
93
93
|
super(resultContinuation);
|
|
94
|
-
this.
|
|
95
|
-
this.
|
|
94
|
+
this.g53_1 = _this__u8e3s4;
|
|
95
|
+
this.h53_1 = info;
|
|
96
96
|
}
|
|
97
97
|
ic() {
|
|
98
98
|
var suspendResult = this.cc_1;
|
|
@@ -103,35 +103,35 @@ function $bodyNullableCOROUTINE$() {
|
|
|
103
103
|
case 0:
|
|
104
104
|
this.bc_1 = 5;
|
|
105
105
|
this.bc_1 = 4;
|
|
106
|
-
if (instanceOf(this.
|
|
107
|
-
return this.
|
|
108
|
-
if (!this.
|
|
109
|
-
throw DoubleReceiveException().
|
|
106
|
+
if (instanceOf(this.g53_1.n4z(), this.h53_1.n3x_1))
|
|
107
|
+
return this.g53_1.n4z();
|
|
108
|
+
if (!this.g53_1.g52() && !get_isSaved(this.g53_1.n4z()) && !this.g53_1.j4z_1.atomicfu$compareAndSet(false, true)) {
|
|
109
|
+
throw DoubleReceiveException().r53(this.g53_1);
|
|
110
110
|
}
|
|
111
111
|
|
|
112
|
-
this.
|
|
113
|
-
if (this.
|
|
112
|
+
this.i53_1 = this.g53_1.f52().s3r(Companion_getInstance().x52_1);
|
|
113
|
+
if (this.i53_1 == null) {
|
|
114
114
|
this.ac_1 = 1;
|
|
115
|
-
suspendResult = this.
|
|
115
|
+
suspendResult = this.g53_1.h52(this);
|
|
116
116
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
117
117
|
return suspendResult;
|
|
118
118
|
}
|
|
119
119
|
continue $sm;
|
|
120
120
|
} else {
|
|
121
|
-
this.
|
|
121
|
+
this.j53_1 = this.i53_1;
|
|
122
122
|
this.ac_1 = 2;
|
|
123
123
|
continue $sm;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
case 1:
|
|
127
|
-
this.
|
|
127
|
+
this.j53_1 = suspendResult;
|
|
128
128
|
this.ac_1 = 2;
|
|
129
129
|
continue $sm;
|
|
130
130
|
case 2:
|
|
131
|
-
this.
|
|
132
|
-
this.
|
|
131
|
+
this.k53_1 = this.j53_1;
|
|
132
|
+
this.l53_1 = new (HttpResponseContainer())(this.h53_1, this.k53_1);
|
|
133
133
|
this.ac_1 = 3;
|
|
134
|
-
suspendResult = this.
|
|
134
|
+
suspendResult = this.g53_1.i4z_1.n4y_1.u3w(this.g53_1, this.l53_1, this);
|
|
135
135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
136
136
|
return suspendResult;
|
|
137
137
|
}
|
|
@@ -139,7 +139,7 @@ function $bodyNullableCOROUTINE$() {
|
|
|
139
139
|
continue $sm;
|
|
140
140
|
case 3:
|
|
141
141
|
var ARGUMENT = suspendResult;
|
|
142
|
-
var this_0 = ARGUMENT.
|
|
142
|
+
var this_0 = ARGUMENT.t53_1;
|
|
143
143
|
var tmp_0;
|
|
144
144
|
if (!equals(this_0, NullBody_instance)) {
|
|
145
145
|
tmp_0 = this_0;
|
|
@@ -148,10 +148,10 @@ function $bodyNullableCOROUTINE$() {
|
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
var result = tmp_0;
|
|
151
|
-
if (!(result == null) && !instanceOf(result, this.
|
|
151
|
+
if (!(result == null) && !instanceOf(result, this.h53_1.n3x_1)) {
|
|
152
152
|
var from = getKClassFromExpression(result);
|
|
153
|
-
var to = this.
|
|
154
|
-
throw NoTransformationFoundException().
|
|
153
|
+
var to = this.h53_1.n3x_1;
|
|
154
|
+
throw NoTransformationFoundException().z53(this.g53_1.n4z(), from, to);
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
return result;
|
|
@@ -160,7 +160,7 @@ function $bodyNullableCOROUTINE$() {
|
|
|
160
160
|
var tmp_1 = this.dc_1;
|
|
161
161
|
if (tmp_1 instanceof Error) {
|
|
162
162
|
var cause = this.dc_1;
|
|
163
|
-
cancel(this.
|
|
163
|
+
cancel(this.g53_1.n4z(), 'Receive failed', cause);
|
|
164
164
|
throw cause;
|
|
165
165
|
} else {
|
|
166
166
|
throw this.dc_1;
|
|
@@ -190,65 +190,65 @@ var HttpClientCallClass;
|
|
|
190
190
|
function HttpClientCall() {
|
|
191
191
|
if (HttpClientCallClass === VOID) {
|
|
192
192
|
class $ {
|
|
193
|
-
static
|
|
193
|
+
static d52(client) {
|
|
194
194
|
Companion_getInstance();
|
|
195
195
|
var $this = createThis(this);
|
|
196
|
-
$this.
|
|
197
|
-
$this.
|
|
198
|
-
$this.
|
|
196
|
+
$this.i4z_1 = client;
|
|
197
|
+
$this.j4z_1 = atomic$boolean$1(false);
|
|
198
|
+
$this.m4z_1 = false;
|
|
199
199
|
return $this;
|
|
200
200
|
}
|
|
201
201
|
s1x() {
|
|
202
|
-
return this.
|
|
202
|
+
return this.n4z().s1x();
|
|
203
203
|
}
|
|
204
|
-
|
|
205
|
-
return this.
|
|
204
|
+
f52() {
|
|
205
|
+
return this.e52().f52();
|
|
206
206
|
}
|
|
207
|
-
|
|
208
|
-
var tmp = this.
|
|
207
|
+
e52() {
|
|
208
|
+
var tmp = this.k4z_1;
|
|
209
209
|
if (!(tmp == null))
|
|
210
210
|
return tmp;
|
|
211
211
|
else {
|
|
212
212
|
throwUninitializedPropertyAccessException('request');
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
|
|
216
|
-
var tmp = this.
|
|
215
|
+
n4z() {
|
|
216
|
+
var tmp = this.l4z_1;
|
|
217
217
|
if (!(tmp == null))
|
|
218
218
|
return tmp;
|
|
219
219
|
else {
|
|
220
220
|
throwUninitializedPropertyAccessException('response');
|
|
221
221
|
}
|
|
222
222
|
}
|
|
223
|
-
static
|
|
223
|
+
static a54(client, requestData, responseData) {
|
|
224
224
|
Companion_getInstance();
|
|
225
|
-
var $this = this.
|
|
226
|
-
$this.
|
|
227
|
-
$this.
|
|
228
|
-
$this.
|
|
229
|
-
var tmp = responseData.
|
|
225
|
+
var $this = this.d52(client);
|
|
226
|
+
$this.k4z_1 = new (DefaultHttpRequest())($this, requestData);
|
|
227
|
+
$this.l4z_1 = new (DefaultHttpResponse())($this, responseData);
|
|
228
|
+
$this.f52().v3r(Companion_getInstance().x52_1);
|
|
229
|
+
var tmp = responseData.f54_1;
|
|
230
230
|
if (!isInterface(tmp, ByteReadChannel())) {
|
|
231
|
-
$this.
|
|
231
|
+
$this.f52().u3r(Companion_getInstance().x52_1, responseData.f54_1);
|
|
232
232
|
}
|
|
233
233
|
return $this;
|
|
234
234
|
}
|
|
235
|
-
|
|
236
|
-
return this.
|
|
235
|
+
g52() {
|
|
236
|
+
return this.m4z_1;
|
|
237
237
|
}
|
|
238
|
-
|
|
239
|
-
return this.
|
|
238
|
+
h52($completion) {
|
|
239
|
+
return this.n4z().t52();
|
|
240
240
|
}
|
|
241
|
-
|
|
241
|
+
i52(info, $completion) {
|
|
242
242
|
var tmp = new ($bodyNullableCOROUTINE$())(this, info, $completion);
|
|
243
243
|
tmp.cc_1 = Unit_instance;
|
|
244
244
|
tmp.dc_1 = null;
|
|
245
245
|
return tmp.ic();
|
|
246
246
|
}
|
|
247
247
|
toString() {
|
|
248
|
-
return 'HttpClientCall[' + this.
|
|
248
|
+
return 'HttpClientCall[' + this.e52().n52().toString() + ', ' + this.n4z().u52().toString() + ']';
|
|
249
249
|
}
|
|
250
|
-
|
|
251
|
-
this.
|
|
250
|
+
o4z(response) {
|
|
251
|
+
this.l4z_1 = response;
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
initMetadataForClass($, 'HttpClientCall', VOID, VOID, [CoroutineScope()], [0, 1]);
|
|
@@ -260,15 +260,15 @@ var DoubleReceiveExceptionClass;
|
|
|
260
260
|
function DoubleReceiveException() {
|
|
261
261
|
if (DoubleReceiveExceptionClass === VOID) {
|
|
262
262
|
class $ extends IllegalStateException() {
|
|
263
|
-
static
|
|
263
|
+
static r53(call) {
|
|
264
264
|
var $this = this.bd();
|
|
265
|
-
captureStack($this, $this.
|
|
266
|
-
$this.
|
|
265
|
+
captureStack($this, $this.q53_1);
|
|
266
|
+
$this.p53_1 = 'Response already received: ' + call.toString();
|
|
267
267
|
delete $this.message;
|
|
268
268
|
return $this;
|
|
269
269
|
}
|
|
270
270
|
fd() {
|
|
271
|
-
return this.
|
|
271
|
+
return this.p53_1;
|
|
272
272
|
}
|
|
273
273
|
get message() {
|
|
274
274
|
return this.fd();
|
|
@@ -283,15 +283,15 @@ var NoTransformationFoundExceptionClass;
|
|
|
283
283
|
function NoTransformationFoundException() {
|
|
284
284
|
if (NoTransformationFoundExceptionClass === VOID) {
|
|
285
285
|
class $ extends UnsupportedOperationException() {
|
|
286
|
-
static
|
|
286
|
+
static z53(response, from, to) {
|
|
287
287
|
var $this = this.w7();
|
|
288
|
-
captureStack($this, $this.
|
|
289
|
-
$this.
|
|
288
|
+
captureStack($this, $this.y53_1);
|
|
289
|
+
$this.x53_1 = trimIndent("\n Expected response body of the type '" + toString(to) + "' but was '" + toString(from) + "'\n In response from `" + get_request(response).n52().toString() + '`\n Response status `' + response.u52().toString() + '`\n Response header `ContentType: ' + response.z45().c3s(HttpHeaders_getInstance().y41_1) + '` \n Request header `Accept: ' + get_request(response).z45().c3s(HttpHeaders_getInstance().g41_1) + '`\n \n You can read how to resolve NoTransformationFoundException at FAQ: \n https://ktor.io/docs/faq.html#no-transformation-found-exception\n ');
|
|
290
290
|
delete $this.message;
|
|
291
291
|
return $this;
|
|
292
292
|
}
|
|
293
293
|
fd() {
|
|
294
|
-
return this.
|
|
294
|
+
return this.x53_1;
|
|
295
295
|
}
|
|
296
296
|
get message() {
|
|
297
297
|
return this.fd();
|
|
@@ -29,20 +29,20 @@ var SavedHttpCallClass;
|
|
|
29
29
|
function SavedHttpCall() {
|
|
30
30
|
if (SavedHttpCallClass === VOID) {
|
|
31
31
|
class $ extends HttpClientCall() {
|
|
32
|
-
static
|
|
33
|
-
var $this = this.
|
|
34
|
-
$this.
|
|
35
|
-
$this.
|
|
36
|
-
$this.
|
|
37
|
-
checkContentLength(contentLength(response), toLong($this.
|
|
38
|
-
$this.
|
|
32
|
+
static y54(client, request, response, responseBody) {
|
|
33
|
+
var $this = this.d52(client);
|
|
34
|
+
$this.w54_1 = responseBody;
|
|
35
|
+
$this.k4z_1 = new (SavedHttpRequest())($this, request);
|
|
36
|
+
$this.l4z_1 = new (SavedHttpResponse())($this, $this.w54_1, response);
|
|
37
|
+
checkContentLength(contentLength(response), toLong($this.w54_1.length), request.m52());
|
|
38
|
+
$this.x54_1 = true;
|
|
39
39
|
return $this;
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
return ByteReadChannel(this.
|
|
41
|
+
h52($completion) {
|
|
42
|
+
return ByteReadChannel(this.w54_1);
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
return this.
|
|
44
|
+
g52() {
|
|
45
|
+
return this.x54_1;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
initMetadataForClass($, 'SavedHttpCall', VOID, VOID, VOID, [0, 1]);
|
|
@@ -55,26 +55,26 @@ function SavedHttpRequest() {
|
|
|
55
55
|
if (SavedHttpRequestClass === VOID) {
|
|
56
56
|
class $ {
|
|
57
57
|
constructor(call, origin) {
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
58
|
+
this.z54_1 = origin;
|
|
59
|
+
this.a55_1 = call;
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
return this.
|
|
61
|
+
l52() {
|
|
62
|
+
return this.a55_1;
|
|
63
63
|
}
|
|
64
64
|
s1x() {
|
|
65
|
-
return this.
|
|
65
|
+
return this.z54_1.s1x();
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
return this.
|
|
67
|
+
m52() {
|
|
68
|
+
return this.z54_1.m52();
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
return this.
|
|
70
|
+
n52() {
|
|
71
|
+
return this.z54_1.n52();
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
return this.
|
|
73
|
+
f52() {
|
|
74
|
+
return this.z54_1.f52();
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
return this.
|
|
76
|
+
z45() {
|
|
77
|
+
return this.z54_1.z45();
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
initMetadataForClass($, 'SavedHttpRequest', VOID, VOID, [HttpRequest()]);
|
|
@@ -88,38 +88,38 @@ function SavedHttpResponse() {
|
|
|
88
88
|
class $ extends HttpResponse() {
|
|
89
89
|
constructor(call, body, origin) {
|
|
90
90
|
super();
|
|
91
|
-
this.
|
|
92
|
-
this.
|
|
93
|
-
this.
|
|
94
|
-
this.
|
|
95
|
-
this.
|
|
96
|
-
this.
|
|
97
|
-
this.
|
|
98
|
-
this.
|
|
99
|
-
}
|
|
100
|
-
x51() {
|
|
101
|
-
return this.n54_1;
|
|
91
|
+
this.b55_1 = call;
|
|
92
|
+
this.c55_1 = body;
|
|
93
|
+
this.d55_1 = origin.u52();
|
|
94
|
+
this.e55_1 = origin.g2w();
|
|
95
|
+
this.f55_1 = origin.v52();
|
|
96
|
+
this.g55_1 = origin.w52();
|
|
97
|
+
this.h55_1 = origin.z45();
|
|
98
|
+
this.i55_1 = origin.s1x();
|
|
102
99
|
}
|
|
103
|
-
|
|
104
|
-
return this.
|
|
100
|
+
l52() {
|
|
101
|
+
return this.b55_1;
|
|
105
102
|
}
|
|
106
|
-
|
|
107
|
-
return this.
|
|
103
|
+
u52() {
|
|
104
|
+
return this.d55_1;
|
|
108
105
|
}
|
|
109
|
-
|
|
110
|
-
return this.
|
|
106
|
+
g2w() {
|
|
107
|
+
return this.e55_1;
|
|
111
108
|
}
|
|
112
|
-
|
|
113
|
-
return this.
|
|
109
|
+
v52() {
|
|
110
|
+
return this.f55_1;
|
|
114
111
|
}
|
|
115
|
-
|
|
116
|
-
return this.
|
|
112
|
+
w52() {
|
|
113
|
+
return this.g55_1;
|
|
114
|
+
}
|
|
115
|
+
z45() {
|
|
116
|
+
return this.h55_1;
|
|
117
117
|
}
|
|
118
118
|
s1x() {
|
|
119
|
-
return this.
|
|
119
|
+
return this.i55_1;
|
|
120
120
|
}
|
|
121
|
-
|
|
122
|
-
return ByteReadChannel(this.
|
|
121
|
+
t52() {
|
|
122
|
+
return ByteReadChannel(this.c55_1);
|
|
123
123
|
}
|
|
124
124
|
}
|
|
125
125
|
initMetadataForClass($, 'SavedHttpResponse');
|
|
@@ -133,7 +133,7 @@ function $saveCOROUTINE$() {
|
|
|
133
133
|
class $ extends CoroutineImpl() {
|
|
134
134
|
constructor(_this__u8e3s4, resultContinuation) {
|
|
135
135
|
super(resultContinuation);
|
|
136
|
-
this.
|
|
136
|
+
this.q54_1 = _this__u8e3s4;
|
|
137
137
|
}
|
|
138
138
|
ic() {
|
|
139
139
|
var suspendResult = this.cc_1;
|
|
@@ -144,7 +144,7 @@ function $saveCOROUTINE$() {
|
|
|
144
144
|
case 0:
|
|
145
145
|
this.bc_1 = 2;
|
|
146
146
|
this.ac_1 = 1;
|
|
147
|
-
suspendResult = readRemaining(this.
|
|
147
|
+
suspendResult = readRemaining(this.q54_1.n4z().t52(), this);
|
|
148
148
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
149
149
|
return suspendResult;
|
|
150
150
|
}
|
|
@@ -153,7 +153,7 @@ function $saveCOROUTINE$() {
|
|
|
153
153
|
case 1:
|
|
154
154
|
var ARGUMENT = suspendResult;
|
|
155
155
|
var responseBody = readByteArray(ARGUMENT);
|
|
156
|
-
return SavedHttpCall().
|
|
156
|
+
return SavedHttpCall().y54(this.q54_1.i4z_1, this.q54_1.e52(), this.q54_1.n4z(), responseBody);
|
|
157
157
|
case 2:
|
|
158
158
|
throw this.dc_1;
|
|
159
159
|
}
|
|
@@ -19,9 +19,9 @@ var UnsupportedContentTypeExceptionClass;
|
|
|
19
19
|
function UnsupportedContentTypeException() {
|
|
20
20
|
if (UnsupportedContentTypeExceptionClass === VOID) {
|
|
21
21
|
class $ extends IllegalStateException() {
|
|
22
|
-
static
|
|
22
|
+
static n55(content) {
|
|
23
23
|
var $this = this.o4('Failed to write body: ' + toString(getKClassFromExpression(content)));
|
|
24
|
-
captureStack($this, $this.
|
|
24
|
+
captureStack($this, $this.m55_1);
|
|
25
25
|
return $this;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -31,7 +31,7 @@ function UnsupportedContentTypeException() {
|
|
|
31
31
|
return UnsupportedContentTypeExceptionClass;
|
|
32
32
|
}
|
|
33
33
|
function checkContentLength(contentLength, bodySize, method) {
|
|
34
|
-
if (contentLength == null || contentLength.a2(new (Long())(0, 0)) < 0 || method.equals(Companion_getInstance().
|
|
34
|
+
if (contentLength == null || contentLength.a2(new (Long())(0, 0)) < 0 || method.equals(Companion_getInstance().f46_1))
|
|
35
35
|
return Unit_instance;
|
|
36
36
|
if (!equals(contentLength, bodySize)) {
|
|
37
37
|
throw IllegalStateException().o4('Content-Length mismatch: expected ' + toString_0(contentLength) + ' bytes, but received ' + bodySize.toString() + ' bytes');
|
|
@@ -44,23 +44,23 @@ function ProgressListener() {
|
|
|
44
44
|
function getContent($this, delegate) {
|
|
45
45
|
var tmp;
|
|
46
46
|
if (delegate instanceof ContentWrapper()) {
|
|
47
|
-
tmp = getContent($this, delegate.
|
|
47
|
+
tmp = getContent($this, delegate.d4c());
|
|
48
48
|
} else {
|
|
49
49
|
if (delegate instanceof ByteArrayContent()) {
|
|
50
|
-
tmp = ByteReadChannel(delegate.
|
|
50
|
+
tmp = ByteReadChannel(delegate.u4b());
|
|
51
51
|
} else {
|
|
52
52
|
if (delegate instanceof ProtocolUpgrade()) {
|
|
53
|
-
throw UnsupportedContentTypeException().
|
|
53
|
+
throw UnsupportedContentTypeException().n55(delegate);
|
|
54
54
|
} else {
|
|
55
55
|
if (delegate instanceof NoContent()) {
|
|
56
|
-
tmp = Companion_getInstance().
|
|
56
|
+
tmp = Companion_getInstance().h3d_1;
|
|
57
57
|
} else {
|
|
58
58
|
if (delegate instanceof ReadChannelContent()) {
|
|
59
|
-
tmp = delegate.
|
|
59
|
+
tmp = delegate.x4b();
|
|
60
60
|
} else {
|
|
61
61
|
if (delegate instanceof WriteChannelContent()) {
|
|
62
62
|
var tmp_0 = GlobalScope_instance;
|
|
63
|
-
tmp = writer(tmp_0, $this.
|
|
63
|
+
tmp = writer(tmp_0, $this.r55_1, true, ObservableContent$getContent$slambda_0(delegate, null)).h3n_1;
|
|
64
64
|
} else {
|
|
65
65
|
noWhenBranchMatchedException();
|
|
66
66
|
}
|
|
@@ -78,17 +78,17 @@ function ObservableContent$getContent$slambda() {
|
|
|
78
78
|
constructor($delegate, resultContinuation, $box) {
|
|
79
79
|
if ($box === VOID)
|
|
80
80
|
$box = {};
|
|
81
|
-
$box.
|
|
81
|
+
$box.c56_1 = $delegate;
|
|
82
82
|
super(resultContinuation, $box);
|
|
83
83
|
}
|
|
84
|
-
|
|
85
|
-
var tmp = this.
|
|
84
|
+
z4l($this$writer, $completion) {
|
|
85
|
+
var tmp = this.a4m($this$writer, $completion);
|
|
86
86
|
tmp.cc_1 = Unit_instance;
|
|
87
87
|
tmp.dc_1 = null;
|
|
88
88
|
return tmp.ic();
|
|
89
89
|
}
|
|
90
90
|
kd(p1, $completion) {
|
|
91
|
-
return this.
|
|
91
|
+
return this.z4l(p1 instanceof WriterScope() ? p1 : THROW_CCE(), $completion);
|
|
92
92
|
}
|
|
93
93
|
ic() {
|
|
94
94
|
var suspendResult = this.cc_1;
|
|
@@ -99,7 +99,7 @@ function ObservableContent$getContent$slambda() {
|
|
|
99
99
|
case 0:
|
|
100
100
|
this.bc_1 = 2;
|
|
101
101
|
this.ac_1 = 1;
|
|
102
|
-
suspendResult = this.
|
|
102
|
+
suspendResult = this.c56_1.z4b(this.d56_1.j3n_1, this);
|
|
103
103
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
104
104
|
return suspendResult;
|
|
105
105
|
}
|
|
@@ -121,9 +121,9 @@ function ObservableContent$getContent$slambda() {
|
|
|
121
121
|
}
|
|
122
122
|
while (true);
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
var i = new (ObservableContent$getContent$slambda())(this.
|
|
126
|
-
i.
|
|
124
|
+
a4m($this$writer, completion) {
|
|
125
|
+
var i = new (ObservableContent$getContent$slambda())(this.c56_1, completion);
|
|
126
|
+
i.d56_1 = $this$writer;
|
|
127
127
|
return i;
|
|
128
128
|
}
|
|
129
129
|
}
|
|
@@ -135,7 +135,7 @@ function ObservableContent$getContent$slambda() {
|
|
|
135
135
|
function ObservableContent$getContent$slambda_0($delegate, resultContinuation) {
|
|
136
136
|
var i = new (ObservableContent$getContent$slambda())($delegate, resultContinuation);
|
|
137
137
|
var l = function ($this$writer, $completion) {
|
|
138
|
-
return i.
|
|
138
|
+
return i.z4l($this$writer, $completion);
|
|
139
139
|
};
|
|
140
140
|
l.$arity = 1;
|
|
141
141
|
return l;
|
|
@@ -146,22 +146,22 @@ function ObservableContent() {
|
|
|
146
146
|
class $ extends ReadChannelContent() {
|
|
147
147
|
constructor(delegate, callContext, listener) {
|
|
148
148
|
super();
|
|
149
|
-
this.
|
|
150
|
-
this.
|
|
151
|
-
this.
|
|
152
|
-
this.
|
|
149
|
+
this.q55_1 = delegate;
|
|
150
|
+
this.r55_1 = callContext;
|
|
151
|
+
this.s55_1 = listener;
|
|
152
|
+
this.t55_1 = getContent(this, this.q55_1);
|
|
153
153
|
}
|
|
154
|
-
|
|
155
|
-
return this.
|
|
154
|
+
s4b() {
|
|
155
|
+
return this.q55_1.s4b();
|
|
156
156
|
}
|
|
157
|
-
|
|
158
|
-
return this.
|
|
157
|
+
t4b() {
|
|
158
|
+
return this.q55_1.t4b();
|
|
159
159
|
}
|
|
160
|
-
|
|
161
|
-
return this.
|
|
160
|
+
z45() {
|
|
161
|
+
return this.q55_1.z45();
|
|
162
162
|
}
|
|
163
|
-
|
|
164
|
-
return observable(this.
|
|
163
|
+
x4b() {
|
|
164
|
+
return observable(this.t55_1, this.r55_1, this.t4b(), this.s55_1);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
initMetadataForClass($, 'ObservableContent');
|