@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
|
@@ -26,12 +26,12 @@ import { isEmpty39cntv762vey6 as isEmpty } from './Segment.mjs';
|
|
|
26
26
|
//region block: pre-declaration
|
|
27
27
|
//endregion
|
|
28
28
|
function readString(_this__u8e3s4) {
|
|
29
|
-
_this__u8e3s4.
|
|
30
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
29
|
+
_this__u8e3s4.q2r(new (Long())(-1, 2147483647));
|
|
30
|
+
return commonReadUtf8(_this__u8e3s4.n2r(), _this__u8e3s4.n2r().i1());
|
|
31
31
|
}
|
|
32
32
|
function readString_0(_this__u8e3s4, byteCount) {
|
|
33
|
-
_this__u8e3s4.
|
|
34
|
-
return commonReadUtf8(_this__u8e3s4.
|
|
33
|
+
_this__u8e3s4.p2r(byteCount);
|
|
34
|
+
return commonReadUtf8(_this__u8e3s4.n2r(), byteCount);
|
|
35
35
|
}
|
|
36
36
|
function readString_1(_this__u8e3s4) {
|
|
37
37
|
return commonReadUtf8(_this__u8e3s4, _this__u8e3s4.i1());
|
|
@@ -40,20 +40,20 @@ function commonReadUtf8(_this__u8e3s4, byteCount) {
|
|
|
40
40
|
if (byteCount.equals(new (Long())(0, 0)))
|
|
41
41
|
return '';
|
|
42
42
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.forEachSegment' call
|
|
43
|
-
var curr = _this__u8e3s4.
|
|
43
|
+
var curr = _this__u8e3s4.g2r_1;
|
|
44
44
|
while (!(curr == null)) {
|
|
45
45
|
get_SegmentReadContextImpl();
|
|
46
46
|
if (toLong(curr.i1()).a2(byteCount) >= 0) {
|
|
47
47
|
var result = '';
|
|
48
48
|
// Inline function 'kotlinx.io.unsafe.withData' call
|
|
49
|
-
var tmp0 = curr.
|
|
50
|
-
var tmp2 = curr.
|
|
51
|
-
var tmp0_0 = curr.
|
|
49
|
+
var tmp0 = curr.n2u(true);
|
|
50
|
+
var tmp2 = curr.t2r_1;
|
|
51
|
+
var tmp0_0 = curr.u2r_1;
|
|
52
52
|
// Inline function 'kotlin.math.min' call
|
|
53
53
|
var b = tmp2 + byteCount.c2() | 0;
|
|
54
54
|
var tmp$ret$0 = Math.min(tmp0_0, b);
|
|
55
55
|
result = commonToUtf8String(tmp0, tmp2, tmp$ret$0);
|
|
56
|
-
_this__u8e3s4.
|
|
56
|
+
_this__u8e3s4.p2s(byteCount);
|
|
57
57
|
return result;
|
|
58
58
|
}
|
|
59
59
|
return commonToUtf8String(readByteArray(_this__u8e3s4, byteCount.c2()));
|
|
@@ -70,7 +70,7 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
|
70
70
|
checkBounds(toLong(size), toLong(startIndex), toLong(endIndex));
|
|
71
71
|
// Inline function 'kotlinx.io.writeToInternalBuffer' call
|
|
72
72
|
// Inline function 'kotlinx.io.commonWriteUtf8' call
|
|
73
|
-
var this_0 = _this__u8e3s4.
|
|
73
|
+
var this_0 = _this__u8e3s4.n2r();
|
|
74
74
|
var i = startIndex;
|
|
75
75
|
while (i < endIndex) {
|
|
76
76
|
var p0 = i;
|
|
@@ -80,15 +80,15 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
|
80
80
|
if (c < 128) {
|
|
81
81
|
$l$block_0: {
|
|
82
82
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
83
|
-
var tail = this_0.
|
|
83
|
+
var tail = this_0.x2s(1);
|
|
84
84
|
var ctx = get_SegmentWriteContextImpl();
|
|
85
85
|
var segmentOffset = -i | 0;
|
|
86
86
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
87
|
-
var b = i + tail.
|
|
87
|
+
var b = i + tail.c2t() | 0;
|
|
88
88
|
var runLimit = Math.min(endIndex, b);
|
|
89
89
|
var _unary__edvuaz = i;
|
|
90
90
|
i = _unary__edvuaz + 1 | 0;
|
|
91
|
-
ctx.
|
|
91
|
+
ctx.v2u(tail, segmentOffset + _unary__edvuaz | 0, toByte(c));
|
|
92
92
|
$l$loop: while (i < runLimit) {
|
|
93
93
|
var p0_0 = i;
|
|
94
94
|
// Inline function 'kotlin.code' call
|
|
@@ -98,89 +98,89 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
|
98
98
|
break $l$loop;
|
|
99
99
|
var _unary__edvuaz_0 = i;
|
|
100
100
|
i = _unary__edvuaz_0 + 1 | 0;
|
|
101
|
-
ctx.
|
|
101
|
+
ctx.v2u(tail, segmentOffset + _unary__edvuaz_0 | 0, toByte(c));
|
|
102
102
|
}
|
|
103
103
|
var bytesWritten = i + segmentOffset | 0;
|
|
104
104
|
if (bytesWritten === 1) {
|
|
105
|
-
tail.
|
|
105
|
+
tail.u2r_1 = tail.u2r_1 + bytesWritten | 0;
|
|
106
106
|
var tmp = this_0;
|
|
107
107
|
// Inline function 'kotlin.Long.plus' call
|
|
108
|
-
tmp.
|
|
108
|
+
tmp.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten));
|
|
109
109
|
break $l$block_0;
|
|
110
110
|
}
|
|
111
111
|
// Inline function 'kotlin.check' call
|
|
112
|
-
if (!(0 <= bytesWritten ? bytesWritten <= tail.
|
|
113
|
-
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.
|
|
112
|
+
if (!(0 <= bytesWritten ? bytesWritten <= tail.c2t() : false)) {
|
|
113
|
+
var message = 'Invalid number of bytes written: ' + bytesWritten + '. Should be in 0..' + tail.c2t();
|
|
114
114
|
throw IllegalStateException().o4(toString(message));
|
|
115
115
|
}
|
|
116
116
|
if (!(bytesWritten === 0)) {
|
|
117
|
-
tail.
|
|
117
|
+
tail.u2r_1 = tail.u2r_1 + bytesWritten | 0;
|
|
118
118
|
var tmp_0 = this_0;
|
|
119
119
|
// Inline function 'kotlin.Long.plus' call
|
|
120
|
-
tmp_0.
|
|
120
|
+
tmp_0.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten));
|
|
121
121
|
break $l$block_0;
|
|
122
122
|
}
|
|
123
123
|
if (isEmpty(tail)) {
|
|
124
|
-
this_0.
|
|
124
|
+
this_0.v2t();
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
} else if (c < 2048) {
|
|
128
128
|
$l$block_2: {
|
|
129
129
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
130
|
-
var tail_0 = this_0.
|
|
131
|
-
get_SegmentWriteContextImpl().
|
|
130
|
+
var tail_0 = this_0.x2s(2);
|
|
131
|
+
get_SegmentWriteContextImpl().u2u(tail_0, 0, toByte(c >> 6 | 192), toByte(c & 63 | 128));
|
|
132
132
|
var bytesWritten_0 = 2;
|
|
133
133
|
if (bytesWritten_0 === 2) {
|
|
134
|
-
tail_0.
|
|
134
|
+
tail_0.u2r_1 = tail_0.u2r_1 + bytesWritten_0 | 0;
|
|
135
135
|
var tmp_1 = this_0;
|
|
136
136
|
// Inline function 'kotlin.Long.plus' call
|
|
137
|
-
tmp_1.
|
|
137
|
+
tmp_1.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten_0));
|
|
138
138
|
break $l$block_2;
|
|
139
139
|
}
|
|
140
140
|
// Inline function 'kotlin.check' call
|
|
141
|
-
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.
|
|
142
|
-
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.
|
|
141
|
+
if (!(0 <= bytesWritten_0 ? bytesWritten_0 <= tail_0.c2t() : false)) {
|
|
142
|
+
var message_0 = 'Invalid number of bytes written: ' + bytesWritten_0 + '. Should be in 0..' + tail_0.c2t();
|
|
143
143
|
throw IllegalStateException().o4(toString(message_0));
|
|
144
144
|
}
|
|
145
145
|
if (!(bytesWritten_0 === 0)) {
|
|
146
|
-
tail_0.
|
|
146
|
+
tail_0.u2r_1 = tail_0.u2r_1 + bytesWritten_0 | 0;
|
|
147
147
|
var tmp_2 = this_0;
|
|
148
148
|
// Inline function 'kotlin.Long.plus' call
|
|
149
|
-
tmp_2.
|
|
149
|
+
tmp_2.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten_0));
|
|
150
150
|
break $l$block_2;
|
|
151
151
|
}
|
|
152
152
|
if (isEmpty(tail_0)) {
|
|
153
|
-
this_0.
|
|
153
|
+
this_0.v2t();
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
i = i + 1 | 0;
|
|
157
157
|
} else if (c < 55296 || c > 57343) {
|
|
158
158
|
$l$block_4: {
|
|
159
159
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
160
|
-
var tail_1 = this_0.
|
|
161
|
-
get_SegmentWriteContextImpl().
|
|
160
|
+
var tail_1 = this_0.x2s(3);
|
|
161
|
+
get_SegmentWriteContextImpl().t2u(tail_1, 0, toByte(c >> 12 | 224), toByte(c >> 6 & 63 | 128), toByte(c & 63 | 128));
|
|
162
162
|
var bytesWritten_1 = 3;
|
|
163
163
|
if (bytesWritten_1 === 3) {
|
|
164
|
-
tail_1.
|
|
164
|
+
tail_1.u2r_1 = tail_1.u2r_1 + bytesWritten_1 | 0;
|
|
165
165
|
var tmp_3 = this_0;
|
|
166
166
|
// Inline function 'kotlin.Long.plus' call
|
|
167
|
-
tmp_3.
|
|
167
|
+
tmp_3.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten_1));
|
|
168
168
|
break $l$block_4;
|
|
169
169
|
}
|
|
170
170
|
// Inline function 'kotlin.check' call
|
|
171
|
-
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.
|
|
172
|
-
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.
|
|
171
|
+
if (!(0 <= bytesWritten_1 ? bytesWritten_1 <= tail_1.c2t() : false)) {
|
|
172
|
+
var message_1 = 'Invalid number of bytes written: ' + bytesWritten_1 + '. Should be in 0..' + tail_1.c2t();
|
|
173
173
|
throw IllegalStateException().o4(toString(message_1));
|
|
174
174
|
}
|
|
175
175
|
if (!(bytesWritten_1 === 0)) {
|
|
176
|
-
tail_1.
|
|
176
|
+
tail_1.u2r_1 = tail_1.u2r_1 + bytesWritten_1 | 0;
|
|
177
177
|
var tmp_4 = this_0;
|
|
178
178
|
// Inline function 'kotlin.Long.plus' call
|
|
179
|
-
tmp_4.
|
|
179
|
+
tmp_4.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten_1));
|
|
180
180
|
break $l$block_4;
|
|
181
181
|
}
|
|
182
182
|
if (isEmpty(tail_1)) {
|
|
183
|
-
this_0.
|
|
183
|
+
this_0.v2t();
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
i = i + 1 | 0;
|
|
@@ -199,43 +199,43 @@ function writeString(_this__u8e3s4, string, startIndex, endIndex) {
|
|
|
199
199
|
// Inline function 'kotlin.code' call
|
|
200
200
|
var this_4 = _Char___init__impl__6a9atx(63);
|
|
201
201
|
var tmp$ret$26 = Char__toInt_impl_vasixd(this_4);
|
|
202
|
-
this_0.
|
|
202
|
+
this_0.l2t(toByte(tmp$ret$26));
|
|
203
203
|
i = i + 1 | 0;
|
|
204
204
|
} else {
|
|
205
205
|
var codePoint = 65536 + ((c & 1023) << 10 | low & 1023) | 0;
|
|
206
206
|
$l$block_6: {
|
|
207
207
|
// Inline function 'kotlinx.io.unsafe.UnsafeBufferOperations.writeToTail' call
|
|
208
|
-
var tail_2 = this_0.
|
|
209
|
-
get_SegmentWriteContextImpl().
|
|
208
|
+
var tail_2 = this_0.x2s(4);
|
|
209
|
+
get_SegmentWriteContextImpl().s2u(tail_2, 0, toByte(codePoint >> 18 | 240), toByte(codePoint >> 12 & 63 | 128), toByte(codePoint >> 6 & 63 | 128), toByte(codePoint & 63 | 128));
|
|
210
210
|
var bytesWritten_2 = 4;
|
|
211
211
|
if (bytesWritten_2 === 4) {
|
|
212
|
-
tail_2.
|
|
212
|
+
tail_2.u2r_1 = tail_2.u2r_1 + bytesWritten_2 | 0;
|
|
213
213
|
var tmp_6 = this_0;
|
|
214
214
|
// Inline function 'kotlin.Long.plus' call
|
|
215
|
-
tmp_6.
|
|
215
|
+
tmp_6.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten_2));
|
|
216
216
|
break $l$block_6;
|
|
217
217
|
}
|
|
218
218
|
// Inline function 'kotlin.check' call
|
|
219
|
-
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.
|
|
220
|
-
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.
|
|
219
|
+
if (!(0 <= bytesWritten_2 ? bytesWritten_2 <= tail_2.c2t() : false)) {
|
|
220
|
+
var message_2 = 'Invalid number of bytes written: ' + bytesWritten_2 + '. Should be in 0..' + tail_2.c2t();
|
|
221
221
|
throw IllegalStateException().o4(toString(message_2));
|
|
222
222
|
}
|
|
223
223
|
if (!(bytesWritten_2 === 0)) {
|
|
224
|
-
tail_2.
|
|
224
|
+
tail_2.u2r_1 = tail_2.u2r_1 + bytesWritten_2 | 0;
|
|
225
225
|
var tmp_7 = this_0;
|
|
226
226
|
// Inline function 'kotlin.Long.plus' call
|
|
227
|
-
tmp_7.
|
|
227
|
+
tmp_7.i2r_1 = this_0.i2r_1.p3(toLong(bytesWritten_2));
|
|
228
228
|
break $l$block_6;
|
|
229
229
|
}
|
|
230
230
|
if (isEmpty(tail_2)) {
|
|
231
|
-
this_0.
|
|
231
|
+
this_0.v2t();
|
|
232
232
|
}
|
|
233
233
|
}
|
|
234
234
|
i = i + 2 | 0;
|
|
235
235
|
}
|
|
236
236
|
}
|
|
237
237
|
}
|
|
238
|
-
_this__u8e3s4.
|
|
238
|
+
_this__u8e3s4.h2s();
|
|
239
239
|
}
|
|
240
240
|
//region block: exports
|
|
241
241
|
export {
|
|
@@ -35,8 +35,8 @@ var SegmentReadContextImpl$1Class;
|
|
|
35
35
|
function SegmentReadContextImpl$1() {
|
|
36
36
|
if (SegmentReadContextImpl$1Class === VOID) {
|
|
37
37
|
class $ {
|
|
38
|
-
|
|
39
|
-
return segment.
|
|
38
|
+
t2t(segment, offset) {
|
|
39
|
+
return segment.o2s(offset);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
initMetadataForClass($);
|
|
@@ -48,17 +48,17 @@ var SegmentWriteContextImpl$1Class;
|
|
|
48
48
|
function SegmentWriteContextImpl$1() {
|
|
49
49
|
if (SegmentWriteContextImpl$1Class === VOID) {
|
|
50
50
|
class $ {
|
|
51
|
-
|
|
52
|
-
segment.
|
|
51
|
+
v2u(segment, offset, value) {
|
|
52
|
+
segment.o2u(offset, value);
|
|
53
53
|
}
|
|
54
|
-
|
|
55
|
-
segment.
|
|
54
|
+
u2u(segment, offset, b0, b1) {
|
|
55
|
+
segment.p2u(offset, b0, b1);
|
|
56
56
|
}
|
|
57
|
-
|
|
58
|
-
segment.
|
|
57
|
+
t2u(segment, offset, b0, b1, b2) {
|
|
58
|
+
segment.q2u(offset, b0, b1, b2);
|
|
59
59
|
}
|
|
60
|
-
|
|
61
|
-
segment.
|
|
60
|
+
s2u(segment, offset, b0, b1, b2, b3) {
|
|
61
|
+
segment.r2u(offset, b0, b1, b2, b3);
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
initMetadataForClass($);
|
|
@@ -70,8 +70,8 @@ var BufferIterationContextImpl$1Class;
|
|
|
70
70
|
function BufferIterationContextImpl$1() {
|
|
71
71
|
if (BufferIterationContextImpl$1Class === VOID) {
|
|
72
72
|
class $ {
|
|
73
|
-
|
|
74
|
-
return get_SegmentReadContextImpl().
|
|
73
|
+
t2t(segment, offset) {
|
|
74
|
+
return get_SegmentReadContextImpl().t2t(segment, offset);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
initMetadataForClass($);
|
package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs
CHANGED
|
@@ -58,12 +58,12 @@ function Json() {
|
|
|
58
58
|
class $ {
|
|
59
59
|
constructor(configuration, serializersModule) {
|
|
60
60
|
Default_getInstance();
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
61
|
+
this.n6g_1 = configuration;
|
|
62
|
+
this.o6g_1 = serializersModule;
|
|
63
|
+
this.p6g_1 = new (DescriptorSchemaCache())();
|
|
64
64
|
}
|
|
65
65
|
yx() {
|
|
66
|
-
return this.
|
|
66
|
+
return this.o6g_1;
|
|
67
67
|
}
|
|
68
68
|
eu(serializer, value) {
|
|
69
69
|
var result = new (JsonToStringWriter())();
|
|
@@ -71,14 +71,14 @@ function Json() {
|
|
|
71
71
|
encodeByWriter(this, result, serializer, value);
|
|
72
72
|
return result.toString();
|
|
73
73
|
}finally {
|
|
74
|
-
result.
|
|
74
|
+
result.m2o();
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
fu(deserializer, string) {
|
|
78
78
|
var lexer = StringJsonLexer(this, string);
|
|
79
79
|
var input = new (StreamingJsonDecoder())(this, WriteMode_OBJ_getInstance(), lexer, deserializer.xs(), null);
|
|
80
80
|
var result = input.jx(deserializer);
|
|
81
|
-
lexer.
|
|
81
|
+
lexer.d6h();
|
|
82
82
|
return result;
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -91,54 +91,54 @@ function Json_0(from, builderAction) {
|
|
|
91
91
|
from = from === VOID ? Default_getInstance() : from;
|
|
92
92
|
var builder = new (JsonBuilder())(from);
|
|
93
93
|
builderAction(builder);
|
|
94
|
-
var conf = builder.
|
|
95
|
-
return new (JsonImpl())(conf, builder.
|
|
94
|
+
var conf = builder.w6h();
|
|
95
|
+
return new (JsonImpl())(conf, builder.v6h_1);
|
|
96
96
|
}
|
|
97
97
|
var JsonBuilderClass;
|
|
98
98
|
function JsonBuilder() {
|
|
99
99
|
if (JsonBuilderClass === VOID) {
|
|
100
100
|
class $ {
|
|
101
101
|
constructor(json) {
|
|
102
|
-
this.
|
|
103
|
-
this.
|
|
104
|
-
this.
|
|
105
|
-
this.
|
|
106
|
-
this.
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
109
|
-
this.
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
113
|
-
this.
|
|
114
|
-
this.
|
|
115
|
-
this.
|
|
116
|
-
this.
|
|
117
|
-
this.
|
|
118
|
-
this.
|
|
119
|
-
this.
|
|
102
|
+
this.e6h_1 = json.n6g_1.x6h_1;
|
|
103
|
+
this.f6h_1 = json.n6g_1.c6i_1;
|
|
104
|
+
this.g6h_1 = json.n6g_1.y6h_1;
|
|
105
|
+
this.h6h_1 = json.n6g_1.z6h_1;
|
|
106
|
+
this.i6h_1 = json.n6g_1.b6i_1;
|
|
107
|
+
this.j6h_1 = json.n6g_1.d6i_1;
|
|
108
|
+
this.k6h_1 = json.n6g_1.e6i_1;
|
|
109
|
+
this.l6h_1 = json.n6g_1.g6i_1;
|
|
110
|
+
this.m6h_1 = json.n6g_1.n6i_1;
|
|
111
|
+
this.n6h_1 = json.n6g_1.i6i_1;
|
|
112
|
+
this.o6h_1 = json.n6g_1.j6i_1;
|
|
113
|
+
this.p6h_1 = json.n6g_1.k6i_1;
|
|
114
|
+
this.q6h_1 = json.n6g_1.l6i_1;
|
|
115
|
+
this.r6h_1 = json.n6g_1.m6i_1;
|
|
116
|
+
this.s6h_1 = json.n6g_1.h6i_1;
|
|
117
|
+
this.t6h_1 = json.n6g_1.a6i_1;
|
|
118
|
+
this.u6h_1 = json.n6g_1.f6i_1;
|
|
119
|
+
this.v6h_1 = json.yx();
|
|
120
120
|
}
|
|
121
|
-
|
|
122
|
-
if (this.
|
|
121
|
+
w6h() {
|
|
122
|
+
if (this.u6h_1) {
|
|
123
123
|
// Inline function 'kotlin.require' call
|
|
124
|
-
if (!(this.
|
|
124
|
+
if (!(this.l6h_1 === 'type')) {
|
|
125
125
|
var message = 'Class discriminator should not be specified when array polymorphism is specified';
|
|
126
126
|
throw IllegalArgumentException().u(toString(message));
|
|
127
127
|
}
|
|
128
128
|
// Inline function 'kotlin.require' call
|
|
129
|
-
if (!this.
|
|
129
|
+
if (!this.m6h_1.equals(ClassDiscriminatorMode_POLYMORPHIC_getInstance())) {
|
|
130
130
|
var message_0 = 'useArrayPolymorphism option can only be used if classDiscriminatorMode in a default POLYMORPHIC state.';
|
|
131
131
|
throw IllegalArgumentException().u(toString(message_0));
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
if (!this.
|
|
134
|
+
if (!this.i6h_1) {
|
|
135
135
|
// Inline function 'kotlin.require' call
|
|
136
|
-
if (!(this.
|
|
136
|
+
if (!(this.j6h_1 === ' ')) {
|
|
137
137
|
var message_1 = 'Indent should not be specified when default printing mode is used';
|
|
138
138
|
throw IllegalArgumentException().u(toString(message_1));
|
|
139
139
|
}
|
|
140
|
-
} else if (!(this.
|
|
141
|
-
var tmp0 = this.
|
|
140
|
+
} else if (!(this.j6h_1 === ' ')) {
|
|
141
|
+
var tmp0 = this.j6h_1;
|
|
142
142
|
var tmp$ret$7;
|
|
143
143
|
$l$block: {
|
|
144
144
|
// Inline function 'kotlin.text.all' call
|
|
@@ -156,11 +156,11 @@ function JsonBuilder() {
|
|
|
156
156
|
var allWhitespaces = tmp$ret$7;
|
|
157
157
|
// Inline function 'kotlin.require' call
|
|
158
158
|
if (!allWhitespaces) {
|
|
159
|
-
var message_2 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.
|
|
159
|
+
var message_2 = 'Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had ' + this.j6h_1;
|
|
160
160
|
throw IllegalArgumentException().u(toString(message_2));
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
|
-
return new (JsonConfiguration())(this.
|
|
163
|
+
return new (JsonConfiguration())(this.e6h_1, this.g6h_1, this.h6h_1, this.t6h_1, this.i6h_1, this.f6h_1, this.j6h_1, this.k6h_1, this.u6h_1, this.l6h_1, this.s6h_1, this.n6h_1, this.o6h_1, this.p6h_1, this.q6h_1, this.r6h_1, this.m6h_1);
|
|
164
164
|
}
|
|
165
165
|
}
|
|
166
166
|
initMetadataForClass($, 'JsonBuilder');
|
|
@@ -171,7 +171,7 @@ function JsonBuilder() {
|
|
|
171
171
|
function validateConfiguration($this) {
|
|
172
172
|
if (equals($this.yx(), EmptySerializersModule()))
|
|
173
173
|
return Unit_instance;
|
|
174
|
-
var collector = new (JsonSerializersModuleValidator())($this.
|
|
174
|
+
var collector = new (JsonSerializersModuleValidator())($this.n6g_1);
|
|
175
175
|
$this.yx().q1d(collector);
|
|
176
176
|
}
|
|
177
177
|
var JsonImplClass;
|
|
@@ -29,26 +29,26 @@ function JsonConfiguration() {
|
|
|
29
29
|
allowTrailingComma = allowTrailingComma === VOID ? false : allowTrailingComma;
|
|
30
30
|
allowComments = allowComments === VOID ? false : allowComments;
|
|
31
31
|
classDiscriminatorMode = classDiscriminatorMode === VOID ? ClassDiscriminatorMode_POLYMORPHIC_getInstance() : classDiscriminatorMode;
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
48
|
-
this.
|
|
32
|
+
this.x6h_1 = encodeDefaults;
|
|
33
|
+
this.y6h_1 = ignoreUnknownKeys;
|
|
34
|
+
this.z6h_1 = isLenient;
|
|
35
|
+
this.a6i_1 = allowStructuredMapKeys;
|
|
36
|
+
this.b6i_1 = prettyPrint;
|
|
37
|
+
this.c6i_1 = explicitNulls;
|
|
38
|
+
this.d6i_1 = prettyPrintIndent;
|
|
39
|
+
this.e6i_1 = coerceInputValues;
|
|
40
|
+
this.f6i_1 = useArrayPolymorphism;
|
|
41
|
+
this.g6i_1 = classDiscriminator;
|
|
42
|
+
this.h6i_1 = allowSpecialFloatingPointValues;
|
|
43
|
+
this.i6i_1 = useAlternativeNames;
|
|
44
|
+
this.j6i_1 = namingStrategy;
|
|
45
|
+
this.k6i_1 = decodeEnumsCaseInsensitive;
|
|
46
|
+
this.l6i_1 = allowTrailingComma;
|
|
47
|
+
this.m6i_1 = allowComments;
|
|
48
|
+
this.n6i_1 = classDiscriminatorMode;
|
|
49
49
|
}
|
|
50
50
|
toString() {
|
|
51
|
-
return 'JsonConfiguration(encodeDefaults=' + this.
|
|
51
|
+
return 'JsonConfiguration(encodeDefaults=' + this.x6h_1 + ', ignoreUnknownKeys=' + this.y6h_1 + ', isLenient=' + this.z6h_1 + ', ' + ('allowStructuredMapKeys=' + this.a6i_1 + ', prettyPrint=' + this.b6i_1 + ', explicitNulls=' + this.c6i_1 + ', ') + ("prettyPrintIndent='" + this.d6i_1 + "', coerceInputValues=" + this.e6i_1 + ', useArrayPolymorphism=' + this.f6i_1 + ', ') + ("classDiscriminator='" + this.g6i_1 + "', allowSpecialFloatingPointValues=" + this.h6i_1 + ', ') + ('useAlternativeNames=' + this.i6i_1 + ', namingStrategy=' + toString(this.j6i_1) + ', decodeEnumsCaseInsensitive=' + this.k6i_1 + ', ') + ('allowTrailingComma=' + this.l6i_1 + ', allowComments=' + this.m6i_1 + ', classDiscriminatorMode=' + this.n6i_1.toString() + ')');
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
initMetadataForClass($, 'JsonConfiguration');
|