@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
|
@@ -21,73 +21,73 @@ function Companion() {
|
|
|
21
21
|
class $ {
|
|
22
22
|
constructor() {
|
|
23
23
|
Companion_instance = this;
|
|
24
|
-
this.
|
|
25
|
-
this.
|
|
26
|
-
this.
|
|
27
|
-
this.
|
|
28
|
-
this.
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
32
|
-
this.
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
40
|
-
this.
|
|
41
|
-
this.
|
|
42
|
-
this.
|
|
43
|
-
this.
|
|
44
|
-
this.
|
|
45
|
-
this.
|
|
46
|
-
this.
|
|
47
|
-
this.
|
|
48
|
-
this.
|
|
49
|
-
this.
|
|
50
|
-
this.
|
|
51
|
-
this.
|
|
52
|
-
this.
|
|
53
|
-
this.
|
|
54
|
-
this.
|
|
55
|
-
this.
|
|
56
|
-
this.
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
65
|
-
this.
|
|
66
|
-
this.
|
|
67
|
-
this.
|
|
68
|
-
this.
|
|
69
|
-
this.
|
|
70
|
-
this.
|
|
71
|
-
this.
|
|
72
|
-
this.
|
|
73
|
-
this.
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
76
|
-
this.
|
|
77
|
-
this.
|
|
24
|
+
this.s46_1 = new (HttpStatusCode())(100, 'Continue');
|
|
25
|
+
this.t46_1 = new (HttpStatusCode())(101, 'Switching Protocols');
|
|
26
|
+
this.u46_1 = new (HttpStatusCode())(102, 'Processing');
|
|
27
|
+
this.v46_1 = new (HttpStatusCode())(200, 'OK');
|
|
28
|
+
this.w46_1 = new (HttpStatusCode())(201, 'Created');
|
|
29
|
+
this.x46_1 = new (HttpStatusCode())(202, 'Accepted');
|
|
30
|
+
this.y46_1 = new (HttpStatusCode())(203, 'Non-Authoritative Information');
|
|
31
|
+
this.z46_1 = new (HttpStatusCode())(204, 'No Content');
|
|
32
|
+
this.a47_1 = new (HttpStatusCode())(205, 'Reset Content');
|
|
33
|
+
this.b47_1 = new (HttpStatusCode())(206, 'Partial Content');
|
|
34
|
+
this.c47_1 = new (HttpStatusCode())(207, 'Multi-Status');
|
|
35
|
+
this.d47_1 = new (HttpStatusCode())(300, 'Multiple Choices');
|
|
36
|
+
this.e47_1 = new (HttpStatusCode())(301, 'Moved Permanently');
|
|
37
|
+
this.f47_1 = new (HttpStatusCode())(302, 'Found');
|
|
38
|
+
this.g47_1 = new (HttpStatusCode())(303, 'See Other');
|
|
39
|
+
this.h47_1 = new (HttpStatusCode())(304, 'Not Modified');
|
|
40
|
+
this.i47_1 = new (HttpStatusCode())(305, 'Use Proxy');
|
|
41
|
+
this.j47_1 = new (HttpStatusCode())(306, 'Switch Proxy');
|
|
42
|
+
this.k47_1 = new (HttpStatusCode())(307, 'Temporary Redirect');
|
|
43
|
+
this.l47_1 = new (HttpStatusCode())(308, 'Permanent Redirect');
|
|
44
|
+
this.m47_1 = new (HttpStatusCode())(400, 'Bad Request');
|
|
45
|
+
this.n47_1 = new (HttpStatusCode())(401, 'Unauthorized');
|
|
46
|
+
this.o47_1 = new (HttpStatusCode())(402, 'Payment Required');
|
|
47
|
+
this.p47_1 = new (HttpStatusCode())(403, 'Forbidden');
|
|
48
|
+
this.q47_1 = new (HttpStatusCode())(404, 'Not Found');
|
|
49
|
+
this.r47_1 = new (HttpStatusCode())(405, 'Method Not Allowed');
|
|
50
|
+
this.s47_1 = new (HttpStatusCode())(406, 'Not Acceptable');
|
|
51
|
+
this.t47_1 = new (HttpStatusCode())(407, 'Proxy Authentication Required');
|
|
52
|
+
this.u47_1 = new (HttpStatusCode())(408, 'Request Timeout');
|
|
53
|
+
this.v47_1 = new (HttpStatusCode())(409, 'Conflict');
|
|
54
|
+
this.w47_1 = new (HttpStatusCode())(410, 'Gone');
|
|
55
|
+
this.x47_1 = new (HttpStatusCode())(411, 'Length Required');
|
|
56
|
+
this.y47_1 = new (HttpStatusCode())(412, 'Precondition Failed');
|
|
57
|
+
this.z47_1 = new (HttpStatusCode())(413, 'Payload Too Large');
|
|
58
|
+
this.a48_1 = new (HttpStatusCode())(414, 'Request-URI Too Long');
|
|
59
|
+
this.b48_1 = new (HttpStatusCode())(415, 'Unsupported Media Type');
|
|
60
|
+
this.c48_1 = new (HttpStatusCode())(416, 'Requested Range Not Satisfiable');
|
|
61
|
+
this.d48_1 = new (HttpStatusCode())(417, 'Expectation Failed');
|
|
62
|
+
this.e48_1 = new (HttpStatusCode())(422, 'Unprocessable Entity');
|
|
63
|
+
this.f48_1 = new (HttpStatusCode())(423, 'Locked');
|
|
64
|
+
this.g48_1 = new (HttpStatusCode())(424, 'Failed Dependency');
|
|
65
|
+
this.h48_1 = new (HttpStatusCode())(425, 'Too Early');
|
|
66
|
+
this.i48_1 = new (HttpStatusCode())(426, 'Upgrade Required');
|
|
67
|
+
this.j48_1 = new (HttpStatusCode())(429, 'Too Many Requests');
|
|
68
|
+
this.k48_1 = new (HttpStatusCode())(431, 'Request Header Fields Too Large');
|
|
69
|
+
this.l48_1 = new (HttpStatusCode())(500, 'Internal Server Error');
|
|
70
|
+
this.m48_1 = new (HttpStatusCode())(501, 'Not Implemented');
|
|
71
|
+
this.n48_1 = new (HttpStatusCode())(502, 'Bad Gateway');
|
|
72
|
+
this.o48_1 = new (HttpStatusCode())(503, 'Service Unavailable');
|
|
73
|
+
this.p48_1 = new (HttpStatusCode())(504, 'Gateway Timeout');
|
|
74
|
+
this.q48_1 = new (HttpStatusCode())(505, 'HTTP Version Not Supported');
|
|
75
|
+
this.r48_1 = new (HttpStatusCode())(506, 'Variant Also Negotiates');
|
|
76
|
+
this.s48_1 = new (HttpStatusCode())(507, 'Insufficient Storage');
|
|
77
|
+
this.t48_1 = allStatusCodes();
|
|
78
78
|
var tmp = this;
|
|
79
79
|
// Inline function 'kotlin.collections.associateBy' call
|
|
80
|
-
var this_0 = this.
|
|
80
|
+
var this_0 = this.t48_1;
|
|
81
81
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
82
82
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
83
83
|
var destination = LinkedHashMap().vb(capacity);
|
|
84
84
|
var _iterator__ex2g4s = this_0.d1();
|
|
85
85
|
while (_iterator__ex2g4s.e1()) {
|
|
86
86
|
var element = _iterator__ex2g4s.f1();
|
|
87
|
-
var tmp$ret$0 = element.
|
|
87
|
+
var tmp$ret$0 = element.v48_1;
|
|
88
88
|
destination.d3(tmp$ret$0, element);
|
|
89
89
|
}
|
|
90
|
-
tmp.
|
|
90
|
+
tmp.u48_1 = destination;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
initMetadataForCompanion($);
|
|
@@ -107,29 +107,29 @@ function HttpStatusCode() {
|
|
|
107
107
|
class $ {
|
|
108
108
|
constructor(value, description) {
|
|
109
109
|
Companion_getInstance();
|
|
110
|
-
this.
|
|
111
|
-
this.
|
|
110
|
+
this.v48_1 = value;
|
|
111
|
+
this.w48_1 = description;
|
|
112
112
|
}
|
|
113
113
|
toString() {
|
|
114
|
-
return '' + this.
|
|
114
|
+
return '' + this.v48_1 + ' ' + this.w48_1;
|
|
115
115
|
}
|
|
116
116
|
equals(other) {
|
|
117
117
|
var tmp;
|
|
118
118
|
if (other instanceof HttpStatusCode()) {
|
|
119
|
-
tmp = other.
|
|
119
|
+
tmp = other.v48_1 === this.v48_1;
|
|
120
120
|
} else {
|
|
121
121
|
tmp = false;
|
|
122
122
|
}
|
|
123
123
|
return tmp;
|
|
124
124
|
}
|
|
125
125
|
hashCode() {
|
|
126
|
-
return this.
|
|
126
|
+
return this.v48_1;
|
|
127
127
|
}
|
|
128
|
-
|
|
129
|
-
return this.
|
|
128
|
+
x48(other) {
|
|
129
|
+
return this.v48_1 - other.v48_1 | 0;
|
|
130
130
|
}
|
|
131
131
|
d(other) {
|
|
132
|
-
return this.
|
|
132
|
+
return this.x48(other instanceof HttpStatusCode() ? other : THROW_CCE());
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
initMetadataForClass($, 'HttpStatusCode', VOID, VOID, [Comparable()]);
|
|
@@ -138,7 +138,7 @@ function HttpStatusCode() {
|
|
|
138
138
|
return HttpStatusCodeClass;
|
|
139
139
|
}
|
|
140
140
|
function allStatusCodes() {
|
|
141
|
-
return listOf([Companion_getInstance().
|
|
141
|
+
return listOf([Companion_getInstance().s46_1, Companion_getInstance().t46_1, Companion_getInstance().u46_1, Companion_getInstance().v46_1, Companion_getInstance().w46_1, Companion_getInstance().x46_1, Companion_getInstance().y46_1, Companion_getInstance().z46_1, Companion_getInstance().a47_1, Companion_getInstance().b47_1, Companion_getInstance().c47_1, Companion_getInstance().d47_1, Companion_getInstance().e47_1, Companion_getInstance().f47_1, Companion_getInstance().g47_1, Companion_getInstance().h47_1, Companion_getInstance().i47_1, Companion_getInstance().j47_1, Companion_getInstance().k47_1, Companion_getInstance().l47_1, Companion_getInstance().m47_1, Companion_getInstance().n47_1, Companion_getInstance().o47_1, Companion_getInstance().p47_1, Companion_getInstance().q47_1, Companion_getInstance().r47_1, Companion_getInstance().s47_1, Companion_getInstance().t47_1, Companion_getInstance().u47_1, Companion_getInstance().v47_1, Companion_getInstance().w47_1, Companion_getInstance().x47_1, Companion_getInstance().y47_1, Companion_getInstance().z47_1, Companion_getInstance().a48_1, Companion_getInstance().b48_1, Companion_getInstance().c48_1, Companion_getInstance().d48_1, Companion_getInstance().e48_1, Companion_getInstance().f48_1, Companion_getInstance().g48_1, Companion_getInstance().h48_1, Companion_getInstance().i48_1, Companion_getInstance().j48_1, Companion_getInstance().k48_1, Companion_getInstance().l48_1, Companion_getInstance().m48_1, Companion_getInstance().n48_1, Companion_getInstance().o48_1, Companion_getInstance().p48_1, Companion_getInstance().q48_1, Companion_getInstance().r48_1, Companion_getInstance().s48_1]);
|
|
142
142
|
}
|
|
143
143
|
//region block: exports
|
|
144
144
|
export {
|
|
@@ -28,7 +28,7 @@ function Companion() {
|
|
|
28
28
|
class $ {
|
|
29
29
|
constructor() {
|
|
30
30
|
Companion_instance = this;
|
|
31
|
-
this.
|
|
31
|
+
this.y48_1 = EmptyParameters_instance;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
initMetadataForCompanion($);
|
|
@@ -55,23 +55,23 @@ var EmptyParametersClass;
|
|
|
55
55
|
function EmptyParameters() {
|
|
56
56
|
if (EmptyParametersClass === VOID) {
|
|
57
57
|
class $ {
|
|
58
|
-
|
|
58
|
+
f3t() {
|
|
59
59
|
return true;
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
g3t(name) {
|
|
62
62
|
return null;
|
|
63
63
|
}
|
|
64
|
-
|
|
64
|
+
h3t() {
|
|
65
65
|
return emptySet();
|
|
66
66
|
}
|
|
67
|
-
|
|
67
|
+
i3t() {
|
|
68
68
|
return emptySet();
|
|
69
69
|
}
|
|
70
70
|
j() {
|
|
71
71
|
return true;
|
|
72
72
|
}
|
|
73
73
|
toString() {
|
|
74
|
-
return 'Parameters ' + toString(this.
|
|
74
|
+
return 'Parameters ' + toString(this.i3t());
|
|
75
75
|
}
|
|
76
76
|
equals(other) {
|
|
77
77
|
var tmp;
|
|
@@ -83,7 +83,7 @@ function EmptyParameters() {
|
|
|
83
83
|
return tmp;
|
|
84
84
|
}
|
|
85
85
|
}
|
|
86
|
-
protoOf($).
|
|
86
|
+
protoOf($).k3t = forEach;
|
|
87
87
|
initMetadataForObject($, 'EmptyParameters', VOID, VOID, [Parameters()]);
|
|
88
88
|
EmptyParametersClass = $;
|
|
89
89
|
}
|
|
@@ -106,7 +106,7 @@ function ParametersBuilderImpl() {
|
|
|
106
106
|
super(true, size);
|
|
107
107
|
}
|
|
108
108
|
z1i() {
|
|
109
|
-
return new (ParametersImpl())(this.
|
|
109
|
+
return new (ParametersImpl())(this.m3t_1);
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
initMetadataForClass($, 'ParametersBuilderImpl', ParametersBuilderImpl);
|
|
@@ -123,7 +123,7 @@ function ParametersImpl() {
|
|
|
123
123
|
super(true, values);
|
|
124
124
|
}
|
|
125
125
|
toString() {
|
|
126
|
-
return 'Parameters ' + toString(this.
|
|
126
|
+
return 'Parameters ' + toString(this.i3t());
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
initMetadataForClass($, 'ParametersImpl', ParametersImpl, VOID, [Parameters(), StringValuesImpl()]);
|
|
@@ -24,7 +24,7 @@ function parseQueryString(query, startIndex, limit, decode) {
|
|
|
24
24
|
decode = decode === VOID ? true : decode;
|
|
25
25
|
var tmp;
|
|
26
26
|
if (startIndex > get_lastIndex(query)) {
|
|
27
|
-
tmp = Companion_getInstance().
|
|
27
|
+
tmp = Companion_getInstance().y48_1;
|
|
28
28
|
} else {
|
|
29
29
|
// Inline function 'io.ktor.http.Companion.build' call
|
|
30
30
|
Companion_getInstance();
|
|
@@ -72,7 +72,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
72
72
|
var spaceEndIndex = trimEnd(spaceNameIndex, endIndex, query);
|
|
73
73
|
if (spaceEndIndex > spaceNameIndex) {
|
|
74
74
|
var name = decode ? decodeURLQueryComponent(query, spaceNameIndex, spaceEndIndex) : substring(query, spaceNameIndex, spaceEndIndex);
|
|
75
|
-
_this__u8e3s4.
|
|
75
|
+
_this__u8e3s4.o3t(name, emptyList());
|
|
76
76
|
}
|
|
77
77
|
return Unit_instance;
|
|
78
78
|
}
|
|
@@ -83,7 +83,7 @@ function appendParam(_this__u8e3s4, query, nameIndex, equalIndex, endIndex, deco
|
|
|
83
83
|
var spaceValueIndex = trimStart(equalIndex + 1 | 0, endIndex, query);
|
|
84
84
|
var spaceEndIndex_0 = trimEnd(spaceValueIndex, endIndex, query);
|
|
85
85
|
var value = decode ? decodeURLQueryComponent(query, spaceValueIndex, spaceEndIndex_0, true) : substring(query, spaceValueIndex, spaceEndIndex_0);
|
|
86
|
-
_this__u8e3s4.
|
|
86
|
+
_this__u8e3s4.r3t(name_0, value);
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
function trimStart(start, end, query) {
|
|
@@ -51,19 +51,19 @@ import { get_ROOT_PATH1cfc0dxvljm6a as get_ROOT_PATH } from './URLParser.mjs';
|
|
|
51
51
|
function applyOrigin($this) {
|
|
52
52
|
var tmp;
|
|
53
53
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
54
|
-
var this_0 = $this.
|
|
54
|
+
var this_0 = $this.b49_1;
|
|
55
55
|
if (charSequenceLength(this_0) > 0) {
|
|
56
56
|
tmp = true;
|
|
57
57
|
} else {
|
|
58
|
-
tmp = $this.
|
|
58
|
+
tmp = $this.n49().l49_1 === 'file';
|
|
59
59
|
}
|
|
60
60
|
if (tmp)
|
|
61
61
|
return Unit_instance;
|
|
62
|
-
$this.
|
|
63
|
-
if ($this.
|
|
64
|
-
$this.
|
|
65
|
-
if ($this.
|
|
66
|
-
$this.
|
|
62
|
+
$this.b49_1 = Companion_getInstance_1().h4a_1.o49_1;
|
|
63
|
+
if ($this.e49_1 == null)
|
|
64
|
+
$this.e49_1 = Companion_getInstance_1().h4a_1.z49_1;
|
|
65
|
+
if ($this.d49_1 === 0) {
|
|
66
|
+
$this.j4a(Companion_getInstance_1().h4a_1.p49_1);
|
|
67
67
|
}
|
|
68
68
|
}
|
|
69
69
|
var CompanionClass;
|
|
@@ -72,8 +72,8 @@ function Companion() {
|
|
|
72
72
|
class $ {
|
|
73
73
|
constructor() {
|
|
74
74
|
Companion_instance = this;
|
|
75
|
-
this.
|
|
76
|
-
this.
|
|
75
|
+
this.h4a_1 = Url(get_origin(this));
|
|
76
|
+
this.i4a_1 = 256;
|
|
77
77
|
}
|
|
78
78
|
}
|
|
79
79
|
initMetadataForCompanion($);
|
|
@@ -99,18 +99,18 @@ function URLBuilder() {
|
|
|
99
99
|
user = user === VOID ? null : user;
|
|
100
100
|
password = password === VOID ? null : password;
|
|
101
101
|
pathSegments = pathSegments === VOID ? emptyList() : pathSegments;
|
|
102
|
-
parameters = parameters === VOID ? Companion_getInstance().
|
|
102
|
+
parameters = parameters === VOID ? Companion_getInstance().y48_1 : parameters;
|
|
103
103
|
fragment = fragment === VOID ? '' : fragment;
|
|
104
104
|
trailingQuery = trailingQuery === VOID ? false : trailingQuery;
|
|
105
|
-
this.
|
|
106
|
-
this.
|
|
107
|
-
this.
|
|
108
|
-
this.
|
|
105
|
+
this.b49_1 = host;
|
|
106
|
+
this.c49_1 = trailingQuery;
|
|
107
|
+
this.d49_1 = port;
|
|
108
|
+
this.e49_1 = protocol;
|
|
109
109
|
var tmp = this;
|
|
110
|
-
tmp.
|
|
110
|
+
tmp.f49_1 = user == null ? null : encodeURLParameter(user);
|
|
111
111
|
var tmp_0 = this;
|
|
112
|
-
tmp_0.
|
|
113
|
-
this.
|
|
112
|
+
tmp_0.g49_1 = password == null ? null : encodeURLParameter(password);
|
|
113
|
+
this.h49_1 = encodeURLQueryComponent(fragment);
|
|
114
114
|
var tmp_1 = this;
|
|
115
115
|
// Inline function 'kotlin.collections.map' call
|
|
116
116
|
// Inline function 'kotlin.collections.mapTo' call
|
|
@@ -121,43 +121,43 @@ function URLBuilder() {
|
|
|
121
121
|
var tmp$ret$0 = encodeURLPathPart(item);
|
|
122
122
|
destination.m(tmp$ret$0);
|
|
123
123
|
}
|
|
124
|
-
tmp_1.
|
|
125
|
-
this.
|
|
126
|
-
this.
|
|
124
|
+
tmp_1.i49_1 = destination;
|
|
125
|
+
this.j49_1 = encodeParameters(parameters);
|
|
126
|
+
this.k49_1 = new (UrlDecodedParametersBuilder())(this.j49_1);
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
j4a(value) {
|
|
129
129
|
// Inline function 'kotlin.require' call
|
|
130
130
|
if (!(0 <= value ? value <= 65535 : false)) {
|
|
131
131
|
var message = 'Port must be between 0 and 65535, or 0 if not set. Provided: ' + value;
|
|
132
132
|
throw IllegalArgumentException().u(toString(message));
|
|
133
133
|
}
|
|
134
|
-
this.
|
|
134
|
+
this.d49_1 = value;
|
|
135
135
|
}
|
|
136
|
-
|
|
137
|
-
this.
|
|
136
|
+
k4a(value) {
|
|
137
|
+
this.e49_1 = value;
|
|
138
138
|
}
|
|
139
|
-
|
|
140
|
-
var tmp0_elvis_lhs = this.
|
|
141
|
-
return tmp0_elvis_lhs == null ? Companion_getInstance_0().
|
|
139
|
+
n49() {
|
|
140
|
+
var tmp0_elvis_lhs = this.e49_1;
|
|
141
|
+
return tmp0_elvis_lhs == null ? Companion_getInstance_0().l4a_1 : tmp0_elvis_lhs;
|
|
142
142
|
}
|
|
143
|
-
|
|
143
|
+
r4a(value) {
|
|
144
144
|
var tmp = this;
|
|
145
|
-
tmp.
|
|
145
|
+
tmp.f49_1 = value == null ? null : encodeURLParameter(value);
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
var tmp0_safe_receiver = this.
|
|
147
|
+
s4a() {
|
|
148
|
+
var tmp0_safe_receiver = this.f49_1;
|
|
149
149
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
150
150
|
}
|
|
151
|
-
|
|
152
|
-
var tmp0_safe_receiver = this.
|
|
151
|
+
t4a() {
|
|
152
|
+
var tmp0_safe_receiver = this.g49_1;
|
|
153
153
|
return tmp0_safe_receiver == null ? null : decodeURLPart(tmp0_safe_receiver);
|
|
154
154
|
}
|
|
155
|
-
|
|
156
|
-
return decodeURLQueryComponent(this.
|
|
155
|
+
u4a() {
|
|
156
|
+
return decodeURLQueryComponent(this.h49_1);
|
|
157
157
|
}
|
|
158
|
-
|
|
158
|
+
v4a() {
|
|
159
159
|
// Inline function 'kotlin.collections.map' call
|
|
160
|
-
var this_0 = this.
|
|
160
|
+
var this_0 = this.i49_1;
|
|
161
161
|
// Inline function 'kotlin.collections.mapTo' call
|
|
162
162
|
var destination = ArrayList().c1(collectionSizeOrDefault(this_0, 10));
|
|
163
163
|
var _iterator__ex2g4s = this_0.d1();
|
|
@@ -168,11 +168,11 @@ function URLBuilder() {
|
|
|
168
168
|
}
|
|
169
169
|
return destination;
|
|
170
170
|
}
|
|
171
|
-
|
|
172
|
-
this.
|
|
173
|
-
this.
|
|
171
|
+
w4a(value) {
|
|
172
|
+
this.j49_1 = value;
|
|
173
|
+
this.k49_1 = new (UrlDecodedParametersBuilder())(value);
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
x4a() {
|
|
176
176
|
applyOrigin(this);
|
|
177
177
|
return appendTo(this, StringBuilder().mb(256)).toString();
|
|
178
178
|
}
|
|
@@ -181,7 +181,7 @@ function URLBuilder() {
|
|
|
181
181
|
}
|
|
182
182
|
z1i() {
|
|
183
183
|
applyOrigin(this);
|
|
184
|
-
return new (Url_0())(this.
|
|
184
|
+
return new (Url_0())(this.e49_1, this.b49_1, this.d49_1, this.v4a(), this.k49_1.z1i(), this.u4a(), this.s4a(), this.t4a(), this.c49_1, this.x4a());
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
initMetadataForClass($, 'URLBuilder', URLBuilder);
|
|
@@ -194,46 +194,46 @@ function get_authority(_this__u8e3s4) {
|
|
|
194
194
|
// Inline function 'kotlin.apply' call
|
|
195
195
|
var this_0 = StringBuilder().a1();
|
|
196
196
|
this_0.jb(get_encodedUserAndPassword(_this__u8e3s4));
|
|
197
|
-
this_0.jb(_this__u8e3s4.
|
|
198
|
-
if (!(_this__u8e3s4.
|
|
197
|
+
this_0.jb(_this__u8e3s4.b49_1);
|
|
198
|
+
if (!(_this__u8e3s4.d49_1 === 0) && !(_this__u8e3s4.d49_1 === _this__u8e3s4.n49().m49_1)) {
|
|
199
199
|
this_0.jb(':');
|
|
200
|
-
this_0.jb(_this__u8e3s4.
|
|
200
|
+
this_0.jb(_this__u8e3s4.d49_1.toString());
|
|
201
201
|
}
|
|
202
202
|
return this_0.toString();
|
|
203
203
|
}
|
|
204
204
|
function set_encodedPath(_this__u8e3s4, value) {
|
|
205
|
-
_this__u8e3s4.
|
|
205
|
+
_this__u8e3s4.i49_1 = isBlank(value) ? emptyList() : value === '/' ? get_ROOT_PATH() : toMutableList(split(value, charArrayOf([_Char___init__impl__6a9atx(47)])));
|
|
206
206
|
}
|
|
207
207
|
function get_encodedPath(_this__u8e3s4) {
|
|
208
|
-
return joinPath(_this__u8e3s4.
|
|
208
|
+
return joinPath(_this__u8e3s4.i49_1);
|
|
209
209
|
}
|
|
210
210
|
function appendTo(_this__u8e3s4, out) {
|
|
211
|
-
out.b1(_this__u8e3s4.
|
|
212
|
-
switch (_this__u8e3s4.
|
|
211
|
+
out.b1(_this__u8e3s4.n49().l49_1);
|
|
212
|
+
switch (_this__u8e3s4.n49().l49_1) {
|
|
213
213
|
case 'file':
|
|
214
|
-
appendFile(out, _this__u8e3s4.
|
|
214
|
+
appendFile(out, _this__u8e3s4.b49_1, get_encodedPath(_this__u8e3s4));
|
|
215
215
|
return out;
|
|
216
216
|
case 'mailto':
|
|
217
|
-
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.
|
|
217
|
+
appendMailto(out, get_encodedUserAndPassword(_this__u8e3s4), _this__u8e3s4.b49_1);
|
|
218
218
|
return out;
|
|
219
219
|
case 'about':
|
|
220
|
-
appendPayload(out, _this__u8e3s4.
|
|
220
|
+
appendPayload(out, _this__u8e3s4.b49_1);
|
|
221
221
|
return out;
|
|
222
222
|
case 'tel':
|
|
223
|
-
appendPayload(out, _this__u8e3s4.
|
|
223
|
+
appendPayload(out, _this__u8e3s4.b49_1);
|
|
224
224
|
return out;
|
|
225
225
|
case 'data':
|
|
226
|
-
appendPayload(out, _this__u8e3s4.
|
|
226
|
+
appendPayload(out, _this__u8e3s4.b49_1);
|
|
227
227
|
return out;
|
|
228
228
|
}
|
|
229
229
|
out.b1('://');
|
|
230
230
|
out.b1(get_authority(_this__u8e3s4));
|
|
231
|
-
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.
|
|
231
|
+
appendUrlFullPath(out, get_encodedPath(_this__u8e3s4), _this__u8e3s4.j49_1, _this__u8e3s4.c49_1);
|
|
232
232
|
// Inline function 'kotlin.text.isNotEmpty' call
|
|
233
|
-
var this_0 = _this__u8e3s4.
|
|
233
|
+
var this_0 = _this__u8e3s4.h49_1;
|
|
234
234
|
if (charSequenceLength(this_0) > 0) {
|
|
235
235
|
out.kb(_Char___init__impl__6a9atx(35));
|
|
236
|
-
out.b1(_this__u8e3s4.
|
|
236
|
+
out.b1(_this__u8e3s4.h49_1);
|
|
237
237
|
}
|
|
238
238
|
return out;
|
|
239
239
|
}
|
|
@@ -241,7 +241,7 @@ function get_encodedUserAndPassword(_this__u8e3s4) {
|
|
|
241
241
|
// Inline function 'kotlin.text.buildString' call
|
|
242
242
|
// Inline function 'kotlin.apply' call
|
|
243
243
|
var this_0 = StringBuilder().a1();
|
|
244
|
-
appendUserAndPassword(this_0, _this__u8e3s4.
|
|
244
|
+
appendUserAndPassword(this_0, _this__u8e3s4.f49_1, _this__u8e3s4.g49_1);
|
|
245
245
|
return this_0.toString();
|
|
246
246
|
}
|
|
247
247
|
function joinPath(_this__u8e3s4) {
|
|
@@ -4,7 +4,7 @@ import { PlatformUtils_getInstance350nj2wi6ds9r as PlatformUtils_getInstance } f
|
|
|
4
4
|
//region block: pre-declaration
|
|
5
5
|
//endregion
|
|
6
6
|
function get_origin(_this__u8e3s4) {
|
|
7
|
-
return PlatformUtils_getInstance().
|
|
7
|
+
return PlatformUtils_getInstance().x3s_1 ? locationOrigin() : 'http://localhost';
|
|
8
8
|
}
|
|
9
9
|
function locationOrigin() {
|
|
10
10
|
return function () {
|