@attocash/commons-js 5.0.0 → 5.1.0
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-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-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/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/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- 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/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 +104 -104
- 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
|
@@ -30,8 +30,8 @@ function NodeDispatcher() {
|
|
|
30
30
|
super();
|
|
31
31
|
NodeDispatcher_instance = this;
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
process.nextTick(this.
|
|
33
|
+
u2o() {
|
|
34
|
+
process.nextTick(this.b2p_1.z2o_1);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
initMetadataForObject($, 'NodeDispatcher', VOID, VOID, VOID, [1]);
|
|
@@ -47,7 +47,7 @@ function NodeDispatcher_getInstance() {
|
|
|
47
47
|
}
|
|
48
48
|
function ScheduledMessageQueue$processQueue$lambda(this$0) {
|
|
49
49
|
return function () {
|
|
50
|
-
this$0.
|
|
50
|
+
this$0.f2p();
|
|
51
51
|
return Unit_instance;
|
|
52
52
|
};
|
|
53
53
|
}
|
|
@@ -57,18 +57,18 @@ function ScheduledMessageQueue() {
|
|
|
57
57
|
class $ extends MessageQueue() {
|
|
58
58
|
constructor(dispatcher) {
|
|
59
59
|
super();
|
|
60
|
-
this.
|
|
60
|
+
this.y2o_1 = dispatcher;
|
|
61
61
|
var tmp = this;
|
|
62
|
-
tmp.
|
|
62
|
+
tmp.z2o_1 = ScheduledMessageQueue$processQueue$lambda(this);
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
this.
|
|
64
|
+
g2p() {
|
|
65
|
+
this.y2o_1.u2o();
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
setTimeout(this.
|
|
67
|
+
h2p() {
|
|
68
|
+
setTimeout(this.z2o_1, 0);
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
setTimeout(this.
|
|
70
|
+
i2p(timeout) {
|
|
71
|
+
setTimeout(this.z2o_1, timeout);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
initMetadataForClass($, 'ScheduledMessageQueue');
|
|
@@ -82,9 +82,9 @@ function w3cSetTimeout(handler, timeout) {
|
|
|
82
82
|
function WindowMessageQueue$lambda(this$0) {
|
|
83
83
|
return function (event) {
|
|
84
84
|
var tmp;
|
|
85
|
-
if (event.source == this$0.
|
|
85
|
+
if (event.source == this$0.u2p_1 && event.data == this$0.v2p_1) {
|
|
86
86
|
event.stopPropagation();
|
|
87
|
-
this$0.
|
|
87
|
+
this$0.f2p();
|
|
88
88
|
tmp = Unit_instance;
|
|
89
89
|
}
|
|
90
90
|
return Unit_instance;
|
|
@@ -92,7 +92,7 @@ function WindowMessageQueue$lambda(this$0) {
|
|
|
92
92
|
}
|
|
93
93
|
function WindowMessageQueue$schedule$lambda(this$0) {
|
|
94
94
|
return function (it) {
|
|
95
|
-
this$0.
|
|
95
|
+
this$0.f2p();
|
|
96
96
|
return Unit_instance;
|
|
97
97
|
};
|
|
98
98
|
}
|
|
@@ -102,16 +102,16 @@ function WindowMessageQueue() {
|
|
|
102
102
|
class $ extends MessageQueue() {
|
|
103
103
|
constructor(window_0) {
|
|
104
104
|
super();
|
|
105
|
-
this.
|
|
106
|
-
this.
|
|
107
|
-
this.
|
|
105
|
+
this.u2p_1 = window_0;
|
|
106
|
+
this.v2p_1 = 'dispatchCoroutine';
|
|
107
|
+
this.u2p_1.addEventListener('message', WindowMessageQueue$lambda(this), true);
|
|
108
108
|
}
|
|
109
|
-
|
|
109
|
+
g2p() {
|
|
110
110
|
var tmp = Promise.resolve(Unit_instance);
|
|
111
111
|
tmp.then(WindowMessageQueue$schedule$lambda(this));
|
|
112
112
|
}
|
|
113
|
-
|
|
114
|
-
this.
|
|
113
|
+
h2p() {
|
|
114
|
+
this.u2p_1.postMessage(this.v2p_1, '*');
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
initMetadataForClass($, 'WindowMessageQueue');
|
|
@@ -140,8 +140,8 @@ function SetTimeoutDispatcher() {
|
|
|
140
140
|
super();
|
|
141
141
|
SetTimeoutDispatcher_instance = this;
|
|
142
142
|
}
|
|
143
|
-
|
|
144
|
-
this.
|
|
143
|
+
u2o() {
|
|
144
|
+
this.b2p_1.i2p(0);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
initMetadataForObject($, 'SetTimeoutDispatcher', VOID, VOID, VOID, [1]);
|
|
@@ -174,10 +174,10 @@ function SetTimeoutBasedDispatcher() {
|
|
|
174
174
|
class $ extends CoroutineDispatcher() {
|
|
175
175
|
constructor() {
|
|
176
176
|
super();
|
|
177
|
-
this.
|
|
177
|
+
this.b2p_1 = new (ScheduledMessageQueue())(this);
|
|
178
178
|
}
|
|
179
179
|
g25(context, block) {
|
|
180
|
-
this.
|
|
180
|
+
this.b2p_1.j2p(block);
|
|
181
181
|
}
|
|
182
182
|
q25(timeMillis, block, context) {
|
|
183
183
|
var handle = w3cSetTimeout(SetTimeoutBasedDispatcher$invokeOnTimeout$lambda(block), delayToInt(timeMillis));
|
|
@@ -198,21 +198,21 @@ function MessageQueue() {
|
|
|
198
198
|
if (MessageQueueClass === VOID) {
|
|
199
199
|
class $ {
|
|
200
200
|
constructor() {
|
|
201
|
-
this.
|
|
202
|
-
this.
|
|
203
|
-
this.
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
this.
|
|
207
|
-
if (!this.
|
|
208
|
-
this.
|
|
209
|
-
this.
|
|
201
|
+
this.c2p_1 = ArrayDeque().gk();
|
|
202
|
+
this.d2p_1 = 16;
|
|
203
|
+
this.e2p_1 = false;
|
|
204
|
+
}
|
|
205
|
+
j2p(element) {
|
|
206
|
+
this.k2p(element);
|
|
207
|
+
if (!this.e2p_1) {
|
|
208
|
+
this.e2p_1 = true;
|
|
209
|
+
this.g2p();
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
-
|
|
212
|
+
f2p() {
|
|
213
213
|
try {
|
|
214
214
|
// Inline function 'kotlin.repeat' call
|
|
215
|
-
var times = this.
|
|
215
|
+
var times = this.d2p_1;
|
|
216
216
|
var inductionVariable = 0;
|
|
217
217
|
if (inductionVariable < times)
|
|
218
218
|
do {
|
|
@@ -231,81 +231,81 @@ function MessageQueue() {
|
|
|
231
231
|
while (inductionVariable < times);
|
|
232
232
|
}finally {
|
|
233
233
|
if (this.j()) {
|
|
234
|
-
this.
|
|
234
|
+
this.e2p_1 = false;
|
|
235
235
|
} else {
|
|
236
|
-
this.
|
|
236
|
+
this.h2p();
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
239
|
}
|
|
240
|
-
|
|
241
|
-
return this.
|
|
240
|
+
k2p(element) {
|
|
241
|
+
return this.c2p_1.m(element);
|
|
242
242
|
}
|
|
243
243
|
m(element) {
|
|
244
|
-
return this.
|
|
244
|
+
return this.k2p((!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
|
|
245
245
|
}
|
|
246
|
-
|
|
247
|
-
this.
|
|
246
|
+
l2p(index, element) {
|
|
247
|
+
this.c2p_1.b3(index, element);
|
|
248
248
|
}
|
|
249
249
|
b3(index, element) {
|
|
250
|
-
return this.
|
|
250
|
+
return this.l2p(index, (!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
|
|
251
251
|
}
|
|
252
|
-
|
|
253
|
-
return this.
|
|
252
|
+
m2p(elements) {
|
|
253
|
+
return this.c2p_1.k1(elements);
|
|
254
254
|
}
|
|
255
255
|
k1(elements) {
|
|
256
|
-
return this.
|
|
256
|
+
return this.m2p(elements);
|
|
257
257
|
}
|
|
258
258
|
z2() {
|
|
259
|
-
this.
|
|
259
|
+
this.c2p_1.z2();
|
|
260
260
|
}
|
|
261
|
-
|
|
262
|
-
return this.
|
|
261
|
+
n2p(index, element) {
|
|
262
|
+
return this.c2p_1.a3(index, element);
|
|
263
263
|
}
|
|
264
264
|
a3(index, element) {
|
|
265
|
-
return this.
|
|
265
|
+
return this.n2p(index, (!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
|
|
266
266
|
}
|
|
267
267
|
c3(index) {
|
|
268
|
-
return this.
|
|
268
|
+
return this.c2p_1.c3(index);
|
|
269
269
|
}
|
|
270
270
|
n1(index) {
|
|
271
|
-
return this.
|
|
271
|
+
return this.c2p_1.n1(index);
|
|
272
272
|
}
|
|
273
273
|
t2(fromIndex, toIndex) {
|
|
274
|
-
return this.
|
|
274
|
+
return this.c2p_1.t2(fromIndex, toIndex);
|
|
275
275
|
}
|
|
276
276
|
j() {
|
|
277
|
-
return this.
|
|
277
|
+
return this.c2p_1.j();
|
|
278
278
|
}
|
|
279
|
-
|
|
280
|
-
return this.
|
|
279
|
+
o2p(element) {
|
|
280
|
+
return this.c2p_1.q2(element);
|
|
281
281
|
}
|
|
282
282
|
q2(element) {
|
|
283
283
|
if (!(!(element == null) ? isInterface(element, Runnable()) : false))
|
|
284
284
|
return false;
|
|
285
|
-
return this.
|
|
285
|
+
return this.o2p((!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
|
|
286
286
|
}
|
|
287
287
|
d1() {
|
|
288
|
-
return this.
|
|
288
|
+
return this.c2p_1.d1();
|
|
289
289
|
}
|
|
290
|
-
|
|
291
|
-
return this.
|
|
290
|
+
p2p(elements) {
|
|
291
|
+
return this.c2p_1.r2(elements);
|
|
292
292
|
}
|
|
293
293
|
r2(elements) {
|
|
294
|
-
return this.
|
|
294
|
+
return this.p2p(elements);
|
|
295
295
|
}
|
|
296
296
|
j1(index) {
|
|
297
|
-
return this.
|
|
297
|
+
return this.c2p_1.j1(index);
|
|
298
298
|
}
|
|
299
|
-
|
|
300
|
-
return this.
|
|
299
|
+
q2p(element) {
|
|
300
|
+
return this.c2p_1.s2(element);
|
|
301
301
|
}
|
|
302
302
|
s2(element) {
|
|
303
303
|
if (!(!(element == null) ? isInterface(element, Runnable()) : false))
|
|
304
304
|
return -1;
|
|
305
|
-
return this.
|
|
305
|
+
return this.q2p((!(element == null) ? isInterface(element, Runnable()) : false) ? element : THROW_CCE());
|
|
306
306
|
}
|
|
307
307
|
i1() {
|
|
308
|
-
return this.
|
|
308
|
+
return this.c2p_1.dk_1;
|
|
309
309
|
}
|
|
310
310
|
}
|
|
311
311
|
initMetadataForClass($, 'MessageQueue', VOID, VOID, [KtMutableList()]);
|
|
@@ -320,11 +320,11 @@ function WindowClearTimeout() {
|
|
|
320
320
|
constructor($outer, handle, $box) {
|
|
321
321
|
if ($box === VOID)
|
|
322
322
|
$box = {};
|
|
323
|
-
$box.
|
|
323
|
+
$box.d2q_1 = $outer;
|
|
324
324
|
super(handle, $box);
|
|
325
325
|
}
|
|
326
326
|
u21() {
|
|
327
|
-
w3cClearTimeout(this.
|
|
327
|
+
w3cClearTimeout(this.d2q_1.f2q_1, this.h2q_1);
|
|
328
328
|
}
|
|
329
329
|
}
|
|
330
330
|
initMetadataForClass($, 'WindowClearTimeout');
|
|
@@ -353,18 +353,18 @@ function WindowDispatcher() {
|
|
|
353
353
|
class $ extends CoroutineDispatcher() {
|
|
354
354
|
constructor(window_0) {
|
|
355
355
|
super();
|
|
356
|
-
this.
|
|
357
|
-
this.
|
|
356
|
+
this.f2q_1 = window_0;
|
|
357
|
+
this.g2q_1 = new (WindowMessageQueue())(this.f2q_1);
|
|
358
358
|
}
|
|
359
359
|
g25(context, block) {
|
|
360
|
-
return this.
|
|
360
|
+
return this.g2q_1.j2p(block);
|
|
361
361
|
}
|
|
362
362
|
p25(timeMillis, continuation) {
|
|
363
|
-
var handle = w3cSetTimeout_0(this.
|
|
363
|
+
var handle = w3cSetTimeout_0(this.f2q_1, WindowDispatcher$scheduleResumeAfterDelay$lambda(continuation, this), delayToInt(timeMillis));
|
|
364
364
|
invokeOnCancellation(continuation, new (WindowClearTimeout())(this, handle));
|
|
365
365
|
}
|
|
366
366
|
q25(timeMillis, block, context) {
|
|
367
|
-
var handle = w3cSetTimeout_0(this.
|
|
367
|
+
var handle = w3cSetTimeout_0(this.f2q_1, Runnable$run$ref(block), delayToInt(timeMillis));
|
|
368
368
|
return new (WindowClearTimeout())(this, handle);
|
|
369
369
|
}
|
|
370
370
|
}
|
|
@@ -382,16 +382,16 @@ function ClearTimeout() {
|
|
|
382
382
|
class $ {
|
|
383
383
|
constructor(handle, $box) {
|
|
384
384
|
boxApply(this, $box);
|
|
385
|
-
this.
|
|
385
|
+
this.h2q_1 = handle;
|
|
386
386
|
}
|
|
387
387
|
u21() {
|
|
388
|
-
w3cClearTimeout_0(this.
|
|
388
|
+
w3cClearTimeout_0(this.h2q_1);
|
|
389
389
|
}
|
|
390
390
|
t21(cause) {
|
|
391
391
|
this.u21();
|
|
392
392
|
}
|
|
393
393
|
toString() {
|
|
394
|
-
return 'ClearTimeout[' + this.
|
|
394
|
+
return 'ClearTimeout[' + this.h2q_1 + ']';
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
initMetadataForClass($, 'ClearTimeout', VOID, VOID, [CancelHandler()]);
|
|
@@ -1,34 +1,65 @@
|
|
|
1
1
|
import { Unit_instance1fbcbse1fwigr as Unit_instance } from '../../../../kotlin-kotlin-stdlib/kotlin/Unit.mjs';
|
|
2
|
-
import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
|
|
3
|
-
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
4
2
|
import { AbortFlowException2zdgh4w7z3hep as AbortFlowException } from './internal/FlowExceptions.mjs';
|
|
3
|
+
import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
|
|
4
|
+
import { FlowCollector26clgpmzihvke as FlowCollector } from './FlowCollector.mjs';
|
|
5
5
|
import {
|
|
6
|
-
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
7
6
|
initMetadataForClassbxx6q50dy2s7 as initMetadataForClass,
|
|
7
|
+
initMetadataForCoroutine1i7lbatuf5bnt as initMetadataForCoroutine,
|
|
8
8
|
} from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
|
|
9
9
|
import { VOID3gxj6tk5isa35 as VOID } from '../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
10
|
+
import { CoroutineImpl2sn3kjnwmfr10 as CoroutineImpl } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs';
|
|
11
|
+
import { get_COROUTINE_SUSPENDED3ujt3p13qm4iy as get_COROUTINE_SUSPENDED } from '../../../../kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/Intrinsics.mjs';
|
|
12
|
+
import { get_NULL2w9d0rq01h4d4 as get_NULL } from './internal/NullSurrogate.mjs';
|
|
12
13
|
import { checkOwnershipoyid8o0pxxr7 as checkOwnership } from './internal/FlowExceptions.common.mjs';
|
|
13
14
|
import { ensureActive2yo7199srjlgl as ensureActive } from '../Job.mjs';
|
|
15
|
+
import { NoSuchElementException679xzhnp5bpj as NoSuchElementException } from '../../../../kotlin-kotlin-stdlib/kotlin/exceptions.mjs';
|
|
14
16
|
//region block: imports
|
|
15
17
|
//endregion
|
|
16
18
|
//region block: pre-declaration
|
|
17
19
|
//endregion
|
|
20
|
+
function first(_this__u8e3s4, $completion) {
|
|
21
|
+
var tmp = new ($firstCOROUTINE$())(_this__u8e3s4, $completion);
|
|
22
|
+
tmp.cc_1 = Unit_instance;
|
|
23
|
+
tmp.dc_1 = null;
|
|
24
|
+
return tmp.ic();
|
|
25
|
+
}
|
|
18
26
|
function firstOrNull(_this__u8e3s4, predicate, $completion) {
|
|
19
27
|
var tmp = new ($firstOrNullCOROUTINE$())(_this__u8e3s4, predicate, $completion);
|
|
20
28
|
tmp.cc_1 = Unit_instance;
|
|
21
29
|
tmp.dc_1 = null;
|
|
22
30
|
return tmp.ic();
|
|
23
31
|
}
|
|
32
|
+
var first$$inlined$collectWhile$1Class;
|
|
33
|
+
function first$$inlined$collectWhile$1() {
|
|
34
|
+
if (first$$inlined$collectWhile$1Class === VOID) {
|
|
35
|
+
class $ {
|
|
36
|
+
constructor($result) {
|
|
37
|
+
this.v2m_1 = $result;
|
|
38
|
+
}
|
|
39
|
+
w2m(value, $completion) {
|
|
40
|
+
this.v2m_1._v = value;
|
|
41
|
+
if (!false) {
|
|
42
|
+
throw AbortFlowException().x2m(this);
|
|
43
|
+
}
|
|
44
|
+
return Unit_instance;
|
|
45
|
+
}
|
|
46
|
+
w2k(value, $completion) {
|
|
47
|
+
return this.w2m((value == null ? true : !(value == null)) ? value : THROW_CCE(), $completion);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
initMetadataForClass($, VOID, VOID, VOID, [FlowCollector()], [1]);
|
|
51
|
+
first$$inlined$collectWhile$1Class = $;
|
|
52
|
+
}
|
|
53
|
+
return first$$inlined$collectWhile$1Class;
|
|
54
|
+
}
|
|
24
55
|
var $emitCOROUTINE$Class;
|
|
25
56
|
function $emitCOROUTINE$() {
|
|
26
57
|
if ($emitCOROUTINE$Class === VOID) {
|
|
27
58
|
class $ extends CoroutineImpl() {
|
|
28
59
|
constructor(_this__u8e3s4, value, resultContinuation) {
|
|
29
60
|
super(resultContinuation);
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
61
|
+
this.g2n_1 = _this__u8e3s4;
|
|
62
|
+
this.h2n_1 = value;
|
|
32
63
|
}
|
|
33
64
|
ic() {
|
|
34
65
|
var suspendResult = this.cc_1;
|
|
@@ -39,10 +70,10 @@ function $emitCOROUTINE$() {
|
|
|
39
70
|
case 0:
|
|
40
71
|
this.bc_1 = 4;
|
|
41
72
|
var tmp_0 = this;
|
|
42
|
-
tmp_0.
|
|
43
|
-
this.
|
|
73
|
+
tmp_0.i2n_1 = this.h2n_1;
|
|
74
|
+
this.j2n_1 = this.i2n_1;
|
|
44
75
|
this.ac_1 = 1;
|
|
45
|
-
suspendResult = this.
|
|
76
|
+
suspendResult = this.g2n_1.l2n_1(this.j2n_1, this);
|
|
46
77
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
47
78
|
return suspendResult;
|
|
48
79
|
}
|
|
@@ -51,21 +82,21 @@ function $emitCOROUTINE$() {
|
|
|
51
82
|
case 1:
|
|
52
83
|
if (suspendResult) {
|
|
53
84
|
var tmp_1 = this;
|
|
54
|
-
this.
|
|
55
|
-
tmp_1.
|
|
85
|
+
this.g2n_1.m2n_1._v = this.j2n_1;
|
|
86
|
+
tmp_1.k2n_1 = false;
|
|
56
87
|
this.ac_1 = 2;
|
|
57
88
|
continue $sm;
|
|
58
89
|
} else {
|
|
59
90
|
var tmp_2 = this;
|
|
60
|
-
tmp_2.
|
|
91
|
+
tmp_2.k2n_1 = true;
|
|
61
92
|
this.ac_1 = 2;
|
|
62
93
|
continue $sm;
|
|
63
94
|
}
|
|
64
95
|
|
|
65
96
|
case 2:
|
|
66
|
-
var ARGUMENT = this.
|
|
97
|
+
var ARGUMENT = this.k2n_1;
|
|
67
98
|
if (!ARGUMENT) {
|
|
68
|
-
throw AbortFlowException().x2m(this.
|
|
99
|
+
throw AbortFlowException().x2m(this.g2n_1);
|
|
69
100
|
} else {
|
|
70
101
|
this.ac_1 = 3;
|
|
71
102
|
continue $sm;
|
|
@@ -98,17 +129,17 @@ function firstOrNull$$inlined$collectWhile$1() {
|
|
|
98
129
|
if (firstOrNull$$inlined$collectWhile$1Class === VOID) {
|
|
99
130
|
class $ {
|
|
100
131
|
constructor($predicate, $result) {
|
|
101
|
-
this.
|
|
102
|
-
this.
|
|
132
|
+
this.l2n_1 = $predicate;
|
|
133
|
+
this.m2n_1 = $result;
|
|
103
134
|
}
|
|
104
|
-
|
|
135
|
+
w2m(value, $completion) {
|
|
105
136
|
var tmp = new ($emitCOROUTINE$())(this, value, $completion);
|
|
106
137
|
tmp.cc_1 = Unit_instance;
|
|
107
138
|
tmp.dc_1 = null;
|
|
108
139
|
return tmp.ic();
|
|
109
140
|
}
|
|
110
141
|
w2k(value, $completion) {
|
|
111
|
-
return this.
|
|
142
|
+
return this.w2m((value == null ? true : !(value == null)) ? value : THROW_CCE(), $completion);
|
|
112
143
|
}
|
|
113
144
|
}
|
|
114
145
|
initMetadataForClass($, VOID, VOID, VOID, [FlowCollector()], [1]);
|
|
@@ -116,14 +147,87 @@ function firstOrNull$$inlined$collectWhile$1() {
|
|
|
116
147
|
}
|
|
117
148
|
return firstOrNull$$inlined$collectWhile$1Class;
|
|
118
149
|
}
|
|
150
|
+
var $firstCOROUTINE$Class;
|
|
151
|
+
function $firstCOROUTINE$() {
|
|
152
|
+
if ($firstCOROUTINE$Class === VOID) {
|
|
153
|
+
class $ extends CoroutineImpl() {
|
|
154
|
+
constructor(_this__u8e3s4, resultContinuation) {
|
|
155
|
+
super(resultContinuation);
|
|
156
|
+
this.c2m_1 = _this__u8e3s4;
|
|
157
|
+
}
|
|
158
|
+
ic() {
|
|
159
|
+
var suspendResult = this.cc_1;
|
|
160
|
+
$sm: do
|
|
161
|
+
try {
|
|
162
|
+
var tmp = this.ac_1;
|
|
163
|
+
switch (tmp) {
|
|
164
|
+
case 0:
|
|
165
|
+
this.bc_1 = 3;
|
|
166
|
+
this.d2m_1 = {_v: get_NULL()};
|
|
167
|
+
var tmp_0 = this;
|
|
168
|
+
tmp_0.e2m_1 = this.c2m_1;
|
|
169
|
+
this.f2m_1 = this.e2m_1;
|
|
170
|
+
var tmp_1 = this;
|
|
171
|
+
tmp_1.g2m_1 = new (first$$inlined$collectWhile$1())(this.d2m_1);
|
|
172
|
+
this.bc_1 = 2;
|
|
173
|
+
this.ac_1 = 1;
|
|
174
|
+
suspendResult = this.f2m_1.c2k(this.g2m_1, this);
|
|
175
|
+
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
176
|
+
return suspendResult;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
continue $sm;
|
|
180
|
+
case 1:
|
|
181
|
+
this.bc_1 = 3;
|
|
182
|
+
this.ac_1 = 4;
|
|
183
|
+
continue $sm;
|
|
184
|
+
case 2:
|
|
185
|
+
this.bc_1 = 3;
|
|
186
|
+
var tmp_2 = this.dc_1;
|
|
187
|
+
if (tmp_2 instanceof AbortFlowException()) {
|
|
188
|
+
var e = this.dc_1;
|
|
189
|
+
checkOwnership(e, this.g2m_1);
|
|
190
|
+
ensureActive(this.gc());
|
|
191
|
+
this.ac_1 = 4;
|
|
192
|
+
continue $sm;
|
|
193
|
+
} else {
|
|
194
|
+
throw this.dc_1;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
case 3:
|
|
198
|
+
throw this.dc_1;
|
|
199
|
+
case 4:
|
|
200
|
+
this.bc_1 = 3;
|
|
201
|
+
if (this.d2m_1._v === get_NULL())
|
|
202
|
+
throw NoSuchElementException().q('Expected at least one element');
|
|
203
|
+
var tmp_3 = this.d2m_1._v;
|
|
204
|
+
return (tmp_3 == null ? true : !(tmp_3 == null)) ? tmp_3 : THROW_CCE();
|
|
205
|
+
}
|
|
206
|
+
} catch ($p) {
|
|
207
|
+
var e_0 = $p;
|
|
208
|
+
if (this.bc_1 === 3) {
|
|
209
|
+
throw e_0;
|
|
210
|
+
} else {
|
|
211
|
+
this.ac_1 = this.bc_1;
|
|
212
|
+
this.dc_1 = e_0;
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
while (true);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
initMetadataForCoroutine($);
|
|
219
|
+
$firstCOROUTINE$Class = $;
|
|
220
|
+
}
|
|
221
|
+
return $firstCOROUTINE$Class;
|
|
222
|
+
}
|
|
119
223
|
var $firstOrNullCOROUTINE$Class;
|
|
120
224
|
function $firstOrNullCOROUTINE$() {
|
|
121
225
|
if ($firstOrNullCOROUTINE$Class === VOID) {
|
|
122
226
|
class $ extends CoroutineImpl() {
|
|
123
227
|
constructor(_this__u8e3s4, predicate, resultContinuation) {
|
|
124
228
|
super(resultContinuation);
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
229
|
+
this.p2m_1 = _this__u8e3s4;
|
|
230
|
+
this.q2m_1 = predicate;
|
|
127
231
|
}
|
|
128
232
|
ic() {
|
|
129
233
|
var suspendResult = this.cc_1;
|
|
@@ -133,15 +237,15 @@ function $firstOrNullCOROUTINE$() {
|
|
|
133
237
|
switch (tmp) {
|
|
134
238
|
case 0:
|
|
135
239
|
this.bc_1 = 4;
|
|
136
|
-
this.
|
|
240
|
+
this.r2m_1 = {_v: null};
|
|
137
241
|
var tmp_0 = this;
|
|
138
|
-
tmp_0.
|
|
139
|
-
this.
|
|
242
|
+
tmp_0.s2m_1 = this.p2m_1;
|
|
243
|
+
this.t2m_1 = this.s2m_1;
|
|
140
244
|
var tmp_1 = this;
|
|
141
|
-
tmp_1.
|
|
245
|
+
tmp_1.u2m_1 = new (firstOrNull$$inlined$collectWhile$1())(this.q2m_1, this.r2m_1);
|
|
142
246
|
this.bc_1 = 2;
|
|
143
247
|
this.ac_1 = 1;
|
|
144
|
-
suspendResult = this.
|
|
248
|
+
suspendResult = this.t2m_1.c2k(this.u2m_1, this);
|
|
145
249
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
146
250
|
return suspendResult;
|
|
147
251
|
}
|
|
@@ -156,7 +260,7 @@ function $firstOrNullCOROUTINE$() {
|
|
|
156
260
|
var tmp_2 = this.dc_1;
|
|
157
261
|
if (tmp_2 instanceof AbortFlowException()) {
|
|
158
262
|
var e = this.dc_1;
|
|
159
|
-
checkOwnership(e, this.
|
|
263
|
+
checkOwnership(e, this.u2m_1);
|
|
160
264
|
ensureActive(this.gc());
|
|
161
265
|
this.ac_1 = 3;
|
|
162
266
|
continue $sm;
|
|
@@ -166,7 +270,7 @@ function $firstOrNullCOROUTINE$() {
|
|
|
166
270
|
|
|
167
271
|
case 3:
|
|
168
272
|
this.bc_1 = 4;
|
|
169
|
-
return this.
|
|
273
|
+
return this.r2m_1._v;
|
|
170
274
|
case 4:
|
|
171
275
|
throw this.dc_1;
|
|
172
276
|
}
|
|
@@ -190,6 +294,7 @@ function $firstOrNullCOROUTINE$() {
|
|
|
190
294
|
//region block: exports
|
|
191
295
|
export {
|
|
192
296
|
firstOrNull as firstOrNull3jjcu7fygcopr,
|
|
297
|
+
first as firstvh3bah3c9r20,
|
|
193
298
|
};
|
|
194
299
|
//endregion
|
|
195
300
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/flow/terminal/Reduce.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/flow/terminal/Reduce.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["first","<this>","$completion","firstOrNull","predicate","$result","emit","value","doResume","$predicate","e"],"mappings":";;;;;;;;;;;;;;;;;;;cAqFAA,CAAuBC,a,EAAvBC,WAAAF,EAA0C;A;;;;AAQ1C,C;oBAqCAG,CAAuBF,a,EAAoBG,S,EAA3CF,WAAAC,EAAkF;A;;;;AAWlF,C;;;;;kBAvDIE,O;;;SA8DqBC,CACjBC,K,EADiBL,WAAAI,EACP;A,QA7DV,gBAsEgE,K;QAAX,KArErD,KAqEqD,C,CAAmB;A,UAAkB,+BAEvF,IAFuF,C;QAErE,C;QAAU,oB;MAAA,C;UAhIdC,K,EAAxBL,W;;;;;;;;;;;;;kBAoHwB,a,EACjB,K,EADiB,kB;;;;;QAAAM,CAAAA,EAAA;A;;UAAA,I;;;;;;mCAU+C,K;;;gCAzB5D,sBAAU,KAAV,O;;;;;;;;;kBACA,2BAAS,K;gCACT,K;;;;;gCAEA,I;;;;;;;gBAqBiD,c;kBAAqC,oCAEvF,KAFuF,C;;;;;;;gBAE3D,oB;;;;;;;;;;;;;;MAAA,C;;;;;;;;;;;kBA9BIC,U,EACvCJ,O;;;;SAiBqBC,CACjBC,K,EADiBL,WAAAI,EACP;A;;;;MAWqB,C;UAhIdC,K,EAAxBL,W;;;;;;;;;;;;;kBAqDsB,a,EAAvB,kB;;;;QAAAM,CAAAA,EAAA;A;;UAAA,I;;;;;gBACI,aAAmB,gB;;mCACnB,K;;;gBA2D+B,yDAAgB,KAAhB,C;;;gCAepB,oBAAQ,KAAR,O;;;;;;;;;;;;;;sBAERE,a;kBAES,eAAF,CAAE,OAEL,KAFK,C;kBAEmH,aAvIhI,SAuIgI,C;;;;;;;;;;;gBA5E3H,sBAAW,UAAX,C;kBAAiB,iCAA6B,+BAA7B,C;iCACd,K,CAAA,E;mEAAA,K;;;;;;;;;;;;MACX,C;;;;;;;;;;;kBAqCuB,a,EAAoB,S,EAA3C,kB;;;;;QAAAF,CAAAA,EAAA;A;;UAAA,I;;;;;gBACI,aAAiB,U;;mCACjB,K;;;gBAc+B,+DAAgB,KAAhB,OAAgB,KAAhB,C;;;gCAepB,oBAAQ,KAAR,O;;;;;;;;;;;;;;sBAERE,a;kBAES,eAAF,CAAE,OAEL,KAFK,C;kBAEmH,aAvIhI,SAuIgI,C;;;;;;;;;4BA3BxH,K,CAAA,E;;;;;;;;;;;;;;MACX,C;;;;;;;;;;;"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Symbol17xuwzgi5g8ve as Symbol } from '../../internal/Symbol.mjs';
|
|
2
|
+
//region block: imports
|
|
3
|
+
//endregion
|
|
4
|
+
//region block: pre-declaration
|
|
5
|
+
//endregion
|
|
6
|
+
function get_NULL() {
|
|
7
|
+
_init_properties_NullSurrogate_kt__n2yti9();
|
|
8
|
+
return NULL;
|
|
9
|
+
}
|
|
10
|
+
var NULL;
|
|
11
|
+
var UNINITIALIZED;
|
|
12
|
+
var DONE;
|
|
13
|
+
var properties_initialized_NullSurrogate_kt_39v8bl;
|
|
14
|
+
function _init_properties_NullSurrogate_kt__n2yti9() {
|
|
15
|
+
if (!properties_initialized_NullSurrogate_kt_39v8bl) {
|
|
16
|
+
properties_initialized_NullSurrogate_kt_39v8bl = true;
|
|
17
|
+
NULL = new (Symbol())('NULL');
|
|
18
|
+
UNINITIALIZED = new (Symbol())('UNINITIALIZED');
|
|
19
|
+
DONE = new (Symbol())('DONE');
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
//region block: exports
|
|
23
|
+
export {
|
|
24
|
+
get_NULL as get_NULL2w9d0rq01h4d4,
|
|
25
|
+
};
|
|
26
|
+
//endregion
|
|
27
|
+
|
|
28
|
+
//# sourceMappingURL=NullSurrogate.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../../../mnt/agent/work/44ec6e850d5c63f0/kotlinx-coroutines-core/common/src/flow/internal/NullSurrogate.kt"],"sourcesContent":[null],"ignoreList":[],"x_google_ignoreList":[],"names":["<get-NULL>","<init properties NullSurrogate.kt>"],"mappings":";;;;;iBAUAA,CAAAA,EAAA;A;EAAA,W;AACgB,C;;;;;kDAXhBC,CAAAA,E;;;0BAW2B,M;mCAOS,e;0BAOT,M;;C;;;;;"}
|
package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs
CHANGED
|
@@ -34,7 +34,7 @@ function handleUncaughtCoroutineException(context, exception) {
|
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
try {
|
|
37
|
-
addSuppressed(exception, DiagnosticCoroutineContextException().
|
|
37
|
+
addSuppressed(exception, DiagnosticCoroutineContextException().q2n(context));
|
|
38
38
|
} catch ($p) {
|
|
39
39
|
if ($p instanceof Error) {
|
|
40
40
|
var e = $p;
|
package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs
CHANGED
|
@@ -26,9 +26,9 @@ var DiagnosticCoroutineContextExceptionClass;
|
|
|
26
26
|
function DiagnosticCoroutineContextException() {
|
|
27
27
|
if (DiagnosticCoroutineContextExceptionClass === VOID) {
|
|
28
28
|
class $ extends RuntimeException() {
|
|
29
|
-
static
|
|
29
|
+
static q2n(context) {
|
|
30
30
|
var $this = this.ha(toString(context));
|
|
31
|
-
captureStack($this, $this.
|
|
31
|
+
captureStack($this, $this.p2n_1);
|
|
32
32
|
return $this;
|
|
33
33
|
}
|
|
34
34
|
}
|