@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
|
@@ -35,9 +35,9 @@ function checkKind($this, descriptor, actualClass) {
|
|
|
35
35
|
if (tmp) {
|
|
36
36
|
throw IllegalArgumentException().u('Serializer for ' + actualClass.ag() + " can't be registered as a subclass for polymorphic serialization " + ('because its kind ' + kind.toString() + ' is not concrete. To work with multiple hierarchies, register it as a base class.'));
|
|
37
37
|
}
|
|
38
|
-
if ($this.
|
|
38
|
+
if ($this.k6m_1)
|
|
39
39
|
return Unit_instance;
|
|
40
|
-
if (!$this.
|
|
40
|
+
if (!$this.l6m_1)
|
|
41
41
|
return Unit_instance;
|
|
42
42
|
var tmp_0;
|
|
43
43
|
var tmp_1;
|
|
@@ -63,7 +63,7 @@ function checkDiscriminatorCollisions($this, descriptor, actualClass) {
|
|
|
63
63
|
var i = inductionVariable;
|
|
64
64
|
inductionVariable = inductionVariable + 1 | 0;
|
|
65
65
|
var name = descriptor.sv(i);
|
|
66
|
-
if (name === $this.
|
|
66
|
+
if (name === $this.j6m_1) {
|
|
67
67
|
throw IllegalArgumentException().u('Polymorphic serializer for ' + toString(actualClass) + " has property '" + name + "' that conflicts " + 'with JSON class discriminator. You can either change class discriminator in JsonConfiguration, rename property with @SerialName annotation or fall back to array polymorphism');
|
|
68
68
|
}
|
|
69
69
|
}
|
|
@@ -74,16 +74,16 @@ function JsonSerializersModuleValidator() {
|
|
|
74
74
|
if (JsonSerializersModuleValidatorClass === VOID) {
|
|
75
75
|
class $ {
|
|
76
76
|
constructor(configuration) {
|
|
77
|
-
this.
|
|
78
|
-
this.
|
|
79
|
-
this.
|
|
77
|
+
this.j6m_1 = configuration.g6i_1;
|
|
78
|
+
this.k6m_1 = configuration.f6i_1;
|
|
79
|
+
this.l6m_1 = !configuration.n6i_1.equals(ClassDiscriminatorMode_NONE_getInstance());
|
|
80
80
|
}
|
|
81
81
|
z1d(kClass, provider) {
|
|
82
82
|
}
|
|
83
83
|
c1e(baseClass, actualClass, actualSerializer) {
|
|
84
84
|
var descriptor = actualSerializer.xs();
|
|
85
85
|
checkKind(this, descriptor, actualClass);
|
|
86
|
-
if (!this.
|
|
86
|
+
if (!this.k6m_1 && this.l6m_1) {
|
|
87
87
|
checkDiscriminatorCollisions(this, descriptor, actualClass);
|
|
88
88
|
}
|
|
89
89
|
}
|
|
@@ -12,7 +12,7 @@ function encodeByWriter(json, writer, serializer, value) {
|
|
|
12
12
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
13
13
|
var size = get_entries().i1();
|
|
14
14
|
var tmp$ret$0 = Array(size);
|
|
15
|
-
var encoder = StreamingJsonEncoder().
|
|
15
|
+
var encoder = StreamingJsonEncoder().v6m(writer, json, tmp, tmp$ret$0);
|
|
16
16
|
encoder.cz(serializer, value);
|
|
17
17
|
}
|
|
18
18
|
//region block: exports
|
|
@@ -12,25 +12,25 @@ function JsonToStringWriter() {
|
|
|
12
12
|
if (JsonToStringWriterClass === VOID) {
|
|
13
13
|
class $ {
|
|
14
14
|
constructor() {
|
|
15
|
-
this.
|
|
15
|
+
this.q6g_1 = StringBuilder().mb(128);
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
this.
|
|
17
|
+
r2t(value) {
|
|
18
|
+
this.q6g_1.zh(value);
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
this.
|
|
20
|
+
h6k(char) {
|
|
21
|
+
this.q6g_1.kb(char);
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
this.
|
|
23
|
+
j6k(text) {
|
|
24
|
+
this.q6g_1.jb(text);
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
printQuoted(this.
|
|
26
|
+
s6k(text) {
|
|
27
|
+
printQuoted(this.q6g_1, text);
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
this.
|
|
29
|
+
m2o() {
|
|
30
|
+
this.q6g_1.ci();
|
|
31
31
|
}
|
|
32
32
|
toString() {
|
|
33
|
-
return this.
|
|
33
|
+
return this.q6g_1.toString();
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
initMetadataForClass($, 'JsonToStringWriter', JsonToStringWriter);
|
|
@@ -32,34 +32,34 @@ import { tokenDescription3r6eqmtoxe76u as tokenDescription } from './AbstractJso
|
|
|
32
32
|
//endregion
|
|
33
33
|
function readObject($this) {
|
|
34
34
|
// Inline function 'kotlinx.serialization.json.internal.JsonTreeReader.readObjectImpl' call
|
|
35
|
-
var lastToken = $this.
|
|
36
|
-
if ($this.
|
|
37
|
-
$this.
|
|
35
|
+
var lastToken = $this.w6m_1.a6n(6);
|
|
36
|
+
if ($this.w6m_1.b6n() === 4) {
|
|
37
|
+
$this.w6m_1.i6l('Unexpected leading comma');
|
|
38
38
|
}
|
|
39
39
|
// Inline function 'kotlin.collections.linkedMapOf' call
|
|
40
40
|
var result = LinkedHashMap().ub();
|
|
41
|
-
$l$loop: while ($this.
|
|
42
|
-
var key = $this.
|
|
43
|
-
$this.
|
|
44
|
-
var element = $this.
|
|
41
|
+
$l$loop: while ($this.w6m_1.c6n()) {
|
|
42
|
+
var key = $this.x6m_1 ? $this.w6m_1.e6n() : $this.w6m_1.d6n();
|
|
43
|
+
$this.w6m_1.a6n(5);
|
|
44
|
+
var element = $this.f6n();
|
|
45
45
|
// Inline function 'kotlin.collections.set' call
|
|
46
46
|
result.d3(key, element);
|
|
47
|
-
lastToken = $this.
|
|
47
|
+
lastToken = $this.w6m_1.g6n();
|
|
48
48
|
var tmp0_subject = lastToken;
|
|
49
49
|
if (tmp0_subject !== 4)
|
|
50
50
|
if (tmp0_subject === 7)
|
|
51
51
|
break $l$loop;
|
|
52
52
|
else {
|
|
53
|
-
$this.
|
|
53
|
+
$this.w6m_1.i6l('Expected end of the object or comma');
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
if (lastToken === 6) {
|
|
57
|
-
$this.
|
|
57
|
+
$this.w6m_1.a6n(7);
|
|
58
58
|
} else if (lastToken === 4) {
|
|
59
|
-
if (!$this.
|
|
60
|
-
invalidTrailingComma($this.
|
|
59
|
+
if (!$this.y6m_1) {
|
|
60
|
+
invalidTrailingComma($this.w6m_1);
|
|
61
61
|
}
|
|
62
|
-
$this.
|
|
62
|
+
$this.w6m_1.a6n(7);
|
|
63
63
|
}
|
|
64
64
|
return new (JsonObject())(result);
|
|
65
65
|
}
|
|
@@ -70,43 +70,43 @@ function readObject_0($this, _this__u8e3s4, $completion) {
|
|
|
70
70
|
return tmp.ic();
|
|
71
71
|
}
|
|
72
72
|
function readArray($this) {
|
|
73
|
-
var lastToken = $this.
|
|
74
|
-
if ($this.
|
|
75
|
-
$this.
|
|
73
|
+
var lastToken = $this.w6m_1.g6n();
|
|
74
|
+
if ($this.w6m_1.b6n() === 4) {
|
|
75
|
+
$this.w6m_1.i6l('Unexpected leading comma');
|
|
76
76
|
}
|
|
77
77
|
// Inline function 'kotlin.collections.arrayListOf' call
|
|
78
78
|
var result = ArrayList().l1();
|
|
79
|
-
while ($this.
|
|
80
|
-
var element = $this.
|
|
79
|
+
while ($this.w6m_1.c6n()) {
|
|
80
|
+
var element = $this.f6n();
|
|
81
81
|
result.m(element);
|
|
82
|
-
lastToken = $this.
|
|
82
|
+
lastToken = $this.w6m_1.g6n();
|
|
83
83
|
if (!(lastToken === 4)) {
|
|
84
|
-
var tmp0 = $this.
|
|
84
|
+
var tmp0 = $this.w6m_1;
|
|
85
85
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.require' call
|
|
86
86
|
var condition = lastToken === 9;
|
|
87
|
-
var position = tmp0.
|
|
87
|
+
var position = tmp0.z6g_1;
|
|
88
88
|
if (!condition) {
|
|
89
89
|
var tmp$ret$1 = 'Expected end of the array or comma';
|
|
90
|
-
tmp0.
|
|
90
|
+
tmp0.i6l(tmp$ret$1, position);
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
if (lastToken === 8) {
|
|
95
|
-
$this.
|
|
95
|
+
$this.w6m_1.a6n(9);
|
|
96
96
|
} else if (lastToken === 4) {
|
|
97
|
-
if (!$this.
|
|
98
|
-
invalidTrailingComma($this.
|
|
97
|
+
if (!$this.y6m_1) {
|
|
98
|
+
invalidTrailingComma($this.w6m_1, 'array');
|
|
99
99
|
}
|
|
100
|
-
$this.
|
|
100
|
+
$this.w6m_1.a6n(9);
|
|
101
101
|
}
|
|
102
102
|
return new (JsonArray())(result);
|
|
103
103
|
}
|
|
104
104
|
function readValue($this, isString) {
|
|
105
105
|
var tmp;
|
|
106
|
-
if ($this.
|
|
107
|
-
tmp = $this.
|
|
106
|
+
if ($this.x6m_1 || !isString) {
|
|
107
|
+
tmp = $this.w6m_1.e6n();
|
|
108
108
|
} else {
|
|
109
|
-
tmp = $this.
|
|
109
|
+
tmp = $this.w6m_1.d6n();
|
|
110
110
|
}
|
|
111
111
|
var string = tmp;
|
|
112
112
|
if (!isString && string === 'null')
|
|
@@ -123,18 +123,18 @@ function JsonTreeReader$readDeepRecursive$slambda() {
|
|
|
123
123
|
constructor(this$0, resultContinuation, $box) {
|
|
124
124
|
if ($box === VOID)
|
|
125
125
|
$box = {};
|
|
126
|
-
$box.
|
|
126
|
+
$box.e6o_1 = this$0;
|
|
127
127
|
super(resultContinuation, $box);
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
var tmp = this.
|
|
129
|
+
j6o($this$DeepRecursiveFunction, it, $completion) {
|
|
130
|
+
var tmp = this.k6o($this$DeepRecursiveFunction, it, $completion);
|
|
131
131
|
tmp.cc_1 = Unit_instance;
|
|
132
132
|
tmp.dc_1 = null;
|
|
133
133
|
return tmp.ic();
|
|
134
134
|
}
|
|
135
135
|
ld(p1, p2, $completion) {
|
|
136
136
|
var tmp = p1 instanceof DeepRecursiveScope() ? p1 : THROW_CCE();
|
|
137
|
-
return this.
|
|
137
|
+
return this.j6o(tmp, p2 instanceof Unit() ? p2 : THROW_CCE(), $completion);
|
|
138
138
|
}
|
|
139
139
|
ic() {
|
|
140
140
|
var suspendResult = this.cc_1;
|
|
@@ -144,32 +144,32 @@ function JsonTreeReader$readDeepRecursive$slambda() {
|
|
|
144
144
|
switch (tmp) {
|
|
145
145
|
case 0:
|
|
146
146
|
this.bc_1 = 3;
|
|
147
|
-
this.
|
|
148
|
-
if (this.
|
|
149
|
-
this.
|
|
147
|
+
this.h6o_1 = this.e6o_1.w6m_1.b6n();
|
|
148
|
+
if (this.h6o_1 === 1) {
|
|
149
|
+
this.i6o_1 = readValue(this.e6o_1, true);
|
|
150
150
|
this.ac_1 = 2;
|
|
151
151
|
continue $sm;
|
|
152
152
|
} else {
|
|
153
|
-
if (this.
|
|
154
|
-
this.
|
|
153
|
+
if (this.h6o_1 === 0) {
|
|
154
|
+
this.i6o_1 = readValue(this.e6o_1, false);
|
|
155
155
|
this.ac_1 = 2;
|
|
156
156
|
continue $sm;
|
|
157
157
|
} else {
|
|
158
|
-
if (this.
|
|
158
|
+
if (this.h6o_1 === 6) {
|
|
159
159
|
this.ac_1 = 1;
|
|
160
|
-
suspendResult = readObject_0(this.
|
|
160
|
+
suspendResult = readObject_0(this.e6o_1, this.f6o_1, this);
|
|
161
161
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
162
162
|
return suspendResult;
|
|
163
163
|
}
|
|
164
164
|
continue $sm;
|
|
165
165
|
} else {
|
|
166
|
-
if (this.
|
|
167
|
-
this.
|
|
166
|
+
if (this.h6o_1 === 8) {
|
|
167
|
+
this.i6o_1 = readArray(this.e6o_1);
|
|
168
168
|
this.ac_1 = 2;
|
|
169
169
|
continue $sm;
|
|
170
170
|
} else {
|
|
171
171
|
var tmp_0 = this;
|
|
172
|
-
this.
|
|
172
|
+
this.e6o_1.w6m_1.i6l("Can't begin reading element, unexpected token");
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
}
|
|
@@ -177,11 +177,11 @@ function JsonTreeReader$readDeepRecursive$slambda() {
|
|
|
177
177
|
|
|
178
178
|
break;
|
|
179
179
|
case 1:
|
|
180
|
-
this.
|
|
180
|
+
this.i6o_1 = suspendResult;
|
|
181
181
|
this.ac_1 = 2;
|
|
182
182
|
continue $sm;
|
|
183
183
|
case 2:
|
|
184
|
-
return this.
|
|
184
|
+
return this.i6o_1;
|
|
185
185
|
case 3:
|
|
186
186
|
throw this.dc_1;
|
|
187
187
|
}
|
|
@@ -196,10 +196,10 @@ function JsonTreeReader$readDeepRecursive$slambda() {
|
|
|
196
196
|
}
|
|
197
197
|
while (true);
|
|
198
198
|
}
|
|
199
|
-
|
|
200
|
-
var i = new (JsonTreeReader$readDeepRecursive$slambda())(this.
|
|
201
|
-
i.
|
|
202
|
-
i.
|
|
199
|
+
k6o($this$DeepRecursiveFunction, it, completion) {
|
|
200
|
+
var i = new (JsonTreeReader$readDeepRecursive$slambda())(this.e6o_1, completion);
|
|
201
|
+
i.f6o_1 = $this$DeepRecursiveFunction;
|
|
202
|
+
i.g6o_1 = it;
|
|
203
203
|
return i;
|
|
204
204
|
}
|
|
205
205
|
}
|
|
@@ -211,7 +211,7 @@ function JsonTreeReader$readDeepRecursive$slambda() {
|
|
|
211
211
|
function JsonTreeReader$readDeepRecursive$slambda_0(this$0, resultContinuation) {
|
|
212
212
|
var i = new (JsonTreeReader$readDeepRecursive$slambda())(this$0, resultContinuation);
|
|
213
213
|
var l = function ($this$DeepRecursiveFunction, it, $completion) {
|
|
214
|
-
return i.
|
|
214
|
+
return i.j6o($this$DeepRecursiveFunction, it, $completion);
|
|
215
215
|
};
|
|
216
216
|
l.$arity = 2;
|
|
217
217
|
return l;
|
|
@@ -222,8 +222,8 @@ function $readObjectCOROUTINE$() {
|
|
|
222
222
|
class $ extends CoroutineImpl() {
|
|
223
223
|
constructor(_this__u8e3s4, _this__u8e3s4_0, resultContinuation) {
|
|
224
224
|
super(resultContinuation);
|
|
225
|
-
this.
|
|
226
|
-
this.
|
|
225
|
+
this.p6n_1 = _this__u8e3s4;
|
|
226
|
+
this.q6n_1 = _this__u8e3s4_0;
|
|
227
227
|
}
|
|
228
228
|
ic() {
|
|
229
229
|
var suspendResult = this.cc_1;
|
|
@@ -234,27 +234,27 @@ function $readObjectCOROUTINE$() {
|
|
|
234
234
|
case 0:
|
|
235
235
|
this.bc_1 = 5;
|
|
236
236
|
var tmp_0 = this;
|
|
237
|
-
tmp_0.
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
240
|
-
if (this.
|
|
241
|
-
this.
|
|
237
|
+
tmp_0.r6n_1 = this.p6n_1;
|
|
238
|
+
this.s6n_1 = this.r6n_1;
|
|
239
|
+
this.t6n_1 = this.s6n_1.w6m_1.a6n(6);
|
|
240
|
+
if (this.s6n_1.w6m_1.b6n() === 4) {
|
|
241
|
+
this.s6n_1.w6m_1.i6l('Unexpected leading comma');
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
var tmp_1 = this;
|
|
245
|
-
tmp_1.
|
|
245
|
+
tmp_1.u6n_1 = LinkedHashMap().ub();
|
|
246
246
|
this.ac_1 = 1;
|
|
247
247
|
continue $sm;
|
|
248
248
|
case 1:
|
|
249
|
-
if (!this.
|
|
249
|
+
if (!this.s6n_1.w6m_1.c6n()) {
|
|
250
250
|
this.ac_1 = 4;
|
|
251
251
|
continue $sm;
|
|
252
252
|
}
|
|
253
253
|
|
|
254
|
-
this.
|
|
255
|
-
this.
|
|
254
|
+
this.v6n_1 = this.s6n_1.x6m_1 ? this.s6n_1.w6m_1.e6n() : this.s6n_1.w6m_1.d6n();
|
|
255
|
+
this.s6n_1.w6m_1.a6n(5);
|
|
256
256
|
this.ac_1 = 2;
|
|
257
|
-
suspendResult = this.
|
|
257
|
+
suspendResult = this.q6n_1.lq(Unit_instance, this);
|
|
258
258
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
259
259
|
return suspendResult;
|
|
260
260
|
}
|
|
@@ -262,11 +262,11 @@ function $readObjectCOROUTINE$() {
|
|
|
262
262
|
continue $sm;
|
|
263
263
|
case 2:
|
|
264
264
|
var element = suspendResult;
|
|
265
|
-
var tmp0 = this.
|
|
266
|
-
var key = this.
|
|
265
|
+
var tmp0 = this.u6n_1;
|
|
266
|
+
var key = this.v6n_1;
|
|
267
267
|
tmp0.d3(key, element);
|
|
268
|
-
this.
|
|
269
|
-
var tmp0_subject = this.
|
|
268
|
+
this.t6n_1 = this.s6n_1.w6m_1.g6n();
|
|
269
|
+
var tmp0_subject = this.t6n_1;
|
|
270
270
|
if (tmp0_subject === 4) {
|
|
271
271
|
this.ac_1 = 3;
|
|
272
272
|
continue $sm;
|
|
@@ -275,7 +275,7 @@ function $readObjectCOROUTINE$() {
|
|
|
275
275
|
this.ac_1 = 4;
|
|
276
276
|
continue $sm;
|
|
277
277
|
} else {
|
|
278
|
-
this.
|
|
278
|
+
this.s6n_1.w6m_1.i6l('Expected end of the object or comma');
|
|
279
279
|
}
|
|
280
280
|
}
|
|
281
281
|
|
|
@@ -284,16 +284,16 @@ function $readObjectCOROUTINE$() {
|
|
|
284
284
|
this.ac_1 = 1;
|
|
285
285
|
continue $sm;
|
|
286
286
|
case 4:
|
|
287
|
-
if (this.
|
|
288
|
-
this.
|
|
289
|
-
} else if (this.
|
|
290
|
-
if (!this.
|
|
291
|
-
invalidTrailingComma(this.
|
|
287
|
+
if (this.t6n_1 === 6) {
|
|
288
|
+
this.s6n_1.w6m_1.a6n(7);
|
|
289
|
+
} else if (this.t6n_1 === 4) {
|
|
290
|
+
if (!this.s6n_1.y6m_1) {
|
|
291
|
+
invalidTrailingComma(this.s6n_1.w6m_1);
|
|
292
292
|
}
|
|
293
|
-
this.
|
|
293
|
+
this.s6n_1.w6m_1.a6n(7);
|
|
294
294
|
}
|
|
295
295
|
|
|
296
|
-
return new (JsonObject())(this.
|
|
296
|
+
return new (JsonObject())(this.u6n_1);
|
|
297
297
|
case 5:
|
|
298
298
|
throw this.dc_1;
|
|
299
299
|
}
|
|
@@ -319,13 +319,13 @@ function JsonTreeReader() {
|
|
|
319
319
|
if (JsonTreeReaderClass === VOID) {
|
|
320
320
|
class $ {
|
|
321
321
|
constructor(configuration, lexer) {
|
|
322
|
-
this.
|
|
323
|
-
this.
|
|
324
|
-
this.
|
|
325
|
-
this.
|
|
322
|
+
this.w6m_1 = lexer;
|
|
323
|
+
this.x6m_1 = configuration.z6h_1;
|
|
324
|
+
this.y6m_1 = configuration.l6i_1;
|
|
325
|
+
this.z6m_1 = 0;
|
|
326
326
|
}
|
|
327
|
-
|
|
328
|
-
var token = this.
|
|
327
|
+
f6n() {
|
|
328
|
+
var token = this.w6m_1.b6n();
|
|
329
329
|
var tmp;
|
|
330
330
|
if (token === 1) {
|
|
331
331
|
tmp = readValue(this, true);
|
|
@@ -333,19 +333,19 @@ function JsonTreeReader() {
|
|
|
333
333
|
tmp = readValue(this, false);
|
|
334
334
|
} else if (token === 6) {
|
|
335
335
|
var tmp_0;
|
|
336
|
-
this.
|
|
337
|
-
if (this.
|
|
336
|
+
this.z6m_1 = this.z6m_1 + 1 | 0;
|
|
337
|
+
if (this.z6m_1 === 200) {
|
|
338
338
|
tmp_0 = readDeepRecursive(this);
|
|
339
339
|
} else {
|
|
340
340
|
tmp_0 = readObject(this);
|
|
341
341
|
}
|
|
342
342
|
var result = tmp_0;
|
|
343
|
-
this.
|
|
343
|
+
this.z6m_1 = this.z6m_1 - 1 | 0;
|
|
344
344
|
tmp = result;
|
|
345
345
|
} else if (token === 8) {
|
|
346
346
|
tmp = readArray(this);
|
|
347
347
|
} else {
|
|
348
|
-
this.
|
|
348
|
+
this.w6m_1.i6l('Cannot read Json element because of unexpected ' + tokenDescription(token));
|
|
349
349
|
}
|
|
350
350
|
return tmp;
|
|
351
351
|
}
|
|
@@ -18,9 +18,9 @@ function classDiscriminator(_this__u8e3s4, json) {
|
|
|
18
18
|
while (_iterator__ex2g4s.e1()) {
|
|
19
19
|
var annotation = _iterator__ex2g4s.f1();
|
|
20
20
|
if (annotation instanceof JsonClassDiscriminator())
|
|
21
|
-
return annotation.
|
|
21
|
+
return annotation.l6o_1;
|
|
22
22
|
}
|
|
23
|
-
return json.
|
|
23
|
+
return json.n6g_1.g6i_1;
|
|
24
24
|
}
|
|
25
25
|
function validateIfSealed(serializer, actualSerializer, classDiscriminator) {
|
|
26
26
|
if (!(serializer instanceof SealedClassSerializer()))
|
|
@@ -21,11 +21,11 @@ function DescriptorSchemaCache() {
|
|
|
21
21
|
if (DescriptorSchemaCacheClass === VOID) {
|
|
22
22
|
class $ {
|
|
23
23
|
constructor() {
|
|
24
|
-
this.
|
|
24
|
+
this.w6l_1 = createMapForCache(16);
|
|
25
25
|
}
|
|
26
|
-
|
|
26
|
+
m6o(descriptor, key, value) {
|
|
27
27
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
28
|
-
var this_0 = this.
|
|
28
|
+
var this_0 = this.w6l_1;
|
|
29
29
|
var value_0 = this_0.w2(descriptor);
|
|
30
30
|
var tmp;
|
|
31
31
|
if (value_0 == null) {
|
|
@@ -41,8 +41,8 @@ function DescriptorSchemaCache() {
|
|
|
41
41
|
var value_1 = !(value == null) ? value : THROW_CCE();
|
|
42
42
|
tmp0.d3(tmp2, value_1);
|
|
43
43
|
}
|
|
44
|
-
|
|
45
|
-
var tmp0_safe_receiver = this.
|
|
44
|
+
x6l(descriptor, key, defaultValue) {
|
|
45
|
+
var tmp0_safe_receiver = this.n6o(descriptor, key);
|
|
46
46
|
if (tmp0_safe_receiver == null)
|
|
47
47
|
null;
|
|
48
48
|
else {
|
|
@@ -50,11 +50,11 @@ function DescriptorSchemaCache() {
|
|
|
50
50
|
return tmp0_safe_receiver;
|
|
51
51
|
}
|
|
52
52
|
var value = defaultValue();
|
|
53
|
-
this.
|
|
53
|
+
this.m6o(descriptor, key, value);
|
|
54
54
|
return value;
|
|
55
55
|
}
|
|
56
|
-
|
|
57
|
-
var tmp0_safe_receiver = this.
|
|
56
|
+
n6o(descriptor, key) {
|
|
57
|
+
var tmp0_safe_receiver = this.w6l_1.w2(descriptor);
|
|
58
58
|
var tmp;
|
|
59
59
|
if (tmp0_safe_receiver == null) {
|
|
60
60
|
tmp = null;
|