@attocash/commons-test 6.2.0 → 6.2.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/DateTimeUnit.mjs +58 -58
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/Exceptions.mjs +21 -21
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDate.mjs +56 -56
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalDateTime.mjs +31 -31
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/LocalTime.mjs +41 -41
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/OverloadMarker.mjs +1 -1
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/TimeZone.mjs +65 -65
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/UtcOffset.mjs +22 -22
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/YearMonth.mjs +22 -22
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/ZonedDateTime.mjs +12 -12
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormat.mjs +7 -7
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeFormatBuilder.mjs +32 -32
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateFormat.mjs +122 -122
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +104 -104
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalTimeFormat.mjs +150 -150
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/UtcOffsetFormat.mjs +131 -131
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/YearMonthFormat.mjs +74 -74
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/OffsetInfo.mjs +29 -29
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/Platform.mjs +26 -26
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/RegionTimeZone.mjs +20 -20
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/TimeZoneRules.mjs +49 -49
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Builder.mjs +7 -7
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldFormatDirective.mjs +49 -49
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FieldSpec.mjs +42 -42
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/FormatStructure.mjs +108 -108
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/Predicate.mjs +11 -11
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/Formatter.mjs +28 -28
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/formatter/FormatterOperation.mjs +45 -45
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/NumberConsumer.mjs +43 -43
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParseResult.mjs +4 -4
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/Parser.mjs +54 -54
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/format/parser/ParserOperation.mjs +60 -60
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/math.mjs +16 -16
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/internal/mathNative.mjs +3 -3
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/DateTimeUnitSerializers.mjs +100 -100
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateSerializers.mjs +9 -9
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalDateTimeSerializers.mjs +9 -9
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/LocalTimeSerializers.mjs +9 -9
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/TimeZoneSerializers.mjs +28 -28
- package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/serializers/YearMonthSerializers.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/AccountUpdate.js.mjs +11 -11
- package/commons-commons-core/cash/atto/commons/AttoAccount.mjs +129 -129
- package/commons-commons-core/cash/atto/commons/AttoAccountEntry.mjs +116 -116
- package/commons-commons-core/cash/atto/commons/AttoAddress.mjs +32 -32
- package/commons-commons-core/cash/atto/commons/AttoAlgorithm.mjs +15 -15
- package/commons-commons-core/cash/atto/commons/AttoAmount.mjs +34 -34
- package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +875 -875
- package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoChallenge.mjs +13 -13
- package/commons-commons-core/cash/atto/commons/AttoFuture.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoHash.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoHasher.js.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoHeight.mjs +22 -22
- package/commons-commons-core/cash/atto/commons/AttoInstant.mjs +38 -38
- package/commons-commons-core/cash/atto/commons/AttoJob.mjs +1 -1
- package/commons-commons-core/cash/atto/commons/AttoKeyIndex.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.export.d.mts +2 -3
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs +35 -26
- package/commons-commons-core/cash/atto/commons/AttoMnemonic.mjs.map +1 -1
- package/commons-commons-core/cash/atto/commons/AttoMnemonicDictionary.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoNetwork.mjs +12 -12
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs +8 -8
- package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs +30 -30
- package/commons-commons-core/cash/atto/commons/AttoPublicKey.mjs +13 -13
- package/commons-commons-core/cash/atto/commons/AttoReceivable.mjs +96 -96
- package/commons-commons-core/cash/atto/commons/AttoSeed.js.mjs +7 -7
- package/commons-commons-core/cash/atto/commons/AttoSeed.mjs +4 -4
- package/commons-commons-core/cash/atto/commons/AttoSignature.mjs +14 -14
- package/commons-commons-core/cash/atto/commons/AttoSigner.js.mjs +9 -9
- package/commons-commons-core/cash/atto/commons/AttoSocketAddress.mjs +6 -6
- package/commons-commons-core/cash/atto/commons/AttoTransaction.mjs +64 -64
- package/commons-commons-core/cash/atto/commons/AttoValidation.mjs +3 -3
- package/commons-commons-core/cash/atto/commons/AttoVersion.mjs +15 -15
- package/commons-commons-core/cash/atto/commons/AttoVote.mjs +78 -78
- package/commons-commons-core/cash/atto/commons/AttoWork.mjs +24 -24
- package/commons-commons-core/cash/atto/commons/AttoWorkTarget.mjs +16 -16
- package/commons-commons-core/cash/atto/commons/Extensions.mjs +8 -8
- 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/AttoNodeClientAsync.export.d.mts +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.mjs +332 -296
- package/commons-commons-node/cash/atto/commons/node/AttoNodeClientAsync.mjs.map +1 -1
- package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +156 -156
- package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +17 -17
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitor.mjs +7 -7
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsync.mjs +34 -34
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountEntryMonitorAsyncBuilder.web.mjs +16 -16
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitor.mjs +38 -38
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsync.mjs +54 -54
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoAccountMonitorAsyncBuilder.web.mjs +3 -3
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoHeightMonitor.mjs +64 -64
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitor.mjs +7 -7
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsync.mjs +34 -34
- package/commons-commons-node/cash/atto/commons/node/monitor/AttoTransactionMonitorAsyncBuilder.web.mjs +16 -16
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientAsyncBuilder.web.mjs +9 -9
- package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClientRemote.mjs +344 -344
- package/commons-commons-test/cash/atto/commons/node/AttoMockWorker.mjs +8 -8
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.js.mjs +32 -32
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMock.mjs +20 -20
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.js.mjs +15 -15
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsync.mjs +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoNodeMockAsyncBuilder.js.mjs +28 -28
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMock.js.mjs +15 -15
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.js.mjs +12 -12
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsync.mjs +1 -1
- package/commons-commons-test/cash/atto/commons/node/AttoWorkerMockAsyncBuilder.js.mjs +12 -12
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +2 -2
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerAsync.mjs +25 -25
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCache.mjs +79 -79
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerCpu.mjs +38 -38
- package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +82 -82
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerAsyncBuilder.web.mjs +16 -16
- package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +33 -33
- package/kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/DeepRecursive.mjs +24 -24
- package/kotlin-kotlin-stdlib/kotlin/Enum.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/Lazy.mjs +9 -9
- package/kotlin-kotlin-stdlib/kotlin/Primitives.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/Result.mjs +11 -11
- package/kotlin-kotlin-stdlib/kotlin/Standard.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/Tuples.mjs +21 -21
- package/kotlin-kotlin-stdlib/kotlin/UByte.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/UByteArray.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/UInt.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/UIntArray.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/ULong.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/ULongArray.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/UShort.mjs +12 -12
- package/kotlin-kotlin-stdlib/kotlin/UShortArray.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractCollection.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs +49 -95
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractList.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMap.mjs +40 -40
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableCollectionJs.mjs +10 -10
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs +67 -92
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableListJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableMap.mjs +25 -25
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractMutableSet.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/collections/AbstractSet.mjs +7 -7
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs +202 -249
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayDeque.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs +37 -43
- package/kotlin-kotlin-stdlib/kotlin/collections/ArrayListJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.d.mts +0 -9
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.mjs +1 -7
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.export.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs +15 -43
- package/kotlin-kotlin-stdlib/kotlin/collections/Collections.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs +36 -73
- package/kotlin-kotlin-stdlib/kotlin/collections/CollectionsKt.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMap.mjs +35 -35
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntry.mjs +51 -51
- package/kotlin-kotlin-stdlib/kotlin/collections/HashMapEntryDefault.mjs +38 -38
- package/kotlin-kotlin-stdlib/kotlin/collections/HashSet.mjs +16 -16
- package/kotlin-kotlin-stdlib/kotlin/collections/IndexedValue.mjs +7 -7
- package/kotlin-kotlin-stdlib/kotlin/collections/InternalHashMap.mjs +204 -204
- package/kotlin-kotlin-stdlib/kotlin/collections/InternalMap.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterables.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/collections/Iterators.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashMap.mjs +17 -17
- package/kotlin-kotlin-stdlib/kotlin/collections/LinkedHashSet.mjs +7 -7
- package/kotlin-kotlin-stdlib/kotlin/collections/MapWithDefault.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/collections/Maps.mjs +25 -25
- package/kotlin-kotlin-stdlib/kotlin/collections/MutableCollections.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/collections/PrimitiveIterators.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs +11 -11
- package/kotlin-kotlin-stdlib/kotlin/collections/Sets.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs +0 -27
- package/kotlin-kotlin-stdlib/kotlin/collections/_Arrays.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/_ArraysJs.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/collections/_CollectionsJs.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs +19 -19
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs +17 -112
- package/kotlin-kotlin-stdlib/kotlin/collections/collectionsInterop.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/Continuation.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/coroutines/ContinuationInterceptor.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContext.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs +38 -38
- package/kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineImpl.mjs +4 -4
- package/kotlin-kotlin-stdlib/kotlin/coroutines/GeneratorCoroutineImpl.mjs +38 -38
- package/kotlin-kotlin-stdlib/kotlin/coroutines/InterceptedCoroutine.mjs +10 -10
- package/kotlin-kotlin-stdlib/kotlin/coroutines/SafeContinuationJs.mjs +17 -17
- package/kotlin-kotlin-stdlib/kotlin/coroutines/intrinsics/IntrinsicsJs.mjs +21 -21
- package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs +10 -30
- package/kotlin-kotlin-stdlib/kotlin/enums/EnumEntries.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/exceptions.mjs +71 -71
- package/kotlin-kotlin-stdlib/kotlin/hacks.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/js/JsClass.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/js/arrays.mjs +8 -8
- package/kotlin-kotlin-stdlib/kotlin/js/internal/primitiveCompanionObjects.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/js/json.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/random/Random.mjs +29 -29
- package/kotlin-kotlin-stdlib/kotlin/random/XorWowRandom.mjs +25 -25
- package/kotlin-kotlin-stdlib/kotlin/ranges/PrimitiveRanges.mjs +17 -17
- package/kotlin-kotlin-stdlib/kotlin/ranges/ProgressionIterators.mjs +26 -26
- package/kotlin-kotlin-stdlib/kotlin/ranges/Progressions.mjs +10 -10
- package/kotlin-kotlin-stdlib/kotlin/reflect/KTypeProjection.mjs +16 -16
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KClassImpl.mjs +23 -23
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeHelpers.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/KTypeParameterImpl.mjs +8 -8
- package/kotlin-kotlin-stdlib/kotlin/reflect/js/internal/primitives.mjs +20 -20
- package/kotlin-kotlin-stdlib/kotlin/sequences/SequenceBuilder.mjs +34 -34
- package/kotlin-kotlin-stdlib/kotlin/sequences/Sequences.mjs +27 -27
- package/kotlin-kotlin-stdlib/kotlin/text/CharacterCodingExceptionJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/text/HexExtensions.mjs +18 -18
- package/kotlin-kotlin-stdlib/kotlin/text/HexFormat.mjs +45 -45
- package/kotlin-kotlin-stdlib/kotlin/text/Indent.mjs +2 -2
- package/kotlin-kotlin-stdlib/kotlin/text/StringBuilderJs.mjs +17 -17
- package/kotlin-kotlin-stdlib/kotlin/text/StringNumberConversions.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/Strings.mjs +66 -66
- package/kotlin-kotlin-stdlib/kotlin/text/_DigitChars.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/text/_LetterChars.mjs +7 -7
- package/kotlin-kotlin-stdlib/kotlin/text/regex.mjs +21 -21
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs +19 -19
- package/kotlin-kotlin-stdlib/kotlin/text/stringJs.mjs.map +1 -1
- package/kotlin-kotlin-stdlib/kotlin/text/stringsCode.mjs +3 -3
- package/kotlin-kotlin-stdlib/kotlin/text/utf8Encoding.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/throwableExtensions.mjs +21 -21
- package/kotlin-kotlin-stdlib/kotlin/time/Clock.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/time/Duration.mjs +81 -81
- package/kotlin-kotlin-stdlib/kotlin/time/DurationUnitJs.mjs +6 -6
- package/kotlin-kotlin-stdlib/kotlin/time/Instant.mjs +84 -84
- package/kotlin-kotlin-stdlib/kotlin/time/InstantJs.mjs +1 -1
- package/kotlin-kotlin-stdlib/kotlin/uuid/Uuid.mjs +24 -24
- package/kotlin-kotlin-stdlib/kotlin/uuid/UuidJs.mjs +2 -2
- package/kotlin-kotlin-stdlib/reflectionJs.mjs +2 -2
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.common.mjs +5 -5
- package/kotlinx-atomicfu/kotlinx/atomicfu/AtomicFU.mjs +8 -8
- package/kotlinx-coroutines-core/kotlinx/coroutines/AbstractCoroutine.mjs +27 -27
- package/kotlinx-coroutines-core/kotlinx/coroutines/Builders.common.mjs +16 -16
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuation.mjs +8 -8
- package/kotlinx-coroutines-core/kotlinx/coroutines/CancellableContinuationImpl.mjs +173 -173
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs +10 -10
- package/kotlinx-coroutines-core/kotlinx/coroutines/CompletionState.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineContext.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineDispatcher.mjs +9 -9
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineExceptionHandler.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineName.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/CoroutineStart.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/Delay.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/DispatchedTask.mjs +49 -49
- package/kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs +18 -18
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.common.mjs +30 -30
- package/kotlinx-coroutines-core/kotlinx/coroutines/EventLoop.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.common.mjs +6 -6
- package/kotlinx-coroutines-core/kotlinx/coroutines/Exceptions.mjs +6 -6
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs +90 -112
- package/kotlinx-coroutines-core/kotlinx/coroutines/JSDispatcher.mjs.map +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Job.mjs +17 -17
- package/kotlinx-coroutines-core/kotlinx/coroutines/JobSupport.mjs +324 -324
- package/kotlinx-coroutines-core/kotlinx/coroutines/MainCoroutineDispatcher.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/Promise.mjs +8 -8
- package/kotlinx-coroutines-core/kotlinx/coroutines/Supervisor.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/Unconfined.mjs +7 -7
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/BufferedChannel.mjs +462 -462
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channel.mjs +30 -30
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ChannelCoroutine.mjs +19 -19
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Channels.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/ConflatedBufferedChannel.mjs +16 -16
- package/kotlinx-coroutines-core/kotlinx/coroutines/channels/Produce.mjs +13 -13
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Builders.mjs +13 -13
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Channels.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Collect.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Emitters.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Reduce.mjs +18 -18
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/Share.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/SharedFlow.mjs +45 -45
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/StateFlow.mjs +51 -51
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/AbstractSharedFlow.mjs +25 -25
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/ChannelFlow.mjs +65 -65
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.common.mjs +1 -1
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/FlowExceptions.mjs +6 -6
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/Merge.mjs +39 -39
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.common.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SafeCollector.mjs +10 -10
- package/kotlinx-coroutines-core/kotlinx/coroutines/flow/internal/SendingCollector.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.common.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Concurrent.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ConcurrentLinkedList.mjs +49 -49
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.common.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/CoroutineExceptionHandlerImpl.mjs +3 -3
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/DispatchedContinuation.mjs +77 -77
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LimitedDispatcher.mjs +37 -37
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LinkedList.mjs +23 -23
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/LockFreeTaskQueue.mjs +74 -74
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/NamedDispatcher.mjs +10 -10
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/OnUndeliveredElement.mjs +4 -4
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Scopes.mjs +11 -11
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/Symbol.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/internal/ThreadLocal.mjs +5 -5
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Cancellable.mjs +2 -2
- package/kotlinx-coroutines-core/kotlinx/coroutines/intrinsics/Undispatched.mjs +12 -12
- package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +15 -15
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Mutex.mjs +54 -54
- package/kotlinx-coroutines-core/kotlinx/coroutines/sync/Semaphore.mjs +65 -65
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/ByteString.mjs +36 -36
- package/kotlinx-io-kotlinx-io-bytestring/kotlinx/io/bytestring/unsafe/UnsafeByteStringOperations.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-PlatformJs.mjs +14 -14
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/-Util.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffer.mjs +191 -191
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Buffers.mjs +10 -10
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/ByteStrings.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/PeekSource.mjs +21 -21
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/RealSource.mjs +54 -54
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Segment.mjs +151 -151
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/SegmentPool.mjs +6 -6
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sink.mjs +2 -2
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sinks.mjs +3 -3
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Sources.mjs +15 -15
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/Utf8.mjs +58 -58
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/internal/-Utf8.mjs +1 -1
- package/kotlinx-io-kotlinx-io-core/kotlinx/io/unsafe/UnsafeBufferOperations.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/PolymorphicSerializer.mjs +19 -19
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SealedSerializer.mjs +46 -46
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializationExceptions.mjs +23 -23
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/Serializers.mjs +6 -6
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersCache.mjs +6 -6
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/SerializersJs.mjs +4 -4
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/builtins/BuiltinSerializers.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/ContextAware.mjs +33 -33
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptor.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/descriptors/SerialDescriptors.mjs +66 -66
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractDecoder.mjs +55 -55
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/AbstractEncoder.mjs +65 -65
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Decoding.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/encoding/Encoding.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/AbstractPolymorphicSerializer.mjs +26 -26
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/BuiltInSerializers.mjs +38 -38
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs +56 -56
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionDescriptors.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/CollectionSerializers.mjs +243 -243
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ElementMarker.mjs +22 -22
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Enums.mjs +33 -33
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/InlineClassDescriptor.mjs +16 -16
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NoOpEncoder.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NothingSerialDescriptor.mjs +16 -16
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/NullableSerializer.mjs +43 -43
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ObjectSerializer.mjs +19 -19
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.common.mjs +7 -7
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Platform.mjs +14 -14
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginExceptions.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PluginGeneratedSerialDescriptor.mjs +72 -72
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/PrimitiveArraysSerializers.mjs +444 -444
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Primitives.mjs +116 -116
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tagged.mjs +106 -106
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/Tuples.mjs +92 -92
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/internal/ValueClasses.mjs +48 -48
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModule.mjs +33 -33
- package/kotlinx-serialization-kotlinx-serialization-core/kotlinx/serialization/modules/SerializersModuleCollector.mjs +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/Json.mjs +44 -44
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonConfiguration.mjs +18 -18
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs +68 -90
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElement.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/JsonElementSerializers.mjs +152 -152
- 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 +14 -14
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonNamesMap.mjs +24 -24
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonPath.mjs +39 -39
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonSerializersModuleValidator.mjs +16 -16
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/JsonStreams.mjs +2 -2
- 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 +67 -67
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/Polymorphic.mjs +6 -6
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/SchemaCache.mjs +12 -12
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonDecoder.mjs +176 -176
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StreamingJsonEncoder.mjs +139 -139
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringJsonLexer.mjs +51 -51
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/StringOps.mjs +2 -2
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/TreeJsonDecoder.mjs +220 -220
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/WriteMode.mjs +9 -9
- package/kotlinx-serialization-kotlinx-serialization-json/kotlinx/serialization/json/internal/createMapForCache.mjs +1 -1
- package/ktor-ktor-client-content-negotiation/io/ktor/client/plugins/contentnegotiation/ContentNegotiation.mjs +72 -72
- 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 +76 -76
- package/ktor-ktor-client-core/io/ktor/client/HttpClientConfig.mjs +41 -41
- package/ktor-ktor-client-core/io/ktor/client/JsRequestUtils.mjs +1 -1
- package/ktor-ktor-client-core/io/ktor/client/call/DelegatedCall.mjs +43 -43
- package/ktor-ktor-client-core/io/ktor/client/call/HttpClientCall.mjs +51 -51
- package/ktor-ktor-client-core/io/ktor/client/call/SavedCall.mjs +49 -49
- package/ktor-ktor-client-core/io/ktor/client/call/utils.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/content/ObservableContent.mjs +23 -23
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngine.mjs +57 -57
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineBase.mjs +23 -23
- package/ktor-ktor-client-core/io/ktor/client/engine/HttpClientEngineCapability.mjs +1 -1
- 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 +25 -25
- 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 +34 -34
- package/ktor-ktor-client-core/io/ktor/client/engine/js/JsUtils.mjs +17 -17
- package/ktor-ktor-client-core/io/ktor/client/engine/js/browser/BrowserFetch.mjs +14 -14
- package/ktor-ktor-client-core/io/ktor/client/engine/js/compatibility/Utils.mjs +9 -9
- package/ktor-ktor-client-core/io/ktor/client/plugins/BodyProgress.mjs +40 -40
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultResponseValidation.mjs +33 -33
- package/ktor-ktor-client-core/io/ktor/client/plugins/DefaultTransform.mjs +74 -74
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpCallValidator.mjs +83 -83
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpClientPlugin.mjs +2 -2
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpPlainText.mjs +60 -60
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRedirect.mjs +34 -34
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestLifecycle.mjs +32 -32
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpRequestRetry.mjs +116 -116
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpSend.mjs +53 -53
- package/ktor-ktor-client-core/io/ktor/client/plugins/HttpTimeout.mjs +84 -84
- package/ktor-ktor-client-core/io/ktor/client/plugins/SaveBody.mjs +24 -24
- 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 +13 -13
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/ClientPluginInstance.mjs +12 -12
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CommonHooks.mjs +28 -28
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/CreatePluginUtils.mjs +14 -14
- package/ktor-ktor-client-core/io/ktor/client/plugins/api/KtorCallContexts.mjs +39 -39
- package/ktor-ktor-client-core/io/ktor/client/plugins/sse/ClientSSESession.mjs +4 -4
- package/ktor-ktor-client-core/io/ktor/client/plugins/websocket/JsWebSocketSession.mjs +49 -49
- 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 +18 -18
- package/ktor-ktor-client-core/io/ktor/client/request/HttpRequest.mjs +60 -60
- 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 +25 -25
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponse.mjs +8 -8
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpResponsePipeline.mjs +27 -27
- package/ktor-ktor-client-core/io/ktor/client/statement/HttpStatement.mjs +22 -22
- package/ktor-ktor-client-core/io/ktor/client/utils/ByteChannelUtils.mjs +17 -17
- 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 +6 -6
- package/ktor-ktor-client-core/io/ktor/client/utils/headers.mjs +1 -1
- package/ktor-ktor-events/io/ktor/events/Events.mjs +6 -6
- package/ktor-ktor-http/io/ktor/http/Codecs.mjs +15 -15
- package/ktor-ktor-http/io/ktor/http/ContentTypes.mjs +93 -93
- package/ktor-ktor-http/io/ktor/http/HeaderValueWithParameters.mjs +19 -19
- package/ktor-ktor-http/io/ktor/http/Headers.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/HttpHeaderValueParser.mjs +42 -42
- package/ktor-ktor-http/io/ktor/http/HttpHeaders.mjs +115 -115
- package/ktor-ktor-http/io/ktor/http/HttpMessageProperties.mjs +6 -6
- package/ktor-ktor-http/io/ktor/http/HttpMethod.mjs +13 -13
- package/ktor-ktor-http/io/ktor/http/HttpProtocolVersion.mjs +16 -16
- package/ktor-ktor-http/io/ktor/http/HttpStatusCode.mjs +68 -68
- package/ktor-ktor-http/io/ktor/http/Parameters.mjs +11 -11
- package/ktor-ktor-http/io/ktor/http/Query.mjs +4 -4
- package/ktor-ktor-http/io/ktor/http/URLBuilder.mjs +61 -61
- 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 +22 -22
- package/ktor-ktor-http/io/ktor/http/URLUtils.mjs +18 -18
- package/ktor-ktor-http/io/ktor/http/Url.mjs +69 -69
- package/ktor-ktor-http/io/ktor/http/UrlDecodedParametersBuilder.mjs +26 -26
- 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 +5 -5
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpHeadersMap.mjs +90 -90
- package/ktor-ktor-http-cio/io/ktor/http/cio/HttpParser.mjs +33 -33
- package/ktor-ktor-http-cio/io/ktor/http/cio/Multipart.mjs +53 -53
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/AsciiCharTree.mjs +15 -15
- package/ktor-ktor-http-cio/io/ktor/http/cio/internals/CharArrayBuilder.mjs +74 -74
- 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 +6 -6
- 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-io/io/ktor/utils/io/ByteChannel.mjs +127 -127
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelCtor.mjs +1 -1
- package/ktor-ktor-io/io/ktor/utils/io/ByteChannelScanner.mjs +53 -53
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannel.mjs +13 -13
- package/ktor-ktor-io/io/ktor/utils/io/ByteReadChannelOperations.mjs +59 -59
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannel.mjs +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/ByteWriteChannelOperations.mjs +39 -39
- package/ktor-ktor-io/io/ktor/utils/io/CloseToken.mjs +11 -11
- package/ktor-ktor-io/io/ktor/utils/io/CountedByteReadChannel.mjs +23 -23
- package/ktor-ktor-io/io/ktor/utils/io/Exceptions.mjs +12 -12
- package/ktor-ktor-io/io/ktor/utils/io/IODispatcher.jsAndWasmShared.mjs +1 -1
- 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 +5 -5
- 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 +2 -2
- package/ktor-ktor-io/io/ktor/utils/io/core/ByteReadPacket.mjs +4 -4
- 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 +29 -29
- package/ktor-ktor-io/io/ktor/utils/io/pool/Pool.mjs +4 -4
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConvertException.mjs +6 -6
- package/ktor-ktor-serialization/io/ktor/serialization/ContentConverter.mjs +42 -42
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/Extensions.mjs +1 -1
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/KotlinxSerializationConverter.mjs +89 -89
- package/ktor-ktor-serialization-kotlinx/io/ktor/serialization/kotlinx/SerializerLookup.mjs +11 -11
- package/ktor-ktor-serialization-kotlinx-json/io/ktor/serialization/kotlinx/json/JsonSupport.mjs +7 -7
- package/ktor-ktor-utils/io/ktor/util/Attributes.mjs +13 -13
- package/ktor-ktor-utils/io/ktor/util/AttributesJs.mjs +15 -15
- package/ktor-ktor-utils/io/ktor/util/CaseInsensitiveMap.mjs +45 -45
- package/ktor-ktor-utils/io/ktor/util/CoroutinesUtils.mjs +2 -2
- package/ktor-ktor-utils/io/ktor/util/DelegatingMutableSet.mjs +40 -40
- 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 +9 -9
- package/ktor-ktor-utils/io/ktor/util/collections/CopyOnWriteHashMap.mjs +3 -3
- package/ktor-ktor-utils/io/ktor/util/date/Date.mjs +106 -106
- package/ktor-ktor-utils/io/ktor/util/date/DateJs.mjs +5 -5
- package/ktor-ktor-utils/io/ktor/util/internal/LockFreeLinkedList.mjs +8 -8
- 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/pipeline/DebugPipelineContext.mjs +29 -29
- package/ktor-ktor-utils/io/ktor/util/pipeline/PhaseContent.mjs +26 -26
- package/ktor-ktor-utils/io/ktor/util/pipeline/Pipeline.mjs +55 -55
- 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 +58 -58
- package/ktor-ktor-utils/io/ktor/util/reflect/Type.mjs +9 -9
- package/ktor-ktor-utils/io/ktor/util/reflect/TypeInfoJs.mjs +1 -1
- package/ktor-ktor-websockets/io/ktor/websocket/CloseReason.mjs +18 -18
- package/ktor-ktor-websockets/io/ktor/websocket/FrameCommon.mjs +1 -1
- package/ktor-ktor-websockets/io/ktor/websocket/FrameJs.mjs +31 -31
- package/ktor-ktor-websockets/io/ktor/websocket/FrameType.mjs +8 -8
- package/package.json +1 -1
|
@@ -58,11 +58,11 @@ function *_generator_parseHeaders__yk88b9(input, builder, range, $completion) {
|
|
|
58
58
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
59
59
|
tmp = yield tmp;
|
|
60
60
|
if (!tmp) {
|
|
61
|
-
headers.
|
|
61
|
+
headers.p1e();
|
|
62
62
|
return null;
|
|
63
63
|
}
|
|
64
|
-
range.
|
|
65
|
-
var rangeLength = range.
|
|
64
|
+
range.f3b_1 = builder.r3a_1;
|
|
65
|
+
var rangeLength = range.f3b_1 - range.e3b_1 | 0;
|
|
66
66
|
if (rangeLength === 0)
|
|
67
67
|
break $l$loop;
|
|
68
68
|
if (rangeLength >= 8192) {
|
|
@@ -70,16 +70,16 @@ function *_generator_parseHeaders__yk88b9(input, builder, range, $completion) {
|
|
|
70
70
|
var message = 'Header line length limit exceeded';
|
|
71
71
|
throw IllegalStateException().o(toString(message));
|
|
72
72
|
}
|
|
73
|
-
var nameStart = range.
|
|
73
|
+
var nameStart = range.e3b_1;
|
|
74
74
|
var nameEnd = parseHeaderName(builder, range);
|
|
75
|
-
var headerEnd = range.
|
|
75
|
+
var headerEnd = range.f3b_1;
|
|
76
76
|
parseHeaderValue(builder, range);
|
|
77
|
-
var valueStart = range.
|
|
78
|
-
var valueEnd = range.
|
|
79
|
-
range.
|
|
80
|
-
headers.
|
|
77
|
+
var valueStart = range.e3b_1;
|
|
78
|
+
var valueEnd = range.f3b_1;
|
|
79
|
+
range.e3b_1 = headerEnd;
|
|
80
|
+
headers.i3a(nameStart, nameEnd, valueStart, valueEnd);
|
|
81
81
|
}
|
|
82
|
-
var host = headers.
|
|
82
|
+
var host = headers.t1g(HttpHeaders_getInstance().y2z_1);
|
|
83
83
|
if (!(host == null)) {
|
|
84
84
|
validateHostHeader(host);
|
|
85
85
|
}
|
|
@@ -87,7 +87,7 @@ function *_generator_parseHeaders__yk88b9(input, builder, range, $completion) {
|
|
|
87
87
|
} catch ($p) {
|
|
88
88
|
if ($p instanceof Error) {
|
|
89
89
|
var t = $p;
|
|
90
|
-
headers.
|
|
90
|
+
headers.p1e();
|
|
91
91
|
throw t;
|
|
92
92
|
} else {
|
|
93
93
|
throw $p;
|
|
@@ -100,16 +100,16 @@ function parseHeaders(input, builder, range, $completion) {
|
|
|
100
100
|
}
|
|
101
101
|
function parseHeaderName(text, range) {
|
|
102
102
|
_init_properties_HttpParser_kt__gbdom1();
|
|
103
|
-
var index = range.
|
|
104
|
-
var end = range.
|
|
103
|
+
var index = range.e3b_1;
|
|
104
|
+
var end = range.f3b_1;
|
|
105
105
|
while (index < end) {
|
|
106
106
|
var ch = text.b(index);
|
|
107
|
-
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.
|
|
108
|
-
range.
|
|
107
|
+
if (ch === _Char___init__impl__6a9atx(58) && !(index === range.e3b_1)) {
|
|
108
|
+
range.e3b_1 = index + 1 | 0;
|
|
109
109
|
return index;
|
|
110
110
|
}
|
|
111
111
|
if (isDelimiter(ch)) {
|
|
112
|
-
parseHeaderNameFailed(text, index, range.
|
|
112
|
+
parseHeaderNameFailed(text, index, range.e3b_1, ch);
|
|
113
113
|
}
|
|
114
114
|
index = index + 1 | 0;
|
|
115
115
|
}
|
|
@@ -117,12 +117,12 @@ function parseHeaderName(text, range) {
|
|
|
117
117
|
}
|
|
118
118
|
function parseHeaderValue(text, range) {
|
|
119
119
|
_init_properties_HttpParser_kt__gbdom1();
|
|
120
|
-
var start = range.
|
|
121
|
-
var end = range.
|
|
120
|
+
var start = range.e3b_1;
|
|
121
|
+
var end = range.f3b_1;
|
|
122
122
|
var index = start;
|
|
123
123
|
index = skipSpacesAndHorizontalTabs(text, index, end);
|
|
124
124
|
if (index >= end) {
|
|
125
|
-
range.
|
|
125
|
+
range.e3b_1 = end;
|
|
126
126
|
return Unit_instance;
|
|
127
127
|
}
|
|
128
128
|
var valueStart = index;
|
|
@@ -136,13 +136,13 @@ function parseHeaderValue(text, range) {
|
|
|
136
136
|
valueLastIndex = index;
|
|
137
137
|
index = index + 1 | 0;
|
|
138
138
|
}
|
|
139
|
-
range.
|
|
140
|
-
range.
|
|
139
|
+
range.e3b_1 = valueStart;
|
|
140
|
+
range.f3b_1 = valueLastIndex + 1 | 0;
|
|
141
141
|
}
|
|
142
142
|
function validateHostHeader(host) {
|
|
143
143
|
_init_properties_HttpParser_kt__gbdom1();
|
|
144
144
|
if (endsWith(host, ':')) {
|
|
145
|
-
throw ParserException().
|
|
145
|
+
throw ParserException().k3b("Host header with ':' should contains port: " + toString(host));
|
|
146
146
|
}
|
|
147
147
|
var tmp$ret$1;
|
|
148
148
|
$l$block: {
|
|
@@ -159,7 +159,7 @@ function validateHostHeader(host) {
|
|
|
159
159
|
tmp$ret$1 = false;
|
|
160
160
|
}
|
|
161
161
|
if (tmp$ret$1) {
|
|
162
|
-
throw ParserException().
|
|
162
|
+
throw ParserException().k3b('Host cannot contain any of the following symbols: ' + toString(get_hostForbiddenSymbols()));
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
function isDelimiter(ch) {
|
|
@@ -169,34 +169,34 @@ function isDelimiter(ch) {
|
|
|
169
169
|
function parseHeaderNameFailed(text, index, start, ch) {
|
|
170
170
|
_init_properties_HttpParser_kt__gbdom1();
|
|
171
171
|
if (ch === _Char___init__impl__6a9atx(58)) {
|
|
172
|
-
throw ParserException().
|
|
172
|
+
throw ParserException().k3b('Empty header names are not allowed as per RFC7230.');
|
|
173
173
|
}
|
|
174
174
|
if (index === start) {
|
|
175
|
-
throw ParserException().
|
|
175
|
+
throw ParserException().k3b('Multiline headers via line folding is not supported since it is deprecated as per RFC7230.');
|
|
176
176
|
}
|
|
177
177
|
characterIsNotAllowed(text, ch);
|
|
178
178
|
}
|
|
179
179
|
function noColonFound(text, range) {
|
|
180
180
|
_init_properties_HttpParser_kt__gbdom1();
|
|
181
|
-
var tmp2 = range.
|
|
181
|
+
var tmp2 = range.e3b_1;
|
|
182
182
|
// Inline function 'kotlin.text.substring' call
|
|
183
|
-
var endIndex = range.
|
|
183
|
+
var endIndex = range.f3b_1;
|
|
184
184
|
var tmp$ret$0 = toString(charSequenceSubSequence(text, tmp2, endIndex));
|
|
185
|
-
throw ParserException().
|
|
185
|
+
throw ParserException().k3b('No colon in HTTP header in ' + tmp$ret$0 + ' in builder: \n' + toString(text));
|
|
186
186
|
}
|
|
187
187
|
function characterIsNotAllowed(text, ch) {
|
|
188
188
|
_init_properties_HttpParser_kt__gbdom1();
|
|
189
189
|
// Inline function 'kotlin.code' call
|
|
190
190
|
var tmp$ret$0 = Char__toInt_impl_vasixd(ch);
|
|
191
|
-
throw ParserException().
|
|
191
|
+
throw ParserException().k3b('Character with code ' + (tmp$ret$0 & 255) + ' is not allowed in header names, \n' + toString(text));
|
|
192
192
|
}
|
|
193
193
|
var ParserExceptionClass;
|
|
194
194
|
function ParserException() {
|
|
195
195
|
if (ParserExceptionClass === VOID) {
|
|
196
196
|
class $ extends IllegalStateException() {
|
|
197
|
-
static
|
|
197
|
+
static k3b(message) {
|
|
198
198
|
var $this = this.o(message);
|
|
199
|
-
captureStack($this, $this.
|
|
199
|
+
captureStack($this, $this.j3b_1);
|
|
200
200
|
return $this;
|
|
201
201
|
}
|
|
202
202
|
}
|
|
@@ -210,8 +210,8 @@ function _init_properties_HttpParser_kt__gbdom1() {
|
|
|
210
210
|
if (!properties_initialized_HttpParser_kt_uedryv) {
|
|
211
211
|
properties_initialized_HttpParser_kt_uedryv = true;
|
|
212
212
|
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))]);
|
|
213
|
-
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().
|
|
214
|
-
versions = Companion_instance.
|
|
213
|
+
httpLineEndings = LineEndingMode__plus_impl_ttpz2j(Companion_getInstance().m2n_1, Companion_getInstance().l2n_1);
|
|
214
|
+
versions = Companion_instance.l3b(listOf(['HTTP/1.0', 'HTTP/1.1']));
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
//region block: exports
|
|
@@ -82,7 +82,7 @@ function Preamble() {
|
|
|
82
82
|
class $ extends MultipartEvent() {
|
|
83
83
|
constructor(body) {
|
|
84
84
|
super();
|
|
85
|
-
this.
|
|
85
|
+
this.m3b_1 = body;
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
initMetadataForClass($, 'Preamble');
|
|
@@ -96,8 +96,8 @@ function MultipartPart() {
|
|
|
96
96
|
class $ extends MultipartEvent() {
|
|
97
97
|
constructor(headers, body) {
|
|
98
98
|
super();
|
|
99
|
-
this.
|
|
100
|
-
this.
|
|
99
|
+
this.n3b_1 = headers;
|
|
100
|
+
this.o3b_1 = body;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
initMetadataForClass($, 'MultipartPart');
|
|
@@ -111,7 +111,7 @@ function Epilogue() {
|
|
|
111
111
|
class $ extends MultipartEvent() {
|
|
112
112
|
constructor(body) {
|
|
113
113
|
super();
|
|
114
|
-
this.
|
|
114
|
+
this.p3b_1 = body;
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
117
|
initMetadataForClass($, 'Epilogue');
|
|
@@ -131,18 +131,18 @@ function MultipartEvent() {
|
|
|
131
131
|
function parseMultipart(_this__u8e3s4, input, contentType, contentLength, maxPartSize) {
|
|
132
132
|
maxPartSize = maxPartSize === VOID ? 9223372036854775807n : maxPartSize;
|
|
133
133
|
_init_properties_Multipart_kt__ato98a();
|
|
134
|
-
if (!MultiPart_getInstance().
|
|
135
|
-
throw UnsupportedMediaTypeExceptionCIO().
|
|
134
|
+
if (!MultiPart_getInstance().q2x(contentType)) {
|
|
135
|
+
throw UnsupportedMediaTypeExceptionCIO().t3b('Failed to parse multipart: Content-Type should be multipart/* but it is ' + toString(contentType));
|
|
136
136
|
}
|
|
137
137
|
var boundaryByteBuffer = parseBoundaryInternal(contentType);
|
|
138
|
-
var boundaryBytes = ByteString().
|
|
138
|
+
var boundaryBytes = ByteString().z2g(boundaryByteBuffer);
|
|
139
139
|
return parseMultipart_0(_this__u8e3s4, boundaryBytes, input, contentLength, maxPartSize);
|
|
140
140
|
}
|
|
141
141
|
function parseBoundaryInternal(contentType) {
|
|
142
142
|
_init_properties_Multipart_kt__ato98a();
|
|
143
143
|
var boundaryParameter = findBoundary(contentType);
|
|
144
144
|
if (boundaryParameter === -1) {
|
|
145
|
-
throw IOException().
|
|
145
|
+
throw IOException().w2k("Failed to parse multipart: Content-Type's boundary parameter is missing");
|
|
146
146
|
}
|
|
147
147
|
var boundaryStart = boundaryParameter + 9 | 0;
|
|
148
148
|
var boundaryBytes = new Int8Array(74);
|
|
@@ -162,7 +162,7 @@ function parseBoundaryInternal(contentType) {
|
|
|
162
162
|
// Inline function 'kotlin.code' call
|
|
163
163
|
var v = Char__toInt_impl_vasixd(ch) & 65535;
|
|
164
164
|
if ((v & 65535) > 127) {
|
|
165
|
-
throw IOException().
|
|
165
|
+
throw IOException().w2k('Failed to parse multipart: wrong boundary byte 0x' + toString_0(v, 16) + ' - should be 7bit character');
|
|
166
166
|
}
|
|
167
167
|
switch (state) {
|
|
168
168
|
case 0:
|
|
@@ -203,7 +203,7 @@ function parseBoundaryInternal(contentType) {
|
|
|
203
203
|
}
|
|
204
204
|
while (inductionVariable < last);
|
|
205
205
|
if (position._v === 4) {
|
|
206
|
-
throw IOException().
|
|
206
|
+
throw IOException().w2k('Empty multipart boundary is not allowed');
|
|
207
207
|
}
|
|
208
208
|
return copyOfRange(boundaryBytes, 0, position._v);
|
|
209
209
|
}
|
|
@@ -286,7 +286,7 @@ function *_generator_parsePartHeadersImpl__ngvtk8(input, $completion) {
|
|
|
286
286
|
var tmp0_elvis_lhs = tmp;
|
|
287
287
|
var tmp_0;
|
|
288
288
|
if (tmp0_elvis_lhs == null) {
|
|
289
|
-
throw EOFException().
|
|
289
|
+
throw EOFException().k2h('Failed to parse multipart headers: unexpected end of stream');
|
|
290
290
|
} else {
|
|
291
291
|
tmp_0 = tmp0_elvis_lhs;
|
|
292
292
|
}
|
|
@@ -294,7 +294,7 @@ function *_generator_parsePartHeadersImpl__ngvtk8(input, $completion) {
|
|
|
294
294
|
} catch ($p) {
|
|
295
295
|
if ($p instanceof Error) {
|
|
296
296
|
var t = $p;
|
|
297
|
-
builder.
|
|
297
|
+
builder.p1e();
|
|
298
298
|
throw t;
|
|
299
299
|
} else {
|
|
300
300
|
throw $p;
|
|
@@ -305,7 +305,7 @@ function parsePartHeadersImpl(input, $completion) {
|
|
|
305
305
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_parsePartHeadersImpl__ngvtk8.bind(VOID, input), $completion);
|
|
306
306
|
}
|
|
307
307
|
function *_generator_parsePartBodyImpl__8tyvmc(boundaryPrefixed, input, output, headers, limit, $completion) {
|
|
308
|
-
var tmp0_safe_receiver = headers.
|
|
308
|
+
var tmp0_safe_receiver = headers.t1g('Content-Length');
|
|
309
309
|
var contentLength = tmp0_safe_receiver == null ? null : parseDecLong(tmp0_safe_receiver);
|
|
310
310
|
var tmp;
|
|
311
311
|
if (contentLength == null) {
|
|
@@ -327,7 +327,7 @@ function *_generator_parsePartBodyImpl__8tyvmc(boundaryPrefixed, input, output,
|
|
|
327
327
|
}
|
|
328
328
|
}
|
|
329
329
|
var byteCount = tmp;
|
|
330
|
-
var tmp_3 = output.
|
|
330
|
+
var tmp_3 = output.z2l($completion);
|
|
331
331
|
if (tmp_3 === get_COROUTINE_SUSPENDED())
|
|
332
332
|
tmp_3 = yield tmp_3;
|
|
333
333
|
return byteCount;
|
|
@@ -352,41 +352,41 @@ function skipIfFoundReadCount(_this__u8e3s4, prefix, $completion) {
|
|
|
352
352
|
}
|
|
353
353
|
function throwLimitExceeded(actual, limit) {
|
|
354
354
|
_init_properties_Multipart_kt__ato98a();
|
|
355
|
-
throw IOException().
|
|
355
|
+
throw IOException().w2k('Multipart content length exceeds limit ' + actual.toString() + ' > ' + limit.toString() + '; ' + "limit is defined using 'formFieldLimit' argument");
|
|
356
356
|
}
|
|
357
357
|
function parseBoundaryInternal$put(position, boundaryBytes, value) {
|
|
358
358
|
if (position._v >= boundaryBytes.length) {
|
|
359
|
-
throw IOException().
|
|
359
|
+
throw IOException().w2k("Failed to parse multipart: boundary shouldn't be longer than 70 characters");
|
|
360
360
|
}
|
|
361
361
|
var _unary__edvuaz = position._v;
|
|
362
362
|
position._v = _unary__edvuaz + 1 | 0;
|
|
363
363
|
boundaryBytes[_unary__edvuaz] = value;
|
|
364
364
|
}
|
|
365
365
|
function *_generator_invoke__zhh2q8($this, $this$writer, $completion) {
|
|
366
|
-
var tmp = parsePreambleImpl($this.
|
|
366
|
+
var tmp = parsePreambleImpl($this.u3b_1, $this.v3b_1, $this$writer.w2n_1, 8193n, $completion);
|
|
367
367
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
368
368
|
tmp = yield tmp;
|
|
369
|
-
var tmp_0 = $this$writer.
|
|
369
|
+
var tmp_0 = $this$writer.w2n_1.v2m($completion);
|
|
370
370
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
371
371
|
tmp_0 = yield tmp_0;
|
|
372
372
|
return Unit_instance;
|
|
373
373
|
}
|
|
374
374
|
function *_generator_invoke__zhh2q8_0($this, $this$produce, $completion) {
|
|
375
|
-
var countedInput = counted($this.
|
|
376
|
-
var readBeforeParse = countedInput.
|
|
377
|
-
var firstBoundary = $this.
|
|
378
|
-
var tmp = readRemaining(writer($this$produce, VOID, VOID, parseMultipart$slambda$slambda_0(firstBoundary, countedInput)).
|
|
375
|
+
var countedInput = counted($this.w3b_1);
|
|
376
|
+
var readBeforeParse = countedInput.l2o();
|
|
377
|
+
var firstBoundary = $this.x3b_1.a2h(get_PrefixString().u2());
|
|
378
|
+
var tmp = readRemaining(writer($this$produce, VOID, VOID, parseMultipart$slambda$slambda_0(firstBoundary, countedInput)).u2n_1, $completion);
|
|
379
379
|
if (tmp === get_COROUTINE_SUSPENDED())
|
|
380
380
|
tmp = yield tmp;
|
|
381
381
|
var preambleData = tmp;
|
|
382
382
|
if (get_remaining(preambleData) > 0n) {
|
|
383
|
-
var tmp_0 = $this$produce.
|
|
383
|
+
var tmp_0 = $this$produce.y23(new (Preamble())(preambleData), $completion);
|
|
384
384
|
if (tmp_0 === get_COROUTINE_SUSPENDED())
|
|
385
385
|
tmp_0 = yield tmp_0;
|
|
386
386
|
}
|
|
387
387
|
$l$loop_0: while (true) {
|
|
388
388
|
var tmp_1;
|
|
389
|
-
if (!countedInput.
|
|
389
|
+
if (!countedInput.s2m()) {
|
|
390
390
|
var tmp_2 = skipIfFound(countedInput, get_PrefixString(), $completion);
|
|
391
391
|
if (tmp_2 === get_COROUTINE_SUSPENDED())
|
|
392
392
|
tmp_2 = yield tmp_2;
|
|
@@ -409,7 +409,7 @@ function *_generator_invoke__zhh2q8_0($this, $this$produce, $completion) {
|
|
|
409
409
|
var body = new (ByteChannel())();
|
|
410
410
|
var headers = CompletableDeferred();
|
|
411
411
|
var part = new (MultipartPart())(headers, body);
|
|
412
|
-
var tmp_5 = $this$produce.
|
|
412
|
+
var tmp_5 = $this$produce.y23(part, $completion);
|
|
413
413
|
if (tmp_5 === get_COROUTINE_SUSPENDED())
|
|
414
414
|
tmp_5 = yield tmp_5;
|
|
415
415
|
var headersMap = null;
|
|
@@ -418,23 +418,23 @@ function *_generator_invoke__zhh2q8_0($this, $this$produce, $completion) {
|
|
|
418
418
|
if (tmp_6 === get_COROUTINE_SUSPENDED())
|
|
419
419
|
tmp_6 = yield tmp_6;
|
|
420
420
|
headersMap = tmp_6;
|
|
421
|
-
if (!headers.
|
|
422
|
-
headersMap.
|
|
421
|
+
if (!headers.i1w(headersMap)) {
|
|
422
|
+
headersMap.p1e();
|
|
423
423
|
throw CancellationException().n('Multipart processing has been cancelled');
|
|
424
424
|
}
|
|
425
|
-
var tmp_7 = parsePartBodyImpl($this.
|
|
425
|
+
var tmp_7 = parsePartBodyImpl($this.x3b_1, countedInput, body, headersMap, $this.y3b_1, $completion);
|
|
426
426
|
if (tmp_7 === get_COROUTINE_SUSPENDED())
|
|
427
427
|
tmp_7 = yield tmp_7;
|
|
428
|
-
body.
|
|
428
|
+
body.u6();
|
|
429
429
|
} catch ($p) {
|
|
430
430
|
if ($p instanceof Error) {
|
|
431
431
|
var cause = $p;
|
|
432
|
-
if (headers.
|
|
432
|
+
if (headers.j1w(cause)) {
|
|
433
433
|
var tmp0_safe_receiver = headersMap;
|
|
434
434
|
if (tmp0_safe_receiver == null)
|
|
435
435
|
null;
|
|
436
436
|
else {
|
|
437
|
-
tmp0_safe_receiver.
|
|
437
|
+
tmp0_safe_receiver.p1e();
|
|
438
438
|
}
|
|
439
439
|
}
|
|
440
440
|
close(body, cause);
|
|
@@ -450,16 +450,16 @@ function *_generator_invoke__zhh2q8_0($this, $this$produce, $completion) {
|
|
|
450
450
|
var tmp_9 = skipIfFound(countedInput, get_CrLf(), $completion);
|
|
451
451
|
if (tmp_9 === get_COROUTINE_SUSPENDED())
|
|
452
452
|
tmp_9 = yield tmp_9;
|
|
453
|
-
if (!($this.
|
|
454
|
-
var consumedExceptEpilogue = subtract(countedInput.
|
|
455
|
-
var size = subtract($this.
|
|
453
|
+
if (!($this.z3b_1 == null)) {
|
|
454
|
+
var consumedExceptEpilogue = subtract(countedInput.l2o(), readBeforeParse);
|
|
455
|
+
var size = subtract($this.z3b_1, consumedExceptEpilogue);
|
|
456
456
|
if (size > 2147483647n)
|
|
457
|
-
throw IOException().
|
|
457
|
+
throw IOException().w2k('Failed to parse multipart: prologue is too long');
|
|
458
458
|
if (size > 0n) {
|
|
459
459
|
var tmp_10 = readPacket(countedInput, convertToInt(size), $completion);
|
|
460
460
|
if (tmp_10 === get_COROUTINE_SUSPENDED())
|
|
461
461
|
tmp_10 = yield tmp_10;
|
|
462
|
-
var tmp_11 = $this$produce.
|
|
462
|
+
var tmp_11 = $this$produce.y23(new (Epilogue())(tmp_10), $completion);
|
|
463
463
|
if (tmp_11 === get_COROUTINE_SUSPENDED())
|
|
464
464
|
tmp_11 = yield tmp_11;
|
|
465
465
|
}
|
|
@@ -468,8 +468,8 @@ function *_generator_invoke__zhh2q8_0($this, $this$produce, $completion) {
|
|
|
468
468
|
if (tmp_12 === get_COROUTINE_SUSPENDED())
|
|
469
469
|
tmp_12 = yield tmp_12;
|
|
470
470
|
var epilogueContent = tmp_12;
|
|
471
|
-
if (!epilogueContent.
|
|
472
|
-
var tmp_13 = $this$produce.
|
|
471
|
+
if (!epilogueContent.m2h()) {
|
|
472
|
+
var tmp_13 = $this$produce.y23(new (Epilogue())(epilogueContent), $completion);
|
|
473
473
|
if (tmp_13 === get_COROUTINE_SUSPENDED())
|
|
474
474
|
tmp_13 = yield tmp_13;
|
|
475
475
|
}
|
|
@@ -481,14 +481,14 @@ function parseMultipart$slambda$slambda() {
|
|
|
481
481
|
if (parseMultipart$slambda$slambdaClass === VOID) {
|
|
482
482
|
class $ {
|
|
483
483
|
constructor($firstBoundary, $countedInput) {
|
|
484
|
-
this.
|
|
485
|
-
this.
|
|
484
|
+
this.u3b_1 = $firstBoundary;
|
|
485
|
+
this.v3b_1 = $countedInput;
|
|
486
486
|
}
|
|
487
|
-
|
|
487
|
+
a3c($this$writer, $completion) {
|
|
488
488
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_invoke__zhh2q8.bind(VOID, this, $this$writer), $completion);
|
|
489
489
|
}
|
|
490
|
-
|
|
491
|
-
return this.
|
|
490
|
+
md(p1, $completion) {
|
|
491
|
+
return this.a3c(p1 instanceof WriterScope() ? p1 : THROW_CCE(), $completion);
|
|
492
492
|
}
|
|
493
493
|
}
|
|
494
494
|
initMetadataForLambda($, VOID, VOID, [1]);
|
|
@@ -498,7 +498,7 @@ function parseMultipart$slambda$slambda() {
|
|
|
498
498
|
}
|
|
499
499
|
function parseMultipart$slambda$slambda_0($firstBoundary, $countedInput) {
|
|
500
500
|
var i = new (parseMultipart$slambda$slambda())($firstBoundary, $countedInput);
|
|
501
|
-
var l = ($this$writer, $completion) => i.
|
|
501
|
+
var l = ($this$writer, $completion) => i.a3c($this$writer, $completion);
|
|
502
502
|
l.$arity = 1;
|
|
503
503
|
return l;
|
|
504
504
|
}
|
|
@@ -507,16 +507,16 @@ function parseMultipart$slambda() {
|
|
|
507
507
|
if (parseMultipart$slambdaClass === VOID) {
|
|
508
508
|
class $ {
|
|
509
509
|
constructor($input, $boundaryPrefixed, $maxPartSize, $totalLength) {
|
|
510
|
-
this.
|
|
511
|
-
this.
|
|
512
|
-
this.
|
|
513
|
-
this.
|
|
510
|
+
this.w3b_1 = $input;
|
|
511
|
+
this.x3b_1 = $boundaryPrefixed;
|
|
512
|
+
this.y3b_1 = $maxPartSize;
|
|
513
|
+
this.z3b_1 = $totalLength;
|
|
514
514
|
}
|
|
515
|
-
|
|
515
|
+
b3c($this$produce, $completion) {
|
|
516
516
|
return suspendOrReturn(/*#__NOINLINE__*/_generator_invoke__zhh2q8_0.bind(VOID, this, $this$produce), $completion);
|
|
517
517
|
}
|
|
518
|
-
|
|
519
|
-
return this.
|
|
518
|
+
md(p1, $completion) {
|
|
519
|
+
return this.b3c((!(p1 == null) ? isInterface(p1, ProducerScope()) : false) ? p1 : THROW_CCE(), $completion);
|
|
520
520
|
}
|
|
521
521
|
}
|
|
522
522
|
initMetadataForLambda($, VOID, VOID, [1]);
|
|
@@ -526,7 +526,7 @@ function parseMultipart$slambda() {
|
|
|
526
526
|
}
|
|
527
527
|
function parseMultipart$slambda_0($input, $boundaryPrefixed, $maxPartSize, $totalLength) {
|
|
528
528
|
var i = new (parseMultipart$slambda())($input, $boundaryPrefixed, $maxPartSize, $totalLength);
|
|
529
|
-
var l = ($this$produce, $completion) => i.
|
|
529
|
+
var l = ($this$produce, $completion) => i.b3c($this$produce, $completion);
|
|
530
530
|
l.$arity = 1;
|
|
531
531
|
return l;
|
|
532
532
|
}
|
|
@@ -534,7 +534,7 @@ var properties_initialized_Multipart_kt_wu0sh0;
|
|
|
534
534
|
function _init_properties_Multipart_kt__ato98a() {
|
|
535
535
|
if (!properties_initialized_Multipart_kt_wu0sh0) {
|
|
536
536
|
properties_initialized_Multipart_kt_wu0sh0 = true;
|
|
537
|
-
CrLf = ByteString().
|
|
537
|
+
CrLf = ByteString().z2g(toByteArray('\r\n'));
|
|
538
538
|
PrefixString = ByteString_0(new Int8Array([45, 45]));
|
|
539
539
|
}
|
|
540
540
|
}
|
|
@@ -30,17 +30,17 @@ import { emptyList1g2z5xcrvp2zy as emptyList } from '../../../../../../kotlin-ko
|
|
|
30
30
|
function build($this, resultList, from, maxLength, idx, length, charAt) {
|
|
31
31
|
// Inline function 'kotlin.collections.groupBy' call
|
|
32
32
|
// Inline function 'kotlin.collections.groupByTo' call
|
|
33
|
-
var destination = LinkedHashMap().
|
|
33
|
+
var destination = LinkedHashMap().s5();
|
|
34
34
|
var _iterator__ex2g4s = from.q1();
|
|
35
35
|
while (_iterator__ex2g4s.r1()) {
|
|
36
36
|
var element = _iterator__ex2g4s.s1();
|
|
37
37
|
var key = charAt(element, idx);
|
|
38
38
|
// Inline function 'kotlin.collections.getOrPut' call
|
|
39
|
-
var value = destination.
|
|
39
|
+
var value = destination.o4(key);
|
|
40
40
|
var tmp;
|
|
41
41
|
if (value == null) {
|
|
42
42
|
var answer = ArrayList().y2();
|
|
43
|
-
destination.
|
|
43
|
+
destination.r4(key, answer);
|
|
44
44
|
tmp = answer;
|
|
45
45
|
} else {
|
|
46
46
|
tmp = value;
|
|
@@ -71,7 +71,7 @@ function build($this, resultList, from, maxLength, idx, length, charAt) {
|
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
build(tmp_0, children, destination_0, maxLength, nextIdx, length, charAt);
|
|
74
|
-
children.
|
|
74
|
+
children.p8();
|
|
75
75
|
// Inline function 'kotlin.collections.filter' call
|
|
76
76
|
// Inline function 'kotlin.collections.filterTo' call
|
|
77
77
|
var destination_1 = ArrayList().y2();
|
|
@@ -96,16 +96,16 @@ function Node() {
|
|
|
96
96
|
if (NodeClass === VOID) {
|
|
97
97
|
class $ {
|
|
98
98
|
constructor(ch, exact, children) {
|
|
99
|
-
this.
|
|
100
|
-
this.
|
|
101
|
-
this.
|
|
99
|
+
this.c3c_1 = ch;
|
|
100
|
+
this.d3c_1 = exact;
|
|
101
|
+
this.e3c_1 = children;
|
|
102
102
|
var tmp = this;
|
|
103
103
|
var tmp_0 = 0;
|
|
104
104
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
105
105
|
var tmp_1 = Array(256);
|
|
106
106
|
while (tmp_0 < 256) {
|
|
107
107
|
var tmp_2 = tmp_0;
|
|
108
|
-
var tmp0 = this.
|
|
108
|
+
var tmp0 = this.e3c_1;
|
|
109
109
|
var tmp$ret$3;
|
|
110
110
|
$l$block_0: {
|
|
111
111
|
// Inline function 'kotlin.collections.singleOrNull' call
|
|
@@ -115,7 +115,7 @@ function Node() {
|
|
|
115
115
|
while (_iterator__ex2g4s.r1()) {
|
|
116
116
|
var element = _iterator__ex2g4s.s1();
|
|
117
117
|
// Inline function 'kotlin.code' call
|
|
118
|
-
var this_0 = element.
|
|
118
|
+
var this_0 = element.c3c_1;
|
|
119
119
|
if (Char__toInt_impl_vasixd(this_0) === tmp_2) {
|
|
120
120
|
if (found) {
|
|
121
121
|
tmp$ret$3 = null;
|
|
@@ -134,7 +134,7 @@ function Node() {
|
|
|
134
134
|
tmp_1[tmp_2] = tmp$ret$3;
|
|
135
135
|
tmp_0 = tmp_0 + 1 | 0;
|
|
136
136
|
}
|
|
137
|
-
tmp.
|
|
137
|
+
tmp.f3c_1 = tmp_1;
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
initMetadataForClass($, 'Node');
|
|
@@ -146,11 +146,11 @@ var CompanionClass;
|
|
|
146
146
|
function Companion() {
|
|
147
147
|
if (CompanionClass === VOID) {
|
|
148
148
|
class $ {
|
|
149
|
-
|
|
149
|
+
l3b(from) {
|
|
150
150
|
var tmp = AsciiCharTree$Companion$build$lambda;
|
|
151
|
-
return this.
|
|
151
|
+
return this.g3c(from, tmp, AsciiCharTree$Companion$build$lambda_0);
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
g3c(from, length, charAt) {
|
|
154
154
|
var tmp$ret$0;
|
|
155
155
|
$l$block_0: {
|
|
156
156
|
// Inline function 'kotlin.collections.maxByOrNull' call
|
|
@@ -219,7 +219,7 @@ function Companion() {
|
|
|
219
219
|
throw IllegalArgumentException().s2('There should be no empty entries');
|
|
220
220
|
var root = ArrayList().y2();
|
|
221
221
|
build(this, root, from, maxLen, 0, length, charAt);
|
|
222
|
-
root.
|
|
222
|
+
root.p8();
|
|
223
223
|
return new (AsciiCharTree())(new (Node())(_Char___init__impl__6a9atx(0), emptyList(), root));
|
|
224
224
|
}
|
|
225
225
|
}
|
|
@@ -237,7 +237,7 @@ function AsciiCharTree() {
|
|
|
237
237
|
if (AsciiCharTreeClass === VOID) {
|
|
238
238
|
class $ {
|
|
239
239
|
constructor(root) {
|
|
240
|
-
this.
|
|
240
|
+
this.h3c_1 = root;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
initMetadataForClass($, 'AsciiCharTree');
|