@attocash/commons-js 5.2.1 → 5.3.0

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.
Files changed (47) hide show
  1. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/DateTimeComponents.mjs +2 -2
  2. package/Kotlin-DateTime-library-kotlinx-datetime/kotlinx/datetime/format/LocalDateTimeFormat.mjs +2 -2
  3. package/commons-commons-core/cash/atto/commons/AttoBlock.mjs +1 -0
  4. package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs +7 -0
  5. package/commons-commons-core/cash/atto/commons/AttoBufferExtensions.mjs.map +1 -1
  6. package/commons-commons-core/cash/atto/commons/AttoHeight.mjs.map +1 -1
  7. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.js.mjs.map +1 -1
  8. package/commons-commons-core/cash/atto/commons/AttoPrivateKey.mjs.map +1 -1
  9. package/commons-commons-core/cash/atto/commons/AttoVersion.mjs.map +1 -1
  10. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.js.mjs +6 -6
  11. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs +7 -0
  12. package/commons-commons-node/cash/atto/commons/node/AttoNodeOperations.mjs.map +1 -1
  13. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.d.ts +7 -1
  14. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs +12 -0
  15. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.export.mjs.map +1 -1
  16. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs +92 -0
  17. package/commons-commons-node/cash/atto/commons/node/NodeExtensions.mjs.map +1 -1
  18. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs +274 -272
  19. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeClient.mjs.map +1 -1
  20. package/commons-commons-node-remote/cash/atto/commons/node/AttoNodeOperationsImpl.js.mjs +74 -74
  21. package/commons-commons-worker/cash/atto/commons/worker/AttoWorker.mjs +2 -2
  22. package/commons-commons-worker/cash/atto/commons/worker/AttoWorkerOperations.mjs +50 -50
  23. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.js.mjs +28 -28
  24. package/commons-commons-worker-remote/cash/atto/commons/worker/AttoWorkerRemote.mjs +35 -35
  25. package/kotlinx-coroutines-core/kotlinx/coroutines/selects/Select.mjs +1 -1
  26. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOCommon.mjs +2 -2
  27. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngine.mjs +47 -47
  28. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/CIOEngineConfig.mjs +11 -11
  29. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionFactory.mjs +21 -21
  30. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/ConnectionPipeline.nonJvm.mjs +3 -3
  31. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/Endpoint.mjs +192 -192
  32. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/EngineTasks.mjs +8 -8
  33. package/ktor-ktor-client-cio/io/ktor/client/engine/cio/utils.mjs +187 -187
  34. package/ktor-ktor-network/io/ktor/network/sockets/Builders.mjs +5 -5
  35. package/ktor-ktor-network/io/ktor/network/sockets/SocketAddress.nonJvm.mjs +9 -9
  36. package/ktor-ktor-network/io/ktor/network/sockets/SocketBase.mjs +39 -39
  37. package/ktor-ktor-network/io/ktor/network/sockets/SocketContext.mjs +87 -87
  38. package/ktor-ktor-network/io/ktor/network/sockets/SocketEngine.jsAndWasmShared.mjs +1 -1
  39. package/ktor-ktor-network/io/ktor/network/sockets/SocketOptions.mjs +23 -23
  40. package/ktor-ktor-network/io/ktor/network/sockets/SocketTimeoutException.mjs +4 -4
  41. package/ktor-ktor-network/io/ktor/network/sockets/Sockets.mjs +5 -5
  42. package/ktor-ktor-network/io/ktor/network/sockets/TcpSocketBuilder.mjs +5 -5
  43. package/ktor-ktor-network/io/ktor/network/sockets/TypeOfService.mjs +5 -5
  44. package/ktor-ktor-network/io/ktor/network/sockets/nodejs/node.net.mjs +7 -7
  45. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSCommon.mjs +9 -9
  46. package/ktor-ktor-network-tls/io/ktor/network/tls/TLSConfigBuilder.nonJvm.mjs +1 -1
  47. package/package.json +1 -1
@@ -69,15 +69,15 @@ import { ASocket1hggj5ss9a2ef as ASocket } from './Sockets.mjs';
69
69
  //endregion
70
70
  function SocketContext$initiate$lambda(this$0) {
71
71
  return function (it) {
72
- this$0.y6w_1.destroy(it == null ? null : toJsError(it));
73
- this$0.b6x_1.d1z();
74
- this$0.a6x_1.u2i();
72
+ this$0.z6w_1.destroy(it == null ? null : toJsError(it));
73
+ this$0.c6x_1.d1z();
74
+ this$0.b6x_1.u2i();
75
75
  return Unit_instance;
76
76
  };
77
77
  }
