@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
|
@@ -21,7 +21,7 @@ import { initMetadataForLambda3af3he42mmnh as initMetadataForLambda } from '../.
|
|
|
21
21
|
//endregion
|
|
22
22
|
function observable(_this__u8e3s4, context, contentLength, listener) {
|
|
23
23
|
var tmp = GlobalScope_instance;
|
|
24
|
-
return writer(tmp, context, true, observable$slambda_0(_this__u8e3s4, listener, contentLength, null)).
|
|
24
|
+
return writer(tmp, context, true, observable$slambda_0(_this__u8e3s4, listener, contentLength, null)).h3n_1;
|
|
25
25
|
}
|
|
26
26
|
var observable$slambdaClass;
|
|
27
27
|
function observable$slambda() {
|
|
@@ -30,19 +30,19 @@ function observable$slambda() {
|
|
|
30
30
|
constructor($this_observable, $listener, $contentLength, resultContinuation, $box) {
|
|
31
31
|
if ($box === VOID)
|
|
32
32
|
$box = {};
|
|
33
|
-
$box.
|
|
34
|
-
$box.
|
|
35
|
-
$box.
|
|
33
|
+
$box.a62_1 = $this_observable;
|
|
34
|
+
$box.b62_1 = $listener;
|
|
35
|
+
$box.c62_1 = $contentLength;
|
|
36
36
|
super(resultContinuation, $box);
|
|
37
37
|
}
|
|
38
|
-
|
|
39
|
-
var tmp = this.
|
|
38
|
+
z4l($this$writer, $completion) {
|
|
39
|
+
var tmp = this.a4m($this$writer, $completion);
|
|
40
40
|
tmp.cc_1 = Unit_instance;
|
|
41
41
|
tmp.dc_1 = null;
|
|
42
42
|
return tmp.ic();
|
|
43
43
|
}
|
|
44
44
|
kd(p1, $completion) {
|
|
45
|
-
return this.
|
|
45
|
+
return this.z4l(p1 instanceof WriterScope() ? p1 : THROW_CCE(), $completion);
|
|
46
46
|
}
|
|
47
47
|
ic() {
|
|
48
48
|
var suspendResult = this.cc_1;
|
|
@@ -53,12 +53,12 @@ function observable$slambda() {
|
|
|
53
53
|
case 0:
|
|
54
54
|
this.bc_1 = 16;
|
|
55
55
|
var tmp_0 = this;
|
|
56
|
-
tmp_0.
|
|
56
|
+
tmp_0.e62_1 = get_ByteArrayPool();
|
|
57
57
|
this.ac_1 = 1;
|
|
58
58
|
continue $sm;
|
|
59
59
|
case 1:
|
|
60
|
-
this.
|
|
61
|
-
this.
|
|
60
|
+
this.g62_1 = this.e62_1;
|
|
61
|
+
this.h62_1 = this.g62_1.b3r();
|
|
62
62
|
this.ac_1 = 2;
|
|
63
63
|
continue $sm;
|
|
64
64
|
case 2:
|
|
@@ -67,27 +67,27 @@ function observable$slambda() {
|
|
|
67
67
|
case 3:
|
|
68
68
|
this.bc_1 = 15;
|
|
69
69
|
var tmp_1 = this;
|
|
70
|
-
tmp_1.
|
|
71
|
-
this.
|
|
72
|
-
this.
|
|
70
|
+
tmp_1.j62_1 = this.h62_1;
|
|
71
|
+
this.k62_1 = this.j62_1;
|
|
72
|
+
this.l62_1 = new (Long())(0, 0);
|
|
73
73
|
this.ac_1 = 4;
|
|
74
74
|
continue $sm;
|
|
75
75
|
case 4:
|
|
76
|
-
if (!!this.
|
|
76
|
+
if (!!this.a62_1.h3b()) {
|
|
77
77
|
this.ac_1 = 9;
|
|
78
78
|
continue $sm;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
this.ac_1 = 5;
|
|
82
|
-
suspendResult = readAvailable(this.
|
|
82
|
+
suspendResult = readAvailable(this.a62_1, this.k62_1, VOID, VOID, this);
|
|
83
83
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
84
84
|
return suspendResult;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
continue $sm;
|
|
88
88
|
case 5:
|
|
89
|
-
this.
|
|
90
|
-
if (this.
|
|
89
|
+
this.m62_1 = suspendResult;
|
|
90
|
+
if (this.m62_1 <= 0) {
|
|
91
91
|
this.ac_1 = 4;
|
|
92
92
|
continue $sm;
|
|
93
93
|
} else {
|
|
@@ -97,7 +97,7 @@ function observable$slambda() {
|
|
|
97
97
|
|
|
98
98
|
case 6:
|
|
99
99
|
this.ac_1 = 7;
|
|
100
|
-
suspendResult = writeFully(this.
|
|
100
|
+
suspendResult = writeFully(this.d62_1.j3n_1, this.k62_1, 0, this.m62_1, this);
|
|
101
101
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
102
102
|
return suspendResult;
|
|
103
103
|
}
|
|
@@ -105,11 +105,11 @@ function observable$slambda() {
|
|
|
105
105
|
continue $sm;
|
|
106
106
|
case 7:
|
|
107
107
|
var tmp_2 = this;
|
|
108
|
-
var tmp0 = this.
|
|
109
|
-
var other = this.
|
|
110
|
-
tmp_2.
|
|
108
|
+
var tmp0 = this.l62_1;
|
|
109
|
+
var other = this.m62_1;
|
|
110
|
+
tmp_2.l62_1 = tmp0.p3(toLong(other));
|
|
111
111
|
this.ac_1 = 8;
|
|
112
|
-
suspendResult = this.
|
|
112
|
+
suspendResult = this.b62_1.o55(this.l62_1, this.c62_1, this);
|
|
113
113
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
114
114
|
return suspendResult;
|
|
115
115
|
}
|
|
@@ -119,11 +119,11 @@ function observable$slambda() {
|
|
|
119
119
|
this.ac_1 = 4;
|
|
120
120
|
continue $sm;
|
|
121
121
|
case 9:
|
|
122
|
-
this.
|
|
123
|
-
close(this.
|
|
124
|
-
if (this.
|
|
122
|
+
this.n62_1 = this.a62_1.f3b();
|
|
123
|
+
close(this.d62_1.j3n_1, this.n62_1);
|
|
124
|
+
if (this.n62_1 == null && this.l62_1.equals(new (Long())(0, 0))) {
|
|
125
125
|
this.ac_1 = 10;
|
|
126
|
-
suspendResult = this.
|
|
126
|
+
suspendResult = this.b62_1.o55(this.l62_1, this.c62_1, this);
|
|
127
127
|
if (suspendResult === get_COROUTINE_SUSPENDED()) {
|
|
128
128
|
return suspendResult;
|
|
129
129
|
}
|
|
@@ -138,7 +138,7 @@ function observable$slambda() {
|
|
|
138
138
|
continue $sm;
|
|
139
139
|
case 11:
|
|
140
140
|
var tmp_3 = this;
|
|
141
|
-
tmp_3.
|
|
141
|
+
tmp_3.i62_1 = Unit_instance;
|
|
142
142
|
this.bc_1 = 16;
|
|
143
143
|
this.ac_1 = 12;
|
|
144
144
|
var tmp_4 = this;
|
|
@@ -146,13 +146,13 @@ function observable$slambda() {
|
|
|
146
146
|
case 12:
|
|
147
147
|
this.bc_1 = 16;
|
|
148
148
|
var tmp_5 = this;
|
|
149
|
-
this.
|
|
150
|
-
tmp_5.
|
|
149
|
+
this.g62_1.c3r(this.h62_1);
|
|
150
|
+
tmp_5.f62_1 = Unit_instance;
|
|
151
151
|
this.ac_1 = 14;
|
|
152
152
|
continue $sm;
|
|
153
153
|
case 13:
|
|
154
154
|
this.bc_1 = 16;
|
|
155
|
-
this.
|
|
155
|
+
this.g62_1.c3r(this.h62_1);
|
|
156
156
|
if (false) {
|
|
157
157
|
this.ac_1 = 1;
|
|
158
158
|
continue $sm;
|
|
@@ -165,7 +165,7 @@ function observable$slambda() {
|
|
|
165
165
|
case 15:
|
|
166
166
|
this.bc_1 = 16;
|
|
167
167
|
var t = this.dc_1;
|
|
168
|
-
this.
|
|
168
|
+
this.g62_1.c3r(this.h62_1);
|
|
169
169
|
throw t;
|
|
170
170
|
case 16:
|
|
171
171
|
throw this.dc_1;
|
|
@@ -181,9 +181,9 @@ function observable$slambda() {
|
|
|
181
181
|
}
|
|
182
182
|
while (true);
|
|
183
183
|
}
|
|
184
|
-
|
|
185
|
-
var i = new (observable$slambda())(this.
|
|
186
|
-
i.
|
|
184
|
+
a4m($this$writer, completion) {
|
|
185
|
+
var i = new (observable$slambda())(this.a62_1, this.b62_1, this.c62_1, completion);
|
|
186
|
+
i.d62_1 = $this$writer;
|
|
187
187
|
return i;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
@@ -195,7 +195,7 @@ function observable$slambda() {
|
|
|
195
195
|
function observable$slambda_0($this_observable, $listener, $contentLength, resultContinuation) {
|
|
196
196
|
var i = new (observable$slambda())($this_observable, $listener, $contentLength, resultContinuation);
|
|
197
197
|
var l = function ($this$writer, $completion) {
|
|
198
|
-
return i.
|
|
198
|
+
return i.z4l($this$writer, $completion);
|
|
199
199
|
};
|
|
200
200
|
l.$arity = 1;
|
|
201
201
|
return l;
|
|
@@ -35,8 +35,8 @@ function HttpResponseReceiveFail() {
|
|
|
35
35
|
if (HttpResponseReceiveFailClass === VOID) {
|
|
36
36
|
class $ {
|
|
37
37
|
constructor(response, cause) {
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
38
|
+
this.o62_1 = response;
|
|
39
|
+
this.p62_1 = cause;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
initMetadataForClass($, 'HttpResponseReceiveFail');
|
|
@@ -15,10 +15,10 @@ function EmptyContent() {
|
|
|
15
15
|
EmptyContent_instance = null;
|
|
16
16
|
super();
|
|
17
17
|
EmptyContent_instance = this;
|
|
18
|
-
this.
|
|
18
|
+
this.r62_1 = new (Long())(0, 0);
|
|
19
19
|
}
|
|
20
|
-
|
|
21
|
-
return this.
|
|
20
|
+
t4b() {
|
|
21
|
+
return this.r62_1;
|
|
22
22
|
}
|
|
23
23
|
toString() {
|
|
24
24
|
return 'EmptyContent';
|
|
@@ -25,18 +25,18 @@ var DecompressionListAttribute;
|
|
|
25
25
|
function dropCompressionHeaders(_this__u8e3s4, method, attributes, alwaysRemove) {
|
|
26
26
|
alwaysRemove = alwaysRemove === VOID ? false : alwaysRemove;
|
|
27
27
|
_init_properties_HeadersUtils_kt__fb6dxx();
|
|
28
|
-
if (method.equals(Companion_getInstance().
|
|
28
|
+
if (method.equals(Companion_getInstance().f46_1) || method.equals(Companion_getInstance().g46_1))
|
|
29
29
|
return Unit_instance;
|
|
30
|
-
var header = _this__u8e3s4.
|
|
30
|
+
var header = _this__u8e3s4.c3s(HttpHeaders_getInstance().t41_1);
|
|
31
31
|
if (header == null) {
|
|
32
32
|
if (!alwaysRemove)
|
|
33
33
|
return Unit_instance;
|
|
34
34
|
} else {
|
|
35
35
|
var tmp = get_DecompressionListAttribute();
|
|
36
|
-
attributes.
|
|
36
|
+
attributes.w3r(tmp, dropCompressionHeaders$lambda).m(header);
|
|
37
37
|
}
|
|
38
|
-
_this__u8e3s4.
|
|
39
|
-
_this__u8e3s4.
|
|
38
|
+
_this__u8e3s4.t3t(HttpHeaders_getInstance().t41_1);
|
|
39
|
+
_this__u8e3s4.t3t(HttpHeaders_getInstance().v41_1);
|
|
40
40
|
}
|
|
41
41
|
function dropCompressionHeaders$lambda() {
|
|
42
42
|
_init_properties_HeadersUtils_kt__fb6dxx();
|
|
@@ -33,11 +33,11 @@ function Events() {
|
|
|
33
33
|
if (EventsClass === VOID) {
|
|
34
34
|
class $ {
|
|
35
35
|
constructor() {
|
|
36
|
-
this.
|
|
36
|
+
this.c4y_1 = new (CopyOnWriteHashMap())();
|
|
37
37
|
}
|
|
38
|
-
|
|
38
|
+
d4y(definition, value) {
|
|
39
39
|
var exception = null;
|
|
40
|
-
var tmp0_safe_receiver = this.
|
|
40
|
+
var tmp0_safe_receiver = this.c4y_1.c3u(definition);
|
|
41
41
|
if (tmp0_safe_receiver == null)
|
|
42
42
|
null;
|
|
43
43
|
else {
|
|
@@ -48,7 +48,7 @@ function Events() {
|
|
|
48
48
|
if (cur instanceof HandlerRegistration()) {
|
|
49
49
|
var registration = cur;
|
|
50
50
|
try {
|
|
51
|
-
var tmp_0 = registration.
|
|
51
|
+
var tmp_0 = registration.f4y_1;
|
|
52
52
|
(typeof tmp_0 === 'function' ? tmp_0 : THROW_CCE())(value);
|
|
53
53
|
} catch ($p) {
|
|
54
54
|
if ($p instanceof Error) {
|
|
@@ -70,7 +70,7 @@ function Events() {
|
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
cur = cur.
|
|
73
|
+
cur = cur.c3v();
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
var tmp1_safe_receiver = exception;
|
|
@@ -90,26 +90,26 @@ function encodeURLParameter(_this__u8e3s4, spaceToPlus) {
|
|
|
90
90
|
// Inline function 'kotlin.text.buildString' call
|
|
91
91
|
// Inline function 'kotlin.apply' call
|
|
92
92
|
var this_0 = StringBuilder().a1();
|
|
93
|
-
var content = encode(Charsets_getInstance().
|
|
93
|
+
var content = encode(Charsets_getInstance().m3q_1.p3q(), _this__u8e3s4);
|
|
94
94
|
forEach(content, encodeURLParameter$lambda(this_0, spaceToPlus));
|
|
95
95
|
return this_0.toString();
|
|
96
96
|
}
|
|
97
97
|
function decodeURLPart(_this__u8e3s4, start, end, charset) {
|
|
98
98
|
start = start === VOID ? 0 : start;
|
|
99
99
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
100
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
100
|
+
charset = charset === VOID ? Charsets_getInstance().m3q_1 : charset;
|
|
101
101
|
_init_properties_Codecs_kt__fudxxf();
|
|
102
102
|
return decodeScan(_this__u8e3s4, start, end, false, charset);
|
|
103
103
|
}
|
|
104
104
|
function encodeURLQueryComponent(_this__u8e3s4, encodeFull, spaceToPlus, charset) {
|
|
105
105
|
encodeFull = encodeFull === VOID ? false : encodeFull;
|
|
106
106
|
spaceToPlus = spaceToPlus === VOID ? false : spaceToPlus;
|
|
107
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
107
|
+
charset = charset === VOID ? Charsets_getInstance().m3q_1 : charset;
|
|
108
108
|
_init_properties_Codecs_kt__fudxxf();
|
|
109
109
|
// Inline function 'kotlin.text.buildString' call
|
|
110
110
|
// Inline function 'kotlin.apply' call
|
|
111
111
|
var this_0 = StringBuilder().a1();
|
|
112
|
-
var content = encode(charset.
|
|
112
|
+
var content = encode(charset.p3q(), _this__u8e3s4);
|
|
113
113
|
forEach(content, encodeURLQueryComponent$lambda(spaceToPlus, this_0, encodeFull));
|
|
114
114
|
return this_0.toString();
|
|
115
115
|
}
|
|
@@ -117,7 +117,7 @@ function decodeURLQueryComponent(_this__u8e3s4, start, end, plusIsSpace, charset
|
|
|
117
117
|
start = start === VOID ? 0 : start;
|
|
118
118
|
end = end === VOID ? _this__u8e3s4.length : end;
|
|
119
119
|
plusIsSpace = plusIsSpace === VOID ? false : plusIsSpace;
|
|
120
|
-
charset = charset === VOID ? Charsets_getInstance().
|
|
120
|
+
charset = charset === VOID ? Charsets_getInstance().m3q_1 : charset;
|
|
121
121
|
_init_properties_Codecs_kt__fudxxf();
|
|
122
122
|
return decodeScan(_this__u8e3s4, start, end, plusIsSpace, charset);
|
|
123
123
|
}
|
|
@@ -160,7 +160,7 @@ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
|
160
160
|
// Inline function 'kotlin.text.buildString' call
|
|
161
161
|
// Inline function 'kotlin.apply' call
|
|
162
162
|
var this_0 = StringBuilder().a1();
|
|
163
|
-
var charset = Charsets_getInstance().
|
|
163
|
+
var charset = Charsets_getInstance().m3q_1;
|
|
164
164
|
var index = 0;
|
|
165
165
|
$l$loop_0: while (index < _this__u8e3s4.length) {
|
|
166
166
|
var current = charCodeAt(_this__u8e3s4, index);
|
|
@@ -177,7 +177,7 @@ function encodeURLPath(_this__u8e3s4, encodeSlash, encodeEncoded) {
|
|
|
177
177
|
continue $l$loop_0;
|
|
178
178
|
}
|
|
179
179
|
var symbolSize = isSurrogate(current) ? 2 : 1;
|
|
180
|
-
var tmp = encode(charset.
|
|
180
|
+
var tmp = encode(charset.p3q(), _this__u8e3s4, index, index + symbolSize | 0);
|
|
181
181
|
forEach(tmp, encodeURLPath$lambda(this_0));
|
|
182
182
|
index = index + symbolSize | 0;
|
|
183
183
|
}
|
|
@@ -213,12 +213,12 @@ function decodeImpl(_this__u8e3s4, start, end, prefixEnd, plusIsSpace, charset)
|
|
|
213
213
|
var startIndex = index;
|
|
214
214
|
var endIndex = charSequenceLength(_this__u8e3s4);
|
|
215
215
|
var tmp$ret$0 = toString_0(charSequenceSubSequence(_this__u8e3s4, startIndex, endIndex));
|
|
216
|
-
throw URLDecodeException().
|
|
216
|
+
throw URLDecodeException().m3y('Incomplete trailing HEX escape: ' + tmp$ret$0 + ', in ' + toString_0(_this__u8e3s4) + ' at ' + index);
|
|
217
217
|
}
|
|
218
218
|
var digit1 = charToHexDigit(charSequenceGet(_this__u8e3s4, index + 1 | 0));
|
|
219
219
|
var digit2 = charToHexDigit(charSequenceGet(_this__u8e3s4, index + 2 | 0));
|
|
220
220
|
if (digit1 === -1 || digit2 === -1) {
|
|
221
|
-
throw URLDecodeException().
|
|
221
|
+
throw URLDecodeException().m3y('Wrong HEX escape: %' + toString(charSequenceGet(_this__u8e3s4, index + 1 | 0)) + toString(charSequenceGet(_this__u8e3s4, index + 2 | 0)) + ', in ' + toString_0(_this__u8e3s4) + ', at ' + index);
|
|
222
222
|
}
|
|
223
223
|
var tmp = bytes;
|
|
224
224
|
var _unary__edvuaz = count;
|
|
@@ -238,9 +238,9 @@ var URLDecodeExceptionClass;
|
|
|
238
238
|
function URLDecodeException() {
|
|
239
239
|
if (URLDecodeExceptionClass === VOID) {
|
|
240
240
|
class $ extends Exception() {
|
|
241
|
-
static
|
|
241
|
+
static m3y(message) {
|
|
242
242
|
var $this = this.g5(message);
|
|
243
|
-
captureStack($this, $this.
|
|
243
|
+
captureStack($this, $this.l3y_1);
|
|
244
244
|
return $this;
|
|
245
245
|
}
|
|
246
246
|
}
|
|
@@ -305,7 +305,7 @@ function encodeURLQueryComponent$lambda($spaceToPlus, $$this$buildString, $encod
|
|
|
305
305
|
function forEach$lambda($block) {
|
|
306
306
|
return function (buffer) {
|
|
307
307
|
while (canRead(buffer)) {
|
|
308
|
-
$block(buffer.
|
|
308
|
+
$block(buffer.r2r());
|
|
309
309
|
}
|
|
310
310
|
return true;
|
|
311
311
|
};
|