@flock/wirespec 0.17.16 → 0.17.18

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 (30) hide show
  1. package/clikt-clikt.mjs +1152 -1152
  2. package/colormath-root-colormath.mjs +424 -424
  3. package/kotlin-kotlin-stdlib.mjs +11 -11
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-openapi-bindings.mjs +1 -0
  6. package/kotlin-rgxgen.mjs +1763 -1763
  7. package/kotlinx-io-kotlinx-io-core.mjs +377 -377
  8. package/markdown.mjs +1833 -1833
  9. package/mordant-mordant.mjs +1605 -1605
  10. package/package.json +1 -1
  11. package/wirespec-src-compiler-core.mjs +25 -13
  12. package/wirespec-src-compiler-core.mjs.map +1 -1
  13. package/wirespec-src-compiler-emitters-java.mjs +118 -84
  14. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  15. package/wirespec-src-compiler-emitters-kotlin.mjs +156 -126
  16. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  17. package/wirespec-src-compiler-emitters-python.mjs +169 -139
  18. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  19. package/wirespec-src-compiler-emitters-typescript.mjs +89 -85
  20. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  21. package/wirespec-src-compiler-emitters-wirespec.mjs +33 -33
  22. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  23. package/wirespec-src-compiler-lib.mjs +246 -246
  24. package/wirespec-src-converter-avro.mjs +265 -265
  25. package/wirespec-src-converter-openapi.mjs +76 -75
  26. package/wirespec-src-converter-openapi.mjs.map +1 -1
  27. package/wirespec-src-plugin-arguments.mjs +132 -132
  28. package/wirespec-src-plugin-cli.mjs +66 -66
  29. package/wirespec-src-plugin-npm.mjs +10 -10
  30. package/wirespec-src-tools-generator.mjs +2 -2
@@ -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.log10 === 'undefined') {
46
41
  Math.log10 = function (x) {
47
42
  return Math.log(x) * Math.LOG10E;
@@ -58,6 +53,17 @@ if (typeof Math.clz32 === 'undefined') {
58
53
  };
59
54
  }(Math.log, Math.LN2);
60
55
  }
56
+ if (typeof Math.log2 === 'undefined') {
57
+ Math.log2 = function (x) {
58
+ return Math.log(x) * Math.LOG2E;
59
+ };
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
+ }
61
67
  if (typeof String.prototype.endsWith === 'undefined') {
62
68
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
63
69
  var subjectString = this.toString();
@@ -69,12 +75,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
69
75
  return lastIndex !== -1 && lastIndex === position;
70
76
  }});
71
77
  }
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;