@cruglobal/godtools-shared 1.0.2-SNAPSHOT.1508 → 1.0.2-SNAPSHOT.1514
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/Kermit-kermit-core.js +36 -36
- package/Kermit-kermit.js +5 -5
- package/antlr-kotlin-antlr-kotlin-runtime.js +2842 -2842
- package/colormath-root-colormath.js +753 -753
- package/fluid-locale.js +125 -125
- package/kotlin-kotlin-stdlib.js +8 -8
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +384 -384
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +1914 -1914
- package/kotlin-mpp-godtools-tool-parser-module-state.js +104 -104
- package/kotlinx-coroutines-core.js +822 -875
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/Kermit-kermit-core.js
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
return _Message___get_message__impl__3t69n4(message);
|
|
49
49
|
var sb = StringBuilder_init_$Create$();
|
|
50
50
|
if (!(severity == null)) {
|
|
51
|
-
sb.m5(this.
|
|
51
|
+
sb.m5(this.h1r(severity)).m5(' ');
|
|
52
52
|
}
|
|
53
53
|
var tmp_1;
|
|
54
54
|
var tmp_2 = tag;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
tmp_1 = false;
|
|
61
61
|
}
|
|
62
62
|
if (tmp_1) {
|
|
63
|
-
sb.m5(this.
|
|
63
|
+
sb.m5(this.i1r(tag)).m5(' ');
|
|
64
64
|
}
|
|
65
65
|
sb.m5(_Message___get_message__impl__3t69n4(message));
|
|
66
66
|
return sb.toString();
|
|
@@ -79,19 +79,19 @@
|
|
|
79
79
|
}
|
|
80
80
|
var DEFAULT_MIN_SEVERITY;
|
|
81
81
|
function BaseLogger(config) {
|
|
82
|
-
this.
|
|
82
|
+
this.b1r_1 = config;
|
|
83
83
|
}
|
|
84
|
-
protoOf(BaseLogger).
|
|
85
|
-
return this.
|
|
84
|
+
protoOf(BaseLogger).c1r = function () {
|
|
85
|
+
return this.b1r_1;
|
|
86
86
|
};
|
|
87
|
-
protoOf(BaseLogger).
|
|
87
|
+
protoOf(BaseLogger).d1r = function (severity, tag, throwable, message) {
|
|
88
88
|
// Inline function 'kotlin.collections.forEach' call
|
|
89
|
-
var tmp0_iterator = this.
|
|
89
|
+
var tmp0_iterator = this.c1r().e1r().s();
|
|
90
90
|
while (tmp0_iterator.t()) {
|
|
91
91
|
var element = tmp0_iterator.u();
|
|
92
92
|
// Inline function 'co.touchlab.kermit.BaseLogger.processLog.<anonymous>' call
|
|
93
|
-
if (element.
|
|
94
|
-
element.
|
|
93
|
+
if (element.g1r(tag, severity)) {
|
|
94
|
+
element.f1r(severity, message, tag, throwable);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
};
|
|
@@ -104,7 +104,7 @@
|
|
|
104
104
|
}
|
|
105
105
|
function LogWriter() {
|
|
106
106
|
}
|
|
107
|
-
protoOf(LogWriter).
|
|
107
|
+
protoOf(LogWriter).g1r = function (tag, severity) {
|
|
108
108
|
return true;
|
|
109
109
|
};
|
|
110
110
|
function MessageStringFormatter() {
|
|
@@ -130,21 +130,21 @@
|
|
|
130
130
|
function Tag__equals_impl_6ocp5g($this, other) {
|
|
131
131
|
if (!(other instanceof Tag))
|
|
132
132
|
return false;
|
|
133
|
-
if (!($this === (other instanceof Tag ? other.
|
|
133
|
+
if (!($this === (other instanceof Tag ? other.k1r_1 : THROW_CCE())))
|
|
134
134
|
return false;
|
|
135
135
|
return true;
|
|
136
136
|
}
|
|
137
137
|
function Tag(tag) {
|
|
138
|
-
this.
|
|
138
|
+
this.k1r_1 = tag;
|
|
139
139
|
}
|
|
140
140
|
protoOf(Tag).toString = function () {
|
|
141
|
-
return Tag__toString_impl_tvevk7(this.
|
|
141
|
+
return Tag__toString_impl_tvevk7(this.k1r_1);
|
|
142
142
|
};
|
|
143
143
|
protoOf(Tag).hashCode = function () {
|
|
144
|
-
return Tag__hashCode_impl_848yrc(this.
|
|
144
|
+
return Tag__hashCode_impl_848yrc(this.k1r_1);
|
|
145
145
|
};
|
|
146
146
|
protoOf(Tag).equals = function (other) {
|
|
147
|
-
return Tag__equals_impl_6ocp5g(this.
|
|
147
|
+
return Tag__equals_impl_6ocp5g(this.k1r_1, other);
|
|
148
148
|
};
|
|
149
149
|
function _Message___init__impl__p3e8y6(message) {
|
|
150
150
|
return message;
|
|
@@ -195,11 +195,11 @@
|
|
|
195
195
|
}
|
|
196
196
|
function ConsoleWriter(messageStringFormatter, console) {
|
|
197
197
|
LogWriter.call(this);
|
|
198
|
-
this.
|
|
199
|
-
this.
|
|
198
|
+
this.l1r_1 = messageStringFormatter;
|
|
199
|
+
this.m1r_1 = console;
|
|
200
200
|
}
|
|
201
|
-
protoOf(ConsoleWriter).
|
|
202
|
-
var output = this.
|
|
201
|
+
protoOf(ConsoleWriter).f1r = function (severity, message, tag, throwable) {
|
|
202
|
+
var output = this.l1r_1.j1r(null, _Tag___init__impl__opaqzl(tag), _Message___init__impl__p3e8y6(message));
|
|
203
203
|
if (throwable == null)
|
|
204
204
|
null;
|
|
205
205
|
else {
|
|
@@ -210,30 +210,30 @@
|
|
|
210
210
|
switch (severity.a9_1) {
|
|
211
211
|
case 5:
|
|
212
212
|
case 4:
|
|
213
|
-
this.
|
|
213
|
+
this.m1r_1.n1r(output);
|
|
214
214
|
break;
|
|
215
215
|
case 3:
|
|
216
|
-
this.
|
|
216
|
+
this.m1r_1.o1r(output);
|
|
217
217
|
break;
|
|
218
218
|
case 2:
|
|
219
|
-
this.
|
|
219
|
+
this.m1r_1.p1r(output);
|
|
220
220
|
break;
|
|
221
221
|
case 1:
|
|
222
222
|
case 0:
|
|
223
|
-
this.
|
|
223
|
+
this.m1r_1.q1r(output);
|
|
224
224
|
break;
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
227
|
function JsMutableLoggerConfig(logWriters) {
|
|
228
|
-
this.
|
|
229
|
-
this.
|
|
228
|
+
this.r1r_1 = get_DEFAULT_MIN_SEVERITY();
|
|
229
|
+
this.s1r_1 = logWriters;
|
|
230
230
|
}
|
|
231
|
-
protoOf(JsMutableLoggerConfig).
|
|
232
|
-
return this.q1r_1;
|
|
233
|
-
};
|
|
234
|
-
protoOf(JsMutableLoggerConfig).d1r = function () {
|
|
231
|
+
protoOf(JsMutableLoggerConfig).t1r = function () {
|
|
235
232
|
return this.r1r_1;
|
|
236
233
|
};
|
|
234
|
+
protoOf(JsMutableLoggerConfig).e1r = function () {
|
|
235
|
+
return this.s1r_1;
|
|
236
|
+
};
|
|
237
237
|
function mutableLoggerConfigInit(logWriters) {
|
|
238
238
|
return new JsMutableLoggerConfig(logWriters);
|
|
239
239
|
}
|
|
@@ -243,16 +243,16 @@
|
|
|
243
243
|
}
|
|
244
244
|
function ConsoleActual() {
|
|
245
245
|
}
|
|
246
|
-
protoOf(ConsoleActual).
|
|
246
|
+
protoOf(ConsoleActual).n1r = function (output) {
|
|
247
247
|
console.error(output);
|
|
248
248
|
};
|
|
249
|
-
protoOf(ConsoleActual).
|
|
249
|
+
protoOf(ConsoleActual).o1r = function (output) {
|
|
250
250
|
console.warn(output);
|
|
251
251
|
};
|
|
252
|
-
protoOf(ConsoleActual).
|
|
252
|
+
protoOf(ConsoleActual).p1r = function (output) {
|
|
253
253
|
console.info(output);
|
|
254
254
|
};
|
|
255
|
-
protoOf(ConsoleActual).
|
|
255
|
+
protoOf(ConsoleActual).q1r = function (output) {
|
|
256
256
|
console.log(output);
|
|
257
257
|
};
|
|
258
258
|
var ConsoleActual_instance;
|
|
@@ -260,9 +260,9 @@
|
|
|
260
260
|
return ConsoleActual_instance;
|
|
261
261
|
}
|
|
262
262
|
//region block: post-declaration
|
|
263
|
-
protoOf(DefaultFormatter).
|
|
264
|
-
protoOf(DefaultFormatter).
|
|
265
|
-
protoOf(DefaultFormatter).
|
|
263
|
+
protoOf(DefaultFormatter).h1r = formatSeverity;
|
|
264
|
+
protoOf(DefaultFormatter).i1r = formatTag;
|
|
265
|
+
protoOf(DefaultFormatter).j1r = formatMessage;
|
|
266
266
|
//endregion
|
|
267
267
|
//region block: init
|
|
268
268
|
DefaultFormatter_instance = new DefaultFormatter();
|
package/Kermit-kermit.js
CHANGED
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
Companion_instance = this;
|
|
36
36
|
Logger.call(this, mutableLoggerConfigInit(listOf(platformLogWriter())), '');
|
|
37
37
|
}
|
|
38
|
-
protoOf(Companion).
|
|
39
|
-
if (this.
|
|
38
|
+
protoOf(Companion).w1r = function (tag, throwable, message) {
|
|
39
|
+
if (this.c1r().t1r().b9(Severity_Error_getInstance()) <= 0) {
|
|
40
40
|
// Inline function 'co.touchlab.kermit.BaseLogger.log' call
|
|
41
41
|
var severity = Severity_Error_getInstance();
|
|
42
42
|
var message_0 = message();
|
|
43
|
-
if (this.
|
|
44
|
-
this.
|
|
43
|
+
if (this.c1r().t1r().b9(severity) <= 0) {
|
|
44
|
+
this.d1r(severity, tag, throwable, message_0);
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
};
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
Companion_getInstance();
|
|
56
56
|
tag = tag === VOID ? '' : tag;
|
|
57
57
|
BaseLogger.call(this, config);
|
|
58
|
-
this.
|
|
58
|
+
this.y1r_1 = tag;
|
|
59
59
|
}
|
|
60
60
|
var defaultTag;
|
|
61
61
|
//region block: init
|