@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
|
@@ -89,7 +89,7 @@ function rethrowCloseCause(_this__u8e3s4) {
|
|
|
89
89
|
_init_properties_ChunkedTransferEncoding_kt__hi13vs();
|
|
90
90
|
var tmp;
|
|
91
91
|
if (_this__u8e3s4 instanceof ByteChannel()) {
|
|
92
|
-
tmp = _this__u8e3s4.
|
|
92
|
+
tmp = _this__u8e3s4.f3b();
|
|
93
93
|
} else {
|
|
94
94
|
tmp = null;
|
|
95
95
|
}
|
|
@@ -104,16 +104,16 @@ function ChunkSizeBufferPool$1() {
|
|
|
104
104
|
constructor() {
|
|
105
105
|
super(2048);
|
|
106
106
|
}
|
|
107
|
-
|
|
107
|
+
u3q() {
|
|
108
108
|
return StringBuilder().mb(128);
|
|
109
109
|
}
|
|
110
|
-
|
|
110
|
+
d4f(instance) {
|
|
111
111
|
// Inline function 'kotlin.apply' call
|
|
112
112
|
instance.ci();
|
|
113
113
|
return instance;
|
|
114
114
|
}
|
|
115
|
-
|
|
116
|
-
return this.
|
|
115
|
+
z3q(instance) {
|
|
116
|
+
return this.d4f(instance instanceof StringBuilder() ? instance : THROW_CCE());
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
initMetadataForClass($);
|
|
@@ -128,17 +128,17 @@ function encodeChunked$slambda() {
|
|
|
128
128
|
constructor($output, resultContinuation, $box) {
|
|
129
129
|
if ($box === VOID)
|
|
130
130
|
$box = {};
|
|
131
|
-
$box.
|
|
131
|
+
$box.m4f_1 = $output;
|
|
132
132
|
super(resultContinuation, $box);
|
|
133
133
|
}
|
|
134
|
-
|
|
135
|
-
var tmp = this.
|
|
134
|
+
o4f($this$reader, $completion) {
|
|
135
|
+
var tmp = this.p4f($this$reader, $completion);
|
|
136
136
|
tmp.cc_1 = Unit_instance;
|
|
137
137
|
tmp.dc_1 = null;
|
|
138
138
|
return tmp.ic();
|
|
139
139
|
}
|
|
140
140
|
kd(p1, $completion) {
|
|
141
|
-
return this.
|
|
141
|
+
return this.o4f(p1 instanceof ReaderScope() ? p1 : THROW_CCE(), $completion);
|
|
142
142
|
}
|
|
143
143
|
ic() {
|
|
144
144
|
var suspendResult = this.cc_1;
|
|
@@ -149,7 +149,7 @@ function encodeChunked$slambda() {
|
|
|
149
149
|
case 0:
|
|
150
150
|
this.bc_1 = 2;
|
|
151
151
|
this.ac_1 = 1;
|
|
152
|
-
suspendResult = encodeChunked_0(this.
|
|
152
|
+
suspendResult = encodeChunked_0(this.m4f_1, this.n4f_1.f3h_1, this);
|
|
153
153
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
154
154
|
return suspendResult;
|
|
155
155
|
}
|
|
@@ -171,9 +171,9 @@ function encodeChunked$slambda() {
|
|
|
171
171
|
}
|
|
172
172
|
while (true);
|
|
173
173
|
}
|
|
174
|
-
|
|
175
|
-
var i = new (encodeChunked$slambda())(this.
|
|
176
|
-
i.
|
|
174
|
+
p4f($this$reader, completion) {
|
|
175
|
+
var i = new (encodeChunked$slambda())(this.m4f_1, completion);
|
|
176
|
+
i.n4f_1 = $this$reader;
|
|
177
177
|
return i;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
@@ -185,7 +185,7 @@ function encodeChunked$slambda() {
|
|
|
185
185
|
function encodeChunked$slambda_0($output, resultContinuation) {
|
|
186
186
|
var i = new (encodeChunked$slambda())($output, resultContinuation);
|
|
187
187
|
var l = function ($this$reader, $completion) {
|
|
188
|
-
return i.
|
|
188
|
+
return i.o4f($this$reader, $completion);
|
|
189
189
|
};
|
|
190
190
|
l.$arity = 1;
|
|
191
191
|
return l;
|
|
@@ -196,8 +196,8 @@ function $decodeChunkedCOROUTINE$() {
|
|
|
196
196
|
class $ extends CoroutineImpl() {
|
|
197
197
|
constructor(input, out, resultContinuation) {
|
|
198
198
|
super(resultContinuation);
|
|
199
|
-
this.
|
|
200
|
-
this.
|
|
199
|
+
this.u4c_1 = input;
|
|
200
|
+
this.v4c_1 = out;
|
|
201
201
|
}
|
|
202
202
|
ic() {
|
|
203
203
|
var suspendResult = this.cc_1;
|
|
@@ -207,8 +207,8 @@ function $decodeChunkedCOROUTINE$() {
|
|
|
207
207
|
switch (tmp) {
|
|
208
208
|
case 0:
|
|
209
209
|
this.bc_1 = 16;
|
|
210
|
-
this.
|
|
211
|
-
this.
|
|
210
|
+
this.w4c_1 = get_ChunkSizeBufferPool().b3r();
|
|
211
|
+
this.x4c_1 = new (Long())(0, 0);
|
|
212
212
|
this.ac_1 = 1;
|
|
213
213
|
continue $sm;
|
|
214
214
|
case 1:
|
|
@@ -218,7 +218,7 @@ function $decodeChunkedCOROUTINE$() {
|
|
|
218
218
|
continue $sm;
|
|
219
219
|
case 2:
|
|
220
220
|
this.ac_1 = 3;
|
|
221
|
-
suspendResult = readUTF8LineTo(this.
|
|
221
|
+
suspendResult = readUTF8LineTo(this.u4c_1, this.w4c_1, 128, get_httpLineEndings(), this);
|
|
222
222
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
223
223
|
return suspendResult;
|
|
224
224
|
}
|
|
@@ -230,15 +230,15 @@ function $decodeChunkedCOROUTINE$() {
|
|
|
230
230
|
continue $sm;
|
|
231
231
|
}
|
|
232
232
|
|
|
233
|
-
var this_0 = this.
|
|
233
|
+
var this_0 = this.w4c_1;
|
|
234
234
|
if (charSequenceLength(this_0) === 0) {
|
|
235
|
-
throw EOFException().
|
|
235
|
+
throw EOFException().m2r('Invalid chunk size: empty');
|
|
236
236
|
}
|
|
237
237
|
|
|
238
|
-
this.
|
|
239
|
-
if (this.
|
|
238
|
+
this.z4c_1 = this.w4c_1.a() === 1 && this.w4c_1.b(0) === _Char___init__impl__6a9atx(48) ? new (Long())(0, 0) : parseHexLong(this.w4c_1);
|
|
239
|
+
if (this.z4c_1.a2(new (Long())(0, 0)) > 0) {
|
|
240
240
|
this.ac_1 = 4;
|
|
241
|
-
suspendResult = copyTo(this.
|
|
241
|
+
suspendResult = copyTo(this.u4c_1, this.v4c_1, this.z4c_1, this);
|
|
242
242
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
243
243
|
return suspendResult;
|
|
244
244
|
}
|
|
@@ -250,41 +250,41 @@ function $decodeChunkedCOROUTINE$() {
|
|
|
250
250
|
|
|
251
251
|
case 4:
|
|
252
252
|
this.ac_1 = 5;
|
|
253
|
-
suspendResult = this.
|
|
253
|
+
suspendResult = this.v4c_1.z3a(this);
|
|
254
254
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
255
255
|
return suspendResult;
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
continue $sm;
|
|
259
259
|
case 5:
|
|
260
|
-
this.
|
|
260
|
+
this.x4c_1 = this.x4c_1.p3(this.z4c_1);
|
|
261
261
|
this.ac_1 = 6;
|
|
262
262
|
continue $sm;
|
|
263
263
|
case 6:
|
|
264
|
-
this.
|
|
264
|
+
this.w4c_1.ci();
|
|
265
265
|
this.ac_1 = 7;
|
|
266
|
-
suspendResult = readUTF8LineTo(this.
|
|
266
|
+
suspendResult = readUTF8LineTo(this.u4c_1, this.w4c_1, 2, get_httpLineEndings(), this);
|
|
267
267
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
268
268
|
return suspendResult;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
continue $sm;
|
|
272
272
|
case 7:
|
|
273
|
-
this.
|
|
274
|
-
if (!this.
|
|
275
|
-
throw EOFException().
|
|
273
|
+
this.a4d_1 = suspendResult;
|
|
274
|
+
if (!this.a4d_1) {
|
|
275
|
+
throw EOFException().m2r('Invalid chunk: content block of size ' + this.z4c_1.toString() + ' ended unexpectedly');
|
|
276
276
|
} else {
|
|
277
277
|
this.ac_1 = 8;
|
|
278
278
|
continue $sm;
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
case 8:
|
|
282
|
-
var this_1 = this.
|
|
282
|
+
var this_1 = this.w4c_1;
|
|
283
283
|
if (charSequenceLength(this_1) > 0) {
|
|
284
|
-
throw EOFException().
|
|
284
|
+
throw EOFException().m2r('Invalid chunk: content block should end with CR+LF');
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
if (this.
|
|
287
|
+
if (this.z4c_1.equals(new (Long())(0, 0))) {
|
|
288
288
|
this.ac_1 = 10;
|
|
289
289
|
continue $sm;
|
|
290
290
|
} else {
|
|
@@ -296,7 +296,7 @@ function $decodeChunkedCOROUTINE$() {
|
|
|
296
296
|
this.ac_1 = 2;
|
|
297
297
|
continue $sm;
|
|
298
298
|
case 10:
|
|
299
|
-
this.
|
|
299
|
+
this.y4c_1 = Unit_instance;
|
|
300
300
|
this.bc_1 = 16;
|
|
301
301
|
this.ac_1 = 14;
|
|
302
302
|
continue $sm;
|
|
@@ -304,32 +304,32 @@ function $decodeChunkedCOROUTINE$() {
|
|
|
304
304
|
this.bc_1 = 12;
|
|
305
305
|
var tmp_0 = this.dc_1;
|
|
306
306
|
if (tmp_0 instanceof Error) {
|
|
307
|
-
this.
|
|
307
|
+
this.b4d_1 = this.dc_1;
|
|
308
308
|
var tmp_1 = this;
|
|
309
|
-
close(this.
|
|
310
|
-
throw this.
|
|
309
|
+
close(this.v4c_1, this.b4d_1);
|
|
310
|
+
throw this.b4d_1;
|
|
311
311
|
} else {
|
|
312
312
|
throw this.dc_1;
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
case 12:
|
|
316
316
|
this.bc_1 = 16;
|
|
317
|
-
this.
|
|
318
|
-
get_ChunkSizeBufferPool().
|
|
317
|
+
this.c4d_1 = this.dc_1;
|
|
318
|
+
get_ChunkSizeBufferPool().c3r(this.w4c_1);
|
|
319
319
|
this.ac_1 = 13;
|
|
320
|
-
suspendResult = this.
|
|
320
|
+
suspendResult = this.v4c_1.k3b(this);
|
|
321
321
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
322
322
|
return suspendResult;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
continue $sm;
|
|
326
326
|
case 13:
|
|
327
|
-
throw this.
|
|
327
|
+
throw this.c4d_1;
|
|
328
328
|
case 14:
|
|
329
329
|
this.bc_1 = 16;
|
|
330
|
-
get_ChunkSizeBufferPool().
|
|
330
|
+
get_ChunkSizeBufferPool().c3r(this.w4c_1);
|
|
331
331
|
this.ac_1 = 15;
|
|
332
|
-
suspendResult = this.
|
|
332
|
+
suspendResult = this.v4c_1.k3b(this);
|
|
333
333
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
334
334
|
return suspendResult;
|
|
335
335
|
}
|
|
@@ -363,8 +363,8 @@ function $encodeChunkedCOROUTINE$() {
|
|
|
363
363
|
class $ extends CoroutineImpl() {
|
|
364
364
|
constructor(output, input, resultContinuation) {
|
|
365
365
|
super(resultContinuation);
|
|
366
|
-
this.
|
|
367
|
-
this.
|
|
366
|
+
this.l4d_1 = output;
|
|
367
|
+
this.m4d_1 = input;
|
|
368
368
|
}
|
|
369
369
|
ic() {
|
|
370
370
|
var suspendResult = this.cc_1;
|
|
@@ -382,19 +382,19 @@ function $encodeChunkedCOROUTINE$() {
|
|
|
382
382
|
this.ac_1 = 2;
|
|
383
383
|
continue $sm;
|
|
384
384
|
case 2:
|
|
385
|
-
if (!!this.
|
|
385
|
+
if (!!this.m4d_1.h3b()) {
|
|
386
386
|
this.ac_1 = 13;
|
|
387
387
|
continue $sm;
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
var tmp_0 = this;
|
|
391
|
-
tmp_0.
|
|
391
|
+
tmp_0.o4d_1 = this.m4d_1;
|
|
392
392
|
this.ac_1 = 3;
|
|
393
393
|
continue $sm;
|
|
394
394
|
case 3:
|
|
395
|
-
this.
|
|
396
|
-
if (this.
|
|
397
|
-
this.
|
|
395
|
+
this.q4d_1 = this.o4d_1;
|
|
396
|
+
if (this.q4d_1.h3b()) {
|
|
397
|
+
this.p4d_1 = -1;
|
|
398
398
|
this.ac_1 = 12;
|
|
399
399
|
continue $sm;
|
|
400
400
|
} else {
|
|
@@ -403,9 +403,9 @@ function $encodeChunkedCOROUTINE$() {
|
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
case 4:
|
|
406
|
-
if (this.
|
|
406
|
+
if (this.q4d_1.a3b().o2r()) {
|
|
407
407
|
this.ac_1 = 5;
|
|
408
|
-
suspendResult = this.
|
|
408
|
+
suspendResult = this.q4d_1.j3b(VOID, this);
|
|
409
409
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
410
410
|
return suspendResult;
|
|
411
411
|
}
|
|
@@ -419,8 +419,8 @@ function $encodeChunkedCOROUTINE$() {
|
|
|
419
419
|
this.ac_1 = 6;
|
|
420
420
|
continue $sm;
|
|
421
421
|
case 6:
|
|
422
|
-
if (this.
|
|
423
|
-
this.
|
|
422
|
+
if (this.q4d_1.h3b()) {
|
|
423
|
+
this.p4d_1 = -1;
|
|
424
424
|
this.ac_1 = 12;
|
|
425
425
|
continue $sm;
|
|
426
426
|
} else {
|
|
@@ -430,40 +430,40 @@ function $encodeChunkedCOROUTINE$() {
|
|
|
430
430
|
|
|
431
431
|
case 7:
|
|
432
432
|
var tmp_1 = this;
|
|
433
|
-
tmp_1.
|
|
433
|
+
tmp_1.s4d_1 = UnsafeBufferOperations_instance;
|
|
434
434
|
var tmp_2 = this;
|
|
435
|
-
tmp_2.
|
|
436
|
-
this.
|
|
437
|
-
this.
|
|
438
|
-
if (!!this.
|
|
435
|
+
tmp_2.t4d_1 = this.q4d_1.a3b().n2r();
|
|
436
|
+
this.u4d_1 = this.s4d_1;
|
|
437
|
+
this.v4d_1 = this.t4d_1;
|
|
438
|
+
if (!!this.v4d_1.o2r()) {
|
|
439
439
|
var message = 'Buffer is empty';
|
|
440
440
|
throw IllegalArgumentException().u(toString(message));
|
|
441
441
|
}
|
|
442
442
|
|
|
443
|
-
this.
|
|
443
|
+
this.w4d_1 = ensureNotNull(this.v4d_1.g2r_1);
|
|
444
444
|
var tmp_3 = this;
|
|
445
|
-
tmp_3.
|
|
445
|
+
tmp_3.x4d_1 = this.w4d_1.n2u(true);
|
|
446
446
|
var tmp_4 = this;
|
|
447
|
-
tmp_4.
|
|
447
|
+
tmp_4.y4d_1 = this.w4d_1.t2r_1;
|
|
448
448
|
var tmp_5 = this;
|
|
449
|
-
tmp_5.
|
|
450
|
-
this.
|
|
451
|
-
this.
|
|
452
|
-
this.
|
|
449
|
+
tmp_5.z4d_1 = this.w4d_1.u2r_1;
|
|
450
|
+
this.a4e_1 = this.x4d_1;
|
|
451
|
+
this.b4e_1 = this.y4d_1;
|
|
452
|
+
this.c4e_1 = this.z4d_1;
|
|
453
453
|
var tmp_6 = this;
|
|
454
|
-
tmp_6.
|
|
454
|
+
tmp_6.d4e_1 = this.a4e_1;
|
|
455
455
|
var tmp_7 = this;
|
|
456
|
-
tmp_7.
|
|
456
|
+
tmp_7.e4e_1 = this.b4e_1;
|
|
457
457
|
var tmp_8 = this;
|
|
458
|
-
tmp_8.
|
|
458
|
+
tmp_8.f4e_1 = this.c4e_1;
|
|
459
459
|
this.ac_1 = 8;
|
|
460
460
|
continue $sm;
|
|
461
461
|
case 8:
|
|
462
|
-
this.
|
|
463
|
-
this.
|
|
464
|
-
this.
|
|
465
|
-
if (this.
|
|
466
|
-
this.
|
|
462
|
+
this.h4e_1 = this.d4e_1;
|
|
463
|
+
this.i4e_1 = this.e4e_1;
|
|
464
|
+
this.j4e_1 = this.f4e_1;
|
|
465
|
+
if (this.j4e_1 === this.i4e_1) {
|
|
466
|
+
this.g4e_1 = 0;
|
|
467
467
|
this.ac_1 = 11;
|
|
468
468
|
continue $sm;
|
|
469
469
|
} else {
|
|
@@ -473,14 +473,14 @@ function $encodeChunkedCOROUTINE$() {
|
|
|
473
473
|
|
|
474
474
|
case 9:
|
|
475
475
|
this.ac_1 = 10;
|
|
476
|
-
suspendResult = writeChunk(this.
|
|
476
|
+
suspendResult = writeChunk(this.l4d_1, this.h4e_1, this.i4e_1, this.j4e_1, this);
|
|
477
477
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
478
478
|
return suspendResult;
|
|
479
479
|
}
|
|
480
480
|
|
|
481
481
|
continue $sm;
|
|
482
482
|
case 10:
|
|
483
|
-
this.
|
|
483
|
+
this.g4e_1 = suspendResult;
|
|
484
484
|
if (false) {
|
|
485
485
|
this.ac_1 = 8;
|
|
486
486
|
continue $sm;
|
|
@@ -489,17 +489,17 @@ function $encodeChunkedCOROUTINE$() {
|
|
|
489
489
|
this.ac_1 = 11;
|
|
490
490
|
continue $sm;
|
|
491
491
|
case 11:
|
|
492
|
-
this.
|
|
493
|
-
this.
|
|
494
|
-
if (!(this.
|
|
495
|
-
if (this.
|
|
492
|
+
this.r4d_1 = this.g4e_1;
|
|
493
|
+
this.k4e_1 = this.r4d_1;
|
|
494
|
+
if (!(this.k4e_1 === 0)) {
|
|
495
|
+
if (this.k4e_1 < 0)
|
|
496
496
|
throw IllegalStateException().o4('Returned negative read bytes count');
|
|
497
|
-
if (this.
|
|
497
|
+
if (this.k4e_1 > this.w4d_1.i1())
|
|
498
498
|
throw IllegalStateException().o4('Returned too many bytes');
|
|
499
|
-
this.
|
|
499
|
+
this.v4d_1.p2s(toLong(this.k4e_1));
|
|
500
500
|
}
|
|
501
501
|
|
|
502
|
-
this.
|
|
502
|
+
this.p4d_1 = this.r4d_1;
|
|
503
503
|
if (false) {
|
|
504
504
|
this.ac_1 = 3;
|
|
505
505
|
continue $sm;
|
|
@@ -511,16 +511,16 @@ function $encodeChunkedCOROUTINE$() {
|
|
|
511
511
|
this.ac_1 = 2;
|
|
512
512
|
continue $sm;
|
|
513
513
|
case 13:
|
|
514
|
-
rethrowCloseCause(this.
|
|
514
|
+
rethrowCloseCause(this.m4d_1);
|
|
515
515
|
this.ac_1 = 14;
|
|
516
|
-
suspendResult = writeFully(this.
|
|
516
|
+
suspendResult = writeFully(this.l4d_1, get_LastChunkBytes(), VOID, VOID, this);
|
|
517
517
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
518
518
|
return suspendResult;
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
continue $sm;
|
|
522
522
|
case 14:
|
|
523
|
-
this.
|
|
523
|
+
this.n4d_1 = suspendResult;
|
|
524
524
|
this.bc_1 = 20;
|
|
525
525
|
this.ac_1 = 18;
|
|
526
526
|
continue $sm;
|
|
@@ -528,31 +528,31 @@ function $encodeChunkedCOROUTINE$() {
|
|
|
528
528
|
this.bc_1 = 16;
|
|
529
529
|
var tmp_9 = this.dc_1;
|
|
530
530
|
if (tmp_9 instanceof Error) {
|
|
531
|
-
this.
|
|
531
|
+
this.l4e_1 = this.dc_1;
|
|
532
532
|
var tmp_10 = this;
|
|
533
|
-
close(this.
|
|
534
|
-
this.
|
|
535
|
-
throw this.
|
|
533
|
+
close(this.l4d_1, this.l4e_1);
|
|
534
|
+
this.m4d_1.l3b(this.l4e_1);
|
|
535
|
+
throw this.l4e_1;
|
|
536
536
|
} else {
|
|
537
537
|
throw this.dc_1;
|
|
538
538
|
}
|
|
539
539
|
|
|
540
540
|
case 16:
|
|
541
541
|
this.bc_1 = 20;
|
|
542
|
-
this.
|
|
542
|
+
this.m4e_1 = this.dc_1;
|
|
543
543
|
this.ac_1 = 17;
|
|
544
|
-
suspendResult = this.
|
|
544
|
+
suspendResult = this.l4d_1.z3a(this);
|
|
545
545
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
546
546
|
return suspendResult;
|
|
547
547
|
}
|
|
548
548
|
|
|
549
549
|
continue $sm;
|
|
550
550
|
case 17:
|
|
551
|
-
throw this.
|
|
551
|
+
throw this.m4e_1;
|
|
552
552
|
case 18:
|
|
553
553
|
this.bc_1 = 20;
|
|
554
554
|
this.ac_1 = 19;
|
|
555
|
-
suspendResult = this.
|
|
555
|
+
suspendResult = this.l4d_1.z3a(this);
|
|
556
556
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
557
557
|
return suspendResult;
|
|
558
558
|
}
|
|
@@ -586,10 +586,10 @@ function $writeChunkCOROUTINE$() {
|
|
|
586
586
|
class $ extends CoroutineImpl() {
|
|
587
587
|
constructor(_this__u8e3s4, memory, startIndex, endIndex, resultContinuation) {
|
|
588
588
|
super(resultContinuation);
|
|
589
|
-
this.
|
|
590
|
-
this.
|
|
591
|
-
this.
|
|
592
|
-
this.
|
|
589
|
+
this.v4e_1 = _this__u8e3s4;
|
|
590
|
+
this.w4e_1 = memory;
|
|
591
|
+
this.x4e_1 = startIndex;
|
|
592
|
+
this.y4e_1 = endIndex;
|
|
593
593
|
}
|
|
594
594
|
ic() {
|
|
595
595
|
var suspendResult = this.cc_1;
|
|
@@ -599,9 +599,9 @@ function $writeChunkCOROUTINE$() {
|
|
|
599
599
|
switch (tmp) {
|
|
600
600
|
case 0:
|
|
601
601
|
this.bc_1 = 6;
|
|
602
|
-
this.
|
|
602
|
+
this.z4e_1 = this.y4e_1 - this.x4e_1 | 0;
|
|
603
603
|
this.ac_1 = 1;
|
|
604
|
-
suspendResult = writeIntHex(this.
|
|
604
|
+
suspendResult = writeIntHex(this.v4e_1, this.z4e_1, this);
|
|
605
605
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
606
606
|
return suspendResult;
|
|
607
607
|
}
|
|
@@ -609,7 +609,7 @@ function $writeChunkCOROUTINE$() {
|
|
|
609
609
|
continue $sm;
|
|
610
610
|
case 1:
|
|
611
611
|
this.ac_1 = 2;
|
|
612
|
-
suspendResult = writeShort(this.
|
|
612
|
+
suspendResult = writeShort(this.v4e_1, 3338, this);
|
|
613
613
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
614
614
|
return suspendResult;
|
|
615
615
|
}
|
|
@@ -617,7 +617,7 @@ function $writeChunkCOROUTINE$() {
|
|
|
617
617
|
continue $sm;
|
|
618
618
|
case 2:
|
|
619
619
|
this.ac_1 = 3;
|
|
620
|
-
suspendResult = writeFully(this.
|
|
620
|
+
suspendResult = writeFully(this.v4e_1, this.w4e_1, this.x4e_1, this.y4e_1, this);
|
|
621
621
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
622
622
|
return suspendResult;
|
|
623
623
|
}
|
|
@@ -625,7 +625,7 @@ function $writeChunkCOROUTINE$() {
|
|
|
625
625
|
continue $sm;
|
|
626
626
|
case 3:
|
|
627
627
|
this.ac_1 = 4;
|
|
628
|
-
suspendResult = writeFully(this.
|
|
628
|
+
suspendResult = writeFully(this.v4e_1, get_CrLf(), VOID, VOID, this);
|
|
629
629
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
630
630
|
return suspendResult;
|
|
631
631
|
}
|
|
@@ -633,14 +633,14 @@ function $writeChunkCOROUTINE$() {
|
|
|
633
633
|
continue $sm;
|
|
634
634
|
case 4:
|
|
635
635
|
this.ac_1 = 5;
|
|
636
|
-
suspendResult = this.
|
|
636
|
+
suspendResult = this.v4e_1.z3a(this);
|
|
637
637
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
638
638
|
return suspendResult;
|
|
639
639
|
}
|
|
640
640
|
|
|
641
641
|
continue $sm;
|
|
642
642
|
case 5:
|
|
643
|
-
return this.
|
|
643
|
+
return this.z4e_1;
|
|
644
644
|
case 6:
|
|
645
645
|
throw this.dc_1;
|
|
646
646
|
}
|
|
@@ -63,7 +63,7 @@ function parseSlow($this, connection) {
|
|
|
63
63
|
}
|
|
64
64
|
var tmp = start;
|
|
65
65
|
var tmp_0 = idx;
|
|
66
|
-
var detected = singleOrNull($this.
|
|
66
|
+
var detected = singleOrNull($this.t4f_1.v4f(connection, tmp, tmp_0, true, ConnectionOptions$Companion$parseSlow$lambda));
|
|
67
67
|
if (detected == null) {
|
|
68
68
|
if (hopHeadersList == null) {
|
|
69
69
|
hopHeadersList = ArrayList().l1();
|
|
@@ -77,16 +77,16 @@ function parseSlow($this, connection) {
|
|
|
77
77
|
} else if (connectionOptions == null) {
|
|
78
78
|
connectionOptions = detected.fl_1;
|
|
79
79
|
} else {
|
|
80
|
-
connectionOptions = new (ConnectionOptions())(connectionOptions.
|
|
80
|
+
connectionOptions = new (ConnectionOptions())(connectionOptions.w4f_1 || detected.fl_1.w4f_1, connectionOptions.x4f_1 || detected.fl_1.x4f_1, connectionOptions.y4f_1 || detected.fl_1.y4f_1, emptyList());
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
if (connectionOptions == null)
|
|
84
|
-
connectionOptions = $this.
|
|
84
|
+
connectionOptions = $this.r4f_1;
|
|
85
85
|
var tmp_2;
|
|
86
86
|
if (hopHeadersList == null) {
|
|
87
87
|
tmp_2 = connectionOptions;
|
|
88
88
|
} else {
|
|
89
|
-
tmp_2 = new (ConnectionOptions())(connectionOptions.
|
|
89
|
+
tmp_2 = new (ConnectionOptions())(connectionOptions.w4f_1, connectionOptions.x4f_1, connectionOptions.y4f_1, hopHeadersList);
|
|
90
90
|
}
|
|
91
91
|
return tmp_2;
|
|
92
92
|
}
|
|
@@ -108,19 +108,19 @@ function Companion() {
|
|
|
108
108
|
class $ {
|
|
109
109
|
constructor() {
|
|
110
110
|
Companion_instance_0 = this;
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
113
|
-
this.
|
|
111
|
+
this.q4f_1 = new (ConnectionOptions())(true);
|
|
112
|
+
this.r4f_1 = new (ConnectionOptions())(VOID, true);
|
|
113
|
+
this.s4f_1 = new (ConnectionOptions())(VOID, VOID, true);
|
|
114
114
|
var tmp = this;
|
|
115
115
|
var tmp_0 = Companion_instance;
|
|
116
|
-
var tmp_1 = listOf([to('close', this.
|
|
116
|
+
var tmp_1 = listOf([to('close', this.q4f_1), to('keep-alive', this.r4f_1), to('upgrade', this.s4f_1)]);
|
|
117
117
|
var tmp_2 = ConnectionOptions$Companion$knownTypes$lambda;
|
|
118
|
-
tmp.
|
|
118
|
+
tmp.t4f_1 = tmp_0.a4g(tmp_1, tmp_2, ConnectionOptions$Companion$knownTypes$lambda_0);
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
b4g(connection) {
|
|
121
121
|
if (connection == null)
|
|
122
122
|
return null;
|
|
123
|
-
var known = this.
|
|
123
|
+
var known = this.t4f_1.c4g(connection, VOID, VOID, true, ConnectionOptions$Companion$parse$lambda);
|
|
124
124
|
if (known.i1() === 1)
|
|
125
125
|
return known.j1(0).fl_1;
|
|
126
126
|
return parseSlow(this, connection);
|
|
@@ -141,19 +141,19 @@ function buildToString($this) {
|
|
|
141
141
|
// Inline function 'kotlin.text.buildString' call
|
|
142
142
|
// Inline function 'kotlin.apply' call
|
|
143
143
|
var this_0 = StringBuilder().a1();
|
|
144
|
-
var items = ArrayList().c1($this.
|
|
145
|
-
if ($this.
|
|
144
|
+
var items = ArrayList().c1($this.z4f_1.i1() + 3 | 0);
|
|
145
|
+
if ($this.w4f_1) {
|
|
146
146
|
items.m('close');
|
|
147
147
|
}
|
|
148
|
-
if ($this.
|
|
148
|
+
if ($this.x4f_1) {
|
|
149
149
|
items.m('keep-alive');
|
|
150
150
|
}
|
|
151
|
-
if ($this.
|
|
151
|
+
if ($this.y4f_1) {
|
|
152
152
|
items.m('Upgrade');
|
|
153
153
|
}
|
|
154
154
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
155
|
-
if (!$this.
|
|
156
|
-
items.k1($this.
|
|
155
|
+
if (!$this.z4f_1.j()) {
|
|
156
|
+
items.k1($this.z4f_1);
|
|
157
157
|
}
|
|
158
158
|
joinTo(items, this_0);
|
|
159
159
|
return this_0.toString();
|
|
@@ -168,15 +168,15 @@ function ConnectionOptions() {
|
|
|
168
168
|
keepAlive = keepAlive === VOID ? false : keepAlive;
|
|
169
169
|
upgrade = upgrade === VOID ? false : upgrade;
|
|
170
170
|
extraOptions = extraOptions === VOID ? emptyList() : extraOptions;
|
|
171
|
-
this.
|
|
172
|
-
this.
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
171
|
+
this.w4f_1 = close;
|
|
172
|
+
this.x4f_1 = keepAlive;
|
|
173
|
+
this.y4f_1 = upgrade;
|
|
174
|
+
this.z4f_1 = extraOptions;
|
|
175
175
|
}
|
|
176
176
|
toString() {
|
|
177
177
|
var tmp;
|
|
178
|
-
if (this.
|
|
179
|
-
tmp = this.
|
|
178
|
+
if (this.z4f_1.j()) {
|
|
179
|
+
tmp = this.w4f_1 && !this.x4f_1 && !this.y4f_1 ? 'close' : !this.w4f_1 && this.x4f_1 && !this.y4f_1 ? 'keep-alive' : !this.w4f_1 && this.x4f_1 && this.y4f_1 ? 'keep-alive, Upgrade' : buildToString(this);
|
|
180
180
|
} else {
|
|
181
181
|
tmp = buildToString(this);
|
|
182
182
|
}
|
|
@@ -189,21 +189,21 @@ function ConnectionOptions() {
|
|
|
189
189
|
return false;
|
|
190
190
|
if (!(other instanceof ConnectionOptions()))
|
|
191
191
|
THROW_CCE();
|
|
192
|
-
if (!(this.
|
|
192
|
+
if (!(this.w4f_1 === other.w4f_1))
|
|
193
193
|
return false;
|
|
194
|
-
if (!(this.
|
|
194
|
+
if (!(this.x4f_1 === other.x4f_1))
|
|
195
195
|
return false;
|
|
196
|
-
if (!(this.
|
|
196
|
+
if (!(this.y4f_1 === other.y4f_1))
|
|
197
197
|
return false;
|
|
198
|
-
if (!equals(this.
|
|
198
|
+
if (!equals(this.z4f_1, other.z4f_1))
|
|
199
199
|
return false;
|
|
200
200
|
return true;
|
|
201
201
|
}
|
|
202
202
|
hashCode() {
|
|
203
|
-
var result = getBooleanHashCode(this.
|
|
204
|
-
result = imul(31, result) + getBooleanHashCode(this.
|
|
205
|
-
result = imul(31, result) + getBooleanHashCode(this.
|
|
206
|
-
result = imul(31, result) + hashCode(this.
|
|
203
|
+
var result = getBooleanHashCode(this.w4f_1);
|
|
204
|
+
result = imul(31, result) + getBooleanHashCode(this.x4f_1) | 0;
|
|
205
|
+
result = imul(31, result) + getBooleanHashCode(this.y4f_1) | 0;
|
|
206
|
+
result = imul(31, result) + hashCode(this.z4f_1) | 0;
|
|
207
207
|
return result;
|
|
208
208
|
}
|
|
209
209
|
}
|