@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
@@ -11,11 +11,11 @@ function SocketBuilder() {
11
11
  if (SocketBuilderClass === VOID) {
12
12
  class $ {
13
13
  constructor(selector, options) {
14
- this.o6u_1 = selector;
15
- this.p6u_1 = options;
14
+ this.p6u_1 = selector;
15
+ this.q6u_1 = options;
16
16
  }
17
- q6u() {
18
- return new (TcpSocketBuilder())(this.o6u_1, this.p6u_1.v6u());
17
+ r6u() {
18
+ return new (TcpSocketBuilder())(this.p6u_1, this.q6u_1.w6u());
19
19
  }
20
20
  }
21
21
  initMetadataForClass($, 'SocketBuilder');
@@ -24,7 +24,7 @@ function SocketBuilder() {
24
24
  return SocketBuilderClass;
25
25
  }
26
26
  function aSocket(selector) {
27
- return new (SocketBuilder())(selector, Companion_instance.w6u());
27
+ return new (SocketBuilder())(selector, Companion_instance.x6u());
28
28
  }
29
29
  //region block: exports
30
30
  export {
@@ -37,7 +37,7 @@ function UnixSocketAddress() {
37
37
  class $ extends SocketAddress() {
38
38
  constructor(path) {
39
39
  super();
40
- this.k6z_1 = path;
40
+ this.l6z_1 = path;
41
41
  }
42
42
  equals(other) {
43
43
  var tmp;
@@ -48,13 +48,13 @@ function UnixSocketAddress() {
48
48
  }
49
49
  if (tmp)
50
50
  return false;
51
- return other.k6z_1 === this.k6z_1;
51
+ return other.l6z_1 === this.l6z_1;
52
52
  }
53
53
  hashCode() {
54
- return getStringHashCode(this.k6z_1);
54
+ return getStringHashCode(this.l6z_1);
55
55
  }
56
56
  toString() {
57
- return 'UnixSocketAddress(' + this.k6z_1 + ')';
57
+ return 'UnixSocketAddress(' + this.l6z_1 + ')';
58
58
  }
59
59
  }
60
60
  initMetadataForClass($, 'UnixSocketAddress');
@@ -68,8 +68,8 @@ function InetSocketAddress() {
68
68
  class $ extends SocketAddress() {
69
69
  constructor(hostname, port) {
70
70
  super();
71
- this.i6z_1 = hostname;
72
- this.j6z_1 = port;
71
+ this.j6z_1 = hostname;
72
+ this.k6z_1 = port;
73
73
  }
74
74
  equals(other) {
75
75
  var tmp;
@@ -80,13 +80,13 @@ function InetSocketAddress() {
80
80
  }
81
81
  if (tmp)
82
82
  return false;
83
- return other.i6z_1 === this.i6z_1 && other.j6z_1 === this.j6z_1;
83
+ return other.j6z_1 === this.j6z_1 && other.k6z_1 === this.k6z_1;
84
84
  }
85
85
  hashCode() {
86
- return imul(getStringHashCode(this.i6z_1), 31) + this.j6z_1 | 0;
86
+ return imul(getStringHashCode(this.j6z_1), 31) + this.k6z_1 | 0;
87
87
  }
88
88
  toString() {
89
- return 'InetSocketAddress(' + this.i6z_1 + ':' + this.j6z_1 + ')';
89
+ return 'InetSocketAddress(' + this.j6z_1 + ':' + this.k6z_1 + ')';
90
90
  }
91
91
  }
92
92
  initMetadataForClass($, 'InetSocketAddress');
@@ -40,10 +40,10 @@ import { ASocket1hggj5ss9a2ef as ASocket } from './Sockets.mjs';
40
40
  function checkChannels($this) {
41
41
  var tmp;
42
42
  var tmp_0;
43
- if ($this.x6u_1.kotlinx$atomicfu$value) {
43
+ if ($this.y6u_1.kotlinx$atomicfu$value) {
44
44
  // Inline function 'io.ktor.network.sockets.SocketBase.completedOrNotStarted' call
45
45
  // Inline function 'kotlin.let' call
46
- var it = $this.z6u_1.kotlinx$atomicfu$value;
46
+ var it = $this.a6v_1.kotlinx$atomicfu$value;
47
47
  tmp_0 = it == null || get_isCompleted(it);
48
48
  } else {
49
49
  tmp_0 = false;
@@ -51,16 +51,16 @@ function checkChannels($this) {
51
51
  if (tmp_0) {
52
52
  // Inline function 'io.ktor.network.sockets.SocketBase.completedOrNotStarted' call
53
53
  // Inline function 'kotlin.let' call
54
- var it_0 = $this.a6v_1.kotlinx$atomicfu$value;
54
+ var it_0 = $this.b6v_1.kotlinx$atomicfu$value;
55
55
  tmp = it_0 == null || get_isCompleted(it_0);
56
56
  } else {
57
57
  tmp = false;
58
58
  }
59
59
  if (tmp) {
60
- if (!$this.y6u_1.atomicfu$compareAndSet(false, true))
60
+ if (!$this.z6u_1.atomicfu$compareAndSet(false, true))
61
61
  return Unit_instance;
62
62
  // Inline function 'io.ktor.network.sockets.SocketBase.exception' call
63
- var tmp0_safe_receiver = $this.z6u_1.kotlinx$atomicfu$value;
63
+ var tmp0_safe_receiver = $this.a6v_1.kotlinx$atomicfu$value;
64
64
  var tmp_1;
65
65
  if (tmp0_safe_receiver == null) {
66
66
  tmp_1 = null;
@@ -78,7 +78,7 @@ function checkChannels($this) {
78
78
  var tmp2_safe_receiver = tmp1_safe_receiver == null ? null : getCancellationException(tmp1_safe_receiver);
79
79
  var e1 = tmp2_safe_receiver == null ? null : tmp2_safe_receiver.cause;
80
80
  // Inline function 'io.ktor.network.sockets.SocketBase.exception' call
81
- var tmp0_safe_receiver_0 = $this.a6v_1.kotlinx$atomicfu$value;
81
+ var tmp0_safe_receiver_0 = $this.b6v_1.kotlinx$atomicfu$value;
82
82
  var tmp_3;
83
83
  if (tmp0_safe_receiver_0 == null) {
84
84
  tmp_3 = null;
@@ -95,12 +95,12 @@ function checkChannels($this) {
95
95
  var tmp1_safe_receiver_0 = tmp_3;
96
96
  var tmp2_safe_receiver_0 = tmp1_safe_receiver_0 == null ? null : getCancellationException(tmp1_safe_receiver_0);
97
97
  var e2 = tmp2_safe_receiver_0 == null ? null : tmp2_safe_receiver_0.cause;
98
- var e3 = $this.d6v();
98
+ var e3 = $this.e6v();
99
99
  var combined = combine($this, combine($this, e1, e2), e3);
100
100
  if (combined == null)
101
- $this.e6v().d25();
101
+ $this.f6v().d25();
102
102
  else
103
- $this.e6v().c25(combined);
103
+ $this.f6v().c25(combined);
104
104
  }
105
105
  }
106
106
  function combine($this, e1, e2) {
@@ -130,7 +130,7 @@ function SocketBase$close$slambda() {
130
130
  constructor(this$0, resultContinuation, $box) {
131
131
  if ($box === VOID)
132
132
  $box = {};
133
- $box.n6v_1 = this$0;
133
+ $box.o6v_1 = this$0;
134
134
  super(resultContinuation, $box);
135
135
  }
136
136
  z37($this$launch, $completion) {
@@ -150,14 +150,14 @@ function SocketBase$close$slambda() {
150
150
  switch (tmp) {
151
151
  case 0:
152
152
  this.bc_1 = 3;
153
- this.p6v_1 = this.n6v_1.z6u_1.kotlinx$atomicfu$value;
154
- if (this.p6v_1 == null) {
155
- this.q6v_1 = null;
153
+ this.q6v_1 = this.o6v_1.a6v_1.kotlinx$atomicfu$value;
154
+ if (this.q6v_1 == null) {
155
+ this.r6v_1 = null;
156
156
  this.ac_1 = 2;
157
157
  continue $sm;
158
158
  } else {
159
159
  this.ac_1 = 1;
160
- suspendResult = this.p6v_1.k3b(this);
160
+ suspendResult = this.q6v_1.k3b(this);
161
161
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
162
162
  return suspendResult;
163
163
  }
@@ -166,18 +166,18 @@ function SocketBase$close$slambda() {
166
166
 
167
167
  case 1:
168
168
  var tmp_0 = this;
169
- tmp_0.q6v_1 = Unit_instance;
169
+ tmp_0.r6v_1 = Unit_instance;
170
170
  this.ac_1 = 2;
171
171
  continue $sm;
172
172
  case 2:
173
- var tmp1_safe_receiver = this.n6v_1.a6v_1.kotlinx$atomicfu$value;
173
+ var tmp1_safe_receiver = this.o6v_1.b6v_1.kotlinx$atomicfu$value;
174
174
  if (tmp1_safe_receiver == null)
175
175
  null;
176
176
  else {
177
177
  cancel(tmp1_safe_receiver);
178
178
  }
179
179
 
180
- checkChannels(this.n6v_1);
180
+ checkChannels(this.o6v_1);
181
181
  return Unit_instance;
182
182
  case 3:
183
183
  throw this.dc_1;
@@ -194,8 +194,8 @@ function SocketBase$close$slambda() {
194
194
  while (true);
195
195
  }
196
196
  d36($this$launch, completion) {
197
- var i = new (SocketBase$close$slambda())(this.n6v_1, completion);
198
- i.o6v_1 = $this$launch;
197
+ var i = new (SocketBase$close$slambda())(this.o6v_1, completion);
198
+ i.p6v_1 = $this$launch;
199
199
  return i;
200
200
  }
201
201
  }
@@ -218,75 +218,75 @@ function SocketBase() {
218
218
  class $ extends SelectableBase() {
219
219
  constructor(parent) {
220
220
  super();
221
- this.x6u_1 = atomic$boolean$1(false);
222
221
  this.y6u_1 = atomic$boolean$1(false);
223
- this.z6u_1 = atomic$ref$1(null);
222
+ this.z6u_1 = atomic$boolean$1(false);
224
223
  this.a6v_1 = atomic$ref$1(null);
224
+ this.b6v_1 = atomic$ref$1(null);
225
225
  var tmp = this;
226
- tmp.b6v_1 = SocketBase$channelCompletionHandler$lambda(this);
227
- this.c6v_1 = Job(parent.nc(Key_instance));
226
+ tmp.c6v_1 = SocketBase$channelCompletionHandler$lambda(this);
227
+ this.d6v_1 = Job(parent.nc(Key_instance));
228
228
  }
229
- e6v() {
230
- return this.c6v_1;
229
+ f6v() {
230
+ return this.d6v_1;
231
231
  }
232
232
  s1x() {
233
- return this.e6v();
233
+ return this.f6v();
234
234
  }
235
235
  u21() {
236
236
  this.v5();
237
237
  }
238
238
  v5() {
239
- if (!this.x6u_1.atomicfu$compareAndSet(false, true))
239
+ if (!this.y6u_1.atomicfu$compareAndSet(false, true))
240
240
  return Unit_instance;
241
241
  var tmp = new (CoroutineName())('socket-close');
242
242
  launch(this, tmp, VOID, SocketBase$close$slambda_0(this, null));
243
243
  }
244
- r6v(channel) {
244
+ s6v(channel) {
245
245
  // Inline function 'io.ktor.network.sockets.SocketBase.attachFor' call
246
- var ref = this.a6v_1;
247
- if (this.x6u_1.kotlinx$atomicfu$value) {
246
+ var ref = this.b6v_1;
247
+ if (this.y6u_1.kotlinx$atomicfu$value) {
248
248
  var e = IOException().z2u('Socket closed');
249
249
  close(channel, e);
250
250
  throw e;
251
251
  }
252
- var j = this.s6v(channel);
252
+ var j = this.t6v(channel);
253
253
  if (!ref.atomicfu$compareAndSet(null, j)) {
254
254
  var e_0 = IllegalStateException().o4('reading' + ' channel has already been set');
255
255
  cancel(j);
256
256
  throw e_0;
257
257
  }
258
- if (this.x6u_1.kotlinx$atomicfu$value) {
258
+ if (this.y6u_1.kotlinx$atomicfu$value) {
259
259
  var e_1 = IOException().z2u('Socket closed');
260
260
  cancel(j);
261
261
  close(channel, e_1);
262
262
  throw e_1;
263
263
  }
264
264
  attachJob(channel, j);
265
- invokeOnCompletion(j, this.b6v_1);
265
+ invokeOnCompletion(j, this.c6v_1);
266
266
  return j;
267
267
  }
268
- t6v(channel) {
268
+ u6v(channel) {
269
269
  // Inline function 'io.ktor.network.sockets.SocketBase.attachFor' call
270
- var ref = this.z6u_1;
271
- if (this.x6u_1.kotlinx$atomicfu$value) {
270
+ var ref = this.a6v_1;
271
+ if (this.y6u_1.kotlinx$atomicfu$value) {
272
272
  var e = IOException().z2u('Socket closed');
273
273
  close(channel, e);
274
274
  throw e;
275
275
  }
276
- var j = this.u6v(channel);
276
+ var j = this.v6v(channel);
277
277
  if (!ref.atomicfu$compareAndSet(null, j)) {
278
278
  var e_0 = IllegalStateException().o4('writing' + ' channel has already been set');
279
279
  cancel(j);
280
280
  throw e_0;
281
281
  }
282
- if (this.x6u_1.kotlinx$atomicfu$value) {
282
+ if (this.y6u_1.kotlinx$atomicfu$value) {
283
283
  var e_1 = IOException().z2u('Socket closed');
284
284
  cancel(j);
285
285
  close(channel, e_1);
286
286
  throw e_1;
287
287
  }
288
288
  attachJob(channel, j);
289
- invokeOnCompletion(j, this.b6v_1);
289
+ invokeOnCompletion(j, this.c6v_1);
290
290
  return j;
291
291
  }
292
292
  }