@cruglobal/godtools-shared 1.1.2-SNAPSHOT.1695 → 1.1.2-SNAPSHOT.1698
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 +42 -42
- package/Kermit-kermit.js +5 -5
- package/antlr-kotlin-antlr-kotlin-runtime.js +3116 -3116
- package/colormath-root-colormath.js +906 -906
- package/fluid-locale.js +144 -144
- package/kotlin-js.js +34 -34
- package/kotlin-kotlin-stdlib.js +1981 -1951
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-common.js +3 -3
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +385 -385
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +2633 -2596
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-state.js +247 -247
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts +2 -1
- package/kotlinx-atomicfu.js +20 -20
- package/kotlinx-coroutines-core.js +2823 -2823
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
package/Kermit-kermit-core.js
CHANGED
|
@@ -21,11 +21,11 @@
|
|
|
21
21
|
var initMetadataForObject = kotlin_kotlin.$_$.q6;
|
|
22
22
|
var VOID = kotlin_kotlin.$_$.d;
|
|
23
23
|
var getStringHashCode = kotlin_kotlin.$_$.j6;
|
|
24
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
25
|
-
var Enum = kotlin_kotlin.$_$.
|
|
24
|
+
var THROW_CCE = kotlin_kotlin.$_$.r9;
|
|
25
|
+
var Enum = kotlin_kotlin.$_$.h9;
|
|
26
26
|
var objectCreate = kotlin_kotlin.$_$.z6;
|
|
27
|
-
var stackTraceToString = kotlin_kotlin.$_$.
|
|
28
|
-
var noWhenBranchMatchedException = kotlin_kotlin.$_$.
|
|
27
|
+
var stackTraceToString = kotlin_kotlin.$_$.da;
|
|
28
|
+
var noWhenBranchMatchedException = kotlin_kotlin.$_$.ca;
|
|
29
29
|
//endregion
|
|
30
30
|
//region block: pre-declaration
|
|
31
31
|
initMetadataForClass(BaseLogger, 'BaseLogger');
|
|
@@ -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.
|
|
51
|
+
sb.q8(this.g1v(severity)).q8(' ');
|
|
52
52
|
}
|
|
53
53
|
var tmp_1;
|
|
54
54
|
var tmp_2 = tag;
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
tmp_1 = false;
|
|
61
61
|
}
|
|
62
62
|
if (tmp_1) {
|
|
63
|
-
sb.
|
|
63
|
+
sb.q8(this.h1v(tag)).q8(' ');
|
|
64
64
|
}
|
|
65
|
-
sb.
|
|
65
|
+
sb.q8(_Message___get_message__impl__3t69n4(message));
|
|
66
66
|
return sb.toString();
|
|
67
67
|
}
|
|
68
68
|
initMetadataForInterface(MessageStringFormatter, 'MessageStringFormatter');
|
|
@@ -79,19 +79,19 @@
|
|
|
79
79
|
}
|
|
80
80
|
var DEFAULT_MIN_SEVERITY;
|
|
81
81
|
function BaseLogger(config) {
|
|
82
|
-
this.
|
|
82
|
+
this.a1v_1 = config;
|
|
83
83
|
}
|
|
84
|
-
protoOf(BaseLogger).
|
|
85
|
-
return this.
|
|
84
|
+
protoOf(BaseLogger).b1v = function () {
|
|
85
|
+
return this.a1v_1;
|
|
86
86
|
};
|
|
87
|
-
protoOf(BaseLogger).
|
|
87
|
+
protoOf(BaseLogger).c1v = function (severity, tag, throwable, message) {
|
|
88
88
|
// Inline function 'kotlin.collections.forEach' call
|
|
89
|
-
var _iterator__ex2g4s = this.
|
|
89
|
+
var _iterator__ex2g4s = this.b1v().d1v().j();
|
|
90
90
|
while (_iterator__ex2g4s.k()) {
|
|
91
91
|
var element = _iterator__ex2g4s.l();
|
|
92
92
|
// Inline function 'co.touchlab.kermit.BaseLogger.processLog.<anonymous>' call
|
|
93
|
-
if (element.
|
|
94
|
-
element.
|
|
93
|
+
if (element.f1v(tag, severity)) {
|
|
94
|
+
element.e1v(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).f1v = 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.j1v_1 : THROW_CCE())))
|
|
134
134
|
return false;
|
|
135
135
|
return true;
|
|
136
136
|
}
|
|
137
137
|
function Tag(tag) {
|
|
138
|
-
this.
|
|
138
|
+
this.j1v_1 = tag;
|
|
139
139
|
}
|
|
140
140
|
protoOf(Tag).toString = function () {
|
|
141
|
-
return Tag__toString_impl_tvevk7(this.
|
|
141
|
+
return Tag__toString_impl_tvevk7(this.j1v_1);
|
|
142
142
|
};
|
|
143
143
|
protoOf(Tag).hashCode = function () {
|
|
144
|
-
return Tag__hashCode_impl_848yrc(this.
|
|
144
|
+
return Tag__hashCode_impl_848yrc(this.j1v_1);
|
|
145
145
|
};
|
|
146
146
|
protoOf(Tag).equals = function (other) {
|
|
147
|
-
return Tag__equals_impl_6ocp5g(this.
|
|
147
|
+
return Tag__equals_impl_6ocp5g(this.j1v_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.k1v_1 = messageStringFormatter;
|
|
199
|
+
this.l1v_1 = console;
|
|
200
200
|
}
|
|
201
|
-
protoOf(ConsoleWriter).
|
|
202
|
-
var output = this.
|
|
201
|
+
protoOf(ConsoleWriter).e1v = function (severity, message, tag, throwable) {
|
|
202
|
+
var output = this.k1v_1.i1v(null, _Tag___init__impl__opaqzl(tag), _Message___init__impl__p3e8y6(message));
|
|
203
203
|
if (throwable == null)
|
|
204
204
|
null;
|
|
205
205
|
else {
|
|
@@ -207,20 +207,20 @@
|
|
|
207
207
|
// Inline function 'co.touchlab.kermit.ConsoleWriter.log.<anonymous>' call
|
|
208
208
|
output = output + (' ' + stackTraceToString(throwable));
|
|
209
209
|
}
|
|
210
|
-
switch (severity.
|
|
210
|
+
switch (severity.s2_1) {
|
|
211
211
|
case 5:
|
|
212
212
|
case 4:
|
|
213
|
-
this.
|
|
213
|
+
this.l1v_1.m1v(output);
|
|
214
214
|
break;
|
|
215
215
|
case 3:
|
|
216
|
-
this.
|
|
216
|
+
this.l1v_1.n1v(output);
|
|
217
217
|
break;
|
|
218
218
|
case 2:
|
|
219
|
-
this.
|
|
219
|
+
this.l1v_1.o1v(output);
|
|
220
220
|
break;
|
|
221
221
|
case 1:
|
|
222
222
|
case 0:
|
|
223
|
-
this.
|
|
223
|
+
this.l1v_1.p1v(output);
|
|
224
224
|
break;
|
|
225
225
|
default:
|
|
226
226
|
noWhenBranchMatchedException();
|
|
@@ -228,14 +228,14 @@
|
|
|
228
228
|
}
|
|
229
229
|
};
|
|
230
230
|
function JsMutableLoggerConfig(logWriters) {
|
|
231
|
-
this.
|
|
232
|
-
this.
|
|
231
|
+
this.q1v_1 = get_DEFAULT_MIN_SEVERITY();
|
|
232
|
+
this.r1v_1 = logWriters;
|
|
233
233
|
}
|
|
234
|
-
protoOf(JsMutableLoggerConfig).
|
|
235
|
-
return this.
|
|
234
|
+
protoOf(JsMutableLoggerConfig).s1v = function () {
|
|
235
|
+
return this.q1v_1;
|
|
236
236
|
};
|
|
237
|
-
protoOf(JsMutableLoggerConfig).
|
|
238
|
-
return this.
|
|
237
|
+
protoOf(JsMutableLoggerConfig).d1v = function () {
|
|
238
|
+
return this.r1v_1;
|
|
239
239
|
};
|
|
240
240
|
function mutableLoggerConfigInit(logWriters) {
|
|
241
241
|
return new JsMutableLoggerConfig(logWriters);
|
|
@@ -246,16 +246,16 @@
|
|
|
246
246
|
}
|
|
247
247
|
function ConsoleActual() {
|
|
248
248
|
}
|
|
249
|
-
protoOf(ConsoleActual).
|
|
249
|
+
protoOf(ConsoleActual).m1v = function (output) {
|
|
250
250
|
console.error(output);
|
|
251
251
|
};
|
|
252
|
-
protoOf(ConsoleActual).
|
|
252
|
+
protoOf(ConsoleActual).n1v = function (output) {
|
|
253
253
|
console.warn(output);
|
|
254
254
|
};
|
|
255
|
-
protoOf(ConsoleActual).
|
|
255
|
+
protoOf(ConsoleActual).o1v = function (output) {
|
|
256
256
|
console.info(output);
|
|
257
257
|
};
|
|
258
|
-
protoOf(ConsoleActual).
|
|
258
|
+
protoOf(ConsoleActual).p1v = function (output) {
|
|
259
259
|
console.log(output);
|
|
260
260
|
};
|
|
261
261
|
var ConsoleActual_instance;
|
|
@@ -263,9 +263,9 @@
|
|
|
263
263
|
return ConsoleActual_instance;
|
|
264
264
|
}
|
|
265
265
|
//region block: post-declaration
|
|
266
|
-
protoOf(DefaultFormatter).
|
|
267
|
-
protoOf(DefaultFormatter).
|
|
268
|
-
protoOf(DefaultFormatter).
|
|
266
|
+
protoOf(DefaultFormatter).g1v = formatSeverity;
|
|
267
|
+
protoOf(DefaultFormatter).h1v = formatTag;
|
|
268
|
+
protoOf(DefaultFormatter).i1v = formatMessage;
|
|
269
269
|
//endregion
|
|
270
270
|
//region block: init
|
|
271
271
|
DefaultFormatter_instance = new DefaultFormatter();
|
package/Kermit-kermit.js
CHANGED
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
Companion_instance = this;
|
|
35
35
|
Logger.call(this, mutableLoggerConfigInit(listOf(platformLogWriter())), '');
|
|
36
36
|
}
|
|
37
|
-
protoOf(Companion).
|
|
38
|
-
if (this.
|
|
37
|
+
protoOf(Companion).v1v = function (tag, throwable, message) {
|
|
38
|
+
if (this.b1v().s1v().v2(Severity_Error_getInstance()) <= 0) {
|
|
39
39
|
var tmp1 = Severity_Error_getInstance();
|
|
40
40
|
// Inline function 'co.touchlab.kermit.BaseLogger.log' call
|
|
41
41
|
var message_0 = message();
|
|
42
|
-
if (this.
|
|
43
|
-
this.
|
|
42
|
+
if (this.b1v().s1v().v2(tmp1) <= 0) {
|
|
43
|
+
this.c1v(tmp1, tag, throwable, message_0);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
};
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
Companion_getInstance();
|
|
55
55
|
tag = tag === VOID ? '' : tag;
|
|
56
56
|
BaseLogger.call(this, config);
|
|
57
|
-
this.
|
|
57
|
+
this.x1v_1 = tag;
|
|
58
58
|
}
|
|
59
59
|
var defaultTag;
|
|
60
60
|
//region block: init
|