game_client_logic_deb 1.8.247 → 1.8.253
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/Kosi-Kaverit-kaverit.js +58 -58
- package/Kosi-Kodein-kodein-di.js +518 -518
- package/Kotlin-DateTime-library-kotlinx-datetime.js +1333 -1333
- package/Logic_Debertz-core.js +1370 -1331
- package/Logic_Debertz-core.js.map +1 -1
- package/Logic_Debertz-engine.js +14122 -12987
- package/Logic_Debertz-engine.js.map +1 -1
- package/Logic_Debertz-game_client.d.ts +66 -24
- package/Logic_Debertz-game_client.js +3154 -3154
- package/Logic_Debertz-game_client.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +492 -446
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +13 -13
- package/kotlinx-coroutines-core.js +2170 -2170
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +311 -311
- package/kotlinx-serialization-kotlinx-serialization-core.js +1756 -1756
- package/kotlinx-serialization-kotlinx-serialization-json.js +1320 -1320
- package/ktor-ktor-client-content-negotiation.js +133 -133
- package/ktor-ktor-client-core.js +1537 -1537
- package/ktor-ktor-client-logging.js +282 -282
- package/ktor-ktor-events.js +6 -6
- package/ktor-ktor-http.js +600 -600
- package/ktor-ktor-io.js +1257 -1257
- package/ktor-ktor-serialization-kotlinx-json.js +7 -7
- package/ktor-ktor-serialization-kotlinx.js +136 -136
- package/ktor-ktor-serialization.js +62 -62
- package/ktor-ktor-utils.js +492 -492
- package/ktor-ktor-websockets.js +42 -42
- package/package.json +1 -1
- package/raspberry-cardgame-lib-core.js +159 -159
- package/raspberry-cardgame-lib-logger.js +88 -88
- package/raspberry-cardgame-lib-random.js +784 -784
- package/raspberry-cardgame-lib-random.js.map +1 -1
- package/secure-random-secure-random.js +5 -5
- package/uuid.js +12 -12
|
@@ -34,33 +34,33 @@
|
|
|
34
34
|
function d(tag, message, payload, $super) {
|
|
35
35
|
tag = tag === VOID ? null : tag;
|
|
36
36
|
payload = payload === VOID ? null : payload;
|
|
37
|
-
return this.
|
|
37
|
+
return this.tm(tag, message, payload);
|
|
38
38
|
}
|
|
39
39
|
function e(tag, message, exception, payload, $super) {
|
|
40
40
|
tag = tag === VOID ? null : tag;
|
|
41
41
|
message = message === VOID ? null : message;
|
|
42
42
|
exception = exception === VOID ? null : exception;
|
|
43
43
|
payload = payload === VOID ? null : payload;
|
|
44
|
-
return this.
|
|
44
|
+
return this.um(tag, message, exception, payload);
|
|
45
45
|
}
|
|
46
46
|
function w(tag, message, exception, payload, $super) {
|
|
47
47
|
tag = tag === VOID ? null : tag;
|
|
48
48
|
message = message === VOID ? null : message;
|
|
49
49
|
exception = exception === VOID ? null : exception;
|
|
50
50
|
payload = payload === VOID ? null : payload;
|
|
51
|
-
return this.
|
|
51
|
+
return this.vm(tag, message, exception, payload);
|
|
52
52
|
}
|
|
53
53
|
function v(tag, message, exception, payload, $super) {
|
|
54
54
|
tag = tag === VOID ? null : tag;
|
|
55
55
|
message = message === VOID ? null : message;
|
|
56
56
|
exception = exception === VOID ? null : exception;
|
|
57
57
|
payload = payload === VOID ? null : payload;
|
|
58
|
-
return this.
|
|
58
|
+
return this.wm(tag, message, exception, payload);
|
|
59
59
|
}
|
|
60
60
|
function i(tag, message, payload, $super) {
|
|
61
61
|
tag = tag === VOID ? null : tag;
|
|
62
62
|
payload = payload === VOID ? null : payload;
|
|
63
|
-
return this.
|
|
63
|
+
return this.xm(tag, message, payload);
|
|
64
64
|
}
|
|
65
65
|
initMetadataForInterface(LoggerOutput, 'LoggerOutput');
|
|
66
66
|
initMetadataForInterface(RaspberryLogger, 'RaspberryLogger', VOID, VOID, [LoggerOutput]);
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
//endregion
|
|
76
76
|
function Companion() {
|
|
77
77
|
}
|
|
78
|
-
protoOf(Companion).
|
|
78
|
+
protoOf(Companion).pm = function () {
|
|
79
79
|
return new CombinedRaspberryLogger(mutableListOf([new PlatformRaspberryLogger()]));
|
|
80
80
|
};
|
|
81
|
-
protoOf(Companion).
|
|
81
|
+
protoOf(Companion).qm = function () {
|
|
82
82
|
// Inline function 'kotlin.collections.mutableListOf' call
|
|
83
83
|
var tmp$ret$0 = ArrayList_init_$Create$();
|
|
84
84
|
return new CombinedRaspberryLogger(tmp$ret$0);
|
|
@@ -88,50 +88,50 @@
|
|
|
88
88
|
return Companion_instance;
|
|
89
89
|
}
|
|
90
90
|
function CombinedRaspberryLogger(logOutputs) {
|
|
91
|
-
this.
|
|
91
|
+
this.rm_1 = logOutputs;
|
|
92
92
|
}
|
|
93
|
-
protoOf(CombinedRaspberryLogger).
|
|
94
|
-
this.
|
|
93
|
+
protoOf(CombinedRaspberryLogger).sm = function (output) {
|
|
94
|
+
this.rm_1.e(output);
|
|
95
95
|
};
|
|
96
|
-
protoOf(CombinedRaspberryLogger).
|
|
96
|
+
protoOf(CombinedRaspberryLogger).tm = function (tag, message, payload) {
|
|
97
97
|
// Inline function 'kotlin.collections.forEach' call
|
|
98
|
-
var tmp0_iterator = this.
|
|
98
|
+
var tmp0_iterator = this.rm_1.j();
|
|
99
99
|
while (tmp0_iterator.k()) {
|
|
100
100
|
var element = tmp0_iterator.l();
|
|
101
101
|
// Inline function 'games.raspberry.logger.CombinedRaspberryLogger.d.<anonymous>' call
|
|
102
102
|
element.d(tag, message, payload);
|
|
103
103
|
}
|
|
104
104
|
};
|
|
105
|
-
protoOf(CombinedRaspberryLogger).
|
|
105
|
+
protoOf(CombinedRaspberryLogger).um = function (tag, message, exception, payload) {
|
|
106
106
|
// Inline function 'kotlin.collections.forEach' call
|
|
107
|
-
var tmp0_iterator = this.
|
|
107
|
+
var tmp0_iterator = this.rm_1.j();
|
|
108
108
|
while (tmp0_iterator.k()) {
|
|
109
109
|
var element = tmp0_iterator.l();
|
|
110
110
|
// Inline function 'games.raspberry.logger.CombinedRaspberryLogger.e.<anonymous>' call
|
|
111
111
|
element.e(tag, message, exception, payload);
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
|
-
protoOf(CombinedRaspberryLogger).
|
|
114
|
+
protoOf(CombinedRaspberryLogger).vm = function (tag, message, exception, payload) {
|
|
115
115
|
// Inline function 'kotlin.collections.forEach' call
|
|
116
|
-
var tmp0_iterator = this.
|
|
116
|
+
var tmp0_iterator = this.rm_1.j();
|
|
117
117
|
while (tmp0_iterator.k()) {
|
|
118
118
|
var element = tmp0_iterator.l();
|
|
119
119
|
// Inline function 'games.raspberry.logger.CombinedRaspberryLogger.w.<anonymous>' call
|
|
120
120
|
element.w(tag, message, exception, payload);
|
|
121
121
|
}
|
|
122
122
|
};
|
|
123
|
-
protoOf(CombinedRaspberryLogger).
|
|
123
|
+
protoOf(CombinedRaspberryLogger).wm = function (tag, message, exception, payload) {
|
|
124
124
|
// Inline function 'kotlin.collections.forEach' call
|
|
125
|
-
var tmp0_iterator = this.
|
|
125
|
+
var tmp0_iterator = this.rm_1.j();
|
|
126
126
|
while (tmp0_iterator.k()) {
|
|
127
127
|
var element = tmp0_iterator.l();
|
|
128
128
|
// Inline function 'games.raspberry.logger.CombinedRaspberryLogger.v.<anonymous>' call
|
|
129
129
|
element.v(tag, message, exception, payload);
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
|
-
protoOf(CombinedRaspberryLogger).
|
|
132
|
+
protoOf(CombinedRaspberryLogger).xm = function (tag, message, payload) {
|
|
133
133
|
// Inline function 'kotlin.collections.forEach' call
|
|
134
|
-
var tmp0_iterator = this.
|
|
134
|
+
var tmp0_iterator = this.rm_1.j();
|
|
135
135
|
while (tmp0_iterator.k()) {
|
|
136
136
|
var element = tmp0_iterator.l();
|
|
137
137
|
// Inline function 'games.raspberry.logger.CombinedRaspberryLogger.i.<anonymous>' call
|
|
@@ -144,38 +144,38 @@
|
|
|
144
144
|
}
|
|
145
145
|
function PlatformRaspberryLogger(enabled) {
|
|
146
146
|
enabled = enabled === VOID ? true : enabled;
|
|
147
|
-
this.
|
|
147
|
+
this.an_1 = enabled;
|
|
148
148
|
}
|
|
149
|
-
protoOf(PlatformRaspberryLogger).
|
|
150
|
-
this.
|
|
149
|
+
protoOf(PlatformRaspberryLogger).ym = function (_set____db54di) {
|
|
150
|
+
this.an_1 = _set____db54di;
|
|
151
151
|
};
|
|
152
|
-
protoOf(PlatformRaspberryLogger).
|
|
153
|
-
return this.
|
|
152
|
+
protoOf(PlatformRaspberryLogger).zm = function () {
|
|
153
|
+
return this.an_1;
|
|
154
154
|
};
|
|
155
|
-
protoOf(PlatformRaspberryLogger).
|
|
156
|
-
if (!this.
|
|
155
|
+
protoOf(PlatformRaspberryLogger).tm = function (tag, message, payload) {
|
|
156
|
+
if (!this.an_1)
|
|
157
157
|
return Unit_instance;
|
|
158
|
-
Logger_getInstance().
|
|
158
|
+
Logger_getInstance().en(tag, message);
|
|
159
159
|
};
|
|
160
|
-
protoOf(PlatformRaspberryLogger).
|
|
161
|
-
if (!this.
|
|
160
|
+
protoOf(PlatformRaspberryLogger).um = function (tag, message, exception, payload) {
|
|
161
|
+
if (!this.an_1)
|
|
162
162
|
return Unit_instance;
|
|
163
|
-
Logger_getInstance().
|
|
163
|
+
Logger_getInstance().fn(tag, message, exception);
|
|
164
164
|
};
|
|
165
|
-
protoOf(PlatformRaspberryLogger).
|
|
166
|
-
if (!this.
|
|
165
|
+
protoOf(PlatformRaspberryLogger).vm = function (tag, message, exception, payload) {
|
|
166
|
+
if (!this.an_1)
|
|
167
167
|
return Unit_instance;
|
|
168
|
-
Logger_getInstance().
|
|
168
|
+
Logger_getInstance().gn(tag, message, exception);
|
|
169
169
|
};
|
|
170
|
-
protoOf(PlatformRaspberryLogger).
|
|
171
|
-
if (!this.
|
|
170
|
+
protoOf(PlatformRaspberryLogger).wm = function (tag, message, exception, payload) {
|
|
171
|
+
if (!this.an_1)
|
|
172
172
|
return Unit_instance;
|
|
173
|
-
Logger_getInstance().
|
|
173
|
+
Logger_getInstance().hn(tag, message, exception);
|
|
174
174
|
};
|
|
175
|
-
protoOf(PlatformRaspberryLogger).
|
|
176
|
-
if (!this.
|
|
175
|
+
protoOf(PlatformRaspberryLogger).xm = function (tag, message, payload) {
|
|
176
|
+
if (!this.an_1)
|
|
177
177
|
return Unit_instance;
|
|
178
|
-
Logger_getInstance().
|
|
178
|
+
Logger_getInstance().hn(tag, message);
|
|
179
179
|
};
|
|
180
180
|
function RaspberryLogger() {
|
|
181
181
|
}
|
|
@@ -192,26 +192,26 @@
|
|
|
192
192
|
Category_NONE_instance = new Category('NONE', 1, true);
|
|
193
193
|
}
|
|
194
194
|
function generateTag($this, tag) {
|
|
195
|
-
return !($this.
|
|
195
|
+
return !($this.dn_1 == null) && !(tag == null) ? '' + $this.dn_1 + ':' + tag : tag;
|
|
196
196
|
}
|
|
197
197
|
function Category(name, ordinal, isEnabled) {
|
|
198
198
|
Enum.call(this, name, ordinal);
|
|
199
|
-
this.
|
|
199
|
+
this.kn_1 = isEnabled;
|
|
200
200
|
}
|
|
201
201
|
function Logger$loggerSource$1() {
|
|
202
|
-
this.
|
|
202
|
+
this.ln_1 = new PlatformLogger();
|
|
203
203
|
}
|
|
204
|
-
protoOf(Logger$loggerSource$1).
|
|
205
|
-
this.
|
|
204
|
+
protoOf(Logger$loggerSource$1).mn = function (tag, msg) {
|
|
205
|
+
this.ln_1.mn(tag, msg);
|
|
206
206
|
};
|
|
207
|
-
protoOf(Logger$loggerSource$1).
|
|
208
|
-
this.
|
|
207
|
+
protoOf(Logger$loggerSource$1).nn = function (tag, msg, exception) {
|
|
208
|
+
this.ln_1.nn(tag, msg, exception);
|
|
209
209
|
};
|
|
210
|
-
protoOf(Logger$loggerSource$1).
|
|
211
|
-
this.
|
|
210
|
+
protoOf(Logger$loggerSource$1).on = function (tag, msg, exception) {
|
|
211
|
+
this.ln_1.on(tag, msg, exception);
|
|
212
212
|
};
|
|
213
|
-
protoOf(Logger$loggerSource$1).
|
|
214
|
-
this.
|
|
213
|
+
protoOf(Logger$loggerSource$1).pn = function (tag, msg, exception) {
|
|
214
|
+
this.ln_1.pn(tag, msg, exception);
|
|
215
215
|
};
|
|
216
216
|
function Category_NONE_getInstance() {
|
|
217
217
|
Category_initEntries();
|
|
@@ -220,97 +220,97 @@
|
|
|
220
220
|
function Logger() {
|
|
221
221
|
Logger_instance = this;
|
|
222
222
|
var tmp = this;
|
|
223
|
-
tmp.
|
|
224
|
-
this.
|
|
225
|
-
this.
|
|
223
|
+
tmp.bn_1 = new Logger$loggerSource$1();
|
|
224
|
+
this.cn_1 = true;
|
|
225
|
+
this.dn_1 = null;
|
|
226
226
|
}
|
|
227
|
-
protoOf(Logger).
|
|
228
|
-
this.
|
|
227
|
+
protoOf(Logger).en = function (tag, message) {
|
|
228
|
+
this.qn(tag, message, Category_NONE_getInstance());
|
|
229
229
|
};
|
|
230
|
-
protoOf(Logger).
|
|
231
|
-
if (this.
|
|
230
|
+
protoOf(Logger).rn = function (tag, message, exception, category) {
|
|
231
|
+
if (this.cn_1 && category.kn_1) {
|
|
232
232
|
if (exception == null)
|
|
233
233
|
null;
|
|
234
234
|
else {
|
|
235
235
|
printStackTrace(exception);
|
|
236
236
|
}
|
|
237
|
-
this.
|
|
237
|
+
this.bn_1.on(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
238
238
|
}
|
|
239
239
|
};
|
|
240
|
-
protoOf(Logger).
|
|
240
|
+
protoOf(Logger).gn = function (tag, message, exception, category, $super) {
|
|
241
241
|
tag = tag === VOID ? null : tag;
|
|
242
242
|
message = message === VOID ? null : message;
|
|
243
243
|
exception = exception === VOID ? null : exception;
|
|
244
244
|
category = category === VOID ? Category_NONE_getInstance() : category;
|
|
245
245
|
var tmp;
|
|
246
246
|
if ($super === VOID) {
|
|
247
|
-
this.
|
|
247
|
+
this.rn(tag, message, exception, category);
|
|
248
248
|
tmp = Unit_instance;
|
|
249
249
|
} else {
|
|
250
|
-
tmp = $super.
|
|
250
|
+
tmp = $super.rn.call(this, tag, message, exception, category);
|
|
251
251
|
}
|
|
252
252
|
return tmp;
|
|
253
253
|
};
|
|
254
|
-
protoOf(Logger).
|
|
255
|
-
if (this.
|
|
256
|
-
this.
|
|
254
|
+
protoOf(Logger).qn = function (tag, message, category) {
|
|
255
|
+
if (this.cn_1 && category.kn_1) {
|
|
256
|
+
this.bn_1.mn(generateTag(this, tag), message);
|
|
257
257
|
}
|
|
258
258
|
};
|
|
259
|
-
protoOf(Logger).
|
|
260
|
-
if (this.
|
|
261
|
-
this.
|
|
259
|
+
protoOf(Logger).sn = function (tag, message, exception, category) {
|
|
260
|
+
if (this.cn_1 && category.kn_1) {
|
|
261
|
+
this.bn_1.pn(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
262
262
|
}
|
|
263
263
|
};
|
|
264
|
-
protoOf(Logger).
|
|
264
|
+
protoOf(Logger).hn = function (tag, message, exception, category, $super) {
|
|
265
265
|
tag = tag === VOID ? null : tag;
|
|
266
266
|
message = message === VOID ? null : message;
|
|
267
267
|
exception = exception === VOID ? null : exception;
|
|
268
268
|
category = category === VOID ? Category_NONE_getInstance() : category;
|
|
269
269
|
var tmp;
|
|
270
270
|
if ($super === VOID) {
|
|
271
|
-
this.
|
|
271
|
+
this.sn(tag, message, exception, category);
|
|
272
272
|
tmp = Unit_instance;
|
|
273
273
|
} else {
|
|
274
|
-
tmp = $super.
|
|
274
|
+
tmp = $super.sn.call(this, tag, message, exception, category);
|
|
275
275
|
}
|
|
276
276
|
return tmp;
|
|
277
277
|
};
|
|
278
|
-
protoOf(Logger).
|
|
279
|
-
if (this.
|
|
278
|
+
protoOf(Logger).tn = function (tag, message, exception, category) {
|
|
279
|
+
if (this.cn_1 && category.kn_1) {
|
|
280
280
|
if (exception == null)
|
|
281
281
|
null;
|
|
282
282
|
else {
|
|
283
283
|
printStackTrace(exception);
|
|
284
284
|
}
|
|
285
|
-
this.
|
|
285
|
+
this.bn_1.nn(generateTag(this, tag), generateMsg(message, exception), exception);
|
|
286
286
|
}
|
|
287
287
|
};
|
|
288
|
-
protoOf(Logger).
|
|
288
|
+
protoOf(Logger).fn = function (tag, message, exception, category, $super) {
|
|
289
289
|
tag = tag === VOID ? null : tag;
|
|
290
290
|
message = message === VOID ? null : message;
|
|
291
291
|
exception = exception === VOID ? null : exception;
|
|
292
292
|
category = category === VOID ? Category_NONE_getInstance() : category;
|
|
293
293
|
var tmp;
|
|
294
294
|
if ($super === VOID) {
|
|
295
|
-
this.
|
|
295
|
+
this.tn(tag, message, exception, category);
|
|
296
296
|
tmp = Unit_instance;
|
|
297
297
|
} else {
|
|
298
|
-
tmp = $super.
|
|
298
|
+
tmp = $super.tn.call(this, tag, message, exception, category);
|
|
299
299
|
}
|
|
300
300
|
return tmp;
|
|
301
301
|
};
|
|
302
|
-
protoOf(Logger).
|
|
303
|
-
this.
|
|
302
|
+
protoOf(Logger).un = function (tag, exception) {
|
|
303
|
+
this.fn(tag, null, exception);
|
|
304
304
|
};
|
|
305
|
-
protoOf(Logger).
|
|
305
|
+
protoOf(Logger).vn = function (tag, exception, $super) {
|
|
306
306
|
tag = tag === VOID ? null : tag;
|
|
307
307
|
exception = exception === VOID ? null : exception;
|
|
308
308
|
var tmp;
|
|
309
309
|
if ($super === VOID) {
|
|
310
|
-
this.
|
|
310
|
+
this.un(tag, exception);
|
|
311
311
|
tmp = Unit_instance;
|
|
312
312
|
} else {
|
|
313
|
-
tmp = $super.
|
|
313
|
+
tmp = $super.un.call(this, tag, exception);
|
|
314
314
|
}
|
|
315
315
|
return tmp;
|
|
316
316
|
};
|
|
@@ -343,22 +343,22 @@
|
|
|
343
343
|
}
|
|
344
344
|
function PlatformLogger() {
|
|
345
345
|
}
|
|
346
|
-
protoOf(PlatformLogger).
|
|
346
|
+
protoOf(PlatformLogger).mn = function (tag, msg) {
|
|
347
347
|
console.log('D:' + getLogTag(tag) + ': ' + msg);
|
|
348
348
|
};
|
|
349
|
-
protoOf(PlatformLogger).
|
|
349
|
+
protoOf(PlatformLogger).nn = function (tag, msg, exception) {
|
|
350
350
|
if (!(exception == null)) {
|
|
351
351
|
console.error(getLogTag(tag) + ': ' + msg + ', exception: ' + toString(exception));
|
|
352
352
|
} else {
|
|
353
353
|
console.error(getLogTag(tag) + ': ' + msg);
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
|
-
protoOf(PlatformLogger).
|
|
356
|
+
protoOf(PlatformLogger).on = function (tag, msg, exception) {
|
|
357
357
|
var tmp = console;
|
|
358
358
|
var tmp_0 = getLogTag(tag);
|
|
359
359
|
tmp.warn(tmp_0 + ': ' + msg + ' ' + toString_0(exception == null ? '' : exception));
|
|
360
360
|
};
|
|
361
|
-
protoOf(PlatformLogger).
|
|
361
|
+
protoOf(PlatformLogger).pn = function (tag, msg, exception) {
|
|
362
362
|
var tmp = console;
|
|
363
363
|
var tmp_0 = getLogTag(tag);
|
|
364
364
|
tmp.log('V:' + tmp_0 + ': ' + msg + ' ' + toString_0(exception == null ? '' : exception));
|
|
@@ -375,9 +375,9 @@
|
|
|
375
375
|
protoOf(PlatformRaspberryLogger).v = v;
|
|
376
376
|
protoOf(PlatformRaspberryLogger).i = i;
|
|
377
377
|
defineProp(protoOf(PlatformRaspberryLogger), 'enabled', function () {
|
|
378
|
-
return this.
|
|
378
|
+
return this.zm();
|
|
379
379
|
}, function (value) {
|
|
380
|
-
this.
|
|
380
|
+
this.ym(value);
|
|
381
381
|
});
|
|
382
382
|
//endregion
|
|
383
383
|
//region block: init
|