78
78
  function SocketContext$initiate$lambda_0(this$0) {
79
79
  return function (it) {
80
- this$0.y6w_1.destroy(it == null ? null : toJsError(it));
80
+ this$0.z6w_1.destroy(it == null ? null : toJsError(it));
81
81
  return Unit_instance;
82
82
  };
83
83
  }
@@ -94,7 +94,7 @@ function SocketContext$initiate$lambda_1($connectCont, this$0) {
94
94
  tmp0.lc(tmp$ret$0);
95
95
  tmp = Unit_instance;
96
96
  } else {
97
- cancel(get_job(this$0.b6x_1), 'Socket error', toThrowable(error));
97
+ cancel(get_job(this$0.c6x_1), 'Socket error', toThrowable(error));
98
98
  tmp = Unit_instance;
99
99
  }
100
100
  return Unit_instance;
@@ -108,12 +108,12 @@ function SocketContext$initiate$lambda_2($connectCont, this$0) {
108
108
  var tmp0 = $connectCont;
109
109
  // Inline function 'kotlin.coroutines.resumeWithException' call
110
110
  // Inline function 'kotlin.Companion.failure' call
111
- var exception = SocketTimeoutException().f6x('timeout');
111
+ var exception = SocketTimeoutException().g6x('timeout');
112
112
  var tmp$ret$0 = _Result___init__impl__xyqfz8(createFailure(exception));
113
113
  tmp0.lc(tmp$ret$0);
114
114
  tmp = Unit_instance;
115
115
  } else {
116
- cancel(get_job(this$0.b6x_1), 'Socket timeout', SocketTimeoutException().f6x('timeout'));
116
+ cancel(get_job(this$0.c6x_1), 'Socket timeout', SocketTimeoutException().g6x('timeout'));
117
117
  tmp = Unit_instance;
118
118
  }
119
119
  return Unit_instance;
@@ -121,19 +121,19 @@ function SocketContext$initiate$lambda_2($connectCont, this$0) {
121
121
  }
122
122
  function SocketContext$initiate$lambda_3(this$0) {
123
123
  return function () {
124
- this$0.a6x_1.s2i();
124
+ this$0.b6x_1.s2i();
125
125
  return Unit_instance;
126
126
  };
127
127
  }
128
128
  function SocketContext$initiate$lambda_4(this$0) {
129
129
  return function (it) {
130
- cancel(get_job(this$0.b6x_1), 'Socket closed');
130
+ cancel(get_job(this$0.c6x_1), 'Socket closed');
131
131
  return Unit_instance;
132
132
  };
133
133
  }
134
134
  function SocketContext$initiate$lambda_5(this$0) {
135
135
  return function (data) {
136
- this$0.a6x_1.f2i(data);
136
+ this$0.b6x_1.f2i(data);
137
137
  return Unit_instance;
138
138
  };
139
139
  }
