@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
|
@@ -65,10 +65,10 @@ function Companion() {
|
|
|
65
65
|
class $ {
|
|
66
66
|
constructor() {
|
|
67
67
|
Companion_instance_0 = this;
|
|
68
|
-
this.
|
|
68
|
+
this.d38_1 = new (Closed())(null);
|
|
69
69
|
var tmp = this;
|
|
70
70
|
// Inline function 'kotlin.Companion.success' call
|
|
71
|
-
tmp.
|
|
71
|
+
tmp.e38_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
initMetadataForCompanion($);
|
|
@@ -115,13 +115,13 @@ function Closed() {
|
|
|
115
115
|
if (ClosedClass === VOID) {
|
|
116
116
|
class $ {
|
|
117
117
|
constructor(cause) {
|
|
118
|
-
this.
|
|
118
|
+
this.f38_1 = cause;
|
|
119
119
|
}
|
|
120
120
|
toString() {
|
|
121
|
-
return 'Closed(cause=' + toString(this.
|
|
121
|
+
return 'Closed(cause=' + toString(this.f38_1) + ')';
|
|
122
122
|
}
|
|
123
123
|
hashCode() {
|
|
124
|
-
return this.
|
|
124
|
+
return this.f38_1 == null ? 0 : hashCode(this.f38_1);
|
|
125
125
|
}
|
|
126
126
|
equals(other) {
|
|
127
127
|
if (this === other)
|
|
@@ -129,7 +129,7 @@ function Closed() {
|
|
|
129
129
|
if (!(other instanceof Closed()))
|
|
130
130
|
return false;
|
|
131
131
|
var tmp0_other_with_cast = other instanceof Closed() ? other : THROW_CCE();
|
|
132
|
-
if (!equals(this.
|
|
132
|
+
if (!equals(this.f38_1, tmp0_other_with_cast.f38_1))
|
|
133
133
|
return false;
|
|
134
134
|
return true;
|
|
135
135
|
}
|
|
@@ -140,10 +140,10 @@ function Closed() {
|
|
|
140
140
|
return ClosedClass;
|
|
141
141
|
}
|
|
142
142
|
function resume() {
|
|
143
|
-
return this.
|
|
143
|
+
return this.h38().lc(Companion_getInstance().e38_1);
|
|
144
144
|
}
|
|
145
145
|
function resume_0(throwable) {
|
|
146
|
-
var tmp = this.
|
|
146
|
+
var tmp = this.h38();
|
|
147
147
|
var tmp_0;
|
|
148
148
|
if (throwable == null) {
|
|
149
149
|
tmp_0 = null;
|
|
@@ -154,7 +154,7 @@ function resume_0(throwable) {
|
|
|
154
154
|
tmp_0 = new (Result())(tmp$ret$2);
|
|
155
155
|
}
|
|
156
156
|
var tmp1_elvis_lhs = tmp_0;
|
|
157
|
-
return tmp.lc(tmp1_elvis_lhs == null ? Companion_getInstance().
|
|
157
|
+
return tmp.lc(tmp1_elvis_lhs == null ? Companion_getInstance().e38_1 : tmp1_elvis_lhs.wq_1);
|
|
158
158
|
}
|
|
159
159
|
var TaskClass;
|
|
160
160
|
function Task() {
|
|
@@ -170,28 +170,28 @@ function Read() {
|
|
|
170
170
|
if (ReadClass === VOID) {
|
|
171
171
|
class $ {
|
|
172
172
|
constructor(continuation) {
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
173
|
+
this.l38_1 = continuation;
|
|
174
|
+
this.m38_1 = null;
|
|
175
175
|
if (get_DEVELOPMENT_MODE()) {
|
|
176
176
|
var tmp = this;
|
|
177
177
|
// Inline function 'kotlin.also' call
|
|
178
|
-
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.
|
|
178
|
+
var this_0 = newThrowable('ReadTask 0x' + toString_0(hashCode(this.l38_1), 16));
|
|
179
179
|
stackTraceToString(this_0);
|
|
180
|
-
tmp.
|
|
180
|
+
tmp.m38_1 = this_0;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
|
|
184
|
-
return this.
|
|
183
|
+
h38() {
|
|
184
|
+
return this.l38_1;
|
|
185
185
|
}
|
|
186
|
-
|
|
187
|
-
return this.
|
|
186
|
+
g38() {
|
|
187
|
+
return this.m38_1;
|
|
188
188
|
}
|
|
189
|
-
|
|
189
|
+
i38() {
|
|
190
190
|
return 'read';
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
|
-
protoOf($).
|
|
194
|
-
protoOf($).
|
|
193
|
+
protoOf($).j38 = resume;
|
|
194
|
+
protoOf($).k38 = resume_0;
|
|
195
195
|
initMetadataForClass($, 'Read', VOID, VOID, [Task()]);
|
|
196
196
|
ReadClass = $;
|
|
197
197
|
}
|
|
@@ -202,28 +202,28 @@ function Write() {
|
|
|
202
202
|
if (WriteClass === VOID) {
|
|
203
203
|
class $ {
|
|
204
204
|
constructor(continuation) {
|
|
205
|
-
this.
|
|
206
|
-
this.
|
|
205
|
+
this.n38_1 = continuation;
|
|
206
|
+
this.o38_1 = null;
|
|
207
207
|
if (get_DEVELOPMENT_MODE()) {
|
|
208
208
|
var tmp = this;
|
|
209
209
|
// Inline function 'kotlin.also' call
|
|
210
|
-
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.
|
|
210
|
+
var this_0 = newThrowable('WriteTask 0x' + toString_0(hashCode(this.n38_1), 16));
|
|
211
211
|
stackTraceToString(this_0);
|
|
212
|
-
tmp.
|
|
212
|
+
tmp.o38_1 = this_0;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
|
-
|
|
216
|
-
return this.
|
|
215
|
+
h38() {
|
|
216
|
+
return this.n38_1;
|
|
217
217
|
}
|
|
218
|
-
|
|
219
|
-
return this.
|
|
218
|
+
g38() {
|
|
219
|
+
return this.o38_1;
|
|
220
220
|
}
|
|
221
|
-
|
|
221
|
+
i38() {
|
|
222
222
|
return 'write';
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
|
-
protoOf($).
|
|
226
|
-
protoOf($).
|
|
225
|
+
protoOf($).j38 = resume;
|
|
226
|
+
protoOf($).k38 = resume_0;
|
|
227
227
|
initMetadataForClass($, 'Write', VOID, VOID, [Task()]);
|
|
228
228
|
WriteClass = $;
|
|
229
229
|
}
|
|
@@ -231,38 +231,38 @@ function Write() {
|
|
|
231
231
|
}
|
|
232
232
|
function moveFlushToReadBuffer($this) {
|
|
233
233
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
234
|
-
$this.
|
|
235
|
-
$this.
|
|
236
|
-
$this.
|
|
234
|
+
$this.s38_1;
|
|
235
|
+
$this.q38_1.v2s($this.u38_1);
|
|
236
|
+
$this.r38_1 = 0;
|
|
237
237
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
238
|
-
var current = $this.
|
|
238
|
+
var current = $this.t38_1.kotlinx$atomicfu$value;
|
|
239
239
|
var tmp;
|
|
240
240
|
if (current instanceof Write()) {
|
|
241
|
-
tmp = $this.
|
|
241
|
+
tmp = $this.t38_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
242
242
|
} else {
|
|
243
243
|
tmp = false;
|
|
244
244
|
}
|
|
245
245
|
if (tmp) {
|
|
246
|
-
current.
|
|
246
|
+
current.j38();
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
function closeSlot($this, cause) {
|
|
250
|
-
var closeContinuation = !(cause == null) ? new (Closed())(cause) : Companion_getInstance().
|
|
251
|
-
var continuation = $this.
|
|
250
|
+
var closeContinuation = !(cause == null) ? new (Closed())(cause) : Companion_getInstance().d38_1;
|
|
251
|
+
var continuation = $this.t38_1.atomicfu$getAndSet(closeContinuation);
|
|
252
252
|
if (isInterface(continuation, Task())) {
|
|
253
|
-
continuation.
|
|
253
|
+
continuation.k38(cause);
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
256
|
function ClosedReadChannelException$_init_$ref_ix0089() {
|
|
257
257
|
var l = function (p0) {
|
|
258
|
-
return ClosedReadChannelException().
|
|
258
|
+
return ClosedReadChannelException().b39(p0);
|
|
259
259
|
};
|
|
260
260
|
l.callableName = '<init>';
|
|
261
261
|
return l;
|
|
262
262
|
}
|
|
263
263
|
function ClosedWriteChannelException$_init_$ref_ef15ty() {
|
|
264
264
|
var l = function (p0) {
|
|
265
|
-
return ClosedWriteChannelException().
|
|
265
|
+
return ClosedWriteChannelException().g39(p0);
|
|
266
266
|
};
|
|
267
267
|
l.callableName = '<init>';
|
|
268
268
|
return l;
|
|
@@ -273,8 +273,8 @@ function $awaitContentCOROUTINE$() {
|
|
|
273
273
|
class $ extends CoroutineImpl() {
|
|
274
274
|
constructor(_this__u8e3s4, min, resultContinuation) {
|
|
275
275
|
super(resultContinuation);
|
|
276
|
-
this.
|
|
277
|
-
this.
|
|
276
|
+
this.p39_1 = _this__u8e3s4;
|
|
277
|
+
this.q39_1 = min;
|
|
278
278
|
}
|
|
279
279
|
ic() {
|
|
280
280
|
var suspendResult = this.cc_1;
|
|
@@ -284,16 +284,16 @@ function $awaitContentCOROUTINE$() {
|
|
|
284
284
|
switch (tmp) {
|
|
285
285
|
case 0:
|
|
286
286
|
this.bc_1 = 4;
|
|
287
|
-
rethrowCloseCauseIfNeeded(this.
|
|
288
|
-
if (this.
|
|
287
|
+
rethrowCloseCauseIfNeeded(this.p39_1);
|
|
288
|
+
if (this.p39_1.u38_1.i1().a2(toLong(this.q39_1)) >= 0)
|
|
289
289
|
return true;
|
|
290
290
|
var tmp_0 = this;
|
|
291
|
-
tmp_0.
|
|
292
|
-
this.
|
|
291
|
+
tmp_0.r39_1 = this.p39_1;
|
|
292
|
+
this.s39_1 = this.r39_1;
|
|
293
293
|
this.ac_1 = 1;
|
|
294
294
|
continue $sm;
|
|
295
295
|
case 1:
|
|
296
|
-
if (!(numberToLong(this.
|
|
296
|
+
if (!(numberToLong(this.p39_1.r38_1).p3(this.p39_1.u38_1.i1()).a2(toLong(this.q39_1)) < 0 && this.p39_1.w38_1.kotlinx$atomicfu$value == null)) {
|
|
297
297
|
this.ac_1 = 3;
|
|
298
298
|
continue $sm;
|
|
299
299
|
}
|
|
@@ -301,24 +301,24 @@ function $awaitContentCOROUTINE$() {
|
|
|
301
301
|
this.ac_1 = 2;
|
|
302
302
|
var cancellable = new (CancellableContinuationImpl())(intercepted(this), 1);
|
|
303
303
|
cancellable.a23();
|
|
304
|
-
var tmp0 = this.
|
|
304
|
+
var tmp0 = this.s39_1;
|
|
305
305
|
var tmp2 = new (Read())(cancellable);
|
|
306
306
|
l$ret$1: do {
|
|
307
|
-
var previous = tmp0.
|
|
307
|
+
var previous = tmp0.t38_1.kotlinx$atomicfu$value;
|
|
308
308
|
if (!(previous instanceof Closed())) {
|
|
309
|
-
if (!tmp0.
|
|
310
|
-
tmp2.
|
|
309
|
+
if (!tmp0.t38_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
310
|
+
tmp2.j38();
|
|
311
311
|
break l$ret$1;
|
|
312
312
|
}
|
|
313
313
|
}
|
|
314
314
|
if (previous instanceof Read()) {
|
|
315
|
-
previous.
|
|
315
|
+
previous.k38(ConcurrentIOException().x39(tmp2.i38(), previous.g38()));
|
|
316
316
|
} else {
|
|
317
317
|
if (isInterface(previous, Task())) {
|
|
318
|
-
previous.
|
|
318
|
+
previous.j38();
|
|
319
319
|
} else {
|
|
320
320
|
if (previous instanceof Closed()) {
|
|
321
|
-
tmp2.
|
|
321
|
+
tmp2.k38(previous.f38_1);
|
|
322
322
|
break l$ret$1;
|
|
323
323
|
} else {
|
|
324
324
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -327,16 +327,16 @@ function $awaitContentCOROUTINE$() {
|
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
|
-
if (!(numberToLong(this.
|
|
331
|
-
var current = tmp0.
|
|
330
|
+
if (!(numberToLong(this.p39_1.r38_1).p3(this.p39_1.u38_1.i1()).a2(toLong(this.q39_1)) < 0 && this.p39_1.w38_1.kotlinx$atomicfu$value == null)) {
|
|
331
|
+
var current = tmp0.t38_1.kotlinx$atomicfu$value;
|
|
332
332
|
var tmp_1;
|
|
333
333
|
if (current instanceof Read()) {
|
|
334
|
-
tmp_1 = tmp0.
|
|
334
|
+
tmp_1 = tmp0.t38_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
335
335
|
} else {
|
|
336
336
|
tmp_1 = false;
|
|
337
337
|
}
|
|
338
338
|
if (tmp_1) {
|
|
339
|
-
current.
|
|
339
|
+
current.j38();
|
|
340
340
|
}
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -351,11 +351,11 @@ function $awaitContentCOROUTINE$() {
|
|
|
351
351
|
this.ac_1 = 1;
|
|
352
352
|
continue $sm;
|
|
353
353
|
case 3:
|
|
354
|
-
if (this.
|
|
355
|
-
moveFlushToReadBuffer(this.
|
|
354
|
+
if (this.p39_1.u38_1.i1().a2(new (Long())(1048576, 0)) < 0) {
|
|
355
|
+
moveFlushToReadBuffer(this.p39_1);
|
|
356
356
|
}
|
|
357
357
|
|
|
358
|
-
return this.
|
|
358
|
+
return this.p39_1.u38_1.i1().a2(toLong(this.q39_1)) >= 0;
|
|
359
359
|
case 4:
|
|
360
360
|
throw this.dc_1;
|
|
361
361
|
}
|
|
@@ -382,7 +382,7 @@ function $flushCOROUTINE$() {
|
|
|
382
382
|
class $ extends CoroutineImpl() {
|
|
383
383
|
constructor(_this__u8e3s4, resultContinuation) {
|
|
384
384
|
super(resultContinuation);
|
|
385
|
-
this.
|
|
385
|
+
this.g3a_1 = _this__u8e3s4;
|
|
386
386
|
}
|
|
387
387
|
ic() {
|
|
388
388
|
var suspendResult = this.cc_1;
|
|
@@ -392,17 +392,17 @@ function $flushCOROUTINE$() {
|
|
|
392
392
|
switch (tmp) {
|
|
393
393
|
case 0:
|
|
394
394
|
this.bc_1 = 4;
|
|
395
|
-
rethrowCloseCauseIfNeeded(this.
|
|
396
|
-
this.
|
|
397
|
-
if (this.
|
|
395
|
+
rethrowCloseCauseIfNeeded(this.g3a_1);
|
|
396
|
+
this.g3a_1.j3a();
|
|
397
|
+
if (this.g3a_1.r38_1 < 1048576)
|
|
398
398
|
return Unit_instance;
|
|
399
399
|
var tmp_0 = this;
|
|
400
|
-
tmp_0.
|
|
401
|
-
this.
|
|
400
|
+
tmp_0.h3a_1 = this.g3a_1;
|
|
401
|
+
this.i3a_1 = this.h3a_1;
|
|
402
402
|
this.ac_1 = 1;
|
|
403
403
|
continue $sm;
|
|
404
404
|
case 1:
|
|
405
|
-
if (!(this.
|
|
405
|
+
if (!(this.g3a_1.r38_1 >= 1048576 && this.g3a_1.w38_1.kotlinx$atomicfu$value == null)) {
|
|
406
406
|
this.ac_1 = 3;
|
|
407
407
|
continue $sm;
|
|
408
408
|
}
|
|
@@ -410,24 +410,24 @@ function $flushCOROUTINE$() {
|
|
|
410
410
|
this.ac_1 = 2;
|
|
411
411
|
var cancellable = new (CancellableContinuationImpl())(intercepted(this), 1);
|
|
412
412
|
cancellable.a23();
|
|
413
|
-
var tmp0 = this.
|
|
413
|
+
var tmp0 = this.i3a_1;
|
|
414
414
|
var tmp2 = new (Write())(cancellable);
|
|
415
415
|
l$ret$1: do {
|
|
416
|
-
var previous = tmp0.
|
|
416
|
+
var previous = tmp0.t38_1.kotlinx$atomicfu$value;
|
|
417
417
|
if (!(previous instanceof Closed())) {
|
|
418
|
-
if (!tmp0.
|
|
419
|
-
tmp2.
|
|
418
|
+
if (!tmp0.t38_1.atomicfu$compareAndSet(previous, tmp2)) {
|
|
419
|
+
tmp2.j38();
|
|
420
420
|
break l$ret$1;
|
|
421
421
|
}
|
|
422
422
|
}
|
|
423
423
|
if (previous instanceof Write()) {
|
|
424
|
-
previous.
|
|
424
|
+
previous.k38(ConcurrentIOException().x39(tmp2.i38(), previous.g38()));
|
|
425
425
|
} else {
|
|
426
426
|
if (isInterface(previous, Task())) {
|
|
427
|
-
previous.
|
|
427
|
+
previous.j38();
|
|
428
428
|
} else {
|
|
429
429
|
if (previous instanceof Closed()) {
|
|
430
|
-
tmp2.
|
|
430
|
+
tmp2.k38(previous.f38_1);
|
|
431
431
|
break l$ret$1;
|
|
432
432
|
} else {
|
|
433
433
|
if (!equals(previous, Empty_instance)) {
|
|
@@ -436,16 +436,16 @@ function $flushCOROUTINE$() {
|
|
|
436
436
|
}
|
|
437
437
|
}
|
|
438
438
|
}
|
|
439
|
-
if (!(this.
|
|
440
|
-
var current = tmp0.
|
|
439
|
+
if (!(this.g3a_1.r38_1 >= 1048576 && this.g3a_1.w38_1.kotlinx$atomicfu$value == null)) {
|
|
440
|
+
var current = tmp0.t38_1.kotlinx$atomicfu$value;
|
|
441
441
|
var tmp_1;
|
|
442
442
|
if (current instanceof Write()) {
|
|
443
|
-
tmp_1 = tmp0.
|
|
443
|
+
tmp_1 = tmp0.t38_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
444
444
|
} else {
|
|
445
445
|
tmp_1 = false;
|
|
446
446
|
}
|
|
447
447
|
if (tmp_1) {
|
|
448
|
-
current.
|
|
448
|
+
current.j38();
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
451
|
}
|
|
@@ -487,7 +487,7 @@ function $flushAndCloseCOROUTINE$() {
|
|
|
487
487
|
class $ extends CoroutineImpl() {
|
|
488
488
|
constructor(_this__u8e3s4, resultContinuation) {
|
|
489
489
|
super(resultContinuation);
|
|
490
|
-
this.
|
|
490
|
+
this.s3a_1 = _this__u8e3s4;
|
|
491
491
|
}
|
|
492
492
|
ic() {
|
|
493
493
|
var suspendResult = this.cc_1;
|
|
@@ -498,16 +498,16 @@ function $flushAndCloseCOROUTINE$() {
|
|
|
498
498
|
case 0:
|
|
499
499
|
this.bc_1 = 4;
|
|
500
500
|
var tmp_0 = this;
|
|
501
|
-
tmp_0.
|
|
502
|
-
this.
|
|
501
|
+
tmp_0.t3a_1 = this.s3a_1;
|
|
502
|
+
this.u3a_1 = this.t3a_1;
|
|
503
503
|
this.bc_1 = 2;
|
|
504
504
|
var tmp_1 = this;
|
|
505
|
-
tmp_1.
|
|
505
|
+
tmp_1.w3a_1 = Companion_instance;
|
|
506
506
|
var tmp_2 = this;
|
|
507
|
-
tmp_2.
|
|
508
|
-
this.
|
|
507
|
+
tmp_2.x3a_1 = this.u3a_1;
|
|
508
|
+
this.y3a_1 = this.x3a_1;
|
|
509
509
|
this.ac_1 = 1;
|
|
510
|
-
suspendResult = this.
|
|
510
|
+
suspendResult = this.y3a_1.z3a(this);
|
|
511
511
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
512
512
|
return suspendResult;
|
|
513
513
|
}
|
|
@@ -515,8 +515,8 @@ function $flushAndCloseCOROUTINE$() {
|
|
|
515
515
|
continue $sm;
|
|
516
516
|
case 1:
|
|
517
517
|
var tmp_3 = this;
|
|
518
|
-
this.
|
|
519
|
-
tmp_3.
|
|
518
|
+
this.w3a_1;
|
|
519
|
+
tmp_3.v3a_1 = _Result___init__impl__xyqfz8(Unit_instance);
|
|
520
520
|
this.bc_1 = 4;
|
|
521
521
|
this.ac_1 = 3;
|
|
522
522
|
continue $sm;
|
|
@@ -526,7 +526,7 @@ function $flushAndCloseCOROUTINE$() {
|
|
|
526
526
|
if (tmp_4 instanceof Error) {
|
|
527
527
|
var e = this.dc_1;
|
|
528
528
|
var tmp_5 = this;
|
|
529
|
-
tmp_5.
|
|
529
|
+
tmp_5.v3a_1 = _Result___init__impl__xyqfz8(createFailure(e));
|
|
530
530
|
this.ac_1 = 3;
|
|
531
531
|
continue $sm;
|
|
532
532
|
} else {
|
|
@@ -535,9 +535,9 @@ function $flushAndCloseCOROUTINE$() {
|
|
|
535
535
|
|
|
536
536
|
case 3:
|
|
537
537
|
this.bc_1 = 4;
|
|
538
|
-
if (!this.
|
|
538
|
+
if (!this.s3a_1.w38_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
539
539
|
return Unit_instance;
|
|
540
|
-
closeSlot(this.
|
|
540
|
+
closeSlot(this.s3a_1, null);
|
|
541
541
|
return Unit_instance;
|
|
542
542
|
case 4:
|
|
543
543
|
throw this.dc_1;
|
|
@@ -565,108 +565,108 @@ function ByteChannel() {
|
|
|
565
565
|
class $ {
|
|
566
566
|
constructor(autoFlush) {
|
|
567
567
|
autoFlush = autoFlush === VOID ? false : autoFlush;
|
|
568
|
-
this.
|
|
569
|
-
this.
|
|
570
|
-
this.
|
|
571
|
-
this.
|
|
572
|
-
this.
|
|
573
|
-
this.
|
|
574
|
-
this.
|
|
575
|
-
this.
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
var tmp0_safe_receiver = this.
|
|
568
|
+
this.p38_1 = autoFlush;
|
|
569
|
+
this.q38_1 = new (Buffer())();
|
|
570
|
+
this.r38_1 = 0;
|
|
571
|
+
this.s38_1 = new Object();
|
|
572
|
+
this.t38_1 = atomic$ref$1(Empty_instance);
|
|
573
|
+
this.u38_1 = new (Buffer())();
|
|
574
|
+
this.v38_1 = new (Buffer())();
|
|
575
|
+
this.w38_1 = atomic$ref$1(null);
|
|
576
|
+
}
|
|
577
|
+
a3b() {
|
|
578
|
+
var tmp0_safe_receiver = this.w38_1.kotlinx$atomicfu$value;
|
|
579
579
|
if (tmp0_safe_receiver == null)
|
|
580
580
|
null;
|
|
581
581
|
else {
|
|
582
|
-
tmp0_safe_receiver.
|
|
582
|
+
tmp0_safe_receiver.c3b(ClosedReadChannelException$_init_$ref_ix0089());
|
|
583
583
|
}
|
|
584
|
-
if (this.
|
|
584
|
+
if (this.u38_1.o2r()) {
|
|
585
585
|
moveFlushToReadBuffer(this);
|
|
586
586
|
}
|
|
587
|
-
return this.
|
|
587
|
+
return this.u38_1;
|
|
588
588
|
}
|
|
589
|
-
|
|
590
|
-
if (this.
|
|
591
|
-
var tmp0_safe_receiver = this.
|
|
589
|
+
d3b() {
|
|
590
|
+
if (this.e3b()) {
|
|
591
|
+
var tmp0_safe_receiver = this.w38_1.kotlinx$atomicfu$value;
|
|
592
592
|
var tmp;
|
|
593
593
|
if (tmp0_safe_receiver == null) {
|
|
594
594
|
tmp = null;
|
|
595
595
|
} else {
|
|
596
|
-
tmp = tmp0_safe_receiver.
|
|
596
|
+
tmp = tmp0_safe_receiver.c3b(ClosedWriteChannelException$_init_$ref_ef15ty());
|
|
597
597
|
}
|
|
598
598
|
if (tmp == null)
|
|
599
|
-
throw ClosedWriteChannelException().
|
|
599
|
+
throw ClosedWriteChannelException().g39();
|
|
600
600
|
}
|
|
601
|
-
return this.
|
|
601
|
+
return this.v38_1;
|
|
602
602
|
}
|
|
603
|
-
|
|
604
|
-
var tmp0_safe_receiver = this.
|
|
605
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
603
|
+
f3b() {
|
|
604
|
+
var tmp0_safe_receiver = this.w38_1.kotlinx$atomicfu$value;
|
|
605
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g3b();
|
|
606
606
|
}
|
|
607
|
-
|
|
608
|
-
return !(this.
|
|
607
|
+
e3b() {
|
|
608
|
+
return !(this.w38_1.kotlinx$atomicfu$value == null);
|
|
609
609
|
}
|
|
610
|
-
|
|
611
|
-
return !(this.
|
|
610
|
+
h3b() {
|
|
611
|
+
return !(this.f3b() == null) || (this.e3b() && this.r38_1 === 0 && this.u38_1.o2r());
|
|
612
612
|
}
|
|
613
|
-
|
|
613
|
+
i3b(min, $completion) {
|
|
614
614
|
var tmp = new ($awaitContentCOROUTINE$())(this, min, $completion);
|
|
615
615
|
tmp.cc_1 = Unit_instance;
|
|
616
616
|
tmp.dc_1 = null;
|
|
617
617
|
return tmp.ic();
|
|
618
618
|
}
|
|
619
|
-
|
|
619
|
+
z3a($completion) {
|
|
620
620
|
var tmp = new ($flushCOROUTINE$())(this, $completion);
|
|
621
621
|
tmp.cc_1 = Unit_instance;
|
|
622
622
|
tmp.dc_1 = null;
|
|
623
623
|
return tmp.ic();
|
|
624
624
|
}
|
|
625
|
-
|
|
626
|
-
if (this.
|
|
625
|
+
j3a() {
|
|
626
|
+
if (this.v38_1.o2r())
|
|
627
627
|
return Unit_instance;
|
|
628
628
|
// Inline function 'io.ktor.utils.io.locks.synchronized' call
|
|
629
|
-
this.
|
|
630
|
-
var count = this.
|
|
631
|
-
this.
|
|
632
|
-
this.
|
|
629
|
+
this.s38_1;
|
|
630
|
+
var count = this.v38_1.i1().c2();
|
|
631
|
+
this.q38_1.k2t(this.v38_1);
|
|
632
|
+
this.r38_1 = this.r38_1 + count | 0;
|
|
633
633
|
// Inline function 'io.ktor.utils.io.ByteChannel.resumeSlot' call
|
|
634
|
-
var current = this.
|
|
634
|
+
var current = this.t38_1.kotlinx$atomicfu$value;
|
|
635
635
|
var tmp;
|
|
636
636
|
if (current instanceof Read()) {
|
|
637
|
-
tmp = this.
|
|
637
|
+
tmp = this.t38_1.atomicfu$compareAndSet(current, Empty_instance);
|
|
638
638
|
} else {
|
|
639
639
|
tmp = false;
|
|
640
640
|
}
|
|
641
641
|
if (tmp) {
|
|
642
|
-
current.
|
|
642
|
+
current.j38();
|
|
643
643
|
}
|
|
644
644
|
}
|
|
645
645
|
v5() {
|
|
646
|
-
this.
|
|
647
|
-
if (!this.
|
|
646
|
+
this.j3a();
|
|
647
|
+
if (!this.w38_1.atomicfu$compareAndSet(null, get_CLOSED()))
|
|
648
648
|
return Unit_instance;
|
|
649
649
|
closeSlot(this, null);
|
|
650
650
|
}
|
|
651
|
-
|
|
651
|
+
k3b($completion) {
|
|
652
652
|
var tmp = new ($flushAndCloseCOROUTINE$())(this, $completion);
|
|
653
653
|
tmp.cc_1 = Unit_instance;
|
|
654
654
|
tmp.dc_1 = null;
|
|
655
655
|
return tmp.ic();
|
|
656
656
|
}
|
|
657
|
-
|
|
658
|
-
if (!(this.
|
|
657
|
+
l3b(cause) {
|
|
658
|
+
if (!(this.w38_1.kotlinx$atomicfu$value == null))
|
|
659
659
|
return Unit_instance;
|
|
660
660
|
var closedToken = new (CloseToken())(cause);
|
|
661
|
-
this.
|
|
662
|
-
var wrappedCause = closedToken.
|
|
661
|
+
this.w38_1.atomicfu$compareAndSet(null, closedToken);
|
|
662
|
+
var wrappedCause = closedToken.g3b();
|
|
663
663
|
closeSlot(this, wrappedCause);
|
|
664
664
|
}
|
|
665
665
|
toString() {
|
|
666
666
|
return 'ByteChannel[' + hashCode(this) + ']';
|
|
667
667
|
}
|
|
668
668
|
}
|
|
669
|
-
protoOf($).
|
|
669
|
+
protoOf($).j3b = awaitContent$default;
|
|
670
670
|
initMetadataForClass($, 'ByteChannel', ByteChannel, VOID, [ByteReadChannel()], [1, 0]);
|
|
671
671
|
ByteChannelClass = $;
|
|
672
672
|
}
|
|
@@ -676,10 +676,10 @@ var ConcurrentIOExceptionClass;
|
|
|
676
676
|
function ConcurrentIOException() {
|
|
677
677
|
if (ConcurrentIOExceptionClass === VOID) {
|
|
678
678
|
class $ extends IllegalStateException() {
|
|
679
|
-
static
|
|
679
|
+
static x39(taskName, cause) {
|
|
680
680
|
cause = cause === VOID ? null : cause;
|
|
681
681
|
var $this = this.ed('Concurrent ' + taskName + ' attempts', cause);
|
|
682
|
-
captureStack($this, $this.
|
|
682
|
+
captureStack($this, $this.w39_1);
|
|
683
683
|
return $this;
|
|
684
684
|
}
|
|
685
685
|
}
|
|
@@ -11,7 +11,7 @@ function ByteReadChannel(content, offset, length) {
|
|
|
11
11
|
length = length === VOID ? content.length : length;
|
|
12
12
|
// Inline function 'kotlin.also' call
|
|
13
13
|
var this_0 = new (Buffer())();
|
|
14
|
-
this_0.
|
|
14
|
+
this_0.b2t(content, offset, offset + length | 0);
|
|
15
15
|
var source = this_0;
|
|
16
16
|
return ByteReadChannel_0(source);
|
|
17
17
|
}
|