@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
|
@@ -70,7 +70,7 @@ function HttpClientEngine$install$slambda$lambda($client, $response) {
|
|
|
70
70
|
return function (it) {
|
|
71
71
|
var tmp;
|
|
72
72
|
if (!(it == null)) {
|
|
73
|
-
$client.
|
|
73
|
+
$client.s4y_1.d4y(get_HttpResponseCancelled(), $response);
|
|
74
74
|
tmp = Unit_instance;
|
|
75
75
|
}
|
|
76
76
|
return Unit_instance;
|
|
@@ -88,11 +88,11 @@ function executeWithinCallContext($this, requestData, $completion) {
|
|
|
88
88
|
return tmp.ic();
|
|
89
89
|
}
|
|
90
90
|
function checkExtensions($this, requestData) {
|
|
91
|
-
var _iterator__ex2g4s = requestData.
|
|
91
|
+
var _iterator__ex2g4s = requestData.w56_1.d1();
|
|
92
92
|
while (_iterator__ex2g4s.e1()) {
|
|
93
93
|
var requestedExtension = _iterator__ex2g4s.f1();
|
|
94
94
|
// Inline function 'kotlin.require' call
|
|
95
|
-
if (!$this.
|
|
95
|
+
if (!$this.x56().q2(requestedExtension)) {
|
|
96
96
|
var message = "Engine doesn't support " + toString(requestedExtension);
|
|
97
97
|
throw IllegalArgumentException().u(toString(message));
|
|
98
98
|
}
|
|
@@ -105,19 +105,19 @@ function HttpClientEngine$install$slambda() {
|
|
|
105
105
|
constructor($client, this$0, resultContinuation, $box) {
|
|
106
106
|
if ($box === VOID)
|
|
107
107
|
$box = {};
|
|
108
|
-
$box.
|
|
109
|
-
$box.
|
|
108
|
+
$box.g57_1 = $client;
|
|
109
|
+
$box.h57_1 = this$0;
|
|
110
110
|
super(resultContinuation, $box);
|
|
111
111
|
}
|
|
112
|
-
|
|
113
|
-
var tmp = this.
|
|
112
|
+
g4z($this$intercept, content, $completion) {
|
|
113
|
+
var tmp = this.h4z($this$intercept, content, $completion);
|
|
114
114
|
tmp.cc_1 = Unit_instance;
|
|
115
115
|
tmp.dc_1 = null;
|
|
116
116
|
return tmp.ic();
|
|
117
117
|
}
|
|
118
118
|
ld(p1, p2, $completion) {
|
|
119
119
|
var tmp = p1 instanceof PipelineContext() ? p1 : THROW_CCE();
|
|
120
|
-
return this.
|
|
120
|
+
return this.g4z(tmp, !(p2 == null) ? p2 : THROW_CCE(), $completion);
|
|
121
121
|
}
|
|
122
122
|
ic() {
|
|
123
123
|
var suspendResult = this.cc_1;
|
|
@@ -129,10 +129,10 @@ function HttpClientEngine$install$slambda() {
|
|
|
129
129
|
this.bc_1 = 3;
|
|
130
130
|
var tmp_0 = this;
|
|
131
131
|
var this_0 = new (HttpRequestBuilder())();
|
|
132
|
-
this_0.
|
|
133
|
-
var body = this.
|
|
132
|
+
this_0.p57(this.i57_1.v3w_1);
|
|
133
|
+
var body = this.j57_1;
|
|
134
134
|
if (body == null) {
|
|
135
|
-
this_0.
|
|
135
|
+
this_0.q50_1 = NullBody_instance;
|
|
136
136
|
var tmp_1 = PrimitiveClasses_getInstance().wg();
|
|
137
137
|
var tmp_2;
|
|
138
138
|
try {
|
|
@@ -147,13 +147,13 @@ function HttpClientEngine$install$slambda() {
|
|
|
147
147
|
}
|
|
148
148
|
tmp_2 = tmp_3;
|
|
149
149
|
}
|
|
150
|
-
this_0.
|
|
150
|
+
this_0.q57(new (TypeInfo())(tmp_1, tmp_2));
|
|
151
151
|
} else {
|
|
152
152
|
if (body instanceof OutgoingContent()) {
|
|
153
|
-
this_0.
|
|
154
|
-
this_0.
|
|
153
|
+
this_0.q50_1 = body;
|
|
154
|
+
this_0.q57(null);
|
|
155
155
|
} else {
|
|
156
|
-
this_0.
|
|
156
|
+
this_0.q50_1 = body;
|
|
157
157
|
var tmp_4 = PrimitiveClasses_getInstance().wg();
|
|
158
158
|
var tmp_5;
|
|
159
159
|
try {
|
|
@@ -168,34 +168,34 @@ function HttpClientEngine$install$slambda() {
|
|
|
168
168
|
}
|
|
169
169
|
tmp_5 = tmp_6;
|
|
170
170
|
}
|
|
171
|
-
this_0.
|
|
171
|
+
this_0.q57(new (TypeInfo())(tmp_4, tmp_5));
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
tmp_0.
|
|
176
|
-
this.
|
|
175
|
+
tmp_0.k57_1 = this_0;
|
|
176
|
+
this.g57_1.s4y_1.d4y(get_HttpRequestIsReadyForSending(), this.k57_1);
|
|
177
177
|
var tmp_7 = this;
|
|
178
|
-
var this_1 = this.
|
|
179
|
-
this_1.
|
|
180
|
-
tmp_7.
|
|
181
|
-
validateHeaders(this.
|
|
182
|
-
checkExtensions(this.
|
|
178
|
+
var this_1 = this.k57_1.z1i();
|
|
179
|
+
this_1.v56_1.u3r(get_CLIENT_CONFIG(), this.g57_1.t4y_1);
|
|
180
|
+
tmp_7.l57_1 = this_1;
|
|
181
|
+
validateHeaders(this.l57_1);
|
|
182
|
+
checkExtensions(this.h57_1, this.l57_1);
|
|
183
183
|
this.ac_1 = 1;
|
|
184
|
-
suspendResult = executeWithinCallContext(this.
|
|
184
|
+
suspendResult = executeWithinCallContext(this.h57_1, this.l57_1, this);
|
|
185
185
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
186
186
|
return suspendResult;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
continue $sm;
|
|
190
190
|
case 1:
|
|
191
|
-
this.
|
|
192
|
-
this.
|
|
193
|
-
this.
|
|
194
|
-
this.
|
|
195
|
-
var tmp_8 = get_job(this.
|
|
196
|
-
tmp_8.v1y(HttpClientEngine$install$slambda$lambda(this.
|
|
191
|
+
this.m57_1 = suspendResult;
|
|
192
|
+
this.n57_1 = HttpClientCall().a54(this.g57_1, this.l57_1, this.m57_1);
|
|
193
|
+
this.o57_1 = this.n57_1.n4z();
|
|
194
|
+
this.g57_1.s4y_1.d4y(get_HttpResponseReceived(), this.o57_1);
|
|
195
|
+
var tmp_8 = get_job(this.o57_1.s1x());
|
|
196
|
+
tmp_8.v1y(HttpClientEngine$install$slambda$lambda(this.g57_1, this.o57_1));
|
|
197
197
|
this.ac_1 = 2;
|
|
198
|
-
suspendResult = this.
|
|
198
|
+
suspendResult = this.i57_1.x3v(this.n57_1, this);
|
|
199
199
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
200
200
|
return suspendResult;
|
|
201
201
|
}
|
|
@@ -217,10 +217,10 @@ function HttpClientEngine$install$slambda() {
|
|
|
217
217
|
}
|
|
218
218
|
while (true);
|
|
219
219
|
}
|
|
220
|
-
|
|
221
|
-
var i = new (HttpClientEngine$install$slambda())(this.
|
|
222
|
-
i.
|
|
223
|
-
i.
|
|
220
|
+
h4z($this$intercept, content, completion) {
|
|
221
|
+
var i = new (HttpClientEngine$install$slambda())(this.g57_1, this.h57_1, completion);
|
|
222
|
+
i.i57_1 = $this$intercept;
|
|
223
|
+
i.j57_1 = content;
|
|
224
224
|
return i;
|
|
225
225
|
}
|
|
226
226
|
}
|
|
@@ -232,7 +232,7 @@ function HttpClientEngine$install$slambda() {
|
|
|
232
232
|
function HttpClientEngine$install$slambda_0($client, this$0, resultContinuation) {
|
|
233
233
|
var i = new (HttpClientEngine$install$slambda())($client, this$0, resultContinuation);
|
|
234
234
|
var l = function ($this$intercept, content, $completion) {
|
|
235
|
-
return i.
|
|
235
|
+
return i.g4z($this$intercept, content, $completion);
|
|
236
236
|
};
|
|
237
237
|
l.$arity = 2;
|
|
238
238
|
return l;
|
|
@@ -244,18 +244,18 @@ function HttpClientEngine$executeWithinCallContext$slambda() {
|
|
|
244
244
|
constructor(this$0, $requestData, resultContinuation, $box) {
|
|
245
245
|
if ($box === VOID)
|
|
246
246
|
$box = {};
|
|
247
|
-
$box.
|
|
248
|
-
$box.
|
|
247
|
+
$box.z57_1 = this$0;
|
|
248
|
+
$box.a58_1 = $requestData;
|
|
249
249
|
super(resultContinuation, $box);
|
|
250
250
|
}
|
|
251
|
-
|
|
252
|
-
var tmp = this.
|
|
251
|
+
c58($this$async, $completion) {
|
|
252
|
+
var tmp = this.d36($this$async, $completion);
|
|
253
253
|
tmp.cc_1 = Unit_instance;
|
|
254
254
|
tmp.dc_1 = null;
|
|
255
255
|
return tmp.ic();
|
|
256
256
|
}
|
|
257
257
|
kd(p1, $completion) {
|
|
258
|
-
return this.
|
|
258
|
+
return this.c58((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
|
|
259
259
|
}
|
|
260
260
|
ic() {
|
|
261
261
|
var suspendResult = this.cc_1;
|
|
@@ -265,12 +265,12 @@ function HttpClientEngine$executeWithinCallContext$slambda() {
|
|
|
265
265
|
switch (tmp) {
|
|
266
266
|
case 0:
|
|
267
267
|
this.bc_1 = 2;
|
|
268
|
-
if (_get_closed__iwkfs1(this.
|
|
269
|
-
throw ClientEngineClosedException().
|
|
268
|
+
if (_get_closed__iwkfs1(this.z57_1)) {
|
|
269
|
+
throw ClientEngineClosedException().i58();
|
|
270
270
|
}
|
|
271
271
|
|
|
272
272
|
this.ac_1 = 1;
|
|
273
|
-
suspendResult = this.
|
|
273
|
+
suspendResult = this.z57_1.j58(this.a58_1, this);
|
|
274
274
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
275
275
|
return suspendResult;
|
|
276
276
|
}
|
|
@@ -292,9 +292,9 @@ function HttpClientEngine$executeWithinCallContext$slambda() {
|
|
|
292
292
|
}
|
|
293
293
|
while (true);
|
|
294
294
|
}
|
|
295
|
-
|
|
296
|
-
var i = new (HttpClientEngine$executeWithinCallContext$slambda())(this.
|
|
297
|
-
i.
|
|
295
|
+
d36($this$async, completion) {
|
|
296
|
+
var i = new (HttpClientEngine$executeWithinCallContext$slambda())(this.z57_1, this.a58_1, completion);
|
|
297
|
+
i.b58_1 = $this$async;
|
|
298
298
|
return i;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
@@ -306,7 +306,7 @@ function HttpClientEngine$executeWithinCallContext$slambda() {
|
|
|
306
306
|
function HttpClientEngine$executeWithinCallContext$slambda_0(this$0, $requestData, resultContinuation) {
|
|
307
307
|
var i = new (HttpClientEngine$executeWithinCallContext$slambda())(this$0, $requestData, resultContinuation);
|
|
308
308
|
var l = function ($this$async, $completion) {
|
|
309
|
-
return i.
|
|
309
|
+
return i.c58($this$async, $completion);
|
|
310
310
|
};
|
|
311
311
|
l.$arity = 1;
|
|
312
312
|
return l;
|
|
@@ -317,8 +317,8 @@ function $executeWithinCallContextCOROUTINE$() {
|
|
|
317
317
|
class $ extends CoroutineImpl() {
|
|
318
318
|
constructor(_this__u8e3s4, requestData, resultContinuation) {
|
|
319
319
|
super(resultContinuation);
|
|
320
|
-
this.
|
|
321
|
-
this.
|
|
320
|
+
this.m56_1 = _this__u8e3s4;
|
|
321
|
+
this.n56_1 = requestData;
|
|
322
322
|
}
|
|
323
323
|
ic() {
|
|
324
324
|
var suspendResult = this.cc_1;
|
|
@@ -329,17 +329,17 @@ function $executeWithinCallContextCOROUTINE$() {
|
|
|
329
329
|
case 0:
|
|
330
330
|
this.bc_1 = 3;
|
|
331
331
|
this.ac_1 = 1;
|
|
332
|
-
suspendResult = createCallContext(this.
|
|
332
|
+
suspendResult = createCallContext(this.m56_1, this.n56_1.u56_1, this);
|
|
333
333
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
334
334
|
return suspendResult;
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
continue $sm;
|
|
338
338
|
case 1:
|
|
339
|
-
this.
|
|
340
|
-
this.
|
|
339
|
+
this.o56_1 = suspendResult;
|
|
340
|
+
this.p56_1 = this.o56_1.lm(new (KtorCallContextElement())(this.o56_1));
|
|
341
341
|
this.ac_1 = 2;
|
|
342
|
-
suspendResult = async(this.
|
|
342
|
+
suspendResult = async(this.m56_1, this.p56_1, VOID, HttpClientEngine$executeWithinCallContext$slambda_0(this.m56_1, this.n56_1, null)).b21(this);
|
|
343
343
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
344
344
|
return suspendResult;
|
|
345
345
|
}
|
|
@@ -371,8 +371,8 @@ function get_supportedCapabilities() {
|
|
|
371
371
|
return emptySet();
|
|
372
372
|
}
|
|
373
373
|
function install(client) {
|
|
374
|
-
var tmp = Phases_getInstance().
|
|
375
|
-
client.
|
|
374
|
+
var tmp = Phases_getInstance().z50_1;
|
|
375
|
+
client.o4y_1.z3w(tmp, HttpClientEngine$install$slambda_0(client, this, null));
|
|
376
376
|
}
|
|
377
377
|
var HttpClientEngineClass;
|
|
378
378
|
function HttpClientEngine() {
|
|
@@ -385,22 +385,22 @@ function HttpClientEngine() {
|
|
|
385
385
|
}
|
|
386
386
|
function validateHeaders(request) {
|
|
387
387
|
_init_properties_HttpClientEngine_kt__h91z5h();
|
|
388
|
-
var requestHeaders = request.
|
|
388
|
+
var requestHeaders = request.s56_1;
|
|
389
389
|
// Inline function 'kotlin.collections.filter' call
|
|
390
|
-
var tmp0 = requestHeaders.
|
|
390
|
+
var tmp0 = requestHeaders.h3t();
|
|
391
391
|
// Inline function 'kotlin.collections.filterTo' call
|
|
392
392
|
var destination = ArrayList().l1();
|
|
393
393
|
var _iterator__ex2g4s = tmp0.d1();
|
|
394
394
|
while (_iterator__ex2g4s.e1()) {
|
|
395
395
|
var element = _iterator__ex2g4s.f1();
|
|
396
|
-
if (HttpHeaders_getInstance().
|
|
396
|
+
if (HttpHeaders_getInstance().b45_1.q2(element)) {
|
|
397
397
|
destination.m(element);
|
|
398
398
|
}
|
|
399
399
|
}
|
|
400
400
|
var unsafeRequestHeaders = destination;
|
|
401
401
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
402
402
|
if (!unsafeRequestHeaders.j()) {
|
|
403
|
-
throw UnsafeHeaderException().
|
|
403
|
+
throw UnsafeHeaderException().y45(toString(unsafeRequestHeaders));
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
function createCallContext(_this__u8e3s4, parentJob, $completion) {
|
|
@@ -27,18 +27,18 @@ import { IllegalStateExceptionkoljg5n0nrlr as IllegalStateException } from '../.
|
|
|
27
27
|
//endregion
|
|
28
28
|
function HttpClientEngineBase$dispatcher$delegate$lambda(this$0) {
|
|
29
29
|
return function () {
|
|
30
|
-
var tmp0_elvis_lhs = this$0.
|
|
30
|
+
var tmp0_elvis_lhs = this$0.u50().l58_1;
|
|
31
31
|
return tmp0_elvis_lhs == null ? ioDispatcher() : tmp0_elvis_lhs;
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
34
|
function HttpClientEngineBase$_get_dispatcher_$ref_kz5x8v() {
|
|
35
35
|
return function (p0) {
|
|
36
|
-
return p0.
|
|
36
|
+
return p0.s58();
|
|
37
37
|
};
|
|
38
38
|
}
|
|
39
39
|
function HttpClientEngineBase$coroutineContext$delegate$lambda(this$0) {
|
|
40
40
|
return function () {
|
|
41
|
-
return SilentSupervisor().lm(this$0.
|
|
41
|
+
return SilentSupervisor().lm(this$0.s58()).lm(new (CoroutineName())(this$0.o58_1 + '-context'));
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
44
|
function HttpClientEngineBase$_get_coroutineContext_$ref_p82ehr() {
|
|
@@ -51,29 +51,29 @@ function HttpClientEngineBase() {
|
|
|
51
51
|
if (HttpClientEngineBaseClass === VOID) {
|
|
52
52
|
class $ {
|
|
53
53
|
constructor(engineName) {
|
|
54
|
-
this.
|
|
55
|
-
this.
|
|
54
|
+
this.o58_1 = engineName;
|
|
55
|
+
this.p58_1 = atomic$boolean$1(false);
|
|
56
56
|
var tmp = this;
|
|
57
|
-
tmp.
|
|
57
|
+
tmp.q58_1 = lazy(HttpClientEngineBase$dispatcher$delegate$lambda(this));
|
|
58
58
|
var tmp_0 = this;
|
|
59
|
-
tmp_0.
|
|
59
|
+
tmp_0.r58_1 = lazy(HttpClientEngineBase$coroutineContext$delegate$lambda(this));
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
var tmp0 = this.
|
|
61
|
+
s58() {
|
|
62
|
+
var tmp0 = this.q58_1;
|
|
63
63
|
var tmp = KProperty1();
|
|
64
64
|
// Inline function 'kotlin.getValue' call
|
|
65
65
|
getPropertyCallableRef('dispatcher', 1, tmp, HttpClientEngineBase$_get_dispatcher_$ref_kz5x8v(), null);
|
|
66
66
|
return tmp0.s1();
|
|
67
67
|
}
|
|
68
68
|
s1x() {
|
|
69
|
-
var tmp0 = this.
|
|
69
|
+
var tmp0 = this.r58_1;
|
|
70
70
|
var tmp = KProperty1();
|
|
71
71
|
// Inline function 'kotlin.getValue' call
|
|
72
72
|
getPropertyCallableRef('coroutineContext', 1, tmp, HttpClientEngineBase$_get_coroutineContext_$ref_p82ehr(), null);
|
|
73
73
|
return tmp0.s1();
|
|
74
74
|
}
|
|
75
75
|
v5() {
|
|
76
|
-
if (!this.
|
|
76
|
+
if (!this.p58_1.atomicfu$compareAndSet(false, true))
|
|
77
77
|
return Unit_instance;
|
|
78
78
|
var tmp = this.s1x().nc(Key_instance);
|
|
79
79
|
var tmp0_elvis_lhs = (!(tmp == null) ? isInterface(tmp, CompletableJob()) : false) ? tmp : null;
|
|
@@ -87,8 +87,8 @@ function HttpClientEngineBase() {
|
|
|
87
87
|
requestJob.d25();
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
protoOf($).
|
|
91
|
-
protoOf($).
|
|
90
|
+
protoOf($).x56 = get_supportedCapabilities;
|
|
91
|
+
protoOf($).v50 = install;
|
|
92
92
|
initMetadataForClass($, 'HttpClientEngineBase', VOID, VOID, [HttpClientEngine()], [1]);
|
|
93
93
|
HttpClientEngineBaseClass = $;
|
|
94
94
|
}
|
|
@@ -98,22 +98,22 @@ var ClientEngineClosedExceptionClass;
|
|
|
98
98
|
function ClientEngineClosedException() {
|
|
99
99
|
if (ClientEngineClosedExceptionClass === VOID) {
|
|
100
100
|
class $ extends IllegalStateException() {
|
|
101
|
-
static
|
|
101
|
+
static i58(cause) {
|
|
102
102
|
cause = cause === VOID ? null : cause;
|
|
103
103
|
var $this = this.o4('Client already closed');
|
|
104
|
-
captureStack($this, $this.
|
|
105
|
-
$this.
|
|
104
|
+
captureStack($this, $this.h58_1);
|
|
105
|
+
$this.g58_1 = cause;
|
|
106
106
|
delete $this.cause;
|
|
107
107
|
return $this;
|
|
108
108
|
}
|
|
109
109
|
gd() {
|
|
110
|
-
return this.
|
|
110
|
+
return this.g58_1;
|
|
111
111
|
}
|
|
112
112
|
get cause() {
|
|
113
113
|
return this.gd();
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
initMetadataForClass($, 'ClientEngineClosedException', $.
|
|
116
|
+
initMetadataForClass($, 'ClientEngineClosedException', $.i58);
|
|
117
117
|
ClientEngineClosedExceptionClass = $;
|
|
118
118
|
}
|
|
119
119
|
return ClientEngineClosedExceptionClass;
|
|
@@ -9,10 +9,10 @@ function HttpClientEngineConfig() {
|
|
|
9
9
|
if (HttpClientEngineConfigClass === VOID) {
|
|
10
10
|
class $ {
|
|
11
11
|
constructor() {
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
12
|
+
this.k58_1 = 4;
|
|
13
|
+
this.l58_1 = null;
|
|
14
|
+
this.m58_1 = false;
|
|
15
|
+
this.n58_1 = null;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
initMetadataForClass($, 'HttpClientEngineConfig', HttpClientEngineConfig);
|
|
@@ -14,8 +14,8 @@ function Node() {
|
|
|
14
14
|
if (NodeClass === VOID) {
|
|
15
15
|
class $ {
|
|
16
16
|
constructor(item, next) {
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
17
|
+
this.c68_1 = item;
|
|
18
|
+
this.d68_1 = next;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
initMetadataForClass($, 'Node');
|
|
@@ -28,15 +28,15 @@ function engines$iterator$1() {
|
|
|
28
28
|
if (engines$iterator$1Class === VOID) {
|
|
29
29
|
class $ {
|
|
30
30
|
constructor() {
|
|
31
|
-
this.
|
|
31
|
+
this.e68_1 = engines_getInstance().a63_1.kotlinx$atomicfu$value;
|
|
32
32
|
}
|
|
33
33
|
f1() {
|
|
34
|
-
var result = ensureNotNull(this.
|
|
35
|
-
this.
|
|
36
|
-
return result.
|
|
34
|
+
var result = ensureNotNull(this.e68_1);
|
|
35
|
+
this.e68_1 = result.d68_1;
|
|
36
|
+
return result.c68_1;
|
|
37
37
|
}
|
|
38
38
|
e1() {
|
|
39
|
-
return !(null == this.
|
|
39
|
+
return !(null == this.e68_1);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
initMetadataForClass($);
|
|
@@ -50,13 +50,13 @@ function engines() {
|
|
|
50
50
|
class $ {
|
|
51
51
|
constructor() {
|
|
52
52
|
engines_instance = this;
|
|
53
|
-
this.
|
|
53
|
+
this.a63_1 = atomic$ref$1(null);
|
|
54
54
|
}
|
|
55
|
-
|
|
55
|
+
b63(item) {
|
|
56
56
|
$l$loop: while (true) {
|
|
57
|
-
var current = this.
|
|
57
|
+
var current = this.a63_1.kotlinx$atomicfu$value;
|
|
58
58
|
var new_0 = new (Node())(item, current);
|
|
59
|
-
if (this.
|
|
59
|
+
if (this.a63_1.atomicfu$compareAndSet(current, new_0))
|
|
60
60
|
break $l$loop;
|
|
61
61
|
}
|
|
62
62
|
}
|
|
@@ -35,35 +35,35 @@ var DATE_HEADERS;
|
|
|
35
35
|
function callContext($completion) {
|
|
36
36
|
// Inline function 'kotlin.js.getCoroutineContext' call
|
|
37
37
|
var tmp$ret$0 = $completion.gc();
|
|
38
|
-
return ensureNotNull(tmp$ret$0.nc(Companion_instance)).
|
|
38
|
+
return ensureNotNull(tmp$ret$0.nc(Companion_instance)).t58_1;
|
|
39
39
|
}
|
|
40
40
|
function mergeHeaders(requestHeaders, content, block) {
|
|
41
41
|
_init_properties_Utils_kt__jo07cx();
|
|
42
42
|
var tmp = buildHeaders(mergeHeaders$lambda(requestHeaders, content));
|
|
43
|
-
tmp.
|
|
44
|
-
var missingAgent = requestHeaders.
|
|
43
|
+
tmp.k3t(mergeHeaders$lambda_0(block));
|
|
44
|
+
var missingAgent = requestHeaders.c3s(HttpHeaders_getInstance().e44_1) == null && content.z45().c3s(HttpHeaders_getInstance().e44_1) == null;
|
|
45
45
|
if (missingAgent && needUserAgent()) {
|
|
46
|
-
block(HttpHeaders_getInstance().
|
|
46
|
+
block(HttpHeaders_getInstance().e44_1, get_KTOR_DEFAULT_USER_AGENT());
|
|
47
47
|
}
|
|
48
|
-
var tmp0_safe_receiver = content.
|
|
48
|
+
var tmp0_safe_receiver = content.s4b();
|
|
49
49
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.toString();
|
|
50
|
-
var tmp2_elvis_lhs = tmp1_elvis_lhs == null ? content.
|
|
51
|
-
var type = tmp2_elvis_lhs == null ? requestHeaders.
|
|
52
|
-
var tmp3_safe_receiver = content.
|
|
50
|
+
var tmp2_elvis_lhs = tmp1_elvis_lhs == null ? content.z45().c3s(HttpHeaders_getInstance().y41_1) : tmp1_elvis_lhs;
|
|
51
|
+
var type = tmp2_elvis_lhs == null ? requestHeaders.c3s(HttpHeaders_getInstance().y41_1) : tmp2_elvis_lhs;
|
|
52
|
+
var tmp3_safe_receiver = content.t4b();
|
|
53
53
|
var tmp4_elvis_lhs = tmp3_safe_receiver == null ? null : tmp3_safe_receiver.toString();
|
|
54
|
-
var tmp5_elvis_lhs = tmp4_elvis_lhs == null ? content.
|
|
55
|
-
var length = tmp5_elvis_lhs == null ? requestHeaders.
|
|
54
|
+
var tmp5_elvis_lhs = tmp4_elvis_lhs == null ? content.z45().c3s(HttpHeaders_getInstance().v41_1) : tmp4_elvis_lhs;
|
|
55
|
+
var length = tmp5_elvis_lhs == null ? requestHeaders.c3s(HttpHeaders_getInstance().v41_1) : tmp5_elvis_lhs;
|
|
56
56
|
if (type == null)
|
|
57
57
|
null;
|
|
58
58
|
else {
|
|
59
59
|
// Inline function 'kotlin.let' call
|
|
60
|
-
block(HttpHeaders_getInstance().
|
|
60
|
+
block(HttpHeaders_getInstance().y41_1, type);
|
|
61
61
|
}
|
|
62
62
|
if (length == null)
|
|
63
63
|
null;
|
|
64
64
|
else {
|
|
65
65
|
// Inline function 'kotlin.let' call
|
|
66
|
-
block(HttpHeaders_getInstance().
|
|
66
|
+
block(HttpHeaders_getInstance().v41_1, length);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
var CompanionClass;
|
|
@@ -84,7 +84,7 @@ function KtorCallContextElement() {
|
|
|
84
84
|
if (KtorCallContextElementClass === VOID) {
|
|
85
85
|
class $ {
|
|
86
86
|
constructor(callContext) {
|
|
87
|
-
this.
|
|
87
|
+
this.t58_1 = callContext;
|
|
88
88
|
}
|
|
89
89
|
r1() {
|
|
90
90
|
return Companion_instance;
|
|
@@ -101,23 +101,23 @@ function KtorCallContextElement() {
|
|
|
101
101
|
}
|
|
102
102
|
function needUserAgent() {
|
|
103
103
|
_init_properties_Utils_kt__jo07cx();
|
|
104
|
-
return !PlatformUtils_getInstance().
|
|
104
|
+
return !PlatformUtils_getInstance().x3s_1;
|
|
105
105
|
}
|
|
106
106
|
function mergeHeaders$lambda($requestHeaders, $content) {
|
|
107
107
|
return function ($this$buildHeaders) {
|
|
108
|
-
$this$buildHeaders.
|
|
109
|
-
$this$buildHeaders.
|
|
108
|
+
$this$buildHeaders.s3t($requestHeaders);
|
|
109
|
+
$this$buildHeaders.s3t($content.z45());
|
|
110
110
|
return Unit_instance;
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
function mergeHeaders$lambda_0($block) {
|
|
114
114
|
return function (key, values) {
|
|
115
115
|
var tmp;
|
|
116
|
-
if (HttpHeaders_getInstance().
|
|
116
|
+
if (HttpHeaders_getInstance().v41_1 === key) {
|
|
117
117
|
return Unit_instance;
|
|
118
118
|
}
|
|
119
119
|
var tmp_0;
|
|
120
|
-
if (HttpHeaders_getInstance().
|
|
120
|
+
if (HttpHeaders_getInstance().y41_1 === key) {
|
|
121
121
|
return Unit_instance;
|
|
122
122
|
}
|
|
123
123
|
var tmp_1;
|
|
@@ -130,7 +130,7 @@ function mergeHeaders$lambda_0($block) {
|
|
|
130
130
|
}
|
|
131
131
|
tmp_1 = Unit_instance;
|
|
132
132
|
} else {
|
|
133
|
-
var separator = HttpHeaders_getInstance().
|
|
133
|
+
var separator = HttpHeaders_getInstance().z41_1 === key ? '; ' : ',';
|
|
134
134
|
tmp_1 = $block(key, joinToString(values, separator));
|
|
135
135
|
}
|
|
136
136
|
return Unit_instance;
|
|
@@ -141,7 +141,7 @@ function _init_properties_Utils_kt__jo07cx() {
|
|
|
141
141
|
if (!properties_initialized_Utils_kt_xvi83j) {
|
|
142
142
|
properties_initialized_Utils_kt_xvi83j = true;
|
|
143
143
|
KTOR_DEFAULT_USER_AGENT = 'ktor-client';
|
|
144
|
-
DATE_HEADERS = setOf([HttpHeaders_getInstance().
|
|
144
|
+
DATE_HEADERS = setOf([HttpHeaders_getInstance().b42_1, HttpHeaders_getInstance().h42_1, HttpHeaders_getInstance().t42_1, HttpHeaders_getInstance().o42_1, HttpHeaders_getInstance().s42_1]);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
//region block: init
|
|
@@ -20,14 +20,14 @@ var JsClass;
|
|
|
20
20
|
function Js() {
|
|
21
21
|
if (JsClass === VOID) {
|
|
22
22
|
class $ {
|
|
23
|
-
|
|
23
|
+
t62(block) {
|
|
24
24
|
// Inline function 'kotlin.apply' call
|
|
25
25
|
var this_0 = new (JsClientEngineConfig())();
|
|
26
26
|
block(this_0);
|
|
27
27
|
return new (JsClientEngine())(this_0);
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
return this.
|
|
29
|
+
t51(block) {
|
|
30
|
+
return this.t62(block);
|
|
31
31
|
}
|
|
32
32
|
toString() {
|
|
33
33
|
return 'Js';
|
|
@@ -63,8 +63,8 @@ function JsClientEngineConfig() {
|
|
|
63
63
|
constructor() {
|
|
64
64
|
super();
|
|
65
65
|
var tmp = this;
|
|
66
|
-
tmp.
|
|
67
|
-
this.
|
|
66
|
+
tmp.y62_1 = JsClientEngineConfig$requestInit$lambda;
|
|
67
|
+
this.z62_1 = Object.create(null);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
initMetadataForClass($, 'JsClientEngineConfig', JsClientEngineConfig);
|
|
@@ -73,7 +73,7 @@ function JsClientEngineConfig() {
|
|
|
73
73
|
return JsClientEngineConfigClass;
|
|
74
74
|
}
|
|
75
75
|
function initHook$init$() {
|
|
76
|
-
engines_getInstance().
|
|
76
|
+
engines_getInstance().b63(Js_instance);
|
|
77
77
|
return Unit_instance;
|
|
78
78
|
}
|
|
79
79
|
//region block: init
|