@flock/wirespec 0.16.4 → 0.16.6

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 (38) hide show
  1. package/clikt-clikt.mjs +1148 -1148
  2. package/colormath-root-colormath.mjs +418 -418
  3. package/kotlin-kotlin-stdlib.mjs +29 -29
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-rgxgen.mjs +1766 -1766
  6. package/kotlinx-io-kotlinx-io-core.mjs +373 -373
  7. package/markdown.mjs +1829 -1829
  8. package/mordant-mordant.mjs +1582 -1582
  9. package/package.json +5 -1
  10. package/wirespec-fetch.mjs +3 -2
  11. package/wirespec-serialization.d.ts +3 -0
  12. package/wirespec-serialization.mjs +17 -0
  13. package/wirespec-src-compiler-core.mjs +2938 -6444
  14. package/wirespec-src-compiler-core.mjs.map +1 -1
  15. package/wirespec-src-compiler-emitters-java.mjs +1003 -0
  16. package/wirespec-src-compiler-emitters-java.mjs.map +1 -0
  17. package/wirespec-src-compiler-emitters-kotlin.mjs +844 -0
  18. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -0
  19. package/wirespec-src-compiler-emitters-python.mjs +1004 -0
  20. package/wirespec-src-compiler-emitters-python.mjs.map +1 -0
  21. package/wirespec-src-compiler-emitters-typescript.mjs +958 -0
  22. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -0
  23. package/wirespec-src-compiler-emitters-wirespec.mjs +390 -0
  24. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -0
  25. package/wirespec-src-compiler-lib.mjs +314 -314
  26. package/wirespec-src-compiler-lib.mjs.map +1 -1
  27. package/wirespec-src-converter-avro.mjs +292 -292
  28. package/wirespec-src-converter-avro.mjs.map +1 -1
  29. package/wirespec-src-converter-openapi.mjs +354 -354
  30. package/wirespec-src-converter-openapi.mjs.map +1 -1
  31. package/wirespec-src-plugin-arguments.mjs +331 -319
  32. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  33. package/wirespec-src-plugin-cli.mjs +87 -121
  34. package/wirespec-src-plugin-cli.mjs.map +1 -1
  35. package/wirespec-src-plugin-npm.d.ts +6 -2
  36. package/wirespec-src-plugin-npm.mjs +46 -28
  37. package/wirespec-src-plugin-npm.mjs.map +1 -1
  38. package/wirespec-src-tools-generator.mjs +25 -25
@@ -37,11 +37,6 @@ if (typeof Array.prototype.fill === 'undefined') {
37
37
  Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
38
38
  }
39
39
  });
40
- if (typeof Math.log2 === 'undefined') {
41
- Math.log2 = function (x) {
42
- return Math.log(x) * Math.LOG2E;
43
- };
44
- }
45
40
  if (typeof Math.clz32 === 'undefined') {
46
41
  Math.clz32 = function (log, LN2) {
47
42
  return function (x) {
@@ -53,6 +48,11 @@ if (typeof Math.clz32 === 'undefined') {
53
48
  };
54
49
  }(Math.log, Math.LN2);
55
50
  }
51
+ if (typeof Math.log2 === 'undefined') {
52
+ Math.log2 = function (x) {
53
+ return Math.log(x) * Math.LOG2E;
54
+ };
55
+ }
56
56
  if (typeof Math.log10 === 'undefined') {
57
57
  Math.log10 = function (x) {
58
58
  return Math.log(x) * Math.LOG10E;
@@ -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, Collection, MutableIterable]);
104
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
103
+ initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
104
+ initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
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, Collection, MutableIterable]);
124
+ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
125
125
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
126
126
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
127
127
  initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
@@ -10631,27 +10631,6 @@ function substringAfterLast(_this__u8e3s4, delimiter, missingDelimiterValue) {
10631
10631
  }
10632
10632
  return tmp;
10633
10633
  }
10634
- function trimStart_0(_this__u8e3s4) {
10635
- var tmp$ret$1;
10636
- $l$block: {
10637
- // Inline function 'kotlin.text.trimStart' call
10638
- var inductionVariable = 0;
10639
- var last = charSequenceLength(_this__u8e3s4) - 1 | 0;
10640
- if (inductionVariable <= last)
10641
- do {
10642
- var index = inductionVariable;
10643
- inductionVariable = inductionVariable + 1 | 0;
10644
- var p0 = charSequenceGet(_this__u8e3s4, index);
10645
- if (!isWhitespace(p0)) {
10646
- tmp$ret$1 = charSequenceSubSequence(_this__u8e3s4, index, charSequenceLength(_this__u8e3s4));
10647
- break $l$block;
10648
- }
10649
- }
10650
- while (inductionVariable <= last);
10651
- tmp$ret$1 = '';
10652
- }
10653
- return tmp$ret$1;
10654
- }
10655
10634
  function startsWith_2(_this__u8e3s4, prefix, ignoreCase) {
10656
10635
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;
10657
10636
  var tmp;
@@ -10695,6 +10674,27 @@ function lastIndexOf_0(_this__u8e3s4, char, startIndex, ignoreCase) {
10695
10674
  }
10696
10675
  return tmp;
10697
10676
  }
10677
+ function trimStart_0(_this__u8e3s4) {
10678
+ var tmp$ret$1;
10679
+ $l$block: {
10680
+ // Inline function 'kotlin.text.trimStart' call
10681
+ var inductionVariable = 0;
10682
+ var last = charSequenceLength(_this__u8e3s4) - 1 | 0;
10683
+ if (inductionVariable <= last)
10684
+ do {
10685
+ var index = inductionVariable;
10686
+ inductionVariable = inductionVariable + 1 | 0;
10687
+ var p0 = charSequenceGet(_this__u8e3s4, index);
10688
+ if (!isWhitespace(p0)) {
10689
+ tmp$ret$1 = charSequenceSubSequence(_this__u8e3s4, index, charSequenceLength(_this__u8e3s4));
10690
+ break $l$block;
10691
+ }
10692
+ }
10693
+ while (inductionVariable <= last);
10694
+ tmp$ret$1 = '';
10695
+ }
10696
+ return tmp$ret$1;
10697
+ }
10698
10698
  function lastIndexOfAny(_this__u8e3s4, chars, startIndex, ignoreCase) {
10699
10699
  startIndex = startIndex === VOID ? get_lastIndex_4(_this__u8e3s4) : startIndex;
10700
10700
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;