@flock/wirespec 0.16.6 → 0.16.8
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/clikt-clikt.mjs +1166 -1166
- package/colormath-root-colormath.mjs +425 -425
- package/kotlin-kotlin-stdlib.mjs +37 -37
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/kotlin-rgxgen.mjs +1763 -1763
- package/kotlinx-io-kotlinx-io-core.mjs +380 -380
- package/markdown.mjs +1864 -1864
- package/mordant-mordant.mjs +1638 -1638
- package/package.json +1 -1
- package/wirespec-src-compiler-core.mjs +1908 -1928
- package/wirespec-src-compiler-core.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-java.mjs +689 -687
- package/wirespec-src-compiler-emitters-java.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-kotlin.mjs +627 -577
- package/wirespec-src-compiler-emitters-kotlin.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-python.mjs +789 -739
- package/wirespec-src-compiler-emitters-python.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-typescript.mjs +288 -284
- package/wirespec-src-compiler-emitters-typescript.mjs.map +1 -1
- package/wirespec-src-compiler-emitters-wirespec.mjs +258 -222
- package/wirespec-src-compiler-emitters-wirespec.mjs.map +1 -1
- package/wirespec-src-compiler-lib.mjs +310 -310
- package/wirespec-src-converter-avro.mjs +372 -347
- package/wirespec-src-converter-avro.mjs.map +1 -1
- package/wirespec-src-converter-openapi.mjs +507 -499
- package/wirespec-src-converter-openapi.mjs.map +1 -1
- package/wirespec-src-plugin-arguments.mjs +136 -136
- package/wirespec-src-plugin-cli.mjs +75 -75
- package/wirespec-src-plugin-npm.d.ts +1 -1
- package/wirespec-src-plugin-npm.mjs +17 -16
- package/wirespec-src-plugin-npm.mjs.map +1 -1
- package/wirespec-src-tools-generator.mjs +24 -24
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -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,16 +53,17 @@ 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
56
|
if (typeof Math.log10 === 'undefined') {
|
|
57
57
|
Math.log10 = function (x) {
|
|
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;
|
|
@@ -1003,16 +1003,6 @@ function zip(_this__u8e3s4, other) {
|
|
|
1003
1003
|
function singleOrNull(_this__u8e3s4) {
|
|
1004
1004
|
return _this__u8e3s4.j() === 1 ? _this__u8e3s4.k(0) : null;
|
|
1005
1005
|
}
|
|
1006
|
-
function dropLast(_this__u8e3s4, n) {
|
|
1007
|
-
// Inline function 'kotlin.require' call
|
|
1008
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1009
|
-
if (!(n >= 0)) {
|
|
1010
|
-
// Inline function 'kotlin.collections.dropLast.<anonymous>' call
|
|
1011
|
-
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
1012
|
-
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1013
|
-
}
|
|
1014
|
-
return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.j() - n | 0, 0));
|
|
1015
|
-
}
|
|
1016
1006
|
function zipWithNext(_this__u8e3s4) {
|
|
1017
1007
|
var tmp$ret$0;
|
|
1018
1008
|
$l$block: {
|
|
@@ -1046,6 +1036,16 @@ function sum(_this__u8e3s4) {
|
|
|
1046
1036
|
}
|
|
1047
1037
|
return sum;
|
|
1048
1038
|
}
|
|
1039
|
+
function dropLast(_this__u8e3s4, n) {
|
|
1040
|
+
// Inline function 'kotlin.require' call
|
|
1041
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1042
|
+
if (!(n >= 0)) {
|
|
1043
|
+
// Inline function 'kotlin.collections.dropLast.<anonymous>' call
|
|
1044
|
+
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
1045
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1046
|
+
}
|
|
1047
|
+
return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.j() - n | 0, 0));
|
|
1048
|
+
}
|
|
1049
1049
|
function plus_1(_this__u8e3s4, elements) {
|
|
1050
1050
|
var result = ArrayList_init_$Create$_0(_this__u8e3s4.j() + elements.length | 0);
|
|
1051
1051
|
result.p(_this__u8e3s4);
|
|
@@ -1463,16 +1463,6 @@ function single_2(_this__u8e3s4) {
|
|
|
1463
1463
|
}
|
|
1464
1464
|
return tmp;
|
|
1465
1465
|
}
|
|
1466
|
-
function dropLast_0(_this__u8e3s4, n) {
|
|
1467
|
-
// Inline function 'kotlin.require' call
|
|
1468
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1469
|
-
if (!(n >= 0)) {
|
|
1470
|
-
// Inline function 'kotlin.text.dropLast.<anonymous>' call
|
|
1471
|
-
var message = 'Requested character count ' + n + ' is less than zero.';
|
|
1472
|
-
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1473
|
-
}
|
|
1474
|
-
return take_1(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.length - n | 0, 0));
|
|
1475
|
-
}
|
|
1476
1466
|
function asSequence_1(_this__u8e3s4) {
|
|
1477
1467
|
var tmp;
|
|
1478
1468
|
if (typeof _this__u8e3s4 === 'string') {
|
|
@@ -1496,6 +1486,16 @@ function firstOrNull_0(_this__u8e3s4) {
|
|
|
1496
1486
|
}
|
|
1497
1487
|
return tmp;
|
|
1498
1488
|
}
|
|
1489
|
+
function dropLast_0(_this__u8e3s4, n) {
|
|
1490
|
+
// Inline function 'kotlin.require' call
|
|
1491
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1492
|
+
if (!(n >= 0)) {
|
|
1493
|
+
// Inline function 'kotlin.text.dropLast.<anonymous>' call
|
|
1494
|
+
var message = 'Requested character count ' + n + ' is less than zero.';
|
|
1495
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1496
|
+
}
|
|
1497
|
+
return take_1(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.length - n | 0, 0));
|
|
1498
|
+
}
|
|
1499
1499
|
function toList_3(_this__u8e3s4) {
|
|
1500
1500
|
switch (charSequenceLength(_this__u8e3s4)) {
|
|
1501
1501
|
case 0:
|
|
@@ -8273,12 +8273,12 @@ function throwCountOverflow() {
|
|
|
8273
8273
|
function throwIndexOverflow() {
|
|
8274
8274
|
throw ArithmeticException_init_$Create$_0('Index overflow has happened.');
|
|
8275
8275
|
}
|
|
8276
|
-
function listOfNotNull(
|
|
8277
|
-
return !(element == null) ? listOf(element) : emptyList();
|
|
8278
|
-
}
|
|
8279
|
-
function listOfNotNull_0(elements) {
|
|
8276
|
+
function listOfNotNull(elements) {
|
|
8280
8277
|
return filterNotNull(elements);
|
|
8281
8278
|
}
|
|
8279
|
+
function listOfNotNull_0(element) {
|
|
8280
|
+
return !(element == null) ? listOf(element) : emptyList();
|
|
8281
|
+
}
|
|
8282
8282
|
function binarySearch(_this__u8e3s4, element, fromIndex, toIndex) {
|
|
8283
8283
|
fromIndex = fromIndex === VOID ? 0 : fromIndex;
|
|
8284
8284
|
toIndex = toIndex === VOID ? _this__u8e3s4.j() : toIndex;
|
|
@@ -13166,8 +13166,8 @@ export {
|
|
|
13166
13166
|
lastOrNull_0 as lastOrNullxgbdyo3mdsps,
|
|
13167
13167
|
last_0 as last1vo29oleiqj36,
|
|
13168
13168
|
last as lastrbvf878nq2vw,
|
|
13169
|
-
|
|
13170
|
-
|
|
13169
|
+
listOfNotNull_0 as listOfNotNull1v4ggfackvuny,
|
|
13170
|
+
listOfNotNull as listOfNotNull2woi2boe01ub4,
|
|
13171
13171
|
listOf as listOfvhqybd2zx248,
|
|
13172
13172
|
listOf_0 as listOf1jh22dvmctj1r,
|
|
13173
13173
|
mapCapacity as mapCapacity1h45rc3eh9p2l,
|