@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
|
@@ -15,27 +15,27 @@ function ClientPluginInstance() {
|
|
|
15
15
|
if (ClientPluginInstanceClass === VOID) {
|
|
16
16
|
class $ {
|
|
17
17
|
constructor(key, config, body) {
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
18
|
+
this.r5t_1 = key;
|
|
19
|
+
this.s5t_1 = config;
|
|
20
|
+
this.t5t_1 = body;
|
|
21
21
|
var tmp = this;
|
|
22
|
-
tmp.
|
|
22
|
+
tmp.u5t_1 = ClientPluginInstance$onClose$lambda;
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
var tmp0 = new (ClientPluginBuilder())(this.
|
|
24
|
+
v50(scope) {
|
|
25
|
+
var tmp0 = new (ClientPluginBuilder())(this.r5t_1, scope, this.s5t_1);
|
|
26
26
|
// Inline function 'kotlin.apply' call
|
|
27
|
-
this.
|
|
27
|
+
this.t5t_1(tmp0);
|
|
28
28
|
var pluginBuilder = tmp0;
|
|
29
|
-
this.
|
|
29
|
+
this.u5t_1 = pluginBuilder.k5a_1;
|
|
30
30
|
// Inline function 'kotlin.collections.forEach' call
|
|
31
|
-
var _iterator__ex2g4s = pluginBuilder.
|
|
31
|
+
var _iterator__ex2g4s = pluginBuilder.j5a_1.d1();
|
|
32
32
|
while (_iterator__ex2g4s.e1()) {
|
|
33
33
|
var element = _iterator__ex2g4s.f1();
|
|
34
|
-
element.
|
|
34
|
+
element.v50(scope);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
v5() {
|
|
38
|
-
this.
|
|
38
|
+
this.u5t_1();
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
initMetadataForClass($, 'ClientPluginInstance', VOID, VOID, [AutoCloseable()]);
|
|
@@ -32,18 +32,18 @@ function SetupRequest$install$slambda() {
|
|
|
32
32
|
constructor($handler, resultContinuation, $box) {
|
|
33
33
|
if ($box === VOID)
|
|
34
34
|
$box = {};
|
|
35
|
-
$box.
|
|
35
|
+
$box.d5u_1 = $handler;
|
|
36
36
|
super(resultContinuation, $box);
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
var tmp = this.
|
|
38
|
+
g4z($this$intercept, it, $completion) {
|
|
39
|
+
var tmp = this.h4z($this$intercept, it, $completion);
|
|
40
40
|
tmp.cc_1 = Unit_instance;
|
|
41
41
|
tmp.dc_1 = null;
|
|
42
42
|
return tmp.ic();
|
|
43
43
|
}
|
|
44
44
|
ld(p1, p2, $completion) {
|
|
45
45
|
var tmp = p1 instanceof PipelineContext() ? p1 : THROW_CCE();
|
|
46
|
-
return this.
|
|
46
|
+
return this.g4z(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
47
47
|
}
|
|
48
48
|
ic() {
|
|
49
49
|
var suspendResult = this.cc_1;
|
|
@@ -54,7 +54,7 @@ function SetupRequest$install$slambda() {
|
|
|
54
54
|
case 0:
|
|
55
55
|
this.bc_1 = 2;
|
|
56
56
|
this.ac_1 = 1;
|
|
57
|
-
suspendResult = this.
|
|
57
|
+
suspendResult = this.d5u_1(this.e5u_1.v3w_1, this);
|
|
58
58
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
59
59
|
return suspendResult;
|
|
60
60
|
}
|
|
@@ -76,10 +76,10 @@ function SetupRequest$install$slambda() {
|
|
|
76
76
|
}
|
|
77
77
|
while (true);
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
var i = new (SetupRequest$install$slambda())(this.
|
|
81
|
-
i.
|
|
82
|
-
i.
|
|
79
|
+
h4z($this$intercept, it, completion) {
|
|
80
|
+
var i = new (SetupRequest$install$slambda())(this.d5u_1, completion);
|
|
81
|
+
i.e5u_1 = $this$intercept;
|
|
82
|
+
i.f5u_1 = it;
|
|
83
83
|
return i;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
@@ -91,7 +91,7 @@ function SetupRequest$install$slambda() {
|
|
|
91
91
|
function SetupRequest$install$slambda_0($handler, resultContinuation) {
|
|
92
92
|
var i = new (SetupRequest$install$slambda())($handler, resultContinuation);
|
|
93
93
|
var l = function ($this$intercept, it, $completion) {
|
|
94
|
-
return i.
|
|
94
|
+
return i.g4z($this$intercept, it, $completion);
|
|
95
95
|
};
|
|
96
96
|
l.$arity = 2;
|
|
97
97
|
return l;
|
|
@@ -100,12 +100,12 @@ var SetupRequestClass;
|
|
|
100
100
|
function SetupRequest() {
|
|
101
101
|
if (SetupRequestClass === VOID) {
|
|
102
102
|
class $ {
|
|
103
|
-
|
|
104
|
-
var tmp = Phases_getInstance().
|
|
105
|
-
client.
|
|
103
|
+
g5u(client, handler) {
|
|
104
|
+
var tmp = Phases_getInstance().i59_1;
|
|
105
|
+
client.m4y_1.z3w(tmp, SetupRequest$install$slambda_0(handler, null));
|
|
106
106
|
}
|
|
107
|
-
|
|
108
|
-
return this.
|
|
107
|
+
n59(client, handler) {
|
|
108
|
+
return this.g5u(client, (!(handler == null) ? isSuspendFunction(handler, 1) : false) ? handler : THROW_CCE());
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
initMetadataForObject($, 'SetupRequest');
|
|
@@ -122,14 +122,14 @@ function Sender_0() {
|
|
|
122
122
|
if (SenderClass === VOID) {
|
|
123
123
|
class $ {
|
|
124
124
|
constructor(httpSendSender, coroutineContext) {
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
125
|
+
this.c5j_1 = httpSendSender;
|
|
126
|
+
this.d5j_1 = coroutineContext;
|
|
127
127
|
}
|
|
128
128
|
s1x() {
|
|
129
|
-
return this.
|
|
129
|
+
return this.d5j_1;
|
|
130
130
|
}
|
|
131
|
-
|
|
132
|
-
return this.
|
|
131
|
+
e5j(requestBuilder, $completion) {
|
|
132
|
+
return this.c5j_1.d5p(requestBuilder, $completion);
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
initMetadataForClass($, 'Sender', VOID, VOID, [CoroutineScope()], [1]);
|
|
@@ -144,19 +144,19 @@ function Send$install$slambda() {
|
|
|
144
144
|
constructor($handler, $client, resultContinuation, $box) {
|
|
145
145
|
if ($box === VOID)
|
|
146
146
|
$box = {};
|
|
147
|
-
$box.
|
|
148
|
-
$box.
|
|
147
|
+
$box.p5u_1 = $handler;
|
|
148
|
+
$box.q5u_1 = $client;
|
|
149
149
|
super(resultContinuation, $box);
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
var tmp = this.
|
|
151
|
+
t5u($this$intercept, request, $completion) {
|
|
152
|
+
var tmp = this.u5u($this$intercept, request, $completion);
|
|
153
153
|
tmp.cc_1 = Unit_instance;
|
|
154
154
|
tmp.dc_1 = null;
|
|
155
155
|
return tmp.ic();
|
|
156
156
|
}
|
|
157
157
|
ld(p1, p2, $completion) {
|
|
158
158
|
var tmp = (!(p1 == null) ? isInterface(p1, Sender()) : false) ? p1 : THROW_CCE();
|
|
159
|
-
return this.
|
|
159
|
+
return this.t5u(tmp, p2 instanceof HttpRequestBuilder() ? p2 : THROW_CCE(), $completion);
|
|
160
160
|
}
|
|
161
161
|
ic() {
|
|
162
162
|
var suspendResult = this.cc_1;
|
|
@@ -167,7 +167,7 @@ function Send$install$slambda() {
|
|
|
167
167
|
case 0:
|
|
168
168
|
this.bc_1 = 2;
|
|
169
169
|
this.ac_1 = 1;
|
|
170
|
-
suspendResult = this.
|
|
170
|
+
suspendResult = this.p5u_1(new (Sender_0())(this.r5u_1, this.q5u_1.l4y_1), this.s5u_1, this);
|
|
171
171
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
172
172
|
return suspendResult;
|
|
173
173
|
}
|
|
@@ -189,10 +189,10 @@ function Send$install$slambda() {
|
|
|
189
189
|
}
|
|
190
190
|
while (true);
|
|
191
191
|
}
|
|
192
|
-
|
|
193
|
-
var i = new (Send$install$slambda())(this.
|
|
194
|
-
i.
|
|
195
|
-
i.
|
|
192
|
+
u5u($this$intercept, request, completion) {
|
|
193
|
+
var i = new (Send$install$slambda())(this.p5u_1, this.q5u_1, completion);
|
|
194
|
+
i.r5u_1 = $this$intercept;
|
|
195
|
+
i.s5u_1 = request;
|
|
196
196
|
return i;
|
|
197
197
|
}
|
|
198
198
|
}
|
|
@@ -204,7 +204,7 @@ function Send$install$slambda() {
|
|
|
204
204
|
function Send$install$slambda_0($handler, $client, resultContinuation) {
|
|
205
205
|
var i = new (Send$install$slambda())($handler, $client, resultContinuation);
|
|
206
206
|
var l = function ($this$intercept, request, $completion) {
|
|
207
|
-
return i.
|
|
207
|
+
return i.t5u($this$intercept, request, $completion);
|
|
208
208
|
};
|
|
209
209
|
l.$arity = 2;
|
|
210
210
|
return l;
|
|
@@ -213,12 +213,12 @@ var SendClass;
|
|
|
213
213
|
function Send() {
|
|
214
214
|
if (SendClass === VOID) {
|
|
215
215
|
class $ {
|
|
216
|
-
|
|
216
|
+
v5u(client, handler) {
|
|
217
217
|
var tmp = plugin(client, Plugin_getInstance());
|
|
218
|
-
tmp.
|
|
218
|
+
tmp.u5q(Send$install$slambda_0(handler, client, null));
|
|
219
219
|
}
|
|
220
|
-
|
|
221
|
-
return this.
|
|
220
|
+
n59(client, handler) {
|
|
221
|
+
return this.v5u(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
initMetadataForObject($, 'Send');
|
|
@@ -28,8 +28,8 @@ function ClientPluginImpl() {
|
|
|
28
28
|
if (ClientPluginImplClass === VOID) {
|
|
29
29
|
class $ {
|
|
30
30
|
constructor(name, createConfiguration, body) {
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
31
|
+
this.w5u_1 = createConfiguration;
|
|
32
|
+
this.x5u_1 = body;
|
|
33
33
|
var tmp = this;
|
|
34
34
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
35
35
|
// Inline function 'io.ktor.util.reflect.typeInfo' call
|
|
@@ -50,26 +50,26 @@ function ClientPluginImpl() {
|
|
|
50
50
|
}
|
|
51
51
|
var tmp$ret$0 = tmp_1;
|
|
52
52
|
var tmp$ret$1 = new (TypeInfo())(tmp_0, tmp$ret$0);
|
|
53
|
-
tmp.
|
|
53
|
+
tmp.y5u_1 = new (AttributeKey())(name, tmp$ret$1);
|
|
54
54
|
}
|
|
55
55
|
r1() {
|
|
56
|
-
return this.
|
|
56
|
+
return this.y5u_1;
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
z5u(block) {
|
|
59
59
|
// Inline function 'kotlin.apply' call
|
|
60
|
-
var this_0 = this.
|
|
60
|
+
var this_0 = this.w5u_1();
|
|
61
61
|
block(this_0);
|
|
62
62
|
var config = this_0;
|
|
63
|
-
return new (ClientPluginInstance())(this.
|
|
63
|
+
return new (ClientPluginInstance())(this.y5u_1, config, this.x5u_1);
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
return this.
|
|
65
|
+
u51(block) {
|
|
66
|
+
return this.z5u(block);
|
|
67
67
|
}
|
|
68
|
-
|
|
69
|
-
plugin.
|
|
68
|
+
a5v(plugin, scope) {
|
|
69
|
+
plugin.v50(scope);
|
|
70
70
|
}
|
|
71
|
-
|
|
72
|
-
return this.
|
|
71
|
+
v51(plugin, scope) {
|
|
72
|
+
return this.a5v(plugin instanceof ClientPluginInstance() ? plugin : THROW_CCE(), scope);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
initMetadataForClass($, 'ClientPluginImpl');
|
|
@@ -51,18 +51,18 @@ function TransformRequestBodyHook$install$slambda() {
|
|
|
51
51
|
constructor($handler, resultContinuation, $box) {
|
|
52
52
|
if ($box === VOID)
|
|
53
53
|
$box = {};
|
|
54
|
-
$box.
|
|
54
|
+
$box.j5v_1 = $handler;
|
|
55
55
|
super(resultContinuation, $box);
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
var tmp = this.
|
|
57
|
+
g4z($this$intercept, it, $completion) {
|
|
58
|
+
var tmp = this.h4z($this$intercept, it, $completion);
|
|
59
59
|
tmp.cc_1 = Unit_instance;
|
|
60
60
|
tmp.dc_1 = null;
|
|
61
61
|
return tmp.ic();
|
|
62
62
|
}
|
|
63
63
|
ld(p1, p2, $completion) {
|
|
64
64
|
var tmp = p1 instanceof PipelineContext() ? p1 : THROW_CCE();
|
|
65
|
-
return this.
|
|
65
|
+
return this.g4z(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
66
66
|
}
|
|
67
67
|
ic() {
|
|
68
68
|
var suspendResult = this.cc_1;
|
|
@@ -73,17 +73,17 @@ function TransformRequestBodyHook$install$slambda() {
|
|
|
73
73
|
case 0:
|
|
74
74
|
this.bc_1 = 4;
|
|
75
75
|
this.ac_1 = 1;
|
|
76
|
-
suspendResult = this.
|
|
76
|
+
suspendResult = this.j5v_1(new (TransformRequestBodyContext())(), this.k5v_1.v3w_1, this.k5v_1.w3v(), this.k5v_1.v3w_1.n5v(), this);
|
|
77
77
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
78
78
|
return suspendResult;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
continue $sm;
|
|
82
82
|
case 1:
|
|
83
|
-
this.
|
|
84
|
-
if (!(this.
|
|
83
|
+
this.m5v_1 = suspendResult;
|
|
84
|
+
if (!(this.m5v_1 == null)) {
|
|
85
85
|
this.ac_1 = 2;
|
|
86
|
-
suspendResult = this.
|
|
86
|
+
suspendResult = this.k5v_1.x3v(this.m5v_1, this);
|
|
87
87
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
88
88
|
return suspendResult;
|
|
89
89
|
}
|
|
@@ -112,10 +112,10 @@ function TransformRequestBodyHook$install$slambda() {
|
|
|
112
112
|
}
|
|
113
113
|
while (true);
|
|
114
114
|
}
|
|
115
|
-
|
|
116
|
-
var i = new (TransformRequestBodyHook$install$slambda())(this.
|
|
117
|
-
i.
|
|
118
|
-
i.
|
|
115
|
+
h4z($this$intercept, it, completion) {
|
|
116
|
+
var i = new (TransformRequestBodyHook$install$slambda())(this.j5v_1, completion);
|
|
117
|
+
i.k5v_1 = $this$intercept;
|
|
118
|
+
i.l5v_1 = it;
|
|
119
119
|
return i;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -127,7 +127,7 @@ function TransformRequestBodyHook$install$slambda() {
|
|
|
127
127
|
function TransformRequestBodyHook$install$slambda_0($handler, resultContinuation) {
|
|
128
128
|
var i = new (TransformRequestBodyHook$install$slambda())($handler, resultContinuation);
|
|
129
129
|
var l = function ($this$intercept, it, $completion) {
|
|
130
|
-
return i.
|
|
130
|
+
return i.g4z($this$intercept, it, $completion);
|
|
131
131
|
};
|
|
132
132
|
l.$arity = 2;
|
|
133
133
|
return l;
|
|
@@ -136,12 +136,12 @@ var TransformRequestBodyHookClass;
|
|
|
136
136
|
function TransformRequestBodyHook() {
|
|
137
137
|
if (TransformRequestBodyHookClass === VOID) {
|
|
138
138
|
class $ {
|
|
139
|
-
|
|
140
|
-
var tmp = Phases_getInstance().
|
|
141
|
-
client.
|
|
139
|
+
o5v(client, handler) {
|
|
140
|
+
var tmp = Phases_getInstance().k59_1;
|
|
141
|
+
client.m4y_1.z3w(tmp, TransformRequestBodyHook$install$slambda_0(handler, null));
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
return this.
|
|
143
|
+
n59(client, handler) {
|
|
144
|
+
return this.o5v(client, (!(handler == null) ? isSuspendFunction(handler, 4) : false) ? handler : THROW_CCE());
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
initMetadataForObject($, 'TransformRequestBodyHook');
|
|
@@ -160,18 +160,18 @@ function TransformResponseBodyHook$install$slambda() {
|
|
|
160
160
|
constructor($handler, resultContinuation, $box) {
|
|
161
161
|
if ($box === VOID)
|
|
162
162
|
$box = {};
|
|
163
|
-
$box.
|
|
163
|
+
$box.x5v_1 = $handler;
|
|
164
164
|
super(resultContinuation, $box);
|
|
165
165
|
}
|
|
166
|
-
|
|
167
|
-
var tmp = this.
|
|
166
|
+
b50($this$intercept, it, $completion) {
|
|
167
|
+
var tmp = this.c50($this$intercept, it, $completion);
|
|
168
168
|
tmp.cc_1 = Unit_instance;
|
|
169
169
|
tmp.dc_1 = null;
|
|
170
170
|
return tmp.ic();
|
|
171
171
|
}
|
|
172
172
|
ld(p1, p2, $completion) {
|
|
173
173
|
var tmp = p1 instanceof PipelineContext() ? p1 : THROW_CCE();
|
|
174
|
-
return this.
|
|
174
|
+
return this.b50(tmp, p2 instanceof HttpResponseContainer() ? p2 : THROW_CCE(), $completion);
|
|
175
175
|
}
|
|
176
176
|
ic() {
|
|
177
177
|
var suspendResult = this.cc_1;
|
|
@@ -181,44 +181,44 @@ function TransformResponseBodyHook$install$slambda() {
|
|
|
181
181
|
switch (tmp) {
|
|
182
182
|
case 0:
|
|
183
183
|
this.bc_1 = 3;
|
|
184
|
-
this.
|
|
185
|
-
this.
|
|
186
|
-
this.
|
|
187
|
-
var tmp_0 = this.
|
|
184
|
+
this.a5w_1 = this.y5v_1.w3v();
|
|
185
|
+
this.b5w_1 = this.a5w_1.gl();
|
|
186
|
+
this.c5w_1 = this.a5w_1.hl();
|
|
187
|
+
var tmp_0 = this.c5w_1;
|
|
188
188
|
if (!isInterface(tmp_0, ByteReadChannel()))
|
|
189
189
|
return Unit_instance;
|
|
190
190
|
this.ac_1 = 1;
|
|
191
|
-
suspendResult = this.
|
|
191
|
+
suspendResult = this.x5v_1(new (TransformResponseBodyContext())(), this.y5v_1.v3w_1.n4z(), this.c5w_1, this.b5w_1, this);
|
|
192
192
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
193
193
|
return suspendResult;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
196
|
continue $sm;
|
|
197
197
|
case 1:
|
|
198
|
-
this.
|
|
198
|
+
this.d5w_1 = suspendResult;
|
|
199
199
|
var tmp_1 = this;
|
|
200
200
|
var tmp_2;
|
|
201
|
-
if (this.
|
|
201
|
+
if (this.d5w_1 == null) {
|
|
202
202
|
return Unit_instance;
|
|
203
203
|
} else {
|
|
204
|
-
tmp_2 = this.
|
|
204
|
+
tmp_2 = this.d5w_1;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
tmp_1.
|
|
207
|
+
tmp_1.e5w_1 = tmp_2;
|
|
208
208
|
var tmp_3;
|
|
209
|
-
var tmp_4 = this.
|
|
209
|
+
var tmp_4 = this.e5w_1;
|
|
210
210
|
if (!(tmp_4 instanceof NullBody())) {
|
|
211
|
-
tmp_3 = !this.
|
|
211
|
+
tmp_3 = !this.b5w_1.n3x_1.bg(this.e5w_1);
|
|
212
212
|
} else {
|
|
213
213
|
tmp_3 = false;
|
|
214
214
|
}
|
|
215
215
|
|
|
216
216
|
if (tmp_3) {
|
|
217
|
-
throw IllegalStateException().o4('transformResponseBody returned ' + toString(this.
|
|
217
|
+
throw IllegalStateException().o4('transformResponseBody returned ' + toString(this.e5w_1) + ' but expected value of type ' + this.b5w_1.toString());
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
this.ac_1 = 2;
|
|
221
|
-
suspendResult = this.
|
|
221
|
+
suspendResult = this.y5v_1.x3v(new (HttpResponseContainer())(this.b5w_1, this.e5w_1), this);
|
|
222
222
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
223
223
|
return suspendResult;
|
|
224
224
|
}
|
|
@@ -240,10 +240,10 @@ function TransformResponseBodyHook$install$slambda() {
|
|
|
240
240
|
}
|
|
241
241
|
while (true);
|
|
242
242
|
}
|
|
243
|
-
|
|
244
|
-
var i = new (TransformResponseBodyHook$install$slambda())(this.
|
|
245
|
-
i.
|
|
246
|
-
i.
|
|
243
|
+
c50($this$intercept, it, completion) {
|
|
244
|
+
var i = new (TransformResponseBodyHook$install$slambda())(this.x5v_1, completion);
|
|
245
|
+
i.y5v_1 = $this$intercept;
|
|
246
|
+
i.z5v_1 = it;
|
|
247
247
|
return i;
|
|
248
248
|
}
|
|
249
249
|
}
|
|
@@ -255,7 +255,7 @@ function TransformResponseBodyHook$install$slambda() {
|
|
|
255
255
|
function TransformResponseBodyHook$install$slambda_0($handler, resultContinuation) {
|
|
256
256
|
var i = new (TransformResponseBodyHook$install$slambda())($handler, resultContinuation);
|
|
257
257
|
var l = function ($this$intercept, it, $completion) {
|
|
258
|
-
return i.
|
|
258
|
+
return i.b50($this$intercept, it, $completion);
|
|
259
259
|
};
|
|
260
260
|
l.$arity = 2;
|
|
261
261
|
return l;
|
|
@@ -264,12 +264,12 @@ var TransformResponseBodyHookClass;
|
|
|
264
264
|
function TransformResponseBodyHook() {
|
|
265
265
|
if (TransformResponseBodyHookClass === VOID) {
|
|
266
266
|
class $ {
|
|
267
|
-
|
|
268
|
-
var tmp = Phases_getInstance_0().
|
|
269
|
-
client.
|
|
267
|
+
f5w(client, handler) {
|
|
268
|
+
var tmp = Phases_getInstance_0().o51_1;
|
|
269
|
+
client.n4y_1.z3w(tmp, TransformResponseBodyHook$install$slambda_0(handler, null));
|
|
270
270
|
}
|
|
271
|
-
|
|
272
|
-
return this.
|
|
271
|
+
n59(client, handler) {
|
|
272
|
+
return this.f5w(client, (!(handler == null) ? isSuspendFunction(handler, 4) : false) ? handler : THROW_CCE());
|
|
273
273
|
}
|
|
274
274
|
}
|
|
275
275
|
initMetadataForObject($, 'TransformResponseBodyHook');
|