@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
|
@@ -10,14 +10,14 @@ var ClosedByteChannelExceptionClass;
|
|
|
10
10
|
function ClosedByteChannelException() {
|
|
11
11
|
if (ClosedByteChannelExceptionClass === VOID) {
|
|
12
12
|
class $ extends IOException() {
|
|
13
|
-
static
|
|
13
|
+
static o3p(cause) {
|
|
14
14
|
cause = cause === VOID ? null : cause;
|
|
15
|
-
var $this = this.
|
|
16
|
-
captureStack($this, $this.
|
|
15
|
+
var $this = this.a2v(cause == null ? null : cause.message, cause);
|
|
16
|
+
captureStack($this, $this.n3p_1);
|
|
17
17
|
return $this;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
initMetadataForClass($, 'ClosedByteChannelException', $.
|
|
20
|
+
initMetadataForClass($, 'ClosedByteChannelException', $.o3p);
|
|
21
21
|
ClosedByteChannelExceptionClass = $;
|
|
22
22
|
}
|
|
23
23
|
return ClosedByteChannelExceptionClass;
|
|
@@ -26,14 +26,14 @@ var ClosedReadChannelExceptionClass;
|
|
|
26
26
|
function ClosedReadChannelException() {
|
|
27
27
|
if (ClosedReadChannelExceptionClass === VOID) {
|
|
28
28
|
class $ extends ClosedByteChannelException() {
|
|
29
|
-
static
|
|
29
|
+
static b39(cause) {
|
|
30
30
|
cause = cause === VOID ? null : cause;
|
|
31
|
-
var $this = this.
|
|
32
|
-
captureStack($this, $this.
|
|
31
|
+
var $this = this.o3p(cause);
|
|
32
|
+
captureStack($this, $this.a39_1);
|
|
33
33
|
return $this;
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
|
-
initMetadataForClass($, 'ClosedReadChannelException', $.
|
|
36
|
+
initMetadataForClass($, 'ClosedReadChannelException', $.b39);
|
|
37
37
|
ClosedReadChannelExceptionClass = $;
|
|
38
38
|
}
|
|
39
39
|
return ClosedReadChannelExceptionClass;
|
|
@@ -42,14 +42,14 @@ var ClosedWriteChannelExceptionClass;
|
|
|
42
42
|
function ClosedWriteChannelException() {
|
|
43
43
|
if (ClosedWriteChannelExceptionClass === VOID) {
|
|
44
44
|
class $ extends ClosedByteChannelException() {
|
|
45
|
-
static
|
|
45
|
+
static g39(cause) {
|
|
46
46
|
cause = cause === VOID ? null : cause;
|
|
47
|
-
var $this = this.
|
|
48
|
-
captureStack($this, $this.
|
|
47
|
+
var $this = this.o3p(cause);
|
|
48
|
+
captureStack($this, $this.f39_1);
|
|
49
49
|
return $this;
|
|
50
50
|
}
|
|
51
51
|
}
|
|
52
|
-
initMetadataForClass($, 'ClosedWriteChannelException', $.
|
|
52
|
+
initMetadataForClass($, 'ClosedWriteChannelException', $.g39);
|
|
53
53
|
ClosedWriteChannelExceptionClass = $;
|
|
54
54
|
}
|
|
55
55
|
return ClosedWriteChannelExceptionClass;
|
|
@@ -26,21 +26,21 @@ function LineEndingMode__plus_impl_ttpz2j($this, other) {
|
|
|
26
26
|
}
|
|
27
27
|
function LineEndingMode__toString_impl_j4h76r($this) {
|
|
28
28
|
var tmp;
|
|
29
|
-
if ($this === Companion_getInstance().
|
|
29
|
+
if ($this === Companion_getInstance().h3h_1) {
|
|
30
30
|
tmp = 'CR';
|
|
31
|
-
} else if ($this === Companion_getInstance().
|
|
31
|
+
} else if ($this === Companion_getInstance().i3h_1) {
|
|
32
32
|
tmp = 'LF';
|
|
33
|
-
} else if ($this === Companion_getInstance().
|
|
33
|
+
} else if ($this === Companion_getInstance().j3h_1) {
|
|
34
34
|
tmp = 'CRLF';
|
|
35
35
|
} else {
|
|
36
36
|
// Inline function 'kotlin.collections.filter' call
|
|
37
|
-
var tmp0 = Companion_getInstance().
|
|
37
|
+
var tmp0 = Companion_getInstance().l3h_1;
|
|
38
38
|
// Inline function 'kotlin.collections.filterTo' call
|
|
39
39
|
var destination = ArrayList().l1();
|
|
40
40
|
var _iterator__ex2g4s = tmp0.d1();
|
|
41
41
|
while (_iterator__ex2g4s.e1()) {
|
|
42
42
|
var element = _iterator__ex2g4s.f1();
|
|
43
|
-
var it = element.
|
|
43
|
+
var it = element.f3q_1;
|
|
44
44
|
if (LineEndingMode__contains_impl_q5pr68($this, it)) {
|
|
45
45
|
destination.m(element);
|
|
46
46
|
}
|
|
@@ -55,11 +55,11 @@ function Companion() {
|
|
|
55
55
|
class $ {
|
|
56
56
|
constructor() {
|
|
57
57
|
Companion_instance = this;
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
58
|
+
this.h3h_1 = _LineEndingMode___init__impl__jo5bul(1);
|
|
59
|
+
this.i3h_1 = _LineEndingMode___init__impl__jo5bul(2);
|
|
60
|
+
this.j3h_1 = _LineEndingMode___init__impl__jo5bul(4);
|
|
61
|
+
this.k3h_1 = _LineEndingMode___init__impl__jo5bul(7);
|
|
62
|
+
this.l3h_1 = listOf([new (LineEndingMode())(this.h3h_1), new (LineEndingMode())(this.i3h_1), new (LineEndingMode())(this.j3h_1)]);
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
initMetadataForCompanion($);
|
|
@@ -79,7 +79,7 @@ function LineEndingMode__hashCode_impl_2mopm4($this) {
|
|
|
79
79
|
function LineEndingMode__equals_impl_qyr4nk($this, other) {
|
|
80
80
|
if (!(other instanceof LineEndingMode()))
|
|
81
81
|
return false;
|
|
82
|
-
if (!($this === (other instanceof LineEndingMode() ? other.
|
|
82
|
+
if (!($this === (other instanceof LineEndingMode() ? other.f3q_1 : THROW_CCE())))
|
|
83
83
|
return false;
|
|
84
84
|
return true;
|
|
85
85
|
}
|
|
@@ -89,16 +89,16 @@ function LineEndingMode() {
|
|
|
89
89
|
class $ {
|
|
90
90
|
constructor(mode) {
|
|
91
91
|
Companion_getInstance();
|
|
92
|
-
this.
|
|
92
|
+
this.f3q_1 = mode;
|
|
93
93
|
}
|
|
94
94
|
toString() {
|
|
95
|
-
return LineEndingMode__toString_impl_j4h76r(this.
|
|
95
|
+
return LineEndingMode__toString_impl_j4h76r(this.f3q_1);
|
|
96
96
|
}
|
|
97
97
|
hashCode() {
|
|
98
|
-
return LineEndingMode__hashCode_impl_2mopm4(this.
|
|
98
|
+
return LineEndingMode__hashCode_impl_2mopm4(this.f3q_1);
|
|
99
99
|
}
|
|
100
100
|
equals(other) {
|
|
101
|
-
return LineEndingMode__equals_impl_qyr4nk(this.
|
|
101
|
+
return LineEndingMode__equals_impl_qyr4nk(this.f3q_1, other);
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
104
|
initMetadataForClass($, 'LineEndingMode');
|
|
@@ -18,46 +18,46 @@ function SourceByteReadChannel() {
|
|
|
18
18
|
if (SourceByteReadChannelClass === VOID) {
|
|
19
19
|
class $ {
|
|
20
20
|
constructor(source) {
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
21
|
+
this.g3q_1 = source;
|
|
22
|
+
this.h3q_1 = null;
|
|
23
23
|
}
|
|
24
|
-
|
|
25
|
-
var tmp0_safe_receiver = this.
|
|
26
|
-
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.
|
|
24
|
+
f3b() {
|
|
25
|
+
var tmp0_safe_receiver = this.h3q_1;
|
|
26
|
+
return tmp0_safe_receiver == null ? null : tmp0_safe_receiver.g3b();
|
|
27
27
|
}
|
|
28
|
-
|
|
29
|
-
return this.
|
|
28
|
+
h3b() {
|
|
29
|
+
return this.g3q_1.o2r();
|
|
30
30
|
}
|
|
31
|
-
|
|
32
|
-
var tmp0_safe_receiver = this.
|
|
31
|
+
a3b() {
|
|
32
|
+
var tmp0_safe_receiver = this.f3b();
|
|
33
33
|
if (tmp0_safe_receiver == null)
|
|
34
34
|
null;
|
|
35
35
|
else {
|
|
36
36
|
// Inline function 'kotlin.let' call
|
|
37
37
|
throw tmp0_safe_receiver;
|
|
38
38
|
}
|
|
39
|
-
return this.
|
|
39
|
+
return this.g3q_1.n2r();
|
|
40
40
|
}
|
|
41
|
-
|
|
42
|
-
var tmp0_safe_receiver = this.
|
|
41
|
+
i3b(min, $completion) {
|
|
42
|
+
var tmp0_safe_receiver = this.f3b();
|
|
43
43
|
if (tmp0_safe_receiver == null)
|
|
44
44
|
null;
|
|
45
45
|
else {
|
|
46
46
|
// Inline function 'kotlin.let' call
|
|
47
47
|
throw tmp0_safe_receiver;
|
|
48
48
|
}
|
|
49
|
-
return this.
|
|
49
|
+
return this.g3q_1.q2r(toLong(min));
|
|
50
50
|
}
|
|
51
|
-
|
|
52
|
-
if (!(this.
|
|
51
|
+
l3b(cause) {
|
|
52
|
+
if (!(this.h3q_1 == null))
|
|
53
53
|
return Unit_instance;
|
|
54
|
-
this.
|
|
54
|
+
this.g3q_1.v5();
|
|
55
55
|
var tmp = this;
|
|
56
56
|
var tmp1_elvis_lhs = cause == null ? null : cause.message;
|
|
57
|
-
tmp.
|
|
57
|
+
tmp.h3q_1 = new (CloseToken())(IOException().a2v(tmp1_elvis_lhs == null ? 'Channel was cancelled' : tmp1_elvis_lhs, cause));
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
-
protoOf($).
|
|
60
|
+
protoOf($).j3b = awaitContent$default;
|
|
61
61
|
initMetadataForClass($, 'SourceByteReadChannel', VOID, VOID, [ByteReadChannel()], [1]);
|
|
62
62
|
SourceByteReadChannelClass = $;
|
|
63
63
|
}
|
|
@@ -36,13 +36,13 @@ var CompanionClass;
|
|
|
36
36
|
function Companion() {
|
|
37
37
|
if (CompanionClass === VOID) {
|
|
38
38
|
class $ {
|
|
39
|
-
|
|
39
|
+
d3r(name) {
|
|
40
40
|
switch (name) {
|
|
41
41
|
case 'UTF-8':
|
|
42
42
|
case 'utf-8':
|
|
43
43
|
case 'UTF8':
|
|
44
44
|
case 'utf8':
|
|
45
|
-
return Charsets_getInstance().
|
|
45
|
+
return Charsets_getInstance().m3q_1;
|
|
46
46
|
}
|
|
47
47
|
var tmp;
|
|
48
48
|
var tmp_0;
|
|
@@ -73,11 +73,11 @@ function Companion() {
|
|
|
73
73
|
tmp = name === 'latin1' || name === 'Latin1';
|
|
74
74
|
}
|
|
75
75
|
if (tmp) {
|
|
76
|
-
return Charsets_getInstance().
|
|
76
|
+
return Charsets_getInstance().n3q_1;
|
|
77
77
|
}
|
|
78
78
|
throw IllegalArgumentException().u('Charset ' + name + ' is not supported');
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
e3r(charset) {
|
|
81
81
|
var tmp;
|
|
82
82
|
switch (charset) {
|
|
83
83
|
case 'UTF-8':
|
|
@@ -142,7 +142,7 @@ function Charset() {
|
|
|
142
142
|
if (CharsetClass === VOID) {
|
|
143
143
|
class $ {
|
|
144
144
|
constructor(_name) {
|
|
145
|
-
this.
|
|
145
|
+
this.o3q_1 = _name;
|
|
146
146
|
}
|
|
147
147
|
equals(other) {
|
|
148
148
|
if (this === other)
|
|
@@ -151,13 +151,13 @@ function Charset() {
|
|
|
151
151
|
return false;
|
|
152
152
|
if (!(other instanceof Charset()))
|
|
153
153
|
THROW_CCE();
|
|
154
|
-
return this.
|
|
154
|
+
return this.o3q_1 === other.o3q_1;
|
|
155
155
|
}
|
|
156
156
|
hashCode() {
|
|
157
|
-
return getStringHashCode(this.
|
|
157
|
+
return getStringHashCode(this.o3q_1);
|
|
158
158
|
}
|
|
159
159
|
toString() {
|
|
160
|
-
return this.
|
|
160
|
+
return this.o3q_1;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
163
163
|
initMetadataForClass($, 'Charset');
|
|
@@ -166,7 +166,7 @@ function Charset() {
|
|
|
166
166
|
return CharsetClass;
|
|
167
167
|
}
|
|
168
168
|
function get_name(_this__u8e3s4) {
|
|
169
|
-
return _this__u8e3s4.
|
|
169
|
+
return _this__u8e3s4.o3q_1;
|
|
170
170
|
}
|
|
171
171
|
var CharsetsClass;
|
|
172
172
|
function Charsets() {
|
|
@@ -174,8 +174,8 @@ function Charsets() {
|
|
|
174
174
|
class $ {
|
|
175
175
|
constructor() {
|
|
176
176
|
Charsets_instance = this;
|
|
177
|
-
this.
|
|
178
|
-
this.
|
|
177
|
+
this.m3q_1 = new (CharsetImpl())('UTF-8');
|
|
178
|
+
this.n3q_1 = new (CharsetImpl())('ISO-8859-1');
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
initMetadataForObject($, 'Charsets');
|
|
@@ -193,9 +193,9 @@ var MalformedInputExceptionClass;
|
|
|
193
193
|
function MalformedInputException() {
|
|
194
194
|
if (MalformedInputExceptionClass === VOID) {
|
|
195
195
|
class $ extends IOException() {
|
|
196
|
-
static
|
|
197
|
-
var $this = this.
|
|
198
|
-
captureStack($this, $this.
|
|
196
|
+
static l3q(message) {
|
|
197
|
+
var $this = this.z2u(message);
|
|
198
|
+
captureStack($this, $this.k3q_1);
|
|
199
199
|
return $this;
|
|
200
200
|
}
|
|
201
201
|
}
|
|
@@ -209,7 +209,7 @@ function CharsetDecoder() {
|
|
|
209
209
|
if (CharsetDecoderClass === VOID) {
|
|
210
210
|
class $ {
|
|
211
211
|
constructor(_charset) {
|
|
212
|
-
this.
|
|
212
|
+
this.f3r_1 = _charset;
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
initMetadataForClass($, 'CharsetDecoder');
|
|
@@ -227,7 +227,7 @@ function CharsetEncoder() {
|
|
|
227
227
|
if (CharsetEncoderClass === VOID) {
|
|
228
228
|
class $ {
|
|
229
229
|
constructor(_charset) {
|
|
230
|
-
this.
|
|
230
|
+
this.g3r_1 = _charset;
|
|
231
231
|
}
|
|
232
232
|
}
|
|
233
233
|
initMetadataForClass($, 'CharsetEncoder');
|
|
@@ -239,10 +239,10 @@ var CharsetImplClass;
|
|
|
239
239
|
function CharsetImpl() {
|
|
240
240
|
if (CharsetImplClass === VOID) {
|
|
241
241
|
class $ extends Charset() {
|
|
242
|
-
|
|
242
|
+
p3q() {
|
|
243
243
|
return new (CharsetEncoderImpl())(this);
|
|
244
244
|
}
|
|
245
|
-
|
|
245
|
+
q3q() {
|
|
246
246
|
return new (CharsetDecoderImpl())(this);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
@@ -272,13 +272,13 @@ function CharsetEncoderImpl() {
|
|
|
272
272
|
class $ extends CharsetEncoder() {
|
|
273
273
|
constructor(charset) {
|
|
274
274
|
super(charset);
|
|
275
|
-
this.
|
|
275
|
+
this.j3r_1 = charset;
|
|
276
276
|
}
|
|
277
277
|
toString() {
|
|
278
|
-
return 'CharsetEncoderImpl(charset=' + this.
|
|
278
|
+
return 'CharsetEncoderImpl(charset=' + this.j3r_1.toString() + ')';
|
|
279
279
|
}
|
|
280
280
|
hashCode() {
|
|
281
|
-
return this.
|
|
281
|
+
return this.j3r_1.hashCode();
|
|
282
282
|
}
|
|
283
283
|
equals(other) {
|
|
284
284
|
if (this === other)
|
|
@@ -286,7 +286,7 @@ function CharsetEncoderImpl() {
|
|
|
286
286
|
if (!(other instanceof CharsetEncoderImpl()))
|
|
287
287
|
return false;
|
|
288
288
|
var tmp0_other_with_cast = other instanceof CharsetEncoderImpl() ? other : THROW_CCE();
|
|
289
|
-
if (!this.
|
|
289
|
+
if (!this.j3r_1.equals(tmp0_other_with_cast.j3r_1))
|
|
290
290
|
return false;
|
|
291
291
|
return true;
|
|
292
292
|
}
|
|
@@ -302,13 +302,13 @@ function CharsetDecoderImpl() {
|
|
|
302
302
|
class $ extends CharsetDecoder() {
|
|
303
303
|
constructor(charset) {
|
|
304
304
|
super(charset);
|
|
305
|
-
this.
|
|
305
|
+
this.l3r_1 = charset;
|
|
306
306
|
}
|
|
307
307
|
toString() {
|
|
308
|
-
return 'CharsetDecoderImpl(charset=' + this.
|
|
308
|
+
return 'CharsetDecoderImpl(charset=' + this.l3r_1.toString() + ')';
|
|
309
309
|
}
|
|
310
310
|
hashCode() {
|
|
311
|
-
return this.
|
|
311
|
+
return this.l3r_1.hashCode();
|
|
312
312
|
}
|
|
313
313
|
equals(other) {
|
|
314
314
|
if (this === other)
|
|
@@ -316,7 +316,7 @@ function CharsetDecoderImpl() {
|
|
|
316
316
|
if (!(other instanceof CharsetDecoderImpl()))
|
|
317
317
|
return false;
|
|
318
318
|
var tmp0_other_with_cast = other instanceof CharsetDecoderImpl() ? other : THROW_CCE();
|
|
319
|
-
if (!this.
|
|
319
|
+
if (!this.l3r_1.equals(tmp0_other_with_cast.l3r_1))
|
|
320
320
|
return false;
|
|
321
321
|
return true;
|
|
322
322
|
}
|
|
@@ -333,11 +333,11 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
333
333
|
var message = 'Failed requirement.';
|
|
334
334
|
throw IllegalArgumentException().u(toString(message));
|
|
335
335
|
}
|
|
336
|
-
if (get_charset(_this__u8e3s4).equals(Charsets_getInstance().
|
|
336
|
+
if (get_charset(_this__u8e3s4).equals(Charsets_getInstance().n3q_1)) {
|
|
337
337
|
return encodeISO88591(input, fromIndex, toIndex, dst);
|
|
338
338
|
}
|
|
339
339
|
// Inline function 'kotlin.require' call
|
|
340
|
-
if (!(get_charset(_this__u8e3s4) === Charsets_getInstance().
|
|
340
|
+
if (!(get_charset(_this__u8e3s4) === Charsets_getInstance().m3q_1)) {
|
|
341
341
|
var message_0 = 'Only UTF-8 encoding is supported in JS';
|
|
342
342
|
throw IllegalArgumentException().u(toString(message_0));
|
|
343
343
|
}
|
|
@@ -347,15 +347,15 @@ function encodeImpl(_this__u8e3s4, input, fromIndex, toIndex, dst) {
|
|
|
347
347
|
var result = encoder.encode(tmp$ret$5);
|
|
348
348
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
349
349
|
// Inline function 'kotlin.js.asDynamic' call
|
|
350
|
-
dst.
|
|
350
|
+
dst.e2t(result);
|
|
351
351
|
return result.length;
|
|
352
352
|
}
|
|
353
353
|
function get_charset(_this__u8e3s4) {
|
|
354
|
-
return _this__u8e3s4.
|
|
354
|
+
return _this__u8e3s4.g3r_1;
|
|
355
355
|
}
|
|
356
356
|
function decode(_this__u8e3s4, input, dst, max) {
|
|
357
357
|
var decoder = Decoder(get_name(get_charset_0(_this__u8e3s4)), true);
|
|
358
|
-
var tmp0 = input.
|
|
358
|
+
var tmp0 = input.n2r().i1();
|
|
359
359
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
360
360
|
var b = toLong(max);
|
|
361
361
|
var count = tmp0.a2(b) <= 0 ? tmp0 : b;
|
|
@@ -363,13 +363,13 @@ function decode(_this__u8e3s4, input, dst, max) {
|
|
|
363
363
|
var array = tmp instanceof Int8Array ? tmp : THROW_CCE();
|
|
364
364
|
var tmp_0;
|
|
365
365
|
try {
|
|
366
|
-
tmp_0 = decoder.
|
|
366
|
+
tmp_0 = decoder.m3r(array);
|
|
367
367
|
} catch ($p) {
|
|
368
368
|
var tmp_1;
|
|
369
369
|
if ($p instanceof Error) {
|
|
370
370
|
var cause = $p;
|
|
371
371
|
var tmp0_elvis_lhs = cause.message;
|
|
372
|
-
throw MalformedInputException().
|
|
372
|
+
throw MalformedInputException().l3q('Failed to decode bytes: ' + (tmp0_elvis_lhs == null ? 'no cause provided' : tmp0_elvis_lhs));
|
|
373
373
|
} else {
|
|
374
374
|
throw $p;
|
|
375
375
|
}
|
|
@@ -379,13 +379,13 @@ function decode(_this__u8e3s4, input, dst, max) {
|
|
|
379
379
|
return result.length;
|
|
380
380
|
}
|
|
381
381
|
function get_charset_0(_this__u8e3s4) {
|
|
382
|
-
return _this__u8e3s4.
|
|
382
|
+
return _this__u8e3s4.f3r_1;
|
|
383
383
|
}
|
|
384
384
|
function forName(_this__u8e3s4, name) {
|
|
385
|
-
return Companion_instance.
|
|
385
|
+
return Companion_instance.d3r(name);
|
|
386
386
|
}
|
|
387
387
|
function isSupported(_this__u8e3s4, name) {
|
|
388
|
-
return Companion_instance.
|
|
388
|
+
return Companion_instance.e3r(name);
|
|
389
389
|
}
|
|
390
390
|
//region block: init
|
|
391
391
|
Companion_instance = new (Companion())();
|
|
@@ -20,7 +20,7 @@ function decode_0(_this__u8e3s4, input, max) {
|
|
|
20
20
|
max = max === VOID ? 2147483647 : max;
|
|
21
21
|
var tmp0 = toLong(max);
|
|
22
22
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
23
|
-
var b = input.
|
|
23
|
+
var b = input.n2r().i1();
|
|
24
24
|
// Inline function 'kotlin.text.buildString' call
|
|
25
25
|
var capacity = (tmp0.a2(b) <= 0 ? tmp0 : b).c2();
|
|
26
26
|
// Inline function 'kotlin.apply' call
|
|
@@ -47,9 +47,9 @@ var TooLongLineExceptionClass;
|
|
|
47
47
|
function TooLongLineException() {
|
|
48
48
|
if (TooLongLineExceptionClass === VOID) {
|
|
49
49
|
class $ extends MalformedInputException() {
|
|
50
|
-
static
|
|
51
|
-
var $this = this.
|
|
52
|
-
captureStack($this, $this.
|
|
50
|
+
static w3m(message) {
|
|
51
|
+
var $this = this.l3q(message);
|
|
52
|
+
captureStack($this, $this.v3m_1);
|
|
53
53
|
return $this;
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -21,13 +21,13 @@ function encodeISO88591(input, fromIndex, toIndex, dst) {
|
|
|
21
21
|
if (character > 255) {
|
|
22
22
|
failedToMapError(character);
|
|
23
23
|
}
|
|
24
|
-
dst.
|
|
24
|
+
dst.l2t(toByte(character));
|
|
25
25
|
}
|
|
26
26
|
while (inductionVariable < toIndex);
|
|
27
27
|
return toIndex - fromIndex | 0;
|
|
28
28
|
}
|
|
29
29
|
function failedToMapError(ch) {
|
|
30
|
-
throw MalformedInputException().
|
|
30
|
+
throw MalformedInputException().l3q('The character with unicode point ' + ch + " couldn't be mapped to ISO-8859-1 character");
|
|
31
31
|
}
|
|
32
32
|
//region block: exports
|
|
33
33
|
export {
|
|
@@ -22,10 +22,10 @@ function toKtor$1() {
|
|
|
22
22
|
if (toKtor$1Class === VOID) {
|
|
23
23
|
class $ {
|
|
24
24
|
constructor($this_toKtor) {
|
|
25
|
-
this.
|
|
25
|
+
this.n3r_1 = $this_toKtor;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
return this.
|
|
27
|
+
m3r(buffer) {
|
|
28
|
+
return this.n3r_1.decode(buffer);
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
31
|
initMetadataForClass($);
|
|
@@ -32,7 +32,7 @@ function TextDecoderFallback() {
|
|
|
32
32
|
if (TextDecoderFallbackClass === VOID) {
|
|
33
33
|
class $ {
|
|
34
34
|
constructor(encoding, fatal) {
|
|
35
|
-
this.
|
|
35
|
+
this.o3r_1 = fatal;
|
|
36
36
|
// Inline function 'kotlin.text.trim' call
|
|
37
37
|
// Inline function 'kotlin.text.lowercase' call
|
|
38
38
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -43,7 +43,7 @@ function TextDecoderFallback() {
|
|
|
43
43
|
throw IllegalStateException().o4(toString(message));
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
|
|
46
|
+
m3r(buffer) {
|
|
47
47
|
// Inline function 'io.ktor.utils.io.core.buildPacket' call
|
|
48
48
|
var builder = new (Buffer())();
|
|
49
49
|
var bytes = buffer instanceof Int8Array ? buffer : THROW_CCE();
|
|
@@ -59,7 +59,7 @@ function TextDecoderFallback() {
|
|
|
59
59
|
var point = toCodePoint(byte);
|
|
60
60
|
if (point < 0) {
|
|
61
61
|
// Inline function 'kotlin.check' call
|
|
62
|
-
if (!!this.
|
|
62
|
+
if (!!this.o3r_1) {
|
|
63
63
|
var message = 'Invalid character: ' + point;
|
|
64
64
|
throw IllegalStateException().o4(toString(message));
|
|
65
65
|
}
|
|
@@ -67,9 +67,9 @@ function TextDecoderFallback() {
|
|
|
67
67
|
continue $l$loop;
|
|
68
68
|
}
|
|
69
69
|
if (point > 255) {
|
|
70
|
-
builder.
|
|
70
|
+
builder.l2t(toByte(point >> 8));
|
|
71
71
|
}
|
|
72
|
-
builder.
|
|
72
|
+
builder.l2t(toByte(point & 255));
|
|
73
73
|
}
|
|
74
74
|
while (inductionVariable < last);
|
|
75
75
|
return decodeToString(readByteArray(builder));
|
|
@@ -9,13 +9,13 @@ import { writeText19qfzm98fbm4l as writeText } from './Strings.mjs';
|
|
|
9
9
|
function writeFully(_this__u8e3s4, buffer, offset, length) {
|
|
10
10
|
offset = offset === VOID ? 0 : offset;
|
|
11
11
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
12
|
-
_this__u8e3s4.
|
|
12
|
+
_this__u8e3s4.b2t(buffer, offset, offset + length | 0);
|
|
13
13
|
}
|
|
14
14
|
function BytePacketBuilder() {
|
|
15
15
|
return new (Buffer())();
|
|
16
16
|
}
|
|
17
17
|
function get_size(_this__u8e3s4) {
|
|
18
|
-
return _this__u8e3s4.
|
|
18
|
+
return _this__u8e3s4.n2r().i1().c2();
|
|
19
19
|
}
|
|
20
20
|
function append(_this__u8e3s4, value, startIndex, endIndex) {
|
|
21
21
|
startIndex = startIndex === VOID ? 0 : startIndex;
|
|
@@ -23,7 +23,7 @@ function append(_this__u8e3s4, value, startIndex, endIndex) {
|
|
|
23
23
|
writeText(_this__u8e3s4, value, startIndex, endIndex);
|
|
24
24
|
}
|
|
25
25
|
function build(_this__u8e3s4) {
|
|
26
|
-
return _this__u8e3s4.
|
|
26
|
+
return _this__u8e3s4.n2r();
|
|
27
27
|
}
|
|
28
28
|
//region block: exports
|
|
29
29
|
export {
|
|
@@ -9,21 +9,21 @@ import { Buffergs925ekssbch as Buffer } from '../../../../../../kotlinx-io-kotli
|
|
|
9
9
|
var ByteReadPacketEmpty;
|
|
10
10
|
function get_remaining(_this__u8e3s4) {
|
|
11
11
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
12
|
-
return _this__u8e3s4.
|
|
12
|
+
return _this__u8e3s4.n2r().i1();
|
|
13
13
|
}
|
|
14
14
|
function discard(_this__u8e3s4, count) {
|
|
15
15
|
count = count === VOID ? new (Long())(-1, 2147483647) : count;
|
|
16
16
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
17
|
-
_this__u8e3s4.
|
|
17
|
+
_this__u8e3s4.q2r(count);
|
|
18
18
|
// Inline function 'kotlin.comparisons.minOf' call
|
|
19
19
|
var b = get_remaining(_this__u8e3s4);
|
|
20
20
|
var countToDiscard = count.a2(b) <= 0 ? count : b;
|
|
21
|
-
_this__u8e3s4.
|
|
21
|
+
_this__u8e3s4.n2r().p2s(countToDiscard);
|
|
22
22
|
return countToDiscard;
|
|
23
23
|
}
|
|
24
24
|
function takeWhile(_this__u8e3s4, block) {
|
|
25
25
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
26
|
-
while (!_this__u8e3s4.
|
|
26
|
+
while (!_this__u8e3s4.o2r() && block(_this__u8e3s4.n2r())) {
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
function ByteReadPacket(array, offset, length) {
|
|
@@ -32,7 +32,7 @@ function ByteReadPacket(array, offset, length) {
|
|
|
32
32
|
_init_properties_ByteReadPacket_kt__28475y();
|
|
33
33
|
// Inline function 'kotlin.apply' call
|
|
34
34
|
var this_0 = new (Buffer())();
|
|
35
|
-
this_0.
|
|
35
|
+
this_0.b2t(array, offset, offset + length | 0);
|
|
36
36
|
return this_0;
|
|
37
37
|
}
|
|
38
38
|
var properties_initialized_ByteReadPacket_kt_hw4st4;
|
|
@@ -6,7 +6,7 @@ import { VOID3gxj6tk5isa35 as VOID } from '../../../../../../kotlin-kotlin-stdli
|
|
|
6
6
|
function readAvailable(_this__u8e3s4, buffer, offset, length) {
|
|
7
7
|
offset = offset === VOID ? 0 : offset;
|
|
8
8
|
length = length === VOID ? buffer.length - offset | 0 : length;
|
|
9
|
-
var result = _this__u8e3s4.
|
|
9
|
+
var result = _this__u8e3s4.q2s(buffer, offset, offset + length | 0);
|
|
10
10
|
return result === -1 ? 0 : result;
|
|
11
11
|
}
|
|
12
12
|
//region block: exports
|
|
@@ -21,33 +21,33 @@ import { toString1pkumu07cwy4m as toString } from '../../../../../../kotlin-kotl
|
|
|
21
21
|
//region block: pre-declaration
|
|
22
22
|
//endregion
|
|
23
23
|
function toByteArray(_this__u8e3s4, charset) {
|
|
24
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
25
|
-
if (charset.equals(Charsets_getInstance().
|
|
24
|
+
charset = charset === VOID ? Charsets_getInstance().m3q_1 : charset;
|
|
25
|
+
if (charset.equals(Charsets_getInstance().m3q_1))
|
|
26
26
|
return encodeToByteArray_0(_this__u8e3s4, VOID, VOID, true);
|
|
27
|
-
return encodeToByteArray(charset.
|
|
27
|
+
return encodeToByteArray(charset.p3q(), _this__u8e3s4, 0, _this__u8e3s4.length);
|
|
28
28
|
}
|
|
29
29
|
function readText(_this__u8e3s4, charset, max) {
|
|
30
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
30
|
+
charset = charset === VOID ? Charsets_getInstance().m3q_1 : charset;
|
|
31
31
|
max = max === VOID ? 2147483647 : max;
|
|
32
|
-
if (charset.equals(Charsets_getInstance().
|
|
32
|
+
if (charset.equals(Charsets_getInstance().m3q_1)) {
|
|
33
33
|
if (max === 2147483647)
|
|
34
34
|
return readString(_this__u8e3s4);
|
|
35
|
-
var tmp0 = _this__u8e3s4.
|
|
35
|
+
var tmp0 = _this__u8e3s4.n2r().i1();
|
|
36
36
|
// Inline function 'kotlin.math.min' call
|
|
37
37
|
var b = toLong(max);
|
|
38
38
|
var count = tmp0.a2(b) <= 0 ? tmp0 : b;
|
|
39
39
|
return readString_0(_this__u8e3s4, count);
|
|
40
40
|
}
|
|
41
|
-
return decode(charset.
|
|
41
|
+
return decode(charset.q3q(), _this__u8e3s4, max);
|
|
42
42
|
}
|
|
43
43
|
function writeText(_this__u8e3s4, text, fromIndex, toIndex, charset) {
|
|
44
44
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
45
45
|
toIndex = toIndex === VOID ? charSequenceLength(text) : toIndex;
|
|
46
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
47
|
-
if (charset === Charsets_getInstance().
|
|
46
|
+
charset = charset === VOID ? Charsets_getInstance().m3q_1 : charset;
|
|
47
|
+
if (charset === Charsets_getInstance().m3q_1) {
|
|
48
48
|
return writeString(_this__u8e3s4, toString(text), fromIndex, toIndex);
|
|
49
49
|
}
|
|
50
|
-
encodeToImpl(charset.
|
|
50
|
+
encodeToImpl(charset.p3q(), _this__u8e3s4, text, fromIndex, toIndex);
|
|
51
51
|
}
|
|
52
52
|
//region block: exports
|
|
53
53
|
export {
|