@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
|
@@ -96,26 +96,26 @@ var HttpRequestTimeoutExceptionClass;
|
|
|
96
96
|
function HttpRequestTimeoutException() {
|
|
97
97
|
if (HttpRequestTimeoutExceptionClass === VOID) {
|
|
98
98
|
class $ extends IOException() {
|
|
99
|
-
static
|
|
99
|
+
static a5r(url, timeoutMillis, cause) {
|
|
100
100
|
cause = cause === VOID ? null : cause;
|
|
101
|
-
var $this = this.
|
|
102
|
-
captureStack($this, $this.
|
|
103
|
-
$this.
|
|
104
|
-
$this.
|
|
101
|
+
var $this = this.a2v('Request timeout has expired [url=' + url + ', request_timeout=' + toString(timeoutMillis == null ? 'unknown' : timeoutMillis) + ' ms]', cause);
|
|
102
|
+
captureStack($this, $this.z5q_1);
|
|
103
|
+
$this.x5q_1 = url;
|
|
104
|
+
$this.y5q_1 = timeoutMillis;
|
|
105
105
|
return $this;
|
|
106
106
|
}
|
|
107
|
-
static
|
|
108
|
-
var tmp = request.
|
|
109
|
-
var tmp0_safe_receiver = request.
|
|
110
|
-
return this.
|
|
107
|
+
static b5r(request) {
|
|
108
|
+
var tmp = request.n50_1.x4a();
|
|
109
|
+
var tmp0_safe_receiver = request.c5r(HttpTimeoutCapability_instance);
|
|
110
|
+
return this.a5r(tmp, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g5r());
|
|
111
111
|
}
|
|
112
|
-
static
|
|
113
|
-
var tmp = request.
|
|
114
|
-
var tmp0_safe_receiver = request.
|
|
115
|
-
return this.
|
|
112
|
+
static h5r(request) {
|
|
113
|
+
var tmp = request.q56_1.toString();
|
|
114
|
+
var tmp0_safe_receiver = request.i5r(HttpTimeoutCapability_instance);
|
|
115
|
+
return this.a5r(tmp, tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g5r());
|
|
116
116
|
}
|
|
117
117
|
o25() {
|
|
118
|
-
return HttpRequestTimeoutException().
|
|
118
|
+
return HttpRequestTimeoutException().a5r(this.x5q_1, this.y5q_1, this.cause);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
initMetadataForClass($, 'HttpRequestTimeoutException', VOID, VOID, [IOException(), CopyableThrowable()]);
|
|
@@ -137,7 +137,7 @@ function Companion() {
|
|
|
137
137
|
class $ {
|
|
138
138
|
constructor() {
|
|
139
139
|
Companion_instance = this;
|
|
140
|
-
this.
|
|
140
|
+
this.j5r_1 = new (Long())(-1, 2147483647);
|
|
141
141
|
var tmp = this;
|
|
142
142
|
// Inline function 'io.ktor.util.AttributeKey' call
|
|
143
143
|
var name = 'TimeoutConfiguration';
|
|
@@ -159,7 +159,7 @@ function Companion() {
|
|
|
159
159
|
}
|
|
160
160
|
var tmp$ret$0 = tmp_1;
|
|
161
161
|
var tmp$ret$1 = new (TypeInfo())(tmp_0, tmp$ret$0);
|
|
162
|
-
tmp.
|
|
162
|
+
tmp.k5r_1 = new (AttributeKey())(name, tmp$ret$1);
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
initMetadataForCompanion($);
|
|
@@ -175,43 +175,43 @@ function Companion_getInstance() {
|
|
|
175
175
|
}
|
|
176
176
|
function init_io_ktor_client_plugins_HttpTimeoutConfig(_this__u8e3s4) {
|
|
177
177
|
Companion_getInstance();
|
|
178
|
-
_this__u8e3s4.
|
|
179
|
-
_this__u8e3s4.
|
|
180
|
-
_this__u8e3s4.
|
|
178
|
+
_this__u8e3s4.d5r_1 = new (Long())(0, 0);
|
|
179
|
+
_this__u8e3s4.e5r_1 = new (Long())(0, 0);
|
|
180
|
+
_this__u8e3s4.f5r_1 = new (Long())(0, 0);
|
|
181
181
|
}
|
|
182
182
|
var HttpTimeoutConfigClass;
|
|
183
183
|
function HttpTimeoutConfig() {
|
|
184
184
|
if (HttpTimeoutConfigClass === VOID) {
|
|
185
185
|
class $ {
|
|
186
|
-
static
|
|
186
|
+
static l5r(requestTimeoutMillis, connectTimeoutMillis, socketTimeoutMillis) {
|
|
187
187
|
Companion_getInstance();
|
|
188
188
|
requestTimeoutMillis = requestTimeoutMillis === VOID ? null : requestTimeoutMillis;
|
|
189
189
|
connectTimeoutMillis = connectTimeoutMillis === VOID ? null : connectTimeoutMillis;
|
|
190
190
|
socketTimeoutMillis = socketTimeoutMillis === VOID ? null : socketTimeoutMillis;
|
|
191
191
|
var $this = createThis(this);
|
|
192
192
|
init_io_ktor_client_plugins_HttpTimeoutConfig($this);
|
|
193
|
-
$this.
|
|
194
|
-
$this.
|
|
195
|
-
$this.
|
|
193
|
+
$this.m5r(requestTimeoutMillis);
|
|
194
|
+
$this.n5r(connectTimeoutMillis);
|
|
195
|
+
$this.o5r(socketTimeoutMillis);
|
|
196
196
|
return $this;
|
|
197
197
|
}
|
|
198
|
-
|
|
199
|
-
this.
|
|
198
|
+
m5r(value) {
|
|
199
|
+
this.d5r_1 = checkTimeoutValue(this, value);
|
|
200
200
|
}
|
|
201
|
-
|
|
202
|
-
return this.
|
|
201
|
+
g5r() {
|
|
202
|
+
return this.d5r_1;
|
|
203
203
|
}
|
|
204
|
-
|
|
205
|
-
this.
|
|
204
|
+
n5r(value) {
|
|
205
|
+
this.e5r_1 = checkTimeoutValue(this, value);
|
|
206
206
|
}
|
|
207
|
-
|
|
208
|
-
return this.
|
|
207
|
+
p5r() {
|
|
208
|
+
return this.e5r_1;
|
|
209
209
|
}
|
|
210
|
-
|
|
211
|
-
this.
|
|
210
|
+
o5r(value) {
|
|
211
|
+
this.f5r_1 = checkTimeoutValue(this, value);
|
|
212
212
|
}
|
|
213
|
-
|
|
214
|
-
return this.
|
|
213
|
+
q5r() {
|
|
214
|
+
return this.f5r_1;
|
|
215
215
|
}
|
|
216
216
|
equals(other) {
|
|
217
217
|
if (this === other)
|
|
@@ -220,30 +220,30 @@ function HttpTimeoutConfig() {
|
|
|
220
220
|
return false;
|
|
221
221
|
if (!(other instanceof HttpTimeoutConfig()))
|
|
222
222
|
THROW_CCE();
|
|
223
|
-
if (!equals(this.
|
|
223
|
+
if (!equals(this.d5r_1, other.d5r_1))
|
|
224
224
|
return false;
|
|
225
|
-
if (!equals(this.
|
|
225
|
+
if (!equals(this.e5r_1, other.e5r_1))
|
|
226
226
|
return false;
|
|
227
|
-
if (!equals(this.
|
|
227
|
+
if (!equals(this.f5r_1, other.f5r_1))
|
|
228
228
|
return false;
|
|
229
229
|
return true;
|
|
230
230
|
}
|
|
231
231
|
hashCode() {
|
|
232
|
-
var tmp0_safe_receiver = this.
|
|
232
|
+
var tmp0_safe_receiver = this.d5r_1;
|
|
233
233
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.hashCode();
|
|
234
234
|
var result = tmp1_elvis_lhs == null ? 0 : tmp1_elvis_lhs;
|
|
235
235
|
var tmp = imul(31, result);
|
|
236
|
-
var tmp2_safe_receiver = this.
|
|
236
|
+
var tmp2_safe_receiver = this.e5r_1;
|
|
237
237
|
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.hashCode();
|
|
238
238
|
result = tmp + (tmp3_elvis_lhs == null ? 0 : tmp3_elvis_lhs) | 0;
|
|
239
239
|
var tmp_0 = imul(31, result);
|
|
240
|
-
var tmp4_safe_receiver = this.
|
|
240
|
+
var tmp4_safe_receiver = this.f5r_1;
|
|
241
241
|
var tmp5_elvis_lhs = tmp4_safe_receiver == null ? null : tmp4_safe_receiver.hashCode();
|
|
242
242
|
result = tmp_0 + (tmp5_elvis_lhs == null ? 0 : tmp5_elvis_lhs) | 0;
|
|
243
243
|
return result;
|
|
244
244
|
}
|
|
245
245
|
}
|
|
246
|
-
initMetadataForClass($, 'HttpTimeoutConfig', $.
|
|
246
|
+
initMetadataForClass($, 'HttpTimeoutConfig', $.l5r);
|
|
247
247
|
HttpTimeoutConfigClass = $;
|
|
248
248
|
}
|
|
249
249
|
return HttpTimeoutConfigClass;
|
|
@@ -252,14 +252,14 @@ function get_supportsRequestTimeout(_this__u8e3s4) {
|
|
|
252
252
|
_init_properties_HttpTimeout_kt__pucqrr();
|
|
253
253
|
var tmp;
|
|
254
254
|
var tmp_0;
|
|
255
|
-
if (!isWebsocket(_this__u8e3s4.
|
|
256
|
-
var tmp_1 = _this__u8e3s4.
|
|
255
|
+
if (!isWebsocket(_this__u8e3s4.n50_1.n49())) {
|
|
256
|
+
var tmp_1 = _this__u8e3s4.q50_1;
|
|
257
257
|
tmp_0 = !(tmp_1 instanceof ClientUpgradeContent());
|
|
258
258
|
} else {
|
|
259
259
|
tmp_0 = false;
|
|
260
260
|
}
|
|
261
261
|
if (tmp_0) {
|
|
262
|
-
var tmp_2 = _this__u8e3s4.
|
|
262
|
+
var tmp_2 = _this__u8e3s4.q50_1;
|
|
263
263
|
tmp = !(tmp_2 instanceof SSEClientContent());
|
|
264
264
|
} else {
|
|
265
265
|
tmp = false;
|
|
@@ -270,40 +270,40 @@ function applyRequestTimeout(_this__u8e3s4, request, requestTimeout) {
|
|
|
270
270
|
_init_properties_HttpTimeout_kt__pucqrr();
|
|
271
271
|
if (requestTimeout == null || equals(requestTimeout, new (Long())(-1, 2147483647)))
|
|
272
272
|
return Unit_instance;
|
|
273
|
-
var executionContext = request.
|
|
273
|
+
var executionContext = request.r50_1;
|
|
274
274
|
var tmp = new (CoroutineName())('request-timeout');
|
|
275
275
|
var killer = launch(_this__u8e3s4, tmp, VOID, applyRequestTimeout$slambda_0(requestTimeout, request, executionContext, null));
|
|
276
|
-
var tmp_0 = request.
|
|
276
|
+
var tmp_0 = request.r50_1;
|
|
277
277
|
tmp_0.v1y(applyRequestTimeout$lambda(killer));
|
|
278
278
|
}
|
|
279
279
|
function ConnectTimeoutException_0(request, cause) {
|
|
280
280
|
cause = cause === VOID ? null : cause;
|
|
281
281
|
_init_properties_HttpTimeout_kt__pucqrr();
|
|
282
|
-
var tmp = 'Connect timeout has expired [url=' + request.
|
|
283
|
-
var tmp0_safe_receiver = request.
|
|
284
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
285
|
-
return ConnectTimeoutException().
|
|
282
|
+
var tmp = 'Connect timeout has expired [url=' + request.q56_1.toString() + ', ';
|
|
283
|
+
var tmp0_safe_receiver = request.i5r(HttpTimeoutCapability_instance);
|
|
284
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.p5r();
|
|
285
|
+
return ConnectTimeoutException().u5r(tmp + ('connect_timeout=' + toString(tmp1_elvis_lhs == null ? 'unknown' : tmp1_elvis_lhs) + ' ms]'), cause);
|
|
286
286
|
}
|
|
287
287
|
function timeout(_this__u8e3s4, block) {
|
|
288
288
|
_init_properties_HttpTimeout_kt__pucqrr();
|
|
289
289
|
var tmp = HttpTimeoutCapability_instance;
|
|
290
290
|
// Inline function 'kotlin.apply' call
|
|
291
|
-
var this_0 = HttpTimeoutConfig().
|
|
291
|
+
var this_0 = HttpTimeoutConfig().l5r();
|
|
292
292
|
block(this_0);
|
|
293
|
-
return _this__u8e3s4.
|
|
293
|
+
return _this__u8e3s4.v5r(tmp, this_0);
|
|
294
294
|
}
|
|
295
295
|
function HttpTimeoutConfig$_init_$ref_dl1k0m() {
|
|
296
296
|
return function () {
|
|
297
|
-
return HttpTimeoutConfig().
|
|
297
|
+
return HttpTimeoutConfig().l5r();
|
|
298
298
|
};
|
|
299
299
|
}
|
|
300
300
|
function HttpTimeout$lambda($this$createClientPlugin) {
|
|
301
301
|
_init_properties_HttpTimeout_kt__pucqrr();
|
|
302
|
-
var requestTimeoutMillis = $this$createClientPlugin.
|
|
303
|
-
var connectTimeoutMillis = $this$createClientPlugin.
|
|
304
|
-
var socketTimeoutMillis = $this$createClientPlugin.
|
|
302
|
+
var requestTimeoutMillis = $this$createClientPlugin.i5a_1.g5r();
|
|
303
|
+
var connectTimeoutMillis = $this$createClientPlugin.i5a_1.p5r();
|
|
304
|
+
var socketTimeoutMillis = $this$createClientPlugin.i5a_1.q5r();
|
|
305
305
|
var tmp = Send_instance;
|
|
306
|
-
$this$createClientPlugin.
|
|
306
|
+
$this$createClientPlugin.l5a(tmp, HttpTimeout$lambda$slambda_0(connectTimeoutMillis, socketTimeoutMillis, requestTimeoutMillis, null));
|
|
307
307
|
return Unit_instance;
|
|
308
308
|
}
|
|
309
309
|
function invoke$hasNotNullTimeouts(requestTimeoutMillis, connectTimeoutMillis, socketTimeoutMillis, supportsRequestTimeout) {
|
|
@@ -316,20 +316,20 @@ function HttpTimeout$lambda$slambda() {
|
|
|
316
316
|
constructor($connectTimeoutMillis, $socketTimeoutMillis, $requestTimeoutMillis, resultContinuation, $box) {
|
|
317
317
|
if ($box === VOID)
|
|
318
318
|
$box = {};
|
|
319
|
-
$box.
|
|
320
|
-
$box.
|
|
321
|
-
$box.
|
|
319
|
+
$box.e5s_1 = $connectTimeoutMillis;
|
|
320
|
+
$box.f5s_1 = $socketTimeoutMillis;
|
|
321
|
+
$box.g5s_1 = $requestTimeoutMillis;
|
|
322
322
|
super(resultContinuation, $box);
|
|
323
323
|
}
|
|
324
|
-
|
|
325
|
-
var tmp = this.
|
|
324
|
+
a5j($this$on, request, $completion) {
|
|
325
|
+
var tmp = this.b5j($this$on, request, $completion);
|
|
326
326
|
tmp.cc_1 = Unit_instance;
|
|
327
327
|
tmp.dc_1 = null;
|
|
328
328
|
return tmp.ic();
|
|
329
329
|
}
|
|
330
330
|
ld(p1, p2, $completion) {
|
|
331
331
|
var tmp = p1 instanceof Sender() ? p1 : THROW_CCE();
|
|
332
|
-
return this.
|
|
332
|
+
return this.a5j(tmp, p2 instanceof HttpRequestBuilder() ? p2 : THROW_CCE(), $completion);
|
|
333
333
|
}
|
|
334
334
|
ic() {
|
|
335
335
|
var suspendResult = this.cc_1;
|
|
@@ -339,30 +339,30 @@ function HttpTimeout$lambda$slambda() {
|
|
|
339
339
|
switch (tmp) {
|
|
340
340
|
case 0:
|
|
341
341
|
this.bc_1 = 2;
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
344
|
-
if (this.
|
|
345
|
-
this.
|
|
346
|
-
this.
|
|
342
|
+
this.j5s_1 = get_supportsRequestTimeout(this.i5s_1);
|
|
343
|
+
this.k5s_1 = this.i5s_1.c5r(HttpTimeoutCapability_instance);
|
|
344
|
+
if (this.k5s_1 == null && invoke$hasNotNullTimeouts(this.g5s_1, this.e5s_1, this.f5s_1, this.j5s_1)) {
|
|
345
|
+
this.k5s_1 = HttpTimeoutConfig().l5r();
|
|
346
|
+
this.i5s_1.v5r(HttpTimeoutCapability_instance, this.k5s_1);
|
|
347
347
|
}
|
|
348
348
|
|
|
349
|
-
var tmp0_safe_receiver = this.
|
|
349
|
+
var tmp0_safe_receiver = this.k5s_1;
|
|
350
350
|
if (tmp0_safe_receiver == null)
|
|
351
351
|
null;
|
|
352
352
|
else {
|
|
353
|
-
var tmp0_elvis_lhs = tmp0_safe_receiver.
|
|
354
|
-
tmp0_safe_receiver.
|
|
355
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver.
|
|
356
|
-
tmp0_safe_receiver.
|
|
357
|
-
if (this.
|
|
358
|
-
var tmp2_elvis_lhs = tmp0_safe_receiver.
|
|
359
|
-
tmp0_safe_receiver.
|
|
360
|
-
applyRequestTimeout(this.
|
|
353
|
+
var tmp0_elvis_lhs = tmp0_safe_receiver.p5r();
|
|
354
|
+
tmp0_safe_receiver.n5r(tmp0_elvis_lhs == null ? this.e5s_1 : tmp0_elvis_lhs);
|
|
355
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver.q5r();
|
|
356
|
+
tmp0_safe_receiver.o5r(tmp1_elvis_lhs == null ? this.f5s_1 : tmp1_elvis_lhs);
|
|
357
|
+
if (this.j5s_1) {
|
|
358
|
+
var tmp2_elvis_lhs = tmp0_safe_receiver.g5r();
|
|
359
|
+
tmp0_safe_receiver.m5r(tmp2_elvis_lhs == null ? this.g5s_1 : tmp2_elvis_lhs);
|
|
360
|
+
applyRequestTimeout(this.h5s_1, this.i5s_1, tmp0_safe_receiver.g5r());
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
this.ac_1 = 1;
|
|
365
|
-
suspendResult = this.
|
|
365
|
+
suspendResult = this.h5s_1.e5j(this.i5s_1, this);
|
|
366
366
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
367
367
|
return suspendResult;
|
|
368
368
|
}
|
|
@@ -384,10 +384,10 @@ function HttpTimeout$lambda$slambda() {
|
|
|
384
384
|
}
|
|
385
385
|
while (true);
|
|
386
386
|
}
|
|
387
|
-
|
|
388
|
-
var i = new (HttpTimeout$lambda$slambda())(this.
|
|
389
|
-
i.
|
|
390
|
-
i.
|
|
387
|
+
b5j($this$on, request, completion) {
|
|
388
|
+
var i = new (HttpTimeout$lambda$slambda())(this.e5s_1, this.f5s_1, this.g5s_1, completion);
|
|
389
|
+
i.h5s_1 = $this$on;
|
|
390
|
+
i.i5s_1 = request;
|
|
391
391
|
return i;
|
|
392
392
|
}
|
|
393
393
|
}
|
|
@@ -399,7 +399,7 @@ function HttpTimeout$lambda$slambda() {
|
|
|
399
399
|
function HttpTimeout$lambda$slambda_0($connectTimeoutMillis, $socketTimeoutMillis, $requestTimeoutMillis, resultContinuation) {
|
|
400
400
|
var i = new (HttpTimeout$lambda$slambda())($connectTimeoutMillis, $socketTimeoutMillis, $requestTimeoutMillis, resultContinuation);
|
|
401
401
|
var l = function ($this$on, request, $completion) {
|
|
402
|
-
return i.
|
|
402
|
+
return i.a5j($this$on, request, $completion);
|
|
403
403
|
};
|
|
404
404
|
l.$arity = 2;
|
|
405
405
|
return l;
|
|
@@ -411,19 +411,19 @@ function applyRequestTimeout$slambda() {
|
|
|
411
411
|
constructor($requestTimeout, $request, $executionContext, resultContinuation, $box) {
|
|
412
412
|
if ($box === VOID)
|
|
413
413
|
$box = {};
|
|
414
|
-
$box.
|
|
415
|
-
$box.
|
|
416
|
-
$box.
|
|
414
|
+
$box.t5s_1 = $requestTimeout;
|
|
415
|
+
$box.u5s_1 = $request;
|
|
416
|
+
$box.v5s_1 = $executionContext;
|
|
417
417
|
super(resultContinuation, $box);
|
|
418
418
|
}
|
|
419
|
-
|
|
420
|
-
var tmp = this.
|
|
419
|
+
z37($this$launch, $completion) {
|
|
420
|
+
var tmp = this.d36($this$launch, $completion);
|
|
421
421
|
tmp.cc_1 = Unit_instance;
|
|
422
422
|
tmp.dc_1 = null;
|
|
423
423
|
return tmp.ic();
|
|
424
424
|
}
|
|
425
425
|
kd(p1, $completion) {
|
|
426
|
-
return this.
|
|
426
|
+
return this.z37((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
|
|
427
427
|
}
|
|
428
428
|
ic() {
|
|
429
429
|
var suspendResult = this.cc_1;
|
|
@@ -434,20 +434,20 @@ function applyRequestTimeout$slambda() {
|
|
|
434
434
|
case 0:
|
|
435
435
|
this.bc_1 = 2;
|
|
436
436
|
this.ac_1 = 1;
|
|
437
|
-
suspendResult = delay(this.
|
|
437
|
+
suspendResult = delay(this.t5s_1, this);
|
|
438
438
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
439
439
|
return suspendResult;
|
|
440
440
|
}
|
|
441
441
|
|
|
442
442
|
continue $sm;
|
|
443
443
|
case 1:
|
|
444
|
-
var cause = HttpRequestTimeoutException().
|
|
444
|
+
var cause = HttpRequestTimeoutException().b5r(this.u5s_1);
|
|
445
445
|
var this_0 = get_LOGGER();
|
|
446
446
|
if (get_isTraceEnabled(this_0)) {
|
|
447
|
-
this_0.
|
|
447
|
+
this_0.g3y('Request timeout: ' + this.u5s_1.n50_1.toString());
|
|
448
448
|
}
|
|
449
449
|
|
|
450
|
-
cancel(this.
|
|
450
|
+
cancel(this.v5s_1, ensureNotNull(cause.message), cause);
|
|
451
451
|
return Unit_instance;
|
|
452
452
|
case 2:
|
|
453
453
|
throw this.dc_1;
|
|
@@ -463,9 +463,9 @@ function applyRequestTimeout$slambda() {
|
|
|
463
463
|
}
|
|
464
464
|
while (true);
|
|
465
465
|
}
|
|
466
|
-
|
|
467
|
-
var i = new (applyRequestTimeout$slambda())(this.
|
|
468
|
-
i.
|
|
466
|
+
d36($this$launch, completion) {
|
|
467
|
+
var i = new (applyRequestTimeout$slambda())(this.t5s_1, this.u5s_1, this.v5s_1, completion);
|
|
468
|
+
i.w5s_1 = $this$launch;
|
|
469
469
|
return i;
|
|
470
470
|
}
|
|
471
471
|
}
|
|
@@ -477,7 +477,7 @@ function applyRequestTimeout$slambda() {
|
|
|
477
477
|
function applyRequestTimeout$slambda_0($requestTimeout, $request, $executionContext, resultContinuation) {
|
|
478
478
|
var i = new (applyRequestTimeout$slambda())($requestTimeout, $request, $executionContext, resultContinuation);
|
|
479
479
|
var l = function ($this$launch, $completion) {
|
|
480
|
-
return i.
|
|
480
|
+
return i.z37($this$launch, $completion);
|
|
481
481
|
};
|
|
482
482
|
l.$arity = 1;
|
|
483
483
|
return l;
|
|
@@ -66,14 +66,14 @@ var SaveBody;
|
|
|
66
66
|
var SaveBodyPlugin;
|
|
67
67
|
function get_isSaved(_this__u8e3s4) {
|
|
68
68
|
_init_properties_SaveBody_kt__lbc3fj();
|
|
69
|
-
return _this__u8e3s4.
|
|
69
|
+
return _this__u8e3s4.l52().f52().t3r(get_RESPONSE_BODY_SAVED());
|
|
70
70
|
}
|
|
71
71
|
var SaveBodyPluginConfigClass;
|
|
72
72
|
function SaveBodyPluginConfig() {
|
|
73
73
|
if (SaveBodyPluginConfigClass === VOID) {
|
|
74
74
|
class $ {
|
|
75
75
|
constructor() {
|
|
76
|
-
this.
|
|
76
|
+
this.x5s_1 = false;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
initMetadataForClass($, 'SaveBodyPluginConfig', SaveBodyPluginConfig);
|
|
@@ -83,7 +83,7 @@ function SaveBodyPluginConfig() {
|
|
|
83
83
|
}
|
|
84
84
|
function skipSaveBody(_this__u8e3s4) {
|
|
85
85
|
_init_properties_SaveBody_kt__lbc3fj();
|
|
86
|
-
_this__u8e3s4.
|
|
86
|
+
_this__u8e3s4.s50_1.u3r(get_SKIP_SAVE_BODY(), Unit_instance);
|
|
87
87
|
}
|
|
88
88
|
function LOGGER$delegate$lambda() {
|
|
89
89
|
_init_properties_SaveBody_kt__lbc3fj();
|
|
@@ -96,23 +96,23 @@ function _get_LOGGER_$ref_77hhxy() {
|
|
|
96
96
|
}
|
|
97
97
|
function SaveBody$lambda($this$createClientPlugin) {
|
|
98
98
|
_init_properties_SaveBody_kt__lbc3fj();
|
|
99
|
-
var tmp = Phases_getInstance().
|
|
100
|
-
$this$createClientPlugin.
|
|
99
|
+
var tmp = Phases_getInstance().d5a_1;
|
|
100
|
+
$this$createClientPlugin.h5a_1.p4y_1.z3w(tmp, SaveBody$lambda$slambda_0(null));
|
|
101
101
|
return Unit_instance;
|
|
102
102
|
}
|
|
103
103
|
var SaveBody$lambda$slambdaClass;
|
|
104
104
|
function SaveBody$lambda$slambda() {
|
|
105
105
|
if (SaveBody$lambda$slambdaClass === VOID) {
|
|
106
106
|
class $ extends CoroutineImpl() {
|
|
107
|
-
|
|
108
|
-
var tmp = this.
|
|
107
|
+
a5a($this$intercept, response, $completion) {
|
|
108
|
+
var tmp = this.b5a($this$intercept, response, $completion);
|
|
109
109
|
tmp.cc_1 = Unit_instance;
|
|
110
110
|
tmp.dc_1 = null;
|
|
111
111
|
return tmp.ic();
|
|
112
112
|
}
|
|
113
113
|
ld(p1, p2, $completion) {
|
|
114
114
|
var tmp = p1 instanceof PipelineContext() ? p1 : THROW_CCE();
|
|
115
|
-
return this.
|
|
115
|
+
return this.a5a(tmp, p2 instanceof HttpResponse() ? p2 : THROW_CCE(), $completion);
|
|
116
116
|
}
|
|
117
117
|
ic() {
|
|
118
118
|
var suspendResult = this.cc_1;
|
|
@@ -122,12 +122,12 @@ function SaveBody$lambda$slambda() {
|
|
|
122
122
|
switch (tmp) {
|
|
123
123
|
case 0:
|
|
124
124
|
this.bc_1 = 6;
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
127
|
-
if (this.
|
|
125
|
+
this.i5t_1 = this.h5t_1.l52();
|
|
126
|
+
this.j5t_1 = this.i5t_1.f52();
|
|
127
|
+
if (this.j5t_1.t3r(get_SKIP_SAVE_BODY())) {
|
|
128
128
|
var this_0 = get_LOGGER();
|
|
129
129
|
if (get_isTraceEnabled(this_0)) {
|
|
130
|
-
this_0.
|
|
130
|
+
this_0.g3y('Skipping body saving for ' + this.i5t_1.e52().n52().toString());
|
|
131
131
|
}
|
|
132
132
|
return Unit_instance;
|
|
133
133
|
}
|
|
@@ -138,29 +138,29 @@ function SaveBody$lambda$slambda() {
|
|
|
138
138
|
this.bc_1 = 5;
|
|
139
139
|
var this_1 = get_LOGGER();
|
|
140
140
|
if (get_isTraceEnabled(this_1)) {
|
|
141
|
-
this_1.
|
|
141
|
+
this_1.g3y('Saving body for ' + this.i5t_1.e52().n52().toString());
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
this.ac_1 = 2;
|
|
145
|
-
suspendResult = save(this.
|
|
145
|
+
suspendResult = save(this.i5t_1, this);
|
|
146
146
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
147
147
|
return suspendResult;
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
continue $sm;
|
|
151
151
|
case 2:
|
|
152
|
-
this.
|
|
153
|
-
this.
|
|
152
|
+
this.l5t_1 = suspendResult;
|
|
153
|
+
this.k5t_1 = this.l5t_1.n4z();
|
|
154
154
|
this.bc_1 = 6;
|
|
155
155
|
this.ac_1 = 3;
|
|
156
156
|
continue $sm;
|
|
157
157
|
case 3:
|
|
158
|
-
this.
|
|
158
|
+
this.m5t_1 = this.k5t_1;
|
|
159
159
|
this.bc_1 = 6;
|
|
160
|
-
this.
|
|
160
|
+
this.g5t_1;
|
|
161
161
|
var tmp_0;
|
|
162
162
|
try {
|
|
163
|
-
cancel(this.
|
|
163
|
+
cancel(this.h5t_1.t52());
|
|
164
164
|
tmp_0 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
165
165
|
} catch ($p) {
|
|
166
166
|
var tmp_1;
|
|
@@ -178,13 +178,13 @@ function SaveBody$lambda$slambda() {
|
|
|
178
178
|
if (tmp0_safe_receiver == null)
|
|
179
179
|
null;
|
|
180
180
|
else {
|
|
181
|
-
get_LOGGER().
|
|
181
|
+
get_LOGGER().f3y('Failed to cancel response body', tmp0_safe_receiver);
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
this.
|
|
185
|
-
this.
|
|
184
|
+
this.n5t_1 = this.m5t_1;
|
|
185
|
+
this.j5t_1.u3r(get_RESPONSE_BODY_SAVED(), Unit_instance);
|
|
186
186
|
this.ac_1 = 4;
|
|
187
|
-
suspendResult = this.
|
|
187
|
+
suspendResult = this.g5t_1.x3v(this.n5t_1, this);
|
|
188
188
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
189
189
|
return suspendResult;
|
|
190
190
|
}
|
|
@@ -195,10 +195,10 @@ function SaveBody$lambda$slambda() {
|
|
|
195
195
|
case 5:
|
|
196
196
|
this.bc_1 = 6;
|
|
197
197
|
var t = this.dc_1;
|
|
198
|
-
this.
|
|
198
|
+
this.g5t_1;
|
|
199
199
|
var tmp_2;
|
|
200
200
|
try {
|
|
201
|
-
cancel(this.
|
|
201
|
+
cancel(this.h5t_1.t52());
|
|
202
202
|
tmp_2 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
203
203
|
} catch ($p) {
|
|
204
204
|
var tmp_3;
|
|
@@ -216,7 +216,7 @@ function SaveBody$lambda$slambda() {
|
|
|
216
216
|
if (tmp0_safe_receiver_0 == null)
|
|
217
217
|
null;
|
|
218
218
|
else {
|
|
219
|
-
get_LOGGER().
|
|
219
|
+
get_LOGGER().f3y('Failed to cancel response body', tmp0_safe_receiver_0);
|
|
220
220
|
}
|
|
221
221
|
|
|
222
222
|
throw t;
|
|
@@ -234,10 +234,10 @@ function SaveBody$lambda$slambda() {
|
|
|
234
234
|
}
|
|
235
235
|
while (true);
|
|
236
236
|
}
|
|
237
|
-
|
|
237
|
+
b5a($this$intercept, response, completion) {
|
|
238
238
|
var i = new (SaveBody$lambda$slambda())(completion);
|
|
239
|
-
i.
|
|
240
|
-
i.
|
|
239
|
+
i.g5t_1 = $this$intercept;
|
|
240
|
+
i.h5t_1 = response;
|
|
241
241
|
return i;
|
|
242
242
|
}
|
|
243
243
|
}
|
|
@@ -249,7 +249,7 @@ function SaveBody$lambda$slambda() {
|
|
|
249
249
|
function SaveBody$lambda$slambda_0(resultContinuation) {
|
|
250
250
|
var i = new (SaveBody$lambda$slambda())(resultContinuation);
|
|
251
251
|
var l = function ($this$intercept, response, $completion) {
|
|
252
|
-
return i.
|
|
252
|
+
return i.a5a($this$intercept, response, $completion);
|
|
253
253
|
};
|
|
254
254
|
l.$arity = 2;
|
|
255
255
|
return l;
|
|
@@ -263,10 +263,10 @@ function SaveBodyPluginConfig$_init_$ref_lwjaof() {
|
|
|
263
263
|
}
|
|
264
264
|
function SaveBodyPlugin$lambda($this$createClientPlugin) {
|
|
265
265
|
_init_properties_SaveBody_kt__lbc3fj();
|
|
266
|
-
if ($this$createClientPlugin.
|
|
267
|
-
get_LOGGER().
|
|
266
|
+
if ($this$createClientPlugin.i5a_1.x5s_1) {
|
|
267
|
+
get_LOGGER().e3y('It is no longer possible to disable body saving for all requests. Use client.prepareRequest(...).execute { ... } syntax to prevent saving the body in memory.\n\nThis API is deprecated and will be removed in Ktor 4.0.0\nIf you were relying on this functionality, share your use case by commenting on this issue: https://youtrack.jetbrains.com/issue/KTOR-8367/');
|
|
268
268
|
} else {
|
|
269
|
-
get_LOGGER().
|
|
269
|
+
get_LOGGER().e3y('The SaveBodyPlugin plugin is deprecated and can be safely removed. Request bodies are now saved in memory by default for all non-streaming responses.');
|
|
270
270
|
}
|
|
271
271
|
return Unit_instance;
|
|
272
272
|
}
|
|
@@ -9,11 +9,11 @@ function HookHandler() {
|
|
|
9
9
|
if (HookHandlerClass === VOID) {
|
|
10
10
|
class $ {
|
|
11
11
|
constructor(hook, handler) {
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
12
|
+
this.o5t_1 = hook;
|
|
13
|
+
this.p5t_1 = handler;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
this.
|
|
15
|
+
v50(client) {
|
|
16
|
+
this.o5t_1.n59(client, this.p5t_1);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
initMetadataForClass($, 'HookHandler');
|
|
@@ -19,23 +19,23 @@ function ClientPluginBuilder() {
|
|
|
19
19
|
if (ClientPluginBuilderClass === VOID) {
|
|
20
20
|
class $ {
|
|
21
21
|
constructor(key, client, pluginConfig) {
|
|
22
|
-
this.
|
|
23
|
-
this.
|
|
24
|
-
this.
|
|
22
|
+
this.g5a_1 = key;
|
|
23
|
+
this.h5a_1 = client;
|
|
24
|
+
this.i5a_1 = pluginConfig;
|
|
25
25
|
var tmp = this;
|
|
26
26
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
27
|
-
tmp.
|
|
27
|
+
tmp.j5a_1 = ArrayList().l1();
|
|
28
28
|
var tmp_0 = this;
|
|
29
|
-
tmp_0.
|
|
29
|
+
tmp_0.k5a_1 = ClientPluginBuilder$onClose$lambda;
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
this.
|
|
31
|
+
q5t(block) {
|
|
32
|
+
this.l5a(TransformRequestBodyHook_instance, block);
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
this.
|
|
34
|
+
d5l(block) {
|
|
35
|
+
this.l5a(TransformResponseBodyHook_instance, block);
|
|
36
36
|
}
|
|
37
|
-
|
|
38
|
-
this.
|
|
37
|
+
l5a(hook, handler) {
|
|
38
|
+
this.j5a_1.m(new (HookHandler())(hook, handler));
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
initMetadataForClass($, 'ClientPluginBuilder');
|