@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
|
@@ -62,7 +62,7 @@ function DispatchedContinuation() {
|
|
|
62
62
|
d22() {
|
|
63
63
|
return !(this.a22_1.kotlinx$atomicfu$value == null);
|
|
64
64
|
}
|
|
65
|
-
|
|
65
|
+
r2n() {
|
|
66
66
|
// Inline function 'kotlinx.atomicfu.loop' call
|
|
67
67
|
var this_0 = this.a22_1;
|
|
68
68
|
while (true) {
|
|
@@ -71,7 +71,7 @@ function DispatchedContinuation() {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
h25() {
|
|
74
|
-
this.
|
|
74
|
+
this.r2n();
|
|
75
75
|
var tmp0_safe_receiver = _get_reusableCancellableContinuation__9qex09(this);
|
|
76
76
|
if (tmp0_safe_receiver == null)
|
|
77
77
|
null;
|
|
@@ -221,7 +221,7 @@ function safeDispatch(_this__u8e3s4, context, runnable) {
|
|
|
221
221
|
} catch ($p) {
|
|
222
222
|
if ($p instanceof Error) {
|
|
223
223
|
var e = $p;
|
|
224
|
-
throw DispatchException().
|
|
224
|
+
throw DispatchException().s2n(e, _this__u8e3s4, context);
|
|
225
225
|
} else {
|
|
226
226
|
throw $p;
|
|
227
227
|
}
|
|
@@ -234,7 +234,7 @@ function safeIsDispatchNeeded(_this__u8e3s4, context) {
|
|
|
234
234
|
} catch ($p) {
|
|
235
235
|
if ($p instanceof Error) {
|
|
236
236
|
var e = $p;
|
|
237
|
-
throw DispatchException().
|
|
237
|
+
throw DispatchException().s2n(e, _this__u8e3s4, context);
|
|
238
238
|
} else {
|
|
239
239
|
throw $p;
|
|
240
240
|
}
|
|
@@ -27,7 +27,7 @@ function LockFreeLinkedListNode() {
|
|
|
27
27
|
var prev = this.l24_1;
|
|
28
28
|
var tmp;
|
|
29
29
|
if (prev instanceof ListClosed()) {
|
|
30
|
-
tmp = ((prev.
|
|
30
|
+
tmp = ((prev.t2q_1 & permissionsBitmask) === 0 && prev.n24(node, permissionsBitmask));
|
|
31
31
|
} else {
|
|
32
32
|
node.k24_1 = this;
|
|
33
33
|
node.l24_1 = prev;
|
|
@@ -68,7 +68,7 @@ function ListClosed() {
|
|
|
68
68
|
class $ extends LockFreeLinkedListNode() {
|
|
69
69
|
constructor(forbiddenElementsBitmask) {
|
|
70
70
|
super();
|
|
71
|
-
this.
|
|
71
|
+
this.t2q_1 = forbiddenElementsBitmask;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
initMetadataForClass($, 'ListClosed');
|
|
@@ -23,9 +23,9 @@ var UndeliveredElementExceptionClass;
|
|
|
23
23
|
function UndeliveredElementException() {
|
|
24
24
|
if (UndeliveredElementExceptionClass === VOID) {
|
|
25
25
|
class $ extends RuntimeException() {
|
|
26
|
-
static
|
|
26
|
+
static w2n(message, cause) {
|
|
27
27
|
var $this = this.we(message, cause);
|
|
28
|
-
captureStack($this, $this.
|
|
28
|
+
captureStack($this, $this.v2n_1);
|
|
29
29
|
return $this;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
@@ -44,7 +44,7 @@ function callUndeliveredElementCatchingException(_this__u8e3s4, element, undeliv
|
|
|
44
44
|
if (!(undeliveredElementException == null) && !(undeliveredElementException.cause === ex)) {
|
|
45
45
|
addSuppressed(undeliveredElementException, ex);
|
|
46
46
|
} else {
|
|
47
|
-
return UndeliveredElementException().
|
|
47
|
+
return UndeliveredElementException().w2n('Exception in undelivered element handler for ' + toString(element), ex);
|
|
48
48
|
}
|
|
49
49
|
} else {
|
|
50
50
|
throw $p;
|
|
@@ -15,13 +15,13 @@ function ContextScope() {
|
|
|
15
15
|
if (ContextScopeClass === VOID) {
|
|
16
16
|
class $ {
|
|
17
17
|
constructor(context) {
|
|
18
|
-
this.
|
|
18
|
+
this.x2n_1 = context;
|
|
19
19
|
}
|
|
20
20
|
s1x() {
|
|
21
|
-
return this.
|
|
21
|
+
return this.x2n_1;
|
|
22
22
|
}
|
|
23
23
|
toString() {
|
|
24
|
-
return 'CoroutineScope(coroutineContext=' + toString(this.
|
|
24
|
+
return 'CoroutineScope(coroutineContext=' + toString(this.x2n_1) + ')';
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
initMetadataForClass($, 'ContextScope', VOID, VOID, [CoroutineScope()]);
|
|
@@ -9,10 +9,10 @@ function Symbol() {
|
|
|
9
9
|
if (SymbolClass === VOID) {
|
|
10
10
|
class $ {
|
|
11
11
|
constructor(symbol) {
|
|
12
|
-
this.
|
|
12
|
+
this.y2n_1 = symbol;
|
|
13
13
|
}
|
|
14
14
|
toString() {
|
|
15
|
-
return '<' + this.
|
|
15
|
+
return '<' + this.y2n_1 + '>';
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
initMetadataForClass($, 'Symbol');
|
|
@@ -66,7 +66,7 @@ function trySelectInternal($this, clauseObject, internalResult) {
|
|
|
66
66
|
tmp = tmp0_elvis_lhs;
|
|
67
67
|
}
|
|
68
68
|
var clause = tmp;
|
|
69
|
-
var onCancellation = clause.
|
|
69
|
+
var onCancellation = clause.d2o($this, internalResult);
|
|
70
70
|
if ($this.c2f_1.atomicfu$compareAndSet(curState, clause)) {
|
|
71
71
|
var cont = isInterface(curState, CancellableContinuation()) ? curState : THROW_CCE();
|
|
72
72
|
$this.e2f_1 = internalResult;
|
|
@@ -122,7 +122,7 @@ function findClause($this, clauseObject) {
|
|
|
122
122
|
var _iterator__ex2g4s = clauses.d1();
|
|
123
123
|
while (_iterator__ex2g4s.e1()) {
|
|
124
124
|
var element = _iterator__ex2g4s.f1();
|
|
125
|
-
if (element.
|
|
125
|
+
if (element.a2o_1 === clauseObject) {
|
|
126
126
|
tmp$ret$1 = element;
|
|
127
127
|
break $l$block;
|
|
128
128
|
}
|
|
@@ -143,9 +143,9 @@ var ClauseDataClass;
|
|
|
143
143
|
function ClauseData() {
|
|
144
144
|
if (ClauseDataClass === VOID) {
|
|
145
145
|
class $ {
|
|
146
|
-
|
|
147
|
-
var tmp0_safe_receiver = this.
|
|
148
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(select, this.
|
|
146
|
+
d2o(select, internalResult) {
|
|
147
|
+
var tmp0_safe_receiver = this.c2o_1;
|
|
148
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver(select, this.b2o_1, internalResult);
|
|
149
149
|
}
|
|
150
150
|
}
|
|
151
151
|
initMetadataForClass($, 'ClauseData', VOID, VOID, VOID, [1]);
|
|
@@ -104,26 +104,26 @@ function acquireSlowPath($this, $completion) {
|
|
|
104
104
|
}
|
|
105
105
|
function decPermits($this) {
|
|
106
106
|
$l$loop: while (true) {
|
|
107
|
-
var p = $this.
|
|
108
|
-
if (p > $this.
|
|
107
|
+
var p = $this.j2o_1.atomicfu$getAndDecrement();
|
|
108
|
+
if (p > $this.e2o_1)
|
|
109
109
|
continue $l$loop;
|
|
110
110
|
return p;
|
|
111
111
|
}
|
|
112
112
|
}
|
|
113
113
|
function coerceAvailablePermitsAtMaximum($this) {
|
|
114
114
|
$l$loop_0: while (true) {
|
|
115
|
-
var cur = $this.
|
|
116
|
-
if (cur <= $this.
|
|
115
|
+
var cur = $this.j2o_1.kotlinx$atomicfu$value;
|
|
116
|
+
if (cur <= $this.e2o_1)
|
|
117
117
|
break $l$loop_0;
|
|
118
|
-
if ($this.
|
|
118
|
+
if ($this.j2o_1.atomicfu$compareAndSet(cur, $this.e2o_1))
|
|
119
119
|
break $l$loop_0;
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
function addAcquireToQueue($this, waiter) {
|
|
123
|
-
var curTail = $this.
|
|
124
|
-
var enqIdx = $this.
|
|
123
|
+
var curTail = $this.h2o_1.kotlinx$atomicfu$value;
|
|
124
|
+
var enqIdx = $this.i2o_1.atomicfu$getAndIncrement$long();
|
|
125
125
|
var createNewSegment = createSegment$ref();
|
|
126
|
-
var tmp0 = $this.
|
|
126
|
+
var tmp0 = $this.h2o_1;
|
|
127
127
|
// Inline function 'kotlin.Long.div' call
|
|
128
128
|
var other = get_SEGMENT_SIZE();
|
|
129
129
|
var tmp2 = enqIdx.s3(toLong(other));
|
|
@@ -176,21 +176,21 @@ function addAcquireToQueue($this, waiter) {
|
|
|
176
176
|
var other_0 = get_SEGMENT_SIZE();
|
|
177
177
|
var i = enqIdx.t3(toLong(other_0)).c2();
|
|
178
178
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
179
|
-
if (segment.
|
|
179
|
+
if (segment.r2o_1.atomicfu$get(i).atomicfu$compareAndSet(null, waiter)) {
|
|
180
180
|
waiter.n23(segment, i);
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
183
|
var tmp4 = get_PERMIT();
|
|
184
184
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
185
185
|
var value = get_TAKEN();
|
|
186
|
-
if (segment.
|
|
186
|
+
if (segment.r2o_1.atomicfu$get(i).atomicfu$compareAndSet(tmp4, value)) {
|
|
187
187
|
if (isInterface(waiter, CancellableContinuation())) {
|
|
188
188
|
if (!isInterface(waiter, CancellableContinuation()))
|
|
189
189
|
THROW_CCE();
|
|
190
|
-
waiter.k21(Unit_instance, $this.
|
|
190
|
+
waiter.k21(Unit_instance, $this.k2o_1);
|
|
191
191
|
} else {
|
|
192
192
|
if (isInterface(waiter, SelectInstance())) {
|
|
193
|
-
waiter.
|
|
193
|
+
waiter.z2n(Unit_instance);
|
|
194
194
|
} else {
|
|
195
195
|
// Inline function 'kotlin.error' call
|
|
196
196
|
var message = 'unexpected: ' + toString(waiter);
|
|
@@ -203,13 +203,13 @@ function addAcquireToQueue($this, waiter) {
|
|
|
203
203
|
return false;
|
|
204
204
|
}
|
|
205
205
|
function tryResumeNextFromQueue($this) {
|
|
206
|
-
var curHead = $this.
|
|
207
|
-
var deqIdx = $this.
|
|
206
|
+
var curHead = $this.f2o_1.kotlinx$atomicfu$value;
|
|
207
|
+
var deqIdx = $this.g2o_1.atomicfu$getAndIncrement$long();
|
|
208
208
|
// Inline function 'kotlin.Long.div' call
|
|
209
209
|
var other = get_SEGMENT_SIZE();
|
|
210
210
|
var id = deqIdx.s3(toLong(other));
|
|
211
211
|
var createNewSegment = createSegment$ref_0();
|
|
212
|
-
var tmp0 = $this.
|
|
212
|
+
var tmp0 = $this.f2o_1;
|
|
213
213
|
var tmp$ret$3;
|
|
214
214
|
$l$block_2: {
|
|
215
215
|
// Inline function 'kotlinx.coroutines.internal.findSegmentAndMoveForward' call
|
|
@@ -263,7 +263,7 @@ function tryResumeNextFromQueue($this) {
|
|
|
263
263
|
var i = deqIdx.t3(toLong(other_0)).c2();
|
|
264
264
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.getAndSet' call
|
|
265
265
|
var value = get_PERMIT();
|
|
266
|
-
var cellState = segment.
|
|
266
|
+
var cellState = segment.r2o_1.atomicfu$get(i).atomicfu$getAndSet(value);
|
|
267
267
|
if (cellState === null) {
|
|
268
268
|
// Inline function 'kotlin.repeat' call
|
|
269
269
|
var times = get_MAX_SPIN_CYCLES();
|
|
@@ -273,14 +273,14 @@ function tryResumeNextFromQueue($this) {
|
|
|
273
273
|
var index = inductionVariable;
|
|
274
274
|
inductionVariable = inductionVariable + 1 | 0;
|
|
275
275
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.get' call
|
|
276
|
-
if (segment.
|
|
276
|
+
if (segment.r2o_1.atomicfu$get(i).kotlinx$atomicfu$value === get_TAKEN())
|
|
277
277
|
return true;
|
|
278
278
|
}
|
|
279
279
|
while (inductionVariable < times);
|
|
280
280
|
var tmp4 = get_PERMIT();
|
|
281
281
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.cas' call
|
|
282
282
|
var value_0 = get_BROKEN();
|
|
283
|
-
return !segment.
|
|
283
|
+
return !segment.r2o_1.atomicfu$get(i).atomicfu$compareAndSet(tmp4, value_0);
|
|
284
284
|
} else if (cellState === get_CANCELLED())
|
|
285
285
|
return false;
|
|
286
286
|
else
|
|
@@ -291,7 +291,7 @@ function tryResumeAcquire($this, _this__u8e3s4) {
|
|
|
291
291
|
if (isInterface(_this__u8e3s4, CancellableContinuation())) {
|
|
292
292
|
if (!isInterface(_this__u8e3s4, CancellableContinuation()))
|
|
293
293
|
THROW_CCE();
|
|
294
|
-
var token = _this__u8e3s4.g21(Unit_instance, null, $this.
|
|
294
|
+
var token = _this__u8e3s4.g21(Unit_instance, null, $this.k2o_1);
|
|
295
295
|
var tmp_0;
|
|
296
296
|
if (!(token == null)) {
|
|
297
297
|
_this__u8e3s4.h21(token);
|
|
@@ -312,7 +312,7 @@ function tryResumeAcquire($this, _this__u8e3s4) {
|
|
|
312
312
|
}
|
|
313
313
|
function SemaphoreAndMutexImpl$onCancellationRelease$lambda(this$0) {
|
|
314
314
|
return function (_unused_var__etf5q3, _unused_var__etf5q3_0, _unused_var__etf5q3_1) {
|
|
315
|
-
this$0.
|
|
315
|
+
this$0.m2o();
|
|
316
316
|
return Unit_instance;
|
|
317
317
|
};
|
|
318
318
|
}
|
|
@@ -335,27 +335,27 @@ function SemaphoreAndMutexImpl() {
|
|
|
335
335
|
if (SemaphoreAndMutexImplClass === VOID) {
|
|
336
336
|
class $ {
|
|
337
337
|
constructor(permits, acquiredPermits) {
|
|
338
|
-
this.
|
|
339
|
-
this.
|
|
340
|
-
this.
|
|
338
|
+
this.e2o_1 = permits;
|
|
339
|
+
this.g2o_1 = atomic$long$1(new (Long())(0, 0));
|
|
340
|
+
this.i2o_1 = atomic$long$1(new (Long())(0, 0));
|
|
341
341
|
// Inline function 'kotlin.require' call
|
|
342
|
-
if (!(this.
|
|
343
|
-
var message = 'Semaphore should have at least 1 permit, but had ' + this.
|
|
342
|
+
if (!(this.e2o_1 > 0)) {
|
|
343
|
+
var message = 'Semaphore should have at least 1 permit, but had ' + this.e2o_1;
|
|
344
344
|
throw IllegalArgumentException().u(toString(message));
|
|
345
345
|
}
|
|
346
346
|
// Inline function 'kotlin.require' call
|
|
347
|
-
if (!(0 <= acquiredPermits ? acquiredPermits <= this.
|
|
348
|
-
var message_0 = 'The number of acquired permits should be in 0..' + this.
|
|
347
|
+
if (!(0 <= acquiredPermits ? acquiredPermits <= this.e2o_1 : false)) {
|
|
348
|
+
var message_0 = 'The number of acquired permits should be in 0..' + this.e2o_1;
|
|
349
349
|
throw IllegalArgumentException().u(toString(message_0));
|
|
350
350
|
}
|
|
351
351
|
var s = new (SemaphoreSegment())(new (Long())(0, 0), null, 2);
|
|
352
|
-
this.
|
|
353
|
-
this.
|
|
354
|
-
this.
|
|
352
|
+
this.f2o_1 = atomic$ref$1(s);
|
|
353
|
+
this.h2o_1 = atomic$ref$1(s);
|
|
354
|
+
this.j2o_1 = atomic$int$1(this.e2o_1 - acquiredPermits | 0);
|
|
355
355
|
var tmp = this;
|
|
356
|
-
tmp.
|
|
356
|
+
tmp.k2o_1 = SemaphoreAndMutexImpl$onCancellationRelease$lambda(this);
|
|
357
357
|
}
|
|
358
|
-
|
|
358
|
+
l2o($completion) {
|
|
359
359
|
var p = decPermits(this);
|
|
360
360
|
if (p > 0)
|
|
361
361
|
return Unit_instance;
|
|
@@ -368,7 +368,7 @@ function SemaphoreAndMutexImpl() {
|
|
|
368
368
|
while (true) {
|
|
369
369
|
var p = decPermits(this);
|
|
370
370
|
if (p > 0) {
|
|
371
|
-
waiter.k21(Unit_instance, this.
|
|
371
|
+
waiter.k21(Unit_instance, this.k2o_1);
|
|
372
372
|
tmp$ret$1 = Unit_instance;
|
|
373
373
|
break $l$block_0;
|
|
374
374
|
}
|
|
@@ -381,13 +381,13 @@ function SemaphoreAndMutexImpl() {
|
|
|
381
381
|
}
|
|
382
382
|
return tmp$ret$1;
|
|
383
383
|
}
|
|
384
|
-
|
|
384
|
+
m2o() {
|
|
385
385
|
while (true) {
|
|
386
|
-
var p = this.
|
|
387
|
-
if (p >= this.
|
|
386
|
+
var p = this.j2o_1.atomicfu$getAndIncrement();
|
|
387
|
+
if (p >= this.e2o_1) {
|
|
388
388
|
coerceAvailablePermitsAtMaximum(this);
|
|
389
389
|
// Inline function 'kotlin.error' call
|
|
390
|
-
var message = 'The number of released permits cannot be greater than ' + this.
|
|
390
|
+
var message = 'The number of released permits cannot be greater than ' + this.e2o_1;
|
|
391
391
|
throw IllegalStateException().o4(toString(message));
|
|
392
392
|
}
|
|
393
393
|
if (p >= 0)
|
|
@@ -408,7 +408,7 @@ function SemaphoreSegment() {
|
|
|
408
408
|
class $ extends Segment() {
|
|
409
409
|
constructor(id, prev, pointers) {
|
|
410
410
|
super(id, prev, pointers);
|
|
411
|
-
this.
|
|
411
|
+
this.r2o_1 = atomicfu$AtomicRefArray$ofNulls(get_SEGMENT_SIZE());
|
|
412
412
|
}
|
|
413
413
|
z2b() {
|
|
414
414
|
return get_SEGMENT_SIZE();
|
|
@@ -416,7 +416,7 @@ function SemaphoreSegment() {
|
|
|
416
416
|
k22(index, cause, context) {
|
|
417
417
|
// Inline function 'kotlinx.coroutines.sync.SemaphoreSegment.set' call
|
|
418
418
|
var value = get_CANCELLED();
|
|
419
|
-
this.
|
|
419
|
+
this.r2o_1.atomicfu$get(index).kotlinx$atomicfu$value = value;
|
|
420
420
|
this.w2c();
|
|
421
421
|
}
|
|
422
422
|
toString() {
|
|
@@ -36,11 +36,11 @@ function Companion() {
|
|
|
36
36
|
class $ {
|
|
37
37
|
constructor() {
|
|
38
38
|
Companion_instance = this;
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
39
|
+
this.u2q_1 = ByteString().y2q(new Int8Array(0), null);
|
|
40
|
+
this.v2q_1 = toCharArray('0123456789abcdef');
|
|
41
41
|
}
|
|
42
|
-
|
|
43
|
-
return ByteString().
|
|
42
|
+
z2q(byteArray) {
|
|
43
|
+
return ByteString().y2q(byteArray, null);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
initMetadataForCompanion($);
|
|
@@ -58,21 +58,21 @@ var ByteStringClass;
|
|
|
58
58
|
function ByteString() {
|
|
59
59
|
if (ByteStringClass === VOID) {
|
|
60
60
|
class $ {
|
|
61
|
-
static
|
|
61
|
+
static y2q(data, dummy) {
|
|
62
62
|
Companion_getInstance();
|
|
63
63
|
var $this = createThis(this);
|
|
64
|
-
$this.
|
|
65
|
-
$this.
|
|
64
|
+
$this.w2q_1 = data;
|
|
65
|
+
$this.x2q_1 = 0;
|
|
66
66
|
return $this;
|
|
67
67
|
}
|
|
68
|
-
static
|
|
68
|
+
static a2r(data, startIndex, endIndex) {
|
|
69
69
|
Companion_getInstance();
|
|
70
70
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
71
71
|
endIndex = endIndex === VOID ? data.length : endIndex;
|
|
72
|
-
return this.
|
|
72
|
+
return this.y2q(copyOfRange(data, startIndex, endIndex), null);
|
|
73
73
|
}
|
|
74
74
|
i1() {
|
|
75
|
-
return this.
|
|
75
|
+
return this.w2q_1.length;
|
|
76
76
|
}
|
|
77
77
|
equals(other) {
|
|
78
78
|
if (this === other)
|
|
@@ -81,43 +81,43 @@ function ByteString() {
|
|
|
81
81
|
return false;
|
|
82
82
|
if (!(other instanceof ByteString()))
|
|
83
83
|
THROW_CCE();
|
|
84
|
-
if (!(other.
|
|
84
|
+
if (!(other.w2q_1.length === this.w2q_1.length))
|
|
85
85
|
return false;
|
|
86
|
-
if (!(other.
|
|
86
|
+
if (!(other.x2q_1 === 0) && !(this.x2q_1 === 0) && !(other.x2q_1 === this.x2q_1))
|
|
87
87
|
return false;
|
|
88
|
-
return contentEquals(this.
|
|
88
|
+
return contentEquals(this.w2q_1, other.w2q_1);
|
|
89
89
|
}
|
|
90
90
|
hashCode() {
|
|
91
|
-
var hc = this.
|
|
91
|
+
var hc = this.x2q_1;
|
|
92
92
|
if (hc === 0) {
|
|
93
|
-
hc = contentHashCode(this.
|
|
94
|
-
this.
|
|
93
|
+
hc = contentHashCode(this.w2q_1);
|
|
94
|
+
this.x2q_1 = hc;
|
|
95
95
|
}
|
|
96
96
|
return hc;
|
|
97
97
|
}
|
|
98
98
|
j1(index) {
|
|
99
99
|
if (index < 0 || index >= this.i1())
|
|
100
100
|
throw IndexOutOfBoundsException().hf('index (' + index + ') is out of byte string bounds: [0..' + this.i1() + ')');
|
|
101
|
-
return this.
|
|
101
|
+
return this.w2q_1[index];
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
b2r(startIndex, endIndex) {
|
|
104
104
|
var tmp;
|
|
105
105
|
if (startIndex === endIndex) {
|
|
106
|
-
tmp = Companion_getInstance().
|
|
106
|
+
tmp = Companion_getInstance().u2q_1;
|
|
107
107
|
} else {
|
|
108
|
-
tmp = ByteString().
|
|
108
|
+
tmp = ByteString().a2r(this.w2q_1, startIndex, endIndex);
|
|
109
109
|
}
|
|
110
110
|
return tmp;
|
|
111
111
|
}
|
|
112
|
-
|
|
112
|
+
c2r(startIndex, endIndex, $super) {
|
|
113
113
|
endIndex = endIndex === VOID ? this.i1() : endIndex;
|
|
114
|
-
return $super === VOID ? this.
|
|
114
|
+
return $super === VOID ? this.b2r(startIndex, endIndex) : $super.b2r.call(this, startIndex, endIndex);
|
|
115
115
|
}
|
|
116
|
-
|
|
116
|
+
d2r(other) {
|
|
117
117
|
if (other === this)
|
|
118
118
|
return 0;
|
|
119
|
-
var localData = this.
|
|
120
|
-
var otherData = other.
|
|
119
|
+
var localData = this.w2q_1;
|
|
120
|
+
var otherData = other.w2q_1;
|
|
121
121
|
var inductionVariable = 0;
|
|
122
122
|
var tmp0 = this.i1();
|
|
123
123
|
// Inline function 'kotlin.math.min' call
|
|
@@ -146,7 +146,7 @@ function ByteString() {
|
|
|
146
146
|
return compareTo(this.i1(), other.i1());
|
|
147
147
|
}
|
|
148
148
|
d(other) {
|
|
149
|
-
return this.
|
|
149
|
+
return this.d2r(other instanceof ByteString() ? other : THROW_CCE());
|
|
150
150
|
}
|
|
151
151
|
toString() {
|
|
152
152
|
if (isEmpty(this)) {
|
|
@@ -159,7 +159,7 @@ function ByteString() {
|
|
|
159
159
|
$this$with.jb('ByteString(size=');
|
|
160
160
|
$this$with.jb(sizeStr);
|
|
161
161
|
$this$with.jb(' hex=');
|
|
162
|
-
var localData = this.
|
|
162
|
+
var localData = this.w2q_1;
|
|
163
163
|
var inductionVariable = 0;
|
|
164
164
|
var last = this.i1();
|
|
165
165
|
if (inductionVariable < last)
|
|
@@ -167,14 +167,14 @@ function ByteString() {
|
|
|
167
167
|
var i = inductionVariable;
|
|
168
168
|
inductionVariable = inductionVariable + 1 | 0;
|
|
169
169
|
var b = localData[i];
|
|
170
|
-
$this$with.kb(Companion_getInstance().
|
|
171
|
-
$this$with.kb(Companion_getInstance().
|
|
170
|
+
$this$with.kb(Companion_getInstance().v2q_1[(b >>> 4 | 0) & 15]);
|
|
171
|
+
$this$with.kb(Companion_getInstance().v2q_1[b & 15]);
|
|
172
172
|
}
|
|
173
173
|
while (inductionVariable < last);
|
|
174
174
|
return $this$with.kb(_Char___init__impl__6a9atx(41)).toString();
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
return this.
|
|
176
|
+
e2r() {
|
|
177
|
+
return this.w2q_1;
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
initMetadataForClass($, 'ByteString', VOID, VOID, [Comparable()]);
|
|
@@ -186,9 +186,9 @@ function ByteString_0(bytes) {
|
|
|
186
186
|
var tmp;
|
|
187
187
|
// Inline function 'kotlin.collections.isEmpty' call
|
|
188
188
|
if (bytes.length === 0) {
|
|
189
|
-
tmp = Companion_getInstance().
|
|
189
|
+
tmp = Companion_getInstance().u2q_1;
|
|
190
190
|
} else {
|
|
191
|
-
tmp = Companion_getInstance().
|
|
191
|
+
tmp = Companion_getInstance().z2q(bytes);
|
|
192
192
|
}
|
|
193
193
|
return tmp;
|
|
194
194
|
}
|
|
@@ -196,7 +196,7 @@ function isEmpty(_this__u8e3s4) {
|
|
|
196
196
|
return _this__u8e3s4.i1() === 0;
|
|
197
197
|
}
|
|
198
198
|
function decodeToString_0(_this__u8e3s4) {
|
|
199
|
-
return decodeToString(_this__u8e3s4.
|
|
199
|
+
return decodeToString(_this__u8e3s4.e2r());
|
|
200
200
|
}
|
|
201
201
|
//region block: exports
|
|
202
202
|
export {
|
package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs
CHANGED
|
@@ -9,8 +9,8 @@ var UnsafeByteStringOperationsClass;
|
|
|
9
9
|
function UnsafeByteStringOperations() {
|
|
10
10
|
if (UnsafeByteStringOperationsClass === VOID) {
|
|
11
11
|
class $ {
|
|
12
|
-
|
|
13
|
-
return Companion_getInstance().
|
|
12
|
+
f2r(array) {
|
|
13
|
+
return Companion_getInstance().z2q(array);
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
initMetadataForObject($, 'UnsafeByteStringOperations');
|
|
@@ -7,52 +7,52 @@ import { VOID3gxj6tk5isa35 as VOID } from '../../../kotlin-kotlin-stdlib/kotlin/
|
|
|
7
7
|
//region block: pre-declaration
|
|
8
8
|
//endregion
|
|
9
9
|
function init_kotlinx_io_IOException(_this__u8e3s4) {
|
|
10
|
-
captureStack(_this__u8e3s4, _this__u8e3s4.
|
|
10
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.x2u_1);
|
|
11
11
|
}
|
|
12
12
|
var IOExceptionClass;
|
|
13
13
|
function IOException() {
|
|
14
14
|
if (IOExceptionClass === VOID) {
|
|
15
15
|
class $ extends Exception() {
|
|
16
|
-
static
|
|
16
|
+
static y2u() {
|
|
17
17
|
var $this = this.qe();
|
|
18
18
|
init_kotlinx_io_IOException($this);
|
|
19
19
|
return $this;
|
|
20
20
|
}
|
|
21
|
-
static
|
|
21
|
+
static z2u(message) {
|
|
22
22
|
var $this = this.g5(message);
|
|
23
23
|
init_kotlinx_io_IOException($this);
|
|
24
24
|
return $this;
|
|
25
25
|
}
|
|
26
|
-
static
|
|
26
|
+
static a2v(message, cause) {
|
|
27
27
|
var $this = this.re(message, cause);
|
|
28
28
|
init_kotlinx_io_IOException($this);
|
|
29
29
|
return $this;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
initMetadataForClass($, 'IOException', $.
|
|
32
|
+
initMetadataForClass($, 'IOException', $.y2u);
|
|
33
33
|
IOExceptionClass = $;
|
|
34
34
|
}
|
|
35
35
|
return IOExceptionClass;
|
|
36
36
|
}
|
|
37
37
|
function init_kotlinx_io_EOFException(_this__u8e3s4) {
|
|
38
|
-
captureStack(_this__u8e3s4, _this__u8e3s4.
|
|
38
|
+
captureStack(_this__u8e3s4, _this__u8e3s4.l2r_1);
|
|
39
39
|
}
|
|
40
40
|
var EOFExceptionClass;
|
|
41
41
|
function EOFException() {
|
|
42
42
|
if (EOFExceptionClass === VOID) {
|
|
43
43
|
class $ extends IOException() {
|
|
44
|
-
static
|
|
45
|
-
var $this = this.
|
|
44
|
+
static b2v() {
|
|
45
|
+
var $this = this.y2u();
|
|
46
46
|
init_kotlinx_io_EOFException($this);
|
|
47
47
|
return $this;
|
|
48
48
|
}
|
|
49
|
-
static
|
|
50
|
-
var $this = this.
|
|
49
|
+
static m2r(message) {
|
|
50
|
+
var $this = this.z2u(message);
|
|
51
51
|
init_kotlinx_io_EOFException($this);
|
|
52
52
|
return $this;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
|
-
initMetadataForClass($, 'EOFException', $.
|
|
55
|
+
initMetadataForClass($, 'EOFException', $.b2v);
|
|
56
56
|
EOFExceptionClass = $;
|
|
57
57
|
}
|
|
58
58
|
return EOFExceptionClass;
|