@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
|
@@ -44,7 +44,7 @@ import { Key_instance2tirv2rj82ml4 as Key_instance } from '../../../../../../kot
|
|
|
44
44
|
//endregion
|
|
45
45
|
function isReservedStatusCode($this, _this__u8e3s4) {
|
|
46
46
|
// Inline function 'kotlin.let' call
|
|
47
|
-
var resolved = Companion_getInstance().
|
|
47
|
+
var resolved = Companion_getInstance().w4o(_this__u8e3s4);
|
|
48
48
|
return resolved == null || equals(resolved, Codes_CLOSED_ABNORMALLY_getInstance());
|
|
49
49
|
}
|
|
50
50
|
function JsWebSocketSession$lambda(this$0) {
|
|
@@ -58,27 +58,27 @@ function JsWebSocketSession$lambda(this$0) {
|
|
|
58
58
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
59
59
|
// Inline function 'kotlin.js.asDynamic' call
|
|
60
60
|
var tmp$ret$3 = new Int8Array(data);
|
|
61
|
-
tmp = Binary().
|
|
61
|
+
tmp = Binary().e4u(false, tmp$ret$3);
|
|
62
62
|
} else {
|
|
63
63
|
if (!(data == null) ? typeof data === 'string' : false) {
|
|
64
|
-
tmp = Text().
|
|
64
|
+
tmp = Text().o4u(data);
|
|
65
65
|
} else {
|
|
66
66
|
var error = IllegalStateException().o4('Unknown frame type: ' + event.type);
|
|
67
|
-
this$0.
|
|
67
|
+
this$0.c67_1.c25(error);
|
|
68
68
|
throw error;
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
var frame = tmp;
|
|
72
|
-
this$0.
|
|
72
|
+
this$0.d67_1.f2i(frame);
|
|
73
73
|
return Unit_instance;
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
76
|
function JsWebSocketSession$lambda_0(this$0) {
|
|
77
77
|
return function (it) {
|
|
78
|
-
var cause = WebSocketException().
|
|
79
|
-
this$0.
|
|
80
|
-
this$0.
|
|
81
|
-
this$0.
|
|
78
|
+
var cause = WebSocketException().l5w(toString(it));
|
|
79
|
+
this$0.c67_1.c25(cause);
|
|
80
|
+
this$0.d67_1.q2i(cause);
|
|
81
|
+
this$0.e67_1.u2i();
|
|
82
82
|
return Unit_instance;
|
|
83
83
|
};
|
|
84
84
|
}
|
|
@@ -87,11 +87,11 @@ function JsWebSocketSession$lambda_1(this$0) {
|
|
|
87
87
|
var tmp = event.code;
|
|
88
88
|
var tmp_0 = (!(tmp == null) ? typeof tmp === 'number' : false) ? tmp : THROW_CCE();
|
|
89
89
|
var tmp_1 = event.reason;
|
|
90
|
-
var reason = CloseReason().
|
|
91
|
-
this$0.
|
|
92
|
-
this$0.
|
|
93
|
-
this$0.
|
|
94
|
-
this$0.
|
|
90
|
+
var reason = CloseReason().z4o(tmp_0, (!(tmp_1 == null) ? typeof tmp_1 === 'string' : false) ? tmp_1 : THROW_CCE());
|
|
91
|
+
this$0.c67_1.b25(reason);
|
|
92
|
+
this$0.d67_1.f2i(Close().w4r(reason));
|
|
93
|
+
this$0.d67_1.s2i();
|
|
94
|
+
this$0.e67_1.u2i();
|
|
95
95
|
return Unit_instance;
|
|
96
96
|
};
|
|
97
97
|
}
|
|
@@ -102,17 +102,17 @@ function JsWebSocketSession$slambda() {
|
|
|
102
102
|
constructor(this$0, resultContinuation, $box) {
|
|
103
103
|
if ($box === VOID)
|
|
104
104
|
$box = {};
|
|
105
|
-
$box.
|
|
105
|
+
$box.q67_1 = this$0;
|
|
106
106
|
super(resultContinuation, $box);
|
|
107
107
|
}
|
|
108
|
-
|
|
109
|
-
var tmp = this.
|
|
108
|
+
z37($this$launch, $completion) {
|
|
109
|
+
var tmp = this.d36($this$launch, $completion);
|
|
110
110
|
tmp.cc_1 = Unit_instance;
|
|
111
111
|
tmp.dc_1 = null;
|
|
112
112
|
return tmp.ic();
|
|
113
113
|
}
|
|
114
114
|
kd(p1, $completion) {
|
|
115
|
-
return this.
|
|
115
|
+
return this.z37((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
|
|
116
116
|
}
|
|
117
117
|
ic() {
|
|
118
118
|
var suspendResult = this.cc_1;
|
|
@@ -123,15 +123,15 @@ function JsWebSocketSession$slambda() {
|
|
|
123
123
|
case 0:
|
|
124
124
|
this.bc_1 = 10;
|
|
125
125
|
var tmp_0 = this;
|
|
126
|
-
tmp_0.
|
|
127
|
-
this.
|
|
126
|
+
tmp_0.s67_1 = this.q67_1.e67_1;
|
|
127
|
+
this.t67_1 = this.s67_1;
|
|
128
128
|
var tmp_1 = this;
|
|
129
|
-
tmp_1.
|
|
129
|
+
tmp_1.u67_1 = this.t67_1;
|
|
130
130
|
this.ac_1 = 1;
|
|
131
131
|
continue $sm;
|
|
132
132
|
case 1:
|
|
133
|
-
this.
|
|
134
|
-
this.
|
|
133
|
+
this.w67_1 = this.u67_1;
|
|
134
|
+
this.x67_1 = null;
|
|
135
135
|
this.ac_1 = 2;
|
|
136
136
|
continue $sm;
|
|
137
137
|
case 2:
|
|
@@ -141,14 +141,14 @@ function JsWebSocketSession$slambda() {
|
|
|
141
141
|
this.bc_1 = 9;
|
|
142
142
|
this.bc_1 = 8;
|
|
143
143
|
var tmp_2 = this;
|
|
144
|
-
tmp_2.
|
|
145
|
-
this.
|
|
146
|
-
this.
|
|
144
|
+
tmp_2.z67_1 = this.w67_1;
|
|
145
|
+
this.a68_1 = this.z67_1;
|
|
146
|
+
this.b68_1 = this.a68_1.d1();
|
|
147
147
|
this.ac_1 = 4;
|
|
148
148
|
continue $sm;
|
|
149
149
|
case 4:
|
|
150
150
|
this.ac_1 = 5;
|
|
151
|
-
suspendResult = this.
|
|
151
|
+
suspendResult = this.b68_1.g2f(this);
|
|
152
152
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
153
153
|
return suspendResult;
|
|
154
154
|
}
|
|
@@ -160,29 +160,29 @@ function JsWebSocketSession$slambda() {
|
|
|
160
160
|
continue $sm;
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
var e = this.
|
|
164
|
-
switch (e.
|
|
163
|
+
var e = this.b68_1.f1();
|
|
164
|
+
switch (e.i4r_1.h3_1) {
|
|
165
165
|
case 0:
|
|
166
|
-
var text = e.
|
|
167
|
-
this.
|
|
166
|
+
var text = e.j4r_1;
|
|
167
|
+
this.q67_1.b67_1.send(decodeToString(text, 0, 0 + text.length | 0));
|
|
168
168
|
break;
|
|
169
169
|
case 1:
|
|
170
|
-
var tmp_3 = e.
|
|
170
|
+
var tmp_3 = e.j4r_1;
|
|
171
171
|
var source = tmp_3 instanceof Int8Array ? tmp_3 : THROW_CCE();
|
|
172
172
|
var frameData = source.buffer.slice(source.byteOffset, source.byteOffset + source.byteLength | 0);
|
|
173
|
-
this.
|
|
173
|
+
this.q67_1.b67_1.send(frameData);
|
|
174
174
|
break;
|
|
175
175
|
case 2:
|
|
176
176
|
var builder = new (Buffer())();
|
|
177
|
-
writeFully(builder, e.
|
|
177
|
+
writeFully(builder, e.j4r_1);
|
|
178
178
|
var data = builder;
|
|
179
|
-
var code = data.
|
|
179
|
+
var code = data.b2s();
|
|
180
180
|
var reason = readText(data);
|
|
181
|
-
this.c67_1.
|
|
182
|
-
if (isReservedStatusCode(this.
|
|
183
|
-
this.
|
|
181
|
+
this.q67_1.c67_1.b25(CloseReason().z4o(code, reason));
|
|
182
|
+
if (isReservedStatusCode(this.q67_1, code)) {
|
|
183
|
+
this.q67_1.b67_1.close();
|
|
184
184
|
} else {
|
|
185
|
-
this.
|
|
185
|
+
this.q67_1.b67_1.close(code, reason);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
break;
|
|
@@ -198,7 +198,7 @@ function JsWebSocketSession$slambda() {
|
|
|
198
198
|
continue $sm;
|
|
199
199
|
case 6:
|
|
200
200
|
var tmp_4 = this;
|
|
201
|
-
tmp_4.
|
|
201
|
+
tmp_4.y67_1 = Unit_instance;
|
|
202
202
|
this.bc_1 = 10;
|
|
203
203
|
this.ac_1 = 7;
|
|
204
204
|
var tmp_5 = this;
|
|
@@ -206,8 +206,8 @@ function JsWebSocketSession$slambda() {
|
|
|
206
206
|
case 7:
|
|
207
207
|
this.bc_1 = 10;
|
|
208
208
|
var tmp_6 = this;
|
|
209
|
-
cancelConsumed(this.
|
|
210
|
-
tmp_6.
|
|
209
|
+
cancelConsumed(this.w67_1, this.x67_1);
|
|
210
|
+
tmp_6.v67_1 = Unit_instance;
|
|
211
211
|
this.ac_1 = 12;
|
|
212
212
|
continue $sm;
|
|
213
213
|
case 8:
|
|
@@ -216,7 +216,7 @@ function JsWebSocketSession$slambda() {
|
|
|
216
216
|
if (tmp_7 instanceof Error) {
|
|
217
217
|
var e_0 = this.dc_1;
|
|
218
218
|
var tmp_8 = this;
|
|
219
|
-
this.
|
|
219
|
+
this.x67_1 = e_0;
|
|
220
220
|
throw e_0;
|
|
221
221
|
} else {
|
|
222
222
|
throw this.dc_1;
|
|
@@ -225,13 +225,13 @@ function JsWebSocketSession$slambda() {
|
|
|
225
225
|
case 9:
|
|
226
226
|
this.bc_1 = 10;
|
|
227
227
|
var t = this.dc_1;
|
|
228
|
-
cancelConsumed(this.
|
|
228
|
+
cancelConsumed(this.w67_1, this.x67_1);
|
|
229
229
|
throw t;
|
|
230
230
|
case 10:
|
|
231
231
|
throw this.dc_1;
|
|
232
232
|
case 11:
|
|
233
233
|
this.bc_1 = 10;
|
|
234
|
-
cancelConsumed(this.
|
|
234
|
+
cancelConsumed(this.w67_1, this.x67_1);
|
|
235
235
|
if (false) {
|
|
236
236
|
this.ac_1 = 1;
|
|
237
237
|
continue $sm;
|
|
@@ -253,9 +253,9 @@ function JsWebSocketSession$slambda() {
|
|
|
253
253
|
}
|
|
254
254
|
while (true);
|
|
255
255
|
}
|
|
256
|
-
|
|
257
|
-
var i = new (JsWebSocketSession$slambda())(this.
|
|
258
|
-
i.
|
|
256
|
+
d36($this$launch, completion) {
|
|
257
|
+
var i = new (JsWebSocketSession$slambda())(this.q67_1, completion);
|
|
258
|
+
i.r67_1 = $this$launch;
|
|
259
259
|
return i;
|
|
260
260
|
}
|
|
261
261
|
}
|
|
@@ -267,7 +267,7 @@ function JsWebSocketSession$slambda() {
|
|
|
267
267
|
function JsWebSocketSession$slambda_0(this$0, resultContinuation) {
|
|
268
268
|
var i = new (JsWebSocketSession$slambda())(this$0, resultContinuation);
|
|
269
269
|
var l = function ($this$launch, $completion) {
|
|
270
|
-
return i.
|
|
270
|
+
return i.z37($this$launch, $completion);
|
|
271
271
|
};
|
|
272
272
|
l.$arity = 1;
|
|
273
273
|
return l;
|
|
@@ -276,10 +276,10 @@ function JsWebSocketSession$lambda_2(this$0) {
|
|
|
276
276
|
return function (cause) {
|
|
277
277
|
var tmp;
|
|
278
278
|
if (cause == null) {
|
|
279
|
-
this$0.
|
|
279
|
+
this$0.b67_1.close();
|
|
280
280
|
tmp = Unit_instance;
|
|
281
281
|
} else {
|
|
282
|
-
this$0.
|
|
282
|
+
this$0.b67_1.close(Codes_NORMAL_getInstance().t4o_1, 'Client failed');
|
|
283
283
|
tmp = Unit_instance;
|
|
284
284
|
}
|
|
285
285
|
return Unit_instance;
|
|
@@ -290,24 +290,24 @@ function JsWebSocketSession() {
|
|
|
290
290
|
if (JsWebSocketSessionClass === VOID) {
|
|
291
291
|
class $ {
|
|
292
292
|
constructor(coroutineContext, websocket) {
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
this.
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
299
|
-
this.
|
|
300
|
-
this.
|
|
293
|
+
this.a67_1 = coroutineContext;
|
|
294
|
+
this.b67_1 = websocket;
|
|
295
|
+
this.c67_1 = CompletableDeferred();
|
|
296
|
+
this.d67_1 = Channel(2147483647);
|
|
297
|
+
this.e67_1 = Channel(2147483647);
|
|
298
|
+
this.f67_1 = this.d67_1;
|
|
299
|
+
this.g67_1 = this.e67_1;
|
|
300
|
+
this.h67_1 = this.c67_1;
|
|
301
301
|
// Inline function 'org.w3c.dom.ARRAYBUFFER' call
|
|
302
302
|
// Inline function 'kotlin.js.asDynamic' call
|
|
303
303
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
304
304
|
var tmp$ret$2 = 'arraybuffer';
|
|
305
|
-
this.
|
|
306
|
-
this.
|
|
307
|
-
this.
|
|
308
|
-
this.
|
|
305
|
+
this.b67_1.binaryType = tmp$ret$2;
|
|
306
|
+
this.b67_1.addEventListener('message', JsWebSocketSession$lambda(this));
|
|
307
|
+
this.b67_1.addEventListener('error', JsWebSocketSession$lambda_0(this));
|
|
308
|
+
this.b67_1.addEventListener('close', JsWebSocketSession$lambda_1(this));
|
|
309
309
|
launch(this, VOID, VOID, JsWebSocketSession$slambda_0(this, null));
|
|
310
|
-
var tmp0_safe_receiver = this.
|
|
310
|
+
var tmp0_safe_receiver = this.a67_1.nc(Key_instance);
|
|
311
311
|
if (tmp0_safe_receiver == null)
|
|
312
312
|
null;
|
|
313
313
|
else {
|
|
@@ -315,7 +315,7 @@ function JsWebSocketSession() {
|
|
|
315
315
|
}
|
|
316
316
|
}
|
|
317
317
|
s1x() {
|
|
318
|
-
return this.
|
|
318
|
+
return this.a67_1;
|
|
319
319
|
}
|
|
320
320
|
}
|
|
321
321
|
initMetadataForClass($, 'JsWebSocketSession', VOID, VOID, [CoroutineScope()], [0, 1]);
|
|
@@ -43,13 +43,13 @@ var WebSocketExceptionClass;
|
|
|
43
43
|
function WebSocketException() {
|
|
44
44
|
if (WebSocketExceptionClass === VOID) {
|
|
45
45
|
class $ extends IllegalStateException() {
|
|
46
|
-
static
|
|
46
|
+
static k5w(message, cause) {
|
|
47
47
|
var $this = this.ed(message, cause);
|
|
48
|
-
captureStack($this, $this.
|
|
48
|
+
captureStack($this, $this.j5w_1);
|
|
49
49
|
return $this;
|
|
50
50
|
}
|
|
51
|
-
static
|
|
52
|
-
return this.
|
|
51
|
+
static l5w(message) {
|
|
52
|
+
return this.k5w(message, null);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
initMetadataForClass($, 'WebSocketException');
|
|
@@ -10,30 +10,30 @@ function DefaultHttpRequest() {
|
|
|
10
10
|
if (DefaultHttpRequestClass === VOID) {
|
|
11
11
|
class $ {
|
|
12
12
|
constructor(call, data) {
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
17
|
-
this.
|
|
18
|
-
this.
|
|
13
|
+
this.m5w_1 = call;
|
|
14
|
+
this.n5w_1 = data.r56_1;
|
|
15
|
+
this.o5w_1 = data.q56_1;
|
|
16
|
+
this.p5w_1 = data.t56_1;
|
|
17
|
+
this.q5w_1 = data.s56_1;
|
|
18
|
+
this.r5w_1 = data.v56_1;
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
return this.
|
|
20
|
+
l52() {
|
|
21
|
+
return this.m5w_1;
|
|
22
22
|
}
|
|
23
23
|
s1x() {
|
|
24
|
-
return this.
|
|
24
|
+
return this.l52().s1x();
|
|
25
25
|
}
|
|
26
|
-
|
|
27
|
-
return this.
|
|
26
|
+
m52() {
|
|
27
|
+
return this.n5w_1;
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
return this.
|
|
29
|
+
n52() {
|
|
30
|
+
return this.o5w_1;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
return this.
|
|
32
|
+
z45() {
|
|
33
|
+
return this.q5w_1;
|
|
34
34
|
}
|
|
35
|
-
|
|
36
|
-
return this.
|
|
35
|
+
f52() {
|
|
36
|
+
return this.r5w_1;
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
initMetadataForClass($, 'DefaultHttpRequest', VOID, VOID, [HttpRequest()]);
|
|
@@ -68,63 +68,63 @@ function HttpRequestBuilder() {
|
|
|
68
68
|
if (HttpRequestBuilderClass === VOID) {
|
|
69
69
|
class $ {
|
|
70
70
|
constructor() {
|
|
71
|
-
this.
|
|
72
|
-
this.
|
|
73
|
-
this.
|
|
74
|
-
this.
|
|
75
|
-
this.
|
|
76
|
-
this.
|
|
71
|
+
this.n50_1 = new (URLBuilder())();
|
|
72
|
+
this.o50_1 = Companion_getInstance().a46_1;
|
|
73
|
+
this.p50_1 = new (HeadersBuilder())();
|
|
74
|
+
this.q50_1 = EmptyContent_getInstance();
|
|
75
|
+
this.r50_1 = SupervisorJob();
|
|
76
|
+
this.s50_1 = AttributesJsFn(true);
|
|
77
77
|
}
|
|
78
|
-
|
|
79
|
-
return this.
|
|
78
|
+
z45() {
|
|
79
|
+
return this.p50_1;
|
|
80
80
|
}
|
|
81
|
-
|
|
81
|
+
q57(value) {
|
|
82
82
|
if (!(value == null)) {
|
|
83
|
-
this.
|
|
83
|
+
this.s50_1.u3r(get_BodyTypeAttributeKey(), value);
|
|
84
84
|
} else {
|
|
85
|
-
this.
|
|
85
|
+
this.s50_1.v3r(get_BodyTypeAttributeKey());
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
|
-
|
|
89
|
-
return this.
|
|
88
|
+
n5v() {
|
|
89
|
+
return this.s50_1.s3r(get_BodyTypeAttributeKey());
|
|
90
90
|
}
|
|
91
91
|
z1i() {
|
|
92
|
-
var tmp = this.
|
|
93
|
-
var tmp_0 = this.
|
|
94
|
-
var tmp_1 = this.
|
|
95
|
-
var tmp_2 = this.
|
|
92
|
+
var tmp = this.n50_1.z1i();
|
|
93
|
+
var tmp_0 = this.o50_1;
|
|
94
|
+
var tmp_1 = this.p50_1.z1i();
|
|
95
|
+
var tmp_2 = this.q50_1;
|
|
96
96
|
var tmp0_elvis_lhs = tmp_2 instanceof OutgoingContent() ? tmp_2 : null;
|
|
97
97
|
var tmp_3;
|
|
98
98
|
if (tmp0_elvis_lhs == null) {
|
|
99
|
-
var message = 'No request transformation found: ' + toString(this.
|
|
99
|
+
var message = 'No request transformation found: ' + toString(this.q50_1);
|
|
100
100
|
throw IllegalStateException().o4(toString(message));
|
|
101
101
|
} else {
|
|
102
102
|
tmp_3 = tmp0_elvis_lhs;
|
|
103
103
|
}
|
|
104
|
-
return new (HttpRequestData())(tmp, tmp_0, tmp_1, tmp_3, this.
|
|
104
|
+
return new (HttpRequestData())(tmp, tmp_0, tmp_1, tmp_3, this.r50_1, this.s50_1);
|
|
105
105
|
}
|
|
106
|
-
|
|
107
|
-
this.
|
|
108
|
-
return this.
|
|
106
|
+
p57(builder) {
|
|
107
|
+
this.r50_1 = builder.r50_1;
|
|
108
|
+
return this.s5w(builder);
|
|
109
109
|
}
|
|
110
|
-
|
|
111
|
-
this.
|
|
112
|
-
this.
|
|
113
|
-
this.
|
|
114
|
-
takeFrom(this.
|
|
115
|
-
this.
|
|
116
|
-
appendAll(this.
|
|
117
|
-
putAll(this.
|
|
110
|
+
s5w(builder) {
|
|
111
|
+
this.o50_1 = builder.o50_1;
|
|
112
|
+
this.q50_1 = builder.q50_1;
|
|
113
|
+
this.q57(builder.n5v());
|
|
114
|
+
takeFrom(this.n50_1, builder.n50_1);
|
|
115
|
+
this.n50_1.i49_1 = this.n50_1.i49_1;
|
|
116
|
+
appendAll(this.p50_1, builder.p50_1);
|
|
117
|
+
putAll(this.s50_1, builder.s50_1);
|
|
118
118
|
return this;
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
v5r(key, capability) {
|
|
121
121
|
var tmp = get_ENGINE_CAPABILITIES_KEY();
|
|
122
|
-
var capabilities = this.
|
|
122
|
+
var capabilities = this.s50_1.w3r(tmp, HttpRequestBuilder$setCapability$lambda);
|
|
123
123
|
// Inline function 'kotlin.collections.set' call
|
|
124
124
|
capabilities.d3(key, capability);
|
|
125
125
|
}
|
|
126
|
-
|
|
127
|
-
var tmp0_safe_receiver = this.
|
|
126
|
+
c5r(key) {
|
|
127
|
+
var tmp0_safe_receiver = this.s50_1.s3r(get_ENGINE_CAPABILITIES_KEY());
|
|
128
128
|
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w2(key);
|
|
129
129
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
130
130
|
}
|
|
@@ -135,7 +135,7 @@ function HttpRequestBuilder() {
|
|
|
135
135
|
return HttpRequestBuilderClass;
|
|
136
136
|
}
|
|
137
137
|
function get_coroutineContext() {
|
|
138
|
-
return this.
|
|
138
|
+
return this.l52().s1x();
|
|
139
139
|
}
|
|
140
140
|
var HttpRequestClass;
|
|
141
141
|
function HttpRequest() {
|
|
@@ -151,24 +151,24 @@ function HttpRequestData() {
|
|
|
151
151
|
if (HttpRequestDataClass === VOID) {
|
|
152
152
|
class $ {
|
|
153
153
|
constructor(url, method, headers, body, executionContext, attributes) {
|
|
154
|
-
this.
|
|
155
|
-
this.
|
|
156
|
-
this.
|
|
157
|
-
this.
|
|
158
|
-
this.
|
|
159
|
-
this.
|
|
154
|
+
this.q56_1 = url;
|
|
155
|
+
this.r56_1 = method;
|
|
156
|
+
this.s56_1 = headers;
|
|
157
|
+
this.t56_1 = body;
|
|
158
|
+
this.u56_1 = executionContext;
|
|
159
|
+
this.v56_1 = attributes;
|
|
160
160
|
var tmp = this;
|
|
161
|
-
var tmp0_safe_receiver = this.
|
|
161
|
+
var tmp0_safe_receiver = this.v56_1.s3r(get_ENGINE_CAPABILITIES_KEY());
|
|
162
162
|
var tmp1_elvis_lhs = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.x2();
|
|
163
|
-
tmp.
|
|
163
|
+
tmp.w56_1 = tmp1_elvis_lhs == null ? emptySet() : tmp1_elvis_lhs;
|
|
164
164
|
}
|
|
165
|
-
|
|
166
|
-
var tmp0_safe_receiver = this.
|
|
165
|
+
i5r(key) {
|
|
166
|
+
var tmp0_safe_receiver = this.v56_1.s3r(get_ENGINE_CAPABILITIES_KEY());
|
|
167
167
|
var tmp = tmp0_safe_receiver == null ? null : tmp0_safe_receiver.w2(key);
|
|
168
168
|
return (tmp == null ? true : !(tmp == null)) ? tmp : THROW_CCE();
|
|
169
169
|
}
|
|
170
170
|
toString() {
|
|
171
|
-
return 'HttpRequestData(url=' + this.
|
|
171
|
+
return 'HttpRequestData(url=' + this.q56_1.toString() + ', method=' + this.r56_1.toString() + ')';
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
initMetadataForClass($, 'HttpRequestData');
|
|
@@ -187,7 +187,7 @@ function ResponseAdapter() {
|
|
|
187
187
|
}
|
|
188
188
|
function isSseRequest(_this__u8e3s4) {
|
|
189
189
|
_init_properties_HttpRequest_kt__813lx1();
|
|
190
|
-
var tmp = _this__u8e3s4.
|
|
190
|
+
var tmp = _this__u8e3s4.t56_1;
|
|
191
191
|
return tmp instanceof SSEClientContent();
|
|
192
192
|
}
|
|
193
193
|
var HttpResponseDataClass;
|
|
@@ -195,16 +195,16 @@ function HttpResponseData() {
|
|
|
195
195
|
if (HttpResponseDataClass === VOID) {
|
|
196
196
|
class $ {
|
|
197
197
|
constructor(statusCode, requestTime, headers, version, body, callContext) {
|
|
198
|
-
this.
|
|
199
|
-
this.
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
202
|
-
this.
|
|
203
|
-
this.
|
|
204
|
-
this.
|
|
198
|
+
this.b54_1 = statusCode;
|
|
199
|
+
this.c54_1 = requestTime;
|
|
200
|
+
this.d54_1 = headers;
|
|
201
|
+
this.e54_1 = version;
|
|
202
|
+
this.f54_1 = body;
|
|
203
|
+
this.g54_1 = callContext;
|
|
204
|
+
this.h54_1 = GMTDate();
|
|
205
205
|
}
|
|
206
206
|
toString() {
|
|
207
|
-
return 'HttpResponseData=(statusCode=' + this.
|
|
207
|
+
return 'HttpResponseData=(statusCode=' + this.b54_1.toString() + ')';
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
initMetadataForClass($, 'HttpResponseData');
|
|
@@ -214,29 +214,29 @@ function HttpResponseData() {
|
|
|
214
214
|
}
|
|
215
215
|
function isUpgradeRequest(_this__u8e3s4) {
|
|
216
216
|
_init_properties_HttpRequest_kt__813lx1();
|
|
217
|
-
var tmp = _this__u8e3s4.
|
|
217
|
+
var tmp = _this__u8e3s4.t56_1;
|
|
218
218
|
return tmp instanceof ClientUpgradeContent();
|
|
219
219
|
}
|
|
220
220
|
function takeFrom_2(_this__u8e3s4, request) {
|
|
221
221
|
_init_properties_HttpRequest_kt__813lx1();
|
|
222
|
-
_this__u8e3s4.
|
|
223
|
-
_this__u8e3s4.
|
|
224
|
-
_this__u8e3s4.
|
|
225
|
-
takeFrom_0(_this__u8e3s4.
|
|
226
|
-
_this__u8e3s4.
|
|
227
|
-
putAll(_this__u8e3s4.
|
|
222
|
+
_this__u8e3s4.o50_1 = request.r56_1;
|
|
223
|
+
_this__u8e3s4.q50_1 = request.t56_1;
|
|
224
|
+
_this__u8e3s4.q57(_this__u8e3s4.s50_1.s3r(get_BodyTypeAttributeKey()));
|
|
225
|
+
takeFrom_0(_this__u8e3s4.n50_1, request.q56_1);
|
|
226
|
+
_this__u8e3s4.p50_1.s3t(request.s56_1);
|
|
227
|
+
putAll(_this__u8e3s4.s50_1, request.v56_1);
|
|
228
228
|
return _this__u8e3s4;
|
|
229
229
|
}
|
|
230
230
|
function headers(_this__u8e3s4, block) {
|
|
231
231
|
_init_properties_HttpRequest_kt__813lx1();
|
|
232
232
|
// Inline function 'kotlin.apply' call
|
|
233
|
-
var this_0 = _this__u8e3s4.
|
|
233
|
+
var this_0 = _this__u8e3s4.z45();
|
|
234
234
|
block(this_0);
|
|
235
235
|
return this_0;
|
|
236
236
|
}
|
|
237
237
|
function url(_this__u8e3s4, urlString) {
|
|
238
238
|
_init_properties_HttpRequest_kt__813lx1();
|
|
239
|
-
takeFrom_1(_this__u8e3s4.
|
|
239
|
+
takeFrom_1(_this__u8e3s4.n50_1, urlString);
|
|
240
240
|
}
|
|
241
241
|
var properties_initialized_HttpRequest_kt_zh09pz;
|
|
242
242
|
function _init_properties_HttpRequest_kt__813lx1() {
|
|
@@ -15,11 +15,11 @@ function Phases() {
|
|
|
15
15
|
class $ {
|
|
16
16
|
constructor() {
|
|
17
17
|
Phases_instance = this;
|
|
18
|
-
this.
|
|
19
|
-
this.
|
|
20
|
-
this.
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
18
|
+
this.i59_1 = new (PipelinePhase())('Before');
|
|
19
|
+
this.j59_1 = new (PipelinePhase())('State');
|
|
20
|
+
this.k59_1 = new (PipelinePhase())('Transform');
|
|
21
|
+
this.l59_1 = new (PipelinePhase())('Render');
|
|
22
|
+
this.m59_1 = new (PipelinePhase())('Send');
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
initMetadataForObject($, 'Phases');
|
|
@@ -40,11 +40,11 @@ function HttpRequestPipeline() {
|
|
|
40
40
|
constructor(developmentMode) {
|
|
41
41
|
Phases_getInstance();
|
|
42
42
|
developmentMode = developmentMode === VOID ? true : developmentMode;
|
|
43
|
-
super([Phases_getInstance().
|
|
44
|
-
this.
|
|
43
|
+
super([Phases_getInstance().i59_1, Phases_getInstance().j59_1, Phases_getInstance().k59_1, Phases_getInstance().l59_1, Phases_getInstance().m59_1]);
|
|
44
|
+
this.b5x_1 = developmentMode;
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
return this.
|
|
46
|
+
t3w() {
|
|
47
|
+
return this.b5x_1;
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
initMetadataForClass($, 'HttpRequestPipeline', HttpRequestPipeline, VOID, VOID, [2]);
|
|
@@ -58,11 +58,11 @@ function Phases_0() {
|
|
|
58
58
|
class $ {
|
|
59
59
|
constructor() {
|
|
60
60
|
Phases_instance_0 = this;
|
|
61
|
-
this.
|
|
62
|
-
this.
|
|
63
|
-
this.
|
|
64
|
-
this.
|
|
65
|
-
this.
|
|
61
|
+
this.w50_1 = new (PipelinePhase())('Before');
|
|
62
|
+
this.x50_1 = new (PipelinePhase())('State');
|
|
63
|
+
this.y50_1 = new (PipelinePhase())('Monitoring');
|
|
64
|
+
this.z50_1 = new (PipelinePhase())('Engine');
|
|
65
|
+
this.a51_1 = new (PipelinePhase())('Receive');
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
initMetadataForObject($, 'Phases');
|
|
@@ -83,11 +83,11 @@ function HttpSendPipeline() {
|
|
|
83
83
|
constructor(developmentMode) {
|
|
84
84
|
Phases_getInstance_0();
|
|
85
85
|
developmentMode = developmentMode === VOID ? true : developmentMode;
|
|
86
|
-
super([Phases_getInstance_0().
|
|
87
|
-
this.
|
|
86
|
+
super([Phases_getInstance_0().w50_1, Phases_getInstance_0().x50_1, Phases_getInstance_0().y50_1, Phases_getInstance_0().z50_1, Phases_getInstance_0().a51_1]);
|
|
87
|
+
this.j5x_1 = developmentMode;
|
|
88
88
|
}
|
|
89
|
-
|
|
90
|
-
return this.
|
|
89
|
+
t3w() {
|
|
90
|
+
return this.j5x_1;
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
initMetadataForClass($, 'HttpSendPipeline', HttpSendPipeline, VOID, VOID, [2]);
|
|
@@ -4,7 +4,7 @@ import { HttpHeaders_getInstanceelogg8fjd54u as HttpHeaders_getInstance } from '
|
|
|
4
4
|
//region block: pre-declaration
|
|
5
5
|
//endregion
|
|
6
6
|
function accept(_this__u8e3s4, contentType) {
|
|
7
|
-
return _this__u8e3s4.
|
|
7
|
+
return _this__u8e3s4.z45().r3t(HttpHeaders_getInstance().g41_1, contentType.toString());
|
|
8
8
|
}
|
|
9
9
|
//region block: exports
|
|
10
10
|
export {
|