@attocash/commons-js 5.0.0 → 5.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +68 -68
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +56 -56
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +661 -661
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +17 -17
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +26 -26
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +42 -42
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +67 -67
- package/commons-commons-core/cash/atto/commons/AttoSigner.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +5 -5
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +35 -35
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +37 -37
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +10 -10
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/serialiazer/AttoAddressAsByteArraySerializer.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/serialiazer/InstantMillisSerializer.mjs +2 -2
- package/commons-commons-core/cash/atto/commons/utils/Base32.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/utils/SecureRandom.js.mjs +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.export.d.ts +3 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +19 -5
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +72 -72
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.ts +4 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +16 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +41 -0
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -0
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +812 -319
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +226 -76
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs.map +1 -1
- package/commons-commons-node.mjs +1 -0
- package/commons-commons-node.mjs.map +1 -1
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +3 -3
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +34 -34
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +56 -56
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/KotlinLogging.mjs +4 -4
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerDirect.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerFactory.mjs +1 -1
- package/kotlin-logging/io/github/oshai/kotlinlogging/internal/KLoggerNameResolver.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +76 -76
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +133 -28
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs +28 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/NullSurrogate.mjs.map +1 -0
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +39 -39
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +34 -34
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +11 -11
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +189 -189
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Core.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +20 -20
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +56 -56
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +149 -149
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +50 -50
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/UtilsJs.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs.map +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +37 -37
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +59 -59
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +70 -70
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonSchemaCache.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/AbstractJsonLexer.mjs +178 -178
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/CommentLexers.mjs +25 -25
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Composers.mjs +71 -71
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonElementMarker.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonExceptions.mjs +13 -13
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +10 -10
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +36 -36
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +7 -7
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonToStringWriterJsWasm.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonTreeReader.mjs +84 -84
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +8 -8
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +141 -141
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +98 -98
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +151 -151
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +59 -59
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +22 -22
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +219 -219
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +15 -15
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Loader.js.mjs +2 -2
- package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +241 -241
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +133 -133
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/JsonContentTypeMatcher.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/HttpClient.mjs +85 -85
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +36 -36
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +41 -41
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +54 -54
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +51 -51
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +27 -27
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineConfig.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/engine/Loader.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/engine/Utils.mjs +20 -20
- package/ktor-ktor-client-core/io/ktor/client/engine/js/Js.mjs +6 -6
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsClientEngine.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +40 -40
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +21 -21
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/network/sockets/TimeoutExceptions.nonJvm.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +61 -61
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +125 -125
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +138 -138
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +70 -70
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +53 -53
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +42 -42
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +63 -63
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +98 -98
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +33 -33
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientHook.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginBuilder.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +11 -11
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +13 -13
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +45 -45
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +65 -65
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/WebSockets.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/request/DefaultHttpRequest.mjs +17 -17
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +64 -64
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequestPipeline.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/utils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/statement/DefaultHttpResponse.mjs +24 -24
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +18 -18
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +52 -52
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +35 -35
- package/ktor-ktor-client-core/io/ktor/client/utils/ClientEvents.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/utils/Content.mjs +3 -3
- package/ktor-ktor-client-core/io/ktor/client/utils/HeadersUtils.mjs +5 -5
- package/ktor-ktor-events/io/ktor/events/Events.mjs +5 -5
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +12 -12
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +89 -89
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +31 -31
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +114 -114
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +66 -66
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/Query.mjs +3 -3
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +58 -58
- package/ktor-ktor-http/io/ktor/http/URLBuilderJs.mjs +1 -1
- package/ktor-ktor-http/io/ktor/http/URLParser.mjs +34 -34
- package/ktor-ktor-http/io/ktor/http/URLProtocol.mjs +20 -20
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/Url.mjs +72 -72
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +25 -25
- package/ktor-ktor-http/io/ktor/http/content/ByteArrayContent.mjs +9 -9
- package/ktor-ktor-http/io/ktor/http/content/OutgoingContent.mjs +8 -8
- package/ktor-ktor-http/io/ktor/http/content/TextContent.mjs +12 -12
- package/ktor-ktor-http-cio/io/ktor/http/cio/CIOMultipartDataBase.mjs +4 -4
- package/ktor-ktor-http-cio/io/ktor/http/cio/ChunkedTransferEncoding.mjs +106 -106
- package/ktor-ktor-http-cio/io/ktor/http/cio/ConnectionOptions.mjs +31 -31
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpBody.mjs +15 -15
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +100 -100
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +69 -69
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +113 -113
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponse.mjs +9 -9
- package/ktor-ktor-http-cio/io/ktor/http/cio/RequestResponseBuilderJs.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +17 -17
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +70 -70
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayPool.mjs +2 -2
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Chars.mjs +21 -21
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Errors.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/MutableRange.mjs +3 -3
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/Tokenizer.mjs +7 -7
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannel.mjs +141 -141
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +75 -75
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelUtils.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +230 -230
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +72 -72
- package/ktor-ktor-io/io/ktor/utils/io/CloseHookByteWriteChannel.mjs +14 -14
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +26 -26
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/ktor-ktor-io/io/ktor/utils/io/LineEndingMode.mjs +15 -15
- package/ktor-ktor-io/io/ktor/utils/io/SourceByteReadChannel.mjs +18 -18
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Charset.js.mjs +36 -36
- package/ktor-ktor-io/io/ktor/utils/io/charsets/Encoding.mjs +4 -4
- package/ktor-ktor-io/io/ktor/utils/io/charsets/ISO88591.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoder.js.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/charsets/TextDecoderFallback.js.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Buffer.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/BytePacketBuilder.mjs +3 -3
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +5 -5
- package/ktor-ktor-io/io/ktor/utils/io/core/Input.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/core/Strings.mjs +10 -10
- package/ktor-ktor-io/io/ktor/utils/io/pool/ByteArrayPool.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/pool/DefaultPool.mjs +27 -27
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/selector/SelectorManager.jsAndWasmShared.mjs +2 -2
- package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
- package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +50 -50
- package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +106 -106
- package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
- package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +30 -30
- package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
- package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
- package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +5 -5
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +58 -58
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +122 -122
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +4 -4
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +11 -11
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +33 -33
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +31 -31
- package/ktor-ktor-utils/io/ktor/util/PlatformUtils.mjs +16 -16
- package/ktor-ktor-utils/io/ktor/util/StringValues.mjs +83 -83
- package/ktor-ktor-utils/io/ktor/util/Text.mjs +7 -7
- package/ktor-ktor-utils/io/ktor/util/collections/ConcurrentMapJs.mjs +29 -29
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +67 -67
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +6 -6
- package/ktor-ktor-utils/io/ktor/util/logging/KtorSimpleLoggerJs.mjs +10 -10
- package/ktor-ktor-utils/io/ktor/util/logging/LoggerJs.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/network/NetworkAddressJs.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/DebugPipelineContext.mjs +32 -32
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +25 -25
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +53 -53
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelineContext.mjs +1 -1
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhase.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/pipeline/PipelinePhaseRelation.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/pipeline/SuspendFunctionGun.mjs +49 -49
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +19 -19
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +41 -41
- package/ktor-ktor-websockets/io/ktor/websocket/FrameTooBigException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +9 -9
- package/ktor-ktor-websockets/io/ktor/websocket/ProtocolViolationException.mjs +5 -5
- package/ktor-ktor-websockets/io/ktor/websocket/RawWebSocketCommon.mjs +150 -150
- package/package.json +1 -1
|
@@ -82,16 +82,16 @@ function parseVersion(text, range) {
|
|
|
82
82
|
_init_properties_HttpParser_kt__gbdom1();
|
|
83
83
|
skipSpaces(text, range);
|
|
84
84
|
// Inline function 'kotlin.check' call
|
|
85
|
-
if (!(range.
|
|
85
|
+
if (!(range.z4i_1 < range.a4j_1)) {
|
|
86
86
|
var message = 'Failed to parse version: ' + toString(text);
|
|
87
87
|
throw IllegalStateException().o4(toString(message));
|
|
88
88
|
}
|
|
89
89
|
var tmp = get_versions();
|
|
90
|
-
var tmp_0 = range.
|
|
91
|
-
var tmp_1 = range.
|
|
92
|
-
var exact = singleOrNull(tmp.
|
|
90
|
+
var tmp_0 = range.z4i_1;
|
|
91
|
+
var tmp_1 = range.a4j_1;
|
|
92
|
+
var exact = singleOrNull(tmp.c4g(text, tmp_0, tmp_1, VOID, parseVersion$lambda));
|
|
93
93
|
if (!(exact == null)) {
|
|
94
|
-
range.
|
|
94
|
+
range.z4i_1 = range.z4i_1 + exact.length | 0;
|
|
95
95
|
return exact;
|
|
96
96
|
}
|
|
97
97
|
unsupportedHttpVersion(nextToken(text, range));
|
|
@@ -100,9 +100,9 @@ function parseStatusCode(text, range) {
|
|
|
100
100
|
_init_properties_HttpParser_kt__gbdom1();
|
|
101
101
|
skipSpaces(text, range);
|
|
102
102
|
var status = 0;
|
|
103
|
-
var newStart = range.
|
|
104
|
-
var inductionVariable = range.
|
|
105
|
-
var last = range.
|
|
103
|
+
var newStart = range.a4j_1;
|
|
104
|
+
var inductionVariable = range.z4i_1;
|
|
105
|
+
var last = range.a4j_1;
|
|
106
106
|
if (inductionVariable < last)
|
|
107
107
|
$l$loop: do {
|
|
108
108
|
var idx = inductionVariable;
|
|
@@ -110,14 +110,14 @@ function parseStatusCode(text, range) {
|
|
|
110
110
|
var ch = charSequenceGet(text, idx);
|
|
111
111
|
if (ch === _Char___init__impl__6a9atx(32)) {
|
|
112
112
|
if (statusOutOfRange(status)) {
|
|
113
|
-
throw ParserException().
|
|
113
|
+
throw ParserException().f4j('Status-code must be 3-digit. Status received: ' + status + '.');
|
|
114
114
|
}
|
|
115
115
|
newStart = idx;
|
|
116
116
|
break $l$loop;
|
|
117
117
|
} else if (_Char___init__impl__6a9atx(48) <= ch ? ch <= _Char___init__impl__6a9atx(57) : false) {
|
|
118
118
|
status = imul(status, 10) + Char__minus_impl_a2frrh(ch, _Char___init__impl__6a9atx(48)) | 0;
|
|
119
119
|
} else {
|
|
120
|
-
var tmp2 = range.
|
|
120
|
+
var tmp2 = range.z4i_1;
|
|
121
121
|
// Inline function 'kotlin.text.substring' call
|
|
122
122
|
var endIndex = findSpaceOrEnd(text, range);
|
|
123
123
|
var code = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
@@ -125,7 +125,7 @@ function parseStatusCode(text, range) {
|
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
while (inductionVariable < last);
|
|
128
|
-
range.
|
|
128
|
+
range.z4i_1 = newStart;
|
|
129
129
|
return status;
|
|
130
130
|
}
|
|
131
131
|
function parseHeaders(input, builder, range, $completion) {
|
|
@@ -137,7 +137,7 @@ function parseHeaders(input, builder, range, $completion) {
|
|
|
137
137
|
}
|
|
138
138
|
function unsupportedHttpVersion(result) {
|
|
139
139
|
_init_properties_HttpParser_kt__gbdom1();
|
|
140
|
-
throw ParserException().
|
|
140
|
+
throw ParserException().f4j('Unsupported HTTP version: ' + toString(result));
|
|
141
141
|
}
|
|
142
142
|
function statusOutOfRange(code) {
|
|
143
143
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -147,9 +147,9 @@ var ParserExceptionClass;
|
|
|
147
147
|
function ParserException() {
|
|
148
148
|
if (ParserExceptionClass === VOID) {
|
|
149
149
|
class $ extends IllegalStateException() {
|
|
150
|
-
static
|
|
150
|
+
static f4j(message) {
|
|
151
151
|
var $this = this.o4(message);
|
|
152
|
-
captureStack($this, $this.
|
|
152
|
+
captureStack($this, $this.e4j_1);
|
|
153
153
|
return $this;
|
|
154
154
|
}
|
|
155
155
|
}
|
|
@@ -160,16 +160,16 @@ function ParserException() {
|
|
|
160
160
|
}
|
|
161
161
|
function parseHeaderName(text, range) {
|
|
162
162
|
_init_properties_HttpParser_kt__gbdom1();
|
|
163
|
-
var index = range.
|
|
164
|
-
var end = range.
|
|
163
|
+
var index = range.z4i_1;
|
|
164
|
+
var end = range.a4j_1;
|
|
165
165
|
while (index < end) {
|
|
166
166
|
var ch = text.b(index);
|
|
167
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
168
|
-
range.
|
|
167
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.z4i_1)) {
|
|
168
|
+
range.z4i_1 = index + 1 | 0;
|
|
169
169
|
return index;
|
|
170
170
|
}
|
|
171
171
|
if (isDelimiter(ch)) {
|
|
172
|
-
parseHeaderNameFailed(text, index, range.
|
|
172
|
+
parseHeaderNameFailed(text, index, range.z4i_1, ch);
|
|
173
173
|
}
|
|
174
174
|
index = index + 1 | 0;
|
|
175
175
|
}
|
|
@@ -177,12 +177,12 @@ function parseHeaderName(text, range) {
|
|
|
177
177
|
}
|
|
178
178
|
function parseHeaderValue(text, range) {
|
|
179
179
|
_init_properties_HttpParser_kt__gbdom1();
|
|
180
|
-
var start = range.
|
|
181
|
-
var end = range.
|
|
180
|
+
var start = range.z4i_1;
|
|
181
|
+
var end = range.a4j_1;
|
|
182
182
|
var index = start;
|
|
183
183
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
184
184
|
if (index >= end) {
|
|
185
|
-
range.
|
|
185
|
+
range.z4i_1 = end;
|
|
186
186
|
return Unit_instance;
|
|
187
187
|
}
|
|
188
188
|
var valueStart = index;
|
|
@@ -196,13 +196,13 @@ function parseHeaderValue(text, range) {
|
|
|
196
196
|
valueLastIndex = index;
|
|
197
197
|
index = index + 1 | 0;
|
|
198
198
|
}
|
|
199
|
-
range.
|
|
200
|
-
range.
|
|
199
|
+
range.z4i_1 = valueStart;
|
|
200
|
+
range.a4j_1 = valueLastIndex + 1 | 0;
|
|
201
201
|
}
|
|
202
202
|
function validateHostHeader(host) {
|
|
203
203
|
_init_properties_HttpParser_kt__gbdom1();
|
|
204
204
|
if (endsWith(host, ':')) {
|
|
205
|
-
throw ParserException().
|
|
205
|
+
throw ParserException().f4j("Host header with ':' should contains port: " + toString(host));
|
|
206
206
|
}
|
|
207
207
|
var tmp$ret$1;
|
|
208
208
|
$l$block: {
|
|
@@ -219,7 +219,7 @@ function validateHostHeader(host) {
|
|
|
219
219
|
tmp$ret$1 = false;
|
|
220
220
|
}
|
|
221
221
|
if (tmp$ret$1) {
|
|
222
|
-
throw ParserException().
|
|
222
|
+
throw ParserException().f4j('Host cannot contain any of the following symbols: ' + toString(get_hostForbiddenSymbols()));
|
|
223
223
|
}
|
|
224
224
|
}
|
|
225
225
|
function isDelimiter(ch) {
|
|
@@ -229,26 +229,26 @@ function isDelimiter(ch) {
|
|
|
229
229
|
function parseHeaderNameFailed(text, index, start, ch) {
|
|
230
230
|
_init_properties_HttpParser_kt__gbdom1();
|
|
231
231
|
if (ch === _Char___init__impl__6a9atx(58)) {
|
|
232
|
-
throw ParserException().
|
|
232
|
+
throw ParserException().f4j('Empty header names are not allowed as per RFC7230.');
|
|
233
233
|
}
|
|
234
234
|
if (index === start) {
|
|
235
|
-
throw ParserException().
|
|
235
|
+
throw ParserException().f4j('Multiline headers via line folding is not supported since it is deprecated as per RFC7230.');
|
|
236
236
|
}
|
|
237
237
|
characterIsNotAllowed(text, ch);
|
|
238
238
|
}
|
|
239
239
|
function noColonFound(text, range) {
|
|
240
240
|
_init_properties_HttpParser_kt__gbdom1();
|
|
241
|
-
var tmp2 = range.
|
|
241
|
+
var tmp2 = range.z4i_1;
|
|
242
242
|
// Inline function 'kotlin.text.substring' call
|
|
243
|
-
var endIndex = range.
|
|
243
|
+
var endIndex = range.a4j_1;
|
|
244
244
|
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
245
|
-
throw ParserException().
|
|
245
|
+
throw ParserException().f4j('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
246
246
|
}
|
|
247
247
|
function characterIsNotAllowed(text, ch) {
|
|
248
248
|
_init_properties_HttpParser_kt__gbdom1();
|
|
249
249
|
// Inline function 'kotlin.code' call
|
|
250
250
|
var tmp$ret$0 = Char__toInt_impl_vasixd(ch);
|
|
251
|
-
throw ParserException().
|
|
251
|
+
throw ParserException().f4j('Character with code ' + (tmp$ret$0 & 255) + ' is not allowed in header names, \n' + toString(text));
|
|
252
252
|
}
|
|
253
253
|
function parseVersion$lambda(ch, _unused_var__etf5q3) {
|
|
254
254
|
_init_properties_HttpParser_kt__gbdom1();
|
|
@@ -260,7 +260,7 @@ function $parseResponseCOROUTINE$() {
|
|
|
260
260
|
class $ extends CoroutineImpl() {
|
|
261
261
|
constructor(input, resultContinuation) {
|
|
262
262
|
super(resultContinuation);
|
|
263
|
-
this.
|
|
263
|
+
this.s4i_1 = input;
|
|
264
264
|
}
|
|
265
265
|
ic() {
|
|
266
266
|
var suspendResult = this.cc_1;
|
|
@@ -270,19 +270,19 @@ function $parseResponseCOROUTINE$() {
|
|
|
270
270
|
switch (tmp) {
|
|
271
271
|
case 0:
|
|
272
272
|
this.bc_1 = 5;
|
|
273
|
-
this.
|
|
274
|
-
this.
|
|
273
|
+
this.t4i_1 = new (CharArrayBuilder())();
|
|
274
|
+
this.u4i_1 = new (MutableRange())(0, 0);
|
|
275
275
|
this.bc_1 = 4;
|
|
276
276
|
this.ac_1 = 1;
|
|
277
|
-
suspendResult = readUTF8LineTo(this.
|
|
277
|
+
suspendResult = readUTF8LineTo(this.s4i_1, this.t4i_1, 8192, get_httpLineEndings(), this);
|
|
278
278
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
279
279
|
return suspendResult;
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
continue $sm;
|
|
283
283
|
case 1:
|
|
284
|
-
this.
|
|
285
|
-
if (!this.
|
|
284
|
+
this.v4i_1 = suspendResult;
|
|
285
|
+
if (!this.v4i_1) {
|
|
286
286
|
return null;
|
|
287
287
|
} else {
|
|
288
288
|
this.ac_1 = 2;
|
|
@@ -290,14 +290,14 @@ function $parseResponseCOROUTINE$() {
|
|
|
290
290
|
}
|
|
291
291
|
|
|
292
292
|
case 2:
|
|
293
|
-
this.
|
|
294
|
-
this.
|
|
295
|
-
this.
|
|
296
|
-
skipSpaces(this.
|
|
297
|
-
this.
|
|
298
|
-
this.
|
|
293
|
+
this.u4i_1.a4j_1 = this.t4i_1.a4i_1;
|
|
294
|
+
this.w4i_1 = parseVersion(this.t4i_1, this.u4i_1);
|
|
295
|
+
this.x4i_1 = parseStatusCode(this.t4i_1, this.u4i_1);
|
|
296
|
+
skipSpaces(this.t4i_1, this.u4i_1);
|
|
297
|
+
this.y4i_1 = this.t4i_1.c(this.u4i_1.z4i_1, this.u4i_1.a4j_1);
|
|
298
|
+
this.u4i_1.z4i_1 = this.u4i_1.a4j_1;
|
|
299
299
|
this.ac_1 = 3;
|
|
300
|
-
suspendResult = parseHeaders(this.
|
|
300
|
+
suspendResult = parseHeaders(this.s4i_1, this.t4i_1, this.u4i_1, this);
|
|
301
301
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
302
302
|
return suspendResult;
|
|
303
303
|
}
|
|
@@ -305,14 +305,14 @@ function $parseResponseCOROUTINE$() {
|
|
|
305
305
|
continue $sm;
|
|
306
306
|
case 3:
|
|
307
307
|
var tmp0_elvis_lhs = suspendResult;
|
|
308
|
-
var headers = tmp0_elvis_lhs == null ? new (HttpHeadersMap())(this.
|
|
309
|
-
return new (Response())(this.
|
|
308
|
+
var headers = tmp0_elvis_lhs == null ? new (HttpHeadersMap())(this.t4i_1) : tmp0_elvis_lhs;
|
|
309
|
+
return new (Response())(this.w4i_1, this.x4i_1, this.y4i_1, headers, this.t4i_1);
|
|
310
310
|
case 4:
|
|
311
311
|
this.bc_1 = 5;
|
|
312
312
|
var tmp_0 = this.dc_1;
|
|
313
313
|
if (tmp_0 instanceof Error) {
|
|
314
314
|
var t = this.dc_1;
|
|
315
|
-
this.
|
|
315
|
+
this.t4i_1.m2o();
|
|
316
316
|
throw t;
|
|
317
317
|
} else {
|
|
318
318
|
throw this.dc_1;
|
|
@@ -344,9 +344,9 @@ function $parseHeadersCOROUTINE$() {
|
|
|
344
344
|
class $ extends CoroutineImpl() {
|
|
345
345
|
constructor(input, builder, range, resultContinuation) {
|
|
346
346
|
super(resultContinuation);
|
|
347
|
-
this.
|
|
348
|
-
this.
|
|
349
|
-
this.
|
|
347
|
+
this.o4j_1 = input;
|
|
348
|
+
this.p4j_1 = builder;
|
|
349
|
+
this.q4j_1 = range;
|
|
350
350
|
}
|
|
351
351
|
ic() {
|
|
352
352
|
var suspendResult = this.cc_1;
|
|
@@ -356,7 +356,7 @@ function $parseHeadersCOROUTINE$() {
|
|
|
356
356
|
switch (tmp) {
|
|
357
357
|
case 0:
|
|
358
358
|
this.bc_1 = 7;
|
|
359
|
-
this.
|
|
359
|
+
this.r4j_1 = new (HttpHeadersMap())(this.p4j_1);
|
|
360
360
|
this.bc_1 = 6;
|
|
361
361
|
this.ac_1 = 1;
|
|
362
362
|
continue $sm;
|
|
@@ -367,7 +367,7 @@ function $parseHeadersCOROUTINE$() {
|
|
|
367
367
|
}
|
|
368
368
|
|
|
369
369
|
this.ac_1 = 2;
|
|
370
|
-
suspendResult = readUTF8LineTo(this.
|
|
370
|
+
suspendResult = readUTF8LineTo(this.o4j_1, this.p4j_1, 8192, get_httpLineEndings(), this);
|
|
371
371
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
372
372
|
return suspendResult;
|
|
373
373
|
}
|
|
@@ -376,7 +376,7 @@ function $parseHeadersCOROUTINE$() {
|
|
|
376
376
|
case 2:
|
|
377
377
|
var ARGUMENT = suspendResult;
|
|
378
378
|
if (!ARGUMENT) {
|
|
379
|
-
this.
|
|
379
|
+
this.r4j_1.m2o();
|
|
380
380
|
return null;
|
|
381
381
|
} else {
|
|
382
382
|
this.ac_1 = 3;
|
|
@@ -384,8 +384,8 @@ function $parseHeadersCOROUTINE$() {
|
|
|
384
384
|
}
|
|
385
385
|
|
|
386
386
|
case 3:
|
|
387
|
-
this.
|
|
388
|
-
var rangeLength = this.
|
|
387
|
+
this.q4j_1.a4j_1 = this.p4j_1.a4i_1;
|
|
388
|
+
var rangeLength = this.q4j_1.a4j_1 - this.q4j_1.z4i_1 | 0;
|
|
389
389
|
if (rangeLength === 0) {
|
|
390
390
|
this.ac_1 = 5;
|
|
391
391
|
continue $sm;
|
|
@@ -400,29 +400,29 @@ function $parseHeadersCOROUTINE$() {
|
|
|
400
400
|
throw IllegalStateException().o4(toString(message));
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
-
var nameStart = this.
|
|
404
|
-
var nameEnd = parseHeaderName(this.
|
|
405
|
-
var headerEnd = this.
|
|
406
|
-
parseHeaderValue(this.
|
|
407
|
-
var valueStart = this.
|
|
408
|
-
var valueEnd = this.
|
|
409
|
-
this.
|
|
410
|
-
this.
|
|
403
|
+
var nameStart = this.q4j_1.z4i_1;
|
|
404
|
+
var nameEnd = parseHeaderName(this.p4j_1, this.q4j_1);
|
|
405
|
+
var headerEnd = this.q4j_1.a4j_1;
|
|
406
|
+
parseHeaderValue(this.p4j_1, this.q4j_1);
|
|
407
|
+
var valueStart = this.q4j_1.z4i_1;
|
|
408
|
+
var valueEnd = this.q4j_1.a4j_1;
|
|
409
|
+
this.q4j_1.z4i_1 = headerEnd;
|
|
410
|
+
this.r4j_1.r4h(nameStart, nameEnd, valueStart, valueEnd);
|
|
411
411
|
this.ac_1 = 1;
|
|
412
412
|
continue $sm;
|
|
413
413
|
case 5:
|
|
414
|
-
var host = this.
|
|
414
|
+
var host = this.r4j_1.c3s(HttpHeaders_getInstance().k42_1);
|
|
415
415
|
if (!(host == null)) {
|
|
416
416
|
validateHostHeader(host);
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
-
return this.
|
|
419
|
+
return this.r4j_1;
|
|
420
420
|
case 6:
|
|
421
421
|
this.bc_1 = 7;
|
|
422
422
|
var tmp_0 = this.dc_1;
|
|
423
423
|
if (tmp_0 instanceof Error) {
|
|
424
424
|
var t = this.dc_1;
|
|
425
|
-
this.
|
|
425
|
+
this.r4j_1.m2o();
|
|
426
426
|
throw t;
|
|
427
427
|
} else {
|
|
428
428
|
throw this.dc_1;
|
|
@@ -453,8 +453,8 @@ function _init_properties_HttpParser_kt__gbdom1() {
|
|
|
453
453
|
if (!properties_initialized_HttpParser_kt_uedryv) {
|
|
454
454
|
properties_initialized_HttpParser_kt_uedryv = true;
|
|
455
455
|
hostForbiddenSymbols = setOf([new (Char())(_Char___init__impl__6a9atx(47)), new (Char())(_Char___init__impl__6a9atx(63)), new (Char())(_Char___init__impl__6a9atx(35)), new (Char())(_Char___init__impl__6a9atx(64))]);
|
|
456
|
-
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().
|
|
457
|
-
versions = Companion_instance.
|
|
456
|
+
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().j3h_1, Companion_getInstance().i3h_1);
|
|
457
|
+
versions = Companion_instance.s4j(listOf(['HTTP/1.0', 'HTTP/1.1']));
|
|
458
458
|
}
|
|
459
459
|
}
|
|
460
460
|
//region block: exports
|