@flock/wirespec 0.22.4 → 0.22.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.
Files changed (43) hide show
  1. package/arrow-arrow-core.mjs +5 -0
  2. package/arrow-arrow-core.mjs.map +1 -1
  3. package/clikt-clikt-mordant.mjs +79 -79
  4. package/clikt-clikt.mjs +1335 -1335
  5. package/colormath-root-colormath.mjs +433 -433
  6. package/kotlin-kotlin-stdlib.mjs +114 -50
  7. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  8. package/kotlin-openapi-bindings.mjs +10209 -10209
  9. package/kotlin-rgxgen.mjs +1760 -1760
  10. package/kotlinx-io-kotlinx-io-core.mjs +404 -404
  11. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1802 -1802
  12. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1503 -1503
  13. package/mordant-mordant.mjs +1202 -1202
  14. package/package.json +1 -1
  15. package/wirespec-src-compiler-core.mjs +2897 -2620
  16. package/wirespec-src-compiler-core.mjs.map +1 -1
  17. package/wirespec-src-compiler-emitters-java.mjs +106 -106
  18. package/wirespec-src-compiler-emitters-kotlin.mjs +136 -116
  19. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-python.mjs +84 -84
  21. package/wirespec-src-compiler-emitters-rust.mjs +209 -209
  22. package/wirespec-src-compiler-emitters-scala.mjs +85 -85
  23. package/wirespec-src-compiler-emitters-typescript.mjs +108 -108
  24. package/wirespec-src-compiler-emitters-wirespec.mjs +78 -78
  25. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  26. package/wirespec-src-compiler-lib.mjs +194 -194
  27. package/wirespec-src-converter-asyncapi.mjs +532 -532
  28. package/wirespec-src-converter-avro.mjs +566 -510
  29. package/wirespec-src-converter-avro.mjs.map +1 -1
  30. package/wirespec-src-converter-common.mjs +11 -11
  31. package/wirespec-src-converter-graphql.mjs +936 -936
  32. package/wirespec-src-converter-openapi.mjs +435 -435
  33. package/wirespec-src-ide-lsp.mjs +1358 -1358
  34. package/wirespec-src-plugin-arguments.mjs +413 -214
  35. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  36. package/wirespec-src-plugin-cli.mjs +135 -99
  37. package/wirespec-src-plugin-cli.mjs.map +1 -1
  38. package/wirespec-src-plugin-extensions.mjs +4357 -0
  39. package/wirespec-src-plugin-extensions.mjs.map +1 -0
  40. package/wirespec-src-plugin-npm.d.mts +43 -1
  41. package/wirespec-src-plugin-npm.mjs +230 -54
  42. package/wirespec-src-plugin-npm.mjs.map +1 -1
  43. package/wirespec-src-tools-generator.mjs +13 -13
