@flock/wirespec 0.10.2 → 0.10.4
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.js +1144 -1144
- package/colormath-root-colormath.js +429 -429
- package/kotlin-kotlin-stdlib.js +26 -26
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-rgxgen.js +1763 -1763
- package/markdown.js +1854 -1854
- package/mordant-mordant.js +1607 -1607
- package/package.json +1 -1
- package/wirespec-src-compiler-core.js +2728 -2222
- package/wirespec-src-compiler-core.js.map +1 -1
- package/wirespec-src-compiler-lib.js +305 -304
- package/wirespec-src-compiler-lib.js.map +1 -1
- package/wirespec-src-converter-openapi.js +318 -318
- package/wirespec-src-plugin-arguments.js +90 -84
- package/wirespec-src-plugin-arguments.js.map +1 -1
- package/wirespec-src-plugin-cli.js +153 -138
- package/wirespec-src-plugin-cli.js.map +1 -1
- package/wirespec-src-plugin-npm.js +11 -11
- package/wirespec-src-tools-generator.js +24 -24
package/kotlin-kotlin-stdlib.js
CHANGED
|
@@ -46,16 +46,6 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
46
46
|
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
|
|
47
47
|
}
|
|
48
48
|
});
|
|
49
|
-
if (typeof Math.log2 === 'undefined') {
|
|
50
|
-
Math.log2 = function (x) {
|
|
51
|
-
return Math.log(x) * Math.LOG2E;
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
if (typeof Math.log10 === 'undefined') {
|
|
55
|
-
Math.log10 = function (x) {
|
|
56
|
-
return Math.log(x) * Math.LOG10E;
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
49
|
if (typeof Math.clz32 === 'undefined') {
|
|
60
50
|
Math.clz32 = function (log, LN2) {
|
|
61
51
|
return function (x) {
|
|
@@ -67,6 +57,22 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
67
57
|
};
|
|
68
58
|
}(Math.log, Math.LN2);
|
|
69
59
|
}
|
|
60
|
+
if (typeof Math.log10 === 'undefined') {
|
|
61
|
+
Math.log10 = function (x) {
|
|
62
|
+
return Math.log(x) * Math.LOG10E;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
if (typeof Math.log2 === 'undefined') {
|
|
66
|
+
Math.log2 = function (x) {
|
|
67
|
+
return Math.log(x) * Math.LOG2E;
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
if (typeof String.prototype.startsWith === 'undefined') {
|
|
71
|
+
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
72
|
+
position = position || 0;
|
|
73
|
+
return this.lastIndexOf(searchString, position) === position;
|
|
74
|
+
}});
|
|
75
|
+
}
|
|
70
76
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
71
77
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
72
78
|
var subjectString = this.toString();
|
|
@@ -78,12 +84,6 @@ if (typeof String.prototype.endsWith === 'undefined') {
|
|
|
78
84
|
return lastIndex !== -1 && lastIndex === position;
|
|
79
85
|
}});
|
|
80
86
|
}
|
|
81
|
-
if (typeof String.prototype.startsWith === 'undefined') {
|
|
82
|
-
Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
|
|
83
|
-
position = position || 0;
|
|
84
|
-
return this.lastIndexOf(searchString, position) === position;
|
|
85
|
-
}});
|
|
86
|
-
}
|
|
87
87
|
//endregion
|
|
88
88
|
(function (root, factory) {
|
|
89
89
|
if (typeof define === 'function' && define.amd)
|
|
@@ -1017,6 +1017,16 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
1017
1017
|
function singleOrNull(_this__u8e3s4) {
|
|
1018
1018
|
return _this__u8e3s4.j() === 1 ? _this__u8e3s4.k(0) : null;
|
|
1019
1019
|
}
|
|
1020
|
+
function dropLast(_this__u8e3s4, n) {
|
|
1021
|
+
// Inline function 'kotlin.require' call
|
|
1022
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
1023
|
+
if (!(n >= 0)) {
|
|
1024
|
+
// Inline function 'kotlin.collections.dropLast.<anonymous>' call
|
|
1025
|
+
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
1026
|
+
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1027
|
+
}
|
|
1028
|
+
return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.j() - n | 0, 0));
|
|
1029
|
+
}
|
|
1020
1030
|
function zipWithNext(_this__u8e3s4) {
|
|
1021
1031
|
var tmp$ret$0;
|
|
1022
1032
|
$l$block: {
|
|
@@ -1050,16 +1060,6 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
1050
1060
|
}
|
|
1051
1061
|
return sum;
|
|
1052
1062
|
}
|
|
1053
|
-
function dropLast(_this__u8e3s4, n) {
|
|
1054
|
-
// Inline function 'kotlin.require' call
|
|
1055
|
-
// Inline function 'kotlin.contracts.contract' call
|
|
1056
|
-
if (!(n >= 0)) {
|
|
1057
|
-
// Inline function 'kotlin.collections.dropLast.<anonymous>' call
|
|
1058
|
-
var message = 'Requested element count ' + n + ' is less than zero.';
|
|
1059
|
-
throw IllegalArgumentException_init_$Create$_0(toString_1(message));
|
|
1060
|
-
}
|
|
1061
|
-
return take(_this__u8e3s4, coerceAtLeast(_this__u8e3s4.j() - n | 0, 0));
|
|
1062
|
-
}
|
|
1063
1063
|
function plus_1(_this__u8e3s4, elements) {
|
|
1064
1064
|
var result = ArrayList_init_$Create$_0(_this__u8e3s4.j() + elements.length | 0);
|
|
1065
1065
|
result.p(_this__u8e3s4);
|