@flock/wirespec 0.22.8 → 0.23.0

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.
Files changed (34) hide show
  1. package/clikt-clikt-mordant.mjs +39 -39
  2. package/colormath-root-colormath.mjs +433 -433
  3. package/kotlin-kotlin-stdlib.mjs +113 -80
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-openapi-bindings.mjs +6384 -6384
  6. package/kotlin-rgxgen.mjs +1756 -1756
  7. package/kotlinx-io-kotlinx-io-core.mjs +404 -404
  8. package/mordant-mordant.mjs +1202 -1202
  9. package/package.json +1 -1
  10. package/wirespec-src-compiler-core.mjs +552 -543
  11. package/wirespec-src-compiler-core.mjs.map +1 -1
  12. package/wirespec-src-compiler-emitters-java.mjs +45 -45
  13. package/wirespec-src-compiler-emitters-kotlin.mjs +39 -39
  14. package/wirespec-src-compiler-emitters-python.mjs +29 -29
  15. package/wirespec-src-compiler-emitters-rust.mjs +25 -25
  16. package/wirespec-src-compiler-emitters-scala.mjs +523 -37
  17. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-typescript.mjs +26 -26
  19. package/wirespec-src-compiler-emitters-wirespec.mjs +43 -43
  20. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  21. package/wirespec-src-converter-asyncapi.mjs +447 -447
  22. package/wirespec-src-converter-graphql.mjs +1500 -986
  23. package/wirespec-src-converter-graphql.mjs.map +1 -1
  24. package/wirespec-src-converter-openapi.mjs +332 -332
  25. package/wirespec-src-ide-lsp.mjs +767 -767
  26. package/wirespec-src-plugin-arguments.mjs +165 -154
  27. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  28. package/wirespec-src-plugin-cli.mjs +87 -87
  29. package/wirespec-src-plugin-extensions.mjs +2603 -694
  30. package/wirespec-src-plugin-extensions.mjs.map +1 -1
  31. package/wirespec-src-plugin-npm.d.mts +13 -9
  32. package/wirespec-src-plugin-npm.mjs +24 -14
  33. package/wirespec-src-plugin-npm.mjs.map +1 -1
  34. package/wirespec-src-tools-generator.mjs +2 -2
@@ -53,6 +53,12 @@ if (typeof Math.log2 === 'undefined') {
53
53
  return Math.log(x) * Math.LOG2E;
54
54
  };
55
55
  }
56
+ if (typeof String.prototype.startsWith === 'undefined') {
57
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
58
+ position = position || 0;
59
+ return this.lastIndexOf(searchString, position) === position;
60
+ }});
61
+ }
56
62
  if (typeof String.prototype.endsWith === 'undefined') {
57
63
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
58
64
  var subjectString = this.toString();
@@ -64,12 +70,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
64
70
  return lastIndex !== -1 && lastIndex === position;
65
71
  }});
66
72
  }
67
- if (typeof String.prototype.startsWith === 'undefined') {
68
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
69
- position = position || 0;
70
- return this.lastIndexOf(searchString, position) === position;
71
- }});
72
- }
73
73
  //endregion
74
74
  //region block: imports
75
75
  var imul_0 = Math.imul;
@@ -102,8 +102,8 @@ initMetadataForInterface(KtMap, 'Map');
102
102
  initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
103
103
  initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
104
104
  initMetadataForInterface(MutableIterable, 'MutableIterable');
105
- initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
106
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
105
+ initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
106
+ initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
107
107
  initMetadataForCompanion(Companion_0);
108
108
  initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
109
109
  initMetadataForCompanion(Companion_1);
@@ -123,7 +123,7 @@ initMetadataForObject(OtherLowercase, 'OtherLowercase');
123
123
  initMetadataForInterface(Comparator, 'Comparator');
124
124
  initMetadataForObject(Unit, 'Unit');
125
125
  initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
