@flock/wirespec 0.17.8 → 0.17.13

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 (37) hide show
  1. package/clikt-clikt.mjs +1155 -1155
  2. package/colormath-root-colormath.mjs +424 -424
  3. package/kotlin-kotlin-stdlib.mjs +6 -6
  4. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  5. package/kotlin-openapi-bindings.mjs +2604 -2452
  6. package/kotlin-openapi-bindings.mjs.map +1 -1
  7. package/kotlin-rgxgen.mjs +1767 -1767
  8. package/kotlinx-io-kotlinx-io-core.mjs +380 -380
  9. package/markdown.mjs +1860 -1860
  10. package/mordant-mordant.mjs +1622 -1622
  11. package/package.json +1 -1
  12. package/wirespec-src-compiler-core.mjs +3967 -3960
  13. package/wirespec-src-compiler-core.mjs.map +1 -1
  14. package/wirespec-src-compiler-emitters-java.mjs +237 -237
  15. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-kotlin.mjs +215 -215
  17. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-python.mjs +246 -246
  19. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-typescript.mjs +261 -262
  21. package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-wirespec.mjs +128 -95
  23. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  24. package/wirespec-src-compiler-lib.mjs +369 -369
  25. package/wirespec-src-compiler-lib.mjs.map +1 -1
  26. package/wirespec-src-converter-avro.mjs +316 -316
  27. package/wirespec-src-converter-avro.mjs.map +1 -1
  28. package/wirespec-src-converter-openapi.mjs +2155 -2270
  29. package/wirespec-src-converter-openapi.mjs.map +1 -1
  30. package/wirespec-src-plugin-arguments.mjs +140 -140
  31. package/wirespec-src-plugin-arguments.mjs.map +1 -1
  32. package/wirespec-src-plugin-cli.mjs +80 -80
  33. package/wirespec-src-plugin-cli.mjs.map +1 -1
  34. package/wirespec-src-plugin-npm.mjs +43 -43
  35. package/wirespec-src-plugin-npm.mjs.map +1 -1
  36. package/wirespec-src-tools-generator.mjs +46 -46
  37. package/wirespec-src-tools-generator.mjs.map +1 -1
@@ -58,6 +58,12 @@ if (typeof Math.log10 === 'undefined') {
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
+ }
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;