@@ -142,7 +142,7 @@ function SocketContext$initiate$lambda_6($connectCont, this$0) {
142
142
  var tmp0 = $connectCont;
143
143
  // Inline function 'kotlin.coroutines.resume' call
144
144
  // Inline function 'kotlin.Companion.success' call
145
- var value = this$0.g6x();
145
+ var value = this$0.h6x();
146
146
  var tmp$ret$0 = _Result___init__impl__xyqfz8(value);
147
147
  tmp0.lc(tmp$ret$0);
148
148
  return Unit_instance;
@@ -153,42 +153,42 @@ function SocketContext() {
153
153
  if (SocketContextClass === VOID) {
154
154
  class $ {
155
155
  constructor(socket, address, parentContext) {
156
- this.y6w_1 = socket;
157
- this.z6w_1 = address;
158
- this.a6x_1 = Channel(2147483647);
159
- this.b6x_1 = Job(parentContext);
156
+ this.z6w_1 = socket;
157
+ this.a6x_1 = address;
158
+ this.b6x_1 = Channel(2147483647);
159
+ this.c6x_1 = Job(parentContext);
160
160
  }
161
- h6x(connectCont) {
161
+ i6x(connectCont) {
162
162
  if (connectCont == null)
163
163
  null;
164
164
  else {
165
165
  connectCont.i21(SocketContext$initiate$lambda(this));
166
166
  }
167
- this.b6x_1.v1y(SocketContext$initiate$lambda_0(this));
168
- onError(this.y6w_1, SocketContext$initiate$lambda_1(connectCont, this));
169
- onTimeout(this.y6w_1, SocketContext$initiate$lambda_2(connectCont, this));
170
- onEnd(this.y6w_1, SocketContext$initiate$lambda_3(this));
171
- onClose(this.y6w_1, SocketContext$initiate$lambda_4(this));
172
- onData(this.y6w_1, SocketContext$initiate$lambda_5(this));
167
+ this.c6x_1.v1y(SocketContext$initiate$lambda_0(this));
168
+ onError(this.z6w_1, SocketContext$initiate$lambda_1(connectCont, this));
169
+ onTimeout(this.z6w_1, SocketContext$initiate$lambda_2(connectCont, this));
170
+ onEnd(this.z6w_1, SocketContext$initiate$lambda_3(this));
171
+ onClose(this.z6w_1, SocketContext$initiate$lambda_4(this));
172
+ onData(this.z6w_1, SocketContext$initiate$lambda_5(this));
173
173
  if (!(connectCont == null)) {
174
- onConnect(this.y6w_1, SocketContext$initiate$lambda_6(connectCont, this));
174
+ onConnect(this.z6w_1, SocketContext$initiate$lambda_6(connectCont, this));
175
175
  }
176
176
  }
177
- g6x() {
177
+ h6x() {
178
178
  var tmp;
179
- if (this.z6w_1 instanceof UnixSocketAddress()) {
180
- tmp = this.z6w_1;
179
+ if (this.a6x_1 instanceof UnixSocketAddress()) {
180
+ tmp = this.a6x_1;
181
181
  } else {
182
- tmp = new (InetSocketAddress())(this.y6w_1.localAddress, this.y6w_1.localPort);
182
+ tmp = new (InetSocketAddress())(this.z6w_1.localAddress, this.z6w_1.localPort);
183
183
  }
184
184
  var tmp_0 = tmp;
185
185
  var tmp_1;
186
- if (this.z6w_1 instanceof UnixSocketAddress()) {
187
- tmp_1 = this.z6w_1;
186
+ if (this.a6x_1 instanceof UnixSocketAddress()) {
187
+ tmp_1 = this.a6x_1;
188
188
  } else {
189
- tmp_1 = new (InetSocketAddress())(this.y6w_1.remoteAddress, this.y6w_1.remotePort);
189
+ tmp_1 = new (InetSocketAddress())(this.z6w_1.remoteAddress, this.z6w_1.remotePort);
190
190
  }
191
- return new (SocketImpl())(tmp_0, tmp_1, this.b6x_1, this.a6x_1, this.y6w_1);
191
+ return new (SocketImpl())(tmp_0, tmp_1, this.c6x_1, this.b6x_1, this.z6w_1);
192
192
  }
193
193
  }
194
194
  initMetadataForClass($, 'SocketContext');
@@ -209,8 +209,8 @@ function SocketImpl$attachForReadingImpl$slambda() {
209
209
  constructor(this$0, $channel, resultContinuation, $box) {
210
210
  if ($box === VOID)
211
211
  $box = {};
212
- $box.q6x_1 = this$0;
213
- $box.r6x_1 = $channel;
212
+ $box.r6x_1 = this$0;
213
+ $box.s6x_1 = $channel;
214
214
  super(resultContinuation, $box);
215
215
  }
216
216
  z4l($this$writer, $completion) {
@@ -231,15 +231,15 @@ function SocketImpl$attachForReadingImpl$slambda() {
231
231
  case 0:
232
232
  this.bc_1 = 12;
233
233
  var tmp_0 = this;
234
- tmp_0.t6x_1 = this.q6x_1.p6y_1;
235
- this.u6x_1 = this.t6x_1;
234
+ tmp_0.u6x_1 = this.r6x_1.q6y_1;
235
+ this.v6x_1 = this.u6x_1;
236
236
  var tmp_1 = this;
237
- tmp_1.v6x_1 = this.u6x_1;
237
+ tmp_1.w6x_1 = this.v6x_1;
238
238
  this.ac_1 = 1;
239
239
  continue $sm;
240
240
  case 1:
241
- this.x6x_1 = this.v6x_1;
242
- this.y6x_1 = null;
241
+ this.y6x_1 = this.w6x_1;
242
+ this.z6x_1 = null;
243
243
  this.ac_1 = 2;
244
244
  continue $sm;
245
245
  case 2:
@@ -249,14 +249,14 @@ function SocketImpl$attachForReadingImpl$slambda() {
249
249
  this.bc_1 = 11;
250
250
  this.bc_1 = 10;
251
251
  var tmp_2 = this;
252
- tmp_2.a6y_1 = this.x6x_1;
253
- this.b6y_1 = this.a6y_1;
254
- this.c6y_1 = this.b6y_1.d1();
252
+ tmp_2.b6y_1 = this.y6x_1;
253
+ this.c6y_1 = this.b6y_1;
254
+ this.d6y_1 = this.c6y_1.d1();
255
255
  this.ac_1 = 4;
256
256
  continue $sm;
257
257
  case 4:
258
258
  this.ac_1 = 5;
259
- suspendResult = this.c6y_1.g2f(this);
259
+ suspendResult = this.d6y_1.g2f(this);
260
260
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
261
261
  return suspendResult;
262
262
  }
@@ -268,12 +268,12 @@ function SocketImpl$attachForReadingImpl$slambda() {
268
268
  continue $sm;
269
269
  }
270
270
 
271
- this.d6y_1 = this.c6y_1.f1();
271
+ this.e6y_1 = this.d6y_1.f1();
272
272
  var tmp_3 = this;
273
- tmp_3.e6y_1 = this.d6y_1;
274
- this.f6y_1 = this.e6y_1;
273
+ tmp_3.f6y_1 = this.e6y_1;
274
+ this.g6y_1 = this.f6y_1;
275
275
  this.ac_1 = 6;
276
- suspendResult = writeByteArray(this.r6x_1, toByteArray(this.f6y_1), this);
276
+ suspendResult = writeByteArray(this.s6x_1, toByteArray(this.g6y_1), this);
277
277
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
278
278
  return suspendResult;
279
279
  }
@@ -281,7 +281,7 @@ function SocketImpl$attachForReadingImpl$slambda() {
281
281
  continue $sm;
282
282
  case 6:
283
283
  this.ac_1 = 7;
284
- suspendResult = this.r6x_1.z3a(this);
284
+ suspendResult = this.s6x_1.z3a(this);
285
285
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
286
286
  return suspendResult;
287
287
  }
@@ -292,7 +292,7 @@ function SocketImpl$attachForReadingImpl$slambda() {
292
292
  continue $sm;
293
293
  case 8:
294
294
  var tmp_4 = this;
295
- tmp_4.z6x_1 = Unit_instance;
295
+ tmp_4.a6y_1 = Unit_instance;
296
296
  this.bc_1 = 12;
297
297
  this.ac_1 = 9;
298
298
  var tmp_5 = this;
@@ -300,8 +300,8 @@ function SocketImpl$attachForReadingImpl$slambda() {
300
300
  case 9:
301
301
  this.bc_1 = 12;
302
302
  var tmp_6 = this;
303
- cancelConsumed(this.x6x_1, this.y6x_1);
304
- tmp_6.w6x_1 = Unit_instance;
303
+ cancelConsumed(this.y6x_1, this.z6x_1);
304
+ tmp_6.x6x_1 = Unit_instance;
305
305
  this.ac_1 = 14;
306
306
  continue $sm;
307
307
  case 10:
@@ -310,7 +310,7 @@ function SocketImpl$attachForReadingImpl$slambda() {
310
310
  if (tmp_7 instanceof Error) {
311
311
  var e = this.dc_1;
312
312
  var tmp_8 = this;
313
- this.y6x_1 = e;
313
+ this.z6x_1 = e;
314
314
  throw e;
315
315
  } else {
316
316
  throw this.dc_1;
@@ -319,13 +319,13 @@ function SocketImpl$attachForReadingImpl$slambda() {
319
319
  case 11:
320
320
  this.bc_1 = 12;
321
321
  var t = this.dc_1;
322
- cancelConsumed(this.x6x_1, this.y6x_1);
322
+ cancelConsumed(this.y6x_1, this.z6x_1);
323
323
  throw t;
324
324
  case 12:
325
325
  throw this.dc_1;
326
326
  case 13:
327
327
  this.bc_1 = 12;
328
- cancelConsumed(this.x6x_1, this.y6x_1);
328
+ cancelConsumed(this.y6x_1, this.z6x_1);
329
329
  if (false) {
330
330
  this.ac_1 = 1;
331
331
  continue $sm;
@@ -348,8 +348,8 @@ function SocketImpl$attachForReadingImpl$slambda() {
348
348
  while (true);
349
349
  }
350
350
  a4m($this$writer, completion) {
351
- var i = new (SocketImpl$attachForReadingImpl$slambda())(this.q6x_1, this.r6x_1, completion);
352
- i.s6x_1 = $this$writer;
351
+ var i = new (SocketImpl$attachForReadingImpl$slambda())(this.r6x_1, this.s6x_1, completion);
352
+ i.t6x_1 = $this$writer;
353
353
  return i;
354
354
  }
355
355
  }
@@ -373,8 +373,8 @@ function SocketImpl$attachForWritingImpl$slambda() {
373
373
  constructor($channel, this$0, resultContinuation, $box) {
374
374
  if ($box === VOID)
375
375
  $box = {};
376
- $box.z6y_1 = $channel;
377
- $box.a6z_1 = this$0;
376
+ $box.a6z_1 = $channel;
377
+ $box.b6z_1 = this$0;
378
378
  super(resultContinuation, $box);
379
379
  }
380
380
  o4f($this$reader, $completion) {
@@ -403,13 +403,13 @@ function SocketImpl$attachForWritingImpl$slambda() {
403
403
  }
404
404
 
405
405
  var tmp_0 = this;
406
- tmp_0.c6z_1 = this.z6y_1;
406
+ tmp_0.d6z_1 = this.a6z_1;
407
407
  this.ac_1 = 2;
408
408
  continue $sm;
409
409
  case 2:
410
- this.e6z_1 = this.c6z_1;
411
- if (this.e6z_1.h3b()) {
412
- this.d6z_1 = -1;
410
+ this.f6z_1 = this.d6z_1;
411
+ if (this.f6z_1.h3b()) {
412
+ this.e6z_1 = -1;
413
413
  this.ac_1 = 7;
414
414
  continue $sm;
415
415
  } else {
@@ -418,9 +418,9 @@ function SocketImpl$attachForWritingImpl$slambda() {
418
418
  }
419
419
 
420
420
  case 3:
421
- if (this.e6z_1.a3b().o2r()) {
421
+ if (this.f6z_1.a3b().o2r()) {
422
422
  this.ac_1 = 4;
423
- suspendResult = this.e6z_1.j3b(VOID, this);
423
+ suspendResult = this.f6z_1.j3b(VOID, this);
424
424
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
425
425
  return suspendResult;
426
426
  }
@@ -434,8 +434,8 @@ function SocketImpl$attachForWritingImpl$slambda() {
434
434
  this.ac_1 = 5;
435
435
  continue $sm;
436
436
  case 5:
437
- if (this.e6z_1.h3b()) {
438
- this.d6z_1 = -1;
437
+ if (this.f6z_1.h3b()) {
438
+ this.e6z_1 = -1;
439
439
  this.ac_1 = 7;
440
440
  continue $sm;
441
441
  } else {
@@ -444,7 +444,7 @@ function SocketImpl$attachForWritingImpl$slambda() {
444
444
  }
445
445
 
446
446
  case 6:
447
- var buffer = this.e6z_1.a3b().n2r();
447
+ var buffer = this.f6z_1.a3b().n2r();
448
448
  if (!!buffer.o2r()) {
449
449
  var message = 'Buffer is empty';
450
450
  throw IllegalArgumentException().u(toString(message));
@@ -455,9 +455,9 @@ function SocketImpl$attachForWritingImpl$slambda() {
455
455
  var tmp2 = head.t2r_1;
456
456
  var tmp_1 = this;
457
457
  var endIndex = head.u2r_1;
458
- this.a6z_1.q6y_1.write(toJsBuffer(tmp0, tmp2, endIndex));
459
- tmp_1.f6z_1 = endIndex - tmp2 | 0;
460
- var bytesRead = this.f6z_1;
458
+ this.b6z_1.r6y_1.write(toJsBuffer(tmp0, tmp2, endIndex));
459
+ tmp_1.g6z_1 = endIndex - tmp2 | 0;
460
+ var bytesRead = this.g6z_1;
461
461
  if (!(bytesRead === 0)) {
462
462
  if (bytesRead < 0)
463
463
  throw IllegalStateException().o4('Returned negative read bytes count');
@@ -466,7 +466,7 @@ function SocketImpl$attachForWritingImpl$slambda() {
466
466
  buffer.p2s(toLong(bytesRead));
467
467
  }
468
468
 
469
- this.d6z_1 = this.f6z_1;
469
+ this.e6z_1 = this.g6z_1;
470
470
  if (false) {
471
471
  this.ac_1 = 2;
472
472
  continue $sm;
@@ -475,12 +475,12 @@ function SocketImpl$attachForWritingImpl$slambda() {
475
475
  this.ac_1 = 7;
476
476
  continue $sm;
477
477
  case 7:
478
- this.g6z_1 = this.d6z_1;
479
- if (this.g6z_1 === -1) {
480
- this.h6z_1 = CompletableDeferred();
481
- this.a6z_1.q6y_1.end(SocketImpl$attachForWritingImpl$slambda$lambda(this.h6z_1));
478
+ this.h6z_1 = this.e6z_1;
479
+ if (this.h6z_1 === -1) {
480
+ this.i6z_1 = CompletableDeferred();
481
+ this.b6z_1.r6y_1.end(SocketImpl$attachForWritingImpl$slambda$lambda(this.i6z_1));
482
482
  this.ac_1 = 9;
483
- suspendResult = this.h6z_1.b21(this);
483
+ suspendResult = this.i6z_1.b21(this);
484
484
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
485
485
  return suspendResult;
486
486
  }
@@ -513,8 +513,8 @@ function SocketImpl$attachForWritingImpl$slambda() {
513
513
  while (true);
514
514
  }
515
515
  p4f($this$reader, completion) {
516
- var i = new (SocketImpl$attachForWritingImpl$slambda())(this.z6y_1, this.a6z_1, completion);
517
- i.b6z_1 = $this$reader;
516
+ var i = new (SocketImpl$attachForWritingImpl$slambda())(this.a6z_1, this.b6z_1, completion);
517
+ i.c6z_1 = $this$reader;
518
518
  return i;
519
519
  }
520
520
  }
@@ -537,25 +537,25 @@ function SocketImpl() {
537
537
  class $ extends SocketBase() {
538
538
  constructor(localAddress, remoteAddress, coroutineContext, incoming, socket) {
539
539
  super(coroutineContext);
540
- this.m6y_1 = localAddress;
541
- this.n6y_1 = remoteAddress;
542
- this.o6y_1 = coroutineContext;
543
- this.p6y_1 = incoming;
544
- this.q6y_1 = socket;
540
+ this.n6y_1 = localAddress;
541
+ this.o6y_1 = remoteAddress;
542
+ this.p6y_1 = coroutineContext;
543
+ this.q6y_1 = incoming;
544
+ this.r6y_1 = socket;
545
545
  }
546
546
  s1x() {
547
- return this.o6y_1;
547
+ return this.p6y_1;
548
548
  }
549
- s6v(channel) {
549
+ t6v(channel) {
550
550
  var tmp = Dispatchers_getInstance().l2a_1;
551
551
  return writer(this, tmp, channel, SocketImpl$attachForReadingImpl$slambda_0(this, channel, null));
552
552
  }
553
- u6v(channel) {
553
+ v6v(channel) {
554
554
  var tmp = Dispatchers_getInstance().l2a_1;
555
555
  return reader(this, tmp, channel, SocketImpl$attachForWritingImpl$slambda_0(channel, this, null));
556
556
  }
557
- d6v() {
558
- this.q6y_1.destroy(null);
557
+ e6v() {
558
+ this.r6y_1.destroy(null);
559
559
  return null;
560
560
  }
561
561
  }
@@ -14,7 +14,7 @@ function tcpConnect(selector, remoteAddress, socketOptions, $completion) {
14
14
  var cancellable = new (CancellableContinuationImpl())(intercepted($completion), 1);
15
15
  cancellable.a23();
16
16
  var socket = get_nodeNet().createConnection(CreateConnectionOptions(remoteAddress, socketOptions));
17
- (new (SocketContext())(socket, remoteAddress, null)).h6x(cancellable);
17
+ (new (SocketContext())(socket, remoteAddress, null)).i6x(cancellable);
18
18
  return cancellable.b20();
19
19
  }
20
20
  //region block: exports
@@ -26,20 +26,20 @@ function PeerSocketOptions() {
26
26
  class $ extends SocketOptions() {
27
27
  constructor(customOptions) {
28
28
  super(customOptions);
29
- this.a6w_1 = -1;
30
29
  this.b6w_1 = -1;
30
+ this.c6w_1 = -1;
31
31
  }
32
- v6v(from) {
33
- super.v6v(from);
32
+ w6v(from) {
33
+ super.w6v(from);
34
34
  if (from instanceof PeerSocketOptions()) {
35
- this.a6w_1 = from.a6w_1;
36
35
  this.b6w_1 = from.b6w_1;
36
+ this.c6w_1 = from.c6w_1;
37
37
  }
38
38
  }
39
- c6w() {
39
+ d6w() {
40
40
  // Inline function 'kotlin.apply' call
41
- var this_0 = new (TCPClientSocketOptions())(HashMap().t8(this.r6u_1));
42
- this.v6v(this);
41
+ var this_0 = new (TCPClientSocketOptions())(HashMap().t8(this.s6u_1));
42
+ this.w6v(this);
43
43
  return this_0;
44
44
  }
45
45
  }
@@ -54,17 +54,17 @@ function TCPClientSocketOptions() {
54
54
  class $ extends PeerSocketOptions() {
55
55
  constructor(customOptions) {
56
56
  super(customOptions);
57
- this.j6w_1 = true;
58
- this.k6w_1 = -1;
59
- this.l6w_1 = null;
60
- this.m6w_1 = new (Long())(-1, 2147483647);
57
+ this.k6w_1 = true;
58
+ this.l6w_1 = -1;
59
+ this.m6w_1 = null;
60
+ this.n6w_1 = new (Long())(-1, 2147483647);
61
61
  }
62
- v6v(from) {
63
- super.v6v(from);
62
+ w6v(from) {
63
+ super.w6v(from);
64
64
  if (from instanceof TCPClientSocketOptions()) {
65
- this.j6w_1 = from.j6w_1;
66
65
  this.k6w_1 = from.k6w_1;
67
66
  this.l6w_1 = from.l6w_1;
67
+ this.m6w_1 = from.m6w_1;
68
68
  }
69
69
  }
70
70
  }
@@ -77,7 +77,7 @@ var CompanionClass;
77
77
  function Companion() {
78
78
  if (CompanionClass === VOID) {
79
79
  class $ {
80
- w6u() {
80
+ x6u() {
81
81
  return new (GeneralSocketOptions())(HashMap().e8());
82
82
  }
83
83
  }
@@ -95,20 +95,20 @@ function SocketOptions() {
95
95
  if (SocketOptionsClass === VOID) {
96
96
  class $ {
97
97
  constructor(customOptions) {
98
- this.r6u_1 = customOptions;
99
- this.s6u_1 = Companion_getInstance().n6w_1;
100
- this.t6u_1 = false;
98
+ this.s6u_1 = customOptions;
99
+ this.t6u_1 = Companion_getInstance().o6w_1;
101
100
  this.u6u_1 = false;
101
+ this.v6u_1 = false;
102
102
  }
103
- v6v(from) {
104
- this.s6u_1 = from.s6u_1;
103
+ w6v(from) {
105
104
  this.t6u_1 = from.t6u_1;
106
105
  this.u6u_1 = from.u6u_1;
106
+ this.v6u_1 = from.v6u_1;
107
107
  }
108
- v6u() {
108
+ w6u() {
109
109
  // Inline function 'kotlin.apply' call
110
- var this_0 = new (PeerSocketOptions())(HashMap().t8(this.r6u_1));
111
- this.v6v(this);
110
+ var this_0 = new (PeerSocketOptions())(HashMap().t8(this.s6u_1));
111
+ this.w6v(this);
112
112
  return this_0;
113
113
  }
114
114
  }
@@ -10,13 +10,13 @@ var SocketTimeoutExceptionClass;
10
10
  function SocketTimeoutException() {
11
11
  if (SocketTimeoutExceptionClass === VOID) {
12
12
  class $ extends IOException() {
13
- static l6z(message, cause) {
13
+ static m6z(message, cause) {
14
14
  var $this = this.a2v(message, cause);
15
- captureStack($this, $this.e6x_1);
15
+ captureStack($this, $this.f6x_1);
16
16
  return $this;
17
17
  }
18
- static f6x(message) {
19
- return this.l6z(message, null);
18
+ static g6x(message) {
19
+ return this.m6z(message, null);
20
20
  }
21
21
  }
22
22
  initMetadataForClass($, 'SocketTimeoutException');
@@ -15,9 +15,9 @@ function Connection() {
15
15
  if (ConnectionClass === VOID) {
16
16
  class $ {
17
17
  constructor(socket, input, output) {
18
- this.s6w_1 = socket;
19
- this.t6w_1 = input;
20
- this.u6w_1 = output;
18
+ this.t6w_1 = socket;
19
+ this.u6w_1 = input;
20
+ this.v6w_1 = output;
21
21
  }
22
22
  }
23
23
  initMetadataForClass($, 'Connection');
@@ -31,14 +31,14 @@ function connection(_this__u8e3s4) {
31
31
  function openReadChannel(_this__u8e3s4) {
32
32
  // Inline function 'kotlin.also' call
33
33
  var this_0 = new (ByteChannel())(false);
34
- _this__u8e3s4.r6v(this_0);
34
+ _this__u8e3s4.s6v(this_0);
35
35
  return this_0;
36
36
  }
37
37
  function openWriteChannel(_this__u8e3s4, autoFlush) {
38
38
  autoFlush = autoFlush === VOID ? false : autoFlush;
39
39
  // Inline function 'kotlin.also' call
40
40
  var this_0 = new (ByteChannel())(autoFlush);
41
- _this__u8e3s4.t6v(this_0);
41
+ _this__u8e3s4.u6v(this_0);
42
42
  return this_0;
43
43
  }
44
44
  function dispose() {
@@ -10,14 +10,14 @@ function TcpSocketBuilder() {
10
10
  if (TcpSocketBuilderClass === VOID) {
11
11
  class $ {
12
12
  constructor(selector, options) {
13
- this.v6w_1 = selector;
14
- this.w6w_1 = options;
13
+ this.w6w_1 = selector;
14
+ this.x6w_1 = options;
15
15
  }
16
- x6w(remoteAddress, configure, $completion) {
16
+ y6w(remoteAddress, configure, $completion) {
17
17
  // Inline function 'kotlin.apply' call
18
- var this_0 = this.w6w_1.c6w();
18
+ var this_0 = this.x6w_1.d6w();
19
19
  configure(this_0);
20
- return tcpConnect(this.v6w_1, remoteAddress, this_0, $completion);
20
+ return tcpConnect(this.w6w_1, remoteAddress, this_0, $completion);
21
21
  }
22
22
  }
23
23
  initMetadataForClass($, 'TcpSocketBuilder', VOID, VOID, VOID, [3, 2]);
@@ -14,11 +14,11 @@ function Companion() {
14
14
  class $ {
15
15
  constructor() {
16
16
  Companion_instance = this;
17
- this.n6w_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(0));
18
- this.o6w_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(2));
19
- this.p6w_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(4));
20
- this.q6w_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(8));
21
- this.r6w_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(16));
17
+ this.o6w_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(0));
18
+ this.p6w_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(2));
19
+ this.q6w_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(4));
20
+ this.r6w_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(8));
21
+ this.s6w_1 = _TypeOfService___init__impl__yslya3(_UByte___init__impl__g9hnc4(16));
22
22
  }
23
23
  }
24
24
  initMetadataForCompanion($);
@@ -125,18 +125,18 @@ function _get_nodeNet_$ref_y13ztx() {
125
125
  }
126
126
  function CreateConnectionOptions$lambda($remoteAddress, $socketOptions) {
127
127
  return function ($this$TcpCreateConnectionOptions) {
128
- $this$TcpCreateConnectionOptions.host = $remoteAddress.i6z_1;
129
- $this$TcpCreateConnectionOptions.port = $remoteAddress.j6z_1;
130
- $this$TcpCreateConnectionOptions.noDelay = $socketOptions.j6w_1;
131
- $this$TcpCreateConnectionOptions.timeout = $socketOptions.m6w_1.equals(new (Long())(-1, 2147483647)) ? 2147483647 : $socketOptions.m6w_1.c2();
132
- $this$TcpCreateConnectionOptions.keepAlive = $socketOptions.l6w_1;
128
+ $this$TcpCreateConnectionOptions.host = $remoteAddress.j6z_1;
129
+ $this$TcpCreateConnectionOptions.port = $remoteAddress.k6z_1;
130
+ $this$TcpCreateConnectionOptions.noDelay = $socketOptions.k6w_1;
131
+ $this$TcpCreateConnectionOptions.timeout = $socketOptions.n6w_1.equals(new (Long())(-1, 2147483647)) ? 2147483647 : $socketOptions.n6w_1.c2();
132
+ $this$TcpCreateConnectionOptions.keepAlive = $socketOptions.m6w_1;
133
133
  return Unit_instance;
134
134
  };
135
135
  }
136
136
  function CreateConnectionOptions$lambda_0($remoteAddress, $socketOptions) {
137
137
  return function ($this$IpcCreateConnectionOptions) {
138
- $this$IpcCreateConnectionOptions.path = $remoteAddress.k6z_1;
139
- $this$IpcCreateConnectionOptions.timeout = $socketOptions.m6w_1.equals(new (Long())(-1, 2147483647)) ? 2147483647 : $socketOptions.m6w_1.c2();
138
+ $this$IpcCreateConnectionOptions.path = $remoteAddress.l6z_1;
139
+ $this$IpcCreateConnectionOptions.timeout = $socketOptions.n6w_1.equals(new (Long())(-1, 2147483647)) ? 2147483647 : $socketOptions.n6w_1.c2();
140
140
  return Unit_instance;
141
141
  };
142
142
  }