126
- initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [MutableIterable, Collection]);
126
+ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [Collection, MutableIterable]);
127
127
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
128
128
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
129
129
  initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [KtMutableList]);
@@ -136,7 +136,7 @@ initMetadataForCompanion(Companion_2);
136
136
  initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [KtMutableList, RandomAccess]);
137
137
  initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [KtMutableMap]);
138
138
  initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet]);
139
- initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection]);
139
+ initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable]);
140
140
  initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet]);
141
141
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
142
142
  initMetadataForClass(HashMapKeysDefault$iterator$1);
@@ -964,9 +964,60 @@ function single_0(_this__u8e3s4) {
964
964
  }
965
965
  return tmp;
966
966
  }
967
+ function withIndex_0(_this__u8e3s4) {
968
+ return new IndexingIterable(withIndex$lambda_0(_this__u8e3s4));
969
+ }
967
970
  function firstOrNull(_this__u8e3s4) {
968
971
  return _this__u8e3s4.r() ? null : _this__u8e3s4.b1(0);
969
972
  }
973
+ function min(_this__u8e3s4) {
974
+ var iterator = _this__u8e3s4.t();
975
+ if (!iterator.u())
976
+ throw NoSuchElementException_init_$Create$();
977
+ var min = iterator.v();
978
+ while (iterator.u()) {
979
+ var e = iterator.v();
980
+ if (compareTo(min, e) > 0)
981
+ min = e;
982
+ }
983
+ return min;
984
+ }
985
+ function sorted_0(_this__u8e3s4) {
986
+ if (isInterface(_this__u8e3s4, Collection)) {
987
+ if (_this__u8e3s4.c1() <= 1)
988
+ return toList_0(_this__u8e3s4);
989
+ // Inline function 'kotlin.collections.toTypedArray' call
990
+ var tmp = copyToArray(_this__u8e3s4);
991
+ // Inline function 'kotlin.apply' call
992
+ var this_0 = isArray(tmp) ? tmp : THROW_CCE();
993
+ sort(this_0);
994
+ return asList(this_0);
995
+ }
996
+ // Inline function 'kotlin.apply' call
997
+ var this_1 = toMutableList_0(_this__u8e3s4);
998
+ sort_0(this_1);
999
+ return this_1;
1000
+ }
1001
+ function zip(_this__u8e3s4, other) {
1002
+ // Inline function 'kotlin.collections.zip' call
1003
+ var first = _this__u8e3s4.t();
1004
+ var second = other.t();
1005
+ var tmp0 = collectionSizeOrDefault(_this__u8e3s4, 10);
1006
+ // Inline function 'kotlin.comparisons.minOf' call
1007
+ var b = collectionSizeOrDefault(other, 10);
1008
+ var tmp$ret$1 = Math.min(tmp0, b);
1009
+ var list = ArrayList_init_$Create$_0(tmp$ret$1);
1010
+ while (first.u() && second.u()) {
1011
+ var tmp0_0 = first.v();
1012
+ var t2 = second.v();
1013
+ var tmp$ret$2 = to(tmp0_0, t2);
1014
+ list.x(tmp$ret$2);
1015
+ }
1016
+ return list;
1017
+ }
1018
+ function singleOrNull(_this__u8e3s4) {
1019
+ return _this__u8e3s4.c1() === 1 ? _this__u8e3s4.b1(0) : null;
1020
+ }
970
1021
  function single_1(_this__u8e3s4) {
971
1022
  if (isInterface(_this__u8e3s4, KtList))
972
1023
  return single_0(_this__u8e3s4);
@@ -1063,28 +1114,18 @@ function toMutableSet(_this__u8e3s4) {
1063
1114
  }
1064
1115
  return tmp;
1065
1116
  }
