@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
|
@@ -10,10 +10,10 @@ var ConnectTimeoutExceptionClass;
|
|
|
10
10
|
function ConnectTimeoutException() {
|
|
11
11
|
if (ConnectTimeoutExceptionClass === VOID) {
|
|
12
12
|
class $ extends IOException() {
|
|
13
|
-
static
|
|
13
|
+
static u5r(message, cause) {
|
|
14
14
|
cause = cause === VOID ? null : cause;
|
|
15
|
-
var $this = this.
|
|
16
|
-
captureStack($this, $this.
|
|
15
|
+
var $this = this.a2v(message, cause);
|
|
16
|
+
captureStack($this, $this.t5r_1);
|
|
17
17
|
return $this;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -54,18 +54,18 @@ function AfterRenderHook$install$slambda() {
|
|
|
54
54
|
constructor($handler, resultContinuation, $box) {
|
|
55
55
|
if ($box === VOID)
|
|
56
56
|
$box = {};
|
|
57
|
-
$box.
|
|
57
|
+
$box.c59_1 = $handler;
|
|
58
58
|
super(resultContinuation, $box);
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
var tmp = this.
|
|
60
|
+
g4z($this$intercept, content, $completion) {
|
|
61
|
+
var tmp = this.h4z($this$intercept, content, $completion);
|
|
62
62
|
tmp.cc_1 = Unit_instance;
|
|
63
63
|
tmp.dc_1 = null;
|
|
64
64
|
return tmp.ic();
|
|
65
65
|
}
|
|
66
66
|
ld(p1, p2, $completion) {
|
|
67
67
|
var tmp = p1 instanceof PipelineContext() ? p1 : THROW_CCE();
|
|
68
|
-
return this.
|
|
68
|
+
return this.g4z(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
69
69
|
}
|
|
70
70
|
ic() {
|
|
71
71
|
var suspendResult = this.cc_1;
|
|
@@ -75,29 +75,29 @@ function AfterRenderHook$install$slambda() {
|
|
|
75
75
|
switch (tmp) {
|
|
76
76
|
case 0:
|
|
77
77
|
this.bc_1 = 3;
|
|
78
|
-
var tmp_0 = this.
|
|
78
|
+
var tmp_0 = this.e59_1;
|
|
79
79
|
if (!(tmp_0 instanceof OutgoingContent()))
|
|
80
80
|
return Unit_instance;
|
|
81
81
|
this.ac_1 = 1;
|
|
82
|
-
suspendResult = this.
|
|
82
|
+
suspendResult = this.c59_1(this.d59_1.v3w_1, this.e59_1, this);
|
|
83
83
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
84
84
|
return suspendResult;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
continue $sm;
|
|
88
88
|
case 1:
|
|
89
|
-
this.
|
|
89
|
+
this.f59_1 = suspendResult;
|
|
90
90
|
var tmp_1 = this;
|
|
91
91
|
var tmp_2;
|
|
92
|
-
if (this.
|
|
92
|
+
if (this.f59_1 == null) {
|
|
93
93
|
return Unit_instance;
|
|
94
94
|
} else {
|
|
95
|
-
tmp_2 = this.
|
|
95
|
+
tmp_2 = this.f59_1;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
tmp_1.
|
|
98
|
+
tmp_1.g59_1 = tmp_2;
|
|
99
99
|
this.ac_1 = 2;
|
|
100
|
-
suspendResult = this.
|
|
100
|
+
suspendResult = this.d59_1.x3v(this.g59_1, this);
|
|
101
101
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
102
102
|
return suspendResult;
|
|
103
103
|
}
|
|
@@ -119,10 +119,10 @@ function AfterRenderHook$install$slambda() {
|
|
|
119
119
|
}
|
|
120
120
|
while (true);
|
|
121
121
|
}
|
|
122
|
-
|
|
123
|
-
var i = new (AfterRenderHook$install$slambda())(this.
|
|
124
|
-
i.
|
|
125
|
-
i.
|
|
122
|
+
h4z($this$intercept, content, completion) {
|
|
123
|
+
var i = new (AfterRenderHook$install$slambda())(this.c59_1, completion);
|
|
124
|
+
i.d59_1 = $this$intercept;
|
|
125
|
+
i.e59_1 = content;
|
|
126
126
|
return i;
|
|
127
127
|
}
|
|
128
128
|
}
|
|
@@ -134,7 +134,7 @@ function AfterRenderHook$install$slambda() {
|
|
|
134
134
|
function AfterRenderHook$install$slambda_0($handler, resultContinuation) {
|
|
135
135
|
var i = new (AfterRenderHook$install$slambda())($handler, resultContinuation);
|
|
136
136
|
var l = function ($this$intercept, content, $completion) {
|
|
137
|
-
return i.
|
|
137
|
+
return i.g4z($this$intercept, content, $completion);
|
|
138
138
|
};
|
|
139
139
|
l.$arity = 2;
|
|
140
140
|
return l;
|
|
@@ -143,13 +143,13 @@ var AfterRenderHookClass;
|
|
|
143
143
|
function AfterRenderHook() {
|
|
144
144
|
if (AfterRenderHookClass === VOID) {
|
|
145
145
|
class $ {
|
|
146
|
-
|
|
146
|
+
h59(client, handler) {
|
|
147
147
|
var observableContentPhase = new (PipelinePhase())('ObservableContent');
|
|
148
|
-
client.
|
|
149
|
-
client.
|
|
148
|
+
client.m4y_1.w3w(Phases_getInstance().l59_1, observableContentPhase);
|
|
149
|
+
client.m4y_1.z3w(observableContentPhase, AfterRenderHook$install$slambda_0(handler, null));
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
return this.
|
|
151
|
+
n59(client, handler) {
|
|
152
|
+
return this.h59(client, (!(handler == null) ? isSuspendFunction(handler, 2) : false) ? handler : THROW_CCE());
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
155
|
initMetadataForObject($, 'AfterRenderHook');
|
|
@@ -168,18 +168,18 @@ function AfterReceiveHook$install$slambda() {
|
|
|
168
168
|
constructor($handler, resultContinuation, $box) {
|
|
169
169
|
if ($box === VOID)
|
|
170
170
|
$box = {};
|
|
171
|
-
$box.
|
|
171
|
+
$box.w59_1 = $handler;
|
|
172
172
|
super(resultContinuation, $box);
|
|
173
173
|
}
|
|
174
|
-
|
|
175
|
-
var tmp = this.
|
|
174
|
+
a5a($this$intercept, response, $completion) {
|
|
175
|
+
var tmp = this.b5a($this$intercept, response, $completion);
|
|
176
176
|
tmp.cc_1 = Unit_instance;
|
|
177
177
|
tmp.dc_1 = null;
|
|
178
178
|
return tmp.ic();
|
|
179
179
|
}
|
|
180
180
|
ld(p1, p2, $completion) {
|
|
181
181
|
var tmp = p1 instanceof PipelineContext() ? p1 : THROW_CCE();
|
|
182
|
-
return this.
|
|
182
|
+
return this.a5a(tmp, p2 instanceof HttpResponse() ? p2 : THROW_CCE(), $completion);
|
|
183
183
|
}
|
|
184
184
|
ic() {
|
|
185
185
|
var suspendResult = this.cc_1;
|
|
@@ -190,17 +190,17 @@ function AfterReceiveHook$install$slambda() {
|
|
|
190
190
|
case 0:
|
|
191
191
|
this.bc_1 = 4;
|
|
192
192
|
this.ac_1 = 1;
|
|
193
|
-
suspendResult = this.
|
|
193
|
+
suspendResult = this.w59_1(this.y59_1, this);
|
|
194
194
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
195
195
|
return suspendResult;
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
continue $sm;
|
|
199
199
|
case 1:
|
|
200
|
-
this.
|
|
201
|
-
if (!(this.
|
|
200
|
+
this.z59_1 = suspendResult;
|
|
201
|
+
if (!(this.z59_1 == null)) {
|
|
202
202
|
this.ac_1 = 2;
|
|
203
|
-
suspendResult = this.
|
|
203
|
+
suspendResult = this.x59_1.x3v(this.z59_1, this);
|
|
204
204
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
205
205
|
return suspendResult;
|
|
206
206
|
}
|
|
@@ -229,10 +229,10 @@ function AfterReceiveHook$install$slambda() {
|
|
|
229
229
|
}
|
|
230
230
|
while (true);
|
|
231
231
|
}
|
|
232
|
-
|
|
233
|
-
var i = new (AfterReceiveHook$install$slambda())(this.
|
|
234
|
-
i.
|
|
235
|
-
i.
|
|
232
|
+
b5a($this$intercept, response, completion) {
|
|
233
|
+
var i = new (AfterReceiveHook$install$slambda())(this.w59_1, completion);
|
|
234
|
+
i.x59_1 = $this$intercept;
|
|
235
|
+
i.y59_1 = response;
|
|
236
236
|
return i;
|
|
237
237
|
}
|
|
238
238
|
}
|
|
@@ -244,7 +244,7 @@ function AfterReceiveHook$install$slambda() {
|
|
|
244
244
|
function AfterReceiveHook$install$slambda_0($handler, resultContinuation) {
|
|
245
245
|
var i = new (AfterReceiveHook$install$slambda())($handler, resultContinuation);
|
|
246
246
|
var l = function ($this$intercept, response, $completion) {
|
|
247
|
-
return i.
|
|
247
|
+
return i.a5a($this$intercept, response, $completion);
|
|
248
248
|
};
|
|
249
249
|
l.$arity = 2;
|
|
250
250
|
return l;
|
|
@@ -253,12 +253,12 @@ var AfterReceiveHookClass;
|
|
|
253
253
|
function AfterReceiveHook() {
|
|
254
254
|
if (AfterReceiveHookClass === VOID) {
|
|
255
255
|
class $ {
|
|
256
|
-
|
|
257
|
-
var tmp = Phases_getInstance_0().
|
|
258
|
-
client.
|
|
256
|
+
c5a(client, handler) {
|
|
257
|
+
var tmp = Phases_getInstance_0().f5a_1;
|
|
258
|
+
client.p4y_1.z3w(tmp, AfterReceiveHook$install$slambda_0(handler, null));
|
|
259
259
|
}
|
|
260
|
-
|
|
261
|
-
return this.
|
|
260
|
+
n59(client, handler) {
|
|
261
|
+
return this.c5a(client, (!(handler == null) ? isSuspendFunction(handler, 1) : false) ? handler : THROW_CCE());
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
264
|
initMetadataForObject($, 'AfterReceiveHook');
|
|
@@ -272,31 +272,31 @@ function AfterReceiveHook_getInstance() {
|
|
|
272
272
|
}
|
|
273
273
|
function withObservableDownload(_this__u8e3s4, listener) {
|
|
274
274
|
_init_properties_BodyProgress_kt__s0v569();
|
|
275
|
-
var observableByteChannel = observable(_this__u8e3s4.
|
|
276
|
-
var tmp = _this__u8e3s4.
|
|
277
|
-
return replaceResponse(tmp, VOID, withObservableDownload$lambda(observableByteChannel)).
|
|
275
|
+
var observableByteChannel = observable(_this__u8e3s4.t52(), _this__u8e3s4.s1x(), contentLength(_this__u8e3s4), listener);
|
|
276
|
+
var tmp = _this__u8e3s4.l52();
|
|
277
|
+
return replaceResponse(tmp, VOID, withObservableDownload$lambda(observableByteChannel)).n4z();
|
|
278
278
|
}
|
|
279
279
|
function BodyProgress$lambda($this$createClientPlugin) {
|
|
280
280
|
_init_properties_BodyProgress_kt__s0v569();
|
|
281
281
|
var tmp = AfterRenderHook_instance;
|
|
282
|
-
$this$createClientPlugin.
|
|
282
|
+
$this$createClientPlugin.l5a(tmp, BodyProgress$lambda$slambda_0(null));
|
|
283
283
|
var tmp_0 = AfterReceiveHook_instance;
|
|
284
|
-
$this$createClientPlugin.
|
|
284
|
+
$this$createClientPlugin.l5a(tmp_0, BodyProgress$lambda$slambda_2(null));
|
|
285
285
|
return Unit_instance;
|
|
286
286
|
}
|
|
287
287
|
var BodyProgress$lambda$slambdaClass;
|
|
288
288
|
function BodyProgress$lambda$slambda() {
|
|
289
289
|
if (BodyProgress$lambda$slambdaClass === VOID) {
|
|
290
290
|
class $ extends CoroutineImpl() {
|
|
291
|
-
|
|
292
|
-
var tmp = this.
|
|
291
|
+
w5a(request, content, $completion) {
|
|
292
|
+
var tmp = this.x5a(request, content, $completion);
|
|
293
293
|
tmp.cc_1 = Unit_instance;
|
|
294
294
|
tmp.dc_1 = null;
|
|
295
295
|
return tmp.ic();
|
|
296
296
|
}
|
|
297
297
|
ld(p1, p2, $completion) {
|
|
298
298
|
var tmp = p1 instanceof HttpRequestBuilder() ? p1 : THROW_CCE();
|
|
299
|
-
return this.
|
|
299
|
+
return this.w5a(tmp, p2 instanceof OutgoingContent() ? p2 : THROW_CCE(), $completion);
|
|
300
300
|
}
|
|
301
301
|
ic() {
|
|
302
302
|
var suspendResult = this.cc_1;
|
|
@@ -305,7 +305,7 @@ function BodyProgress$lambda$slambda() {
|
|
|
305
305
|
var tmp = this.ac_1;
|
|
306
306
|
if (tmp === 0) {
|
|
307
307
|
this.bc_1 = 1;
|
|
308
|
-
var tmp0_elvis_lhs = this.
|
|
308
|
+
var tmp0_elvis_lhs = this.u5a_1.s50_1.s3r(get_UploadProgressListenerAttributeKey());
|
|
309
309
|
var tmp_0;
|
|
310
310
|
if (tmp0_elvis_lhs == null) {
|
|
311
311
|
return null;
|
|
@@ -313,7 +313,7 @@ function BodyProgress$lambda$slambda() {
|
|
|
313
313
|
tmp_0 = tmp0_elvis_lhs;
|
|
314
314
|
}
|
|
315
315
|
var listener = tmp_0;
|
|
316
|
-
return new (ObservableContent())(this.
|
|
316
|
+
return new (ObservableContent())(this.v5a_1, this.u5a_1.r50_1, listener);
|
|
317
317
|
} else if (tmp === 1) {
|
|
318
318
|
throw this.dc_1;
|
|
319
319
|
}
|
|
@@ -323,10 +323,10 @@ function BodyProgress$lambda$slambda() {
|
|
|
323
323
|
}
|
|
324
324
|
while (true);
|
|
325
325
|
}
|
|
326
|
-
|
|
326
|
+
x5a(request, content, completion) {
|
|
327
327
|
var i = new (BodyProgress$lambda$slambda())(completion);
|
|
328
|
-
i.
|
|
329
|
-
i.
|
|
328
|
+
i.u5a_1 = request;
|
|
329
|
+
i.v5a_1 = content;
|
|
330
330
|
return i;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
@@ -338,7 +338,7 @@ function BodyProgress$lambda$slambda() {
|
|
|
338
338
|
function BodyProgress$lambda$slambda_0(resultContinuation) {
|
|
339
339
|
var i = new (BodyProgress$lambda$slambda())(resultContinuation);
|
|
340
340
|
var l = function (request, content, $completion) {
|
|
341
|
-
return i.
|
|
341
|
+
return i.w5a(request, content, $completion);
|
|
342
342
|
};
|
|
343
343
|
l.$arity = 2;
|
|
344
344
|
return l;
|
|
@@ -347,14 +347,14 @@ var BodyProgress$lambda$slambdaClass_0;
|
|
|
347
347
|
function BodyProgress$lambda$slambda_1() {
|
|
348
348
|
if (BodyProgress$lambda$slambdaClass_0 === VOID) {
|
|
349
349
|
class $ extends CoroutineImpl() {
|
|
350
|
-
|
|
351
|
-
var tmp = this.
|
|
350
|
+
h5b(response, $completion) {
|
|
351
|
+
var tmp = this.i5b(response, $completion);
|
|
352
352
|
tmp.cc_1 = Unit_instance;
|
|
353
353
|
tmp.dc_1 = null;
|
|
354
354
|
return tmp.ic();
|
|
355
355
|
}
|
|
356
356
|
kd(p1, $completion) {
|
|
357
|
-
return this.
|
|
357
|
+
return this.h5b(p1 instanceof HttpResponse() ? p1 : THROW_CCE(), $completion);
|
|
358
358
|
}
|
|
359
359
|
ic() {
|
|
360
360
|
var suspendResult = this.cc_1;
|
|
@@ -363,7 +363,7 @@ function BodyProgress$lambda$slambda_1() {
|
|
|
363
363
|
var tmp = this.ac_1;
|
|
364
364
|
if (tmp === 0) {
|
|
365
365
|
this.bc_1 = 1;
|
|
366
|
-
var tmp0_elvis_lhs = this.
|
|
366
|
+
var tmp0_elvis_lhs = this.g5b_1.l52().e52().f52().s3r(get_DownloadProgressListenerAttributeKey());
|
|
367
367
|
var tmp_0;
|
|
368
368
|
if (tmp0_elvis_lhs == null) {
|
|
369
369
|
return null;
|
|
@@ -371,7 +371,7 @@ function BodyProgress$lambda$slambda_1() {
|
|
|
371
371
|
tmp_0 = tmp0_elvis_lhs;
|
|
372
372
|
}
|
|
373
373
|
var listener = tmp_0;
|
|
374
|
-
return withObservableDownload(this.
|
|
374
|
+
return withObservableDownload(this.g5b_1, listener);
|
|
375
375
|
} else if (tmp === 1) {
|
|
376
376
|
throw this.dc_1;
|
|
377
377
|
}
|
|
@@ -381,9 +381,9 @@ function BodyProgress$lambda$slambda_1() {
|
|
|
381
381
|
}
|
|
382
382
|
while (true);
|
|
383
383
|
}
|
|
384
|
-
|
|
384
|
+
i5b(response, completion) {
|
|
385
385
|
var i = new (BodyProgress$lambda$slambda_1())(completion);
|
|
386
|
-
i.
|
|
386
|
+
i.g5b_1 = response;
|
|
387
387
|
return i;
|
|
388
388
|
}
|
|
389
389
|
}
|
|
@@ -395,7 +395,7 @@ function BodyProgress$lambda$slambda_1() {
|
|
|
395
395
|
function BodyProgress$lambda$slambda_2(resultContinuation) {
|
|
396
396
|
var i = new (BodyProgress$lambda$slambda_1())(resultContinuation);
|
|
397
397
|
var l = function (response, $completion) {
|
|
398
|
-
return i.
|
|
398
|
+
return i.h5b(response, $completion);
|
|
399
399
|
};
|
|
400
400
|
l.$arity = 1;
|
|
401
401
|
return l;
|
|
@@ -50,10 +50,10 @@ var ResponseExceptionClass;
|
|
|
50
50
|
function ResponseException() {
|
|
51
51
|
if (ResponseExceptionClass === VOID) {
|
|
52
52
|
class $ extends IllegalStateException() {
|
|
53
|
-
static
|
|
53
|
+
static o5b(response, cachedResponseText) {
|
|
54
54
|
var $this = this.o4('Bad response: ' + response.toString() + '. Text: "' + cachedResponseText + '"');
|
|
55
|
-
captureStack($this, $this.
|
|
56
|
-
$this.
|
|
55
|
+
captureStack($this, $this.n5b_1);
|
|
56
|
+
$this.m5b_1 = response;
|
|
57
57
|
return $this;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
@@ -66,15 +66,15 @@ var RedirectResponseExceptionClass;
|
|
|
66
66
|
function RedirectResponseException() {
|
|
67
67
|
if (RedirectResponseExceptionClass === VOID) {
|
|
68
68
|
class $ extends ResponseException() {
|
|
69
|
-
static
|
|
70
|
-
var $this = this.
|
|
71
|
-
captureStack($this, $this.
|
|
72
|
-
$this.
|
|
69
|
+
static w5b(response, cachedResponseText) {
|
|
70
|
+
var $this = this.o5b(response, cachedResponseText);
|
|
71
|
+
captureStack($this, $this.v5b_1);
|
|
72
|
+
$this.u5b_1 = 'Unhandled redirect: ' + response.l52().e52().m52().i46_1 + ' ' + response.l52().e52().n52().toString() + '. ' + ('Status: ' + response.u52().toString() + '. Text: "' + cachedResponseText + '"');
|
|
73
73
|
delete $this.message;
|
|
74
74
|
return $this;
|
|
75
75
|
}
|
|
76
76
|
fd() {
|
|
77
|
-
return this.
|
|
77
|
+
return this.u5b_1;
|
|
78
78
|
}
|
|
79
79
|
get message() {
|
|
80
80
|
return this.fd();
|
|
@@ -89,15 +89,15 @@ var ClientRequestExceptionClass;
|
|
|
89
89
|
function ClientRequestException() {
|
|
90
90
|
if (ClientRequestExceptionClass === VOID) {
|
|
91
91
|
class $ extends ResponseException() {
|
|
92
|
-
static
|
|
93
|
-
var $this = this.
|
|
94
|
-
captureStack($this, $this.
|
|
95
|
-
$this.
|
|
92
|
+
static e5c(response, cachedResponseText) {
|
|
93
|
+
var $this = this.o5b(response, cachedResponseText);
|
|
94
|
+
captureStack($this, $this.d5c_1);
|
|
95
|
+
$this.c5c_1 = 'Client request(' + response.l52().e52().m52().i46_1 + ' ' + response.l52().e52().n52().toString() + ') ' + ('invalid: ' + response.u52().toString() + '. Text: "' + cachedResponseText + '"');
|
|
96
96
|
delete $this.message;
|
|
97
97
|
return $this;
|
|
98
98
|
}
|
|
99
99
|
fd() {
|
|
100
|
-
return this.
|
|
100
|
+
return this.c5c_1;
|
|
101
101
|
}
|
|
102
102
|
get message() {
|
|
103
103
|
return this.fd();
|
|
@@ -112,15 +112,15 @@ var ServerResponseExceptionClass;
|
|
|
112
112
|
function ServerResponseException() {
|
|
113
113
|
if (ServerResponseExceptionClass === VOID) {
|
|
114
114
|
class $ extends ResponseException() {
|
|
115
|
-
static
|
|
116
|
-
var $this = this.
|
|
117
|
-
captureStack($this, $this.
|
|
118
|
-
$this.
|
|
115
|
+
static m5c(response, cachedResponseText) {
|
|
116
|
+
var $this = this.o5b(response, cachedResponseText);
|
|
117
|
+
captureStack($this, $this.l5c_1);
|
|
118
|
+
$this.k5c_1 = 'Server error(' + response.l52().e52().m52().i46_1 + ' ' + response.l52().e52().n52().toString() + ': ' + (response.u52().toString() + '. Text: "' + cachedResponseText + '"');
|
|
119
119
|
delete $this.message;
|
|
120
120
|
return $this;
|
|
121
121
|
}
|
|
122
122
|
fd() {
|
|
123
|
-
return this.
|
|
123
|
+
return this.k5c_1;
|
|
124
124
|
}
|
|
125
125
|
get message() {
|
|
126
126
|
return this.fd();
|
|
@@ -135,14 +135,14 @@ var addDefaultResponseValidation$lambda$slambdaClass;
|
|
|
135
135
|
function addDefaultResponseValidation$lambda$slambda() {
|
|
136
136
|
if (addDefaultResponseValidation$lambda$slambdaClass === VOID) {
|
|
137
137
|
class $ extends CoroutineImpl() {
|
|
138
|
-
|
|
139
|
-
var tmp = this.
|
|
138
|
+
d5d(response, $completion) {
|
|
139
|
+
var tmp = this.i5b(response, $completion);
|
|
140
140
|
tmp.cc_1 = Unit_instance;
|
|
141
141
|
tmp.dc_1 = null;
|
|
142
142
|
return tmp.ic();
|
|
143
143
|
}
|
|
144
144
|
kd(p1, $completion) {
|
|
145
|
-
return this.
|
|
145
|
+
return this.d5d(p1 instanceof HttpResponse() ? p1 : THROW_CCE(), $completion);
|
|
146
146
|
}
|
|
147
147
|
ic() {
|
|
148
148
|
var suspendResult = this.cc_1;
|
|
@@ -152,42 +152,42 @@ function addDefaultResponseValidation$lambda$slambda() {
|
|
|
152
152
|
switch (tmp) {
|
|
153
153
|
case 0:
|
|
154
154
|
this.bc_1 = 5;
|
|
155
|
-
this.
|
|
156
|
-
if (!this.
|
|
157
|
-
get_LOGGER().
|
|
155
|
+
this.w5c_1 = this.v5c_1.l52().f52().r3r(get_ExpectSuccessAttributeKey());
|
|
156
|
+
if (!this.w5c_1) {
|
|
157
|
+
get_LOGGER().g3y('Skipping default response validation for ' + this.v5c_1.l52().e52().n52().toString());
|
|
158
158
|
return Unit_instance;
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
this.
|
|
162
|
-
this.
|
|
163
|
-
if (this.
|
|
161
|
+
this.x5c_1 = this.v5c_1.u52().v48_1;
|
|
162
|
+
this.y5c_1 = this.v5c_1.l52();
|
|
163
|
+
if (this.x5c_1 < 300 || this.y5c_1.f52().t3r(get_ValidateMark())) {
|
|
164
164
|
return Unit_instance;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
this.ac_1 = 1;
|
|
168
|
-
suspendResult = save(this.
|
|
168
|
+
suspendResult = save(this.y5c_1, this);
|
|
169
169
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
170
170
|
return suspendResult;
|
|
171
171
|
}
|
|
172
172
|
|
|
173
173
|
continue $sm;
|
|
174
174
|
case 1:
|
|
175
|
-
this.
|
|
175
|
+
this.z5c_1 = suspendResult;
|
|
176
176
|
var tmp_0 = this;
|
|
177
|
-
var this_0 = this.
|
|
178
|
-
this_0.
|
|
179
|
-
tmp_0.
|
|
180
|
-
this.
|
|
177
|
+
var this_0 = this.z5c_1;
|
|
178
|
+
this_0.f52().u3r(get_ValidateMark(), Unit_instance);
|
|
179
|
+
tmp_0.a5d_1 = this_0;
|
|
180
|
+
this.b5d_1 = this.a5d_1.n4z();
|
|
181
181
|
this.bc_1 = 3;
|
|
182
182
|
this.ac_1 = 2;
|
|
183
|
-
suspendResult = bodyAsText(this.
|
|
183
|
+
suspendResult = bodyAsText(this.b5d_1, VOID, this);
|
|
184
184
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
185
185
|
return suspendResult;
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
continue $sm;
|
|
189
189
|
case 2:
|
|
190
|
-
this.
|
|
190
|
+
this.c5d_1 = suspendResult;
|
|
191
191
|
this.bc_1 = 5;
|
|
192
192
|
this.ac_1 = 4;
|
|
193
193
|
continue $sm;
|
|
@@ -197,7 +197,7 @@ function addDefaultResponseValidation$lambda$slambda() {
|
|
|
197
197
|
if (tmp_1 instanceof MalformedInputException()) {
|
|
198
198
|
var _unused_var__etf5q3 = this.dc_1;
|
|
199
199
|
var tmp_2 = this;
|
|
200
|
-
tmp_2.
|
|
200
|
+
tmp_2.c5d_1 = '<body failed decoding>';
|
|
201
201
|
this.ac_1 = 4;
|
|
202
202
|
continue $sm;
|
|
203
203
|
} else {
|
|
@@ -206,10 +206,10 @@ function addDefaultResponseValidation$lambda$slambda() {
|
|
|
206
206
|
|
|
207
207
|
case 4:
|
|
208
208
|
this.bc_1 = 5;
|
|
209
|
-
var exceptionResponseText = this.
|
|
210
|
-
var tmp0_subject = this.
|
|
211
|
-
var exception = (300 <= tmp0_subject ? tmp0_subject <= 399 : false) ? RedirectResponseException().
|
|
212
|
-
get_LOGGER().
|
|
209
|
+
var exceptionResponseText = this.c5d_1;
|
|
210
|
+
var tmp0_subject = this.x5c_1;
|
|
211
|
+
var exception = (300 <= tmp0_subject ? tmp0_subject <= 399 : false) ? RedirectResponseException().w5b(this.b5d_1, exceptionResponseText) : (400 <= tmp0_subject ? tmp0_subject <= 499 : false) ? ClientRequestException().e5c(this.b5d_1, exceptionResponseText) : (500 <= tmp0_subject ? tmp0_subject <= 599 : false) ? ServerResponseException().m5c(this.b5d_1, exceptionResponseText) : ResponseException().o5b(this.b5d_1, exceptionResponseText);
|
|
212
|
+
get_LOGGER().g3y('Default response validation for ' + this.v5c_1.l52().e52().n52().toString() + ' failed with ' + exception.toString());
|
|
213
213
|
throw exception;
|
|
214
214
|
case 5:
|
|
215
215
|
throw this.dc_1;
|
|
@@ -225,9 +225,9 @@ function addDefaultResponseValidation$lambda$slambda() {
|
|
|
225
225
|
}
|
|
226
226
|
while (true);
|
|
227
227
|
}
|
|
228
|
-
|
|
228
|
+
i5b(response, completion) {
|
|
229
229
|
var i = new (addDefaultResponseValidation$lambda$slambda())(completion);
|
|
230
|
-
i.
|
|
230
|
+
i.v5c_1 = response;
|
|
231
231
|
return i;
|
|
232
232
|
}
|
|
233
233
|
}
|
|
@@ -239,15 +239,15 @@ function addDefaultResponseValidation$lambda$slambda() {
|
|
|
239
239
|
function addDefaultResponseValidation$lambda$slambda_0(resultContinuation) {
|
|
240
240
|
var i = new (addDefaultResponseValidation$lambda$slambda())(resultContinuation);
|
|
241
241
|
var l = function (response, $completion) {
|
|
242
|
-
return i.
|
|
242
|
+
return i.d5d(response, $completion);
|
|
243
243
|
};
|
|
244
244
|
l.$arity = 1;
|
|
245
245
|
return l;
|
|
246
246
|
}
|
|
247
247
|
function addDefaultResponseValidation$lambda($this_addDefaultResponseValidation) {
|
|
248
248
|
return function ($this$HttpResponseValidator) {
|
|
249
|
-
$this$HttpResponseValidator.
|
|
250
|
-
$this$HttpResponseValidator.
|
|
249
|
+
$this$HttpResponseValidator.g5d_1 = $this_addDefaultResponseValidation.h51_1;
|
|
250
|
+
$this$HttpResponseValidator.h5d(addDefaultResponseValidation$lambda$slambda_0(null));
|
|
251
251
|
return Unit_instance;
|
|
252
252
|
};
|
|
253
253
|
}
|