@cruglobal/godtools-shared 0.9.3-SNAPSHOT.1475 → 0.9.3-SNAPSHOT.1485
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 +282 -0
- package/Kermit-kermit-core.js.map +1 -0
- package/Kermit-kermit.js +71 -0
- package/Kermit-kermit.js.map +1 -0
- package/antlr-kotlin-antlr-kotlin-runtime.js +3004 -3004
- package/colormath-root-colormath.js +747 -747
- package/fluid-locale.js +147 -147
- package/kotlin-kotlin-stdlib.js +1089 -901
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +425 -425
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +2536 -2455
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -1
- package/kotlin-mpp-godtools-tool-parser-module-state.js +243 -243
- package/kotlinx-atomicfu.js +25 -25
- package/kotlinx-coroutines-core.js +2757 -2757
- package/kotlinx-coroutines-core.js.map +1 -1
- package/package.json +1 -1
- package/Napier-napier-js-ir.js +0 -176
- package/Napier-napier-js-ir.js.map +0 -1
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
(function (root, factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './kotlin-kotlin-stdlib.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./kotlin-kotlin-stdlib.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'Kermit-kermit-core'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'Kermit-kermit-core'.");
|
|
9
|
+
}
|
|
10
|
+
root['Kermit-kermit-core'] = factory(typeof this['Kermit-kermit-core'] === 'undefined' ? {} : this['Kermit-kermit-core'], this['kotlin-kotlin-stdlib']);
|
|
11
|
+
}
|
|
12
|
+
}(this, function (_, kotlin_kotlin) {
|
|
13
|
+
'use strict';
|
|
14
|
+
//region block: imports
|
|
15
|
+
var protoOf = kotlin_kotlin.$_$.m6;
|
|
16
|
+
var Unit_instance = kotlin_kotlin.$_$.m2;
|
|
17
|
+
var classMeta = kotlin_kotlin.$_$.r5;
|
|
18
|
+
var setMetadataFor = kotlin_kotlin.$_$.n6;
|
|
19
|
+
var StringBuilder_init_$Create$ = kotlin_kotlin.$_$.t;
|
|
20
|
+
var charSequenceLength = kotlin_kotlin.$_$.q5;
|
|
21
|
+
var interfaceMeta = kotlin_kotlin.$_$.b6;
|
|
22
|
+
var objectMeta = kotlin_kotlin.$_$.l6;
|
|
23
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
24
|
+
var getStringHashCode = kotlin_kotlin.$_$.z5;
|
|
25
|
+
var THROW_CCE = kotlin_kotlin.$_$.a9;
|
|
26
|
+
var Enum = kotlin_kotlin.$_$.q8;
|
|
27
|
+
var objectCreate = kotlin_kotlin.$_$.k6;
|
|
28
|
+
var stackTraceToString = kotlin_kotlin.$_$.l9;
|
|
29
|
+
//endregion
|
|
30
|
+
//region block: pre-declaration
|
|
31
|
+
setMetadataFor(BaseLogger, 'BaseLogger', classMeta);
|
|
32
|
+
setMetadataFor(LogWriter, 'LogWriter', classMeta);
|
|
33
|
+
function formatSeverity(severity) {
|
|
34
|
+
return '' + severity + ':';
|
|
35
|
+
}
|
|
36
|
+
function formatTag(tag) {
|
|
37
|
+
return '(' + _Tag___get_tag__impl__7z9hd6(tag) + ')';
|
|
38
|
+
}
|
|
39
|
+
function formatMessage(severity, tag, message) {
|
|
40
|
+
var tmp;
|
|
41
|
+
if (severity == null) {
|
|
42
|
+
var tmp_0 = tag;
|
|
43
|
+
tmp = (tmp_0 == null ? null : new Tag(tmp_0)) == null;
|
|
44
|
+
} else {
|
|
45
|
+
tmp = false;
|
|
46
|
+
}
|
|
47
|
+
if (tmp)
|
|
48
|
+
return _Message___get_message__impl__3t69n4(message);
|
|
49
|
+
var sb = StringBuilder_init_$Create$();
|
|
50
|
+
if (!(severity == null)) {
|
|
51
|
+
sb.m5(this.c1r(severity)).m5(' ');
|
|
52
|
+
}
|
|
53
|
+
var tmp_1;
|
|
54
|
+
var tmp_2 = tag;
|
|
55
|
+
if (!((tmp_2 == null ? null : new Tag(tmp_2)) == null)) {
|
|
56
|
+
// Inline function 'kotlin.text.isNotEmpty' call
|
|
57
|
+
var this_0 = _Tag___get_tag__impl__7z9hd6(tag);
|
|
58
|
+
tmp_1 = charSequenceLength(this_0) > 0;
|
|
59
|
+
} else {
|
|
60
|
+
tmp_1 = false;
|
|
61
|
+
}
|
|
62
|
+
if (tmp_1) {
|
|
63
|
+
sb.m5(this.d1r(tag)).m5(' ');
|
|
64
|
+
}
|
|
65
|
+
sb.m5(_Message___get_message__impl__3t69n4(message));
|
|
66
|
+
return sb.toString();
|
|
67
|
+
}
|
|
68
|
+
setMetadataFor(MessageStringFormatter, 'MessageStringFormatter', interfaceMeta);
|
|
69
|
+
setMetadataFor(DefaultFormatter, 'DefaultFormatter', objectMeta, VOID, [MessageStringFormatter]);
|
|
70
|
+
setMetadataFor(Tag, 'Tag', classMeta);
|
|
71
|
+
setMetadataFor(Severity, 'Severity', classMeta, Enum);
|
|
72
|
+
setMetadataFor(ConsoleWriter, 'ConsoleWriter', classMeta, LogWriter, VOID, ConsoleWriter_init_$Create$);
|
|
73
|
+
setMetadataFor(JsMutableLoggerConfig, 'JsMutableLoggerConfig', classMeta);
|
|
74
|
+
setMetadataFor(ConsoleActual, 'ConsoleActual', objectMeta);
|
|
75
|
+
//endregion
|
|
76
|
+
function get_DEFAULT_MIN_SEVERITY() {
|
|
77
|
+
_init_properties_BaseLogger_kt__lobnq7();
|
|
78
|
+
return DEFAULT_MIN_SEVERITY;
|
|
79
|
+
}
|
|
80
|
+
var DEFAULT_MIN_SEVERITY;
|
|
81
|
+
function BaseLogger(config) {
|
|
82
|
+
this.w1q_1 = config;
|
|
83
|
+
}
|
|
84
|
+
protoOf(BaseLogger).x1q = function () {
|
|
85
|
+
return this.w1q_1;
|
|
86
|
+
};
|
|
87
|
+
protoOf(BaseLogger).y1q = function (severity, tag, throwable, message) {
|
|
88
|
+
// Inline function 'kotlin.collections.forEach' call
|
|
89
|
+
var tmp0_iterator = this.x1q().z1q().s();
|
|
90
|
+
while (tmp0_iterator.t()) {
|
|
91
|
+
var element = tmp0_iterator.u();
|
|
92
|
+
// Inline function 'co.touchlab.kermit.BaseLogger.processLog.<anonymous>' call
|
|
93
|
+
if (element.b1r(tag, severity)) {
|
|
94
|
+
element.a1r(severity, message, tag, throwable);
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
var properties_initialized_BaseLogger_kt_e6qv19;
|
|
99
|
+
function _init_properties_BaseLogger_kt__lobnq7() {
|
|
100
|
+
if (!properties_initialized_BaseLogger_kt_e6qv19) {
|
|
101
|
+
properties_initialized_BaseLogger_kt_e6qv19 = true;
|
|
102
|
+
DEFAULT_MIN_SEVERITY = Severity_Verbose_getInstance();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
function LogWriter() {
|
|
106
|
+
}
|
|
107
|
+
protoOf(LogWriter).b1r = function (tag, severity) {
|
|
108
|
+
return true;
|
|
109
|
+
};
|
|
110
|
+
function MessageStringFormatter() {
|
|
111
|
+
}
|
|
112
|
+
function DefaultFormatter() {
|
|
113
|
+
}
|
|
114
|
+
var DefaultFormatter_instance;
|
|
115
|
+
function DefaultFormatter_getInstance() {
|
|
116
|
+
return DefaultFormatter_instance;
|
|
117
|
+
}
|
|
118
|
+
function _Tag___init__impl__opaqzl(tag) {
|
|
119
|
+
return tag;
|
|
120
|
+
}
|
|
121
|
+
function _Tag___get_tag__impl__7z9hd6($this) {
|
|
122
|
+
return $this;
|
|
123
|
+
}
|
|
124
|
+
function Tag__toString_impl_tvevk7($this) {
|
|
125
|
+
return 'Tag(tag=' + $this + ')';
|
|
126
|
+
}
|
|
127
|
+
function Tag__hashCode_impl_848yrc($this) {
|
|
128
|
+
return getStringHashCode($this);
|
|
129
|
+
}
|
|
130
|
+
function Tag__equals_impl_6ocp5g($this, other) {
|
|
131
|
+
if (!(other instanceof Tag))
|
|
132
|
+
return false;
|
|
133
|
+
if (!($this === (other instanceof Tag ? other.f1r_1 : THROW_CCE())))
|
|
134
|
+
return false;
|
|
135
|
+
return true;
|
|
136
|
+
}
|
|
137
|
+
function Tag(tag) {
|
|
138
|
+
this.f1r_1 = tag;
|
|
139
|
+
}
|
|
140
|
+
protoOf(Tag).toString = function () {
|
|
141
|
+
return Tag__toString_impl_tvevk7(this.f1r_1);
|
|
142
|
+
};
|
|
143
|
+
protoOf(Tag).hashCode = function () {
|
|
144
|
+
return Tag__hashCode_impl_848yrc(this.f1r_1);
|
|
145
|
+
};
|
|
146
|
+
protoOf(Tag).equals = function (other) {
|
|
147
|
+
return Tag__equals_impl_6ocp5g(this.f1r_1, other);
|
|
148
|
+
};
|
|
149
|
+
function _Message___init__impl__p3e8y6(message) {
|
|
150
|
+
return message;
|
|
151
|
+
}
|
|
152
|
+
function _Message___get_message__impl__3t69n4($this) {
|
|
153
|
+
return $this;
|
|
154
|
+
}
|
|
155
|
+
var Severity_Verbose_instance;
|
|
156
|
+
var Severity_Debug_instance;
|
|
157
|
+
var Severity_Info_instance;
|
|
158
|
+
var Severity_Warn_instance;
|
|
159
|
+
var Severity_Error_instance;
|
|
160
|
+
var Severity_Assert_instance;
|
|
161
|
+
var Severity_entriesInitialized;
|
|
162
|
+
function Severity_initEntries() {
|
|
163
|
+
if (Severity_entriesInitialized)
|
|
164
|
+
return Unit_instance;
|
|
165
|
+
Severity_entriesInitialized = true;
|
|
166
|
+
Severity_Verbose_instance = new Severity('Verbose', 0);
|
|
167
|
+
Severity_Debug_instance = new Severity('Debug', 1);
|
|
168
|
+
Severity_Info_instance = new Severity('Info', 2);
|
|
169
|
+
Severity_Warn_instance = new Severity('Warn', 3);
|
|
170
|
+
Severity_Error_instance = new Severity('Error', 4);
|
|
171
|
+
Severity_Assert_instance = new Severity('Assert', 5);
|
|
172
|
+
}
|
|
173
|
+
function Severity(name, ordinal) {
|
|
174
|
+
Enum.call(this, name, ordinal);
|
|
175
|
+
}
|
|
176
|
+
function Severity_Verbose_getInstance() {
|
|
177
|
+
Severity_initEntries();
|
|
178
|
+
return Severity_Verbose_instance;
|
|
179
|
+
}
|
|
180
|
+
function Severity_Debug_getInstance() {
|
|
181
|
+
Severity_initEntries();
|
|
182
|
+
return Severity_Debug_instance;
|
|
183
|
+
}
|
|
184
|
+
function Severity_Error_getInstance() {
|
|
185
|
+
Severity_initEntries();
|
|
186
|
+
return Severity_Error_instance;
|
|
187
|
+
}
|
|
188
|
+
function ConsoleWriter_init_$Init$(messageStringFormatter, $this) {
|
|
189
|
+
messageStringFormatter = messageStringFormatter === VOID ? DefaultFormatter_instance : messageStringFormatter;
|
|
190
|
+
ConsoleWriter.call($this, messageStringFormatter, ConsoleActual_instance);
|
|
191
|
+
return $this;
|
|
192
|
+
}
|
|
193
|
+
function ConsoleWriter_init_$Create$(messageStringFormatter) {
|
|
194
|
+
return ConsoleWriter_init_$Init$(messageStringFormatter, objectCreate(protoOf(ConsoleWriter)));
|
|
195
|
+
}
|
|
196
|
+
function ConsoleWriter(messageStringFormatter, console) {
|
|
197
|
+
LogWriter.call(this);
|
|
198
|
+
this.g1r_1 = messageStringFormatter;
|
|
199
|
+
this.h1r_1 = console;
|
|
200
|
+
}
|
|
201
|
+
protoOf(ConsoleWriter).a1r = function (severity, message, tag, throwable) {
|
|
202
|
+
var output = this.g1r_1.e1r(null, _Tag___init__impl__opaqzl(tag), _Message___init__impl__p3e8y6(message));
|
|
203
|
+
if (throwable == null)
|
|
204
|
+
null;
|
|
205
|
+
else {
|
|
206
|
+
// Inline function 'kotlin.let' call
|
|
207
|
+
// Inline function 'kotlin.contracts.contract' call
|
|
208
|
+
output = output + (' ' + stackTraceToString(throwable));
|
|
209
|
+
}
|
|
210
|
+
switch (severity.a9_1) {
|
|
211
|
+
case 5:
|
|
212
|
+
case 4:
|
|
213
|
+
this.h1r_1.i1r(output);
|
|
214
|
+
break;
|
|
215
|
+
case 3:
|
|
216
|
+
this.h1r_1.j1r(output);
|
|
217
|
+
break;
|
|
218
|
+
case 2:
|
|
219
|
+
this.h1r_1.k1r(output);
|
|
220
|
+
break;
|
|
221
|
+
case 1:
|
|
222
|
+
case 0:
|
|
223
|
+
this.h1r_1.l1r(output);
|
|
224
|
+
break;
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
function JsMutableLoggerConfig(logWriters) {
|
|
228
|
+
this.m1r_1 = get_DEFAULT_MIN_SEVERITY();
|
|
229
|
+
this.n1r_1 = logWriters;
|
|
230
|
+
}
|
|
231
|
+
protoOf(JsMutableLoggerConfig).o1r = function () {
|
|
232
|
+
return this.m1r_1;
|
|
233
|
+
};
|
|
234
|
+
protoOf(JsMutableLoggerConfig).z1q = function () {
|
|
235
|
+
return this.n1r_1;
|
|
236
|
+
};
|
|
237
|
+
function mutableLoggerConfigInit(logWriters) {
|
|
238
|
+
return new JsMutableLoggerConfig(logWriters);
|
|
239
|
+
}
|
|
240
|
+
function platformLogWriter(messageStringFormatter) {
|
|
241
|
+
messageStringFormatter = messageStringFormatter === VOID ? DefaultFormatter_instance : messageStringFormatter;
|
|
242
|
+
return ConsoleWriter_init_$Create$();
|
|
243
|
+
}
|
|
244
|
+
function ConsoleActual() {
|
|
245
|
+
}
|
|
246
|
+
protoOf(ConsoleActual).i1r = function (output) {
|
|
247
|
+
console.error(output);
|
|
248
|
+
};
|
|
249
|
+
protoOf(ConsoleActual).j1r = function (output) {
|
|
250
|
+
console.warn(output);
|
|
251
|
+
};
|
|
252
|
+
protoOf(ConsoleActual).k1r = function (output) {
|
|
253
|
+
console.info(output);
|
|
254
|
+
};
|
|
255
|
+
protoOf(ConsoleActual).l1r = function (output) {
|
|
256
|
+
console.log(output);
|
|
257
|
+
};
|
|
258
|
+
var ConsoleActual_instance;
|
|
259
|
+
function ConsoleActual_getInstance() {
|
|
260
|
+
return ConsoleActual_instance;
|
|
261
|
+
}
|
|
262
|
+
//region block: post-declaration
|
|
263
|
+
protoOf(DefaultFormatter).c1r = formatSeverity;
|
|
264
|
+
protoOf(DefaultFormatter).d1r = formatTag;
|
|
265
|
+
protoOf(DefaultFormatter).e1r = formatMessage;
|
|
266
|
+
//endregion
|
|
267
|
+
//region block: init
|
|
268
|
+
DefaultFormatter_instance = new DefaultFormatter();
|
|
269
|
+
ConsoleActual_instance = new ConsoleActual();
|
|
270
|
+
//endregion
|
|
271
|
+
//region block: exports
|
|
272
|
+
_.$_$ = _.$_$ || {};
|
|
273
|
+
_.$_$.a = BaseLogger;
|
|
274
|
+
_.$_$.b = mutableLoggerConfigInit;
|
|
275
|
+
_.$_$.c = platformLogWriter;
|
|
276
|
+
_.$_$.d = Severity_Debug_getInstance;
|
|
277
|
+
_.$_$.e = Severity_Error_getInstance;
|
|
278
|
+
//endregion
|
|
279
|
+
return _;
|
|
280
|
+
}));
|
|
281
|
+
|
|
282
|
+
//# sourceMappingURL=Kermit-kermit-core.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../../../../Users/runner/work/Kermit/Kermit/kermit-core/src/commonMain/kotlin/co/touchlab/kermit/MessageStringFormatter.kt","src/kotlin/text/Strings.kt","../../../../../../../../../../../../../Users/runner/work/Kermit/Kermit/kermit-core/src/commonMain/kotlin/co/touchlab/kermit/BaseLogger.kt","common/src/generated/_Collections.kt","../../../../../../../../../../../../../Users/runner/work/Kermit/Kermit/kermit-core/src/commonMain/kotlin/co/touchlab/kermit/LogWriter.kt","../../../../../../../../../../../../../Users/runner/work/Kermit/Kermit/kermit-core/src/commonMain/kotlin/co/touchlab/kermit/Severity.kt","../../../../../../../../../../../../../Users/runner/work/Kermit/Kermit/kermit-core/src/jsAndWasmJsMain/kotlin/co/touchlab/kermit/ConsoleWriter.kt","src/kotlin/util/Standard.kt","../../../../../../../../../../../../../Users/runner/work/Kermit/Kermit/kermit-core/src/jsAndWasmJsMain/kotlin/co/touchlab/kermit/JsMutableLoggerConfig.kt","../../../../../../../../../../../../../Users/runner/work/Kermit/Kermit/kermit-core/src/jsAndWasmJsMain/kotlin/co/touchlab/kermit/KermitConfig.kt","../../../../../../../../../../../../../Users/runner/work/Kermit/Kermit/kermit-core/src/jsAndWasmJsMain/kotlin/co/touchlab/kermit/platformLogWriter.kt","../../../../../../../../../../../../../Users/runner/work/Kermit/Kermit/kermit-core/src/jsMain/kotlin/co/touchlab/kermit/Js.ConsoleActual.kt"],"sourcesContent":[null,null,null,null,null,null,null,null,null,null,null,null],"names":["formatSeverity","severity","formatTag","tag","formatMessage","message","sb","<get-DEFAULT_MIN_SEVERITY>","<init>","config","<get-config>","processLog","throwable","element","<init properties BaseLogger.kt>","isLoggable","<Tag__<init>-impl>","<Tag__<get-tag>-impl>","Tag__toString-impl","Tag__hashCode-impl","Tag__equals-impl","other","toString","hashCode","equals","<Message__<init>-impl>","<Message__<get-message>-impl>","ConsoleWriter_init_$Init$","messageStringFormatter","ConsoleWriter_init_$Create$","console","log","output","logWriters","<get-minSeverity>","<get-logWriterList>","mutableLoggerConfigInit","platformLogWriter","error","warn","info"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAoBIA,CAAmBC,QAAnBD,EAAyC;A,IAAY,YAAV,QAAU,GAAF,G;EAAC,C;oBACpDE,CAAcC,GAAdD,EAA0B;A,IAAc,OAAb,GAAa,GAAN,6BAAJ,GAAI,CAAM,GAAF,G;EAAC,C;wBACvCE,CAAkBH,Q,EAAqBE,G,EAAWE,OAAlDD,EAA4E;A;IAEpE,gBAAY,IAAZ,C;kBAAoB,G;YAAA,2CAAO,I;;YAAP,K;;IAAxB,Q;MACI,OAAe,qCAAR,OAAQ,C;QAEnBE,KAAS,6B;IACT,IAAI,cAAY,IAAZ,CAAJ,C,CAA0D;A,M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B,CAAUN,MAAVM,EAA0B;A,IAC/B,OAAQ,OAAM,MAAN,C;EACZ,C;wCAESC,CAASP,MAATO,EAAyB;A,IAC9B,OAAQ,MAAK,MAAL,C;EACZ,C;wCAESC,CAASR,MAATQ,EAAyB;A,IAC9B,OAAQ,MAAK,MAAL,C;EACZ,C;wCAEST,CAAQC,MAARD,EAAwB;A,IAC7B,OAAQ,KAAI,MAAJ,C;EACZ,C;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/Kermit-kermit.js
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
(function (root, factory) {
|
|
2
|
+
if (typeof define === 'function' && define.amd)
|
|
3
|
+
define(['exports', './Kermit-kermit-core.js', './kotlin-kotlin-stdlib.js'], factory);
|
|
4
|
+
else if (typeof exports === 'object')
|
|
5
|
+
factory(module.exports, require('./Kermit-kermit-core.js'), require('./kotlin-kotlin-stdlib.js'));
|
|
6
|
+
else {
|
|
7
|
+
if (typeof this['Kermit-kermit-core'] === 'undefined') {
|
|
8
|
+
throw new Error("Error loading module 'Kermit-kermit'. Its dependency 'Kermit-kermit-core' was not found. Please, check whether 'Kermit-kermit-core' is loaded prior to 'Kermit-kermit'.");
|
|
9
|
+
}
|
|
10
|
+
if (typeof this['kotlin-kotlin-stdlib'] === 'undefined') {
|
|
11
|
+
throw new Error("Error loading module 'Kermit-kermit'. Its dependency 'kotlin-kotlin-stdlib' was not found. Please, check whether 'kotlin-kotlin-stdlib' is loaded prior to 'Kermit-kermit'.");
|
|
12
|
+
}
|
|
13
|
+
root['Kermit-kermit'] = factory(typeof this['Kermit-kermit'] === 'undefined' ? {} : this['Kermit-kermit'], this['Kermit-kermit-core'], this['kotlin-kotlin-stdlib']);
|
|
14
|
+
}
|
|
15
|
+
}(this, function (_, kotlin_co_touchlab_kermit_core, kotlin_kotlin) {
|
|
16
|
+
'use strict';
|
|
17
|
+
//region block: imports
|
|
18
|
+
var platformLogWriter = kotlin_co_touchlab_kermit_core.$_$.c;
|
|
19
|
+
var listOf = kotlin_kotlin.$_$.a4;
|
|
20
|
+
var mutableLoggerConfigInit = kotlin_co_touchlab_kermit_core.$_$.b;
|
|
21
|
+
var Severity_Error_getInstance = kotlin_co_touchlab_kermit_core.$_$.e;
|
|
22
|
+
var Unit_instance = kotlin_kotlin.$_$.m2;
|
|
23
|
+
var protoOf = kotlin_kotlin.$_$.m6;
|
|
24
|
+
var objectMeta = kotlin_kotlin.$_$.l6;
|
|
25
|
+
var setMetadataFor = kotlin_kotlin.$_$.n6;
|
|
26
|
+
var BaseLogger = kotlin_co_touchlab_kermit_core.$_$.a;
|
|
27
|
+
var VOID = kotlin_kotlin.$_$.c;
|
|
28
|
+
var classMeta = kotlin_kotlin.$_$.r5;
|
|
29
|
+
//endregion
|
|
30
|
+
//region block: pre-declaration
|
|
31
|
+
setMetadataFor(Logger, 'Logger', classMeta, BaseLogger);
|
|
32
|
+
setMetadataFor(Companion, 'Companion', objectMeta, Logger);
|
|
33
|
+
//endregion
|
|
34
|
+
function Companion() {
|
|
35
|
+
Companion_instance = this;
|
|
36
|
+
Logger.call(this, mutableLoggerConfigInit(listOf(platformLogWriter())), '');
|
|
37
|
+
}
|
|
38
|
+
protoOf(Companion).r1r = function (tag, throwable, message) {
|
|
39
|
+
if (this.x1q().o1r().b9(Severity_Error_getInstance()) <= 0) {
|
|
40
|
+
// Inline function 'co.touchlab.kermit.BaseLogger.log' call
|
|
41
|
+
var severity = Severity_Error_getInstance();
|
|
42
|
+
var message_0 = message();
|
|
43
|
+
if (this.x1q().o1r().b9(severity) <= 0) {
|
|
44
|
+
this.y1q(severity, tag, throwable, message_0);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
var Companion_instance;
|
|
49
|
+
function Companion_getInstance() {
|
|
50
|
+
if (Companion_instance == null)
|
|
51
|
+
new Companion();
|
|
52
|
+
return Companion_instance;
|
|
53
|
+
}
|
|
54
|
+
function Logger(config, tag) {
|
|
55
|
+
Companion_getInstance();
|
|
56
|
+
tag = tag === VOID ? '' : tag;
|
|
57
|
+
BaseLogger.call(this, config);
|
|
58
|
+
this.t1r_1 = tag;
|
|
59
|
+
}
|
|
60
|
+
var defaultTag;
|
|
61
|
+
//region block: init
|
|
62
|
+
defaultTag = '';
|
|
63
|
+
//endregion
|
|
64
|
+
//region block: exports
|
|
65
|
+
_.$_$ = _.$_$ || {};
|
|
66
|
+
_.$_$.a = Companion_getInstance;
|
|
67
|
+
//endregion
|
|
68
|
+
return _;
|
|
69
|
+
}));
|
|
70
|
+
|
|
71
|
+
//# sourceMappingURL=Kermit-kermit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../../../../../Users/runner/work/Kermit/Kermit/kermit/src/commonMain/kotlin/co/touchlab/kermit/Logger.kt","../../../../../../../../../../../../../Users/runner/work/Kermit/Kermit/kermit-core/src/commonMain/kotlin/co/touchlab/kermit/BaseLogger.kt","../../../../../../../../../../../../../Users/runner/work/Kermit/Kermit/kermit/src/jsAndWasmJsMain/kotlin/co/touchlab/kermit/Defaults.kt"],"sourcesContent":[null,null,null],"names":["<init>","e","tag","throwable","message","config"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA0FIA,CAAAA,EAAA;A;IACmB,kBAAO,wBAAwB,OAAO,mBAAP,CAAxB,CAAP,EAA6D,EAA7D,C;EADnB,C;oCA6CIC,CAAMC,G,EAAaC,S,EAA8BC,OAAjDH,EAAwE;A,IACpE,IAAI,UAAO,MAAP,sCAAJ,C;;;sBC1DwyF,S;MAzB5yF,IAyBwwF,IAzBpwF,MAAO,MAAP,IAAsB,QAAtB,MAAJ,C,CAAoC;A,QAyBouF,IAxBpwF,KACI,QADJ,EAwBwxF,GAxBxxF,EAwB6xF,SAxB7xF,EAII,SAJJ,C;MAMJ,C;;ED8EA,C;;;;;;;iBApHHD,CACDK,M,EACAH,GAFCF,EADL;A,IAAA,uB;yBAG2B,E;IACvB,sBAAW,MAAX,C;IADA,gB;EAHJ,C;;;eETyC,E;;;;;;;;"}
|