@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
|
@@ -86,7 +86,7 @@ function DiscriminatorHolder() {
|
|
|
86
86
|
if (DiscriminatorHolderClass === VOID) {
|
|
87
87
|
class $ {
|
|
88
88
|
constructor(discriminatorToSkip) {
|
|
89
|
-
this.
|
|
89
|
+
this.o6o_1 = discriminatorToSkip;
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
initMetadataForClass($, 'DiscriminatorHolder');
|
|
@@ -97,8 +97,8 @@ function DiscriminatorHolder() {
|
|
|
97
97
|
function trySkip($this, _this__u8e3s4, unknownKey) {
|
|
98
98
|
if (_this__u8e3s4 == null)
|
|
99
99
|
return false;
|
|
100
|
-
if (_this__u8e3s4.
|
|
101
|
-
_this__u8e3s4.
|
|
100
|
+
if (_this__u8e3s4.o6o_1 === unknownKey) {
|
|
101
|
+
_this__u8e3s4.o6o_1 = null;
|
|
102
102
|
return true;
|
|
103
103
|
}
|
|
104
104
|
return false;
|
|
@@ -108,55 +108,55 @@ function skipLeftoverElements($this, descriptor) {
|
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
110
|
function checkLeadingComma($this) {
|
|
111
|
-
if ($this.
|
|
112
|
-
$this.
|
|
111
|
+
if ($this.t6g_1.b6n() === 4) {
|
|
112
|
+
$this.t6g_1.i6l('Unexpected leading comma');
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
function decodeMapIndex($this) {
|
|
116
116
|
var hasComma = false;
|
|
117
|
-
var decodingKey = !(($this.
|
|
117
|
+
var decodingKey = !(($this.v6g_1 % 2 | 0) === 0);
|
|
118
118
|
if (decodingKey) {
|
|
119
|
-
if (!($this.
|
|
120
|
-
hasComma = $this.
|
|
119
|
+
if (!($this.v6g_1 === -1)) {
|
|
120
|
+
hasComma = $this.t6g_1.q6o();
|
|
121
121
|
}
|
|
122
122
|
} else {
|
|
123
|
-
$this.
|
|
123
|
+
$this.t6g_1.p6o(_Char___init__impl__6a9atx(58));
|
|
124
124
|
}
|
|
125
125
|
var tmp;
|
|
126
|
-
if ($this.
|
|
126
|
+
if ($this.t6g_1.c6n()) {
|
|
127
127
|
if (decodingKey) {
|
|
128
|
-
if ($this.
|
|
129
|
-
var tmp0 = $this.
|
|
128
|
+
if ($this.v6g_1 === -1) {
|
|
129
|
+
var tmp0 = $this.t6g_1;
|
|
130
130
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
131
131
|
var condition = !hasComma;
|
|
132
|
-
var position = tmp0.
|
|
132
|
+
var position = tmp0.z6g_1;
|
|
133
133
|
if (!condition) {
|
|
134
134
|
var tmp$ret$0 = 'Unexpected leading comma';
|
|
135
|
-
tmp0.
|
|
135
|
+
tmp0.i6l(tmp$ret$0, position);
|
|
136
136
|
}
|
|
137
137
|
} else {
|
|
138
|
-
var tmp0_0 = $this.
|
|
138
|
+
var tmp0_0 = $this.t6g_1;
|
|
139
139
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
140
140
|
var condition_0 = hasComma;
|
|
141
|
-
var position_0 = tmp0_0.
|
|
141
|
+
var position_0 = tmp0_0.z6g_1;
|
|
142
142
|
if (!condition_0) {
|
|
143
143
|
var tmp$ret$2 = 'Expected comma after the key-value pair';
|
|
144
|
-
tmp0_0.
|
|
144
|
+
tmp0_0.i6l(tmp$ret$2, position_0);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
|
-
$this.
|
|
149
|
-
tmp = $this.
|
|
148
|
+
$this.v6g_1 = $this.v6g_1 + 1 | 0;
|
|
149
|
+
tmp = $this.v6g_1;
|
|
150
150
|
} else {
|
|
151
|
-
if (hasComma && !$this.
|
|
152
|
-
invalidTrailingComma($this.
|
|
151
|
+
if (hasComma && !$this.r6g_1.n6g_1.l6i_1) {
|
|
152
|
+
invalidTrailingComma($this.t6g_1);
|
|
153
153
|
}
|
|
154
154
|
tmp = -1;
|
|
155
155
|
}
|
|
156
156
|
return tmp;
|
|
157
157
|
}
|
|
158
158
|
function coerceInputValue($this, descriptor, index) {
|
|
159
|
-
var tmp0 = $this.
|
|
159
|
+
var tmp0 = $this.r6g_1;
|
|
160
160
|
var tmp$ret$1;
|
|
161
161
|
$l$block_2: {
|
|
162
162
|
// Inline function 'kotlinx.serialization.json.internal.tryCoerceValue' call
|
|
@@ -164,7 +164,7 @@ function coerceInputValue($this, descriptor, index) {
|
|
|
164
164
|
var elementDescriptor = descriptor.vv(index);
|
|
165
165
|
var tmp;
|
|
166
166
|
if (isOptional && !elementDescriptor.kv()) {
|
|
167
|
-
tmp = $this.
|
|
167
|
+
tmp = $this.t6g_1.r6o(true);
|
|
168
168
|
} else {
|
|
169
169
|
tmp = false;
|
|
170
170
|
}
|
|
@@ -175,7 +175,7 @@ function coerceInputValue($this, descriptor, index) {
|
|
|
175
175
|
if (equals(elementDescriptor.ov(), ENUM_getInstance())) {
|
|
176
176
|
var tmp_0;
|
|
177
177
|
if (elementDescriptor.kv()) {
|
|
178
|
-
tmp_0 = $this.
|
|
178
|
+
tmp_0 = $this.t6g_1.r6o(false);
|
|
179
179
|
} else {
|
|
180
180
|
tmp_0 = false;
|
|
181
181
|
}
|
|
@@ -183,7 +183,7 @@ function coerceInputValue($this, descriptor, index) {
|
|
|
183
183
|
tmp$ret$1 = false;
|
|
184
184
|
break $l$block_2;
|
|
185
185
|
}
|
|
186
|
-
var tmp0_elvis_lhs = $this.
|
|
186
|
+
var tmp0_elvis_lhs = $this.t6g_1.s6o($this.x6g_1.z6h_1);
|
|
187
187
|
var tmp_1;
|
|
188
188
|
if (tmp0_elvis_lhs == null) {
|
|
189
189
|
tmp$ret$1 = false;
|
|
@@ -193,9 +193,9 @@ function coerceInputValue($this, descriptor, index) {
|
|
|
193
193
|
}
|
|
194
194
|
var enumValue = tmp_1;
|
|
195
195
|
var enumIndex = getJsonNameIndex(elementDescriptor, tmp0, enumValue);
|
|
196
|
-
var coerceToNull = !tmp0.
|
|
196
|
+
var coerceToNull = !tmp0.n6g_1.c6i_1 && elementDescriptor.kv();
|
|
197
197
|
if (enumIndex === -3 && (isOptional || coerceToNull)) {
|
|
198
|
-
$this.
|
|
198
|
+
$this.t6g_1.d6n();
|
|
199
199
|
tmp$ret$1 = true;
|
|
200
200
|
break $l$block_2;
|
|
201
201
|
}
|
|
@@ -205,24 +205,24 @@ function coerceInputValue($this, descriptor, index) {
|
|
|
205
205
|
return tmp$ret$1;
|
|
206
206
|
}
|
|
207
207
|
function decodeObjectIndex($this, descriptor) {
|
|
208
|
-
var hasComma = $this.
|
|
209
|
-
while ($this.
|
|
208
|
+
var hasComma = $this.t6g_1.q6o();
|
|
209
|
+
while ($this.t6g_1.c6n()) {
|
|
210
210
|
hasComma = false;
|
|
211
211
|
var key = decodeStringKey($this);
|
|
212
|
-
$this.
|
|
213
|
-
var index = getJsonNameIndex(descriptor, $this.
|
|
212
|
+
$this.t6g_1.p6o(_Char___init__impl__6a9atx(58));
|
|
213
|
+
var index = getJsonNameIndex(descriptor, $this.r6g_1, key);
|
|
214
214
|
var tmp;
|
|
215
215
|
if (!(index === -3)) {
|
|
216
216
|
var tmp_0;
|
|
217
|
-
if ($this.
|
|
218
|
-
hasComma = $this.
|
|
217
|
+
if ($this.x6g_1.e6i_1 && coerceInputValue($this, descriptor, index)) {
|
|
218
|
+
hasComma = $this.t6g_1.q6o();
|
|
219
219
|
tmp_0 = false;
|
|
220
220
|
} else {
|
|
221
|
-
var tmp0_safe_receiver = $this.
|
|
221
|
+
var tmp0_safe_receiver = $this.y6g_1;
|
|
222
222
|
if (tmp0_safe_receiver == null)
|
|
223
223
|
null;
|
|
224
224
|
else {
|
|
225
|
-
tmp0_safe_receiver.
|
|
225
|
+
tmp0_safe_receiver.f6l(index);
|
|
226
226
|
}
|
|
227
227
|
return index;
|
|
228
228
|
}
|
|
@@ -235,34 +235,34 @@ function decodeObjectIndex($this, descriptor) {
|
|
|
235
235
|
hasComma = handleUnknown($this, descriptor, key);
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
if (hasComma && !$this.
|
|
239
|
-
invalidTrailingComma($this.
|
|
238
|
+
if (hasComma && !$this.r6g_1.n6g_1.l6i_1) {
|
|
239
|
+
invalidTrailingComma($this.t6g_1);
|
|
240
240
|
}
|
|
241
|
-
var tmp1_safe_receiver = $this.
|
|
242
|
-
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.
|
|
241
|
+
var tmp1_safe_receiver = $this.y6g_1;
|
|
242
|
+
var tmp2_elvis_lhs = tmp1_safe_receiver == null ? null : tmp1_safe_receiver.g6l();
|
|
243
243
|
return tmp2_elvis_lhs == null ? -1 : tmp2_elvis_lhs;
|
|
244
244
|
}
|
|
245
245
|
function handleUnknown($this, descriptor, key) {
|
|
246
|
-
if (ignoreUnknownKeys(descriptor, $this.
|
|
247
|
-
$this.
|
|
246
|
+
if (ignoreUnknownKeys(descriptor, $this.r6g_1) || trySkip($this, $this.w6g_1, key)) {
|
|
247
|
+
$this.t6g_1.u6o($this.x6g_1.z6h_1);
|
|
248
248
|
} else {
|
|
249
|
-
$this.
|
|
250
|
-
$this.
|
|
249
|
+
$this.t6g_1.a6h_1.h6m();
|
|
250
|
+
$this.t6g_1.t6o(key);
|
|
251
251
|
}
|
|
252
|
-
return $this.
|
|
252
|
+
return $this.t6g_1.q6o();
|
|
253
253
|
}
|
|
254
254
|
function decodeListIndex($this) {
|
|
255
|
-
var hasComma = $this.
|
|
255
|
+
var hasComma = $this.t6g_1.q6o();
|
|
256
256
|
var tmp;
|
|
257
|
-
if ($this.
|
|
258
|
-
if (!($this.
|
|
259
|
-
$this.
|
|
257
|
+
if ($this.t6g_1.c6n()) {
|
|
258
|
+
if (!($this.v6g_1 === -1) && !hasComma) {
|
|
259
|
+
$this.t6g_1.i6l('Expected end of the array or comma');
|
|
260
260
|
}
|
|
261
|
-
$this.
|
|
262
|
-
tmp = $this.
|
|
261
|
+
$this.v6g_1 = $this.v6g_1 + 1 | 0;
|
|
262
|
+
tmp = $this.v6g_1;
|
|
263
263
|
} else {
|
|
264
|
-
if (hasComma && !$this.
|
|
265
|
-
invalidTrailingComma($this.
|
|
264
|
+
if (hasComma && !$this.r6g_1.n6g_1.l6i_1) {
|
|
265
|
+
invalidTrailingComma($this.t6g_1, 'array');
|
|
266
266
|
}
|
|
267
267
|
tmp = -1;
|
|
268
268
|
}
|
|
@@ -270,10 +270,10 @@ function decodeListIndex($this) {
|
|
|
270
270
|
}
|
|
271
271
|
function decodeStringKey($this) {
|
|
272
272
|
var tmp;
|
|
273
|
-
if ($this.
|
|
274
|
-
tmp = $this.
|
|
273
|
+
if ($this.x6g_1.z6h_1) {
|
|
274
|
+
tmp = $this.t6g_1.w6o();
|
|
275
275
|
} else {
|
|
276
|
-
tmp = $this.
|
|
276
|
+
tmp = $this.t6g_1.v6o();
|
|
277
277
|
}
|
|
278
278
|
return tmp;
|
|
279
279
|
}
|
|
@@ -283,23 +283,23 @@ function StreamingJsonDecoder() {
|
|
|
283
283
|
class $ extends AbstractDecoder() {
|
|
284
284
|
constructor(json, mode, lexer, descriptor, discriminatorHolder) {
|
|
285
285
|
super();
|
|
286
|
-
this.
|
|
287
|
-
this.
|
|
288
|
-
this.
|
|
289
|
-
this.
|
|
290
|
-
this.
|
|
291
|
-
this.
|
|
292
|
-
this.
|
|
293
|
-
this.
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
return this.
|
|
286
|
+
this.r6g_1 = json;
|
|
287
|
+
this.s6g_1 = mode;
|
|
288
|
+
this.t6g_1 = lexer;
|
|
289
|
+
this.u6g_1 = this.r6g_1.yx();
|
|
290
|
+
this.v6g_1 = -1;
|
|
291
|
+
this.w6g_1 = discriminatorHolder;
|
|
292
|
+
this.x6g_1 = this.r6g_1.n6g_1;
|
|
293
|
+
this.y6g_1 = this.x6g_1.c6i_1 ? null : new (JsonElementMarker())(descriptor);
|
|
294
|
+
}
|
|
295
|
+
o6i() {
|
|
296
|
+
return this.r6g_1;
|
|
297
297
|
}
|
|
298
298
|
yx() {
|
|
299
|
-
return this.
|
|
299
|
+
return this.u6g_1;
|
|
300
300
|
}
|
|
301
|
-
|
|
302
|
-
return (new (JsonTreeReader())(this.
|
|
301
|
+
p6i() {
|
|
302
|
+
return (new (JsonTreeReader())(this.r6g_1.n6g_1, this.t6g_1)).f6n();
|
|
303
303
|
}
|
|
304
304
|
jx(deserializer) {
|
|
305
305
|
try {
|
|
@@ -307,13 +307,13 @@ function StreamingJsonDecoder() {
|
|
|
307
307
|
if (!(deserializer instanceof AbstractPolymorphicSerializer())) {
|
|
308
308
|
tmp = true;
|
|
309
309
|
} else {
|
|
310
|
-
tmp = this.
|
|
310
|
+
tmp = this.r6g_1.n6g_1.f6i_1;
|
|
311
311
|
}
|
|
312
312
|
if (tmp) {
|
|
313
313
|
return deserializer.zs(this);
|
|
314
314
|
}
|
|
315
|
-
var discriminator = classDiscriminator(deserializer.xs(), this.
|
|
316
|
-
var tmp0_elvis_lhs = this.
|
|
315
|
+
var discriminator = classDiscriminator(deserializer.xs(), this.r6g_1);
|
|
316
|
+
var tmp0_elvis_lhs = this.t6g_1.x6o(discriminator, this.x6g_1.z6h_1);
|
|
317
317
|
var tmp_0;
|
|
318
318
|
if (tmp0_elvis_lhs == null) {
|
|
319
319
|
var tmp2 = isInterface(deserializer, DeserializationStrategy()) ? deserializer : THROW_CCE();
|
|
@@ -324,24 +324,24 @@ function StreamingJsonDecoder() {
|
|
|
324
324
|
if (!(tmp2 instanceof AbstractPolymorphicSerializer())) {
|
|
325
325
|
tmp_1 = true;
|
|
326
326
|
} else {
|
|
327
|
-
tmp_1 = this.
|
|
327
|
+
tmp_1 = this.o6i().n6g_1.f6i_1;
|
|
328
328
|
}
|
|
329
329
|
if (tmp_1) {
|
|
330
330
|
tmp$ret$0 = tmp2.zs(this);
|
|
331
331
|
break $l$block;
|
|
332
332
|
}
|
|
333
|
-
var discriminator_0 = classDiscriminator(tmp2.xs(), this.
|
|
334
|
-
var tmp0 = this.
|
|
333
|
+
var discriminator_0 = classDiscriminator(tmp2.xs(), this.o6i());
|
|
334
|
+
var tmp0 = this.p6i();
|
|
335
335
|
// Inline function 'kotlinx.serialization.json.internal.cast' call
|
|
336
336
|
var serialName = tmp2.xs().au();
|
|
337
337
|
if (!(tmp0 instanceof JsonObject())) {
|
|
338
338
|
var tmp_2 = getKClass(JsonObject()).ag();
|
|
339
339
|
var tmp_3 = getKClassFromExpression(tmp0).ag();
|
|
340
|
-
var tmp$ret$1 = this.
|
|
340
|
+
var tmp$ret$1 = this.t6g_1.a6h_1.i6m();
|
|
341
341
|
throw JsonDecodingException(-1, 'Expected ' + tmp_2 + ', but had ' + tmp_3 + ' as the serialized body of ' + serialName + ' at element: ' + tmp$ret$1, toString(tmp0));
|
|
342
342
|
}
|
|
343
343
|
var jsonTree = tmp0;
|
|
344
|
-
var tmp0_safe_receiver = jsonTree.
|
|
344
|
+
var tmp0_safe_receiver = jsonTree.c3s(discriminator_0);
|
|
345
345
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : get_jsonPrimitive(tmp0_safe_receiver);
|
|
346
346
|
var type = tmp1_safe_receiver == null ? null : get_contentOrNull(tmp1_safe_receiver);
|
|
347
347
|
var tmp_4;
|
|
@@ -358,7 +358,7 @@ function StreamingJsonDecoder() {
|
|
|
358
358
|
}
|
|
359
359
|
var tmp_6 = tmp_4;
|
|
360
360
|
var actualSerializer = isInterface(tmp_6, DeserializationStrategy()) ? tmp_6 : THROW_CCE();
|
|
361
|
-
tmp$ret$0 = readPolymorphicJson(this.
|
|
361
|
+
tmp$ret$0 = readPolymorphicJson(this.o6i(), discriminator_0, jsonTree, actualSerializer);
|
|
362
362
|
}
|
|
363
363
|
return tmp$ret$0;
|
|
364
364
|
} else {
|
|
@@ -374,7 +374,7 @@ function StreamingJsonDecoder() {
|
|
|
374
374
|
var it_0 = $p;
|
|
375
375
|
var message = removeSuffix(substringBefore(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10)), '.');
|
|
376
376
|
var hint = substringAfter(ensureNotNull(it_0.message), _Char___init__impl__6a9atx(10), '');
|
|
377
|
-
this.
|
|
377
|
+
this.t6g_1.i6l(message, VOID, hint);
|
|
378
378
|
} else {
|
|
379
379
|
throw $p;
|
|
380
380
|
}
|
|
@@ -382,37 +382,37 @@ function StreamingJsonDecoder() {
|
|
|
382
382
|
}
|
|
383
383
|
var tmp_9 = tmp_7;
|
|
384
384
|
var actualSerializer_0 = isInterface(tmp_9, DeserializationStrategy()) ? tmp_9 : THROW_CCE();
|
|
385
|
-
this.
|
|
385
|
+
this.w6g_1 = new (DiscriminatorHolder())(discriminator);
|
|
386
386
|
return actualSerializer_0.zs(this);
|
|
387
387
|
} catch ($p) {
|
|
388
388
|
if ($p instanceof MissingFieldException()) {
|
|
389
389
|
var e = $p;
|
|
390
390
|
if (contains(ensureNotNull(e.message), 'at path'))
|
|
391
391
|
throw e;
|
|
392
|
-
throw MissingFieldException().vu(e.tu_1, plus(e.message, ' at path: ') + this.
|
|
392
|
+
throw MissingFieldException().vu(e.tu_1, plus(e.message, ' at path: ') + this.t6g_1.a6h_1.i6m(), e);
|
|
393
393
|
} else {
|
|
394
394
|
throw $p;
|
|
395
395
|
}
|
|
396
396
|
}
|
|
397
397
|
}
|
|
398
398
|
kx(descriptor) {
|
|
399
|
-
var newMode = switchMode(this.
|
|
400
|
-
this.
|
|
401
|
-
this.
|
|
399
|
+
var newMode = switchMode(this.r6g_1, descriptor);
|
|
400
|
+
this.t6g_1.a6h_1.d6m(descriptor);
|
|
401
|
+
this.t6g_1.p6o(newMode.a6p_1);
|
|
402
402
|
checkLeadingComma(this);
|
|
403
403
|
var tmp;
|
|
404
404
|
switch (newMode.h3_1) {
|
|
405
405
|
case 1:
|
|
406
406
|
case 2:
|
|
407
407
|
case 3:
|
|
408
|
-
tmp = new (StreamingJsonDecoder())(this.
|
|
408
|
+
tmp = new (StreamingJsonDecoder())(this.r6g_1, newMode, this.t6g_1, descriptor, this.w6g_1);
|
|
409
409
|
break;
|
|
410
410
|
default:
|
|
411
411
|
var tmp_0;
|
|
412
|
-
if (this.
|
|
412
|
+
if (this.s6g_1.equals(newMode) && this.r6g_1.n6g_1.c6i_1) {
|
|
413
413
|
tmp_0 = this;
|
|
414
414
|
} else {
|
|
415
|
-
tmp_0 = new (StreamingJsonDecoder())(this.
|
|
415
|
+
tmp_0 = new (StreamingJsonDecoder())(this.r6g_1, newMode, this.t6g_1, descriptor, this.w6g_1);
|
|
416
416
|
}
|
|
417
417
|
|
|
418
418
|
tmp = tmp_0;
|
|
@@ -421,21 +421,21 @@ function StreamingJsonDecoder() {
|
|
|
421
421
|
return tmp;
|
|
422
422
|
}
|
|
423
423
|
lx(descriptor) {
|
|
424
|
-
if (descriptor.qv() === 0 && ignoreUnknownKeys(descriptor, this.
|
|
424
|
+
if (descriptor.qv() === 0 && ignoreUnknownKeys(descriptor, this.r6g_1)) {
|
|
425
425
|
skipLeftoverElements(this, descriptor);
|
|
426
426
|
}
|
|
427
|
-
if (this.
|
|
428
|
-
invalidTrailingComma(this.
|
|
427
|
+
if (this.t6g_1.q6o() && !this.r6g_1.n6g_1.l6i_1) {
|
|
428
|
+
invalidTrailingComma(this.t6g_1, '');
|
|
429
429
|
}
|
|
430
|
-
this.
|
|
431
|
-
this.
|
|
430
|
+
this.t6g_1.p6o(this.s6g_1.b6p_1);
|
|
431
|
+
this.t6g_1.a6h_1.h6m();
|
|
432
432
|
}
|
|
433
433
|
vw() {
|
|
434
434
|
var tmp;
|
|
435
|
-
var tmp0_safe_receiver = this.
|
|
436
|
-
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
435
|
+
var tmp0_safe_receiver = this.y6g_1;
|
|
436
|
+
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.e6l_1;
|
|
437
437
|
if (!(tmp1_elvis_lhs == null ? false : tmp1_elvis_lhs)) {
|
|
438
|
-
tmp = !this.
|
|
438
|
+
tmp = !this.t6g_1.c6p();
|
|
439
439
|
} else {
|
|
440
440
|
tmp = false;
|
|
441
441
|
}
|
|
@@ -445,19 +445,19 @@ function StreamingJsonDecoder() {
|
|
|
445
445
|
return null;
|
|
446
446
|
}
|
|
447
447
|
wx(descriptor, index, deserializer, previousValue) {
|
|
448
|
-
var isMapKey = this.
|
|
448
|
+
var isMapKey = this.s6g_1.equals(WriteMode_MAP_getInstance()) && (index & 1) === 0;
|
|
449
449
|
if (isMapKey) {
|
|
450
|
-
this.
|
|
450
|
+
this.t6g_1.a6h_1.g6m();
|
|
451
451
|
}
|
|
452
452
|
var value = super.wx(descriptor, index, deserializer, previousValue);
|
|
453
453
|
if (isMapKey) {
|
|
454
|
-
this.
|
|
454
|
+
this.t6g_1.a6h_1.f6m(value);
|
|
455
455
|
}
|
|
456
456
|
return value;
|
|
457
457
|
}
|
|
458
458
|
ay(descriptor) {
|
|
459
459
|
var index;
|
|
460
|
-
switch (this.
|
|
460
|
+
switch (this.s6g_1.h3_1) {
|
|
461
461
|
case 0:
|
|
462
462
|
index = decodeObjectIndex(this, descriptor);
|
|
463
463
|
break;
|
|
@@ -468,44 +468,44 @@ function StreamingJsonDecoder() {
|
|
|
468
468
|
index = decodeListIndex(this);
|
|
469
469
|
break;
|
|
470
470
|
}
|
|
471
|
-
if (!this.
|
|
472
|
-
this.
|
|
471
|
+
if (!this.s6g_1.equals(WriteMode_MAP_getInstance())) {
|
|
472
|
+
this.t6g_1.a6h_1.e6m(index);
|
|
473
473
|
}
|
|
474
474
|
return index;
|
|
475
475
|
}
|
|
476
476
|
xw() {
|
|
477
|
-
return this.
|
|
477
|
+
return this.t6g_1.d6p();
|
|
478
478
|
}
|
|
479
479
|
yw() {
|
|
480
|
-
var value = this.
|
|
480
|
+
var value = this.t6g_1.e6p();
|
|
481
481
|
if (!value.equals(toLong(value.f4()))) {
|
|
482
|
-
this.
|
|
482
|
+
this.t6g_1.i6l("Failed to parse byte for input '" + value.toString() + "'");
|
|
483
483
|
}
|
|
484
484
|
return value.f4();
|
|
485
485
|
}
|
|
486
486
|
zw() {
|
|
487
|
-
var value = this.
|
|
487
|
+
var value = this.t6g_1.e6p();
|
|
488
488
|
if (!value.equals(toLong(value.g4()))) {
|
|
489
|
-
this.
|
|
489
|
+
this.t6g_1.i6l("Failed to parse short for input '" + value.toString() + "'");
|
|
490
490
|
}
|
|
491
491
|
return value.g4();
|
|
492
492
|
}
|
|
493
493
|
ax() {
|
|
494
|
-
var value = this.
|
|
494
|
+
var value = this.t6g_1.e6p();
|
|
495
495
|
if (!value.equals(toLong(value.c2()))) {
|
|
496
|
-
this.
|
|
496
|
+
this.t6g_1.i6l("Failed to parse int for input '" + value.toString() + "'");
|
|
497
497
|
}
|
|
498
498
|
return value.c2();
|
|
499
499
|
}
|
|
500
500
|
bx() {
|
|
501
|
-
return this.
|
|
501
|
+
return this.t6g_1.e6p();
|
|
502
502
|
}
|
|
503
503
|
cx() {
|
|
504
|
-
var tmp0 = this.
|
|
504
|
+
var tmp0 = this.t6g_1;
|
|
505
505
|
var tmp$ret$4;
|
|
506
506
|
$l$block: {
|
|
507
507
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
508
|
-
var input = tmp0.
|
|
508
|
+
var input = tmp0.e6n();
|
|
509
509
|
try {
|
|
510
510
|
// Inline function 'kotlin.text.toFloat' call
|
|
511
511
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
@@ -515,63 +515,63 @@ function StreamingJsonDecoder() {
|
|
|
515
515
|
} catch ($p) {
|
|
516
516
|
if ($p instanceof IllegalArgumentException()) {
|
|
517
517
|
var e = $p;
|
|
518
|
-
tmp0.
|
|
518
|
+
tmp0.i6l("Failed to parse type '" + 'float' + "' for input '" + input + "'");
|
|
519
519
|
} else {
|
|
520
520
|
throw $p;
|
|
521
521
|
}
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
var result = tmp$ret$4;
|
|
525
|
-
var specialFp = this.
|
|
525
|
+
var specialFp = this.r6g_1.n6g_1.h6i_1;
|
|
526
526
|
if (specialFp || isFinite(result))
|
|
527
527
|
return result;
|
|
528
|
-
throwInvalidFloatingPointDecoded(this.
|
|
528
|
+
throwInvalidFloatingPointDecoded(this.t6g_1, result);
|
|
529
529
|
}
|
|
530
530
|
dx() {
|
|
531
|
-
var tmp0 = this.
|
|
531
|
+
var tmp0 = this.t6g_1;
|
|
532
532
|
var tmp$ret$1;
|
|
533
533
|
$l$block: {
|
|
534
534
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
535
|
-
var input = tmp0.
|
|
535
|
+
var input = tmp0.e6n();
|
|
536
536
|
try {
|
|
537
537
|
tmp$ret$1 = toDouble(input);
|
|
538
538
|
break $l$block;
|
|
539
539
|
} catch ($p) {
|
|
540
540
|
if ($p instanceof IllegalArgumentException()) {
|
|
541
541
|
var e = $p;
|
|
542
|
-
tmp0.
|
|
542
|
+
tmp0.i6l("Failed to parse type '" + 'double' + "' for input '" + input + "'");
|
|
543
543
|
} else {
|
|
544
544
|
throw $p;
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
547
|
}
|
|
548
548
|
var result = tmp$ret$1;
|
|
549
|
-
var specialFp = this.
|
|
549
|
+
var specialFp = this.r6g_1.n6g_1.h6i_1;
|
|
550
550
|
if (specialFp || isFinite_0(result))
|
|
551
551
|
return result;
|
|
552
|
-
throwInvalidFloatingPointDecoded(this.
|
|
552
|
+
throwInvalidFloatingPointDecoded(this.t6g_1, result);
|
|
553
553
|
}
|
|
554
554
|
ex() {
|
|
555
|
-
var string = this.
|
|
555
|
+
var string = this.t6g_1.e6n();
|
|
556
556
|
if (!(string.length === 1)) {
|
|
557
|
-
this.
|
|
557
|
+
this.t6g_1.i6l("Expected single char, but got '" + string + "'");
|
|
558
558
|
}
|
|
559
559
|
return charCodeAt(string, 0);
|
|
560
560
|
}
|
|
561
561
|
fx() {
|
|
562
562
|
var tmp;
|
|
563
|
-
if (this.
|
|
564
|
-
tmp = this.
|
|
563
|
+
if (this.x6g_1.z6h_1) {
|
|
564
|
+
tmp = this.t6g_1.w6o();
|
|
565
565
|
} else {
|
|
566
|
-
tmp = this.
|
|
566
|
+
tmp = this.t6g_1.d6n();
|
|
567
567
|
}
|
|
568
568
|
return tmp;
|
|
569
569
|
}
|
|
570
570
|
hx(descriptor) {
|
|
571
|
-
return get_isUnsignedNumber(descriptor) ? new (JsonDecoderForUnsignedTypes())(this.
|
|
571
|
+
return get_isUnsignedNumber(descriptor) ? new (JsonDecoderForUnsignedTypes())(this.t6g_1, this.r6g_1) : super.hx(descriptor);
|
|
572
572
|
}
|
|
573
573
|
gx(enumDescriptor) {
|
|
574
|
-
return getJsonNameIndexOrThrow(enumDescriptor, this.
|
|
574
|
+
return getJsonNameIndexOrThrow(enumDescriptor, this.r6g_1, this.fx(), ' at path ' + this.t6g_1.a6h_1.i6m());
|
|
575
575
|
}
|
|
576
576
|
}
|
|
577
577
|
initMetadataForClass($, 'StreamingJsonDecoder', VOID, VOID, [JsonDecoder(), AbstractDecoder()]);
|
|
@@ -585,22 +585,22 @@ function JsonDecoderForUnsignedTypes() {
|
|
|
585
585
|
class $ extends AbstractDecoder() {
|
|
586
586
|
constructor(lexer, json) {
|
|
587
587
|
super();
|
|
588
|
-
this.
|
|
589
|
-
this.
|
|
588
|
+
this.f6p_1 = lexer;
|
|
589
|
+
this.g6p_1 = json.yx();
|
|
590
590
|
}
|
|
591
591
|
yx() {
|
|
592
|
-
return this.
|
|
592
|
+
return this.g6p_1;
|
|
593
593
|
}
|
|
594
594
|
ay(descriptor) {
|
|
595
595
|
var message = 'unsupported';
|
|
596
596
|
throw IllegalStateException().o4(toString(message));
|
|
597
597
|
}
|
|
598
598
|
ax() {
|
|
599
|
-
var tmp0 = this.
|
|
599
|
+
var tmp0 = this.f6p_1;
|
|
600
600
|
var tmp$ret$2;
|
|
601
601
|
$l$block: {
|
|
602
602
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
603
|
-
var input = tmp0.
|
|
603
|
+
var input = tmp0.e6n();
|
|
604
604
|
try {
|
|
605
605
|
// Inline function 'kotlin.UInt.toInt' call
|
|
606
606
|
var this_0 = toUInt(input);
|
|
@@ -609,7 +609,7 @@ function JsonDecoderForUnsignedTypes() {
|
|
|
609
609
|
} catch ($p) {
|
|
610
610
|
if ($p instanceof IllegalArgumentException()) {
|
|
611
611
|
var e = $p;
|
|
612
|
-
tmp0.
|
|
612
|
+
tmp0.i6l("Failed to parse type '" + 'UInt' + "' for input '" + input + "'");
|
|
613
613
|
} else {
|
|
614
614
|
throw $p;
|
|
615
615
|
}
|
|
@@ -618,11 +618,11 @@ function JsonDecoderForUnsignedTypes() {
|
|
|
618
618
|
return tmp$ret$2;
|
|
619
619
|
}
|
|
620
620
|
bx() {
|
|
621
|
-
var tmp0 = this.
|
|
621
|
+
var tmp0 = this.f6p_1;
|
|
622
622
|
var tmp$ret$2;
|
|
623
623
|
$l$block: {
|
|
624
624
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
625
|
-
var input = tmp0.
|
|
625
|
+
var input = tmp0.e6n();
|
|
626
626
|
try {
|
|
627
627
|
// Inline function 'kotlin.ULong.toLong' call
|
|
628
628
|
var this_0 = toULong(input);
|
|
@@ -631,7 +631,7 @@ function JsonDecoderForUnsignedTypes() {
|
|
|
631
631
|
} catch ($p) {
|
|
632
632
|
if ($p instanceof IllegalArgumentException()) {
|
|
633
633
|
var e = $p;
|
|
634
|
-
tmp0.
|
|
634
|
+
tmp0.i6l("Failed to parse type '" + 'ULong' + "' for input '" + input + "'");
|
|
635
635
|
} else {
|
|
636
636
|
throw $p;
|
|
637
637
|
}
|
|
@@ -640,11 +640,11 @@ function JsonDecoderForUnsignedTypes() {
|
|
|
640
640
|
return tmp$ret$2;
|
|
641
641
|
}
|
|
642
642
|
yw() {
|
|
643
|
-
var tmp0 = this.
|
|
643
|
+
var tmp0 = this.f6p_1;
|
|
644
644
|
var tmp$ret$2;
|
|
645
645
|
$l$block: {
|
|
646
646
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
647
|
-
var input = tmp0.
|
|
647
|
+
var input = tmp0.e6n();
|
|
648
648
|
try {
|
|
649
649
|
// Inline function 'kotlin.UByte.toByte' call
|
|
650
650
|
var this_0 = toUByte(input);
|
|
@@ -653,7 +653,7 @@ function JsonDecoderForUnsignedTypes() {
|
|
|
653
653
|
} catch ($p) {
|
|
654
654
|
if ($p instanceof IllegalArgumentException()) {
|
|
655
655
|
var e = $p;
|
|
656
|
-
tmp0.
|
|
656
|
+
tmp0.i6l("Failed to parse type '" + 'UByte' + "' for input '" + input + "'");
|
|
657
657
|
} else {
|
|
658
658
|
throw $p;
|
|
659
659
|
}
|
|
@@ -662,11 +662,11 @@ function JsonDecoderForUnsignedTypes() {
|
|
|
662
662
|
return tmp$ret$2;
|
|
663
663
|
}
|
|
664
664
|
zw() {
|
|
665
|
-
var tmp0 = this.
|
|
665
|
+
var tmp0 = this.f6p_1;
|
|
666
666
|
var tmp$ret$2;
|
|
667
667
|
$l$block: {
|
|
668
668
|
// Inline function 'kotlinx.serialization.json.internal.parseString' call
|
|
669
|
-
var input = tmp0.
|
|
669
|
+
var input = tmp0.e6n();
|
|
670
670
|
try {
|
|
671
671
|
// Inline function 'kotlin.UShort.toShort' call
|
|
672
672
|
var this_0 = toUShort(input);
|
|
@@ -675,7 +675,7 @@ function JsonDecoderForUnsignedTypes() {
|
|
|
675
675
|
} catch ($p) {
|
|
676
676
|
if ($p instanceof IllegalArgumentException()) {
|
|
677
677
|
var e = $p;
|
|
678
|
-
tmp0.
|
|
678
|
+
tmp0.i6l("Failed to parse type '" + 'UShort' + "' for input '" + input + "'");
|
|
679
679
|
} else {
|
|
680
680
|
throw $p;
|
|
681
681
|
}
|