@flock/wirespec 0.18.5 → 0.18.6

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 (34) hide show
  1. package/clikt-clikt-mordant.mjs +39 -39
  2. package/colormath-root-colormath.mjs +406 -406
  3. package/kotlin-kotlin-stdlib.mjs +11 -11
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-openapi-bindings.mjs +4585 -4585
  6. package/kotlin-rgxgen.mjs +1757 -1757
  7. package/kotlinx-io-kotlinx-io-core.mjs +397 -397
  8. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1616 -1616
  9. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1271 -1271
  10. package/mordant-mordant.mjs +1097 -1097
  11. package/package.json +1 -1
  12. package/wirespec-src-compiler-core.mjs +1 -1
  13. package/wirespec-src-compiler-emitters-java.mjs +248 -247
  14. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  15. package/wirespec-src-compiler-emitters-kotlin.mjs +160 -160
  16. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  17. package/wirespec-src-compiler-emitters-python.mjs +165 -164
  18. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  19. package/wirespec-src-compiler-emitters-rust.mjs +303 -292
  20. package/wirespec-src-compiler-emitters-rust.mjs.map +1 -1
  21. package/wirespec-src-compiler-emitters-scala.mjs +111 -110
  22. package/wirespec-src-compiler-emitters-scala.mjs.map +1 -1
  23. package/wirespec-src-compiler-emitters-typescript.mjs +188 -185
  24. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  25. package/wirespec-src-compiler-emitters-wirespec.mjs +24 -24
  26. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  27. package/wirespec-src-compiler-ir.mjs +2974 -2934
  28. package/wirespec-src-compiler-ir.mjs.map +1 -1
  29. package/wirespec-src-converter-avro.mjs +475 -475
  30. package/wirespec-src-converter-openapi.mjs +365 -365
  31. package/wirespec-src-plugin-arguments.mjs +115 -115
  32. package/wirespec-src-plugin-cli.mjs +84 -84
  33. package/wirespec-src-plugin-npm.mjs +20 -20
  34. package/wirespec-src-tools-generator.mjs +2 -2
@@ -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,17 +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
- 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
- }
62
56
  if (typeof String.prototype.endsWith === 'undefined') {
63
57
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
64
58
  var subjectString = this.toString();
@@ -70,6 +64,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
70
64
  return lastIndex !== -1 && lastIndex === position;
71
65
  }});
72
66
  }
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;