@flock/wirespec 0.16.14 → 0.17.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 (31) hide show
  1. package/clikt-clikt.mjs +1166 -1166
  2. package/colormath-root-colormath.mjs +425 -425
  3. package/kotlin-kotlin-stdlib.mjs +20 -16
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-rgxgen.mjs +1767 -1767
  6. package/kotlinx-io-kotlinx-io-core.mjs +380 -380
  7. package/markdown.mjs +1864 -1864
  8. package/mordant-mordant.mjs +1638 -1638
  9. package/package.json +1 -1
  10. package/wirespec-src-compiler-core.mjs +3947 -3030
  11. package/wirespec-src-compiler-core.mjs.map +1 -1
  12. package/wirespec-src-compiler-emitters-java.mjs +244 -244
  13. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  14. package/wirespec-src-compiler-emitters-kotlin.mjs +193 -193
  15. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-python.mjs +211 -211
  17. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-typescript.mjs +195 -195
  19. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-wirespec.mjs +78 -78
  21. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  22. package/wirespec-src-compiler-lib.mjs +334 -337
  23. package/wirespec-src-compiler-lib.mjs.map +1 -1
  24. package/wirespec-src-converter-avro.mjs +295 -290
  25. package/wirespec-src-converter-avro.mjs.map +1 -1
  26. package/wirespec-src-converter-openapi.mjs +438 -414
  27. package/wirespec-src-converter-openapi.mjs.map +1 -1
  28. package/wirespec-src-plugin-arguments.mjs +136 -136
  29. package/wirespec-src-plugin-cli.mjs +75 -75
  30. package/wirespec-src-plugin-npm.mjs +33 -33
  31. package/wirespec-src-tools-generator.mjs +24 -24
@@ -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,22 +53,11 @@ 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;
59
59
  };
60
60
  }
61
- if (typeof String.prototype.startsWith === 'undefined') {
62
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
63
- position = position || 0;
64
- return this.lastIndexOf(searchString, position) === position;
65
- }});
66
- }
67
61
  if (typeof String.prototype.endsWith === 'undefined') {
68
62
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
69
63
  var subjectString = this.toString();
@@ -75,6 +69,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
75
69
  return lastIndex !== -1 && lastIndex === position;
76
70
  }});
77
71
  }
72
+ if (typeof String.prototype.startsWith === 'undefined') {
73
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
74
+ position = position || 0;
75
+ return this.lastIndexOf(searchString, position) === position;
76
+ }});
77
+ }
78
78
  //endregion
79
79
  //region block: imports
80
80
  var imul_0 = Math.imul;
@@ -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]);
@@ -10591,7 +10591,10 @@ function removePrefix(_this__u8e3s4, prefix) {
10591
10591
  }
10592
10592
  return _this__u8e3s4;
10593
10593
  }
10594
- function removeSurrounding(_this__u8e3s4, prefix, suffix) {
10594
+ function removeSurrounding(_this__u8e3s4, delimiter) {
10595
+ return removeSurrounding_0(_this__u8e3s4, delimiter, delimiter);
10596
+ }
10597
+ function removeSurrounding_0(_this__u8e3s4, prefix, suffix) {
10595
10598
  if (_this__u8e3s4.length >= (charSequenceLength(prefix) + charSequenceLength(suffix) | 0) && startsWith_2(_this__u8e3s4, prefix) && endsWith_1(_this__u8e3s4, suffix)) {
10596
10599
  // Inline function 'kotlin.text.substring' call
10597
10600
  var startIndex = charSequenceLength(prefix);
@@ -13323,7 +13326,8 @@ export {
13323
13326
  prependIndent as prependIndentkl9wuvcodvmu,
13324
13327
  removePrefix as removePrefix279df90bhrqqg,
13325
13328
  removeSuffix as removeSuffix3d61x5lsuvuho,
13326
- removeSurrounding as removeSurrounding1q9wnxijoja7r,
13329
+ removeSurrounding_0 as removeSurrounding1q9wnxijoja7r,
13330
+ removeSurrounding as removeSurroundingtenczfhnh0cp,
13327
13331
  repeat as repeat2w4c6j8zoq09o,
13328
13332
  replace as replace3le3ie7l9k8aq,
13329
13333
  replace_0 as replaceqbix900hl8kl,