@cruglobal/godtools-shared 1.1.2-SNAPSHOT.1691 → 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.
@@ -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.$_$.q9;
25
- var Enum = kotlin_kotlin.$_$.g9;
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.$_$.ca;
28
- var noWhenBranchMatchedException = kotlin_kotlin.$_$.ba;
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.n8(this.e1v(severity)).n8(' ');
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.n8(this.f1v(tag)).n8(' ');
63
+ sb.q8(this.h1v(tag)).q8(' ');
64
64
  }
65
- sb.n8(_Message___get_message__impl__3t69n4(message));
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.y1u_1 = config;
82
+ this.a1v_1 = config;
83
83
  }
84
- protoOf(BaseLogger).z1u = function () {
85
- return this.y1u_1;
84
+ protoOf(BaseLogger).b1v = function () {
85
+ return this.a1v_1;
86
86
  };
87
- protoOf(BaseLogger).a1v = function (severity, tag, throwable, message) {
87
+ protoOf(BaseLogger).c1v = function (severity, tag, throwable, message) {
88
88
  // Inline function 'kotlin.collections.forEach' call
89
- var _iterator__ex2g4s = this.z1u().b1v().j();
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.d1v(tag, severity)) {
94
- element.c1v(severity, message, tag, throwable);
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).d1v = function (tag, severity) {
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.h1v_1 : THROW_CCE())))
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.h1v_1 = tag;
138
+ this.j1v_1 = tag;
139
139
  }
140
140
  protoOf(Tag).toString = function () {
141
- return Tag__toString_impl_tvevk7(this.h1v_1);
141
+ return Tag__toString_impl_tvevk7(this.j1v_1);
142
142
  };
143
143
  protoOf(Tag).hashCode = function () {
144
- return Tag__hashCode_impl_848yrc(this.h1v_1);
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.h1v_1, other);
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.i1v_1 = messageStringFormatter;
199
- this.j1v_1 = console;
198
+ this.k1v_1 = messageStringFormatter;
199
+ this.l1v_1 = console;
200
200
  }
201
- protoOf(ConsoleWriter).c1v = function (severity, message, tag, throwable) {
202
- var output = this.i1v_1.g1v(null, _Tag___init__impl__opaqzl(tag), _Message___init__impl__p3e8y6(message));
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.p2_1) {
210
+ switch (severity.s2_1) {
211
211
  case 5:
212
212
  case 4:
213
- this.j1v_1.k1v(output);
213
+ this.l1v_1.m1v(output);
214
214
  break;
215
215
  case 3:
216
- this.j1v_1.l1v(output);
216
+ this.l1v_1.n1v(output);
217
217
  break;
218
218
  case 2:
219
- this.j1v_1.m1v(output);
219
+ this.l1v_1.o1v(output);
220
220
  break;
221
221
  case 1:
222
222
  case 0:
223
- this.j1v_1.n1v(output);
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.o1v_1 = get_DEFAULT_MIN_SEVERITY();
232
- this.p1v_1 = logWriters;
231
+ this.q1v_1 = get_DEFAULT_MIN_SEVERITY();
232
+ this.r1v_1 = logWriters;
233
233
  }
234
- protoOf(JsMutableLoggerConfig).q1v = function () {
235
- return this.o1v_1;
234
+ protoOf(JsMutableLoggerConfig).s1v = function () {
235
+ return this.q1v_1;
236
236
  };
237
- protoOf(JsMutableLoggerConfig).b1v = function () {
238
- return this.p1v_1;
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).k1v = function (output) {
249
+ protoOf(ConsoleActual).m1v = function (output) {
250
250
  console.error(output);
251
251
  };
252
- protoOf(ConsoleActual).l1v = function (output) {
252
+ protoOf(ConsoleActual).n1v = function (output) {
253
253
  console.warn(output);
254
254
  };
255
- protoOf(ConsoleActual).m1v = function (output) {
255
+ protoOf(ConsoleActual).o1v = function (output) {
256
256
  console.info(output);
257
257
  };
258
- protoOf(ConsoleActual).n1v = function (output) {
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).e1v = formatSeverity;
267
- protoOf(DefaultFormatter).f1v = formatTag;
268
- protoOf(DefaultFormatter).g1v = formatMessage;
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).t1v = function (tag, throwable, message) {
38
- if (this.z1u().q1v().s2(Severity_Error_getInstance()) <= 0) {
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.z1u().q1v().s2(tmp1) <= 0) {
43
- this.a1v(tmp1, tag, throwable, message_0);
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.v1v_1 = tag;
57
+ this.x1v_1 = tag;
58
58
  }
59
59
  var defaultTag;
60
60
  //region block: init