@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
|
@@ -115,9 +115,9 @@ function ConverterRegistration() {
|
|
|
115
115
|
if (ConverterRegistrationClass === VOID) {
|
|
116
116
|
class $ {
|
|
117
117
|
constructor(converter, contentTypeToSend, contentTypeMatcher) {
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
120
|
-
this.
|
|
118
|
+
this.f68_1 = converter;
|
|
119
|
+
this.g68_1 = contentTypeToSend;
|
|
120
|
+
this.h68_1 = contentTypeMatcher;
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
initMetadataForClass($, 'ConverterRegistration');
|
|
@@ -133,10 +133,10 @@ function ContentNegotiationConfig$defaultMatcher$1() {
|
|
|
133
133
|
if (ContentNegotiationConfig$defaultMatcher$1Class === VOID) {
|
|
134
134
|
class $ {
|
|
135
135
|
constructor($pattern) {
|
|
136
|
-
this.
|
|
136
|
+
this.i68_1 = $pattern;
|
|
137
137
|
}
|
|
138
|
-
|
|
139
|
-
return contentType.
|
|
138
|
+
j68(contentType) {
|
|
139
|
+
return contentType.b41(this.i68_1);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
initMetadataForClass($);
|
|
@@ -149,24 +149,24 @@ function ContentNegotiationConfig() {
|
|
|
149
149
|
if (ContentNegotiationConfigClass === VOID) {
|
|
150
150
|
class $ {
|
|
151
151
|
constructor() {
|
|
152
|
-
this.
|
|
152
|
+
this.k68_1 = toMutableSet(plus(get_DefaultIgnoredTypes(), get_DefaultCommonIgnoredTypes()));
|
|
153
153
|
var tmp = this;
|
|
154
154
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
155
|
-
tmp.
|
|
156
|
-
this.
|
|
155
|
+
tmp.l68_1 = ArrayList().l1();
|
|
156
|
+
this.m68_1 = null;
|
|
157
157
|
}
|
|
158
|
-
|
|
159
|
-
var matcher = contentType.
|
|
160
|
-
this.
|
|
158
|
+
b4w(contentType, converter, configuration) {
|
|
159
|
+
var matcher = contentType.b41(Application_getInstance().i3z_1) ? JsonContentTypeMatcher_instance : defaultMatcher(this, contentType);
|
|
160
|
+
this.n68(contentType, converter, matcher, configuration);
|
|
161
161
|
}
|
|
162
|
-
|
|
162
|
+
n68(contentTypeToSend, converter, contentTypeMatcher, configuration) {
|
|
163
163
|
// Inline function 'kotlin.apply' call
|
|
164
164
|
configuration(converter);
|
|
165
165
|
var registration = new (ConverterRegistration())(converter, contentTypeToSend, contentTypeMatcher);
|
|
166
|
-
this.
|
|
166
|
+
this.l68_1.m(registration);
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
|
-
protoOf($).
|
|
169
|
+
protoOf($).c4w = register$default;
|
|
170
170
|
initMetadataForClass($, 'ContentNegotiationConfig', ContentNegotiationConfig, VOID, [Configuration()]);
|
|
171
171
|
ContentNegotiationConfigClass = $;
|
|
172
172
|
}
|
|
@@ -176,9 +176,9 @@ var ContentConverterExceptionClass;
|
|
|
176
176
|
function ContentConverterException() {
|
|
177
177
|
if (ContentConverterExceptionClass === VOID) {
|
|
178
178
|
class $ extends Exception() {
|
|
179
|
-
static
|
|
179
|
+
static q68(message) {
|
|
180
180
|
var $this = this.g5(message);
|
|
181
|
-
captureStack($this, $this.
|
|
181
|
+
captureStack($this, $this.p68_1);
|
|
182
182
|
return $this;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
@@ -196,10 +196,10 @@ function ContentNegotiationConfig$_init_$ref_1ne3ob() {
|
|
|
196
196
|
}
|
|
197
197
|
function ContentNegotiation$lambda($this$createClientPlugin) {
|
|
198
198
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
199
|
-
var registrations = $this$createClientPlugin.
|
|
200
|
-
var ignoredTypes = $this$createClientPlugin.
|
|
201
|
-
$this$createClientPlugin.
|
|
202
|
-
$this$createClientPlugin.
|
|
199
|
+
var registrations = $this$createClientPlugin.i5a_1.l68_1;
|
|
200
|
+
var ignoredTypes = $this$createClientPlugin.i5a_1.k68_1;
|
|
201
|
+
$this$createClientPlugin.q5t(ContentNegotiation$lambda$slambda_0(registrations, $this$createClientPlugin, ignoredTypes, null));
|
|
202
|
+
$this$createClientPlugin.d5l(ContentNegotiation$lambda$slambda_2(ignoredTypes, registrations, $this$createClientPlugin, null));
|
|
203
203
|
return Unit_instance;
|
|
204
204
|
}
|
|
205
205
|
function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredTypes, request, body, $completion) {
|
|
@@ -209,7 +209,7 @@ function invoke$convertRequest(registrations, $this_createClientPlugin, ignoredT
|
|
|
209
209
|
return tmp.ic();
|
|
210
210
|
}
|
|
211
211
|
function invoke$convertResponse(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion) {
|
|
212
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
212
|
+
charset = charset === VOID ? Charsets_getInstance().m3q_1 : charset;
|
|
213
213
|
var tmp = new ($invoke$convertResponseCOROUTINE$())(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, $completion);
|
|
214
214
|
tmp.cc_1 = Unit_instance;
|
|
215
215
|
tmp.dc_1 = null;
|
|
@@ -222,22 +222,22 @@ function ContentNegotiation$lambda$slambda() {
|
|
|
222
222
|
constructor($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation, $box) {
|
|
223
223
|
if ($box === VOID)
|
|
224
224
|
$box = {};
|
|
225
|
-
$box.
|
|
226
|
-
$box.
|
|
227
|
-
$box.
|
|
225
|
+
$box.o6a_1 = $registrations;
|
|
226
|
+
$box.p6a_1 = $this_createClientPlugin;
|
|
227
|
+
$box.q6a_1 = $ignoredTypes;
|
|
228
228
|
super(resultContinuation, $box);
|
|
229
229
|
}
|
|
230
|
-
|
|
231
|
-
var tmp = this.
|
|
230
|
+
v6a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
231
|
+
var tmp = this.w6a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
232
232
|
tmp.cc_1 = Unit_instance;
|
|
233
233
|
tmp.dc_1 = null;
|
|
234
234
|
return tmp.ic();
|
|
235
235
|
}
|
|
236
|
-
|
|
236
|
+
i5m(p1, p2, p3, p4, $completion) {
|
|
237
237
|
var tmp = p1 instanceof TransformRequestBodyContext() ? p1 : THROW_CCE();
|
|
238
238
|
var tmp_0 = p2 instanceof HttpRequestBuilder() ? p2 : THROW_CCE();
|
|
239
239
|
var tmp_1 = !(p3 == null) ? p3 : THROW_CCE();
|
|
240
|
-
return this.
|
|
240
|
+
return this.v6a(tmp, tmp_0, tmp_1, (p4 == null ? true : p4 instanceof TypeInfo()) ? p4 : THROW_CCE(), $completion);
|
|
241
241
|
}
|
|
242
242
|
ic() {
|
|
243
243
|
var suspendResult = this.cc_1;
|
|
@@ -248,7 +248,7 @@ function ContentNegotiation$lambda$slambda() {
|
|
|
248
248
|
case 0:
|
|
249
249
|
this.bc_1 = 2;
|
|
250
250
|
this.ac_1 = 1;
|
|
251
|
-
suspendResult = invoke$convertRequest(this.
|
|
251
|
+
suspendResult = invoke$convertRequest(this.o6a_1, this.p6a_1, this.q6a_1, this.s6a_1, this.t6a_1, this);
|
|
252
252
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
253
253
|
return suspendResult;
|
|
254
254
|
}
|
|
@@ -270,12 +270,12 @@ function ContentNegotiation$lambda$slambda() {
|
|
|
270
270
|
}
|
|
271
271
|
while (true);
|
|
272
272
|
}
|
|
273
|
-
|
|
274
|
-
var i = new (ContentNegotiation$lambda$slambda())(this.
|
|
275
|
-
i.
|
|
276
|
-
i.
|
|
277
|
-
i.
|
|
278
|
-
i.
|
|
273
|
+
w6a($this$transformRequestBody, request, body, _unused_var__etf5q3, completion) {
|
|
274
|
+
var i = new (ContentNegotiation$lambda$slambda())(this.o6a_1, this.p6a_1, this.q6a_1, completion);
|
|
275
|
+
i.r6a_1 = $this$transformRequestBody;
|
|
276
|
+
i.s6a_1 = request;
|
|
277
|
+
i.t6a_1 = body;
|
|
278
|
+
i.u6a_1 = _unused_var__etf5q3;
|
|
279
279
|
return i;
|
|
280
280
|
}
|
|
281
281
|
}
|
|
@@ -287,7 +287,7 @@ function ContentNegotiation$lambda$slambda() {
|
|
|
287
287
|
function ContentNegotiation$lambda$slambda_0($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation) {
|
|
288
288
|
var i = new (ContentNegotiation$lambda$slambda())($registrations, $this_createClientPlugin, $ignoredTypes, resultContinuation);
|
|
289
289
|
var l = function ($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion) {
|
|
290
|
-
return i.
|
|
290
|
+
return i.v6a($this$transformRequestBody, request, body, _unused_var__etf5q3, $completion);
|
|
291
291
|
};
|
|
292
292
|
l.$arity = 4;
|
|
293
293
|
return l;
|
|
@@ -299,22 +299,22 @@ function ContentNegotiation$lambda$slambda_1() {
|
|
|
299
299
|
constructor($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation, $box) {
|
|
300
300
|
if ($box === VOID)
|
|
301
301
|
$box = {};
|
|
302
|
-
$box.
|
|
303
|
-
$box.
|
|
304
|
-
$box.
|
|
302
|
+
$box.f6b_1 = $ignoredTypes;
|
|
303
|
+
$box.g6b_1 = $registrations;
|
|
304
|
+
$box.h6b_1 = $this_createClientPlugin;
|
|
305
305
|
super(resultContinuation, $box);
|
|
306
306
|
}
|
|
307
|
-
|
|
308
|
-
var tmp = this.
|
|
307
|
+
g5m($this$transformResponseBody, response, body, info, $completion) {
|
|
308
|
+
var tmp = this.h5m($this$transformResponseBody, response, body, info, $completion);
|
|
309
309
|
tmp.cc_1 = Unit_instance;
|
|
310
310
|
tmp.dc_1 = null;
|
|
311
311
|
return tmp.ic();
|
|
312
312
|
}
|
|
313
|
-
|
|
313
|
+
i5m(p1, p2, p3, p4, $completion) {
|
|
314
314
|
var tmp = p1 instanceof TransformResponseBodyContext() ? p1 : THROW_CCE();
|
|
315
315
|
var tmp_0 = p2 instanceof HttpResponse() ? p2 : THROW_CCE();
|
|
316
316
|
var tmp_1 = (!(p3 == null) ? isInterface(p3, ByteReadChannel()) : false) ? p3 : THROW_CCE();
|
|
317
|
-
return this.
|
|
317
|
+
return this.g5m(tmp, tmp_0, tmp_1, p4 instanceof TypeInfo() ? p4 : THROW_CCE(), $completion);
|
|
318
318
|
}
|
|
319
319
|
ic() {
|
|
320
320
|
var suspendResult = this.cc_1;
|
|
@@ -325,7 +325,7 @@ function ContentNegotiation$lambda$slambda_1() {
|
|
|
325
325
|
case 0:
|
|
326
326
|
this.bc_1 = 2;
|
|
327
327
|
var tmp_0 = this;
|
|
328
|
-
var tmp0_elvis_lhs = contentType(this.
|
|
328
|
+
var tmp0_elvis_lhs = contentType(this.j6b_1);
|
|
329
329
|
var tmp_1;
|
|
330
330
|
if (tmp0_elvis_lhs == null) {
|
|
331
331
|
return null;
|
|
@@ -333,10 +333,10 @@ function ContentNegotiation$lambda$slambda_1() {
|
|
|
333
333
|
tmp_1 = tmp0_elvis_lhs;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
|
-
tmp_0.
|
|
337
|
-
this.
|
|
336
|
+
tmp_0.m6b_1 = tmp_1;
|
|
337
|
+
this.n6b_1 = suitableCharset(get_request(this.j6b_1).z45());
|
|
338
338
|
this.ac_1 = 1;
|
|
339
|
-
suspendResult = invoke$convertResponse(this.
|
|
339
|
+
suspendResult = invoke$convertResponse(this.f6b_1, this.g6b_1, this.h6b_1, get_request(this.j6b_1).n52(), this.l6b_1, this.k6b_1, this.m6b_1, this.n6b_1, this);
|
|
340
340
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
341
341
|
return suspendResult;
|
|
342
342
|
}
|
|
@@ -358,12 +358,12 @@ function ContentNegotiation$lambda$slambda_1() {
|
|
|
358
358
|
}
|
|
359
359
|
while (true);
|
|
360
360
|
}
|
|
361
|
-
|
|
362
|
-
var i = new (ContentNegotiation$lambda$slambda_1())(this.
|
|
363
|
-
i.
|
|
364
|
-
i.
|
|
365
|
-
i.
|
|
366
|
-
i.
|
|
361
|
+
h5m($this$transformResponseBody, response, body, info, completion) {
|
|
362
|
+
var i = new (ContentNegotiation$lambda$slambda_1())(this.f6b_1, this.g6b_1, this.h6b_1, completion);
|
|
363
|
+
i.i6b_1 = $this$transformResponseBody;
|
|
364
|
+
i.j6b_1 = response;
|
|
365
|
+
i.k6b_1 = body;
|
|
366
|
+
i.l6b_1 = info;
|
|
367
367
|
return i;
|
|
368
368
|
}
|
|
369
369
|
}
|
|
@@ -375,14 +375,14 @@ function ContentNegotiation$lambda$slambda_1() {
|
|
|
375
375
|
function ContentNegotiation$lambda$slambda_2($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation) {
|
|
376
376
|
var i = new (ContentNegotiation$lambda$slambda_1())($ignoredTypes, $registrations, $this_createClientPlugin, resultContinuation);
|
|
377
377
|
var l = function ($this$transformResponseBody, response, body, info, $completion) {
|
|
378
|
-
return i.
|
|
378
|
+
return i.g5m($this$transformResponseBody, response, body, info, $completion);
|
|
379
379
|
};
|
|
380
380
|
l.$arity = 4;
|
|
381
381
|
return l;
|
|
382
382
|
}
|
|
383
383
|
function ContentNegotiation$lambda$convertRequest$lambda(it) {
|
|
384
384
|
_init_properties_ContentNegotiation_kt__o183go();
|
|
385
|
-
return toString(it.
|
|
385
|
+
return toString(it.f68_1);
|
|
386
386
|
}
|
|
387
387
|
var $invoke$convertRequestCOROUTINE$Class;
|
|
388
388
|
function $invoke$convertRequestCOROUTINE$() {
|
|
@@ -390,11 +390,11 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
390
390
|
class $ extends CoroutineImpl() {
|
|
391
391
|
constructor(registrations, $this_createClientPlugin, ignoredTypes, request, body, resultContinuation) {
|
|
392
392
|
super(resultContinuation);
|
|
393
|
-
this.
|
|
394
|
-
this.
|
|
395
|
-
this.
|
|
396
|
-
this.
|
|
397
|
-
this.
|
|
393
|
+
this.z68_1 = registrations;
|
|
394
|
+
this.a69_1 = $this_createClientPlugin;
|
|
395
|
+
this.b69_1 = ignoredTypes;
|
|
396
|
+
this.c69_1 = request;
|
|
397
|
+
this.d69_1 = body;
|
|
398
398
|
}
|
|
399
399
|
ic() {
|
|
400
400
|
var suspendResult = this.cc_1;
|
|
@@ -406,9 +406,9 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
406
406
|
this.bc_1 = 7;
|
|
407
407
|
var tmp_0 = this;
|
|
408
408
|
var tmp_1;
|
|
409
|
-
if (this.
|
|
410
|
-
var excluded = this.
|
|
411
|
-
var tmp0 = this.
|
|
409
|
+
if (this.c69_1.s50_1.t3r(get_ExcludedContentTypes())) {
|
|
410
|
+
var excluded = this.c69_1.s50_1.r3r(get_ExcludedContentTypes());
|
|
411
|
+
var tmp0 = this.z68_1;
|
|
412
412
|
var destination = ArrayList().l1();
|
|
413
413
|
var _iterator__ex2g4s = tmp0.d1();
|
|
414
414
|
while (_iterator__ex2g4s.e1()) {
|
|
@@ -428,7 +428,7 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
428
428
|
var _iterator__ex2g4s_0 = excluded.d1();
|
|
429
429
|
while (_iterator__ex2g4s_0.e1()) {
|
|
430
430
|
var element_0 = _iterator__ex2g4s_0.f1();
|
|
431
|
-
if (element.
|
|
431
|
+
if (element.g68_1.b41(element_0)) {
|
|
432
432
|
tmp$ret$0 = false;
|
|
433
433
|
break l$ret$1;
|
|
434
434
|
}
|
|
@@ -442,17 +442,17 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
442
442
|
}
|
|
443
443
|
tmp_1 = destination;
|
|
444
444
|
} else {
|
|
445
|
-
tmp_1 = this.
|
|
445
|
+
tmp_1 = this.z68_1;
|
|
446
446
|
}
|
|
447
447
|
|
|
448
|
-
tmp_0.
|
|
448
|
+
tmp_0.e69_1 = tmp_1;
|
|
449
449
|
var tmp_3 = this;
|
|
450
|
-
var tmp0_elvis_lhs = this.
|
|
451
|
-
tmp_3.
|
|
452
|
-
var _iterator__ex2g4s_1 = this.
|
|
450
|
+
var tmp0_elvis_lhs = this.c69_1.p50_1.g3t(HttpHeaders_getInstance().g41_1);
|
|
451
|
+
tmp_3.f69_1 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
452
|
+
var _iterator__ex2g4s_1 = this.e69_1.d1();
|
|
453
453
|
while (_iterator__ex2g4s_1.e1()) {
|
|
454
454
|
var element_1 = _iterator__ex2g4s_1.f1();
|
|
455
|
-
var tmp0_0 = this.
|
|
455
|
+
var tmp0_0 = this.f69_1;
|
|
456
456
|
var tmp$ret$2;
|
|
457
457
|
l$ret$3: do {
|
|
458
458
|
var tmp_4;
|
|
@@ -468,7 +468,7 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
468
468
|
var _iterator__ex2g4s_2 = tmp0_0.d1();
|
|
469
469
|
while (_iterator__ex2g4s_2.e1()) {
|
|
470
470
|
var element_2 = _iterator__ex2g4s_2.f1();
|
|
471
|
-
if (Companion_getInstance().ar(element_2).
|
|
471
|
+
if (Companion_getInstance().ar(element_2).b41(element_1.g68_1)) {
|
|
472
472
|
tmp$ret$2 = false;
|
|
473
473
|
break l$ret$3;
|
|
474
474
|
}
|
|
@@ -477,19 +477,19 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
477
477
|
}
|
|
478
478
|
while (false);
|
|
479
479
|
if (tmp$ret$2) {
|
|
480
|
-
var qValue = this.
|
|
481
|
-
var contentTypeToSend = qValue == null ? element_1.
|
|
482
|
-
get_LOGGER().
|
|
483
|
-
accept(this.
|
|
480
|
+
var qValue = this.a69_1.i5a_1.m68_1;
|
|
481
|
+
var contentTypeToSend = qValue == null ? element_1.g68_1 : element_1.g68_1.y40('q', qValue.toString());
|
|
482
|
+
get_LOGGER().g3y('Adding Accept=' + contentTypeToSend.toString() + ' header for ' + this.c69_1.n50_1.toString());
|
|
483
|
+
accept(this.c69_1, contentTypeToSend);
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
|
|
487
487
|
var tmp_5;
|
|
488
|
-
var tmp_6 = this.
|
|
488
|
+
var tmp_6 = this.d69_1;
|
|
489
489
|
if (tmp_6 instanceof OutgoingContent()) {
|
|
490
490
|
tmp_5 = true;
|
|
491
491
|
} else {
|
|
492
|
-
var tmp0_1 = this.
|
|
492
|
+
var tmp0_1 = this.b69_1;
|
|
493
493
|
var tmp$ret$4;
|
|
494
494
|
l$ret$5: do {
|
|
495
495
|
var tmp_7;
|
|
@@ -505,7 +505,7 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
505
505
|
var _iterator__ex2g4s_3 = tmp0_1.d1();
|
|
506
506
|
while (_iterator__ex2g4s_3.e1()) {
|
|
507
507
|
var element_3 = _iterator__ex2g4s_3.f1();
|
|
508
|
-
if (element_3.bg(this.
|
|
508
|
+
if (element_3.bg(this.d69_1)) {
|
|
509
509
|
tmp$ret$4 = true;
|
|
510
510
|
break l$ret$5;
|
|
511
511
|
}
|
|
@@ -517,36 +517,36 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
517
517
|
}
|
|
518
518
|
|
|
519
519
|
if (tmp_5) {
|
|
520
|
-
get_LOGGER().
|
|
520
|
+
get_LOGGER().g3y('Body type ' + toString(getKClassFromExpression(this.d69_1)) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.c69_1.n50_1.toString() + '.'));
|
|
521
521
|
return null;
|
|
522
522
|
}
|
|
523
523
|
|
|
524
524
|
var tmp_8 = this;
|
|
525
|
-
var tmp0_elvis_lhs_0 = contentType_0(this.
|
|
525
|
+
var tmp0_elvis_lhs_0 = contentType_0(this.c69_1);
|
|
526
526
|
var tmp_9;
|
|
527
527
|
if (tmp0_elvis_lhs_0 == null) {
|
|
528
|
-
this.
|
|
529
|
-
get_LOGGER().
|
|
528
|
+
this.a69_1;
|
|
529
|
+
get_LOGGER().g3y("Request doesn't have Content-Type header. Skipping ContentNegotiation for " + this.c69_1.n50_1.toString() + '.');
|
|
530
530
|
return null;
|
|
531
531
|
} else {
|
|
532
532
|
tmp_9 = tmp0_elvis_lhs_0;
|
|
533
533
|
}
|
|
534
534
|
|
|
535
|
-
tmp_8.
|
|
536
|
-
var tmp_10 = this.
|
|
535
|
+
tmp_8.g69_1 = tmp_9;
|
|
536
|
+
var tmp_10 = this.d69_1;
|
|
537
537
|
if (tmp_10 instanceof Unit()) {
|
|
538
|
-
get_LOGGER().
|
|
539
|
-
this.
|
|
538
|
+
get_LOGGER().g3y('Sending empty body for ' + this.c69_1.n50_1.toString());
|
|
539
|
+
this.c69_1.p50_1.t3t(HttpHeaders_getInstance().y41_1);
|
|
540
540
|
return EmptyContent_getInstance();
|
|
541
541
|
}
|
|
542
542
|
|
|
543
543
|
var tmp_11 = this;
|
|
544
|
-
var tmp0_2 = this.
|
|
544
|
+
var tmp0_2 = this.z68_1;
|
|
545
545
|
var destination_0 = ArrayList().l1();
|
|
546
546
|
var _iterator__ex2g4s_4 = tmp0_2.d1();
|
|
547
547
|
while (_iterator__ex2g4s_4.e1()) {
|
|
548
548
|
var element_4 = _iterator__ex2g4s_4.f1();
|
|
549
|
-
if (element_4.
|
|
549
|
+
if (element_4.h68_1.j68(this.g69_1)) {
|
|
550
550
|
destination_0.m(element_4);
|
|
551
551
|
}
|
|
552
552
|
}
|
|
@@ -561,44 +561,44 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
561
561
|
var tmp1_elvis_lhs = tmp_12;
|
|
562
562
|
var tmp_13;
|
|
563
563
|
if (tmp1_elvis_lhs == null) {
|
|
564
|
-
this.
|
|
565
|
-
get_LOGGER().
|
|
564
|
+
this.a69_1;
|
|
565
|
+
get_LOGGER().g3y('None of the registered converters match request Content-Type=' + this.g69_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.c69_1.n50_1.toString() + '.'));
|
|
566
566
|
return null;
|
|
567
567
|
} else {
|
|
568
568
|
tmp_13 = tmp1_elvis_lhs;
|
|
569
569
|
}
|
|
570
570
|
|
|
571
|
-
tmp_11.
|
|
572
|
-
if (this.
|
|
573
|
-
get_LOGGER().
|
|
571
|
+
tmp_11.h69_1 = tmp_13;
|
|
572
|
+
if (this.c69_1.n5v() == null) {
|
|
573
|
+
get_LOGGER().g3y('Request has unknown body type. Skipping ContentNegotiation for ' + this.c69_1.n50_1.toString() + '.');
|
|
574
574
|
return null;
|
|
575
575
|
}
|
|
576
576
|
|
|
577
|
-
this.
|
|
577
|
+
this.c69_1.p50_1.t3t(HttpHeaders_getInstance().y41_1);
|
|
578
578
|
var tmp_14 = this;
|
|
579
|
-
tmp_14.
|
|
579
|
+
tmp_14.i69_1 = this.h69_1;
|
|
580
580
|
this.ac_1 = 1;
|
|
581
581
|
continue $sm;
|
|
582
582
|
case 1:
|
|
583
|
-
this.
|
|
584
|
-
this.
|
|
583
|
+
this.k69_1 = this.i69_1;
|
|
584
|
+
this.l69_1 = this.k69_1.d1();
|
|
585
585
|
this.ac_1 = 2;
|
|
586
586
|
continue $sm;
|
|
587
587
|
case 2:
|
|
588
|
-
if (!this.
|
|
588
|
+
if (!this.l69_1.e1()) {
|
|
589
589
|
this.ac_1 = 5;
|
|
590
590
|
continue $sm;
|
|
591
591
|
}
|
|
592
592
|
|
|
593
|
-
this.
|
|
593
|
+
this.m69_1 = this.l69_1.f1();
|
|
594
594
|
var tmp_15 = this;
|
|
595
|
-
tmp_15.
|
|
596
|
-
this.
|
|
595
|
+
tmp_15.n69_1 = this.m69_1;
|
|
596
|
+
this.o69_1 = this.n69_1;
|
|
597
597
|
this.ac_1 = 3;
|
|
598
|
-
var tmp0_elvis_lhs_1 = charset(this.
|
|
599
|
-
var tmp_16 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().
|
|
600
|
-
var tmp_17 = ensureNotNull(this.
|
|
601
|
-
var this_0 = this.
|
|
598
|
+
var tmp0_elvis_lhs_1 = charset(this.g69_1);
|
|
599
|
+
var tmp_16 = tmp0_elvis_lhs_1 == null ? Charsets_getInstance().m3q_1 : tmp0_elvis_lhs_1;
|
|
600
|
+
var tmp_17 = ensureNotNull(this.c69_1.n5v());
|
|
601
|
+
var this_0 = this.d69_1;
|
|
602
602
|
var tmp_18;
|
|
603
603
|
if (!equals(this_0, NullBody_instance)) {
|
|
604
604
|
tmp_18 = this_0;
|
|
@@ -606,7 +606,7 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
606
606
|
tmp_18 = null;
|
|
607
607
|
}
|
|
608
608
|
|
|
609
|
-
suspendResult = this.
|
|
609
|
+
suspendResult = this.o69_1.f68_1.o6b(this.g69_1, tmp_16, tmp_17, tmp_18, this);
|
|
610
610
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
611
611
|
return suspendResult;
|
|
612
612
|
}
|
|
@@ -615,12 +615,12 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
615
615
|
case 3:
|
|
616
616
|
var result = suspendResult;
|
|
617
617
|
if (!(result == null)) {
|
|
618
|
-
get_LOGGER().
|
|
618
|
+
get_LOGGER().g3y('Converted request body using ' + toString(this.o69_1.f68_1) + ' for ' + this.c69_1.n50_1.toString());
|
|
619
619
|
}
|
|
620
620
|
|
|
621
621
|
var result_0 = result;
|
|
622
622
|
if (!(result_0 == null)) {
|
|
623
|
-
this.
|
|
623
|
+
this.j69_1 = result_0;
|
|
624
624
|
this.ac_1 = 6;
|
|
625
625
|
continue $sm;
|
|
626
626
|
} else {
|
|
@@ -632,7 +632,7 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
632
632
|
this.ac_1 = 2;
|
|
633
633
|
continue $sm;
|
|
634
634
|
case 5:
|
|
635
|
-
this.
|
|
635
|
+
this.j69_1 = null;
|
|
636
636
|
if (false) {
|
|
637
637
|
this.ac_1 = 1;
|
|
638
638
|
continue $sm;
|
|
@@ -641,11 +641,11 @@ function $invoke$convertRequestCOROUTINE$() {
|
|
|
641
641
|
this.ac_1 = 6;
|
|
642
642
|
continue $sm;
|
|
643
643
|
case 6:
|
|
644
|
-
var tmp2_elvis_lhs = this.
|
|
644
|
+
var tmp2_elvis_lhs = this.j69_1;
|
|
645
645
|
var tmp_19;
|
|
646
646
|
if (tmp2_elvis_lhs == null) {
|
|
647
|
-
var tmp_20 = "Can't convert " + toString(this.
|
|
648
|
-
throw ContentConverterException().
|
|
647
|
+
var tmp_20 = "Can't convert " + toString(this.d69_1) + ' with contentType ' + this.g69_1.toString() + ' using converters ';
|
|
648
|
+
throw ContentConverterException().q68(tmp_20 + joinToString(this.h69_1, VOID, VOID, VOID, VOID, VOID, ContentNegotiation$lambda$convertRequest$lambda));
|
|
649
649
|
} else {
|
|
650
650
|
tmp_19 = tmp2_elvis_lhs;
|
|
651
651
|
}
|
|
@@ -678,14 +678,14 @@ function $invoke$convertResponseCOROUTINE$() {
|
|
|
678
678
|
class $ extends CoroutineImpl() {
|
|
679
679
|
constructor(ignoredTypes, registrations, $this_createClientPlugin, requestUrl, info, body, responseContentType, charset, resultContinuation) {
|
|
680
680
|
super(resultContinuation);
|
|
681
|
-
this.
|
|
682
|
-
this.
|
|
683
|
-
this.
|
|
684
|
-
this.
|
|
685
|
-
this.
|
|
686
|
-
this.
|
|
687
|
-
this.
|
|
688
|
-
this.
|
|
681
|
+
this.x69_1 = ignoredTypes;
|
|
682
|
+
this.y69_1 = registrations;
|
|
683
|
+
this.z69_1 = $this_createClientPlugin;
|
|
684
|
+
this.a6a_1 = requestUrl;
|
|
685
|
+
this.b6a_1 = info;
|
|
686
|
+
this.c6a_1 = body;
|
|
687
|
+
this.d6a_1 = responseContentType;
|
|
688
|
+
this.e6a_1 = charset;
|
|
689
689
|
}
|
|
690
690
|
ic() {
|
|
691
691
|
var suspendResult = this.cc_1;
|
|
@@ -695,24 +695,24 @@ function $invoke$convertResponseCOROUTINE$() {
|
|
|
695
695
|
switch (tmp) {
|
|
696
696
|
case 0:
|
|
697
697
|
this.bc_1 = 2;
|
|
698
|
-
var tmp_0 = this.
|
|
698
|
+
var tmp_0 = this.c6a_1;
|
|
699
699
|
if (!isInterface(tmp_0, ByteReadChannel())) {
|
|
700
|
-
get_LOGGER().
|
|
700
|
+
get_LOGGER().g3y('Response body is already transformed. Skipping ContentNegotiation for ' + this.a6a_1.toString() + '.');
|
|
701
701
|
return null;
|
|
702
702
|
}
|
|
703
703
|
|
|
704
|
-
if (this.
|
|
705
|
-
get_LOGGER().
|
|
704
|
+
if (this.x69_1.q2(this.b6a_1.n3x_1)) {
|
|
705
|
+
get_LOGGER().g3y('Response body type ' + toString(this.b6a_1.n3x_1) + ' is in ignored types. ' + ('Skipping ContentNegotiation for ' + this.a6a_1.toString() + '.'));
|
|
706
706
|
return null;
|
|
707
707
|
}
|
|
708
708
|
|
|
709
709
|
var tmp_1 = this;
|
|
710
|
-
var tmp0 = this.
|
|
710
|
+
var tmp0 = this.y69_1;
|
|
711
711
|
var destination = ArrayList().l1();
|
|
712
712
|
var _iterator__ex2g4s = tmp0.d1();
|
|
713
713
|
while (_iterator__ex2g4s.e1()) {
|
|
714
714
|
var element = _iterator__ex2g4s.f1();
|
|
715
|
-
if (element.
|
|
715
|
+
if (element.h68_1.j68(this.d6a_1)) {
|
|
716
716
|
destination.m(element);
|
|
717
717
|
}
|
|
718
718
|
}
|
|
@@ -721,7 +721,7 @@ function $invoke$convertResponseCOROUTINE$() {
|
|
|
721
721
|
var _iterator__ex2g4s_0 = destination.d1();
|
|
722
722
|
while (_iterator__ex2g4s_0.e1()) {
|
|
723
723
|
var item = _iterator__ex2g4s_0.f1();
|
|
724
|
-
destination_0.m(item.
|
|
724
|
+
destination_0.m(item.f68_1);
|
|
725
725
|
}
|
|
726
726
|
|
|
727
727
|
var tmp_2;
|
|
@@ -734,16 +734,16 @@ function $invoke$convertResponseCOROUTINE$() {
|
|
|
734
734
|
var tmp0_elvis_lhs = tmp_2;
|
|
735
735
|
var tmp_3;
|
|
736
736
|
if (tmp0_elvis_lhs == null) {
|
|
737
|
-
this.
|
|
738
|
-
get_LOGGER().
|
|
737
|
+
this.z69_1;
|
|
738
|
+
get_LOGGER().g3y('None of the registered converters match response with Content-Type=' + this.d6a_1.toString() + '. ' + ('Skipping ContentNegotiation for ' + this.a6a_1.toString() + '.'));
|
|
739
739
|
return null;
|
|
740
740
|
} else {
|
|
741
741
|
tmp_3 = tmp0_elvis_lhs;
|
|
742
742
|
}
|
|
743
743
|
|
|
744
|
-
tmp_1.
|
|
744
|
+
tmp_1.f6a_1 = tmp_3;
|
|
745
745
|
this.ac_1 = 1;
|
|
746
|
-
suspendResult = deserialize(this.
|
|
746
|
+
suspendResult = deserialize(this.f6a_1, this.c6a_1, this.b6a_1, this.e6a_1, this);
|
|
747
747
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
748
748
|
return suspendResult;
|
|
749
749
|
}
|
|
@@ -752,7 +752,7 @@ function $invoke$convertResponseCOROUTINE$() {
|
|
|
752
752
|
case 1:
|
|
753
753
|
var result = suspendResult;
|
|
754
754
|
if (!isInterface(result, ByteReadChannel())) {
|
|
755
|
-
get_LOGGER().
|
|
755
|
+
get_LOGGER().g3y('Response body was converted to ' + toString(getKClassFromExpression(result)) + ' for ' + this.a6a_1.toString() + '.');
|
|
756
756
|
}
|
|
757
757
|
|
|
758
758
|
return result;
|
|
@@ -10,12 +10,12 @@ var JsonContentTypeMatcherClass;
|
|
|
10
10
|
function JsonContentTypeMatcher() {
|
|
11
11
|
if (JsonContentTypeMatcherClass === VOID) {
|
|
12
12
|
class $ {
|
|
13
|
-
|
|
14
|
-
if (contentType.
|
|
13
|
+
j68(contentType) {
|
|
14
|
+
if (contentType.b41(Application_getInstance().i3z_1)) {
|
|
15
15
|
return true;
|
|
16
16
|
}
|
|
17
|
-
var value = contentType.
|
|
18
|
-
return Application_getInstance().
|
|
17
|
+
var value = contentType.a41().toString();
|
|
18
|
+
return Application_getInstance().c40(value) && endsWith(value, '+json', true);
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
initMetadataForObject($, 'JsonContentTypeMatcher');
|