@attocash/commons-js 5.0.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +68 -68
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +56 -56
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +661 -661
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +17 -17
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +42 -42
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -67
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +5 -5
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +35 -35
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +37 -37
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +3 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +19 -5
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +72 -72
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.ts +4 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +16 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +41 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
- package/commons-commons-node.mjs +1 -0
- package/commons-commons-node.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
- package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/selector/SelectorManager.jsAndWasmShared.mjs +2 -2
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +106 -106
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
- package/package.json +1 -1
|
@@ -17,48 +17,48 @@ var StringJsonLexerWithCommentsClass;
|
|
|
17
17
|
function StringJsonLexerWithComments() {
|
|
18
18
|
if (StringJsonLexerWithCommentsClass === VOID) {
|
|
19
19
|
class $ extends StringJsonLexer() {
|
|
20
|
-
|
|
21
|
-
var source = this.
|
|
22
|
-
var cpos = this.
|
|
20
|
+
g6n() {
|
|
21
|
+
var source = this.t6r();
|
|
22
|
+
var cpos = this.w6r();
|
|
23
23
|
if (cpos >= source.length || cpos === -1)
|
|
24
24
|
return 10;
|
|
25
|
-
this.
|
|
25
|
+
this.z6g_1 = cpos + 1 | 0;
|
|
26
26
|
return charToTokenClass(charCodeAt(source, cpos));
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
var current = this.
|
|
30
|
-
if (current >= this.
|
|
28
|
+
c6n() {
|
|
29
|
+
var current = this.w6r();
|
|
30
|
+
if (current >= this.t6r().length || current === -1)
|
|
31
31
|
return false;
|
|
32
|
-
return this.
|
|
32
|
+
return this.x6r(charCodeAt(this.t6r(), current));
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
var source = this.
|
|
36
|
-
var current = this.
|
|
34
|
+
p6o(expected) {
|
|
35
|
+
var source = this.t6r();
|
|
36
|
+
var current = this.w6r();
|
|
37
37
|
if (current >= source.length || current === -1) {
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
38
|
+
this.z6g_1 = -1;
|
|
39
|
+
this.y6r(expected);
|
|
40
40
|
}
|
|
41
41
|
var c = charCodeAt(source, current);
|
|
42
|
-
this.
|
|
42
|
+
this.z6g_1 = current + 1 | 0;
|
|
43
43
|
if (c === expected)
|
|
44
44
|
return Unit_instance;
|
|
45
45
|
else {
|
|
46
|
-
this.
|
|
46
|
+
this.y6r(expected);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
var source = this.
|
|
51
|
-
var cpos = this.
|
|
49
|
+
b6n() {
|
|
50
|
+
var source = this.t6r();
|
|
51
|
+
var cpos = this.w6r();
|
|
52
52
|
if (cpos >= source.length || cpos === -1)
|
|
53
53
|
return 10;
|
|
54
|
-
this.
|
|
54
|
+
this.z6g_1 = cpos;
|
|
55
55
|
return charToTokenClass(charCodeAt(source, cpos));
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
var current = this.
|
|
57
|
+
w6r() {
|
|
58
|
+
var current = this.z6g_1;
|
|
59
59
|
if (current === -1)
|
|
60
60
|
return current;
|
|
61
|
-
var source = this.
|
|
61
|
+
var source = this.t6r();
|
|
62
62
|
$l$loop_1: while (current < source.length) {
|
|
63
63
|
var c = charCodeAt(source, current);
|
|
64
64
|
// Inline function 'kotlinx.serialization.json.internal.AbstractJsonLexer.isWs' call
|
|
@@ -79,8 +79,8 @@ function StringJsonLexerWithComments() {
|
|
|
79
79
|
} else if (tmp0_subject === _Char___init__impl__6a9atx(42)) {
|
|
80
80
|
current = indexOf(source, '*/', current + 2 | 0);
|
|
81
81
|
if (current === -1) {
|
|
82
|
-
this.
|
|
83
|
-
this.
|
|
82
|
+
this.z6g_1 = source.length;
|
|
83
|
+
this.i6l('Expected end of the block comment: "*/", but had EOF instead');
|
|
84
84
|
} else {
|
|
85
85
|
current = current + 2 | 0;
|
|
86
86
|
}
|
|
@@ -89,7 +89,7 @@ function StringJsonLexerWithComments() {
|
|
|
89
89
|
}
|
|
90
90
|
break $l$loop_1;
|
|
91
91
|
}
|
|
92
|
-
this.
|
|
92
|
+
this.z6g_1 = current;
|
|
93
93
|
return current;
|
|
94
94
|
}
|
|
95
95
|
}
|
|
@@ -28,53 +28,53 @@ function Composer() {
|
|
|
28
28
|
if (ComposerClass === VOID) {
|
|
29
29
|
class $ {
|
|
30
30
|
constructor(writer) {
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
31
|
+
this.z6j_1 = writer;
|
|
32
|
+
this.a6k_1 = true;
|
|
33
33
|
}
|
|
34
|
-
|
|
35
|
-
this.
|
|
34
|
+
b6k() {
|
|
35
|
+
this.a6k_1 = true;
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
c6k() {
|
|
38
38
|
return Unit_instance;
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
this.
|
|
40
|
+
d6k() {
|
|
41
|
+
this.a6k_1 = false;
|
|
42
42
|
}
|
|
43
|
-
|
|
44
|
-
this.
|
|
43
|
+
e6k() {
|
|
44
|
+
this.a6k_1 = false;
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
f6k() {
|
|
47
47
|
return Unit_instance;
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
return this.
|
|
49
|
+
g6k(v) {
|
|
50
|
+
return this.z6j_1.h6k(v);
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
return this.
|
|
52
|
+
i6k(v) {
|
|
53
|
+
return this.z6j_1.j6k(v);
|
|
54
54
|
}
|
|
55
|
-
|
|
56
|
-
return this.
|
|
55
|
+
k6k(v) {
|
|
56
|
+
return this.z6j_1.j6k(v.toString());
|
|
57
57
|
}
|
|
58
|
-
|
|
59
|
-
return this.
|
|
58
|
+
l6k(v) {
|
|
59
|
+
return this.z6j_1.j6k(v.toString());
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
return this.
|
|
61
|
+
m6k(v) {
|
|
62
|
+
return this.z6j_1.r2t(toLong(v));
|
|
63
63
|
}
|
|
64
|
-
|
|
65
|
-
return this.
|
|
64
|
+
n6k(v) {
|
|
65
|
+
return this.z6j_1.r2t(toLong(v));
|
|
66
66
|
}
|
|
67
|
-
|
|
68
|
-
return this.
|
|
67
|
+
o6k(v) {
|
|
68
|
+
return this.z6j_1.r2t(toLong(v));
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
return this.
|
|
70
|
+
p6k(v) {
|
|
71
|
+
return this.z6j_1.r2t(v);
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
return this.
|
|
73
|
+
q6k(v) {
|
|
74
|
+
return this.z6j_1.j6k(v.toString());
|
|
75
75
|
}
|
|
76
|
-
|
|
77
|
-
return this.
|
|
76
|
+
r6k(value) {
|
|
77
|
+
return this.z6j_1.s6k(value);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
80
|
initMetadataForClass($, 'Composer');
|
|
@@ -83,7 +83,7 @@ function Composer() {
|
|
|
83
83
|
return ComposerClass;
|
|
84
84
|
}
|
|
85
85
|
function Composer_0(sb, json) {
|
|
86
|
-
return json.
|
|
86
|
+
return json.n6g_1.b6i_1 ? new (ComposerWithPrettyPrint())(sb, json) : new (Composer())(sb);
|
|
87
87
|
}
|
|
88
88
|
var ComposerForUnsignedNumbersClass;
|
|
89
89
|
function ComposerForUnsignedNumbers() {
|
|
@@ -91,50 +91,50 @@ function ComposerForUnsignedNumbers() {
|
|
|
91
91
|
class $ extends Composer() {
|
|
92
92
|
constructor(writer, forceQuoting) {
|
|
93
93
|
super(writer);
|
|
94
|
-
this.
|
|
94
|
+
this.v6k_1 = forceQuoting;
|
|
95
95
|
}
|
|
96
|
-
|
|
97
|
-
if (this.
|
|
96
|
+
o6k(v) {
|
|
97
|
+
if (this.v6k_1) {
|
|
98
98
|
// Inline function 'kotlin.toUInt' call
|
|
99
99
|
var tmp$ret$0 = _UInt___init__impl__l7qpdl(v);
|
|
100
|
-
this.
|
|
100
|
+
this.r6k(UInt__toString_impl_dbgl21(tmp$ret$0));
|
|
101
101
|
} else {
|
|
102
102
|
// Inline function 'kotlin.toUInt' call
|
|
103
103
|
var tmp$ret$1 = _UInt___init__impl__l7qpdl(v);
|
|
104
|
-
this.
|
|
104
|
+
this.i6k(UInt__toString_impl_dbgl21(tmp$ret$1));
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
|
|
108
|
-
if (this.
|
|
107
|
+
p6k(v) {
|
|
108
|
+
if (this.v6k_1) {
|
|
109
109
|
// Inline function 'kotlin.toULong' call
|
|
110
110
|
var tmp$ret$0 = _ULong___init__impl__c78o9k(v);
|
|
111
|
-
this.
|
|
111
|
+
this.r6k(ULong__toString_impl_f9au7k(tmp$ret$0));
|
|
112
112
|
} else {
|
|
113
113
|
// Inline function 'kotlin.toULong' call
|
|
114
114
|
var tmp$ret$1 = _ULong___init__impl__c78o9k(v);
|
|
115
|
-
this.
|
|
115
|
+
this.i6k(ULong__toString_impl_f9au7k(tmp$ret$1));
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
|
|
119
|
-
if (this.
|
|
118
|
+
m6k(v) {
|
|
119
|
+
if (this.v6k_1) {
|
|
120
120
|
// Inline function 'kotlin.toUByte' call
|
|
121
121
|
var tmp$ret$0 = _UByte___init__impl__g9hnc4(v);
|
|
122
|
-
this.
|
|
122
|
+
this.r6k(UByte__toString_impl_v72jg(tmp$ret$0));
|
|
123
123
|
} else {
|
|
124
124
|
// Inline function 'kotlin.toUByte' call
|
|
125
125
|
var tmp$ret$1 = _UByte___init__impl__g9hnc4(v);
|
|
126
|
-
this.
|
|
126
|
+
this.i6k(UByte__toString_impl_v72jg(tmp$ret$1));
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
|
-
|
|
130
|
-
if (this.
|
|
129
|
+
n6k(v) {
|
|
130
|
+
if (this.v6k_1) {
|
|
131
131
|
// Inline function 'kotlin.toUShort' call
|
|
132
132
|
var tmp$ret$0 = _UShort___init__impl__jigrne(v);
|
|
133
|
-
this.
|
|
133
|
+
this.r6k(UShort__toString_impl_edaoee(tmp$ret$0));
|
|
134
134
|
} else {
|
|
135
135
|
// Inline function 'kotlin.toUShort' call
|
|
136
136
|
var tmp$ret$1 = _UShort___init__impl__jigrne(v);
|
|
137
|
-
this.
|
|
137
|
+
this.i6k(UShort__toString_impl_edaoee(tmp$ret$1));
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
@@ -149,13 +149,13 @@ function ComposerForUnquotedLiterals() {
|
|
|
149
149
|
class $ extends Composer() {
|
|
150
150
|
constructor(writer, forceQuoting) {
|
|
151
151
|
super(writer);
|
|
152
|
-
this.
|
|
152
|
+
this.y6k_1 = forceQuoting;
|
|
153
153
|
}
|
|
154
|
-
|
|
155
|
-
if (this.
|
|
156
|
-
super.
|
|
154
|
+
r6k(value) {
|
|
155
|
+
if (this.y6k_1) {
|
|
156
|
+
super.r6k(value);
|
|
157
157
|
} else {
|
|
158
|
-
super.
|
|
158
|
+
super.i6k(value);
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
161
|
}
|
|
@@ -170,39 +170,39 @@ function ComposerWithPrettyPrint() {
|
|
|
170
170
|
class $ extends Composer() {
|
|
171
171
|
constructor(writer, json) {
|
|
172
172
|
super(writer);
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
173
|
+
this.b6l_1 = json;
|
|
174
|
+
this.c6l_1 = 0;
|
|
175
175
|
}
|
|
176
|
-
|
|
177
|
-
this.
|
|
178
|
-
this.
|
|
176
|
+
b6k() {
|
|
177
|
+
this.a6k_1 = true;
|
|
178
|
+
this.c6l_1 = this.c6l_1 + 1 | 0;
|
|
179
179
|
}
|
|
180
|
-
|
|
181
|
-
this.
|
|
180
|
+
c6k() {
|
|
181
|
+
this.c6l_1 = this.c6l_1 - 1 | 0;
|
|
182
182
|
}
|
|
183
|
-
|
|
184
|
-
this.
|
|
185
|
-
this.
|
|
183
|
+
d6k() {
|
|
184
|
+
this.a6k_1 = false;
|
|
185
|
+
this.i6k('\n');
|
|
186
186
|
// Inline function 'kotlin.repeat' call
|
|
187
|
-
var times = this.
|
|
187
|
+
var times = this.c6l_1;
|
|
188
188
|
var inductionVariable = 0;
|
|
189
189
|
if (inductionVariable < times)
|
|
190
190
|
do {
|
|
191
191
|
var index = inductionVariable;
|
|
192
192
|
inductionVariable = inductionVariable + 1 | 0;
|
|
193
|
-
this.
|
|
193
|
+
this.i6k(this.b6l_1.n6g_1.d6i_1);
|
|
194
194
|
}
|
|
195
195
|
while (inductionVariable < times);
|
|
196
196
|
}
|
|
197
|
-
|
|
198
|
-
if (this.
|
|
199
|
-
this.
|
|
197
|
+
e6k() {
|
|
198
|
+
if (this.a6k_1)
|
|
199
|
+
this.a6k_1 = false;
|
|
200
200
|
else {
|
|
201
|
-
this.
|
|
201
|
+
this.d6k();
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
|
-
|
|
205
|
-
this.
|
|
204
|
+
f6k() {
|
|
205
|
+
this.g6k(_Char___init__impl__6a9atx(32));
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
initMetadataForClass($, 'ComposerWithPrettyPrint');
|
|
@@ -7,8 +7,8 @@ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/k
|
|
|
7
7
|
//region block: pre-declaration
|
|
8
8
|
//endregion
|
|
9
9
|
function readIfAbsent($this, descriptor, index) {
|
|
10
|
-
$this.
|
|
11
|
-
return $this.
|
|
10
|
+
$this.e6l_1 = (!descriptor.wv(index) && descriptor.vv(index).kv());
|
|
11
|
+
return $this.e6l_1;
|
|
12
12
|
}
|
|
13
13
|
function JsonElementMarker$readIfAbsent$ref(p0) {
|
|
14
14
|
var l = function (_this__u8e3s4, p0_0) {
|
|
@@ -24,14 +24,14 @@ function JsonElementMarker() {
|
|
|
24
24
|
class $ {
|
|
25
25
|
constructor(descriptor) {
|
|
26
26
|
var tmp = this;
|
|
27
|
-
tmp.
|
|
28
|
-
this.
|
|
27
|
+
tmp.d6l_1 = new (ElementMarker())(descriptor, JsonElementMarker$readIfAbsent$ref(this));
|
|
28
|
+
this.e6l_1 = false;
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
this.
|
|
30
|
+
f6l(index) {
|
|
31
|
+
this.d6l_1.o13(index);
|
|
32
32
|
}
|
|
33
|
-
|
|
34
|
-
return this.
|
|
33
|
+
g6l() {
|
|
34
|
+
return this.d6l_1.p13();
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
initMetadataForClass($, 'JsonElementMarker');
|
|
@@ -19,18 +19,18 @@ import { SerializationExceptioneqrdve3ts2n9 as SerializationException } from '..
|
|
|
19
19
|
//endregion
|
|
20
20
|
function invalidTrailingComma(_this__u8e3s4, entity) {
|
|
21
21
|
entity = entity === VOID ? 'object' : entity;
|
|
22
|
-
_this__u8e3s4.
|
|
22
|
+
_this__u8e3s4.h6l('Trailing comma before the end of JSON ' + entity, _this__u8e3s4.z6g_1 - 1 | 0, "Trailing commas are non-complaint JSON and not allowed by default. Use 'allowTrailingComma = true' in 'Json {}' builder to support them.");
|
|
23
23
|
}
|
|
24
24
|
function throwInvalidFloatingPointDecoded(_this__u8e3s4, result) {
|
|
25
|
-
_this__u8e3s4.
|
|
25
|
+
_this__u8e3s4.i6l('Unexpected special floating-point value ' + toString(result) + '. By default, ' + 'non-finite floating point values are prohibited because they do not conform JSON specification', VOID, "It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'");
|
|
26
26
|
}
|
|
27
27
|
var JsonEncodingExceptionClass;
|
|
28
28
|
function JsonEncodingException() {
|
|
29
29
|
if (JsonEncodingExceptionClass === VOID) {
|
|
30
30
|
class $ extends JsonException() {
|
|
31
|
-
static
|
|
32
|
-
var $this = this.
|
|
33
|
-
captureStack($this, $this.
|
|
31
|
+
static p6l(message) {
|
|
32
|
+
var $this = this.v6l(message);
|
|
33
|
+
captureStack($this, $this.o6l_1);
|
|
34
34
|
return $this;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
@@ -40,15 +40,15 @@ function JsonEncodingException() {
|
|
|
40
40
|
return JsonEncodingExceptionClass;
|
|
41
41
|
}
|
|
42
42
|
function InvalidKeyKindException(keyDescriptor) {
|
|
43
|
-
return JsonEncodingException().
|
|
43
|
+
return JsonEncodingException().p6l("Value of type '" + keyDescriptor.au() + "' can't be used in JSON as a key in the map. " + ("It should have either primitive or enum kind, but its kind is '" + keyDescriptor.ov().toString() + "'.\n") + "Use 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays.");
|
|
44
44
|
}
|
|
45
45
|
var JsonDecodingExceptionClass;
|
|
46
46
|
function JsonDecodingException() {
|
|
47
47
|
if (JsonDecodingExceptionClass === VOID) {
|
|
48
48
|
class $ extends JsonException() {
|
|
49
|
-
static
|
|
50
|
-
var $this = this.
|
|
51
|
-
captureStack($this, $this.
|
|
49
|
+
static w6j(message) {
|
|
50
|
+
var $this = this.v6l(message);
|
|
51
|
+
captureStack($this, $this.v6j_1);
|
|
52
52
|
return $this;
|
|
53
53
|
}
|
|
54
54
|
}
|
|
@@ -64,7 +64,7 @@ function InvalidFloatingPointDecoded(value, key, output) {
|
|
|
64
64
|
return JsonDecodingException_1(-1, unexpectedFpErrorMessage(value, key, output));
|
|
65
65
|
}
|
|
66
66
|
function JsonDecodingException_1(offset, message) {
|
|
67
|
-
return JsonDecodingException().
|
|
67
|
+
return JsonDecodingException().w6j(offset >= 0 ? 'Unexpected JSON token at offset ' + offset + ': ' + message : message);
|
|
68
68
|
}
|
|
69
69
|
function minify(_this__u8e3s4, offset) {
|
|
70
70
|
offset = offset === VOID ? -1 : offset;
|
|
@@ -88,15 +88,15 @@ function minify(_this__u8e3s4, offset) {
|
|
|
88
88
|
return prefix + toString(charSequenceSubSequence(_this__u8e3s4, tmp2, endIndex_0)) + suffix;
|
|
89
89
|
}
|
|
90
90
|
function InvalidFloatingPointEncoded(value, output) {
|
|
91
|
-
return JsonEncodingException().
|
|
91
|
+
return JsonEncodingException().p6l('Unexpected special floating-point value ' + toString(value) + '. By default, ' + "non-finite floating point values are prohibited because they do not conform JSON specification. It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\n" + ('Current output: ' + toString(minify(output))));
|
|
92
92
|
}
|
|
93
93
|
var JsonExceptionClass;
|
|
94
94
|
function JsonException() {
|
|
95
95
|
if (JsonExceptionClass === VOID) {
|
|
96
96
|
class $ extends SerializationException() {
|
|
97
|
-
static
|
|
97
|
+
static v6l(message) {
|
|
98
98
|
var $this = this.nu(message);
|
|
99
|
-
captureStack($this, $this.
|
|
99
|
+
captureStack($this, $this.u6l_1);
|
|
100
100
|
return $this;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -46,7 +46,7 @@ var JsonSerializationNamesKey;
|
|
|
46
46
|
function ignoreUnknownKeys(_this__u8e3s4, json) {
|
|
47
47
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
48
48
|
var tmp;
|
|
49
|
-
if (json.
|
|
49
|
+
if (json.n6g_1.y6h_1) {
|
|
50
50
|
tmp = true;
|
|
51
51
|
} else {
|
|
52
52
|
var tmp0 = _this__u8e3s4.rv();
|
|
@@ -91,7 +91,7 @@ function getJsonNameIndex(_this__u8e3s4, json, name) {
|
|
|
91
91
|
var index = _this__u8e3s4.tv(name);
|
|
92
92
|
if (!(index === -3))
|
|
93
93
|
return index;
|
|
94
|
-
if (!json.
|
|
94
|
+
if (!json.n6g_1.i6i_1)
|
|
95
95
|
return index;
|
|
96
96
|
return getJsonNameIndexSlowPath(_this__u8e3s4, json, name);
|
|
97
97
|
}
|
|
@@ -110,17 +110,17 @@ function getJsonElementName(_this__u8e3s4, json, index) {
|
|
|
110
110
|
}
|
|
111
111
|
function namingStrategy(_this__u8e3s4, json) {
|
|
112
112
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
113
|
-
return equals(_this__u8e3s4.ov(), CLASS_getInstance()) ? json.
|
|
113
|
+
return equals(_this__u8e3s4.ov(), CLASS_getInstance()) ? json.n6g_1.j6i_1 : null;
|
|
114
114
|
}
|
|
115
115
|
function deserializationNamesMap(_this__u8e3s4, descriptor) {
|
|
116
116
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
117
117
|
var tmp = get_schemaCache(_this__u8e3s4);
|
|
118
118
|
var tmp_0 = get_JsonDeserializationNamesKey();
|
|
119
|
-
return tmp.
|
|
119
|
+
return tmp.x6l(descriptor, tmp_0, deserializationNamesMap$lambda(descriptor, _this__u8e3s4));
|
|
120
120
|
}
|
|
121
121
|
function decodeCaseInsensitive(_this__u8e3s4, descriptor) {
|
|
122
122
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
123
|
-
return _this__u8e3s4.
|
|
123
|
+
return _this__u8e3s4.n6g_1.k6i_1 && equals(descriptor.ov(), ENUM_getInstance());
|
|
124
124
|
}
|
|
125
125
|
function getJsonNameIndexSlowPath(_this__u8e3s4, json, name) {
|
|
126
126
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -131,7 +131,7 @@ function serializationNamesIndices(_this__u8e3s4, json, strategy) {
|
|
|
131
131
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
132
132
|
var tmp = get_schemaCache(json);
|
|
133
133
|
var tmp_0 = get_JsonSerializationNamesKey();
|
|
134
|
-
return tmp.
|
|
134
|
+
return tmp.x6l(_this__u8e3s4, tmp_0, serializationNamesIndices$lambda(_this__u8e3s4, strategy));
|
|
135
135
|
}
|
|
136
136
|
function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
137
137
|
_init_properties_JsonNamesMap_kt__cbbp0k();
|
|
@@ -157,7 +157,7 @@ function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
var tmp0_safe_receiver = singleOrNull(destination);
|
|
160
|
-
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
160
|
+
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.y6l_1;
|
|
161
161
|
if (tmp1_safe_receiver == null)
|
|
162
162
|
null;
|
|
163
163
|
else {
|
|
@@ -184,7 +184,7 @@ function buildDeserializationNamesMap(_this__u8e3s4, json) {
|
|
|
184
184
|
// Inline function 'kotlin.js.asDynamic' call
|
|
185
185
|
tmp_0 = _this__u8e3s4.sv(i).toLowerCase();
|
|
186
186
|
} else if (!(strategyForClasses == null)) {
|
|
187
|
-
tmp_0 = strategyForClasses.
|
|
187
|
+
tmp_0 = strategyForClasses.z6l(_this__u8e3s4, i, _this__u8e3s4.sv(i));
|
|
188
188
|
} else {
|
|
189
189
|
tmp_0 = null;
|
|
190
190
|
}
|
|
@@ -211,7 +211,7 @@ function buildDeserializationNamesMap$putOrThrow(_this__u8e3s4, $this_buildDeser
|
|
|
211
211
|
// Inline function 'kotlin.collections.contains' call
|
|
212
212
|
// Inline function 'kotlin.collections.containsKey' call
|
|
213
213
|
if ((isInterface(_this__u8e3s4, KtMap()) ? _this__u8e3s4 : THROW_CCE()).u2(name)) {
|
|
214
|
-
throw JsonException().
|
|
214
|
+
throw JsonException().v6l("The suggested name '" + name + "' for " + entity + ' ' + $this_buildDeserializationNamesMap.sv(index) + ' is already one of the names for ' + entity + ' ' + ($this_buildDeserializationNamesMap.sv(getValue(_this__u8e3s4, name)) + ' in ' + toString($this_buildDeserializationNamesMap)));
|
|
215
215
|
}
|
|
216
216
|
// Inline function 'kotlin.collections.set' call
|
|
217
217
|
_this__u8e3s4.d3(name, index);
|
|
@@ -230,7 +230,7 @@ function serializationNamesIndices$lambda($this_serializationNamesIndices, $stra
|
|
|
230
230
|
while (tmp < tmp_0) {
|
|
231
231
|
var tmp_2 = tmp;
|
|
232
232
|
var baseName = $this_serializationNamesIndices.sv(tmp_2);
|
|
233
|
-
tmp_1[tmp_2] = $strategy.
|
|
233
|
+
tmp_1[tmp_2] = $strategy.z6l($this_serializationNamesIndices, tmp_2, baseName);
|
|
234
234
|
tmp = tmp + 1 | 0;
|
|
235
235
|
}
|
|
236
236
|
return tmp_1;
|
|
@@ -32,9 +32,9 @@ function Tombstone_getInstance() {
|
|
|
32
32
|
return Tombstone_instance;
|
|
33
33
|
}
|
|
34
34
|
function resize($this) {
|
|
35
|
-
var newSize = imul($this.
|
|
36
|
-
$this.
|
|
37
|
-
$this.
|
|
35
|
+
var newSize = imul($this.c6m_1, 2);
|
|
36
|
+
$this.a6m_1 = copyOf($this.a6m_1, newSize);
|
|
37
|
+
$this.b6m_1 = copyOf_0($this.b6m_1, newSize);
|
|
38
38
|
}
|
|
39
39
|
var JsonPathClass;
|
|
40
40
|
function JsonPath() {
|
|
@@ -43,7 +43,7 @@ function JsonPath() {
|
|
|
43
43
|
constructor() {
|
|
44
44
|
var tmp = this;
|
|
45
45
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
46
|
-
tmp.
|
|
46
|
+
tmp.a6m_1 = Array(8);
|
|
47
47
|
var tmp_0 = this;
|
|
48
48
|
var tmp_1 = 0;
|
|
49
49
|
var tmp_2 = new Int32Array(8);
|
|
@@ -51,71 +51,71 @@ function JsonPath() {
|
|
|
51
51
|
tmp_2[tmp_1] = -1;
|
|
52
52
|
tmp_1 = tmp_1 + 1 | 0;
|
|
53
53
|
}
|
|
54
|
-
tmp_0.
|
|
55
|
-
this.
|
|
54
|
+
tmp_0.b6m_1 = tmp_2;
|
|
55
|
+
this.c6m_1 = -1;
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
this.
|
|
59
|
-
var depth = this.
|
|
60
|
-
if (depth === this.
|
|
57
|
+
d6m(sd) {
|
|
58
|
+
this.c6m_1 = this.c6m_1 + 1 | 0;
|
|
59
|
+
var depth = this.c6m_1;
|
|
60
|
+
if (depth === this.a6m_1.length) {
|
|
61
61
|
resize(this);
|
|
62
62
|
}
|
|
63
|
-
this.
|
|
63
|
+
this.a6m_1[depth] = sd;
|
|
64
64
|
}
|
|
65
|
-
|
|
66
|
-
this.
|
|
65
|
+
e6m(index) {
|
|
66
|
+
this.b6m_1[this.c6m_1] = index;
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
f6m(key) {
|
|
69
69
|
var tmp;
|
|
70
|
-
if (!(this.
|
|
71
|
-
this.
|
|
72
|
-
tmp = this.
|
|
70
|
+
if (!(this.b6m_1[this.c6m_1] === -2)) {
|
|
71
|
+
this.c6m_1 = this.c6m_1 + 1 | 0;
|
|
72
|
+
tmp = this.c6m_1 === this.a6m_1.length;
|
|
73
73
|
} else {
|
|
74
74
|
tmp = false;
|
|
75
75
|
}
|
|
76
76
|
if (tmp) {
|
|
77
77
|
resize(this);
|
|
78
78
|
}
|
|
79
|
-
this.
|
|
80
|
-
this.
|
|
79
|
+
this.a6m_1[this.c6m_1] = key;
|
|
80
|
+
this.b6m_1[this.c6m_1] = -2;
|
|
81
81
|
}
|
|
82
|
-
|
|
83
|
-
if (this.
|
|
84
|
-
this.
|
|
82
|
+
g6m() {
|
|
83
|
+
if (this.b6m_1[this.c6m_1] === -2) {
|
|
84
|
+
this.a6m_1[this.c6m_1] = Tombstone_instance;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
|
|
88
|
-
var depth = this.
|
|
89
|
-
if (this.
|
|
90
|
-
this.
|
|
91
|
-
this.
|
|
87
|
+
h6m() {
|
|
88
|
+
var depth = this.c6m_1;
|
|
89
|
+
if (this.b6m_1[depth] === -2) {
|
|
90
|
+
this.b6m_1[depth] = -1;
|
|
91
|
+
this.c6m_1 = this.c6m_1 - 1 | 0;
|
|
92
92
|
}
|
|
93
|
-
if (!(this.
|
|
94
|
-
this.
|
|
93
|
+
if (!(this.c6m_1 === -1)) {
|
|
94
|
+
this.c6m_1 = this.c6m_1 - 1 | 0;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
i6m() {
|
|
98
98
|
// Inline function 'kotlin.text.buildString' call
|
|
99
99
|
// Inline function 'kotlin.apply' call
|
|
100
100
|
var this_0 = StringBuilder().a1();
|
|
101
101
|
this_0.jb('$');
|
|
102
102
|
// Inline function 'kotlin.repeat' call
|
|
103
|
-
var times = this.
|
|
103
|
+
var times = this.c6m_1 + 1 | 0;
|
|
104
104
|
var inductionVariable = 0;
|
|
105
105
|
if (inductionVariable < times)
|
|
106
106
|
do {
|
|
107
107
|
var index = inductionVariable;
|
|
108
108
|
inductionVariable = inductionVariable + 1 | 0;
|
|
109
|
-
var element = this.
|
|
109
|
+
var element = this.a6m_1[index];
|
|
110
110
|
if (!(element == null) ? isInterface(element, SerialDescriptor()) : false) {
|
|
111
111
|
if (equals(element.ov(), LIST_getInstance())) {
|
|
112
|
-
if (!(this.
|
|
112
|
+
if (!(this.b6m_1[index] === -1)) {
|
|
113
113
|
this_0.jb('[');
|
|
114
|
-
this_0.yh(this.
|
|
114
|
+
this_0.yh(this.b6m_1[index]);
|
|
115
115
|
this_0.jb(']');
|
|
116
116
|
}
|
|
117
117
|
} else {
|
|
118
|
-
var idx = this.
|
|
118
|
+
var idx = this.b6m_1[index];
|
|
119
119
|
if (idx >= 0) {
|
|
120
120
|
this_0.jb('.');
|
|
121
121
|
this_0.jb(element.sv(idx));
|
|
@@ -135,7 +135,7 @@ function JsonPath() {
|
|
|
135
135
|
return this_0.toString();
|
|
136
136
|
}
|
|
137
137
|
toString() {
|
|
138
|
-
return this.
|
|
138
|
+
return this.i6m();
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
initMetadataForClass($, 'JsonPath', JsonPath);
|