@@ -1424,6 +1424,23 @@ function joinToString_1(_this__u8e3s4, separator, prefix, postfix, limit, trunca
1424
1424
  function filter(_this__u8e3s4, predicate) {
1425
1425
  return new FilteringSequence(_this__u8e3s4, true, predicate);
1426
1426
  }
1427
+ function toSet_1(_this__u8e3s4) {
1428
+ var it = _this__u8e3s4.t();
1429
+ if (!it.u())
1430
+ return emptySet();
1431
+ var element = it.v();
1432
+ if (!it.u())
1433
+ return setOf(element);
1434
+ var dst = LinkedHashSet_init_$Create$();
1435
+ dst.x(element);
1436
+ while (it.u()) {
1437
+ dst.x(it.v());
1438
+ }
1439
+ return dst;
1440
+ }
1441
+ function flatMap(_this__u8e3s4, transform) {
1442
+ return new FlatteningSequence(_this__u8e3s4, transform, Iterable$iterator$ref());
1443
+ }
1427
1444
  function last_2(_this__u8e3s4) {
1428
1445
  var iterator = _this__u8e3s4.t();
1429
1446
  if (!iterator.u())
@@ -1439,9 +1456,6 @@ function plus_2(_this__u8e3s4, elements) {
1439
1456
  function mapNotNull(_this__u8e3s4, transform) {
1440
1457
  return filterNotNull_0(new TransformingSequence(_this__u8e3s4, transform));
1441
1458
  }
1442
- function flatMap(_this__u8e3s4, transform) {
1443
- return new FlatteningSequence(_this__u8e3s4, transform, Iterable$iterator$ref());
1444
- }
1445
1459
  function firstOrNull_0(_this__u8e3s4) {
1446
1460
  var iterator = _this__u8e3s4.t();
1447
1461
  if (!iterator.u())
@@ -1466,7 +1480,7 @@ function take_0(_this__u8e3s4, n) {
1466
1480
  tmp = emptySequence();
1467
1481
  } else {
1468
1482
  if (isInterface(_this__u8e3s4, DropTakeSequence)) {
1469
- tmp = _this__u8e3s4.v1(n);
1483
+ tmp = _this__u8e3s4.w1(n);
1470
1484
  } else {
1471
1485
  tmp = new TakeSequence(_this__u8e3s4, n);
1472
1486
  }
@@ -1524,10 +1538,10 @@ function onEach$lambda($action) {
1524
1538
  };
1525
1539
  }
1526
1540
  function asIterable$$inlined$Iterable$1_0($this_asIterable) {
1527
- this.w1_1 = $this_asIterable;
1541
+ this.x1_1 = $this_asIterable;
1528
1542
  }
1529
1543
  protoOf(asIterable$$inlined$Iterable$1_0).t = function () {
1530
- return this.w1_1.t();
1544
+ return this.x1_1.t();
1531
1545
  };
1532
1546
  function filterNotNull$lambda(it) {
1533
1547
  return it == null;
@@ -1549,7 +1563,7 @@ function minus_0(_this__u8e3s4, elements) {
1549
1563
  return destination;
1550
1564
  }
1551
1565
  var result = LinkedHashSet_init_$Create$_0(_this__u8e3s4);
1552
- result.x1(other);
1566
+ result.y1(other);
1553
1567
  return result;
1554
1568
  }
1555
1569
  function plus_3(_this__u8e3s4, element) {
@@ -3976,7 +3990,7 @@ protoOf(AbstractMutableCollection).g1 = function (elements) {
3976
3990
  }
3977
3991
  return modified;
3978
3992
  };
3979
- protoOf(AbstractMutableCollection).x1 = function (elements) {
3993
+ protoOf(AbstractMutableCollection).y1 = function (elements) {
3980
3994
  this.h4();
3981
3995
  var tmp = isInterface(this, MutableIterable) ? this : THROW_CCE();
3982
3996
  return removeAll_1(tmp, AbstractMutableCollection$removeAll$lambda(elements));
@@ -4091,7 +4105,7 @@ protoOf(AbstractMutableList).z2 = function () {
4091
4105
  this.h4();
4092
4106
  this.b5(0, this.b1());
4093
4107
  };
4094
- protoOf(AbstractMutableList).x1 = function (elements) {
4108
+ protoOf(AbstractMutableList).y1 = function (elements) {
4095
4109
  this.h4();
4096
4110
  return removeAll_0(this, AbstractMutableList$removeAll$lambda(elements));
4097
4111
  };
@@ -4850,7 +4864,7 @@ protoOf(HashMapValuesDefault).h4 = function () {
4850
4864
  function HashSet_init_$Init$(map, $this) {
4851
4865
  AbstractMutableSet.call($this);
4852
4866
  HashSet.call($this);
4853
- $this.y1_1 = map;
4867
+ $this.v1_1 = map;
4854
4868
  return $this;
4855
4869
  }
4856
4870
  function HashSet_init_$Init$_0($this) {
@@ -4865,7 +4879,7 @@ function HashSet_init_$Init$_1(elements, $this) {
4865
4879
  var _iterator__ex2g4s = elements.t();
4866
4880
  while (_iterator__ex2g4s.u()) {
4867
4881
  var element = _iterator__ex2g4s.v();
4868
- $this.y1_1.v2(element, true);
4882
+ $this.v1_1.v2(element, true);
4869
4883
  }
4870
4884
  return $this;
4871
4885
  }
@@ -4884,22 +4898,22 @@ function HashSet_init_$Create$_1(initialCapacity) {
4884
4898
  return HashSet_init_$Init$_3(initialCapacity, objectCreate(protoOf(HashSet)));
4885
4899
  }
4886
4900
  protoOf(HashSet).x = function (element) {
4887
- return this.y1_1.v2(element, true) == null;
4901
+ return this.v1_1.v2(element, true) == null;
4888
4902
  };
4889
4903
  protoOf(HashSet).i1 = function (element) {
4890
- return this.y1_1.z5(element);
4904
+ return this.v1_1.z5(element);
4891
4905
  };
4892
4906
  protoOf(HashSet).r = function () {
4893
- return this.y1_1.b1() === 0;
4907
+ return this.v1_1.b1() === 0;
4894
4908
  };
4895
4909
  protoOf(HashSet).t = function () {
4896
- return this.y1_1.c6();
4910
+ return this.v1_1.c6();
4897
4911
  };
4898
4912
  protoOf(HashSet).y2 = function (element) {
4899
- return !(this.y1_1.w2(element) == null);
4913
+ return !(this.v1_1.w2(element) == null);
4900
4914
  };
4901
4915
  protoOf(HashSet).b1 = function () {
4902
- return this.y1_1.b1();
4916
+ return this.v1_1.b1();
4903
4917
  };
4904
4918
  function HashSet() {
4905
4919
  }
@@ -5621,11 +5635,11 @@ function EmptyHolder_getInstance_0() {
5621
5635
  return EmptyHolder_instance_0;
5622
5636
  }
5623
5637
  protoOf(LinkedHashSet).q5 = function () {
5624
- this.y1_1.l8();
5638
+ this.v1_1.l8();
5625
5639
  return this.b1() > 0 ? this : EmptyHolder_getInstance_0().u8_1;
5626
5640
  };
5627
5641
  protoOf(LinkedHashSet).h4 = function () {
5628
- return this.y1_1.d6();
5642
+ return this.v1_1.d6();
5629
5643
  };
5630
5644
  function LinkedHashSet() {
5631
5645
  }
@@ -8966,7 +8980,7 @@ function addAll_0(_this__u8e3s4, elements) {
8966
8980
  return _this__u8e3s4.g1(asList(elements));
8967
8981
  }
8968
8982
  function removeAll(_this__u8e3s4, elements) {
8969
- return _this__u8e3s4.x1(convertToListIfNotCollection(elements));
8983
+ return _this__u8e3s4.y1(convertToListIfNotCollection(elements));
8970
8984
  }
8971
8985
  function convertToListIfNotCollection(_this__u8e3s4) {
8972
8986
  var tmp;
@@ -9373,9 +9387,6 @@ function FilteringSequence(sequence, sendWhen, predicate) {
9373
9387
  protoOf(FilteringSequence).t = function () {
9374
9388
  return new FilteringSequence$iterator$1(this);
9375
9389
  };
9376
- function flatten_1(_this__u8e3s4) {
9377
- return flatten_2(_this__u8e3s4, flatten$lambda_0);
9378
- }
9379
9390
  function ensureItemIterator($this) {
9380
9391
  var itemIterator = $this.sg_1;
9381
9392
  if (!(itemIterator == null) && itemIterator.u()) {
@@ -9425,6 +9436,9 @@ function FlatteningSequence(sequence, transformer, iterator) {
9425
9436
  protoOf(FlatteningSequence).t = function () {
9426
9437
  return new FlatteningSequence$iterator$1(this);
9427
9438
  };
9439
+ function flatten_1(_this__u8e3s4) {
9440
+ return flatten_2(_this__u8e3s4, flatten$lambda_0);
9441
+ }
9428
9442
  function emptySequence() {
9429
9443
  return EmptySequence_instance;
9430
9444
  }
@@ -9452,7 +9466,7 @@ function TakeSequence(sequence, count) {
9452
9466
  throw IllegalArgumentException_init_$Create$_0(toString_1(message));
9453
9467
  }
9454
9468
  }
9455
- protoOf(TakeSequence).v1 = function (n) {
9469
+ protoOf(TakeSequence).w1 = function (n) {
9456
9470
  return n >= this.bh_1 ? this : new TakeSequence(this.ah_1, n);
9457
9471
  };
9458
9472
  protoOf(TakeSequence).t = function () {
@@ -9470,7 +9484,7 @@ function EmptySequence() {
9470
9484
  protoOf(EmptySequence).t = function () {
9471
9485
  return EmptyIterator_instance;
9472
9486
  };
9473
- protoOf(EmptySequence).v1 = function (n) {
9487
+ protoOf(EmptySequence).w1 = function (n) {
9474
9488
  return EmptySequence_instance;
9475
9489
  };
9476
9490
  var EmptySequence_instance;
@@ -9580,12 +9594,12 @@ function flatten$lambda_0(it) {
9580
9594
  function flatten$lambda_1(it) {
9581
9595
  return it;
9582
9596
  }
9583
- function emptySet() {
9584
- return EmptySet_getInstance();
9585
- }
9586
9597
  function setOf_0(elements) {
9587
9598
  return toSet(elements);
9588
9599
  }
9600
+ function emptySet() {
9601
+ return EmptySet_getInstance();
9602
+ }
9589
9603
  function hashSetOf(elements) {
9590
9604
  return toCollection(elements, HashSet_init_$Create$_1(mapCapacity(elements.length)));
9591
9605
  }
@@ -10617,6 +10631,32 @@ function contains_8(_this__u8e3s4, other, ignoreCase) {
10617
10631
  }
10618
10632
  return tmp;
10619
10633
  }
10634
+ function trim(_this__u8e3s4, chars) {
10635
+ // Inline function 'kotlin.text.trim' call
10636
+ // Inline function 'kotlin.text.trim' call
10637
+ var this_0 = isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE();
10638
+ var startIndex = 0;
10639
+ var endIndex = charSequenceLength(this_0) - 1 | 0;
10640
+ var startFound = false;
10641
+ $l$loop: while (startIndex <= endIndex) {
10642
+ var index = !startFound ? startIndex : endIndex;
10643
+ var it = charSequenceGet(this_0, index);
10644
+ var match = contains_1(chars, it);
10645
+ if (!startFound) {
10646
+ if (!match)
10647
+ startFound = true;
10648
+ else
10649
+ startIndex = startIndex + 1 | 0;
10650
+ } else {
10651
+ if (!match)
10652
+ break $l$loop;
10653
+ else
10654
+ endIndex = endIndex - 1 | 0;
10655
+ }
10656
+ }
10657
+ var tmp$ret$1 = charSequenceSubSequence(this_0, startIndex, endIndex + 1 | 0);
10658
+ return toString_1(tmp$ret$1);
10659
+ }
10620
10660
  function trimStart(_this__u8e3s4, chars) {
10621
10661
  // Inline function 'kotlin.text.trimStart' call
10622
10662
  var tmp0 = isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE();
@@ -10833,7 +10873,7 @@ function substringBefore_0(_this__u8e3s4, delimiter, missingDelimiterValue) {
10833
10873
  var index = indexOf_7(_this__u8e3s4, delimiter);
10834
10874
  return index === -1 ? missingDelimiterValue : substring(_this__u8e3s4, 0, index);
10835
10875
  }
10836
- function trim(_this__u8e3s4) {
10876
+ function trim_0(_this__u8e3s4) {
10837
10877
  // Inline function 'kotlin.text.trim' call
10838
10878
  var startIndex = 0;
10839
10879
  var endIndex = charSequenceLength(_this__u8e3s4) - 1 | 0;
@@ -10951,6 +10991,47 @@ function indexOf_8(_this__u8e3s4, other, startIndex, endIndex, ignoreCase, last)
10951
10991
  }
10952
10992
  return -1;
10953
10993
  }
10994
+ function trimStart_0(_this__u8e3s4) {
10995
+ var tmp$ret$0;
10996
+ $l$block: {
10997
+ // Inline function 'kotlin.text.trimStart' call
10998
+ var inductionVariable = 0;
10999
+ var last = charSequenceLength(_this__u8e3s4) - 1 | 0;
11000
+ if (inductionVariable <= last)
11001
+ do {
11002
+ var index = inductionVariable;
11003
+ inductionVariable = inductionVariable + 1 | 0;
11004
+ var p0 = charSequenceGet(_this__u8e3s4, index);
11005
+ if (!isWhitespace(p0)) {
11006
+ tmp$ret$0 = charSequenceSubSequence(_this__u8e3s4, index, charSequenceLength(_this__u8e3s4));
11007
+ break $l$block;
11008
+ }
11009
+ }
11010
+ while (inductionVariable <= last);
11011
+ tmp$ret$0 = '';
11012
+ }
11013
+ return tmp$ret$0;
11014
+ }
11015
+ function trimEnd_0(_this__u8e3s4) {
11016
+ var tmp$ret$0;
11017
+ $l$block: {
11018
+ // Inline function 'kotlin.text.trimEnd' call
11019
+ var inductionVariable = charSequenceLength(_this__u8e3s4) - 1 | 0;
11020
+ if (0 <= inductionVariable)
11021
+ do {
11022
+ var index = inductionVariable;
11023
+ inductionVariable = inductionVariable + -1 | 0;
11024
+ var p0 = charSequenceGet(_this__u8e3s4, index);
11025
+ if (!isWhitespace(p0)) {
11026
+ tmp$ret$0 = charSequenceSubSequence(_this__u8e3s4, 0, index + 1 | 0);
11027
+ break $l$block;
11028
+ }
11029
+ }
11030
+ while (0 <= inductionVariable);
11031
+ tmp$ret$0 = '';
11032
+ }
11033
+ return tmp$ret$0;
11034
+ }
10954
11035
  function padStart_0(_this__u8e3s4, length, padChar) {
10955
11036
  padChar = padChar === VOID ? _Char___init__impl__6a9atx(32) : padChar;
10956
11037
  if (length < 0)
@@ -11059,26 +11140,6 @@ function indexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
11059
11140
  while (!(index === last));
11060
11141
  return -1;
11061
11142
  }
11062
- function trimEnd_0(_this__u8e3s4) {
11063
- var tmp$ret$0;
11064
- $l$block: {
11065
- // Inline function 'kotlin.text.trimEnd' call
11066
- var inductionVariable = charSequenceLength(_this__u8e3s4) - 1 | 0;
11067
- if (0 <= inductionVariable)
11068
- do {
11069
- var index = inductionVariable;
11070
- inductionVariable = inductionVariable + -1 | 0;
11071
- var p0 = charSequenceGet(_this__u8e3s4, index);
11072
- if (!isWhitespace(p0)) {
11073
- tmp$ret$0 = charSequenceSubSequence(_this__u8e3s4, 0, index + 1 | 0);
11074
- break $l$block;
11075
- }
11076
- }
11077
- while (0 <= inductionVariable);
11078
- tmp$ret$0 = '';
11079
- }
11080
- return tmp$ret$0;
11081
- }
11082
11143
  function removeSurrounding_0(_this__u8e3s4, prefix, suffix) {
11083
11144
  if (_this__u8e3s4.length >= (charSequenceLength(prefix) + charSequenceLength(suffix) | 0) && startsWith_2(_this__u8e3s4, prefix) && endsWith_1(_this__u8e3s4, suffix)) {
11084
11145
  return substring(_this__u8e3s4, charSequenceLength(prefix), _this__u8e3s4.length - charSequenceLength(suffix) | 0);
@@ -14186,6 +14247,7 @@ export {
14186
14247
  sequenceOf as sequenceOfdrc6uefhtiet,
14187
14248
  sequence as sequence2vgswtrxvqoa7,
14188
14249
  toList_2 as toListx6x8nvfmvvht,
14250
+ toSet_1 as toSet2morh2kqexfa2,
14189
14251
  StringBuilder as StringBuildermazzzhj6kkai,
14190
14252
  asSequence_2 as asSequence3lsvgkvyzox0q,
14191
14253
  chunked as chunked1r6ubl9km7ic5,
@@ -14264,8 +14326,10 @@ export {
14264
14326
  trimEnd as trimEndvvzjdhan75g,
14265
14327
  trimIndent as trimIndent1qytc1wvt8suh,
14266
14328
  trimMargin as trimMarginhyd3fsmh8iev,
14329
+ trimStart_0 as trimStart5ewg8zf6cs5u,
14267
14330
  trimStart as trimStart1mkod6gyztuyy,
14268
- trim as trim11nh7r46at6sx,
14331
+ trim as trim6jpmwojjgb3l,
14332
+ trim_0 as trim11nh7r46at6sx,
14269
14333
  uppercaseChar as uppercaseChar6lahngw3wvwg,
14270
14334
  Duration as Duration5ynfiptaqcrg,
14271
14335
  Char as Char19o2r8palgjof,