@flock/wirespec 0.16.7 → 0.16.9

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 (40) hide show
  1. package/arrow-arrow-core.mjs +306 -61
  2. package/arrow-arrow-core.mjs.map +1 -1
  3. package/clikt-clikt.mjs +1165 -1165
  4. package/colormath-root-colormath.mjs +425 -425
  5. package/kotlin-kotlin-stdlib.mjs +34 -34
  6. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  7. package/kotlin-openapi-bindings.mjs +4762 -4762
  8. package/kotlin-rgxgen.mjs +1769 -1769
  9. package/kotlinx-io-kotlinx-io-core.mjs +380 -380
  10. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1645 -1645
  11. package/kotlinx-serialization-kotlinx-serialization-core.mjs.map +1 -1
  12. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1307 -1307
  13. package/markdown.mjs +1871 -1871
  14. package/mordant-mordant.mjs +1642 -1642
  15. package/package.json +1 -1
  16. package/wirespec-src-compiler-core.mjs +2649 -2499
  17. package/wirespec-src-compiler-core.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-java.mjs +691 -603
  19. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-kotlin.mjs +626 -576
  21. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-python.mjs +790 -740
  23. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-typescript.mjs +291 -287
  25. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-wirespec.mjs +260 -224
  27. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  28. package/wirespec-src-compiler-lib.mjs +342 -340
  29. package/wirespec-src-compiler-lib.mjs.map +1 -1
  30. package/wirespec-src-converter-avro.mjs +587 -562
  31. package/wirespec-src-converter-avro.mjs.map +1 -1
  32. package/wirespec-src-converter-openapi.mjs +747 -737
  33. package/wirespec-src-converter-openapi.mjs.map +1 -1
  34. package/wirespec-src-plugin-arguments.mjs +168 -167
  35. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  36. package/wirespec-src-plugin-cli.mjs +82 -81
  37. package/wirespec-src-plugin-cli.mjs.map +1 -1
  38. package/wirespec-src-plugin-npm.mjs +30 -29
  39. package/wirespec-src-plugin-npm.mjs.map +1 -1
  40. package/wirespec-src-tools-generator.mjs +27 -27
@@ -37,6 +37,11 @@ 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
+ }
40
45
  if (typeof Math.clz32 === 'undefined') {
41
46
  Math.clz32 = function (log, LN2) {
42
47
  return function (x) {
@@ -48,11 +53,6 @@ if (typeof Math.clz32 === 'undefined') {
48
53
  };
49
54
  }(Math.log, Math.LN2);
50
55
  }
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, MutableIterable, Collection]);
104
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
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, MutableIterable, Collection]);
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]);
@@ -1003,16 +1003,6 @@ function zip(_this__u8e3s4, other) {
1003
1003
  function singleOrNull(_this__u8e3s4) {
1004
1004
  return _this__u8e3s4.j() === 1 ? _this__u8e3s4.k(0) : null;
1005
1005
  }
1006
- function dropLast(_this__u8e3s4, n) {
1007
- // Inline function 'kotlin.require' call
1008
- // Inline function 'kotlin.contracts.contract' call
1009
- if (!(n >= 0)) {
1010
- // Inline function 'kotlin.collections.dropLast.<anonymous>' call
1011
- var message = 'Requested element count ' + n + ' is less than zero.';
1012
- throw IllegalArgumentException_init_$Create$_0(toString_1(message));
1013
- }
1014
- return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.j() - n | 0, 0));
1015
- }
1016
1006
  function zipWithNext(_this__u8e3s4) {
1017
1007
  var tmp$ret$0;
1018
1008
  $l$block: {
@@ -1046,6 +1036,16 @@ function sum(_this__u8e3s4) {
1046
1036
  }
1047
1037
  return sum;
1048
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
1049
  function plus_1(_this__u8e3s4, elements) {
1050
1050
  var result = ArrayList_init_$Create$_0(_this__u8e3s4.j() + elements.length | 0);
1051
1051
  result.p(_this__u8e3s4);
@@ -1463,16 +1463,6 @@ function single_2(_this__u8e3s4) {
1463
1463
  }
1464
1464
  return tmp;
1465
1465
  }
1466
- function dropLast_0(_this__u8e3s4, n) {
1467
- // Inline function 'kotlin.require' call
1468
- // Inline function 'kotlin.contracts.contract' call
1469
- if (!(n >= 0)) {
1470
- // Inline function 'kotlin.text.dropLast.<anonymous>' call
1471
- var message = 'Requested character count ' + n + ' is less than zero.';
1472
- throw IllegalArgumentException_init_$Create$_0(toString_1(message));
1473
- }
1474
- return take_1(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.length - n | 0, 0));
1475
- }
1476
1466
  function asSequence_1(_this__u8e3s4) {
1477
1467
  var tmp;
1478
1468
  if (typeof _this__u8e3s4 === 'string') {
@@ -1496,6 +1486,16 @@ function firstOrNull_0(_this__u8e3s4) {
1496
1486
  }
1497
1487
  return tmp;
1498
1488
  }
1489
+ function dropLast_0(_this__u8e3s4, n) {
1490
+ // Inline function 'kotlin.require' call
1491
+ // Inline function 'kotlin.contracts.contract' call
1492
+ if (!(n >= 0)) {
1493
+ // Inline function 'kotlin.text.dropLast.<anonymous>' call
1494
+ var message = 'Requested character count ' + n + ' is less than zero.';
1495
+ throw IllegalArgumentException_init_$Create$_0(toString_1(message));
1496
+ }
1497
+ return take_1(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.length - n | 0, 0));
1498
+ }
1499
1499
  function toList_3(_this__u8e3s4) {
1500
1500
  switch (charSequenceLength(_this__u8e3s4)) {
1501
1501
  case 0:
@@ -8273,12 +8273,12 @@ function throwCountOverflow() {
8273
8273
  function throwIndexOverflow() {
8274
8274
  throw ArithmeticException_init_$Create$_0('Index overflow has happened.');
8275
8275
  }
8276
- function listOfNotNull(element) {
8277
- return !(element == null) ? listOf(element) : emptyList();
8278
- }
8279
- function listOfNotNull_0(elements) {
8276
+ function listOfNotNull(elements) {
8280
8277
  return filterNotNull(elements);
8281
8278
  }
8279
+ function listOfNotNull_0(element) {
8280
+ return !(element == null) ? listOf(element) : emptyList();
8281
+ }
8282
8282
  function binarySearch(_this__u8e3s4, element, fromIndex, toIndex) {
8283
8283
  fromIndex = fromIndex === VOID ? 0 : fromIndex;
8284
8284
  toIndex = toIndex === VOID ? _this__u8e3s4.j() : toIndex;
@@ -13166,8 +13166,8 @@ export {
13166
13166
  lastOrNull_0 as lastOrNullxgbdyo3mdsps,
13167
13167
  last_0 as last1vo29oleiqj36,
13168
13168
  last as lastrbvf878nq2vw,
13169
- listOfNotNull as listOfNotNull1v4ggfackvuny,
13170
- listOfNotNull_0 as listOfNotNull2woi2boe01ub4,
13169
+ listOfNotNull_0 as listOfNotNull1v4ggfackvuny,
13170
+ listOfNotNull as listOfNotNull2woi2boe01ub4,
13171
13171
  listOf as listOfvhqybd2zx248,
13172
13172
  listOf_0 as listOf1jh22dvmctj1r,
13173
13173
  mapCapacity as mapCapacity1h45rc3eh9p2l,