@flock/wirespec 0.18.1-RC.3 → 0.18.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/clikt-clikt-mordant.mjs +79 -79
  2. package/clikt-clikt.mjs +1265 -1265
  3. package/clikt-clikt.mjs.map +1 -1
  4. package/colormath-root-colormath.mjs +433 -433
  5. package/kotlin-kotlin-stdlib.mjs +40 -34
  6. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  7. package/kotlin-openapi-bindings.mjs +5407 -5405
  8. package/kotlin-openapi-bindings.mjs.map +1 -1
  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 +1701 -1701
  12. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1320 -1319
  13. package/kotlinx-serialization-kotlinx-serialization-json.mjs.map +1 -1
  14. package/mordant-mordant.mjs +1198 -1198
  15. package/package.json +1 -1
  16. package/wirespec-src-compiler-core.mjs +193 -206
  17. package/wirespec-src-compiler-core.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-java.mjs +758 -824
  19. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-kotlin.mjs +319 -426
  21. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-python.mjs +629 -758
  23. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-rust.mjs +1582 -1708
  25. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-scala.mjs +680 -635
  27. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-typescript.mjs +626 -609
  29. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  30. package/wirespec-src-compiler-emitters-wirespec.mjs +41 -41
  31. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  32. package/wirespec-src-compiler-ir.mjs +5428 -6057
  33. package/wirespec-src-compiler-ir.mjs.map +1 -1
  34. package/wirespec-src-compiler-lib.mjs +279 -279
  35. package/wirespec-src-converter-avro.mjs +559 -559
  36. package/wirespec-src-converter-avro.mjs.map +1 -1
  37. package/wirespec-src-converter-openapi.mjs +802 -404
  38. package/wirespec-src-converter-openapi.mjs.map +1 -1
  39. package/wirespec-src-plugin-arguments.mjs +144 -144
  40. package/wirespec-src-plugin-cli.mjs +87 -87
  41. package/wirespec-src-plugin-npm.mjs +44 -25
  42. package/wirespec-src-plugin-npm.mjs.map +1 -1
  43. package/wirespec-src-tools-generator.mjs +13 -13
@@ -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,17 @@ 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
+ 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;
@@ -101,9 +101,9 @@ initMetadataForInterface(Entry, 'Entry');
101
101
  initMetadataForInterface(KtMap, 'Map');
102
102
  initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
103
103
  initMetadataForInterface(MutableIterable, 'MutableIterable');
104
- initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
104
+ initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
105
105
  initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
106
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
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, [AbstractCollection, MutableIterable, Collection]);
126
+ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection, MutableIterable]);
127
127
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
128
128
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
129
129
  initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
@@ -136,7 +136,7 @@ initMetadataForCompanion(Companion_2);
136
136
  initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtMutableList, RandomAccess]);
137
137
  initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMutableMap]);
138
138
  initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
139
- initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection, AbstractMutableCollection]);
139
+ initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable, AbstractMutableCollection]);
140
140
  initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
141
141
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
142
142
  initMetadataForClass(HashMapKeysDefault$iterator$1);
@@ -877,6 +877,9 @@ function drop(_this__u8e3s4, n) {
877
877
  }
878
878
  return optimizeReadOnlyList(list);
879
879
  }
880
+ function lastOrNull(_this__u8e3s4) {
881
+ return _this__u8e3s4.r() ? null : _this__u8e3s4.f1(_this__u8e3s4.a1() - 1 | 0);
882
+ }
880
883
  function firstOrNull(_this__u8e3s4) {
881
884
  return _this__u8e3s4.r() ? null : _this__u8e3s4.f1(0);
882
885
  }
@@ -967,12 +970,17 @@ function minus(_this__u8e3s4, element) {
967
970
  }
968
971
  return result;
969
972
  }
970
- function lastOrNull(_this__u8e3s4) {
971
- return _this__u8e3s4.r() ? null : _this__u8e3s4.f1(_this__u8e3s4.a1() - 1 | 0);
973
+ function singleOrNull(_this__u8e3s4) {
974
+ return _this__u8e3s4.a1() === 1 ? _this__u8e3s4.f1(0) : null;
972
975
  }
973
976
  function toMutableList_0(_this__u8e3s4) {
974
977
  return ArrayList_init_$Create$_1(_this__u8e3s4);
975
978
  }
979
+ function none(_this__u8e3s4) {
980
+ if (isInterface(_this__u8e3s4, Collection))
981
+ return _this__u8e3s4.r();
982
+ return !_this__u8e3s4.t().u();
983
+ }
976
984
  function filterNotNull_0(_this__u8e3s4) {
977
985
  return filterNotNullTo_0(_this__u8e3s4, ArrayList_init_$Create$());
978
986
  }
@@ -1002,9 +1010,6 @@ function zipWithNext(_this__u8e3s4) {
1002
1010
  }
1003
1011
  return tmp$ret$0;
1004
1012
  }
