@flock/wirespec 0.20.2 → 0.21.1

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 +1329 -1329
  3. package/clikt-clikt.mjs.map +1 -1
  4. package/colormath-root-colormath.mjs +433 -433
  5. package/kotlin-kotlin-stdlib.mjs +15 -15
  6. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  7. package/kotlin-openapi-bindings.mjs +10144 -10144
  8. package/kotlin-rgxgen.mjs +1760 -1760
  9. package/kotlinx-io-kotlinx-io-core.mjs +404 -404
  10. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1810 -1810
  11. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1488 -1488
  12. package/mordant-mordant.mjs +1198 -1198
  13. package/package.json +1 -1
  14. package/wirespec-src-compiler-core.mjs +1652 -1139
  15. package/wirespec-src-compiler-core.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-java.mjs +206 -191
  17. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-kotlin.mjs +153 -138
  19. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-python.mjs +182 -153
  21. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-rust.mjs +439 -379
  23. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  24. package/wirespec-src-compiler-emitters-scala.mjs +175 -160
  25. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  26. package/wirespec-src-compiler-emitters-typescript.mjs +268 -224
  27. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  28. package/wirespec-src-compiler-emitters-wirespec.mjs +102 -81
  29. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  30. package/wirespec-src-compiler-ir.mjs +3704 -3619
  31. package/wirespec-src-compiler-ir.mjs.map +1 -1
  32. package/wirespec-src-compiler-lib.mjs +308 -227
  33. package/wirespec-src-compiler-lib.mjs.map +1 -1
  34. package/wirespec-src-converter-avro.mjs +503 -503
  35. package/wirespec-src-converter-openapi.mjs +581 -569
  36. package/wirespec-src-converter-openapi.mjs.map +1 -1
  37. package/wirespec-src-ide-lsp.mjs +1352 -1352
  38. package/wirespec-src-plugin-arguments.mjs +136 -136
  39. package/wirespec-src-plugin-cli.mjs +85 -85
  40. package/wirespec-src-plugin-npm.d.mts +15 -0
  41. package/wirespec-src-plugin-npm.mjs +26 -26
  42. package/wirespec-src-tools-generator.mjs +29 -24
  43. package/wirespec-src-tools-generator.mjs.map +1 -1
@@ -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;
@@ -103,8 +103,8 @@ initMetadataForInterface(KtMap, 'Map');
103
103
  initMetadataForInterface(KtSet, 'Set', VOID, VOID, [Collection]);
104
104
  initMetadataForInterface(KtMutableMap, 'MutableMap', VOID, VOID, [KtMap]);
105
105
  initMetadataForInterface(MutableIterable, 'MutableIterable');
106
- initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, Collection, MutableIterable]);
107
- initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, Collection, MutableIterable]);
106
+ initMetadataForInterface(KtMutableList, 'MutableList', VOID, VOID, [KtList, MutableIterable, Collection]);
107
+ initMetadataForInterface(KtMutableSet, 'MutableSet', VOID, VOID, [KtSet, MutableIterable, Collection]);
108
108
  initMetadataForCompanion(Companion_0);
109
109
  initMetadataForClass(Enum, 'Enum', VOID, VOID, [Comparable]);
110
110
  initMetadataForCompanion(Companion_1);
@@ -124,7 +124,7 @@ initMetadataForObject(OtherLowercase, 'OtherLowercase');
124
124
  initMetadataForInterface(Comparator, 'Comparator');
125
125
  initMetadataForObject(Unit, 'Unit');
126
126
  initMetadataForClass(AbstractCollection, 'AbstractCollection', VOID, VOID, [Collection]);
127
- initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, Collection, MutableIterable]);
127
+ initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [AbstractCollection, MutableIterable, Collection]);
128
128
  initMetadataForClass(IteratorImpl, 'IteratorImpl');
129
129
  initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
130
130
  initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [AbstractMutableCollection, KtMutableList]);
@@ -137,7 +137,7 @@ initMetadataForCompanion(Companion_2);
137
137
  initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [AbstractMutableList, KtMutableList, RandomAccess]);
138
138
  initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [AbstractMutableMap, KtMutableMap]);
139
139
  initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
140
- initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable, AbstractMutableCollection]);
140
+ initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [MutableIterable, Collection, AbstractMutableCollection]);
141
141
  initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtMutableSet, AbstractMutableSet]);
142
142
  initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
143
143
  initMetadataForClass(HashMapKeysDefault$iterator$1);