@flock/wirespec 0.19.6 → 0.19.7

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 (35) hide show
  1. package/clikt-clikt-mordant.mjs +79 -79
  2. package/clikt-clikt.mjs +1265 -1265
  3. package/clikt-clikt.mjs.map +1 -1
  4. package/colormath-root-colormath.mjs +406 -406
  5. package/kotlin-kotlin-stdlib.mjs +6 -6
  6. package/kotlin-kotlin-stdlib.mjs.map +1 -1
  7. package/kotlin-openapi-bindings.mjs +9383 -9383
  8. package/kotlin-rgxgen.mjs +1757 -1757
  9. package/kotlinx-io-kotlinx-io-core.mjs +397 -397
  10. package/kotlinx-serialization-kotlinx-serialization-core.mjs +1708 -1708
  11. package/kotlinx-serialization-kotlinx-serialization-json.mjs +1449 -1449
  12. package/mordant-mordant.mjs +1097 -1097
  13. package/package.json +2 -2
  14. package/wirespec-src-compiler-core.mjs +973 -968
  15. package/wirespec-src-compiler-core.mjs.map +1 -1
  16. package/wirespec-src-compiler-emitters-java.mjs +416 -416
  17. package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
  18. package/wirespec-src-compiler-emitters-kotlin.mjs +295 -295
  19. package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
  20. package/wirespec-src-compiler-emitters-python.mjs +381 -381
  21. package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
  22. package/wirespec-src-compiler-emitters-rust.mjs +377 -377
  23. package/wirespec-src-compiler-emitters-scala.mjs +153 -153
  24. package/wirespec-src-compiler-emitters-typescript.mjs +400 -400
  25. package/wirespec-src-compiler-emitters-wirespec.mjs +89 -79
  26. package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
  27. package/wirespec-src-compiler-ir.mjs +3425 -3425
  28. package/wirespec-src-compiler-lib.mjs +343 -343
  29. package/wirespec-src-converter-avro.mjs +499 -499
  30. package/wirespec-src-converter-openapi.mjs +555 -555
  31. package/wirespec-src-ide-lsp.mjs +1350 -1350
  32. package/wirespec-src-plugin-arguments.mjs +121 -121
  33. package/wirespec-src-plugin-cli.mjs +91 -91
  34. package/wirespec-src-plugin-npm.mjs +26 -26
  35. package/wirespec-src-tools-generator.mjs +23 -23
@@ -53,6 +53,12 @@ if (typeof Math.log2 === 'undefined') {
53
53
  return Math.log(x) * Math.LOG2E;
54
54
  };
55
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;