@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
|
@@ -60,18 +60,18 @@ var imul = Math.imul;
|
|
|
60
60
|
//endregion
|
|
61
61
|
function hasParameter($this, name, value) {
|
|
62
62
|
var tmp;
|
|
63
|
-
switch ($this.
|
|
63
|
+
switch ($this.o3y_1.i1()) {
|
|
64
64
|
case 0:
|
|
65
65
|
tmp = false;
|
|
66
66
|
break;
|
|
67
67
|
case 1:
|
|
68
68
|
// Inline function 'kotlin.let' call
|
|
69
69
|
|
|
70
|
-
var it = $this.
|
|
71
|
-
tmp = (equals(it.
|
|
70
|
+
var it = $this.o3y_1.j1(0);
|
|
71
|
+
tmp = (equals(it.p3y_1, name, true) && equals(it.q3y_1, value, true));
|
|
72
72
|
break;
|
|
73
73
|
default:
|
|
74
|
-
var tmp0 = $this.
|
|
74
|
+
var tmp0 = $this.o3y_1;
|
|
75
75
|
var tmp$ret$2;
|
|
76
76
|
$l$block_0: {
|
|
77
77
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -88,7 +88,7 @@ function hasParameter($this, name, value) {
|
|
|
88
88
|
var _iterator__ex2g4s = tmp0.d1();
|
|
89
89
|
while (_iterator__ex2g4s.e1()) {
|
|
90
90
|
var element = _iterator__ex2g4s.f1();
|
|
91
|
-
if (equals(element.
|
|
91
|
+
if (equals(element.p3y_1, name, true) && equals(element.q3y_1, value, true)) {
|
|
92
92
|
tmp$ret$2 = true;
|
|
93
93
|
break $l$block_0;
|
|
94
94
|
}
|
|
@@ -107,34 +107,34 @@ function Companion() {
|
|
|
107
107
|
class $ {
|
|
108
108
|
constructor() {
|
|
109
109
|
Companion_instance_0 = this;
|
|
110
|
-
this.
|
|
110
|
+
this.s3y_1 = ContentType().x3y('*', '*');
|
|
111
111
|
}
|
|
112
112
|
ar(value) {
|
|
113
113
|
if (isBlank(value))
|
|
114
|
-
return this.
|
|
114
|
+
return this.s3y_1;
|
|
115
115
|
// Inline function 'io.ktor.http.Companion.parse' call
|
|
116
116
|
var headerValue = last(parseHeaderValue(value));
|
|
117
|
-
var tmp0 = headerValue.
|
|
118
|
-
var parameters = headerValue.
|
|
117
|
+
var tmp0 = headerValue.y3y_1;
|
|
118
|
+
var parameters = headerValue.z3y_1;
|
|
119
119
|
var slash = indexOf(tmp0, _Char___init__impl__6a9atx(47));
|
|
120
120
|
if (slash === -1) {
|
|
121
121
|
// Inline function 'kotlin.text.trim' call
|
|
122
122
|
if (toString(trim(isCharSequence(tmp0) ? tmp0 : THROW_CCE())) === '*')
|
|
123
|
-
return Companion_getInstance().
|
|
124
|
-
throw BadContentTypeFormatException().
|
|
123
|
+
return Companion_getInstance().s3y_1;
|
|
124
|
+
throw BadContentTypeFormatException().d3z(value);
|
|
125
125
|
}
|
|
126
126
|
// Inline function 'kotlin.text.trim' call
|
|
127
127
|
var this_0 = substring(tmp0, 0, slash);
|
|
128
128
|
var type = toString(trim(isCharSequence(this_0) ? this_0 : THROW_CCE()));
|
|
129
129
|
// Inline function 'kotlin.text.isEmpty' call
|
|
130
130
|
if (charSequenceLength(type) === 0) {
|
|
131
|
-
throw BadContentTypeFormatException().
|
|
131
|
+
throw BadContentTypeFormatException().d3z(value);
|
|
132
132
|
}
|
|
133
133
|
// Inline function 'kotlin.text.trim' call
|
|
134
134
|
var this_1 = substring_0(tmp0, slash + 1 | 0);
|
|
135
135
|
var subtype = toString(trim(isCharSequence(this_1) ? this_1 : THROW_CCE()));
|
|
136
136
|
if (contains(type, _Char___init__impl__6a9atx(32)) || contains(subtype, _Char___init__impl__6a9atx(32))) {
|
|
137
|
-
throw BadContentTypeFormatException().
|
|
137
|
+
throw BadContentTypeFormatException().d3z(value);
|
|
138
138
|
}
|
|
139
139
|
var tmp;
|
|
140
140
|
// Inline function 'kotlin.text.isEmpty' call
|
|
@@ -144,9 +144,9 @@ function Companion() {
|
|
|
144
144
|
tmp = contains(subtype, _Char___init__impl__6a9atx(47));
|
|
145
145
|
}
|
|
146
146
|
if (tmp) {
|
|
147
|
-
throw BadContentTypeFormatException().
|
|
147
|
+
throw BadContentTypeFormatException().d3z(value);
|
|
148
148
|
}
|
|
149
|
-
return ContentType().
|
|
149
|
+
return ContentType().x3y(type, subtype, parameters);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
initMetadataForCompanion($);
|
|
@@ -166,32 +166,32 @@ function Application() {
|
|
|
166
166
|
class $ {
|
|
167
167
|
constructor() {
|
|
168
168
|
Application_instance = this;
|
|
169
|
-
this.
|
|
170
|
-
this.
|
|
171
|
-
this.
|
|
172
|
-
this.
|
|
173
|
-
this.
|
|
174
|
-
this.
|
|
175
|
-
this.
|
|
176
|
-
this.
|
|
177
|
-
this.
|
|
178
|
-
this.
|
|
179
|
-
this.
|
|
180
|
-
this.
|
|
181
|
-
this.
|
|
182
|
-
this.
|
|
183
|
-
this.
|
|
184
|
-
this.
|
|
185
|
-
this.
|
|
186
|
-
this.
|
|
187
|
-
this.
|
|
188
|
-
this.
|
|
189
|
-
this.
|
|
190
|
-
this.
|
|
191
|
-
this.
|
|
192
|
-
this.
|
|
169
|
+
this.e3z_1 = 'application';
|
|
170
|
+
this.f3z_1 = ContentType().x3y('application', '*');
|
|
171
|
+
this.g3z_1 = ContentType().x3y('application', 'atom+xml');
|
|
172
|
+
this.h3z_1 = ContentType().x3y('application', 'cbor');
|
|
173
|
+
this.i3z_1 = ContentType().x3y('application', 'json');
|
|
174
|
+
this.j3z_1 = ContentType().x3y('application', 'hal+json');
|
|
175
|
+
this.k3z_1 = ContentType().x3y('application', 'javascript');
|
|
176
|
+
this.l3z_1 = ContentType().x3y('application', 'octet-stream');
|
|
177
|
+
this.m3z_1 = ContentType().x3y('application', 'rss+xml');
|
|
178
|
+
this.n3z_1 = ContentType().x3y('application', 'soap+xml');
|
|
179
|
+
this.o3z_1 = ContentType().x3y('application', 'xml');
|
|
180
|
+
this.p3z_1 = ContentType().x3y('application', 'xml-dtd');
|
|
181
|
+
this.q3z_1 = ContentType().x3y('application', 'yaml');
|
|
182
|
+
this.r3z_1 = ContentType().x3y('application', 'zip');
|
|
183
|
+
this.s3z_1 = ContentType().x3y('application', 'gzip');
|
|
184
|
+
this.t3z_1 = ContentType().x3y('application', 'x-www-form-urlencoded');
|
|
185
|
+
this.u3z_1 = ContentType().x3y('application', 'pdf');
|
|
186
|
+
this.v3z_1 = ContentType().x3y('application', 'vnd.openxmlformats-officedocument.spreadsheetml.sheet');
|
|
187
|
+
this.w3z_1 = ContentType().x3y('application', 'vnd.openxmlformats-officedocument.wordprocessingml.document');
|
|
188
|
+
this.x3z_1 = ContentType().x3y('application', 'vnd.openxmlformats-officedocument.presentationml.presentation');
|
|
189
|
+
this.y3z_1 = ContentType().x3y('application', 'protobuf');
|
|
190
|
+
this.z3z_1 = ContentType().x3y('application', 'wasm');
|
|
191
|
+
this.a40_1 = ContentType().x3y('application', 'problem+json');
|
|
192
|
+
this.b40_1 = ContentType().x3y('application', 'problem+xml');
|
|
193
193
|
}
|
|
194
|
-
|
|
194
|
+
c40(contentType) {
|
|
195
195
|
return startsWith(contentType, 'application/', true);
|
|
196
196
|
}
|
|
197
197
|
}
|
|
@@ -212,17 +212,17 @@ function MultiPart() {
|
|
|
212
212
|
class $ {
|
|
213
213
|
constructor() {
|
|
214
214
|
MultiPart_instance = this;
|
|
215
|
-
this.
|
|
216
|
-
this.
|
|
217
|
-
this.
|
|
218
|
-
this.
|
|
219
|
-
this.
|
|
220
|
-
this.
|
|
221
|
-
this.
|
|
222
|
-
this.
|
|
223
|
-
this.
|
|
215
|
+
this.d40_1 = 'multipart';
|
|
216
|
+
this.e40_1 = ContentType().x3y('multipart', '*');
|
|
217
|
+
this.f40_1 = ContentType().x3y('multipart', 'mixed');
|
|
218
|
+
this.g40_1 = ContentType().x3y('multipart', 'alternative');
|
|
219
|
+
this.h40_1 = ContentType().x3y('multipart', 'related');
|
|
220
|
+
this.i40_1 = ContentType().x3y('multipart', 'form-data');
|
|
221
|
+
this.j40_1 = ContentType().x3y('multipart', 'signed');
|
|
222
|
+
this.k40_1 = ContentType().x3y('multipart', 'encrypted');
|
|
223
|
+
this.l40_1 = ContentType().x3y('multipart', 'byteranges');
|
|
224
224
|
}
|
|
225
|
-
|
|
225
|
+
c40(contentType) {
|
|
226
226
|
return startsWith(contentType, 'multipart/', true);
|
|
227
227
|
}
|
|
228
228
|
}
|
|
@@ -243,16 +243,16 @@ function Text() {
|
|
|
243
243
|
class $ {
|
|
244
244
|
constructor() {
|
|
245
245
|
Text_instance = this;
|
|
246
|
-
this.
|
|
247
|
-
this.
|
|
248
|
-
this.
|
|
249
|
-
this.
|
|
250
|
-
this.
|
|
251
|
-
this.
|
|
252
|
-
this.
|
|
253
|
-
this.
|
|
254
|
-
this.
|
|
255
|
-
this.
|
|
246
|
+
this.m40_1 = 'text';
|
|
247
|
+
this.n40_1 = ContentType().x3y('text', '*');
|
|
248
|
+
this.o40_1 = ContentType().x3y('text', 'plain');
|
|
249
|
+
this.p40_1 = ContentType().x3y('text', 'css');
|
|
250
|
+
this.q40_1 = ContentType().x3y('text', 'csv');
|
|
251
|
+
this.r40_1 = ContentType().x3y('text', 'html');
|
|
252
|
+
this.s40_1 = ContentType().x3y('text', 'javascript');
|
|
253
|
+
this.t40_1 = ContentType().x3y('text', 'vcard');
|
|
254
|
+
this.u40_1 = ContentType().x3y('text', 'xml');
|
|
255
|
+
this.v40_1 = ContentType().x3y('text', 'event-stream');
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
initMetadataForObject($, 'Text');
|
|
@@ -270,35 +270,35 @@ var ContentTypeClass;
|
|
|
270
270
|
function ContentType() {
|
|
271
271
|
if (ContentTypeClass === VOID) {
|
|
272
272
|
class $ extends HeaderValueWithParameters() {
|
|
273
|
-
static
|
|
273
|
+
static w40(contentType, contentSubtype, existingContent, parameters) {
|
|
274
274
|
Companion_getInstance();
|
|
275
275
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
276
|
-
var $this = this.
|
|
277
|
-
$this.
|
|
278
|
-
$this.
|
|
276
|
+
var $this = this.x40(existingContent, parameters);
|
|
277
|
+
$this.v3y_1 = contentType;
|
|
278
|
+
$this.w3y_1 = contentSubtype;
|
|
279
279
|
return $this;
|
|
280
280
|
}
|
|
281
|
-
static
|
|
281
|
+
static x3y(contentType, contentSubtype, parameters) {
|
|
282
282
|
Companion_getInstance();
|
|
283
283
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
284
|
-
return this.
|
|
284
|
+
return this.w40(contentType, contentSubtype, contentType + '/' + contentSubtype, parameters);
|
|
285
285
|
}
|
|
286
|
-
|
|
286
|
+
y40(name, value) {
|
|
287
287
|
if (hasParameter(this, name, value))
|
|
288
288
|
return this;
|
|
289
|
-
return ContentType().
|
|
289
|
+
return ContentType().w40(this.v3y_1, this.w3y_1, this.n3y_1, plus(this.o3y_1, HeaderValueParam().z40(name, value)));
|
|
290
290
|
}
|
|
291
|
-
|
|
292
|
-
return this.
|
|
291
|
+
a41() {
|
|
292
|
+
return this.o3y_1.j() ? this : ContentType().x3y(this.v3y_1, this.w3y_1);
|
|
293
293
|
}
|
|
294
|
-
|
|
295
|
-
if (!(pattern.
|
|
294
|
+
b41(pattern) {
|
|
295
|
+
if (!(pattern.v3y_1 === '*') && !equals(pattern.v3y_1, this.v3y_1, true)) {
|
|
296
296
|
return false;
|
|
297
297
|
}
|
|
298
|
-
if (!(pattern.
|
|
298
|
+
if (!(pattern.w3y_1 === '*') && !equals(pattern.w3y_1, this.w3y_1, true)) {
|
|
299
299
|
return false;
|
|
300
300
|
}
|
|
301
|
-
var _iterator__ex2g4s = pattern.
|
|
301
|
+
var _iterator__ex2g4s = pattern.o3y_1.d1();
|
|
302
302
|
while (_iterator__ex2g4s.e1()) {
|
|
303
303
|
var _destruct__k2r9zo = _iterator__ex2g4s.f1();
|
|
304
304
|
var patternName = _destruct__k2r9zo.gl();
|
|
@@ -309,7 +309,7 @@ function ContentType() {
|
|
|
309
309
|
if (patternValue === '*') {
|
|
310
310
|
tmp_0 = true;
|
|
311
311
|
} else {
|
|
312
|
-
var tmp0 = this.
|
|
312
|
+
var tmp0 = this.o3y_1;
|
|
313
313
|
var tmp$ret$0;
|
|
314
314
|
$l$block_0: {
|
|
315
315
|
// Inline function 'kotlin.collections.any' call
|
|
@@ -326,7 +326,7 @@ function ContentType() {
|
|
|
326
326
|
var _iterator__ex2g4s_0 = tmp0.d1();
|
|
327
327
|
while (_iterator__ex2g4s_0.e1()) {
|
|
328
328
|
var element = _iterator__ex2g4s_0.f1();
|
|
329
|
-
if (equals(element.
|
|
329
|
+
if (equals(element.q3y_1, patternValue, true)) {
|
|
330
330
|
tmp$ret$0 = true;
|
|
331
331
|
break $l$block_0;
|
|
332
332
|
}
|
|
@@ -337,7 +337,7 @@ function ContentType() {
|
|
|
337
337
|
}
|
|
338
338
|
tmp = tmp_0;
|
|
339
339
|
} else {
|
|
340
|
-
var value = this.
|
|
340
|
+
var value = this.c41(patternName);
|
|
341
341
|
tmp = patternValue === '*' ? !(value == null) : equals(value, patternValue, true);
|
|
342
342
|
}
|
|
343
343
|
var matches = tmp;
|
|
@@ -352,17 +352,17 @@ function ContentType() {
|
|
|
352
352
|
var tmp_0;
|
|
353
353
|
var tmp_1;
|
|
354
354
|
if (other instanceof ContentType()) {
|
|
355
|
-
tmp_1 = equals(this.
|
|
355
|
+
tmp_1 = equals(this.v3y_1, other.v3y_1, true);
|
|
356
356
|
} else {
|
|
357
357
|
tmp_1 = false;
|
|
358
358
|
}
|
|
359
359
|
if (tmp_1) {
|
|
360
|
-
tmp_0 = equals(this.
|
|
360
|
+
tmp_0 = equals(this.w3y_1, other.w3y_1, true);
|
|
361
361
|
} else {
|
|
362
362
|
tmp_0 = false;
|
|
363
363
|
}
|
|
364
364
|
if (tmp_0) {
|
|
365
|
-
tmp = equals_0(this.
|
|
365
|
+
tmp = equals_0(this.o3y_1, other.o3y_1);
|
|
366
366
|
} else {
|
|
367
367
|
tmp = false;
|
|
368
368
|
}
|
|
@@ -371,15 +371,15 @@ function ContentType() {
|
|
|
371
371
|
hashCode() {
|
|
372
372
|
// Inline function 'kotlin.text.lowercase' call
|
|
373
373
|
// Inline function 'kotlin.js.asDynamic' call
|
|
374
|
-
var tmp$ret$1 = this.
|
|
374
|
+
var tmp$ret$1 = this.v3y_1.toLowerCase();
|
|
375
375
|
var result = getStringHashCode(tmp$ret$1);
|
|
376
376
|
var tmp = result;
|
|
377
377
|
var tmp_0 = imul(31, result);
|
|
378
378
|
// Inline function 'kotlin.text.lowercase' call
|
|
379
379
|
// Inline function 'kotlin.js.asDynamic' call
|
|
380
|
-
var tmp$ret$3 = this.
|
|
380
|
+
var tmp$ret$3 = this.w3y_1.toLowerCase();
|
|
381
381
|
result = tmp + (tmp_0 + getStringHashCode(tmp$ret$3) | 0) | 0;
|
|
382
|
-
result = result + imul(31, hashCode(this.
|
|
382
|
+
result = result + imul(31, hashCode(this.o3y_1)) | 0;
|
|
383
383
|
return result;
|
|
384
384
|
}
|
|
385
385
|
}
|
|
@@ -392,9 +392,9 @@ var BadContentTypeFormatExceptionClass;
|
|
|
392
392
|
function BadContentTypeFormatException() {
|
|
393
393
|
if (BadContentTypeFormatExceptionClass === VOID) {
|
|
394
394
|
class $ extends Exception() {
|
|
395
|
-
static
|
|
395
|
+
static d3z(value) {
|
|
396
396
|
var $this = this.g5('Bad Content-Type format: ' + value);
|
|
397
|
-
captureStack($this, $this.
|
|
397
|
+
captureStack($this, $this.c3z_1);
|
|
398
398
|
return $this;
|
|
399
399
|
}
|
|
400
400
|
}
|
|
@@ -404,7 +404,7 @@ function BadContentTypeFormatException() {
|
|
|
404
404
|
return BadContentTypeFormatExceptionClass;
|
|
405
405
|
}
|
|
406
406
|
function charset(_this__u8e3s4) {
|
|
407
|
-
var tmp0_safe_receiver = _this__u8e3s4.
|
|
407
|
+
var tmp0_safe_receiver = _this__u8e3s4.c41('charset');
|
|
408
408
|
var tmp;
|
|
409
409
|
if (tmp0_safe_receiver == null) {
|
|
410
410
|
tmp = null;
|
|
@@ -428,16 +428,16 @@ function charset(_this__u8e3s4) {
|
|
|
428
428
|
return tmp;
|
|
429
429
|
}
|
|
430
430
|
function withCharset(_this__u8e3s4, charset) {
|
|
431
|
-
return _this__u8e3s4.
|
|
431
|
+
return _this__u8e3s4.y40('charset', get_name(charset));
|
|
432
432
|
}
|
|
433
433
|
function withCharsetIfNeeded(_this__u8e3s4, charset) {
|
|
434
434
|
var tmp;
|
|
435
435
|
// Inline function 'kotlin.text.lowercase' call
|
|
436
436
|
// Inline function 'kotlin.js.asDynamic' call
|
|
437
|
-
if (!(_this__u8e3s4.
|
|
437
|
+
if (!(_this__u8e3s4.v3y_1.toLowerCase() === 'text')) {
|
|
438
438
|
tmp = _this__u8e3s4;
|
|
439
439
|
} else {
|
|
440
|
-
tmp = _this__u8e3s4.
|
|
440
|
+
tmp = _this__u8e3s4.y40('charset', get_name(charset));
|
|
441
441
|
}
|
|
442
442
|
return tmp;
|
|
443
443
|
}
|
|
@@ -54,23 +54,23 @@ var HeaderValueWithParametersClass;
|
|
|
54
54
|
function HeaderValueWithParameters() {
|
|
55
55
|
if (HeaderValueWithParametersClass === VOID) {
|
|
56
56
|
class $ {
|
|
57
|
-
static
|
|
57
|
+
static x40(content, parameters) {
|
|
58
58
|
parameters = parameters === VOID ? emptyList() : parameters;
|
|
59
59
|
var $this = createThis(this);
|
|
60
|
-
$this.
|
|
61
|
-
$this.
|
|
60
|
+
$this.n3y_1 = content;
|
|
61
|
+
$this.o3y_1 = parameters;
|
|
62
62
|
return $this;
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
c41(name) {
|
|
65
65
|
var inductionVariable = 0;
|
|
66
|
-
var last = get_lastIndex(this.
|
|
66
|
+
var last = get_lastIndex(this.o3y_1);
|
|
67
67
|
if (inductionVariable <= last)
|
|
68
68
|
do {
|
|
69
69
|
var index = inductionVariable;
|
|
70
70
|
inductionVariable = inductionVariable + 1 | 0;
|
|
71
|
-
var parameter = this.
|
|
72
|
-
if (equals(parameter.
|
|
73
|
-
return parameter.
|
|
71
|
+
var parameter = this.o3y_1.j1(index);
|
|
72
|
+
if (equals(parameter.p3y_1, name, true)) {
|
|
73
|
+
return parameter.q3y_1;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
while (!(index === last));
|
|
@@ -78,34 +78,34 @@ function HeaderValueWithParameters() {
|
|
|
78
78
|
}
|
|
79
79
|
toString() {
|
|
80
80
|
var tmp;
|
|
81
|
-
if (this.
|
|
82
|
-
tmp = this.
|
|
81
|
+
if (this.o3y_1.j()) {
|
|
82
|
+
tmp = this.n3y_1;
|
|
83
83
|
} else {
|
|
84
|
-
var tmp_0 = this.
|
|
84
|
+
var tmp_0 = this.n3y_1.length;
|
|
85
85
|
// Inline function 'kotlin.collections.sumOf' call
|
|
86
86
|
var sum = 0;
|
|
87
|
-
var _iterator__ex2g4s = this.
|
|
87
|
+
var _iterator__ex2g4s = this.o3y_1.d1();
|
|
88
88
|
while (_iterator__ex2g4s.e1()) {
|
|
89
89
|
var element = _iterator__ex2g4s.f1();
|
|
90
90
|
var tmp_1 = sum;
|
|
91
|
-
sum = tmp_1 + ((element.
|
|
91
|
+
sum = tmp_1 + ((element.p3y_1.length + element.q3y_1.length | 0) + 3 | 0) | 0;
|
|
92
92
|
}
|
|
93
93
|
var size = tmp_0 + sum | 0;
|
|
94
94
|
// Inline function 'kotlin.apply' call
|
|
95
95
|
var this_0 = StringBuilder().mb(size);
|
|
96
|
-
this_0.jb(this.
|
|
96
|
+
this_0.jb(this.n3y_1);
|
|
97
97
|
var inductionVariable = 0;
|
|
98
|
-
var last = get_lastIndex(this.
|
|
98
|
+
var last = get_lastIndex(this.o3y_1);
|
|
99
99
|
if (inductionVariable <= last)
|
|
100
100
|
do {
|
|
101
101
|
var index = inductionVariable;
|
|
102
102
|
inductionVariable = inductionVariable + 1 | 0;
|
|
103
|
-
var element_0 = this.
|
|
103
|
+
var element_0 = this.o3y_1.j1(index);
|
|
104
104
|
this_0.jb('; ');
|
|
105
|
-
this_0.jb(element_0.
|
|
105
|
+
this_0.jb(element_0.p3y_1);
|
|
106
106
|
this_0.jb('=');
|
|
107
107
|
// Inline function 'io.ktor.http.escapeIfNeededTo' call
|
|
108
|
-
var this_1 = element_0.
|
|
108
|
+
var this_1 = element_0.q3y_1;
|
|
109
109
|
if (needQuotes(this_1))
|
|
110
110
|
this_0.jb(quote(this_1));
|
|
111
111
|
else
|
|
@@ -31,7 +31,7 @@ function Companion() {
|
|
|
31
31
|
class $ {
|
|
32
32
|
constructor() {
|
|
33
33
|
Companion_instance = this;
|
|
34
|
-
this.
|
|
34
|
+
this.d41_1 = EmptyHeaders_instance;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
initMetadataForCompanion($);
|
|
@@ -54,15 +54,15 @@ function HeadersBuilder() {
|
|
|
54
54
|
super(true, size);
|
|
55
55
|
}
|
|
56
56
|
z1i() {
|
|
57
|
-
return new (HeadersImpl())(this.
|
|
57
|
+
return new (HeadersImpl())(this.m3t_1);
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
super.
|
|
61
|
-
HttpHeaders_getInstance().
|
|
59
|
+
n3t(name) {
|
|
60
|
+
super.n3t(name);
|
|
61
|
+
HttpHeaders_getInstance().c45(name);
|
|
62
62
|
}
|
|
63
|
-
|
|
64
|
-
super.
|
|
65
|
-
HttpHeaders_getInstance().
|
|
63
|
+
q3t(value) {
|
|
64
|
+
super.q3t(value);
|
|
65
|
+
HttpHeaders_getInstance().d45(value);
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
initMetadataForClass($, 'HeadersBuilder', HeadersBuilder);
|
|
@@ -74,25 +74,25 @@ var EmptyHeadersClass;
|
|
|
74
74
|
function EmptyHeaders() {
|
|
75
75
|
if (EmptyHeadersClass === VOID) {
|
|
76
76
|
class $ {
|
|
77
|
-
|
|
77
|
+
f3t() {
|
|
78
78
|
return true;
|
|
79
79
|
}
|
|
80
|
-
|
|
80
|
+
g3t(name) {
|
|
81
81
|
return null;
|
|
82
82
|
}
|
|
83
|
-
|
|
83
|
+
h3t() {
|
|
84
84
|
return emptySet();
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
i3t() {
|
|
87
87
|
return emptySet();
|
|
88
88
|
}
|
|
89
89
|
toString() {
|
|
90
|
-
return 'Headers ' + toString(this.
|
|
90
|
+
return 'Headers ' + toString(this.i3t());
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
|
-
protoOf($).
|
|
94
|
-
protoOf($).
|
|
95
|
-
protoOf($).
|
|
93
|
+
protoOf($).c3s = get;
|
|
94
|
+
protoOf($).j3t = contains;
|
|
95
|
+
protoOf($).k3t = forEach;
|
|
96
96
|
initMetadataForObject($, 'EmptyHeaders', VOID, VOID, [StringValues()]);
|
|
97
97
|
EmptyHeadersClass = $;
|
|
98
98
|
}
|
|
@@ -111,7 +111,7 @@ function HeadersImpl() {
|
|
|
111
111
|
super(true, values);
|
|
112
112
|
}
|
|
113
113
|
toString() {
|
|
114
|
-
return 'Headers ' + toString(this.
|
|
114
|
+
return 'Headers ' + toString(this.i3t());
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
initMetadataForClass($, 'HeadersImpl', HeadersImpl, VOID, [StringValues(), StringValuesImpl()]);
|
|
@@ -130,7 +130,7 @@ function HeadersSingleImpl() {
|
|
|
130
130
|
super(true, name, values);
|
|
131
131
|
}
|
|
132
132
|
toString() {
|
|
133
|
-
return 'Headers ' + toString(this.
|
|
133
|
+
return 'Headers ' + toString(this.i3t());
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
initMetadataForClass($, 'HeadersSingleImpl', VOID, VOID, [StringValues(), StringValuesSingleImpl()]);
|