@flock/wirespec 0.17.3 → 0.17.5
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/clikt-clikt.mjs +1174 -1174
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +45 -44
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +9202 -9761
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1767 -1767
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/kotlinx-serialization-kotlinx-serialization-core.mjs +4 -0
- package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.mjs +299 -299
- package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
- package/markdown.mjs +1876 -1876
- package/mordant-mordant.mjs +1643 -1643
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1059 -1059
- package/wirespec-src-compiler-emitters-java.mjs +248 -248
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +227 -227
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +222 -222
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +232 -232
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +72 -72
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +377 -327
- package/wirespec-src-compiler-lib.mjs.map +1 -1
- package/wirespec-src-converter-avro.mjs +316 -316
- package/wirespec-src-converter-openapi.mjs +2565 -2561
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +139 -139
- package/wirespec-src-plugin-cli.mjs +77 -77
- package/wirespec-src-plugin-npm.d.ts +13 -5
- package/wirespec-src-plugin-npm.mjs +41 -41
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +25 -25
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -58,12 +58,6 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
58
58
|
};
|
|
59
59
|
}(Math.log, Math.LN2);
|
|
60
60
|
}
|
|
61
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
62
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
63
|
-
position = position || 0;
|
|
64
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
65
|
-
}});
|
|
66
|
-
}
|
|
67
61
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
68
62
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
69
63
|
var subjectString = this.toString();
|
|
@@ -75,6 +69,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
75
69
|
return lastIndex !== -1 && lastIndex === position;
|
|
76
70
|
}});
|
|
77
71
|
}
|
|
72
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
73
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
74
|
+
position = position || 0;
|
|
75
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
76
|
+
}});
|
|
77
|
+
}
|
|
78
78
|
//endregion
|
|
79
79
|
//region block: imports
|
|
80
80
|
var imul_0 = Math.imul;
|
|
@@ -100,8 +100,8 @@ initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
|
|
|
100
100
|
initMetadataForInterface(Entry, 'Entry');
|
|
101
101
|
initMetadataForInterface(KtMap, 'Map');
|
|
102
102
|
initMetadataForInterface(MutableIterable, 'MutableIterable');
|
|
103
|
-
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList,
|
|
104
|
-
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet,
|
|
103
|
+
initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
|
|
104
|
+
initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
|
|
105
105
|
initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
|
|
106
106
|
initMetadataForCompanion(Companion_0);
|
|
107
107
|
initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
|
|
@@ -121,7 +121,7 @@ initMetadataForObject(Letter, 'Letter');
|
|
|
121
121
|
initMetadataForObject(OtherLowercase, 'OtherLowercase');
|
|
122
122
|
initMetadataForInterface(Comparator, 'Comparator');
|
|
123
123
|
initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
|
|
124
|
-
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection,
|
|
124
|
+
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection, MutableIterable]);
|
|
125
125
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
126
126
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
127
127
|
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
|
|
@@ -1027,31 +1027,6 @@ function zipWithNext(_this__u8e3s4) {
|
|
|
1027
1027
|
}
|
|
1028
1028
|
return tmp$ret$0;
|
|
1029
1029
|
}
|
|
1030
|
-
function sum(_this__u8e3s4) {
|
|
1031
|
-
var sum = 0;
|
|
1032
|
-
var tmp0_iterator = _this__u8e3s4.g();
|
|
1033
|
-
while (tmp0_iterator.h()) {
|
|
1034
|
-
var element = tmp0_iterator.i();
|
|
1035
|
-
sum = sum + element | 0;
|
|
1036
|
-
}
|
|
1037
|
-
return sum;
|
|
1038
|
-
}
|
|
1039
|
-
function dropLast(_this__u8e3s4, n) {
|
|
1040
|
-
// Inline function 'kotlin.require' call
|
|
1041
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1042
|
-
if (!(n >= 0)) {
|
|
1043
|
-
// Inline function 'kotlin.collections.dropLast.<anonymous>' call
|
|
1044
|
-
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
1045
|
-
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1046
|
-
}
|
|
1047
|
-
return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.j() - n | 0, 0));
|
|
1048
|
-
}
|
|
1049
|
-
function plus_1(_this__u8e3s4, elements) {
|
|
1050
|
-
var result = ArrayList_init_$Create$_0(_this__u8e3s4.j() + elements.length | 0);
|
|
1051
|
-
result.p(_this__u8e3s4);
|
|
1052
|
-
addAll_0(result, elements);
|
|
1053
|
-
return result;
|
|
1054
|
-
}
|
|
1055
1030
|
function take(_this__u8e3s4, n) {
|
|
1056
1031
|
// Inline function 'kotlin.require' call
|
|
1057
1032
|
// Inline function 'kotlin.contracts.contract' call
|
|
@@ -1080,6 +1055,31 @@ function take(_this__u8e3s4, n) {
|
|
|
1080
1055
|
}
|
|
1081
1056
|
return optimizeReadOnlyList(list);
|
|
1082
1057
|
}
|
|
1058
|
+
function sum(_this__u8e3s4) {
|
|
1059
|
+
var sum = 0;
|
|
1060
|
+
var tmp0_iterator = _this__u8e3s4.g();
|
|
1061
|
+
while (tmp0_iterator.h()) {
|
|
1062
|
+
var element = tmp0_iterator.i();
|
|
1063
|
+
sum = sum + element | 0;
|
|
1064
|
+
}
|
|
1065
|
+
return sum;
|
|
1066
|
+
}
|
|
1067
|
+
function dropLast(_this__u8e3s4, n) {
|
|
1068
|
+
// Inline function 'kotlin.require' call
|
|
1069
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1070
|
+
if (!(n >= 0)) {
|
|
1071
|
+
// Inline function 'kotlin.collections.dropLast.<anonymous>' call
|
|
1072
|
+
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
1073
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1074
|
+
}
|
|
1075
|
+
return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.j() - n | 0, 0));
|
|
1076
|
+
}
|
|
1077
|
+
function plus_1(_this__u8e3s4, elements) {
|
|
1078
|
+
var result = ArrayList_init_$Create$_0(_this__u8e3s4.j() + elements.length | 0);
|
|
1079
|
+
result.p(_this__u8e3s4);
|
|
1080
|
+
addAll_0(result, elements);
|
|
1081
|
+
return result;
|
|
1082
|
+
}
|
|
1083
1083
|
function minus(_this__u8e3s4, element) {
|
|
1084
1084
|
var result = ArrayList_init_$Create$_0(collectionSizeOrDefault(_this__u8e3s4, 10));
|
|
1085
1085
|
var removed = false;
|
|
@@ -10544,16 +10544,6 @@ function splitToSequence(_this__u8e3s4, delimiters, ignoreCase, limit) {
|
|
|
10544
10544
|
var tmp = rangesDelimitedBy(_this__u8e3s4, delimiters, VOID, ignoreCase, limit);
|
|
10545
10545
|
return map(tmp, splitToSequence$lambda(_this__u8e3s4));
|
|
10546
10546
|
}
|
|
10547
|
-
function toBooleanStrictOrNull(_this__u8e3s4) {
|
|
10548
|
-
switch (_this__u8e3s4) {
|
|
10549
|
-
case 'true':
|
|
10550
|
-
return true;
|
|
10551
|
-
case 'false':
|
|
10552
|
-
return false;
|
|
10553
|
-
default:
|
|
10554
|
-
return null;
|
|
10555
|
-
}
|
|
10556
|
-
}
|
|
10557
10547
|
function substringBefore_0(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
10558
10548
|
missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
|
|
10559
10549
|
var index = indexOf_5(_this__u8e3s4, delimiter);
|
|
@@ -10582,6 +10572,16 @@ function substringAfter(_this__u8e3s4, delimiter, missingDelimiterValue) {
|
|
|
10582
10572
|
}
|
|
10583
10573
|
return tmp;
|
|
10584
10574
|
}
|
|
10575
|
+
function toBooleanStrictOrNull(_this__u8e3s4) {
|
|
10576
|
+
switch (_this__u8e3s4) {
|
|
10577
|
+
case 'true':
|
|
10578
|
+
return true;
|
|
10579
|
+
case 'false':
|
|
10580
|
+
return false;
|
|
10581
|
+
default:
|
|
10582
|
+
return null;
|
|
10583
|
+
}
|
|
10584
|
+
}
|
|
10585
10585
|
function removePrefix(_this__u8e3s4, prefix) {
|
|
10586
10586
|
if (startsWith_2(_this__u8e3s4, prefix)) {
|
|
10587
10587
|
// Inline function 'kotlin.text.substring' call
|
|
@@ -13174,6 +13174,7 @@ export {
|
|
|
13174
13174
|
listOf as listOfvhqybd2zx248,
|
|
13175
13175
|
listOf_0 as listOf1jh22dvmctj1r,
|
|
13176
13176
|
mapCapacity as mapCapacity1h45rc3eh9p2l,
|
|
13177
|
+
mapOf as mapOf2zpbbmyqk8xpf,
|
|
13177
13178
|
mapOf_0 as mapOf1xd03cq9cnmy8,
|
|
13178
13179
|
minus as minus1djrl64vbav3y,
|
|
13179
13180
|
minus_0 as minus165a8u1e0x1lu,
|