@flock/wirespec 0.17.5 → 0.17.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.
- package/kotlin-kotlin-stdlib.mjs +6 -6
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-openapi-bindings.mjs +10 -0
- package/kotlin-openapi-bindings.mjs.map +1 -1
- package/package.json +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +102 -102
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +66 -66
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +90 -90
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +9 -9
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +17 -17
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +98 -18
- package/wirespec-src-converter-openapi.mjs.map +1 -1
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -58,6 +58,12 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
58
58
|
};
|
|
59
59
|
}(Math.log, Math.LN2);
|
|
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;
|