@attocash/commons-js 5.0.0 → 5.1.1
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/cash/atto/commons/node/NodeExtensions.export.d.ts +4 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +16 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +41 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -0
- 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-node.mjs +1 -0
- package/commons-commons-node.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/channels/BufferedChannel.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- 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/ByteString.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs.map +1 -1
- 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/selector/SelectorManager.jsAndWasmShared.mjs +2 -2
- 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 +106 -106
- 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
|
@@ -44,7 +44,7 @@ function $invokeCOROUTINE$() {
|
|
|
44
44
|
class $ extends CoroutineImpl() {
|
|
45
45
|
constructor(_this__u8e3s4, resultContinuation) {
|
|
46
46
|
super(resultContinuation);
|
|
47
|
-
this.
|
|
47
|
+
this.z5n_1 = _this__u8e3s4;
|
|
48
48
|
}
|
|
49
49
|
ic() {
|
|
50
50
|
var suspendResult = this.cc_1;
|
|
@@ -54,9 +54,9 @@ function $invokeCOROUTINE$() {
|
|
|
54
54
|
switch (tmp) {
|
|
55
55
|
case 0:
|
|
56
56
|
this.bc_1 = 2;
|
|
57
|
-
this.
|
|
57
|
+
this.a5o_1 = this.z5n_1.b5o_1;
|
|
58
58
|
this.ac_1 = 1;
|
|
59
|
-
suspendResult = this.
|
|
59
|
+
suspendResult = this.a5o_1.y3v(this);
|
|
60
60
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
61
61
|
return suspendResult;
|
|
62
62
|
}
|
|
@@ -89,16 +89,16 @@ function PipelineContext$proceed$ref() {
|
|
|
89
89
|
if (PipelineContext$proceed$refClass === VOID) {
|
|
90
90
|
class $ {
|
|
91
91
|
constructor(p0) {
|
|
92
|
-
this.
|
|
92
|
+
this.b5o_1 = p0;
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
q3m($completion) {
|
|
95
95
|
var tmp = new ($invokeCOROUTINE$())(this, $completion);
|
|
96
96
|
tmp.cc_1 = Unit_instance;
|
|
97
97
|
tmp.dc_1 = null;
|
|
98
98
|
return tmp.ic();
|
|
99
99
|
}
|
|
100
100
|
pe($completion) {
|
|
101
|
-
return this.
|
|
101
|
+
return this.q3m($completion);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
initMetadataForFunctionReference($, VOID, VOID, [0]);
|
|
@@ -109,7 +109,7 @@ function PipelineContext$proceed$ref() {
|
|
|
109
109
|
function PipelineContext$proceed$ref_0(p0) {
|
|
110
110
|
var i = new (PipelineContext$proceed$ref())(p0);
|
|
111
111
|
var l = function ($completion) {
|
|
112
|
-
return i.
|
|
112
|
+
return i.q3m($completion);
|
|
113
113
|
};
|
|
114
114
|
l.$arity = 0;
|
|
115
115
|
return l;
|
|
@@ -121,18 +121,18 @@ function SetupRequestContext$install$slambda() {
|
|
|
121
121
|
constructor($handler, resultContinuation, $box) {
|
|
122
122
|
if ($box === VOID)
|
|
123
123
|
$box = {};
|
|
124
|
-
$box.
|
|
124
|
+
$box.k5o_1 = $handler;
|
|
125
125
|
super(resultContinuation, $box);
|
|
126
126
|
}
|
|
127
|
-
|
|
128
|
-
var tmp = this.
|
|
127
|
+
g4z($this$intercept, it, $completion) {
|
|
128
|
+
var tmp = this.h4z($this$intercept, it, $completion);
|
|
129
129
|
tmp.cc_1 = Unit_instance;
|
|
130
130
|
tmp.dc_1 = null;
|
|
131
131
|
return tmp.ic();
|
|
132
132
|
}
|
|
133
133
|
ld(p1, p2, $completion) {
|
|
134
134
|
var tmp = p1 instanceof PipelineContext() ? p1 : THROW_CCE();
|
|
135
|
-
return this.
|
|
135
|
+
return this.g4z(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
136
136
|
}
|
|
137
137
|
ic() {
|
|
138
138
|
var suspendResult = this.cc_1;
|
|
@@ -143,7 +143,7 @@ function SetupRequestContext$install$slambda() {
|
|
|
143
143
|
case 0:
|
|
144
144
|
this.bc_1 = 2;
|
|
145
145
|
this.ac_1 = 1;
|
|
146
|
-
suspendResult = this.
|
|
146
|
+
suspendResult = this.k5o_1(this.l5o_1.v3w_1, PipelineContext$proceed$ref_0(this.l5o_1), this);
|
|
147
147
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
148
148
|
return suspendResult;
|
|
149
149
|
}
|
|
@@ -165,10 +165,10 @@ function SetupRequestContext$install$slambda() {
|
|
|
165
165
|
}
|
|
166
166
|
while (true);
|
|
167
167
|
}
|
|
168
|
-
|
|
169
|
-
var i = new (SetupRequestContext$install$slambda())(this.
|
|
170
|
-
i.
|
|
171
|
-
i.
|
|
168
|
+
h4z($this$intercept, it, completion) {
|
|
169
|
+
var i = new (SetupRequestContext$install$slambda())(this.k5o_1, completion);
|
|
170
|
+
i.l5o_1 = $this$intercept;
|
|
171
|
+
i.m5o_1 = it;
|
|
172
172
|
return i;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
@@ -180,7 +180,7 @@ function SetupRequestContext$install$slambda() {
|
|
|
180
180
|
function SetupRequestContext$install$slambda_0($handler, resultContinuation) {
|
|
181
181
|
var i = new (SetupRequestContext$install$slambda())($handler, resultContinuation);
|
|
182
182
|
var l = function ($this$intercept, it, $completion) {
|
|
183
|
-
return i.
|
|
183
|
+
return i.g4z($this$intercept, it, $completion);
|
|
184
184
|
};
|
|
185
185
|
l.$arity = 2;
|
|
186
186
|
return l;
|
|
@@ -189,12 +189,12 @@ var SetupRequestContextClass;
|
|
|
189
189
|
function SetupRequestContext() {
|
|
190
190
|
if (SetupRequestContextClass === VOID) {
|
|
191
191
|
class $ {
|
|
192
|
-
|
|
193
|
-
var tmp = Phases_getInstance().
|
|
194
|
-
client.
|
|
192
|
+
n5o(client, handler) {
|
|
193
|
+
var tmp = Phases_getInstance().i59_1;
|
|
194
|
+
client.m4y_1.z3w(tmp, SetupRequestContext$install$slambda_0(handler, null));
|
|
195
195
|
}
|
|
196
|
-
|
|
197
|
-
return this.
|
|
196
|
+
n59(client, handler) {
|
|
197
|
+
return this.n5o(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
initMetadataForObject($, 'SetupRequestContext');
|
|
@@ -214,7 +214,7 @@ function attachToClientEngineJob(requestJob, clientEngineJob) {
|
|
|
214
214
|
function HttpRequestLifecycle$lambda($this$createClientPlugin) {
|
|
215
215
|
_init_properties_HttpRequestLifecycle_kt__jgkmfx();
|
|
216
216
|
var tmp = SetupRequestContext_instance;
|
|
217
|
-
$this$createClientPlugin.
|
|
217
|
+
$this$createClientPlugin.l5a(tmp, HttpRequestLifecycle$lambda$slambda_0($this$createClientPlugin, null));
|
|
218
218
|
return Unit_instance;
|
|
219
219
|
}
|
|
220
220
|
var HttpRequestLifecycle$lambda$slambdaClass;
|
|
@@ -224,18 +224,18 @@ function HttpRequestLifecycle$lambda$slambda() {
|
|
|
224
224
|
constructor($this_createClientPlugin, resultContinuation, $box) {
|
|
225
225
|
if ($box === VOID)
|
|
226
226
|
$box = {};
|
|
227
|
-
$box.
|
|
227
|
+
$box.w5o_1 = $this_createClientPlugin;
|
|
228
228
|
super(resultContinuation, $box);
|
|
229
229
|
}
|
|
230
|
-
|
|
231
|
-
var tmp = this.
|
|
230
|
+
b5p(request, proceed, $completion) {
|
|
231
|
+
var tmp = this.c5p(request, proceed, $completion);
|
|
232
232
|
tmp.cc_1 = Unit_instance;
|
|
233
233
|
tmp.dc_1 = null;
|
|
234
234
|
return tmp.ic();
|
|
235
235
|
}
|
|
236
236
|
ld(p1, p2, $completion) {
|
|
237
237
|
var tmp = p1 instanceof HttpRequestBuilder() ? p1 : THROW_CCE();
|
|
238
|
-
return this.
|
|
238
|
+
return this.b5p(tmp, (!(p2 == null) ? isSuspendFunction(p2, 0) : false) ? p2 : THROW_CCE(), $completion);
|
|
239
239
|
}
|
|
240
240
|
ic() {
|
|
241
241
|
var suspendResult = this.cc_1;
|
|
@@ -245,23 +245,23 @@ function HttpRequestLifecycle$lambda$slambda() {
|
|
|
245
245
|
switch (tmp) {
|
|
246
246
|
case 0:
|
|
247
247
|
this.bc_1 = 6;
|
|
248
|
-
this.
|
|
249
|
-
attachToClientEngineJob(this.
|
|
248
|
+
this.z5o_1 = SupervisorJob(this.x5o_1.r50_1);
|
|
249
|
+
attachToClientEngineJob(this.z5o_1, ensureNotNull(this.w5o_1.h5a_1.l4y_1.nc(Key_instance)));
|
|
250
250
|
this.ac_1 = 1;
|
|
251
251
|
continue $sm;
|
|
252
252
|
case 1:
|
|
253
253
|
this.bc_1 = 4;
|
|
254
254
|
this.bc_1 = 3;
|
|
255
|
-
this.
|
|
255
|
+
this.x5o_1.r50_1 = this.z5o_1;
|
|
256
256
|
this.ac_1 = 2;
|
|
257
|
-
suspendResult = this.
|
|
257
|
+
suspendResult = this.y5o_1(this);
|
|
258
258
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
259
259
|
return suspendResult;
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
continue $sm;
|
|
263
263
|
case 2:
|
|
264
|
-
this.
|
|
264
|
+
this.a5p_1 = suspendResult;
|
|
265
265
|
this.bc_1 = 6;
|
|
266
266
|
this.ac_1 = 5;
|
|
267
267
|
continue $sm;
|
|
@@ -271,7 +271,7 @@ function HttpRequestLifecycle$lambda$slambda() {
|
|
|
271
271
|
if (tmp_0 instanceof Error) {
|
|
272
272
|
var cause = this.dc_1;
|
|
273
273
|
var tmp_1 = this;
|
|
274
|
-
this.
|
|
274
|
+
this.z5o_1.c25(cause);
|
|
275
275
|
throw cause;
|
|
276
276
|
} else {
|
|
277
277
|
throw this.dc_1;
|
|
@@ -280,11 +280,11 @@ function HttpRequestLifecycle$lambda$slambda() {
|
|
|
280
280
|
case 4:
|
|
281
281
|
this.bc_1 = 6;
|
|
282
282
|
var t = this.dc_1;
|
|
283
|
-
this.
|
|
283
|
+
this.z5o_1.d25();
|
|
284
284
|
throw t;
|
|
285
285
|
case 5:
|
|
286
286
|
this.bc_1 = 6;
|
|
287
|
-
this.
|
|
287
|
+
this.z5o_1.d25();
|
|
288
288
|
return Unit_instance;
|
|
289
289
|
case 6:
|
|
290
290
|
throw this.dc_1;
|
|
@@ -300,10 +300,10 @@ function HttpRequestLifecycle$lambda$slambda() {
|
|
|
300
300
|
}
|
|
301
301
|
while (true);
|
|
302
302
|
}
|
|
303
|
-
|
|
304
|
-
var i = new (HttpRequestLifecycle$lambda$slambda())(this.
|
|
305
|
-
i.
|
|
306
|
-
i.
|
|
303
|
+
c5p(request, proceed, completion) {
|
|
304
|
+
var i = new (HttpRequestLifecycle$lambda$slambda())(this.w5o_1, completion);
|
|
305
|
+
i.x5o_1 = request;
|
|
306
|
+
i.y5o_1 = proceed;
|
|
307
307
|
return i;
|
|
308
308
|
}
|
|
309
309
|
}
|
|
@@ -315,7 +315,7 @@ function HttpRequestLifecycle$lambda$slambda() {
|
|
|
315
315
|
function HttpRequestLifecycle$lambda$slambda_0($this_createClientPlugin, resultContinuation) {
|
|
316
316
|
var i = new (HttpRequestLifecycle$lambda$slambda())($this_createClientPlugin, resultContinuation);
|
|
317
317
|
var l = function (request, proceed, $completion) {
|
|
318
|
-
return i.
|
|
318
|
+
return i.b5p(request, proceed, $completion);
|
|
319
319
|
};
|
|
320
320
|
l.$arity = 2;
|
|
321
321
|
return l;
|
|
@@ -323,10 +323,10 @@ function HttpRequestLifecycle$lambda$slambda_0($this_createClientPlugin, resultC
|
|
|
323
323
|
function attachToClientEngineJob$lambda($requestJob) {
|
|
324
324
|
return function (cause) {
|
|
325
325
|
if (!(cause == null)) {
|
|
326
|
-
get_LOGGER().
|
|
326
|
+
get_LOGGER().g3y('Cancelling request because engine Job failed with error: ' + toString(cause));
|
|
327
327
|
cancel($requestJob, 'Engine failed', cause);
|
|
328
328
|
} else {
|
|
329
|
-
get_LOGGER().
|
|
329
|
+
get_LOGGER().g3y('Cancelling request because engine Job completed');
|
|
330
330
|
$requestJob.d25();
|
|
331
331
|
}
|
|
332
332
|
return Unit_instance;
|
|
@@ -58,19 +58,19 @@ function HttpSend$Plugin$install$slambda() {
|
|
|
58
58
|
constructor($plugin, $scope, resultContinuation, $box) {
|
|
59
59
|
if ($box === VOID)
|
|
60
60
|
$box = {};
|
|
61
|
-
$box.
|
|
62
|
-
$box.
|
|
61
|
+
$box.m5p_1 = $plugin;
|
|
62
|
+
$box.n5p_1 = $scope;
|
|
63
63
|
super(resultContinuation, $box);
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
var tmp = this.
|
|
65
|
+
g4z($this$intercept, content, $completion) {
|
|
66
|
+
var tmp = this.h4z($this$intercept, content, $completion);
|
|
67
67
|
tmp.cc_1 = Unit_instance;
|
|
68
68
|
tmp.dc_1 = null;
|
|
69
69
|
return tmp.ic();
|
|
70
70
|
}
|
|
71
71
|
ld(p1, p2, $completion) {
|
|
72
72
|
var tmp = p1 instanceof PipelineContext() ? p1 : THROW_CCE();
|
|
73
|
-
return this.
|
|
73
|
+
return this.g4z(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
74
74
|
}
|
|
75
75
|
ic() {
|
|
76
76
|
var suspendResult = this.cc_1;
|
|
@@ -80,16 +80,16 @@ function HttpSend$Plugin$install$slambda() {
|
|
|
80
80
|
switch (tmp) {
|
|
81
81
|
case 0:
|
|
82
82
|
this.bc_1 = 3;
|
|
83
|
-
var tmp_0 = this.
|
|
83
|
+
var tmp_0 = this.p5p_1;
|
|
84
84
|
if (!(tmp_0 instanceof OutgoingContent())) {
|
|
85
|
-
var message = trimMargin('\n|Fail to prepare request body for sending. \n|The body type is: ' + toString(getKClassFromExpression(this.
|
|
85
|
+
var message = trimMargin('\n|Fail to prepare request body for sending. \n|The body type is: ' + toString(getKClassFromExpression(this.p5p_1)) + ', with Content-Type: ' + toString_0(contentType(this.o5p_1.v3w_1)) + '.\n|\n|If you expect serialized body, please check that you have installed the corresponding plugin(like `ContentNegotiation`) and set `Content-Type` header.');
|
|
86
86
|
throw IllegalStateException().o4(toString(message));
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
var tmp0 = this.
|
|
90
|
-
var body = this.
|
|
89
|
+
var tmp0 = this.o5p_1.v3w_1;
|
|
90
|
+
var body = this.p5p_1;
|
|
91
91
|
if (body == null) {
|
|
92
|
-
tmp0.
|
|
92
|
+
tmp0.q50_1 = NullBody_instance;
|
|
93
93
|
var tmp_1 = getKClass(OutgoingContent());
|
|
94
94
|
var tmp_2;
|
|
95
95
|
try {
|
|
@@ -104,13 +104,13 @@ function HttpSend$Plugin$install$slambda() {
|
|
|
104
104
|
}
|
|
105
105
|
tmp_2 = tmp_3;
|
|
106
106
|
}
|
|
107
|
-
tmp0.
|
|
107
|
+
tmp0.q57(new (TypeInfo())(tmp_1, tmp_2));
|
|
108
108
|
} else {
|
|
109
109
|
if (body instanceof OutgoingContent()) {
|
|
110
|
-
tmp0.
|
|
111
|
-
tmp0.
|
|
110
|
+
tmp0.q50_1 = body;
|
|
111
|
+
tmp0.q57(null);
|
|
112
112
|
} else {
|
|
113
|
-
tmp0.
|
|
113
|
+
tmp0.q50_1 = body;
|
|
114
114
|
var tmp_4 = getKClass(OutgoingContent());
|
|
115
115
|
var tmp_5;
|
|
116
116
|
try {
|
|
@@ -125,29 +125,29 @@ function HttpSend$Plugin$install$slambda() {
|
|
|
125
125
|
}
|
|
126
126
|
tmp_5 = tmp_6;
|
|
127
127
|
}
|
|
128
|
-
tmp0.
|
|
128
|
+
tmp0.q57(new (TypeInfo())(tmp_4, tmp_5));
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
this.
|
|
133
|
-
this.
|
|
134
|
-
var _iterator__ex2g4s = reversed(this.
|
|
132
|
+
this.q5p_1 = new (DefaultSender())(this.m5p_1.t5p_1, this.n5p_1);
|
|
133
|
+
this.r5p_1 = this.q5p_1;
|
|
134
|
+
var _iterator__ex2g4s = reversed(this.m5p_1.u5p_1).d1();
|
|
135
135
|
while (_iterator__ex2g4s.e1()) {
|
|
136
136
|
var interceptor = _iterator__ex2g4s.f1();
|
|
137
|
-
this.
|
|
137
|
+
this.r5p_1 = new (InterceptedSender())(interceptor, this.r5p_1);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
this.ac_1 = 1;
|
|
141
|
-
suspendResult = this.
|
|
141
|
+
suspendResult = this.r5p_1.d5p(this.o5p_1.v3w_1, this);
|
|
142
142
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
143
143
|
return suspendResult;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
continue $sm;
|
|
147
147
|
case 1:
|
|
148
|
-
this.
|
|
148
|
+
this.s5p_1 = suspendResult;
|
|
149
149
|
this.ac_1 = 2;
|
|
150
|
-
suspendResult = this.
|
|
150
|
+
suspendResult = this.o5p_1.x3v(this.s5p_1, this);
|
|
151
151
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
152
152
|
return suspendResult;
|
|
153
153
|
}
|
|
@@ -169,10 +169,10 @@ function HttpSend$Plugin$install$slambda() {
|
|
|
169
169
|
}
|
|
170
170
|
while (true);
|
|
171
171
|
}
|
|
172
|
-
|
|
173
|
-
var i = new (HttpSend$Plugin$install$slambda())(this.
|
|
174
|
-
i.
|
|
175
|
-
i.
|
|
172
|
+
h4z($this$intercept, content, completion) {
|
|
173
|
+
var i = new (HttpSend$Plugin$install$slambda())(this.m5p_1, this.n5p_1, completion);
|
|
174
|
+
i.o5p_1 = $this$intercept;
|
|
175
|
+
i.p5p_1 = content;
|
|
176
176
|
return i;
|
|
177
177
|
}
|
|
178
178
|
}
|
|
@@ -184,7 +184,7 @@ function HttpSend$Plugin$install$slambda() {
|
|
|
184
184
|
function HttpSend$Plugin$install$slambda_0($plugin, $scope, resultContinuation) {
|
|
185
185
|
var i = new (HttpSend$Plugin$install$slambda())($plugin, $scope, resultContinuation);
|
|
186
186
|
var l = function ($this$intercept, content, $completion) {
|
|
187
|
-
return i.
|
|
187
|
+
return i.g4z($this$intercept, content, $completion);
|
|
188
188
|
};
|
|
189
189
|
l.$arity = 2;
|
|
190
190
|
return l;
|
|
@@ -195,8 +195,8 @@ function $executeCOROUTINE$() {
|
|
|
195
195
|
class $ extends CoroutineImpl() {
|
|
196
196
|
constructor(_this__u8e3s4, requestBuilder, resultContinuation) {
|
|
197
197
|
super(resultContinuation);
|
|
198
|
-
this.
|
|
199
|
-
this.
|
|
198
|
+
this.d5q_1 = _this__u8e3s4;
|
|
199
|
+
this.e5q_1 = requestBuilder;
|
|
200
200
|
}
|
|
201
201
|
ic() {
|
|
202
202
|
var suspendResult = this.cc_1;
|
|
@@ -206,21 +206,21 @@ function $executeCOROUTINE$() {
|
|
|
206
206
|
switch (tmp) {
|
|
207
207
|
case 0:
|
|
208
208
|
this.bc_1 = 2;
|
|
209
|
-
var tmp0_safe_receiver = this.
|
|
209
|
+
var tmp0_safe_receiver = this.d5q_1.i5q_1;
|
|
210
210
|
if (tmp0_safe_receiver == null)
|
|
211
211
|
null;
|
|
212
212
|
else {
|
|
213
213
|
cancel(tmp0_safe_receiver);
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
if (this.
|
|
217
|
-
throw SendCountExceedException().
|
|
216
|
+
if (this.d5q_1.h5q_1 >= this.d5q_1.f5q_1) {
|
|
217
|
+
throw SendCountExceedException().n5q('Max send count ' + this.d5q_1.f5q_1 + ' exceeded. Consider increasing the property ' + 'maxSendCount if more is required.');
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
var _unary__edvuaz = this.
|
|
221
|
-
this.
|
|
220
|
+
var _unary__edvuaz = this.d5q_1.h5q_1;
|
|
221
|
+
this.d5q_1.h5q_1 = _unary__edvuaz + 1 | 0;
|
|
222
222
|
this.ac_1 = 1;
|
|
223
|
-
suspendResult = this.
|
|
223
|
+
suspendResult = this.d5q_1.g5q_1.o4y_1.u3w(this.e5q_1, this.e5q_1.q50_1, this);
|
|
224
224
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
225
225
|
return suspendResult;
|
|
226
226
|
}
|
|
@@ -238,7 +238,7 @@ function $executeCOROUTINE$() {
|
|
|
238
238
|
}
|
|
239
239
|
|
|
240
240
|
var call = tmp_0;
|
|
241
|
-
this.
|
|
241
|
+
this.d5q_1.i5q_1 = call;
|
|
242
242
|
return call;
|
|
243
243
|
case 2:
|
|
244
244
|
throw this.dc_1;
|
|
@@ -265,7 +265,7 @@ function Config() {
|
|
|
265
265
|
if (ConfigClass === VOID) {
|
|
266
266
|
class $ {
|
|
267
267
|
constructor() {
|
|
268
|
-
this.
|
|
268
|
+
this.o5q_1 = 20;
|
|
269
269
|
}
|
|
270
270
|
}
|
|
271
271
|
initMetadataForClass($, 'Config', Config);
|
|
@@ -300,27 +300,27 @@ function Plugin() {
|
|
|
300
300
|
}
|
|
301
301
|
var tmp$ret$0 = tmp_1;
|
|
302
302
|
var tmp$ret$1 = new (TypeInfo())(tmp_0, tmp$ret$0);
|
|
303
|
-
tmp.
|
|
303
|
+
tmp.p5q_1 = new (AttributeKey())(name, tmp$ret$1);
|
|
304
304
|
}
|
|
305
305
|
r1() {
|
|
306
|
-
return this.
|
|
306
|
+
return this.p5q_1;
|
|
307
307
|
}
|
|
308
|
-
|
|
308
|
+
q5q(block) {
|
|
309
309
|
// Inline function 'kotlin.apply' call
|
|
310
310
|
var this_0 = new (Config())();
|
|
311
311
|
block(this_0);
|
|
312
312
|
var config = this_0;
|
|
313
|
-
return new (HttpSend())(config.
|
|
313
|
+
return new (HttpSend())(config.o5q_1);
|
|
314
314
|
}
|
|
315
|
-
|
|
316
|
-
return this.
|
|
315
|
+
u51(block) {
|
|
316
|
+
return this.q5q(block);
|
|
317
317
|
}
|
|
318
|
-
|
|
319
|
-
var tmp = Phases_getInstance().
|
|
320
|
-
scope.
|
|
318
|
+
r5q(plugin, scope) {
|
|
319
|
+
var tmp = Phases_getInstance().m59_1;
|
|
320
|
+
scope.m4y_1.z3w(tmp, HttpSend$Plugin$install$slambda_0(plugin, scope, null));
|
|
321
321
|
}
|
|
322
|
-
|
|
323
|
-
return this.
|
|
322
|
+
v51(plugin, scope) {
|
|
323
|
+
return this.r5q(plugin instanceof HttpSend() ? plugin : THROW_CCE(), scope);
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
initMetadataForObject($, 'Plugin');
|
|
@@ -339,11 +339,11 @@ function InterceptedSender() {
|
|
|
339
339
|
if (InterceptedSenderClass === VOID) {
|
|
340
340
|
class $ {
|
|
341
341
|
constructor(interceptor, nextSender) {
|
|
342
|
-
this.
|
|
343
|
-
this.
|
|
342
|
+
this.s5q_1 = interceptor;
|
|
343
|
+
this.t5q_1 = nextSender;
|
|
344
344
|
}
|
|
345
|
-
|
|
346
|
-
return this.
|
|
345
|
+
d5p(requestBuilder, $completion) {
|
|
346
|
+
return this.s5q_1(this.t5q_1, requestBuilder, $completion);
|
|
347
347
|
}
|
|
348
348
|
}
|
|
349
349
|
initMetadataForClass($, 'InterceptedSender', VOID, VOID, [Sender()], [1]);
|
|
@@ -356,12 +356,12 @@ function DefaultSender() {
|
|
|
356
356
|
if (DefaultSenderClass === VOID) {
|
|
357
357
|
class $ {
|
|
358
358
|
constructor(maxSendCount, client) {
|
|
359
|
-
this.
|
|
360
|
-
this.
|
|
361
|
-
this.
|
|
362
|
-
this.
|
|
359
|
+
this.f5q_1 = maxSendCount;
|
|
360
|
+
this.g5q_1 = client;
|
|
361
|
+
this.h5q_1 = 0;
|
|
362
|
+
this.i5q_1 = null;
|
|
363
363
|
}
|
|
364
|
-
|
|
364
|
+
d5p(requestBuilder, $completion) {
|
|
365
365
|
var tmp = new ($executeCOROUTINE$())(this, requestBuilder, $completion);
|
|
366
366
|
tmp.cc_1 = Unit_instance;
|
|
367
367
|
tmp.dc_1 = null;
|
|
@@ -380,14 +380,14 @@ function HttpSend() {
|
|
|
380
380
|
constructor(maxSendCount) {
|
|
381
381
|
Plugin_getInstance();
|
|
382
382
|
maxSendCount = maxSendCount === VOID ? 20 : maxSendCount;
|
|
383
|
-
this.
|
|
383
|
+
this.t5p_1 = maxSendCount;
|
|
384
384
|
var tmp = this;
|
|
385
385
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
386
|
-
tmp.
|
|
386
|
+
tmp.u5p_1 = ArrayList().l1();
|
|
387
387
|
}
|
|
388
|
-
|
|
388
|
+
u5q(block) {
|
|
389
389
|
// Inline function 'kotlin.collections.plusAssign' call
|
|
390
|
-
this.
|
|
390
|
+
this.u5p_1.m(block);
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
initMetadataForClass($, 'HttpSend');
|
|
@@ -399,9 +399,9 @@ var SendCountExceedExceptionClass;
|
|
|
399
399
|
function SendCountExceedException() {
|
|
400
400
|
if (SendCountExceedExceptionClass === VOID) {
|
|
401
401
|
class $ extends IllegalStateException() {
|
|
402
|
-
static
|
|
402
|
+
static n5q(message) {
|
|
403
403
|
var $this = this.o4(message);
|
|
404
|
-
captureStack($this, $this.
|
|
404
|
+
captureStack($this, $this.m5q_1);
|
|
405
405
|
return $this;
|
|
406
406
|
}
|
|
407
407
|
}
|