@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
|
@@ -81,7 +81,7 @@ function Preamble() {
|
|
|
81
81
|
class $ extends MultipartEvent() {
|
|
82
82
|
constructor(body) {
|
|
83
83
|
super();
|
|
84
|
-
this.
|
|
84
|
+
this.t4j_1 = body;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
initMetadataForClass($, 'Preamble');
|
|
@@ -95,8 +95,8 @@ function MultipartPart() {
|
|
|
95
95
|
class $ extends MultipartEvent() {
|
|
96
96
|
constructor(headers, body) {
|
|
97
97
|
super();
|
|
98
|
-
this.
|
|
99
|
-
this.
|
|
98
|
+
this.u4j_1 = headers;
|
|
99
|
+
this.v4j_1 = body;
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
initMetadataForClass($, 'MultipartPart');
|
|
@@ -110,7 +110,7 @@ function Epilogue() {
|
|
|
110
110
|
class $ extends MultipartEvent() {
|
|
111
111
|
constructor(body) {
|
|
112
112
|
super();
|
|
113
|
-
this.
|
|
113
|
+
this.w4j_1 = body;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
initMetadataForClass($, 'Epilogue');
|
|
@@ -130,18 +130,18 @@ function MultipartEvent() {
|
|
|
130
130
|
function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
|
|
131
131
|
maxPartSize = maxPartSize === VOID ? new (Long())(-1, 2147483647) : maxPartSize;
|
|
132
132
|
_init_properties_Multipart_kt__ato98a();
|
|
133
|
-
if (!MultiPart_getInstance().
|
|
134
|
-
throw UnsupportedMediaTypeExceptionCIO().
|
|
133
|
+
if (!MultiPart_getInstance().c40(contentType)) {
|
|
134
|
+
throw UnsupportedMediaTypeExceptionCIO().a4k('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
|
|
135
135
|
}
|
|
136
136
|
var boundaryByteBuffer = parseBoundaryInternal(contentType);
|
|
137
|
-
var boundaryBytes = ByteString().
|
|
137
|
+
var boundaryBytes = ByteString().a2r(boundaryByteBuffer);
|
|
138
138
|
return parseMultipart_0(_this__u8e3s4, boundaryBytes, input, contentLength, maxPartSize);
|
|
139
139
|
}
|
|
140
140
|
function parseBoundaryInternal(contentType) {
|
|
141
141
|
_init_properties_Multipart_kt__ato98a();
|
|
142
142
|
var boundaryParameter = findBoundary(contentType);
|
|
143
143
|
if (boundaryParameter === -1) {
|
|
144
|
-
throw IOException().
|
|
144
|
+
throw IOException().z2u("Failed to parse multipart: Content-Type's boundary parameter is missing");
|
|
145
145
|
}
|
|
146
146
|
var boundaryStart = boundaryParameter + 9 | 0;
|
|
147
147
|
var boundaryBytes = new Int8Array(74);
|
|
@@ -161,7 +161,7 @@ function parseBoundaryInternal(contentType) {
|
|
|
161
161
|
// Inline function 'kotlin.code' call
|
|
162
162
|
var v = Char__toInt_impl_vasixd(ch) & 65535;
|
|
163
163
|
if ((v & 65535) > 127) {
|
|
164
|
-
throw IOException().
|
|
164
|
+
throw IOException().z2u('Failed to parse multipart: wrong boundary byte 0x' + toString_0(v, 16) + ' - should be 7bit character');
|
|
165
165
|
}
|
|
166
166
|
switch (state) {
|
|
167
167
|
case 0:
|
|
@@ -202,7 +202,7 @@ function parseBoundaryInternal(contentType) {
|
|
|
202
202
|
}
|
|
203
203
|
while (inductionVariable < last);
|
|
204
204
|
if (position._v === 4) {
|
|
205
|
-
throw IOException().
|
|
205
|
+
throw IOException().z2u('Empty multipart boundary is not allowed');
|
|
206
206
|
}
|
|
207
207
|
return copyOfRange(boundaryBytes, 0, position._v);
|
|
208
208
|
}
|
|
@@ -296,11 +296,11 @@ function skipIfFoundReadCount(_this__u8e3s4, prefix, $completion) {
|
|
|
296
296
|
}
|
|
297
297
|
function throwLimitExceeded(actual, limit) {
|
|
298
298
|
_init_properties_Multipart_kt__ato98a();
|
|
299
|
-
throw IOException().
|
|
299
|
+
throw IOException().z2u('Multipart content length exceeds limit ' + actual.toString() + ' > ' + limit.toString() + '; ' + "limit is defined using 'formFieldLimit' argument");
|
|
300
300
|
}
|
|
301
301
|
function parseBoundaryInternal$put(position, boundaryBytes, value) {
|
|
302
302
|
if (position._v >= boundaryBytes.length) {
|
|
303
|
-
throw IOException().
|
|
303
|
+
throw IOException().z2u("Failed to parse multipart: boundary shouldn't be longer than 70 characters");
|
|
304
304
|
}
|
|
305
305
|
var _unary__edvuaz = position._v;
|
|
306
306
|
position._v = _unary__edvuaz + 1 | 0;
|
|
@@ -313,18 +313,18 @@ function parseMultipart$slambda$slambda() {
|
|
|
313
313
|
constructor($firstBoundary, $countedInput, resultContinuation, $box) {
|
|
314
314
|
if ($box === VOID)
|
|
315
315
|
$box = {};
|
|
316
|
-
$box.
|
|
317
|
-
$box.
|
|
316
|
+
$box.w4l_1 = $firstBoundary;
|
|
317
|
+
$box.x4l_1 = $countedInput;
|
|
318
318
|
super(resultContinuation, $box);
|
|
319
319
|
}
|
|
320
|
-
|
|
321
|
-
var tmp = this.
|
|
320
|
+
z4l($this$writer, $completion) {
|
|
321
|
+
var tmp = this.a4m($this$writer, $completion);
|
|
322
322
|
tmp.cc_1 = Unit_instance;
|
|
323
323
|
tmp.dc_1 = null;
|
|
324
324
|
return tmp.ic();
|
|
325
325
|
}
|
|
326
326
|
kd(p1, $completion) {
|
|
327
|
-
return this.
|
|
327
|
+
return this.z4l(p1 instanceof WriterScope() ? p1 : THROW_CCE(), $completion);
|
|
328
328
|
}
|
|
329
329
|
ic() {
|
|
330
330
|
var suspendResult = this.cc_1;
|
|
@@ -335,7 +335,7 @@ function parseMultipart$slambda$slambda() {
|
|
|
335
335
|
case 0:
|
|
336
336
|
this.bc_1 = 3;
|
|
337
337
|
this.ac_1 = 1;
|
|
338
|
-
suspendResult = parsePreambleImpl(this.
|
|
338
|
+
suspendResult = parsePreambleImpl(this.w4l_1, this.x4l_1, this.y4l_1.j3n_1, new (Long())(8193, 0), this);
|
|
339
339
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
340
340
|
return suspendResult;
|
|
341
341
|
}
|
|
@@ -343,7 +343,7 @@ function parseMultipart$slambda$slambda() {
|
|
|
343
343
|
continue $sm;
|
|
344
344
|
case 1:
|
|
345
345
|
this.ac_1 = 2;
|
|
346
|
-
suspendResult = this.
|
|
346
|
+
suspendResult = this.y4l_1.j3n_1.k3b(this);
|
|
347
347
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
348
348
|
return suspendResult;
|
|
349
349
|
}
|
|
@@ -365,9 +365,9 @@ function parseMultipart$slambda$slambda() {
|
|
|
365
365
|
}
|
|
366
366
|
while (true);
|
|
367
367
|
}
|
|
368
|
-
|
|
369
|
-
var i = new (parseMultipart$slambda$slambda())(this.
|
|
370
|
-
i.
|
|
368
|
+
a4m($this$writer, completion) {
|
|
369
|
+
var i = new (parseMultipart$slambda$slambda())(this.w4l_1, this.x4l_1, completion);
|
|
370
|
+
i.y4l_1 = $this$writer;
|
|
371
371
|
return i;
|
|
372
372
|
}
|
|
373
373
|
}
|
|
@@ -379,7 +379,7 @@ function parseMultipart$slambda$slambda() {
|
|
|
379
379
|
function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput, resultContinuation) {
|
|
380
380
|
var i = new (parseMultipart$slambda$slambda())($firstBoundary, $countedInput, resultContinuation);
|
|
381
381
|
var l = function ($this$writer, $completion) {
|
|
382
|
-
return i.
|
|
382
|
+
return i.z4l($this$writer, $completion);
|
|
383
383
|
};
|
|
384
384
|
l.$arity = 1;
|
|
385
385
|
return l;
|
|
@@ -391,20 +391,20 @@ function parseMultipart$slambda() {
|
|
|
391
391
|
constructor($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation, $box) {
|
|
392
392
|
if ($box === VOID)
|
|
393
393
|
$box = {};
|
|
394
|
-
$box.
|
|
395
|
-
$box.
|
|
396
|
-
$box.
|
|
397
|
-
$box.
|
|
394
|
+
$box.j4m_1 = $input;
|
|
395
|
+
$box.k4m_1 = $boundaryPrefixed;
|
|
396
|
+
$box.l4m_1 = $maxPartSize;
|
|
397
|
+
$box.m4m_1 = $totalLength;
|
|
398
398
|
super(resultContinuation, $box);
|
|
399
399
|
}
|
|
400
|
-
|
|
401
|
-
var tmp = this.
|
|
400
|
+
e4n($this$produce, $completion) {
|
|
401
|
+
var tmp = this.f4n($this$produce, $completion);
|
|
402
402
|
tmp.cc_1 = Unit_instance;
|
|
403
403
|
tmp.dc_1 = null;
|
|
404
404
|
return tmp.ic();
|
|
405
405
|
}
|
|
406
406
|
kd(p1, $completion) {
|
|
407
|
-
return this.
|
|
407
|
+
return this.e4n((!(p1 == null) ? isInterface(p1, ProducerScope()) : false) ? p1 : THROW_CCE(), $completion);
|
|
408
408
|
}
|
|
409
409
|
ic() {
|
|
410
410
|
var suspendResult = this.cc_1;
|
|
@@ -414,21 +414,21 @@ function parseMultipart$slambda() {
|
|
|
414
414
|
switch (tmp) {
|
|
415
415
|
case 0:
|
|
416
416
|
this.bc_1 = 23;
|
|
417
|
-
this.
|
|
418
|
-
this.
|
|
419
|
-
this.
|
|
417
|
+
this.o4m_1 = counted(this.j4m_1);
|
|
418
|
+
this.p4m_1 = this.o4m_1.e3q();
|
|
419
|
+
this.q4m_1 = this.k4m_1.c2r(get_PrefixString().i1());
|
|
420
420
|
this.ac_1 = 1;
|
|
421
|
-
suspendResult = readRemaining(writer(this.
|
|
421
|
+
suspendResult = readRemaining(writer(this.n4m_1, VOID, VOID, parseMultipart$slambda$slambda_0(this.q4m_1, this.o4m_1, null)).h3n_1, this);
|
|
422
422
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
423
423
|
return suspendResult;
|
|
424
424
|
}
|
|
425
425
|
|
|
426
426
|
continue $sm;
|
|
427
427
|
case 1:
|
|
428
|
-
this.
|
|
429
|
-
if (get_remaining(this.
|
|
428
|
+
this.r4m_1 = suspendResult;
|
|
429
|
+
if (get_remaining(this.r4m_1).a2(new (Long())(0, 0)) > 0) {
|
|
430
430
|
this.ac_1 = 2;
|
|
431
|
-
suspendResult = this.
|
|
431
|
+
suspendResult = this.n4m_1.e2i(new (Preamble())(this.r4m_1), this);
|
|
432
432
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
433
433
|
return suspendResult;
|
|
434
434
|
}
|
|
@@ -445,74 +445,74 @@ function parseMultipart$slambda() {
|
|
|
445
445
|
this.ac_1 = 4;
|
|
446
446
|
continue $sm;
|
|
447
447
|
case 4:
|
|
448
|
-
if (!this.
|
|
448
|
+
if (!this.o4m_1.h3b()) {
|
|
449
449
|
this.ac_1 = 5;
|
|
450
|
-
suspendResult = skipIfFound(this.
|
|
450
|
+
suspendResult = skipIfFound(this.o4m_1, get_PrefixString(), this);
|
|
451
451
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
452
452
|
return suspendResult;
|
|
453
453
|
}
|
|
454
454
|
continue $sm;
|
|
455
455
|
} else {
|
|
456
|
-
this.
|
|
456
|
+
this.s4m_1 = false;
|
|
457
457
|
this.ac_1 = 6;
|
|
458
458
|
continue $sm;
|
|
459
459
|
}
|
|
460
460
|
|
|
461
461
|
case 5:
|
|
462
|
-
this.
|
|
463
|
-
this.
|
|
462
|
+
this.t4m_1 = suspendResult;
|
|
463
|
+
this.s4m_1 = !this.t4m_1;
|
|
464
464
|
this.ac_1 = 6;
|
|
465
465
|
continue $sm;
|
|
466
466
|
case 6:
|
|
467
|
-
if (!this.
|
|
467
|
+
if (!this.s4m_1) {
|
|
468
468
|
this.ac_1 = 13;
|
|
469
469
|
continue $sm;
|
|
470
470
|
}
|
|
471
471
|
|
|
472
472
|
this.ac_1 = 7;
|
|
473
|
-
suspendResult = skipIfFound(this.
|
|
473
|
+
suspendResult = skipIfFound(this.o4m_1, get_CrLf(), this);
|
|
474
474
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
475
475
|
return suspendResult;
|
|
476
476
|
}
|
|
477
477
|
|
|
478
478
|
continue $sm;
|
|
479
479
|
case 7:
|
|
480
|
-
this.
|
|
481
|
-
this.
|
|
482
|
-
this.
|
|
480
|
+
this.u4m_1 = new (ByteChannel())();
|
|
481
|
+
this.v4m_1 = CompletableDeferred();
|
|
482
|
+
this.w4m_1 = new (MultipartPart())(this.v4m_1, this.u4m_1);
|
|
483
483
|
this.ac_1 = 8;
|
|
484
|
-
suspendResult = this.
|
|
484
|
+
suspendResult = this.n4m_1.e2i(this.w4m_1, this);
|
|
485
485
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
486
486
|
return suspendResult;
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
continue $sm;
|
|
490
490
|
case 8:
|
|
491
|
-
this.
|
|
491
|
+
this.x4m_1 = null;
|
|
492
492
|
this.bc_1 = 12;
|
|
493
493
|
this.ac_1 = 9;
|
|
494
|
-
suspendResult = parsePartHeadersImpl(this.
|
|
494
|
+
suspendResult = parsePartHeadersImpl(this.o4m_1, this);
|
|
495
495
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
496
496
|
return suspendResult;
|
|
497
497
|
}
|
|
498
498
|
|
|
499
499
|
continue $sm;
|
|
500
500
|
case 9:
|
|
501
|
-
this.
|
|
502
|
-
if (!this.
|
|
503
|
-
this.
|
|
501
|
+
this.x4m_1 = suspendResult;
|
|
502
|
+
if (!this.v4m_1.b25(this.x4m_1)) {
|
|
503
|
+
this.x4m_1.m2o();
|
|
504
504
|
throw CancellationException().cd('Multipart processing has been cancelled');
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
this.ac_1 = 10;
|
|
508
|
-
suspendResult = parsePartBodyImpl(this.
|
|
508
|
+
suspendResult = parsePartBodyImpl(this.k4m_1, this.o4m_1, this.u4m_1, this.x4m_1, this.l4m_1, this);
|
|
509
509
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
510
510
|
return suspendResult;
|
|
511
511
|
}
|
|
512
512
|
|
|
513
513
|
continue $sm;
|
|
514
514
|
case 10:
|
|
515
|
-
this.
|
|
515
|
+
this.u4m_1.v5();
|
|
516
516
|
this.bc_1 = 23;
|
|
517
517
|
this.ac_1 = 11;
|
|
518
518
|
continue $sm;
|
|
@@ -524,24 +524,24 @@ function parseMultipart$slambda() {
|
|
|
524
524
|
this.bc_1 = 23;
|
|
525
525
|
var tmp_0 = this.dc_1;
|
|
526
526
|
if (tmp_0 instanceof Error) {
|
|
527
|
-
this.
|
|
528
|
-
if (this.
|
|
529
|
-
var tmp0_safe_receiver = this.
|
|
527
|
+
this.y4m_1 = this.dc_1;
|
|
528
|
+
if (this.v4m_1.c25(this.y4m_1)) {
|
|
529
|
+
var tmp0_safe_receiver = this.x4m_1;
|
|
530
530
|
if (tmp0_safe_receiver == null)
|
|
531
531
|
null;
|
|
532
532
|
else {
|
|
533
|
-
tmp0_safe_receiver.
|
|
533
|
+
tmp0_safe_receiver.m2o();
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
|
-
close(this.
|
|
537
|
-
throw this.
|
|
536
|
+
close(this.u4m_1, this.y4m_1);
|
|
537
|
+
throw this.y4m_1;
|
|
538
538
|
} else {
|
|
539
539
|
throw this.dc_1;
|
|
540
540
|
}
|
|
541
541
|
|
|
542
542
|
case 13:
|
|
543
543
|
this.ac_1 = 14;
|
|
544
|
-
suspendResult = skipIfFound(this.
|
|
544
|
+
suspendResult = skipIfFound(this.o4m_1, get_CrLf(), this);
|
|
545
545
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
546
546
|
return suspendResult;
|
|
547
547
|
}
|
|
@@ -549,21 +549,21 @@ function parseMultipart$slambda() {
|
|
|
549
549
|
continue $sm;
|
|
550
550
|
case 14:
|
|
551
551
|
this.ac_1 = 15;
|
|
552
|
-
suspendResult = skipIfFound(this.
|
|
552
|
+
suspendResult = skipIfFound(this.o4m_1, get_CrLf(), this);
|
|
553
553
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
554
554
|
return suspendResult;
|
|
555
555
|
}
|
|
556
556
|
|
|
557
557
|
continue $sm;
|
|
558
558
|
case 15:
|
|
559
|
-
if (!(this.
|
|
560
|
-
this.
|
|
561
|
-
this.
|
|
562
|
-
if (this.
|
|
563
|
-
throw IOException().
|
|
564
|
-
if (this.
|
|
559
|
+
if (!(this.m4m_1 == null)) {
|
|
560
|
+
this.z4m_1 = this.o4m_1.e3q().q3(this.p4m_1);
|
|
561
|
+
this.a4n_1 = this.m4m_1.q3(this.z4m_1);
|
|
562
|
+
if (this.a4n_1.a2(new (Long())(2147483647, 0)) > 0)
|
|
563
|
+
throw IOException().z2u('Failed to parse multipart: prologue is too long');
|
|
564
|
+
if (this.a4n_1.a2(new (Long())(0, 0)) > 0) {
|
|
565
565
|
this.ac_1 = 19;
|
|
566
|
-
suspendResult = readPacket(this.
|
|
566
|
+
suspendResult = readPacket(this.o4m_1, this.a4n_1.c2(), this);
|
|
567
567
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
568
568
|
return suspendResult;
|
|
569
569
|
}
|
|
@@ -574,7 +574,7 @@ function parseMultipart$slambda() {
|
|
|
574
574
|
}
|
|
575
575
|
} else {
|
|
576
576
|
this.ac_1 = 16;
|
|
577
|
-
suspendResult = readRemaining(this.
|
|
577
|
+
suspendResult = readRemaining(this.o4m_1, this);
|
|
578
578
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
579
579
|
return suspendResult;
|
|
580
580
|
}
|
|
@@ -582,10 +582,10 @@ function parseMultipart$slambda() {
|
|
|
582
582
|
}
|
|
583
583
|
|
|
584
584
|
case 16:
|
|
585
|
-
this.
|
|
586
|
-
if (!this.
|
|
585
|
+
this.b4n_1 = suspendResult;
|
|
586
|
+
if (!this.b4n_1.o2r()) {
|
|
587
587
|
this.ac_1 = 17;
|
|
588
|
-
suspendResult = this.
|
|
588
|
+
suspendResult = this.n4m_1.e2i(new (Epilogue())(this.b4n_1), this);
|
|
589
589
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
590
590
|
return suspendResult;
|
|
591
591
|
}
|
|
@@ -602,10 +602,10 @@ function parseMultipart$slambda() {
|
|
|
602
602
|
this.ac_1 = 22;
|
|
603
603
|
continue $sm;
|
|
604
604
|
case 19:
|
|
605
|
-
this.
|
|
606
|
-
this.
|
|
605
|
+
this.c4n_1 = suspendResult;
|
|
606
|
+
this.d4n_1 = new (Epilogue())(this.c4n_1);
|
|
607
607
|
this.ac_1 = 20;
|
|
608
|
-
suspendResult = this.
|
|
608
|
+
suspendResult = this.n4m_1.e2i(this.d4n_1, this);
|
|
609
609
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
610
610
|
return suspendResult;
|
|
611
611
|
}
|
|
@@ -633,9 +633,9 @@ function parseMultipart$slambda() {
|
|
|
633
633
|
}
|
|
634
634
|
while (true);
|
|
635
635
|
}
|
|
636
|
-
|
|
637
|
-
var i = new (parseMultipart$slambda())(this.
|
|
638
|
-
i.
|
|
636
|
+
f4n($this$produce, completion) {
|
|
637
|
+
var i = new (parseMultipart$slambda())(this.j4m_1, this.k4m_1, this.l4m_1, this.m4m_1, completion);
|
|
638
|
+
i.n4m_1 = $this$produce;
|
|
639
639
|
return i;
|
|
640
640
|
}
|
|
641
641
|
}
|
|
@@ -647,7 +647,7 @@ function parseMultipart$slambda() {
|
|
|
647
647
|
function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation) {
|
|
648
648
|
var i = new (parseMultipart$slambda())($input, $boundaryPrefixed, $maxPartSize, $totalLength, resultContinuation);
|
|
649
649
|
var l = function ($this$produce, $completion) {
|
|
650
|
-
return i.
|
|
650
|
+
return i.e4n($this$produce, $completion);
|
|
651
651
|
};
|
|
652
652
|
l.$arity = 1;
|
|
653
653
|
return l;
|
|
@@ -658,7 +658,7 @@ function $parsePartHeadersImplCOROUTINE$() {
|
|
|
658
658
|
class $ extends CoroutineImpl() {
|
|
659
659
|
constructor(input, resultContinuation) {
|
|
660
660
|
super(resultContinuation);
|
|
661
|
-
this.
|
|
661
|
+
this.j4k_1 = input;
|
|
662
662
|
}
|
|
663
663
|
ic() {
|
|
664
664
|
var suspendResult = this.cc_1;
|
|
@@ -668,10 +668,10 @@ function $parsePartHeadersImplCOROUTINE$() {
|
|
|
668
668
|
switch (tmp) {
|
|
669
669
|
case 0:
|
|
670
670
|
this.bc_1 = 3;
|
|
671
|
-
this.
|
|
671
|
+
this.k4k_1 = new (CharArrayBuilder())();
|
|
672
672
|
this.bc_1 = 2;
|
|
673
673
|
this.ac_1 = 1;
|
|
674
|
-
suspendResult = parseHeaders(this.
|
|
674
|
+
suspendResult = parseHeaders(this.j4k_1, this.k4k_1, VOID, this);
|
|
675
675
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
676
676
|
return suspendResult;
|
|
677
677
|
}
|
|
@@ -681,7 +681,7 @@ function $parsePartHeadersImplCOROUTINE$() {
|
|
|
681
681
|
var tmp0_elvis_lhs = suspendResult;
|
|
682
682
|
var tmp_0;
|
|
683
683
|
if (tmp0_elvis_lhs == null) {
|
|
684
|
-
throw EOFException().
|
|
684
|
+
throw EOFException().m2r('Failed to parse multipart headers: unexpected end of stream');
|
|
685
685
|
} else {
|
|
686
686
|
tmp_0 = tmp0_elvis_lhs;
|
|
687
687
|
}
|
|
@@ -692,7 +692,7 @@ function $parsePartHeadersImplCOROUTINE$() {
|
|
|
692
692
|
var tmp_1 = this.dc_1;
|
|
693
693
|
if (tmp_1 instanceof Error) {
|
|
694
694
|
var t = this.dc_1;
|
|
695
|
-
this.
|
|
695
|
+
this.k4k_1.m2o();
|
|
696
696
|
throw t;
|
|
697
697
|
} else {
|
|
698
698
|
throw this.dc_1;
|
|
@@ -724,11 +724,11 @@ function $parsePartBodyImplCOROUTINE$() {
|
|
|
724
724
|
class $ extends CoroutineImpl() {
|
|
725
725
|
constructor(boundaryPrefixed, input, output, headers, limit, resultContinuation) {
|
|
726
726
|
super(resultContinuation);
|
|
727
|
-
this.
|
|
728
|
-
this.
|
|
729
|
-
this.
|
|
730
|
-
this.
|
|
731
|
-
this.
|
|
727
|
+
this.t4k_1 = boundaryPrefixed;
|
|
728
|
+
this.u4k_1 = input;
|
|
729
|
+
this.v4k_1 = output;
|
|
730
|
+
this.w4k_1 = headers;
|
|
731
|
+
this.x4k_1 = limit;
|
|
732
732
|
}
|
|
733
733
|
ic() {
|
|
734
734
|
var suspendResult = this.cc_1;
|
|
@@ -739,59 +739,59 @@ function $parsePartBodyImplCOROUTINE$() {
|
|
|
739
739
|
case 0:
|
|
740
740
|
this.bc_1 = 6;
|
|
741
741
|
var tmp_0 = this;
|
|
742
|
-
var tmp0_safe_receiver = this.
|
|
743
|
-
tmp_0.
|
|
744
|
-
if (this.
|
|
742
|
+
var tmp0_safe_receiver = this.w4k_1.c3s('Content-Length');
|
|
743
|
+
tmp_0.y4k_1 = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
744
|
+
if (this.y4k_1 == null) {
|
|
745
745
|
this.ac_1 = 3;
|
|
746
|
-
suspendResult = readUntil(this.
|
|
746
|
+
suspendResult = readUntil(this.u4k_1, this.t4k_1, this.v4k_1, this.x4k_1, true, this);
|
|
747
747
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
748
748
|
return suspendResult;
|
|
749
749
|
}
|
|
750
750
|
continue $sm;
|
|
751
751
|
} else {
|
|
752
|
-
if ((new (Long())(0, 0)).y3(this.
|
|
752
|
+
if ((new (Long())(0, 0)).y3(this.x4k_1).pn(this.y4k_1)) {
|
|
753
753
|
this.ac_1 = 1;
|
|
754
|
-
suspendResult = copyTo(this.
|
|
754
|
+
suspendResult = copyTo(this.u4k_1, this.v4k_1, this.y4k_1, this);
|
|
755
755
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
756
756
|
return suspendResult;
|
|
757
757
|
}
|
|
758
758
|
continue $sm;
|
|
759
759
|
} else {
|
|
760
760
|
var tmp_1 = this;
|
|
761
|
-
throwLimitExceeded(this.
|
|
761
|
+
throwLimitExceeded(this.y4k_1, this.x4k_1);
|
|
762
762
|
}
|
|
763
763
|
}
|
|
764
764
|
|
|
765
765
|
break;
|
|
766
766
|
case 1:
|
|
767
|
-
this.
|
|
767
|
+
this.a4l_1 = suspendResult;
|
|
768
768
|
this.ac_1 = 2;
|
|
769
|
-
suspendResult = skipIfFoundReadCount(this.
|
|
769
|
+
suspendResult = skipIfFoundReadCount(this.u4k_1, this.t4k_1, this);
|
|
770
770
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
771
771
|
return suspendResult;
|
|
772
772
|
}
|
|
773
773
|
|
|
774
774
|
continue $sm;
|
|
775
775
|
case 2:
|
|
776
|
-
this.
|
|
777
|
-
this.
|
|
776
|
+
this.b4l_1 = suspendResult;
|
|
777
|
+
this.z4k_1 = this.a4l_1.p3(this.b4l_1);
|
|
778
778
|
this.ac_1 = 4;
|
|
779
779
|
continue $sm;
|
|
780
780
|
case 3:
|
|
781
|
-
this.
|
|
781
|
+
this.z4k_1 = suspendResult;
|
|
782
782
|
this.ac_1 = 4;
|
|
783
783
|
continue $sm;
|
|
784
784
|
case 4:
|
|
785
|
-
this.
|
|
785
|
+
this.c4l_1 = this.z4k_1;
|
|
786
786
|
this.ac_1 = 5;
|
|
787
|
-
suspendResult = this.
|
|
787
|
+
suspendResult = this.v4k_1.z3a(this);
|
|
788
788
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
789
789
|
return suspendResult;
|
|
790
790
|
}
|
|
791
791
|
|
|
792
792
|
continue $sm;
|
|
793
793
|
case 5:
|
|
794
|
-
return this.
|
|
794
|
+
return this.c4l_1;
|
|
795
795
|
case 6:
|
|
796
796
|
throw this.dc_1;
|
|
797
797
|
}
|
|
@@ -818,8 +818,8 @@ function $skipIfFoundReadCountCOROUTINE$() {
|
|
|
818
818
|
class $ extends CoroutineImpl() {
|
|
819
819
|
constructor(_this__u8e3s4, prefix, resultContinuation) {
|
|
820
820
|
super(resultContinuation);
|
|
821
|
-
this.
|
|
822
|
-
this.
|
|
821
|
+
this.l4l_1 = _this__u8e3s4;
|
|
822
|
+
this.m4l_1 = prefix;
|
|
823
823
|
}
|
|
824
824
|
ic() {
|
|
825
825
|
var suspendResult = this.cc_1;
|
|
@@ -830,7 +830,7 @@ function $skipIfFoundReadCountCOROUTINE$() {
|
|
|
830
830
|
case 0:
|
|
831
831
|
this.bc_1 = 3;
|
|
832
832
|
this.ac_1 = 1;
|
|
833
|
-
suspendResult = skipIfFound(this.
|
|
833
|
+
suspendResult = skipIfFound(this.l4l_1, this.m4l_1, this);
|
|
834
834
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
835
835
|
return suspendResult;
|
|
836
836
|
}
|
|
@@ -839,18 +839,18 @@ function $skipIfFoundReadCountCOROUTINE$() {
|
|
|
839
839
|
case 1:
|
|
840
840
|
if (suspendResult) {
|
|
841
841
|
var tmp_0 = this;
|
|
842
|
-
tmp_0.
|
|
842
|
+
tmp_0.n4l_1 = toLong(this.m4l_1.i1());
|
|
843
843
|
this.ac_1 = 2;
|
|
844
844
|
continue $sm;
|
|
845
845
|
} else {
|
|
846
846
|
var tmp_1 = this;
|
|
847
|
-
tmp_1.
|
|
847
|
+
tmp_1.n4l_1 = new (Long())(0, 0);
|
|
848
848
|
this.ac_1 = 2;
|
|
849
849
|
continue $sm;
|
|
850
850
|
}
|
|
851
851
|
|
|
852
852
|
case 2:
|
|
853
|
-
return this.
|
|
853
|
+
return this.n4l_1;
|
|
854
854
|
case 3:
|
|
855
855
|
throw this.dc_1;
|
|
856
856
|
}
|
|
@@ -875,7 +875,7 @@ var properties_initialized_Multipart_kt_wu0sh0;
|
|
|
875
875
|
function _init_properties_Multipart_kt__ato98a() {
|
|
876
876
|
if (!properties_initialized_Multipart_kt_wu0sh0) {
|
|
877
877
|
properties_initialized_Multipart_kt_wu0sh0 = true;
|
|
878
|
-
CrLf = ByteString().
|
|
878
|
+
CrLf = ByteString().a2r(toByteArray('\r\n'));
|
|
879
879
|
PrefixString = ByteString_0(new Int8Array([45, 45]));
|
|
880
880
|
}
|
|
881
881
|
}
|
|
@@ -11,9 +11,9 @@ function Response() {
|
|
|
11
11
|
class $ extends HttpMessage() {
|
|
12
12
|
constructor(version, status, statusText, headers, builder) {
|
|
13
13
|
super(headers, builder);
|
|
14
|
-
this.
|
|
15
|
-
this.
|
|
16
|
-
this.
|
|
14
|
+
this.i4n_1 = version;
|
|
15
|
+
this.j4n_1 = status;
|
|
16
|
+
this.k4n_1 = statusText;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
initMetadataForClass($, 'Response');
|
|
@@ -26,15 +26,15 @@ function HttpMessage() {
|
|
|
26
26
|
if (HttpMessageClass === VOID) {
|
|
27
27
|
class $ {
|
|
28
28
|
constructor(headers, builder) {
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
29
|
+
this.l4n_1 = headers;
|
|
30
|
+
this.m4n_1 = builder;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
this.
|
|
34
|
-
this.
|
|
32
|
+
m2o() {
|
|
33
|
+
this.m4n_1.m2o();
|
|
34
|
+
this.l4n_1.m2o();
|
|
35
35
|
}
|
|
36
36
|
v5() {
|
|
37
|
-
this.
|
|
37
|
+
this.m2o();
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
initMetadataForClass($, 'HttpMessage', VOID, VOID, [AutoCloseable()]);
|