1066
- function zip(_this__u8e3s4, other) {
1067
- // Inline function 'kotlin.collections.zip' call
1068
- var first = _this__u8e3s4.t();
1069
- var second = other.t();
1070
- var tmp0 = collectionSizeOrDefault(_this__u8e3s4, 10);
1071
- // Inline function 'kotlin.comparisons.minOf' call
1072
- var b = collectionSizeOrDefault(other, 10);
1073
- var tmp$ret$1 = Math.min(tmp0, b);
1074
- var list = ArrayList_init_$Create$_0(tmp$ret$1);
1075
- while (first.u() && second.u()) {
1076
- var tmp0_0 = first.v();
1077
- var t2 = second.v();
1078
- var tmp$ret$2 = to(tmp0_0, t2);
1079
- list.x(tmp$ret$2);
1117
+ function intersect(_this__u8e3s4, other) {
1118
+ var otherCollection = convertToListIfNotCollection(other);
1119
+ // Inline function 'kotlin.collections.mutableSetOf' call
1120
+ var set = LinkedHashSet_init_$Create$();
1121
+ var _iterator__ex2g4s = _this__u8e3s4.t();
1122
+ while (_iterator__ex2g4s.u()) {
1123
+ var e = _iterator__ex2g4s.v();
1124
+ if (otherCollection.i1(e)) {
1125
+ set.x(e);
1126
+ }
1080
1127
  }
1081
- return list;
1082
- }
1083
- function withIndex_0(_this__u8e3s4) {
1084
- return new IndexingIterable(withIndex$lambda_0(_this__u8e3s4));
1085
- }
1086
- function singleOrNull(_this__u8e3s4) {
1087
- return _this__u8e3s4.c1() === 1 ? _this__u8e3s4.b1(0) : null;
1128
+ return set;
1088
1129
  }
1089
1130
  function contains_6(_this__u8e3s4, element) {
1090
1131
  if (isInterface(_this__u8e3s4, Collection))
@@ -1240,19 +1281,6 @@ function minOrNull(_this__u8e3s4) {
1240
1281
  }
1241
1282
  return min;
1242
1283
  }
1243
- function intersect(_this__u8e3s4, other) {
1244
- var otherCollection = convertToListIfNotCollection(other);
1245
- // Inline function 'kotlin.collections.mutableSetOf' call
1246
- var set = LinkedHashSet_init_$Create$();
1247
- var _iterator__ex2g4s = _this__u8e3s4.t();
1248
- while (_iterator__ex2g4s.u()) {
1249
- var e = _iterator__ex2g4s.v();
1250
- if (otherCollection.i1(e)) {
1251
- set.x(e);
1252
- }
1253
- }
1254
- return set;
1255
- }
1256
1284
  function toCharArray(_this__u8e3s4) {
1257
1285
  var result = charArray(_this__u8e3s4.c1());
1258
1286
  var index = 0;
@@ -1425,6 +1453,15 @@ function joinToString_1(_this__u8e3s4, separator, prefix, postfix, limit, trunca
1425
1453
  function filter(_this__u8e3s4, predicate) {
1426
1454
  return new FilteringSequence(_this__u8e3s4, true, predicate);
1427
1455
  }
1456
+ function last_2(_this__u8e3s4) {
1457
+ var iterator = _this__u8e3s4.t();
1458
+ if (!iterator.u())
1459
+ throw NoSuchElementException_init_$Create$_0('Sequence is empty.');
1460
+ var last = iterator.v();
1461
+ while (iterator.u())
1462
+ last = iterator.v();
1463
+ return last;
1464
+ }
1428
1465
  function toSet_1(_this__u8e3s4) {
1429
1466
  var it = _this__u8e3s4.t();
1430
1467
  if (!it.u())
@@ -1442,15 +1479,6 @@ function toSet_1(_this__u8e3s4) {
1442
1479
  function flatMap(_this__u8e3s4, transform) {
1443
1480
  return new FlatteningSequence(_this__u8e3s4, transform, Iterable$iterator$ref());
1444
1481
  }
1445
- function last_2(_this__u8e3s4) {
1446
- var iterator = _this__u8e3s4.t();
1447
- if (!iterator.u())
1448
- throw NoSuchElementException_init_$Create$_0('Sequence is empty.');
1449
- var last = iterator.v();
1450
- while (iterator.u())
1451
- last = iterator.v();
1452
- return last;
1453
- }
1454
1482
  function plus_2(_this__u8e3s4, elements) {
1455
1483
  return flatten_1(sequenceOf_0([_this__u8e3s4, elements]));
1456
1484
  }
@@ -3481,6 +3509,11 @@ function copyOf_7(_this__u8e3s4, newSize) {
3481
3509
  function contentEquals_0(_this__u8e3s4, other) {
3482
3510
  return contentEqualsInternal(_this__u8e3s4, other);
3483
3511
  }
3512
+ function sort(_this__u8e3s4) {
3513
+ if (_this__u8e3s4.length > 1) {
3514
+ sortArray(_this__u8e3s4);
3515
+ }
3516
+ }
3484
3517
  function sortWith(_this__u8e3s4, comparator) {
3485
3518
  if (_this__u8e3s4.length > 1) {
3486
3519
  sortArrayWith(_this__u8e3s4, comparator);
@@ -3496,11 +3529,6 @@ function fill(_this__u8e3s4, element, fromIndex, toIndex) {
3496
3529
  // Inline function 'kotlin.js.asDynamic' call
3497
3530
  _this__u8e3s4.fill(element_0, fromIndex, toIndex);
3498
3531
  }
3499
- function sort(_this__u8e3s4) {
3500
- if (_this__u8e3s4.length > 1) {
3501
- sortArray(_this__u8e3s4);
3502
- }
3503
- }
3504
3532
  function toTypedArray(_this__u8e3s4) {
3505
3533
  return [].slice.call(_this__u8e3s4);
3506
3534
  }
@@ -3918,6 +3946,9 @@ function checkIndexOverflow(index) {
3918
3946
  }
3919
3947
  return index;
3920
3948
  }
3949
+ function sort_0(_this__u8e3s4) {
3950
+ collectionsSort(_this__u8e3s4, naturalOrder());
3951
+ }
3921
3952
  function checkCountOverflow(count) {
3922
3953
  if (count < 0) {
3923
3954
  throwCountOverflow();
@@ -4470,6 +4501,17 @@ protoOf(ArrayList).i4 = function () {
4470
4501
  throw UnsupportedOperationException_init_$Create$();
4471
4502
  };
4472
4503
  var _stableSortingIsSupported;
4504
+ function sortArray(array) {
4505
+ if (getStableSortingIsSupported()) {
4506
+ var comparison = sortArray$lambda;
4507
+ // Inline function 'kotlin.js.asDynamic' call
4508
+ array.sort(comparison);
4509
+ } else {
4510
+ // Inline function 'kotlin.js.unsafeCast' call
4511
+ // Inline function 'kotlin.js.asDynamic' call
4512
+ mergeSort(array, 0, get_lastIndex_1(array), naturalOrder());
4513
+ }
4514
+ }
4473
4515
  function sortArrayWith(array, comparator) {
4474
4516
  if (getStableSortingIsSupported()) {
4475
4517
  var comparison = sortArrayWith$lambda(comparator);
@@ -4573,16 +4615,8 @@ function mergeSort_0(array, buffer, start, end, comparator) {
4573
4615
  while (!(i === end));
4574
4616
  return target;
4575
4617
  }
4576
- function sortArray(array) {
4577
- if (getStableSortingIsSupported()) {
4578
- var comparison = sortArray$lambda;
4579
- // Inline function 'kotlin.js.asDynamic' call
4580
- array.sort(comparison);
4581
- } else {
4582
- // Inline function 'kotlin.js.unsafeCast' call
4583
- // Inline function 'kotlin.js.asDynamic' call
4584
- mergeSort(array, 0, get_lastIndex_1(array), naturalOrder());
4585
- }
4618
+ function sortArray$lambda(a, b) {
4619
+ return compareTo(a, b);
4586
4620
  }
4587
4621
  function sortArrayWith$lambda($comparator) {
4588
4622
  return function (a, b) {
@@ -4592,9 +4626,6 @@ function sortArrayWith$lambda($comparator) {
4592
4626
  function getStableSortingIsSupported$lambda(a, b) {
4593
4627
  return (a & 3) - (b & 3) | 0;
4594
4628
  }
4595
- function sortArray$lambda(a, b) {
4596
- return compareTo(a, b);
4597
- }
4598
4629
  function HashMap_init_$Init$(internalMap, $this) {
4599
4630
  AbstractMutableMap.call($this);
4600
4631
  HashMap.call($this);
@@ -8530,12 +8561,12 @@ function listOfNotNull(element) {
8530
8561
  function listOfNotNull_0(elements) {
8531
8562
  return filterNotNull(elements);
8532
8563
  }
8533
- function get_lastIndex_3(_this__u8e3s4) {
8534
- return _this__u8e3s4.c1() - 1 | 0;
8535
- }
8536
8564
  function get_indices_1(_this__u8e3s4) {
8537
8565
  return numberRangeToNumber(0, _this__u8e3s4.c1() - 1 | 0);
8538
8566
  }
8567
+ function get_lastIndex_3(_this__u8e3s4) {
8568
+ return _this__u8e3s4.c1() - 1 | 0;
8569
+ }
8539
8570
  function optimizeReadOnlyList(_this__u8e3s4) {
8540
8571
  switch (_this__u8e3s4.c1()) {
8541
8572
  case 0:
@@ -8996,12 +9027,6 @@ function addAll(_this__u8e3s4, elements) {
8996
9027
  return result;
8997
9028
  }
8998
9029
  }
8999
- function addAll_0(_this__u8e3s4, elements) {
9000
- return _this__u8e3s4.g1(asList(elements));
9001
- }
9002
- function removeAll(_this__u8e3s4, elements) {
9003
- return _this__u8e3s4.y1(convertToListIfNotCollection(elements));
9004
- }
9005
9030
  function convertToListIfNotCollection(_this__u8e3s4) {
9006
9031
  var tmp;
9007
9032
  if (isInterface(_this__u8e3s4, Collection)) {
@@ -9011,6 +9036,12 @@ function convertToListIfNotCollection(_this__u8e3s4) {
9011
9036
  }
9012
9037
  return tmp;
9013
9038
  }
9039
+ function addAll_0(_this__u8e3s4, elements) {
9040
+ return _this__u8e3s4.g1(asList(elements));
9041
+ }
9042
+ function removeAll(_this__u8e3s4, elements) {
9043
+ return _this__u8e3s4.y1(convertToListIfNotCollection(elements));
9044
+ }
9014
9045
  function removeAll_0(_this__u8e3s4, predicate) {
9015
9046
  return filterInPlace(_this__u8e3s4, predicate, true);
9016
9047
  }
@@ -14116,6 +14147,7 @@ export {
14116
14147
  minus_2 as minus1f3bieyodk5vw,
14117
14148
  minus as minus1djrl64vbav3y,
14118
14149
  minus_0 as minus165a8u1e0x1lu,
14150
+ min as minjeab1ybpajdx,
14119
14151
  mutableListOf as mutableListOf6oorvk2mtdmp,
14120
14152
  mutableMapOf as mutableMapOfk2y3zt1azl40,
14121
14153
  none as none369ray3udrc57,
@@ -14136,6 +14168,7 @@ export {
14136
14168
  sortWith_0 as sortWith4fnm6b3vw03s,
14137
14169
  sortedWith as sortedWith2csnbbb21k0lg,
14138
14170
  sorted as sorted36owlv5kvgyz2,
14171
+ sorted_0 as sorted354mfsiv4s7x5,
14139
14172
  sum as sum1ib1hqt64m6qf,
14140
14173
  takeLast as takeLasttm5u17ojwaaq,
14141
14174
  take as take3onnpy6q7ctcz,