@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
|
@@ -79,12 +79,12 @@ function HttpPlainTextConfig() {
|
|
|
79
79
|
constructor() {
|
|
80
80
|
var tmp = this;
|
|
81
81
|
// Inline function 'kotlin.collections.mutableSetOf' call
|
|
82
|
-
tmp.
|
|
82
|
+
tmp.m5k_1 = LinkedHashSet().m1();
|
|
83
83
|
var tmp_0 = this;
|
|
84
84
|
// Inline function 'kotlin.collections.mutableMapOf' call
|
|
85
|
-
tmp_0.
|
|
86
|
-
this.
|
|
87
|
-
this.
|
|
85
|
+
tmp_0.n5k_1 = LinkedHashMap().ub();
|
|
86
|
+
this.o5k_1 = null;
|
|
87
|
+
this.p5k_1 = Charsets_getInstance().m3q_1;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
initMetadataForClass($, 'HttpPlainTextConfig', HttpPlainTextConfig);
|
|
@@ -99,18 +99,18 @@ function RenderRequestHook$install$slambda() {
|
|
|
99
99
|
constructor($handler, resultContinuation, $box) {
|
|
100
100
|
if ($box === VOID)
|
|
101
101
|
$box = {};
|
|
102
|
-
$box.
|
|
102
|
+
$box.y5k_1 = $handler;
|
|
103
103
|
super(resultContinuation, $box);
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
var tmp = this.
|
|
105
|
+
g4z($this$intercept, content, $completion) {
|
|
106
|
+
var tmp = this.h4z($this$intercept, content, $completion);
|
|
107
107
|
tmp.cc_1 = Unit_instance;
|
|
108
108
|
tmp.dc_1 = null;
|
|
109
109
|
return tmp.ic();
|
|
110
110
|
}
|
|
111
111
|
ld(p1, p2, $completion) {
|
|
112
112
|
var tmp = p1 instanceof PipelineContext() ? p1 : THROW_CCE();
|
|
113
|
-
return this.
|
|
113
|
+
return this.g4z(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
114
114
|
}
|
|
115
115
|
ic() {
|
|
116
116
|
var suspendResult = this.cc_1;
|
|
@@ -121,17 +121,17 @@ function RenderRequestHook$install$slambda() {
|
|
|
121
121
|
case 0:
|
|
122
122
|
this.bc_1 = 4;
|
|
123
123
|
this.ac_1 = 1;
|
|
124
|
-
suspendResult = this.
|
|
124
|
+
suspendResult = this.y5k_1(this.z5k_1.v3w_1, this.a5l_1, this);
|
|
125
125
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
126
126
|
return suspendResult;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
continue $sm;
|
|
130
130
|
case 1:
|
|
131
|
-
this.
|
|
132
|
-
if (!(this.
|
|
131
|
+
this.b5l_1 = suspendResult;
|
|
132
|
+
if (!(this.b5l_1 == null)) {
|
|
133
133
|
this.ac_1 = 2;
|
|
134
|
-
suspendResult = this.
|
|
134
|
+
suspendResult = this.z5k_1.x3v(this.b5l_1, this);
|
|
135
135
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
136
136
|
return suspendResult;
|
|
137
137
|
}
|
|
@@ -160,10 +160,10 @@ function RenderRequestHook$install$slambda() {
|
|
|
160
160
|
}
|
|
161
161
|
while (true);
|
|
162
162
|
}
|
|
163
|
-
|
|
164
|
-
var i = new (RenderRequestHook$install$slambda())(this.
|
|
165
|
-
i.
|
|
166
|
-
i.
|
|
163
|
+
h4z($this$intercept, content, completion) {
|
|
164
|
+
var i = new (RenderRequestHook$install$slambda())(this.y5k_1, completion);
|
|
165
|
+
i.z5k_1 = $this$intercept;
|
|
166
|
+
i.a5l_1 = content;
|
|
167
167
|
return i;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
@@ -175,7 +175,7 @@ function RenderRequestHook$install$slambda() {
|
|
|
175
175
|
function RenderRequestHook$install$slambda_0($handler, resultContinuation) {
|
|
176
176
|
var i = new (RenderRequestHook$install$slambda())($handler, resultContinuation);
|
|
177
177
|
var l = function ($this$intercept, content, $completion) {
|
|
178
|
-
return i.
|
|
178
|
+
return i.g4z($this$intercept, content, $completion);
|
|
179
179
|
};
|
|
180
180
|
l.$arity = 2;
|
|
181
181
|
return l;
|
|
@@ -184,12 +184,12 @@ var RenderRequestHookClass;
|
|
|
184
184
|
function RenderRequestHook() {
|
|
185
185
|
if (RenderRequestHookClass === VOID) {
|
|
186
186
|
class $ {
|
|
187
|
-
|
|
188
|
-
var tmp = Phases_getInstance().
|
|
189
|
-
client.
|
|
187
|
+
c5l(client, handler) {
|
|
188
|
+
var tmp = Phases_getInstance().l59_1;
|
|
189
|
+
client.m4y_1.z3w(tmp, RenderRequestHook$install$slambda_0(handler, null));
|
|
190
190
|
}
|
|
191
|
-
|
|
192
|
-
return this.
|
|
191
|
+
n59(client, handler) {
|
|
192
|
+
return this.c5l(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
193
193
|
}
|
|
194
194
|
}
|
|
195
195
|
initMetadataForObject($, 'RenderRequestHook');
|
|
@@ -211,20 +211,20 @@ function HttpPlainTextConfig$_init_$ref_isjudo() {
|
|
|
211
211
|
function HttpPlainText$lambda($this$createClientPlugin) {
|
|
212
212
|
_init_properties_HttpPlainText_kt__iy89z1();
|
|
213
213
|
// Inline function 'kotlin.collections.sortedByDescending' call
|
|
214
|
-
var this_0 = toList($this$createClientPlugin.
|
|
214
|
+
var this_0 = toList($this$createClientPlugin.i5a_1.n5k_1);
|
|
215
215
|
// Inline function 'kotlin.comparisons.compareByDescending' call
|
|
216
216
|
var tmp = HttpPlainText$lambda$lambda;
|
|
217
217
|
var tmp$ret$0 = new (sam$kotlin_Comparator$0())(tmp);
|
|
218
218
|
var withQuality = sortedWith(this_0, tmp$ret$0);
|
|
219
|
-
var responseCharsetFallback = $this$createClientPlugin.
|
|
219
|
+
var responseCharsetFallback = $this$createClientPlugin.i5a_1.p5k_1;
|
|
220
220
|
// Inline function 'kotlin.collections.filter' call
|
|
221
|
-
var tmp0 = $this$createClientPlugin.
|
|
221
|
+
var tmp0 = $this$createClientPlugin.i5a_1.m5k_1;
|
|
222
222
|
// Inline function 'kotlin.collections.filterTo' call
|
|
223
223
|
var destination = ArrayList().l1();
|
|
224
224
|
var _iterator__ex2g4s = tmp0.d1();
|
|
225
225
|
while (_iterator__ex2g4s.e1()) {
|
|
226
226
|
var element = _iterator__ex2g4s.f1();
|
|
227
|
-
if (!$this$createClientPlugin.
|
|
227
|
+
if (!$this$createClientPlugin.i5a_1.n5k_1.u2(element)) {
|
|
228
228
|
destination.m(element);
|
|
229
229
|
}
|
|
230
230
|
}
|
|
@@ -270,7 +270,7 @@ function HttpPlainText$lambda($this$createClientPlugin) {
|
|
|
270
270
|
this_1.jb(get_name(responseCharsetFallback));
|
|
271
271
|
}
|
|
272
272
|
var acceptCharsetHeader = this_1.toString();
|
|
273
|
-
var tmp0_elvis_lhs = $this$createClientPlugin.
|
|
273
|
+
var tmp0_elvis_lhs = $this$createClientPlugin.i5a_1.o5k_1;
|
|
274
274
|
var tmp1_elvis_lhs = tmp0_elvis_lhs == null ? firstOrNull(withoutQuality) : tmp0_elvis_lhs;
|
|
275
275
|
var tmp_1;
|
|
276
276
|
if (tmp1_elvis_lhs == null) {
|
|
@@ -280,10 +280,10 @@ function HttpPlainText$lambda($this$createClientPlugin) {
|
|
|
280
280
|
tmp_1 = tmp1_elvis_lhs;
|
|
281
281
|
}
|
|
282
282
|
var tmp3_elvis_lhs = tmp_1;
|
|
283
|
-
var requestCharset = tmp3_elvis_lhs == null ? Charsets_getInstance().
|
|
283
|
+
var requestCharset = tmp3_elvis_lhs == null ? Charsets_getInstance().m3q_1 : tmp3_elvis_lhs;
|
|
284
284
|
var tmp_2 = RenderRequestHook_instance;
|
|
285
|
-
$this$createClientPlugin.
|
|
286
|
-
$this$createClientPlugin.
|
|
285
|
+
$this$createClientPlugin.l5a(tmp_2, HttpPlainText$lambda$slambda_0(acceptCharsetHeader, requestCharset, null));
|
|
286
|
+
$this$createClientPlugin.d5l(HttpPlainText$lambda$slambda_2(responseCharsetFallback, null));
|
|
287
287
|
return Unit_instance;
|
|
288
288
|
}
|
|
289
289
|
var sam$kotlin_Comparator$0Class;
|
|
@@ -291,16 +291,16 @@ function sam$kotlin_Comparator$0() {
|
|
|
291
291
|
if (sam$kotlin_Comparator$0Class === VOID) {
|
|
292
292
|
class $ {
|
|
293
293
|
constructor(function_0) {
|
|
294
|
-
this.
|
|
294
|
+
this.e5l_1 = function_0;
|
|
295
295
|
}
|
|
296
296
|
wi(a, b) {
|
|
297
|
-
return this.
|
|
297
|
+
return this.e5l_1(a, b);
|
|
298
298
|
}
|
|
299
299
|
compare(a, b) {
|
|
300
300
|
return this.wi(a, b);
|
|
301
301
|
}
|
|
302
302
|
i4() {
|
|
303
|
-
return this.
|
|
303
|
+
return this.e5l_1;
|
|
304
304
|
}
|
|
305
305
|
equals(other) {
|
|
306
306
|
var tmp;
|
|
@@ -327,23 +327,23 @@ function sam$kotlin_Comparator$0() {
|
|
|
327
327
|
return sam$kotlin_Comparator$0Class;
|
|
328
328
|
}
|
|
329
329
|
function invoke$wrapContent(requestCharset, request, content, requestContentType) {
|
|
330
|
-
var contentType = requestContentType == null ? Text_getInstance().
|
|
330
|
+
var contentType = requestContentType == null ? Text_getInstance().o40_1 : requestContentType;
|
|
331
331
|
var tmp2_elvis_lhs = requestContentType == null ? null : charset(requestContentType);
|
|
332
332
|
var charset_0 = tmp2_elvis_lhs == null ? requestCharset : tmp2_elvis_lhs;
|
|
333
|
-
get_LOGGER().
|
|
333
|
+
get_LOGGER().g3y('Sending request body to ' + request.n50_1.toString() + ' as text/plain with charset ' + charset_0.toString());
|
|
334
334
|
return new (TextContent())(content, withCharset(contentType, charset_0));
|
|
335
335
|
}
|
|
336
336
|
function invoke$read(responseCharsetFallback, call, body) {
|
|
337
|
-
var tmp0_elvis_lhs = charset_0(call.
|
|
337
|
+
var tmp0_elvis_lhs = charset_0(call.n4z());
|
|
338
338
|
var actualCharset = tmp0_elvis_lhs == null ? responseCharsetFallback : tmp0_elvis_lhs;
|
|
339
|
-
get_LOGGER().
|
|
339
|
+
get_LOGGER().g3y('Reading response body for ' + call.e52().n52().toString() + ' as String with charset ' + actualCharset.toString());
|
|
340
340
|
return readText(body, actualCharset);
|
|
341
341
|
}
|
|
342
342
|
function invoke$addCharsetHeaders(acceptCharsetHeader, context) {
|
|
343
|
-
if (!(context.
|
|
343
|
+
if (!(context.p50_1.c3s(HttpHeaders_getInstance().h41_1) == null))
|
|
344
344
|
return Unit_instance;
|
|
345
|
-
get_LOGGER().
|
|
346
|
-
context.
|
|
345
|
+
get_LOGGER().g3y('Adding Accept-Charset=' + acceptCharsetHeader + ' to ' + context.n50_1.toString());
|
|
346
|
+
context.p50_1.p3t(HttpHeaders_getInstance().h41_1, acceptCharsetHeader);
|
|
347
347
|
}
|
|
348
348
|
function HttpPlainText$lambda$lambda(a, b) {
|
|
349
349
|
_init_properties_HttpPlainText_kt__iy89z1();
|
|
@@ -366,19 +366,19 @@ function HttpPlainText$lambda$slambda() {
|
|
|
366
366
|
constructor($acceptCharsetHeader, $requestCharset, resultContinuation, $box) {
|
|
367
367
|
if ($box === VOID)
|
|
368
368
|
$box = {};
|
|
369
|
-
$box.
|
|
370
|
-
$box.
|
|
369
|
+
$box.n5l_1 = $acceptCharsetHeader;
|
|
370
|
+
$box.o5l_1 = $requestCharset;
|
|
371
371
|
super(resultContinuation, $box);
|
|
372
372
|
}
|
|
373
|
-
|
|
374
|
-
var tmp = this.
|
|
373
|
+
r5l(request, content, $completion) {
|
|
374
|
+
var tmp = this.s5l(request, content, $completion);
|
|
375
375
|
tmp.cc_1 = Unit_instance;
|
|
376
376
|
tmp.dc_1 = null;
|
|
377
377
|
return tmp.ic();
|
|
378
378
|
}
|
|
379
379
|
ld(p1, p2, $completion) {
|
|
380
380
|
var tmp = p1 instanceof HttpRequestBuilder() ? p1 : THROW_CCE();
|
|
381
|
-
return this.
|
|
381
|
+
return this.r5l(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
382
382
|
}
|
|
383
383
|
ic() {
|
|
384
384
|
var suspendResult = this.cc_1;
|
|
@@ -387,15 +387,15 @@ function HttpPlainText$lambda$slambda() {
|
|
|
387
387
|
var tmp = this.ac_1;
|
|
388
388
|
if (tmp === 0) {
|
|
389
389
|
this.bc_1 = 1;
|
|
390
|
-
invoke$addCharsetHeaders(this.
|
|
391
|
-
var tmp_0 = this.
|
|
390
|
+
invoke$addCharsetHeaders(this.n5l_1, this.p5l_1);
|
|
391
|
+
var tmp_0 = this.q5l_1;
|
|
392
392
|
if (!(typeof tmp_0 === 'string'))
|
|
393
393
|
return null;
|
|
394
|
-
var contentType_0 = contentType(this.
|
|
395
|
-
if (!(contentType_0 == null) && !(contentType_0.
|
|
394
|
+
var contentType_0 = contentType(this.p5l_1);
|
|
395
|
+
if (!(contentType_0 == null) && !(contentType_0.v3y_1 === Text_getInstance().o40_1.v3y_1)) {
|
|
396
396
|
return null;
|
|
397
397
|
}
|
|
398
|
-
return invoke$wrapContent(this.
|
|
398
|
+
return invoke$wrapContent(this.o5l_1, this.p5l_1, this.q5l_1, contentType_0);
|
|
399
399
|
} else if (tmp === 1) {
|
|
400
400
|
throw this.dc_1;
|
|
401
401
|
}
|
|
@@ -405,10 +405,10 @@ function HttpPlainText$lambda$slambda() {
|
|
|
405
405
|
}
|
|
406
406
|
while (true);
|
|
407
407
|
}
|
|
408
|
-
|
|
409
|
-
var i = new (HttpPlainText$lambda$slambda())(this.
|
|
410
|
-
i.
|
|
411
|
-
i.
|
|
408
|
+
s5l(request, content, completion) {
|
|
409
|
+
var i = new (HttpPlainText$lambda$slambda())(this.n5l_1, this.o5l_1, completion);
|
|
410
|
+
i.p5l_1 = request;
|
|
411
|
+
i.q5l_1 = content;
|
|
412
412
|
return i;
|
|
413
413
|
}
|
|
414
414
|
}
|
|
@@ -420,7 +420,7 @@ function HttpPlainText$lambda$slambda() {
|
|
|
420
420
|
function HttpPlainText$lambda$slambda_0($acceptCharsetHeader, $requestCharset, resultContinuation) {
|
|
421
421
|
var i = new (HttpPlainText$lambda$slambda())($acceptCharsetHeader, $requestCharset, resultContinuation);
|
|
422
422
|
var l = function (request, content, $completion) {
|
|
423
|
-
return i.
|
|
423
|
+
return i.r5l(request, content, $completion);
|
|
424
424
|
};
|
|
425
425
|
l.$arity = 2;
|
|
426
426
|
return l;
|
|
@@ -432,20 +432,20 @@ function HttpPlainText$lambda$slambda_1() {
|
|
|
432
432
|
constructor($responseCharsetFallback, resultContinuation, $box) {
|
|
433
433
|
if ($box === VOID)
|
|
434
434
|
$box = {};
|
|
435
|
-
$box.
|
|
435
|
+
$box.b5m_1 = $responseCharsetFallback;
|
|
436
436
|
super(resultContinuation, $box);
|
|
437
437
|
}
|
|
438
|
-
|
|
439
|
-
var tmp = this.
|
|
438
|
+
g5m($this$transformResponseBody, response, content, requestedType, $completion) {
|
|
439
|
+
var tmp = this.h5m($this$transformResponseBody, response, content, requestedType, $completion);
|
|
440
440
|
tmp.cc_1 = Unit_instance;
|
|
441
441
|
tmp.dc_1 = null;
|
|
442
442
|
return tmp.ic();
|
|
443
443
|
}
|
|
444
|
-
|
|
444
|
+
i5m(p1, p2, p3, p4, $completion) {
|
|
445
445
|
var tmp = p1 instanceof TransformResponseBodyContext() ? p1 : THROW_CCE();
|
|
446
446
|
var tmp_0 = p2 instanceof HttpResponse() ? p2 : THROW_CCE();
|
|
447
447
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel()) : false) ? p3 : THROW_CCE();
|
|
448
|
-
return this.
|
|
448
|
+
return this.g5m(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo() ? p4 : THROW_CCE(), $completion);
|
|
449
449
|
}
|
|
450
450
|
ic() {
|
|
451
451
|
var suspendResult = this.cc_1;
|
|
@@ -455,10 +455,10 @@ function HttpPlainText$lambda$slambda_1() {
|
|
|
455
455
|
switch (tmp) {
|
|
456
456
|
case 0:
|
|
457
457
|
this.bc_1 = 2;
|
|
458
|
-
if (!this.
|
|
458
|
+
if (!this.f5m_1.n3x_1.equals(PrimitiveClasses_getInstance().gh()))
|
|
459
459
|
return null;
|
|
460
460
|
this.ac_1 = 1;
|
|
461
|
-
suspendResult = readRemaining(this.
|
|
461
|
+
suspendResult = readRemaining(this.e5m_1, this);
|
|
462
462
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
463
463
|
return suspendResult;
|
|
464
464
|
}
|
|
@@ -466,7 +466,7 @@ function HttpPlainText$lambda$slambda_1() {
|
|
|
466
466
|
continue $sm;
|
|
467
467
|
case 1:
|
|
468
468
|
var bodyBytes = suspendResult;
|
|
469
|
-
return invoke$read(this.
|
|
469
|
+
return invoke$read(this.b5m_1, this.d5m_1.l52(), bodyBytes);
|
|
470
470
|
case 2:
|
|
471
471
|
throw this.dc_1;
|
|
472
472
|
}
|
|
@@ -481,12 +481,12 @@ function HttpPlainText$lambda$slambda_1() {
|
|
|
481
481
|
}
|
|
482
482
|
while (true);
|
|
483
483
|
}
|
|
484
|
-
|
|
485
|
-
var i = new (HttpPlainText$lambda$slambda_1())(this.
|
|
486
|
-
i.
|
|
487
|
-
i.
|
|
488
|
-
i.
|
|
489
|
-
i.
|
|
484
|
+
h5m($this$transformResponseBody, response, content, requestedType, completion) {
|
|
485
|
+
var i = new (HttpPlainText$lambda$slambda_1())(this.b5m_1, completion);
|
|
486
|
+
i.c5m_1 = $this$transformResponseBody;
|
|
487
|
+
i.d5m_1 = response;
|
|
488
|
+
i.e5m_1 = content;
|
|
489
|
+
i.f5m_1 = requestedType;
|
|
490
490
|
return i;
|
|
491
491
|
}
|
|
492
492
|
}
|
|
@@ -498,7 +498,7 @@ function HttpPlainText$lambda$slambda_1() {
|
|
|
498
498
|
function HttpPlainText$lambda$slambda_2($responseCharsetFallback, resultContinuation) {
|
|
499
499
|
var i = new (HttpPlainText$lambda$slambda_1())($responseCharsetFallback, resultContinuation);
|
|
500
500
|
var l = function ($this$transformResponseBody, response, content, requestedType, $completion) {
|
|
501
|
-
return i.
|
|
501
|
+
return i.g5m($this$transformResponseBody, response, content, requestedType, $completion);
|
|
502
502
|
};
|
|
503
503
|
l.$arity = 4;
|
|
504
504
|
return l;
|
|
@@ -53,8 +53,8 @@ function HttpRedirectConfig() {
|
|
|
53
53
|
if (HttpRedirectConfigClass === VOID) {
|
|
54
54
|
class $ {
|
|
55
55
|
constructor() {
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
56
|
+
this.j5m_1 = true;
|
|
57
|
+
this.k5m_1 = false;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
initMetadataForClass($, 'HttpRedirectConfig', HttpRedirectConfig);
|
|
@@ -64,8 +64,8 @@ function HttpRedirectConfig() {
|
|
|
64
64
|
}
|
|
65
65
|
function isRedirect(_this__u8e3s4) {
|
|
66
66
|
_init_properties_HttpRedirect_kt__ure7fo();
|
|
67
|
-
var tmp0_subject = _this__u8e3s4.
|
|
68
|
-
return tmp0_subject === Companion_getInstance().
|
|
67
|
+
var tmp0_subject = _this__u8e3s4.v48_1;
|
|
68
|
+
return tmp0_subject === Companion_getInstance().e47_1.v48_1 || tmp0_subject === Companion_getInstance().f47_1.v48_1 || (tmp0_subject === Companion_getInstance().k47_1.v48_1 || (tmp0_subject === Companion_getInstance().l47_1.v48_1 || tmp0_subject === Companion_getInstance().g47_1.v48_1)) ? true : false;
|
|
69
69
|
}
|
|
70
70
|
function HttpRedirectConfig$_init_$ref_rhym9t() {
|
|
71
71
|
var l = function () {
|
|
@@ -76,10 +76,10 @@ function HttpRedirectConfig$_init_$ref_rhym9t() {
|
|
|
76
76
|
}
|
|
77
77
|
function HttpRedirect$lambda($this$createClientPlugin) {
|
|
78
78
|
_init_properties_HttpRedirect_kt__ure7fo();
|
|
79
|
-
var checkHttpMethod = $this$createClientPlugin.
|
|
80
|
-
var allowHttpsDowngrade = $this$createClientPlugin.
|
|
79
|
+
var checkHttpMethod = $this$createClientPlugin.i5a_1.j5m_1;
|
|
80
|
+
var allowHttpsDowngrade = $this$createClientPlugin.i5a_1.k5m_1;
|
|
81
81
|
var tmp = Send_instance;
|
|
82
|
-
$this$createClientPlugin.
|
|
82
|
+
$this$createClientPlugin.l5a(tmp, HttpRedirect$lambda$slambda_0(checkHttpMethod, allowHttpsDowngrade, $this$createClientPlugin, null));
|
|
83
83
|
return Unit_instance;
|
|
84
84
|
}
|
|
85
85
|
function invoke$handleCall(_this__u8e3s4, context, origin, allowHttpsDowngrade, client, $completion) {
|
|
@@ -95,20 +95,20 @@ function HttpRedirect$lambda$slambda() {
|
|
|
95
95
|
constructor($checkHttpMethod, $allowHttpsDowngrade, $this_createClientPlugin, resultContinuation, $box) {
|
|
96
96
|
if ($box === VOID)
|
|
97
97
|
$box = {};
|
|
98
|
-
$box.
|
|
99
|
-
$box.
|
|
100
|
-
$box.
|
|
98
|
+
$box.l5n_1 = $checkHttpMethod;
|
|
99
|
+
$box.m5n_1 = $allowHttpsDowngrade;
|
|
100
|
+
$box.n5n_1 = $this_createClientPlugin;
|
|
101
101
|
super(resultContinuation, $box);
|
|
102
102
|
}
|
|
103
|
-
|
|
104
|
-
var tmp = this.
|
|
103
|
+
a5j($this$on, request, $completion) {
|
|
104
|
+
var tmp = this.b5j($this$on, request, $completion);
|
|
105
105
|
tmp.cc_1 = Unit_instance;
|
|
106
106
|
tmp.dc_1 = null;
|
|
107
107
|
return tmp.ic();
|
|
108
108
|
}
|
|
109
109
|
ld(p1, p2, $completion) {
|
|
110
110
|
var tmp = p1 instanceof Sender() ? p1 : THROW_CCE();
|
|
111
|
-
return this.
|
|
111
|
+
return this.a5j(tmp, p2 instanceof HttpRequestBuilder() ? p2 : THROW_CCE(), $completion);
|
|
112
112
|
}
|
|
113
113
|
ic() {
|
|
114
114
|
var suspendResult = this.cc_1;
|
|
@@ -119,20 +119,20 @@ function HttpRedirect$lambda$slambda() {
|
|
|
119
119
|
case 0:
|
|
120
120
|
this.bc_1 = 3;
|
|
121
121
|
this.ac_1 = 1;
|
|
122
|
-
suspendResult = this.
|
|
122
|
+
suspendResult = this.o5n_1.e5j(this.p5n_1, this);
|
|
123
123
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
124
124
|
return suspendResult;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
continue $sm;
|
|
128
128
|
case 1:
|
|
129
|
-
this.
|
|
130
|
-
if (this.
|
|
131
|
-
return this.
|
|
129
|
+
this.q5n_1 = suspendResult;
|
|
130
|
+
if (this.l5n_1 && !get_ALLOWED_FOR_REDIRECT().q2(this.q5n_1.e52().m52())) {
|
|
131
|
+
return this.q5n_1;
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
this.ac_1 = 2;
|
|
135
|
-
suspendResult = invoke$handleCall(this.
|
|
135
|
+
suspendResult = invoke$handleCall(this.o5n_1, this.p5n_1, this.q5n_1, this.m5n_1, this.n5n_1.h5a_1, this);
|
|
136
136
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
137
137
|
return suspendResult;
|
|
138
138
|
}
|
|
@@ -154,10 +154,10 @@ function HttpRedirect$lambda$slambda() {
|
|
|
154
154
|
}
|
|
155
155
|
while (true);
|
|
156
156
|
}
|
|
157
|
-
|
|
158
|
-
var i = new (HttpRedirect$lambda$slambda())(this.
|
|
159
|
-
i.
|
|
160
|
-
i.
|
|
157
|
+
b5j($this$on, request, completion) {
|
|
158
|
+
var i = new (HttpRedirect$lambda$slambda())(this.l5n_1, this.m5n_1, this.n5n_1, completion);
|
|
159
|
+
i.o5n_1 = $this$on;
|
|
160
|
+
i.p5n_1 = request;
|
|
161
161
|
return i;
|
|
162
162
|
}
|
|
163
163
|
}
|
|
@@ -169,7 +169,7 @@ function HttpRedirect$lambda$slambda() {
|
|
|
169
169
|
function HttpRedirect$lambda$slambda_0($checkHttpMethod, $allowHttpsDowngrade, $this_createClientPlugin, resultContinuation) {
|
|
170
170
|
var i = new (HttpRedirect$lambda$slambda())($checkHttpMethod, $allowHttpsDowngrade, $this_createClientPlugin, resultContinuation);
|
|
171
171
|
var l = function ($this$on, request, $completion) {
|
|
172
|
-
return i.
|
|
172
|
+
return i.a5j($this$on, request, $completion);
|
|
173
173
|
};
|
|
174
174
|
l.$arity = 2;
|
|
175
175
|
return l;
|
|
@@ -180,11 +180,11 @@ function $invoke$handleCallCOROUTINE$() {
|
|
|
180
180
|
class $ extends CoroutineImpl() {
|
|
181
181
|
constructor(_this__u8e3s4, context, origin, allowHttpsDowngrade, client, resultContinuation) {
|
|
182
182
|
super(resultContinuation);
|
|
183
|
-
this.
|
|
184
|
-
this.
|
|
185
|
-
this.
|
|
186
|
-
this.
|
|
187
|
-
this.
|
|
183
|
+
this.t5m_1 = _this__u8e3s4;
|
|
184
|
+
this.u5m_1 = context;
|
|
185
|
+
this.v5m_1 = origin;
|
|
186
|
+
this.w5m_1 = allowHttpsDowngrade;
|
|
187
|
+
this.x5m_1 = client;
|
|
188
188
|
}
|
|
189
189
|
ic() {
|
|
190
190
|
var suspendResult = this.cc_1;
|
|
@@ -194,12 +194,12 @@ function $invoke$handleCallCOROUTINE$() {
|
|
|
194
194
|
switch (tmp) {
|
|
195
195
|
case 0:
|
|
196
196
|
this.bc_1 = 3;
|
|
197
|
-
if (!isRedirect(this.
|
|
198
|
-
return this.
|
|
199
|
-
this.
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
202
|
-
this.
|
|
197
|
+
if (!isRedirect(this.v5m_1.n4z().u52()))
|
|
198
|
+
return this.v5m_1;
|
|
199
|
+
this.y5m_1 = this.v5m_1;
|
|
200
|
+
this.z5m_1 = this.u5m_1;
|
|
201
|
+
this.a5n_1 = this.v5m_1.e52().n52().a4a_1;
|
|
202
|
+
this.b5n_1 = get_authority(this.v5m_1.e52().n52());
|
|
203
203
|
this.ac_1 = 1;
|
|
204
204
|
continue $sm;
|
|
205
205
|
case 1:
|
|
@@ -208,42 +208,42 @@ function $invoke$handleCallCOROUTINE$() {
|
|
|
208
208
|
continue $sm;
|
|
209
209
|
}
|
|
210
210
|
|
|
211
|
-
this.
|
|
212
|
-
this.
|
|
213
|
-
get_LOGGER().
|
|
211
|
+
this.x5m_1.s4y_1.d4y(get_HttpResponseRedirectEvent(), this.y5m_1.n4z());
|
|
212
|
+
this.c5n_1 = this.y5m_1.n4z().z45().c3s(HttpHeaders_getInstance().u42_1);
|
|
213
|
+
get_LOGGER().g3y('Received redirect response to ' + this.c5n_1 + ' for request ' + this.u5m_1.n50_1.toString());
|
|
214
214
|
var tmp_0 = this;
|
|
215
215
|
var this_0 = new (HttpRequestBuilder())();
|
|
216
|
-
this_0.
|
|
217
|
-
this_0.
|
|
218
|
-
var tmp0_safe_receiver = this.
|
|
216
|
+
this_0.p57(this.z5m_1);
|
|
217
|
+
this_0.n50_1.k49_1.z2();
|
|
218
|
+
var tmp0_safe_receiver = this.c5n_1;
|
|
219
219
|
if (tmp0_safe_receiver == null)
|
|
220
220
|
null;
|
|
221
221
|
else {
|
|
222
|
-
takeFrom(this_0.
|
|
222
|
+
takeFrom(this_0.n50_1, tmp0_safe_receiver);
|
|
223
223
|
}
|
|
224
224
|
|
|
225
|
-
if (!this.
|
|
226
|
-
get_LOGGER().
|
|
227
|
-
return this.
|
|
225
|
+
if (!this.w5m_1 && isSecure(this.a5n_1) && !isSecure(this_0.n50_1.n49())) {
|
|
226
|
+
get_LOGGER().g3y('Can not redirect ' + this.u5m_1.n50_1.toString() + ' because of security downgrade');
|
|
227
|
+
return this.y5m_1;
|
|
228
228
|
}
|
|
229
229
|
|
|
230
|
-
if (!(this.
|
|
231
|
-
this_0.
|
|
232
|
-
get_LOGGER().
|
|
230
|
+
if (!(this.b5n_1 === get_authority_0(this_0.n50_1))) {
|
|
231
|
+
this_0.p50_1.t3t(HttpHeaders_getInstance().p41_1);
|
|
232
|
+
get_LOGGER().g3y('Removing Authorization header from redirect for ' + this.u5m_1.n50_1.toString());
|
|
233
233
|
}
|
|
234
234
|
|
|
235
|
-
tmp_0.
|
|
235
|
+
tmp_0.z5m_1 = this_0;
|
|
236
236
|
this.ac_1 = 2;
|
|
237
|
-
suspendResult = this.
|
|
237
|
+
suspendResult = this.t5m_1.e5j(this.z5m_1, this);
|
|
238
238
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
239
239
|
return suspendResult;
|
|
240
240
|
}
|
|
241
241
|
|
|
242
242
|
continue $sm;
|
|
243
243
|
case 2:
|
|
244
|
-
this.
|
|
245
|
-
if (!isRedirect(this.
|
|
246
|
-
return this.
|
|
244
|
+
this.y5m_1 = suspendResult;
|
|
245
|
+
if (!isRedirect(this.y5m_1.n4z().u52()))
|
|
246
|
+
return this.y5m_1;
|
|
247
247
|
this.ac_1 = 1;
|
|
248
248
|
continue $sm;
|
|
249
249
|
case 3:
|
|
@@ -272,7 +272,7 @@ var properties_initialized_HttpRedirect_kt_klj746;
|
|
|
272
272
|
function _init_properties_HttpRedirect_kt__ure7fo() {
|
|
273
273
|
if (!properties_initialized_HttpRedirect_kt_klj746) {
|
|
274
274
|
properties_initialized_HttpRedirect_kt_klj746 = true;
|
|
275
|
-
ALLOWED_FOR_REDIRECT = setOf([Companion_getInstance_0().
|
|
275
|
+
ALLOWED_FOR_REDIRECT = setOf([Companion_getInstance_0().a46_1, Companion_getInstance_0().f46_1]);
|
|
276
276
|
LOGGER = KtorSimpleLogger('io.ktor.client.plugins.HttpRedirect');
|
|
277
277
|
HttpResponseRedirectEvent = new (EventDefinition())();
|
|
278
278
|
var tmp = HttpRedirectConfig$_init_$ref_rhym9t();
|