@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
|
@@ -105,8 +105,8 @@ function $executeCOROUTINE$() {
|
|
|
105
105
|
class $ extends CoroutineImpl() {
|
|
106
106
|
constructor(_this__u8e3s4, data, resultContinuation) {
|
|
107
107
|
super(resultContinuation);
|
|
108
|
-
this.
|
|
109
|
-
this.
|
|
108
|
+
this.p64_1 = _this__u8e3s4;
|
|
109
|
+
this.q64_1 = data;
|
|
110
110
|
}
|
|
111
111
|
ic() {
|
|
112
112
|
var suspendResult = this.cc_1;
|
|
@@ -124,11 +124,11 @@ function $executeCOROUTINE$() {
|
|
|
124
124
|
|
|
125
125
|
continue $sm;
|
|
126
126
|
case 1:
|
|
127
|
-
this.
|
|
128
|
-
this.
|
|
129
|
-
if (isUpgradeRequest(this.
|
|
127
|
+
this.r64_1 = suspendResult;
|
|
128
|
+
this.s64_1 = this.q64_1.v56_1.r3r(get_CLIENT_CONFIG());
|
|
129
|
+
if (isUpgradeRequest(this.q64_1)) {
|
|
130
130
|
this.ac_1 = 5;
|
|
131
|
-
suspendResult = executeWebSocketRequest(this.
|
|
131
|
+
suspendResult = executeWebSocketRequest(this.p64_1, this.q64_1, this.r64_1, this);
|
|
132
132
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
133
133
|
return suspendResult;
|
|
134
134
|
}
|
|
@@ -139,19 +139,19 @@ function $executeCOROUTINE$() {
|
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
case 2:
|
|
142
|
-
this.
|
|
142
|
+
this.t64_1 = GMTDate();
|
|
143
143
|
this.ac_1 = 3;
|
|
144
|
-
suspendResult = toRaw(this.
|
|
144
|
+
suspendResult = toRaw(this.q64_1, this.s64_1, this.r64_1, this);
|
|
145
145
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
146
146
|
return suspendResult;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
continue $sm;
|
|
150
150
|
case 3:
|
|
151
|
-
this.
|
|
151
|
+
this.u64_1 = suspendResult;
|
|
152
152
|
var tmp_0 = this;
|
|
153
|
-
var tmp0_safe_receiver = this.
|
|
154
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
153
|
+
var tmp0_safe_receiver = this.q64_1.v56_1.s3r(Companion_getInstance().s62_1);
|
|
154
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w64_1;
|
|
155
155
|
var tmp_1;
|
|
156
156
|
if (tmp1_elvis_lhs == null) {
|
|
157
157
|
tmp_1 = JsClientEngine$execute$lambda;
|
|
@@ -159,9 +159,9 @@ function $executeCOROUTINE$() {
|
|
|
159
159
|
tmp_1 = tmp1_elvis_lhs;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
tmp_0.
|
|
162
|
+
tmp_0.v64_1 = tmp_1;
|
|
163
163
|
this.ac_1 = 4;
|
|
164
|
-
suspendResult = commonFetch(this.
|
|
164
|
+
suspendResult = commonFetch(this.q64_1.q56_1.toString(), this.u64_1, this.v64_1, this.p64_1.b65_1, get_job(this.r64_1), this);
|
|
165
165
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
166
166
|
return suspendResult;
|
|
167
167
|
}
|
|
@@ -170,13 +170,13 @@ function $executeCOROUTINE$() {
|
|
|
170
170
|
case 4:
|
|
171
171
|
var rawResponse = suspendResult;
|
|
172
172
|
var status = new (HttpStatusCode())(rawResponse.status, rawResponse.statusText);
|
|
173
|
-
var headers = mapToKtor(rawResponse.headers, this.
|
|
174
|
-
var version = Companion_getInstance_1().
|
|
175
|
-
var body = readBody(CoroutineScope(this.
|
|
176
|
-
var tmp2_safe_receiver = this.
|
|
177
|
-
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
173
|
+
var headers = mapToKtor(rawResponse.headers, this.q64_1.r56_1, this.q64_1.v56_1);
|
|
174
|
+
var version = Companion_getInstance_1().k46_1;
|
|
175
|
+
var body = readBody(CoroutineScope(this.r64_1), rawResponse);
|
|
176
|
+
var tmp2_safe_receiver = this.q64_1.v56_1.s3r(get_ResponseAdapterAttributeKey());
|
|
177
|
+
var tmp3_elvis_lhs = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.t5w(this.q64_1, status, headers, body, this.q64_1.t56_1, this.r64_1);
|
|
178
178
|
var responseBody = tmp3_elvis_lhs == null ? body : tmp3_elvis_lhs;
|
|
179
|
-
return new (HttpResponseData())(status, this.
|
|
179
|
+
return new (HttpResponseData())(status, this.t64_1, headers, version, responseBody, this.r64_1);
|
|
180
180
|
case 5:
|
|
181
181
|
return suspendResult;
|
|
182
182
|
case 6:
|
|
@@ -205,9 +205,9 @@ function $createWebSocketCOROUTINE$() {
|
|
|
205
205
|
class $ extends CoroutineImpl() {
|
|
206
206
|
constructor(_this__u8e3s4, urlString_capturingHack, headers, resultContinuation) {
|
|
207
207
|
super(resultContinuation);
|
|
208
|
-
this.
|
|
209
|
-
this.
|
|
210
|
-
this.
|
|
208
|
+
this.k63_1 = _this__u8e3s4;
|
|
209
|
+
this.l63_1 = urlString_capturingHack;
|
|
210
|
+
this.m63_1 = headers;
|
|
211
211
|
}
|
|
212
212
|
ic() {
|
|
213
213
|
var suspendResult = this.cc_1;
|
|
@@ -218,24 +218,24 @@ function $createWebSocketCOROUTINE$() {
|
|
|
218
218
|
case 0:
|
|
219
219
|
this.bc_1 = 3;
|
|
220
220
|
var tmp_0 = this;
|
|
221
|
-
var tmp0 = this.
|
|
221
|
+
var tmp0 = this.m63_1.h3t();
|
|
222
222
|
var destination = ArrayList().l1();
|
|
223
223
|
var _iterator__ex2g4s = tmp0.d1();
|
|
224
224
|
while (_iterator__ex2g4s.e1()) {
|
|
225
225
|
var element = _iterator__ex2g4s.f1();
|
|
226
|
-
if (equals(element, HttpHeaders_getInstance().
|
|
226
|
+
if (equals(element, HttpHeaders_getInstance().t43_1, true)) {
|
|
227
227
|
destination.m(element);
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
|
|
231
|
-
tmp_0.
|
|
231
|
+
tmp_0.n63_1 = destination;
|
|
232
232
|
var tmp_1 = this;
|
|
233
|
-
var tmp0_0 = this.
|
|
233
|
+
var tmp0_0 = this.n63_1;
|
|
234
234
|
var destination_0 = ArrayList().l1();
|
|
235
235
|
var _iterator__ex2g4s_0 = tmp0_0.d1();
|
|
236
236
|
while (_iterator__ex2g4s_0.e1()) {
|
|
237
237
|
var element_0 = _iterator__ex2g4s_0.f1();
|
|
238
|
-
var tmp0_safe_receiver = this.
|
|
238
|
+
var tmp0_safe_receiver = this.m63_1.g3t(element_0);
|
|
239
239
|
if (tmp0_safe_receiver == null)
|
|
240
240
|
null;
|
|
241
241
|
else {
|
|
@@ -244,15 +244,15 @@ function $createWebSocketCOROUTINE$() {
|
|
|
244
244
|
}
|
|
245
245
|
|
|
246
246
|
var this_0 = flatten(destination_0);
|
|
247
|
-
tmp_1.
|
|
248
|
-
if (PlatformUtils_getInstance().
|
|
249
|
-
this.
|
|
247
|
+
tmp_1.o63_1 = copyToArray(this_0);
|
|
248
|
+
if (PlatformUtils_getInstance().x3s_1) {
|
|
249
|
+
this.p63_1 = new WebSocket(this.l63_1, this.o63_1);
|
|
250
250
|
this.ac_1 = 2;
|
|
251
251
|
continue $sm;
|
|
252
252
|
} else {
|
|
253
|
-
this.
|
|
253
|
+
this.q63_1 = import('ws');
|
|
254
254
|
this.ac_1 = 1;
|
|
255
|
-
suspendResult = await_0(this.
|
|
255
|
+
suspendResult = await_0(this.q63_1, this);
|
|
256
256
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
257
257
|
return suspendResult;
|
|
258
258
|
}
|
|
@@ -262,12 +262,12 @@ function $createWebSocketCOROUTINE$() {
|
|
|
262
262
|
case 1:
|
|
263
263
|
var ws_capturingHack = suspendResult.default;
|
|
264
264
|
var headers_capturingHack = new (JsClientEngine$createWebSocket$headers_capturingHack$1())();
|
|
265
|
-
this.
|
|
266
|
-
this.
|
|
265
|
+
this.m63_1.k3t(JsClientEngine$createWebSocket$lambda(headers_capturingHack));
|
|
266
|
+
this.p63_1 = new ws_capturingHack(this.l63_1, this.o63_1, {headers: headers_capturingHack});
|
|
267
267
|
this.ac_1 = 2;
|
|
268
268
|
continue $sm;
|
|
269
269
|
case 2:
|
|
270
|
-
return this.
|
|
270
|
+
return this.p63_1;
|
|
271
271
|
case 3:
|
|
272
272
|
throw this.dc_1;
|
|
273
273
|
}
|
|
@@ -294,9 +294,9 @@ function $executeWebSocketRequestCOROUTINE$() {
|
|
|
294
294
|
class $ extends CoroutineImpl() {
|
|
295
295
|
constructor(_this__u8e3s4, request, callContext, resultContinuation) {
|
|
296
296
|
super(resultContinuation);
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
297
|
+
this.z63_1 = _this__u8e3s4;
|
|
298
|
+
this.a64_1 = request;
|
|
299
|
+
this.b64_1 = callContext;
|
|
300
300
|
}
|
|
301
301
|
ic() {
|
|
302
302
|
var suspendResult = this.cc_1;
|
|
@@ -306,28 +306,28 @@ function $executeWebSocketRequestCOROUTINE$() {
|
|
|
306
306
|
switch (tmp) {
|
|
307
307
|
case 0:
|
|
308
308
|
this.bc_1 = 5;
|
|
309
|
-
this.
|
|
310
|
-
this.
|
|
309
|
+
this.c64_1 = GMTDate();
|
|
310
|
+
this.d64_1 = this.a64_1.q56_1.toString();
|
|
311
311
|
this.ac_1 = 1;
|
|
312
|
-
suspendResult = createWebSocket(this.
|
|
312
|
+
suspendResult = createWebSocket(this.z63_1, this.d64_1, this.a64_1.s56_1, this);
|
|
313
313
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
314
314
|
return suspendResult;
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
continue $sm;
|
|
318
318
|
case 1:
|
|
319
|
-
this.
|
|
320
|
-
this.
|
|
319
|
+
this.e64_1 = suspendResult;
|
|
320
|
+
this.f64_1 = new (JsWebSocketSession())(this.b64_1, this.e64_1);
|
|
321
321
|
this.bc_1 = 3;
|
|
322
322
|
this.ac_1 = 2;
|
|
323
|
-
suspendResult = awaitConnection(this.
|
|
323
|
+
suspendResult = awaitConnection(this.e64_1, this);
|
|
324
324
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
325
325
|
return suspendResult;
|
|
326
326
|
}
|
|
327
327
|
|
|
328
328
|
continue $sm;
|
|
329
329
|
case 2:
|
|
330
|
-
this.
|
|
330
|
+
this.g64_1 = suspendResult;
|
|
331
331
|
this.bc_1 = 5;
|
|
332
332
|
this.ac_1 = 4;
|
|
333
333
|
continue $sm;
|
|
@@ -337,7 +337,7 @@ function $executeWebSocketRequestCOROUTINE$() {
|
|
|
337
337
|
if (tmp_0 instanceof Error) {
|
|
338
338
|
var cause = this.dc_1;
|
|
339
339
|
var tmp_1 = this;
|
|
340
|
-
cancel(this.
|
|
340
|
+
cancel(this.b64_1, CancellationException('Failed to connect to ' + this.d64_1, cause));
|
|
341
341
|
throw cause;
|
|
342
342
|
} else {
|
|
343
343
|
throw this.dc_1;
|
|
@@ -345,7 +345,7 @@ function $executeWebSocketRequestCOROUTINE$() {
|
|
|
345
345
|
|
|
346
346
|
case 4:
|
|
347
347
|
this.bc_1 = 5;
|
|
348
|
-
var this_0 = this.
|
|
348
|
+
var this_0 = this.e64_1.protocol;
|
|
349
349
|
var tmp_2;
|
|
350
350
|
if (charSequenceLength(this_0) > 0) {
|
|
351
351
|
tmp_2 = this_0;
|
|
@@ -354,8 +354,8 @@ function $executeWebSocketRequestCOROUTINE$() {
|
|
|
354
354
|
}
|
|
355
355
|
|
|
356
356
|
var protocol = tmp_2;
|
|
357
|
-
var headers = !(protocol == null) ? headersOf(HttpHeaders_getInstance().
|
|
358
|
-
return new (HttpResponseData())(Companion_getInstance_0().
|
|
357
|
+
var headers = !(protocol == null) ? headersOf(HttpHeaders_getInstance().t43_1, protocol) : Companion_getInstance_2().d41_1;
|
|
358
|
+
return new (HttpResponseData())(Companion_getInstance_0().t46_1, this.c64_1, headers, Companion_getInstance_1().k46_1, this.f64_1, this.b64_1);
|
|
359
359
|
case 5:
|
|
360
360
|
throw this.dc_1;
|
|
361
361
|
}
|
|
@@ -382,21 +382,21 @@ function JsClientEngine() {
|
|
|
382
382
|
class $ extends HttpClientEngineBase() {
|
|
383
383
|
constructor(config) {
|
|
384
384
|
super('ktor-js');
|
|
385
|
-
this.
|
|
386
|
-
this.
|
|
385
|
+
this.b65_1 = config;
|
|
386
|
+
this.c65_1 = setOf([HttpTimeoutCapability_instance, WebSocketCapability_instance, SSECapability_instance]);
|
|
387
387
|
// Inline function 'kotlin.check' call
|
|
388
|
-
if (!(this.
|
|
388
|
+
if (!(this.b65_1.n58_1 == null)) {
|
|
389
389
|
var message = 'Proxy unsupported in Js engine.';
|
|
390
390
|
throw IllegalStateException().o4(toString(message));
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
|
-
|
|
394
|
-
return this.
|
|
393
|
+
u50() {
|
|
394
|
+
return this.b65_1;
|
|
395
395
|
}
|
|
396
|
-
|
|
397
|
-
return this.
|
|
396
|
+
x56() {
|
|
397
|
+
return this.c65_1;
|
|
398
398
|
}
|
|
399
|
-
|
|
399
|
+
j58(data, $completion) {
|
|
400
400
|
var tmp = new ($executeCOROUTINE$())(this, data, $completion);
|
|
401
401
|
tmp.cc_1 = Unit_instance;
|
|
402
402
|
tmp.dc_1 = null;
|
|
@@ -439,7 +439,7 @@ function asString(_this__u8e3s4) {
|
|
|
439
439
|
}
|
|
440
440
|
function mapToKtor$lambda$lambda($this_buildHeaders) {
|
|
441
441
|
return function (value, key) {
|
|
442
|
-
$this_buildHeaders.
|
|
442
|
+
$this_buildHeaders.r3t(key, value);
|
|
443
443
|
return Unit_instance;
|
|
444
444
|
};
|
|
445
445
|
}
|
|
@@ -447,7 +447,7 @@ function mapToKtor$lambda($this_mapToKtor, $method, $attributes) {
|
|
|
447
447
|
return function ($this$buildHeaders) {
|
|
448
448
|
// Inline function 'kotlin.js.asDynamic' call
|
|
449
449
|
$this_mapToKtor.forEach(mapToKtor$lambda$lambda($this$buildHeaders));
|
|
450
|
-
dropCompressionHeaders($this$buildHeaders, $method, $attributes, PlatformUtils_getInstance().
|
|
450
|
+
dropCompressionHeaders($this$buildHeaders, $method, $attributes, PlatformUtils_getInstance().x3s_1);
|
|
451
451
|
return Unit_instance;
|
|
452
452
|
};
|
|
453
453
|
}
|
|
@@ -467,7 +467,7 @@ function awaitConnection$lambda($continuation, $this_awaitConnection) {
|
|
|
467
467
|
var tmp0_0 = $continuation;
|
|
468
468
|
// Inline function 'kotlin.coroutines.resumeWithException' call
|
|
469
469
|
// Inline function 'kotlin.Companion.failure' call
|
|
470
|
-
var exception = WebSocketException().
|
|
470
|
+
var exception = WebSocketException().l5w(asString(event));
|
|
471
471
|
var tmp$ret$2 = _Result___init__impl__xyqfz8(createFailure(exception));
|
|
472
472
|
tmp0_0.lc(tmp$ret$2);
|
|
473
473
|
tmp = Unit_instance;
|
|
@@ -57,7 +57,7 @@ function buildObject(block) {
|
|
|
57
57
|
function toRaw$lambda($skipContentLengthHeader, $jsHeaders) {
|
|
58
58
|
return function (key, value) {
|
|
59
59
|
var tmp;
|
|
60
|
-
if ($skipContentLengthHeader && key === HttpHeaders_getInstance().
|
|
60
|
+
if ($skipContentLengthHeader && key === HttpHeaders_getInstance().v41_1) {
|
|
61
61
|
return Unit_instance;
|
|
62
62
|
}
|
|
63
63
|
$jsHeaders[key] = value;
|
|
@@ -66,10 +66,10 @@ function toRaw$lambda($skipContentLengthHeader, $jsHeaders) {
|
|
|
66
66
|
}
|
|
67
67
|
function toRaw$lambda_0($this_toRaw, $jsHeaders, $clientConfig, $bodyBytes) {
|
|
68
68
|
return function ($this$buildObject) {
|
|
69
|
-
$this$buildObject.method = $this_toRaw.
|
|
69
|
+
$this$buildObject.method = $this_toRaw.r56_1.i46_1;
|
|
70
70
|
$this$buildObject.headers = $jsHeaders;
|
|
71
71
|
var tmp;
|
|
72
|
-
if ($clientConfig.
|
|
72
|
+
if ($clientConfig.f51_1) {
|
|
73
73
|
// Inline function 'org.w3c.fetch.FOLLOW' call
|
|
74
74
|
// Inline function 'kotlin.js.asDynamic' call
|
|
75
75
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -98,17 +98,17 @@ function getBodyBytes$slambda() {
|
|
|
98
98
|
constructor($content, resultContinuation, $box) {
|
|
99
99
|
if ($box === VOID)
|
|
100
100
|
$box = {};
|
|
101
|
-
$box.
|
|
101
|
+
$box.j66_1 = $content;
|
|
102
102
|
super(resultContinuation, $box);
|
|
103
103
|
}
|
|
104
|
-
|
|
105
|
-
var tmp = this.
|
|
104
|
+
z4l($this$writer, $completion) {
|
|
105
|
+
var tmp = this.a4m($this$writer, $completion);
|
|
106
106
|
tmp.cc_1 = Unit_instance;
|
|
107
107
|
tmp.dc_1 = null;
|
|
108
108
|
return tmp.ic();
|
|
109
109
|
}
|
|
110
110
|
kd(p1, $completion) {
|
|
111
|
-
return this.
|
|
111
|
+
return this.z4l(p1 instanceof WriterScope() ? p1 : THROW_CCE(), $completion);
|
|
112
112
|
}
|
|
113
113
|
ic() {
|
|
114
114
|
var suspendResult = this.cc_1;
|
|
@@ -119,7 +119,7 @@ function getBodyBytes$slambda() {
|
|
|
119
119
|
case 0:
|
|
120
120
|
this.bc_1 = 2;
|
|
121
121
|
this.ac_1 = 1;
|
|
122
|
-
suspendResult = this.
|
|
122
|
+
suspendResult = this.j66_1.z4b(this.k66_1.j3n_1, this);
|
|
123
123
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
124
124
|
return suspendResult;
|
|
125
125
|
}
|
|
@@ -141,9 +141,9 @@ function getBodyBytes$slambda() {
|
|
|
141
141
|
}
|
|
142
142
|
while (true);
|
|
143
143
|
}
|
|
144
|
-
|
|
145
|
-
var i = new (getBodyBytes$slambda())(this.
|
|
146
|
-
i.
|
|
144
|
+
a4m($this$writer, completion) {
|
|
145
|
+
var i = new (getBodyBytes$slambda())(this.j66_1, completion);
|
|
146
|
+
i.k66_1 = $this$writer;
|
|
147
147
|
return i;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -155,7 +155,7 @@ function getBodyBytes$slambda() {
|
|
|
155
155
|
function getBodyBytes$slambda_0($content, resultContinuation) {
|
|
156
156
|
var i = new (getBodyBytes$slambda())($content, resultContinuation);
|
|
157
157
|
var l = function ($this$writer, $completion) {
|
|
158
|
-
return i.
|
|
158
|
+
return i.z4l($this$writer, $completion);
|
|
159
159
|
};
|
|
160
160
|
l.$arity = 1;
|
|
161
161
|
return l;
|
|
@@ -166,9 +166,9 @@ function $toRawCOROUTINE$() {
|
|
|
166
166
|
class $ extends CoroutineImpl() {
|
|
167
167
|
constructor(_this__u8e3s4, clientConfig, callContext, resultContinuation) {
|
|
168
168
|
super(resultContinuation);
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
171
|
-
this.
|
|
169
|
+
this.l65_1 = _this__u8e3s4;
|
|
170
|
+
this.m65_1 = clientConfig;
|
|
171
|
+
this.n65_1 = callContext;
|
|
172
172
|
}
|
|
173
173
|
ic() {
|
|
174
174
|
var suspendResult = this.cc_1;
|
|
@@ -178,12 +178,12 @@ function $toRawCOROUTINE$() {
|
|
|
178
178
|
switch (tmp) {
|
|
179
179
|
case 0:
|
|
180
180
|
this.bc_1 = 2;
|
|
181
|
-
this.
|
|
182
|
-
var this_0 = this.
|
|
183
|
-
var skipContentLengthHeader = !get_supportsRequestBody(this_0.
|
|
184
|
-
mergeHeaders(this_0.
|
|
181
|
+
this.o65_1 = {};
|
|
182
|
+
var this_0 = this.l65_1;
|
|
183
|
+
var skipContentLengthHeader = !get_supportsRequestBody(this_0.r56_1) && isEmpty(this_0.t56_1);
|
|
184
|
+
mergeHeaders(this_0.s56_1, this_0.t56_1, toRaw$lambda(skipContentLengthHeader, this.o65_1));
|
|
185
185
|
this.ac_1 = 1;
|
|
186
|
-
suspendResult = getBodyBytes(this.
|
|
186
|
+
suspendResult = getBodyBytes(this.l65_1.t56_1, this.n65_1, this);
|
|
187
187
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
188
188
|
return suspendResult;
|
|
189
189
|
}
|
|
@@ -191,7 +191,7 @@ function $toRawCOROUTINE$() {
|
|
|
191
191
|
continue $sm;
|
|
192
192
|
case 1:
|
|
193
193
|
var bodyBytes = suspendResult;
|
|
194
|
-
return buildObject(toRaw$lambda_0(this.
|
|
194
|
+
return buildObject(toRaw$lambda_0(this.l65_1, this.o65_1, this.m65_1, bodyBytes));
|
|
195
195
|
case 2:
|
|
196
196
|
throw this.dc_1;
|
|
197
197
|
}
|
|
@@ -218,8 +218,8 @@ function $getBodyBytesCOROUTINE$() {
|
|
|
218
218
|
class $ extends CoroutineImpl() {
|
|
219
219
|
constructor(content, callContext, resultContinuation) {
|
|
220
220
|
super(resultContinuation);
|
|
221
|
-
this.
|
|
222
|
-
this.
|
|
221
|
+
this.x65_1 = content;
|
|
222
|
+
this.y65_1 = callContext;
|
|
223
223
|
}
|
|
224
224
|
ic() {
|
|
225
225
|
var suspendResult = this.cc_1;
|
|
@@ -229,51 +229,51 @@ function $getBodyBytesCOROUTINE$() {
|
|
|
229
229
|
switch (tmp) {
|
|
230
230
|
case 0:
|
|
231
231
|
this.bc_1 = 4;
|
|
232
|
-
this.
|
|
233
|
-
var tmp_0 = this.
|
|
232
|
+
this.z65_1 = this.x65_1;
|
|
233
|
+
var tmp_0 = this.z65_1;
|
|
234
234
|
if (tmp_0 instanceof ByteArrayContent()) {
|
|
235
|
-
this.
|
|
235
|
+
this.a66_1 = this.x65_1.u4b();
|
|
236
236
|
this.ac_1 = 5;
|
|
237
237
|
continue $sm;
|
|
238
238
|
} else {
|
|
239
|
-
var tmp_1 = this.
|
|
239
|
+
var tmp_1 = this.z65_1;
|
|
240
240
|
if (tmp_1 instanceof ReadChannelContent()) {
|
|
241
241
|
this.ac_1 = 3;
|
|
242
|
-
suspendResult = readRemaining(this.
|
|
242
|
+
suspendResult = readRemaining(this.x65_1.x4b(), this);
|
|
243
243
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
244
244
|
return suspendResult;
|
|
245
245
|
}
|
|
246
246
|
continue $sm;
|
|
247
247
|
} else {
|
|
248
|
-
var tmp_2 = this.
|
|
248
|
+
var tmp_2 = this.z65_1;
|
|
249
249
|
if (tmp_2 instanceof WriteChannelContent()) {
|
|
250
250
|
this.ac_1 = 2;
|
|
251
251
|
var tmp_3 = GlobalScope_instance;
|
|
252
|
-
suspendResult = readRemaining(writer(tmp_3, this.
|
|
252
|
+
suspendResult = readRemaining(writer(tmp_3, this.y65_1, VOID, getBodyBytes$slambda_0(this.x65_1, null)).h3n_1, this);
|
|
253
253
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
254
254
|
return suspendResult;
|
|
255
255
|
}
|
|
256
256
|
continue $sm;
|
|
257
257
|
} else {
|
|
258
|
-
var tmp_4 = this.
|
|
258
|
+
var tmp_4 = this.z65_1;
|
|
259
259
|
if (tmp_4 instanceof ContentWrapper()) {
|
|
260
260
|
this.ac_1 = 1;
|
|
261
|
-
suspendResult = getBodyBytes(this.
|
|
261
|
+
suspendResult = getBodyBytes(this.x65_1.d4c(), this.y65_1, this);
|
|
262
262
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
263
263
|
return suspendResult;
|
|
264
264
|
}
|
|
265
265
|
continue $sm;
|
|
266
266
|
} else {
|
|
267
|
-
var tmp_5 = this.
|
|
267
|
+
var tmp_5 = this.z65_1;
|
|
268
268
|
if (tmp_5 instanceof NoContent()) {
|
|
269
|
-
this.
|
|
269
|
+
this.a66_1 = null;
|
|
270
270
|
this.ac_1 = 5;
|
|
271
271
|
continue $sm;
|
|
272
272
|
} else {
|
|
273
|
-
var tmp_6 = this.
|
|
273
|
+
var tmp_6 = this.z65_1;
|
|
274
274
|
if (tmp_6 instanceof ProtocolUpgrade()) {
|
|
275
275
|
var tmp_7 = this;
|
|
276
|
-
throw UnsupportedContentTypeException().
|
|
276
|
+
throw UnsupportedContentTypeException().n55(this.x65_1);
|
|
277
277
|
} else {
|
|
278
278
|
var tmp_8 = this;
|
|
279
279
|
noWhenBranchMatchedException();
|
|
@@ -286,23 +286,23 @@ function $getBodyBytesCOROUTINE$() {
|
|
|
286
286
|
|
|
287
287
|
break;
|
|
288
288
|
case 1:
|
|
289
|
-
this.
|
|
289
|
+
this.a66_1 = suspendResult;
|
|
290
290
|
this.ac_1 = 5;
|
|
291
291
|
continue $sm;
|
|
292
292
|
case 2:
|
|
293
293
|
var ARGUMENT = suspendResult;
|
|
294
|
-
this.
|
|
294
|
+
this.a66_1 = readByteArray(ARGUMENT);
|
|
295
295
|
this.ac_1 = 5;
|
|
296
296
|
continue $sm;
|
|
297
297
|
case 3:
|
|
298
298
|
var ARGUMENT_0 = suspendResult;
|
|
299
|
-
this.
|
|
299
|
+
this.a66_1 = readByteArray(ARGUMENT_0);
|
|
300
300
|
this.ac_1 = 5;
|
|
301
301
|
continue $sm;
|
|
302
302
|
case 4:
|
|
303
303
|
throw this.dc_1;
|
|
304
304
|
case 5:
|
|
305
|
-
return this.
|
|
305
|
+
return this.a66_1;
|
|
306
306
|
}
|
|
307
307
|
} catch ($p) {
|
|
308
308
|
var e = $p;
|
|
@@ -27,7 +27,7 @@ function readBodyBrowser(_this__u8e3s4, response) {
|
|
|
27
27
|
var tmp0_elvis_lhs = response.body;
|
|
28
28
|
var tmp;
|
|
29
29
|
if (tmp0_elvis_lhs == null) {
|
|
30
|
-
return Companion_getInstance().
|
|
30
|
+
return Companion_getInstance().h3d_1;
|
|
31
31
|
} else {
|
|
32
32
|
tmp = tmp0_elvis_lhs;
|
|
33
33
|
}
|
|
@@ -35,7 +35,7 @@ function readBodyBrowser(_this__u8e3s4, response) {
|
|
|
35
35
|
return channelFromStream(_this__u8e3s4, stream);
|
|
36
36
|
}
|
|
37
37
|
function channelFromStream(_this__u8e3s4, stream) {
|
|
38
|
-
return writer(_this__u8e3s4, VOID, VOID, channelFromStream$slambda_0(stream, null)).
|
|
38
|
+
return writer(_this__u8e3s4, VOID, VOID, channelFromStream$slambda_0(stream, null)).h3n_1;
|
|
39
39
|
}
|
|
40
40
|
function readChunk(_this__u8e3s4, $completion) {
|
|
41
41
|
var safe = SafeContinuation().tc(intercepted($completion));
|
|
@@ -54,17 +54,17 @@ function channelFromStream$slambda() {
|
|
|
54
54
|
constructor($stream, resultContinuation, $box) {
|
|
55
55
|
if ($box === VOID)
|
|
56
56
|
$box = {};
|
|
57
|
-
$box.
|
|
57
|
+
$box.t66_1 = $stream;
|
|
58
58
|
super(resultContinuation, $box);
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
var tmp = this.
|
|
60
|
+
z4l($this$writer, $completion) {
|
|
61
|
+
var tmp = this.a4m($this$writer, $completion);
|
|
62
62
|
tmp.cc_1 = Unit_instance;
|
|
63
63
|
tmp.dc_1 = null;
|
|
64
64
|
return tmp.ic();
|
|
65
65
|
}
|
|
66
66
|
kd(p1, $completion) {
|
|
67
|
-
return this.
|
|
67
|
+
return this.z4l(p1 instanceof WriterScope() ? p1 : THROW_CCE(), $completion);
|
|
68
68
|
}
|
|
69
69
|
ic() {
|
|
70
70
|
var suspendResult = this.cc_1;
|
|
@@ -74,7 +74,7 @@ function channelFromStream$slambda() {
|
|
|
74
74
|
switch (tmp) {
|
|
75
75
|
case 0:
|
|
76
76
|
this.bc_1 = 9;
|
|
77
|
-
this.
|
|
77
|
+
this.v66_1 = this.t66_1.getReader();
|
|
78
78
|
this.bc_1 = 7;
|
|
79
79
|
this.ac_1 = 1;
|
|
80
80
|
continue $sm;
|
|
@@ -85,28 +85,28 @@ function channelFromStream$slambda() {
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
this.ac_1 = 2;
|
|
88
|
-
suspendResult = readChunk(this.
|
|
88
|
+
suspendResult = readChunk(this.v66_1, this);
|
|
89
89
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
90
90
|
return suspendResult;
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
continue $sm;
|
|
94
94
|
case 2:
|
|
95
|
-
this.
|
|
96
|
-
if (this.
|
|
95
|
+
this.w66_1 = suspendResult;
|
|
96
|
+
if (this.w66_1 == null) {
|
|
97
97
|
this.ac_1 = 6;
|
|
98
98
|
var tmp_0 = this;
|
|
99
99
|
continue $sm;
|
|
100
100
|
} else {
|
|
101
|
-
this.
|
|
101
|
+
this.x66_1 = this.w66_1;
|
|
102
102
|
this.ac_1 = 3;
|
|
103
103
|
continue $sm;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
case 3:
|
|
107
|
-
this.
|
|
107
|
+
this.y66_1 = this.x66_1;
|
|
108
108
|
this.ac_1 = 4;
|
|
109
|
-
suspendResult = writeFully(this.
|
|
109
|
+
suspendResult = writeFully(this.u66_1.j3n_1, asByteArray(this.y66_1), VOID, VOID, this);
|
|
110
110
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
111
111
|
return suspendResult;
|
|
112
112
|
}
|
|
@@ -114,7 +114,7 @@ function channelFromStream$slambda() {
|
|
|
114
114
|
continue $sm;
|
|
115
115
|
case 4:
|
|
116
116
|
this.ac_1 = 5;
|
|
117
|
-
suspendResult = this.
|
|
117
|
+
suspendResult = this.u66_1.j3n_1.z3a(this);
|
|
118
118
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
119
119
|
return suspendResult;
|
|
120
120
|
}
|
|
@@ -131,9 +131,9 @@ function channelFromStream$slambda() {
|
|
|
131
131
|
this.bc_1 = 9;
|
|
132
132
|
var tmp_1 = this.dc_1;
|
|
133
133
|
if (tmp_1 instanceof Error) {
|
|
134
|
-
this.
|
|
134
|
+
this.z66_1 = this.dc_1;
|
|
135
135
|
this.ac_1 = 8;
|
|
136
|
-
var tmp_2 = this.
|
|
136
|
+
var tmp_2 = this.v66_1.cancel(this.z66_1);
|
|
137
137
|
suspendResult = await_0(tmp_2.catch(channelFromStream$slambda$lambda), this);
|
|
138
138
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
139
139
|
return suspendResult;
|
|
@@ -144,7 +144,7 @@ function channelFromStream$slambda() {
|
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
case 8:
|
|
147
|
-
throw this.
|
|
147
|
+
throw this.z66_1;
|
|
148
148
|
case 9:
|
|
149
149
|
throw this.dc_1;
|
|
150
150
|
case 10:
|
|
@@ -162,9 +162,9 @@ function channelFromStream$slambda() {
|
|
|
162
162
|
}
|
|
163
163
|
while (true);
|
|
164
164
|
}
|
|
165
|
-
|
|
166
|
-
var i = new (channelFromStream$slambda())(this.
|
|
167
|
-
i.
|
|
165
|
+
a4m($this$writer, completion) {
|
|
166
|
+
var i = new (channelFromStream$slambda())(this.t66_1, completion);
|
|
167
|
+
i.u66_1 = $this$writer;
|
|
168
168
|
return i;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
@@ -176,7 +176,7 @@ function channelFromStream$slambda() {
|
|
|
176
176
|
function channelFromStream$slambda_0($stream, resultContinuation) {
|
|
177
177
|
var i = new (channelFromStream$slambda())($stream, resultContinuation);
|
|
178
178
|
var l = function ($this$writer, $completion) {
|
|
179
|
-
return i.
|
|
179
|
+
return i.z4l($this$writer, $completion);
|
|
180
180
|
};
|
|
181
181
|
l.$arity = 1;
|
|
182
182
|
return l;
|
|
@@ -19,14 +19,14 @@ function commonFetch(input, init, requestConfig, config, callJob, $completion) {
|
|
|
19
19
|
cancellable.a23();
|
|
20
20
|
var controller = AbortController_0();
|
|
21
21
|
init.signal = controller.signal;
|
|
22
|
-
config.
|
|
22
|
+
config.y62_1(init);
|
|
23
23
|
requestConfig(init);
|
|
24
24
|
callJob.x1y(true, VOID, commonFetch$lambda(controller));
|
|
25
25
|
var tmp;
|
|
26
|
-
if (PlatformUtils_getInstance().
|
|
26
|
+
if (PlatformUtils_getInstance().x3s_1) {
|
|
27
27
|
tmp = fetch(input, init);
|
|
28
28
|
} else {
|
|
29
|
-
var options = Object.assign(Object.create(null), init, config.
|
|
29
|
+
var options = Object.assign(Object.create(null), init, config.z62_1);
|
|
30
30
|
tmp = fetch(input, options);
|
|
31
31
|
}
|
|
32
32
|
var promise = tmp;
|