@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
|
@@ -58,7 +58,7 @@ function takeFrom(_this__u8e3s4, urlString) {
|
|
|
58
58
|
var tmp_0;
|
|
59
59
|
if ($p instanceof Error) {
|
|
60
60
|
var cause = $p;
|
|
61
|
-
throw URLParserException().
|
|
61
|
+
throw URLParserException().c4b(urlString, cause);
|
|
62
62
|
} else {
|
|
63
63
|
throw $p;
|
|
64
64
|
}
|
|
@@ -107,20 +107,20 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
107
107
|
var schemeLength = findScheme(urlString, startIndex, endIndex);
|
|
108
108
|
if (schemeLength > 0) {
|
|
109
109
|
var scheme = substring(urlString, startIndex, startIndex + schemeLength | 0);
|
|
110
|
-
_this__u8e3s4.
|
|
110
|
+
_this__u8e3s4.k4a(Companion_getInstance().d4b(scheme));
|
|
111
111
|
startIndex = startIndex + (schemeLength + 1 | 0) | 0;
|
|
112
112
|
}
|
|
113
|
-
if (_this__u8e3s4.
|
|
114
|
-
_this__u8e3s4.
|
|
113
|
+
if (_this__u8e3s4.n49().l49_1 === 'data') {
|
|
114
|
+
_this__u8e3s4.b49_1 = substring(urlString, startIndex, endIndex);
|
|
115
115
|
return _this__u8e3s4;
|
|
116
116
|
}
|
|
117
117
|
var slashCount = count(urlString, startIndex, endIndex, _Char___init__impl__6a9atx(47));
|
|
118
118
|
startIndex = startIndex + slashCount | 0;
|
|
119
|
-
if (_this__u8e3s4.
|
|
119
|
+
if (_this__u8e3s4.n49().l49_1 === 'file') {
|
|
120
120
|
parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount);
|
|
121
121
|
return _this__u8e3s4;
|
|
122
122
|
}
|
|
123
|
-
if (_this__u8e3s4.
|
|
123
|
+
if (_this__u8e3s4.n49().l49_1 === 'mailto') {
|
|
124
124
|
// Inline function 'kotlin.require' call
|
|
125
125
|
// Inline function 'kotlin.require' call
|
|
126
126
|
if (!(slashCount === 0)) {
|
|
@@ -130,24 +130,24 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
130
130
|
parseMailto(_this__u8e3s4, urlString, startIndex, endIndex);
|
|
131
131
|
return _this__u8e3s4;
|
|
132
132
|
}
|
|
133
|
-
if (_this__u8e3s4.
|
|
133
|
+
if (_this__u8e3s4.n49().l49_1 === 'about') {
|
|
134
134
|
// Inline function 'kotlin.require' call
|
|
135
135
|
// Inline function 'kotlin.require' call
|
|
136
136
|
if (!(slashCount === 0)) {
|
|
137
137
|
var message_0 = 'Failed requirement.';
|
|
138
138
|
throw IllegalArgumentException().u(toString(message_0));
|
|
139
139
|
}
|
|
140
|
-
_this__u8e3s4.
|
|
140
|
+
_this__u8e3s4.b49_1 = substring(urlString, startIndex, endIndex);
|
|
141
141
|
return _this__u8e3s4;
|
|
142
142
|
}
|
|
143
|
-
if (_this__u8e3s4.
|
|
143
|
+
if (_this__u8e3s4.n49().l49_1 === 'tel') {
|
|
144
144
|
// Inline function 'kotlin.require' call
|
|
145
145
|
// Inline function 'kotlin.require' call
|
|
146
146
|
if (!(slashCount === 0)) {
|
|
147
147
|
var message_1 = 'Failed requirement.';
|
|
148
148
|
throw IllegalArgumentException().u(toString(message_1));
|
|
149
149
|
}
|
|
150
|
-
_this__u8e3s4.
|
|
150
|
+
_this__u8e3s4.b49_1 = substring(urlString, startIndex, endIndex);
|
|
151
151
|
return _this__u8e3s4;
|
|
152
152
|
}
|
|
153
153
|
if (slashCount >= 2) {
|
|
@@ -165,10 +165,10 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
165
165
|
if (delimiter < endIndex && charCodeAt(urlString, delimiter) === _Char___init__impl__6a9atx(64)) {
|
|
166
166
|
var passwordIndex = indexOfColonInHostPort(urlString, startIndex, delimiter);
|
|
167
167
|
if (!(passwordIndex === -1)) {
|
|
168
|
-
_this__u8e3s4.
|
|
169
|
-
_this__u8e3s4.
|
|
168
|
+
_this__u8e3s4.f49_1 = substring(urlString, startIndex, passwordIndex);
|
|
169
|
+
_this__u8e3s4.g49_1 = substring(urlString, passwordIndex + 1 | 0, delimiter);
|
|
170
170
|
} else {
|
|
171
|
-
_this__u8e3s4.
|
|
171
|
+
_this__u8e3s4.f49_1 = substring(urlString, startIndex, delimiter);
|
|
172
172
|
}
|
|
173
173
|
startIndex = delimiter + 1 | 0;
|
|
174
174
|
} else {
|
|
@@ -179,17 +179,17 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
179
179
|
}
|
|
180
180
|
}
|
|
181
181
|
if (startIndex >= endIndex) {
|
|
182
|
-
_this__u8e3s4.
|
|
182
|
+
_this__u8e3s4.i49_1 = charCodeAt(urlString, endIndex - 1 | 0) === _Char___init__impl__6a9atx(47) ? get_ROOT_PATH() : emptyList();
|
|
183
183
|
return _this__u8e3s4;
|
|
184
184
|
}
|
|
185
185
|
var tmp_0 = _this__u8e3s4;
|
|
186
186
|
var tmp_1;
|
|
187
187
|
if (slashCount === 0) {
|
|
188
|
-
tmp_1 = dropLast(_this__u8e3s4.
|
|
188
|
+
tmp_1 = dropLast(_this__u8e3s4.i49_1, 1);
|
|
189
189
|
} else {
|
|
190
190
|
tmp_1 = emptyList();
|
|
191
191
|
}
|
|
192
|
-
tmp_0.
|
|
192
|
+
tmp_0.i49_1 = tmp_1;
|
|
193
193
|
// Inline function 'kotlin.takeIf' call
|
|
194
194
|
var this_1 = indexOfAny(urlString, toCharArray('?#'), startIndex);
|
|
195
195
|
var tmp_2;
|
|
@@ -204,9 +204,9 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
204
204
|
var rawPath = substring(urlString, startIndex, pathEnd);
|
|
205
205
|
var tmp_3;
|
|
206
206
|
var tmp_4;
|
|
207
|
-
if (_this__u8e3s4.
|
|
207
|
+
if (_this__u8e3s4.i49_1.i1() === 1) {
|
|
208
208
|
// Inline function 'kotlin.text.isEmpty' call
|
|
209
|
-
var this_2 = first(_this__u8e3s4.
|
|
209
|
+
var this_2 = first(_this__u8e3s4.i49_1);
|
|
210
210
|
tmp_4 = charSequenceLength(this_2) === 0;
|
|
211
211
|
} else {
|
|
212
212
|
tmp_4 = false;
|
|
@@ -214,12 +214,12 @@ function takeFromUnsafe(_this__u8e3s4, urlString) {
|
|
|
214
214
|
if (tmp_4) {
|
|
215
215
|
tmp_3 = emptyList();
|
|
216
216
|
} else {
|
|
217
|
-
tmp_3 = _this__u8e3s4.
|
|
217
|
+
tmp_3 = _this__u8e3s4.i49_1;
|
|
218
218
|
}
|
|
219
219
|
var basePath = tmp_3;
|
|
220
220
|
var rawChunks = rawPath === '/' ? get_ROOT_PATH() : split(rawPath, charArrayOf([_Char___init__impl__6a9atx(47)]));
|
|
221
221
|
var relativePath = plus(slashCount === 1 ? get_ROOT_PATH() : emptyList(), rawChunks);
|
|
222
|
-
_this__u8e3s4.
|
|
222
|
+
_this__u8e3s4.i49_1 = plus(basePath, relativePath);
|
|
223
223
|
startIndex = pathEnd;
|
|
224
224
|
}
|
|
225
225
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(63)) {
|
|
@@ -232,9 +232,9 @@ var URLParserExceptionClass;
|
|
|
232
232
|
function URLParserException() {
|
|
233
233
|
if (URLParserExceptionClass === VOID) {
|
|
234
234
|
class $ extends IllegalStateException() {
|
|
235
|
-
static
|
|
235
|
+
static c4b(urlString, cause) {
|
|
236
236
|
var $this = this.ed('Fail to parse url: ' + urlString, cause);
|
|
237
|
-
captureStack($this, $this.
|
|
237
|
+
captureStack($this, $this.b4b_1);
|
|
238
238
|
return $this;
|
|
239
239
|
}
|
|
240
240
|
}
|
|
@@ -280,21 +280,21 @@ function parseFile(_this__u8e3s4, urlString, startIndex, endIndex, slashCount) {
|
|
|
280
280
|
_init_properties_URLParser_kt__sf11to();
|
|
281
281
|
switch (slashCount) {
|
|
282
282
|
case 1:
|
|
283
|
-
_this__u8e3s4.
|
|
283
|
+
_this__u8e3s4.b49_1 = '';
|
|
284
284
|
set_encodedPath(_this__u8e3s4, substring(urlString, startIndex, endIndex));
|
|
285
285
|
break;
|
|
286
286
|
case 2:
|
|
287
287
|
var nextSlash = indexOf(urlString, _Char___init__impl__6a9atx(47), startIndex);
|
|
288
288
|
if (nextSlash === -1 || nextSlash === endIndex) {
|
|
289
|
-
_this__u8e3s4.
|
|
289
|
+
_this__u8e3s4.b49_1 = substring(urlString, startIndex, endIndex);
|
|
290
290
|
return Unit_instance;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
_this__u8e3s4.
|
|
293
|
+
_this__u8e3s4.b49_1 = substring(urlString, startIndex, nextSlash);
|
|
294
294
|
set_encodedPath(_this__u8e3s4, substring(urlString, nextSlash, endIndex));
|
|
295
295
|
break;
|
|
296
296
|
case 3:
|
|
297
|
-
_this__u8e3s4.
|
|
297
|
+
_this__u8e3s4.b49_1 = '';
|
|
298
298
|
set_encodedPath(_this__u8e3s4, '/' + substring(urlString, startIndex, endIndex));
|
|
299
299
|
break;
|
|
300
300
|
default:
|
|
@@ -307,8 +307,8 @@ function parseMailto(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
307
307
|
if (delimiter === -1) {
|
|
308
308
|
throw IllegalArgumentException().u('Invalid mailto url: ' + urlString + ", it should contain '@'.");
|
|
309
309
|
}
|
|
310
|
-
_this__u8e3s4.
|
|
311
|
-
_this__u8e3s4.
|
|
310
|
+
_this__u8e3s4.r4a(decodeURLPart(substring(urlString, startIndex, delimiter)));
|
|
311
|
+
_this__u8e3s4.b49_1 = substring(urlString, delimiter + 1 | 0, endIndex);
|
|
312
312
|
}
|
|
313
313
|
function indexOfColonInHostPort(_this__u8e3s4, startIndex, endIndex) {
|
|
314
314
|
_init_properties_URLParser_kt__sf11to();
|
|
@@ -342,19 +342,19 @@ function fillHost(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
342
342
|
}
|
|
343
343
|
var tmp0_elvis_lhs = tmp;
|
|
344
344
|
var colonIndex = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
345
|
-
_this__u8e3s4.
|
|
345
|
+
_this__u8e3s4.b49_1 = substring(urlString, startIndex, colonIndex);
|
|
346
346
|
var tmp_0;
|
|
347
347
|
if ((colonIndex + 1 | 0) < endIndex) {
|
|
348
348
|
tmp_0 = toInt(substring(urlString, colonIndex + 1 | 0, endIndex));
|
|
349
349
|
} else {
|
|
350
350
|
tmp_0 = 0;
|
|
351
351
|
}
|
|
352
|
-
_this__u8e3s4.
|
|
352
|
+
_this__u8e3s4.j4a(tmp_0);
|
|
353
353
|
}
|
|
354
354
|
function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
355
355
|
_init_properties_URLParser_kt__sf11to();
|
|
356
356
|
if ((startIndex + 1 | 0) === endIndex) {
|
|
357
|
-
_this__u8e3s4.
|
|
357
|
+
_this__u8e3s4.c49_1 = true;
|
|
358
358
|
return endIndex;
|
|
359
359
|
}
|
|
360
360
|
// Inline function 'kotlin.takeIf' call
|
|
@@ -368,18 +368,18 @@ function parseQuery(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
|
368
368
|
var tmp0_elvis_lhs = tmp;
|
|
369
369
|
var fragmentStart = tmp0_elvis_lhs == null ? endIndex : tmp0_elvis_lhs;
|
|
370
370
|
var rawParameters = parseQueryString(substring(urlString, startIndex + 1 | 0, fragmentStart), VOID, VOID, false);
|
|
371
|
-
rawParameters.
|
|
371
|
+
rawParameters.k3t(parseQuery$lambda(_this__u8e3s4));
|
|
372
372
|
return fragmentStart;
|
|
373
373
|
}
|
|
374
374
|
function parseFragment(_this__u8e3s4, urlString, startIndex, endIndex) {
|
|
375
375
|
_init_properties_URLParser_kt__sf11to();
|
|
376
376
|
if (startIndex < endIndex && charCodeAt(urlString, startIndex) === _Char___init__impl__6a9atx(35)) {
|
|
377
|
-
_this__u8e3s4.
|
|
377
|
+
_this__u8e3s4.h49_1 = substring(urlString, startIndex + 1 | 0, endIndex);
|
|
378
378
|
}
|
|
379
379
|
}
|
|
380
380
|
function parseQuery$lambda($this_parseQuery) {
|
|
381
381
|
return function (key, values) {
|
|
382
|
-
$this_parseQuery.
|
|
382
|
+
$this_parseQuery.j49_1.o3t(key, values);
|
|
383
383
|
return Unit_instance;
|
|
384
384
|
};
|
|
385
385
|
}
|
|
@@ -32,29 +32,29 @@ function Companion() {
|
|
|
32
32
|
class $ {
|
|
33
33
|
constructor() {
|
|
34
34
|
Companion_instance = this;
|
|
35
|
-
this.
|
|
36
|
-
this.
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
35
|
+
this.l4a_1 = new (URLProtocol())('http', 80);
|
|
36
|
+
this.m4a_1 = new (URLProtocol())('https', 443);
|
|
37
|
+
this.n4a_1 = new (URLProtocol())('ws', 80);
|
|
38
|
+
this.o4a_1 = new (URLProtocol())('wss', 443);
|
|
39
|
+
this.p4a_1 = new (URLProtocol())('socks', 1080);
|
|
40
40
|
var tmp = this;
|
|
41
41
|
// Inline function 'kotlin.collections.associateBy' call
|
|
42
|
-
var this_0 = listOf([this.
|
|
42
|
+
var this_0 = listOf([this.l4a_1, this.m4a_1, this.n4a_1, this.o4a_1, this.p4a_1]);
|
|
43
43
|
var capacity = coerceAtLeast(mapCapacity(collectionSizeOrDefault(this_0, 10)), 16);
|
|
44
44
|
// Inline function 'kotlin.collections.associateByTo' call
|
|
45
45
|
var destination = LinkedHashMap().vb(capacity);
|
|
46
46
|
var _iterator__ex2g4s = this_0.d1();
|
|
47
47
|
while (_iterator__ex2g4s.e1()) {
|
|
48
48
|
var element = _iterator__ex2g4s.f1();
|
|
49
|
-
var tmp$ret$0 = element.
|
|
49
|
+
var tmp$ret$0 = element.l49_1;
|
|
50
50
|
destination.d3(tmp$ret$0, element);
|
|
51
51
|
}
|
|
52
|
-
tmp.
|
|
52
|
+
tmp.q4a_1 = destination;
|
|
53
53
|
}
|
|
54
|
-
|
|
54
|
+
d4b(name) {
|
|
55
55
|
// Inline function 'kotlin.let' call
|
|
56
56
|
var it = toLowerCasePreservingASCIIRules(name);
|
|
57
|
-
var tmp0_elvis_lhs = Companion_getInstance().
|
|
57
|
+
var tmp0_elvis_lhs = Companion_getInstance().q4a_1.w2(it);
|
|
58
58
|
return tmp0_elvis_lhs == null ? new (URLProtocol())(it, 0) : tmp0_elvis_lhs;
|
|
59
59
|
}
|
|
60
60
|
}
|
|
@@ -75,9 +75,9 @@ function URLProtocol() {
|
|
|
75
75
|
class $ {
|
|
76
76
|
constructor(name, defaultPort) {
|
|
77
77
|
Companion_getInstance();
|
|
78
|
-
this.
|
|
79
|
-
this.
|
|
80
|
-
var tmp0 = this.
|
|
78
|
+
this.l49_1 = name;
|
|
79
|
+
this.m49_1 = defaultPort;
|
|
80
|
+
var tmp0 = this.l49_1;
|
|
81
81
|
var tmp$ret$1;
|
|
82
82
|
$l$block: {
|
|
83
83
|
// Inline function 'kotlin.text.all' call
|
|
@@ -99,11 +99,11 @@ function URLProtocol() {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
toString() {
|
|
102
|
-
return 'URLProtocol(name=' + this.
|
|
102
|
+
return 'URLProtocol(name=' + this.l49_1 + ', defaultPort=' + this.m49_1 + ')';
|
|
103
103
|
}
|
|
104
104
|
hashCode() {
|
|
105
|
-
var result = getStringHashCode(this.
|
|
106
|
-
result = imul(result, 31) + this.
|
|
105
|
+
var result = getStringHashCode(this.l49_1);
|
|
106
|
+
result = imul(result, 31) + this.m49_1 | 0;
|
|
107
107
|
return result;
|
|
108
108
|
}
|
|
109
109
|
equals(other) {
|
|
@@ -112,9 +112,9 @@ function URLProtocol() {
|
|
|
112
112
|
if (!(other instanceof URLProtocol()))
|
|
113
113
|
return false;
|
|
114
114
|
var tmp0_other_with_cast = other instanceof URLProtocol() ? other : THROW_CCE();
|
|
115
|
-
if (!(this.
|
|
115
|
+
if (!(this.l49_1 === tmp0_other_with_cast.l49_1))
|
|
116
116
|
return false;
|
|
117
|
-
if (!(this.
|
|
117
|
+
if (!(this.m49_1 === tmp0_other_with_cast.m49_1))
|
|
118
118
|
return false;
|
|
119
119
|
return true;
|
|
120
120
|
}
|
|
@@ -125,10 +125,10 @@ function URLProtocol() {
|
|
|
125
125
|
return URLProtocolClass;
|
|
126
126
|
}
|
|
127
127
|
function isSecure(_this__u8e3s4) {
|
|
128
|
-
return _this__u8e3s4.
|
|
128
|
+
return _this__u8e3s4.l49_1 === 'https' || _this__u8e3s4.l49_1 === 'wss';
|
|
129
129
|
}
|
|
130
130
|
function isWebsocket(_this__u8e3s4) {
|
|
131
|
-
return _this__u8e3s4.
|
|
131
|
+
return _this__u8e3s4.l49_1 === 'ws' || _this__u8e3s4.l49_1 === 'wss';
|
|
132
132
|
}
|
|
133
133
|
//region block: exports
|
|
134
134
|
export {
|
|
@@ -25,18 +25,18 @@ import { toString30pk9tzaqopn as toString } from '../../../../kotlin-kotlin-stdl
|
|
|
25
25
|
//region block: pre-declaration
|
|
26
26
|
//endregion
|
|
27
27
|
function takeFrom_0(_this__u8e3s4, url) {
|
|
28
|
-
_this__u8e3s4.
|
|
29
|
-
_this__u8e3s4.
|
|
30
|
-
_this__u8e3s4.
|
|
31
|
-
_this__u8e3s4.
|
|
32
|
-
_this__u8e3s4.
|
|
33
|
-
_this__u8e3s4.
|
|
28
|
+
_this__u8e3s4.e49_1 = url.e49_1;
|
|
29
|
+
_this__u8e3s4.b49_1 = url.b49_1;
|
|
30
|
+
_this__u8e3s4.j4a(url.d49_1);
|
|
31
|
+
_this__u8e3s4.i49_1 = url.i49_1;
|
|
32
|
+
_this__u8e3s4.f49_1 = url.f49_1;
|
|
33
|
+
_this__u8e3s4.g49_1 = url.g49_1;
|
|
34
34
|
// Inline function 'kotlin.apply' call
|
|
35
35
|
var this_0 = ParametersBuilder();
|
|
36
|
-
appendAll(this_0, url.
|
|
37
|
-
_this__u8e3s4.
|
|
38
|
-
_this__u8e3s4.
|
|
39
|
-
_this__u8e3s4.
|
|
36
|
+
appendAll(this_0, url.j49_1);
|
|
37
|
+
_this__u8e3s4.w4a(this_0);
|
|
38
|
+
_this__u8e3s4.h49_1 = url.h49_1;
|
|
39
|
+
_this__u8e3s4.c49_1 = url.c49_1;
|
|
40
40
|
return _this__u8e3s4;
|
|
41
41
|
}
|
|
42
42
|
function URLBuilder_0(url) {
|
|
@@ -46,15 +46,15 @@ function get_fullPath(_this__u8e3s4) {
|
|
|
46
46
|
// Inline function 'kotlin.text.buildString' call
|
|
47
47
|
// Inline function 'kotlin.apply' call
|
|
48
48
|
var this_0 = StringBuilder().a1();
|
|
49
|
-
appendUrlFullPath_0(this_0, _this__u8e3s4.
|
|
49
|
+
appendUrlFullPath_0(this_0, _this__u8e3s4.e4b(), _this__u8e3s4.f4b(), _this__u8e3s4.u49_1);
|
|
50
50
|
return this_0.toString();
|
|
51
51
|
}
|
|
52
52
|
function get_hostWithPort(_this__u8e3s4) {
|
|
53
|
-
return _this__u8e3s4.
|
|
53
|
+
return _this__u8e3s4.o49_1 + ':' + _this__u8e3s4.g4b();
|
|
54
54
|
}
|
|
55
55
|
function get_hostWithPortIfSpecified(_this__u8e3s4) {
|
|
56
|
-
var tmp0_subject = _this__u8e3s4.
|
|
57
|
-
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.m49_1
|
|
56
|
+
var tmp0_subject = _this__u8e3s4.p49_1;
|
|
57
|
+
return tmp0_subject === 0 || tmp0_subject === _this__u8e3s4.a4a_1.m49_1 ? _this__u8e3s4.o49_1 : get_hostWithPort(_this__u8e3s4);
|
|
58
58
|
}
|
|
59
59
|
function Url(urlString) {
|
|
60
60
|
return URLBuilder_1(urlString).z1i();
|
|
@@ -86,7 +86,7 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
86
86
|
_this__u8e3s4.b1('?');
|
|
87
87
|
}
|
|
88
88
|
// Inline function 'kotlin.collections.flatMap' call
|
|
89
|
-
var tmp0 = encodedQueryParameters.
|
|
89
|
+
var tmp0 = encodedQueryParameters.i3t();
|
|
90
90
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
91
91
|
var destination = ArrayList().l1();
|
|
92
92
|
var _iterator__ex2g4s = tmp0.d1();
|
|
@@ -118,18 +118,18 @@ function appendUrlFullPath(_this__u8e3s4, encodedPath, encodedQueryParameters, t
|
|
|
118
118
|
joinTo(tmp_1, _this__u8e3s4, '&', VOID, VOID, VOID, VOID, appendUrlFullPath$lambda);
|
|
119
119
|
}
|
|
120
120
|
function takeFrom_1(_this__u8e3s4, url) {
|
|
121
|
-
_this__u8e3s4.
|
|
122
|
-
_this__u8e3s4.
|
|
123
|
-
_this__u8e3s4.
|
|
124
|
-
set_encodedPath(_this__u8e3s4, url.
|
|
125
|
-
_this__u8e3s4.
|
|
126
|
-
_this__u8e3s4.
|
|
121
|
+
_this__u8e3s4.e49_1 = url.z49_1;
|
|
122
|
+
_this__u8e3s4.b49_1 = url.o49_1;
|
|
123
|
+
_this__u8e3s4.j4a(url.g4b());
|
|
124
|
+
set_encodedPath(_this__u8e3s4, url.e4b());
|
|
125
|
+
_this__u8e3s4.f49_1 = url.h4b();
|
|
126
|
+
_this__u8e3s4.g49_1 = url.i4b();
|
|
127
127
|
// Inline function 'kotlin.apply' call
|
|
128
128
|
var this_0 = ParametersBuilder();
|
|
129
|
-
this_0.
|
|
130
|
-
_this__u8e3s4.
|
|
131
|
-
_this__u8e3s4.
|
|
132
|
-
_this__u8e3s4.
|
|
129
|
+
this_0.s3t(parseQueryString(url.f4b(), VOID, VOID, false));
|
|
130
|
+
_this__u8e3s4.w4a(this_0);
|
|
131
|
+
_this__u8e3s4.h49_1 = url.j4b();
|
|
132
|
+
_this__u8e3s4.c49_1 = url.u49_1;
|
|
133
133
|
return _this__u8e3s4;
|
|
134
134
|
}
|
|
135
135
|
function appendUrlFullPath_0(_this__u8e3s4, encodedPath, encodedQuery, trailingQuery) {
|