1005
- function singleOrNull(_this__u8e3s4) {
1006
- return _this__u8e3s4.a1() === 1 ? _this__u8e3s4.f1(0) : null;
1007
- }
1008
1013
  function zip(_this__u8e3s4, other) {
1009
1014
  // Inline function 'kotlin.collections.zip' call
1010
1015
  var first = _this__u8e3s4.t();
@@ -10183,6 +10188,17 @@ function isBlank(_this__u8e3s4) {
10183
10188
  }
10184
10189
  return tmp$ret$1;
10185
10190
  }
10191
+ function substringAfterLast_0(_this__u8e3s4, delimiter, missingDelimiterValue) {
10192
+ missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
10193
+ var index = lastIndexOf(_this__u8e3s4, delimiter);
10194
+ return index === -1 ? missingDelimiterValue : substring(_this__u8e3s4, index + delimiter.length | 0, _this__u8e3s4.length);
10195
+ }
10196
+ function removePrefix(_this__u8e3s4, prefix) {
10197
+ if (startsWith_2(_this__u8e3s4, prefix)) {
10198
+ return substring_0(_this__u8e3s4, charSequenceLength(prefix));
10199
+ }
10200
+ return _this__u8e3s4;
10201
+ }
10186
10202
  function trimEnd(_this__u8e3s4, chars) {
10187
10203
  // Inline function 'kotlin.text.trimEnd' call
10188
10204
  var tmp0 = isCharSequence(_this__u8e3s4) ? _this__u8e3s4 : THROW_CCE();
@@ -10205,17 +10221,6 @@ function trimEnd(_this__u8e3s4, chars) {
10205
10221
  }
10206
10222
  return toString_1(tmp$ret$1);
10207
10223
  }
10208
- function substringAfterLast_0(_this__u8e3s4, delimiter, missingDelimiterValue) {
10209
- missingDelimiterValue = missingDelimiterValue === VOID ? _this__u8e3s4 : missingDelimiterValue;
10210
- var index = lastIndexOf(_this__u8e3s4, delimiter);
10211
- return index === -1 ? missingDelimiterValue : substring(_this__u8e3s4, index + delimiter.length | 0, _this__u8e3s4.length);
10212
- }
10213
- function removePrefix(_this__u8e3s4, prefix) {
10214
- if (startsWith_2(_this__u8e3s4, prefix)) {
10215
- return substring_0(_this__u8e3s4, charSequenceLength(prefix));
10216
- }
10217
- return _this__u8e3s4;
10218
- }
10219
10224
  function contains_7(_this__u8e3s4, other, ignoreCase) {
10220
10225
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;
10221
10226
  var tmp;
@@ -10226,12 +10231,12 @@ function contains_7(_this__u8e3s4, other, ignoreCase) {
10226
10231
  }
10227
10232
  return tmp;
10228
10233
  }
10229
- function lines(_this__u8e3s4) {
10230
- return toList_2(lineSequence(_this__u8e3s4));
10231
- }
10232
10234
  function removeSurrounding(_this__u8e3s4, delimiter) {
10233
10235
  return removeSurrounding_0(_this__u8e3s4, delimiter, delimiter);
10234
10236
  }
10237
+ function lines(_this__u8e3s4) {
10238
+ return toList_2(lineSequence(_this__u8e3s4));
10239
+ }
10235
10240
  function endsWith_0(_this__u8e3s4, char, ignoreCase) {
10236
10241
  ignoreCase = ignoreCase === VOID ? false : ignoreCase;
10237
10242
  return charSequenceLength(_this__u8e3s4) > 0 && equals_1(charSequenceGet(_this__u8e3s4, get_lastIndex_4(_this__u8e3s4)), char, ignoreCase);
@@ -13615,6 +13620,7 @@ export {
13615
13620
  minus_0 as minus165a8u1e0x1lu,
13616
13621
  mutableListOf as mutableListOf6oorvk2mtdmp,
13617
13622
  mutableMapOf as mutableMapOfk2y3zt1azl40,
13623
+ none as none369ray3udrc57,
13618
13624
  plus_4 as plus2m1vv33moko5t,
13619
13625
  plus_1 as plus1di085adi7f7m,
13620
13626
  plus_2 as plus1ogy4liedzq5j,