@attocash/commons-js 5.1.1 → 5.2.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.
@@ -32,19 +32,19 @@ function AttoWorkerJsPromiseImpl$workThreshold$slambda() {
32
32
  constructor(this$0, $threshold, $target, resultContinuation, $box) {
33
33
  if ($box === VOID)
34
34
  $box = {};
35
- $box.u7v_1 = this$0;
36
- $box.v7v_1 = $threshold;
37
- $box.w7v_1 = $target;
35
+ $box.c7w_1 = this$0;
36
+ $box.d7w_1 = $threshold;
37
+ $box.e7w_1 = $target;
38
38
  super(resultContinuation, $box);
39
39
  }
40
- y7v($this$promise, $completion) {
40
+ g7w($this$promise, $completion) {
41
41
  var tmp = this.d36($this$promise, $completion);
42
42
  tmp.cc_1 = Unit_instance;
43
43
  tmp.dc_1 = null;
44
44
  return tmp.ic();
45
45
  }
46
46
  kd(p1, $completion) {
47
- return this.y7v((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
47
+ return this.g7w((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
48
48
  }
49
49
  ic() {
50
50
  var suspendResult = this.cc_1;
@@ -55,7 +55,7 @@ function AttoWorkerJsPromiseImpl$workThreshold$slambda() {
55
55
  case 0:
56
56
  this.bc_1 = 2;
57
57
  this.ac_1 = 1;
58
- suspendResult = this.u7v_1.z7v_1.t7s(toULong(this.v7v_1), this.w7v_1, this);
58
+ suspendResult = this.c7w_1.h7w_1.b7t(toULong(this.d7w_1), this.e7w_1, this);
59
59
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
60
60
  return suspendResult;
61
61
  }
@@ -78,8 +78,8 @@ function AttoWorkerJsPromiseImpl$workThreshold$slambda() {
78
78
  while (true);
79
79
  }
80
80
  d36($this$promise, completion) {
81
- var i = new (AttoWorkerJsPromiseImpl$workThreshold$slambda())(this.u7v_1, this.v7v_1, this.w7v_1, completion);
82
- i.x7v_1 = $this$promise;
81
+ var i = new (AttoWorkerJsPromiseImpl$workThreshold$slambda())(this.c7w_1, this.d7w_1, this.e7w_1, completion);
82
+ i.f7w_1 = $this$promise;
83
83
  return i;
84
84
  }
85
85
  }
@@ -91,7 +91,7 @@ function AttoWorkerJsPromiseImpl$workThreshold$slambda() {
91
91
  function AttoWorkerJsPromiseImpl$workThreshold$slambda_0(this$0, $threshold, $target, resultContinuation) {
92
92
  var i = new (AttoWorkerJsPromiseImpl$workThreshold$slambda())(this$0, $threshold, $target, resultContinuation);
93
93
  var l = function ($this$promise, $completion) {
94
- return i.y7v($this$promise, $completion);
94
+ return i.g7w($this$promise, $completion);
95
95
  };
96
96
  l.$arity = 1;
97
97
  return l;
@@ -103,20 +103,20 @@ function AttoWorkerJsPromiseImpl$workNetwork$slambda() {
103
103
  constructor(this$0, $network, $timestamp, $target, resultContinuation, $box) {
104
104
  if ($box === VOID)
105
105
  $box = {};
106
- $box.i7w_1 = this$0;
107
- $box.j7w_1 = $network;
108
- $box.k7w_1 = $timestamp;
109
- $box.l7w_1 = $target;
106
+ $box.q7w_1 = this$0;
107
+ $box.r7w_1 = $network;
108
+ $box.s7w_1 = $timestamp;
109
+ $box.t7w_1 = $target;
110
110
  super(resultContinuation, $box);
111
111
  }
112
- y7v($this$promise, $completion) {
112
+ g7w($this$promise, $completion) {
113
113
  var tmp = this.d36($this$promise, $completion);
114
114
  tmp.cc_1 = Unit_instance;
115
115
  tmp.dc_1 = null;
116
116
  return tmp.ic();
117
117
  }
118
118
  kd(p1, $completion) {
119
- return this.y7v((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
119
+ return this.g7w((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
120
120
  }
121
121
  ic() {
122
122
  var suspendResult = this.cc_1;
@@ -127,7 +127,7 @@ function AttoWorkerJsPromiseImpl$workNetwork$slambda() {
127
127
  case 0:
128
128
  this.bc_1 = 2;
129
129
  this.ac_1 = 1;
130
- suspendResult = this.i7w_1.z7v_1.u7s(this.j7w_1, Companion_getInstance().h1v(this.k7w_1), this.l7w_1, this);
130
+ suspendResult = this.q7w_1.h7w_1.c7t(this.r7w_1, Companion_getInstance().h1v(this.s7w_1), this.t7w_1, this);
131
131
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
132
132
  return suspendResult;
133
133
  }
@@ -150,8 +150,8 @@ function AttoWorkerJsPromiseImpl$workNetwork$slambda() {
150
150
  while (true);
151
151
  }
152
152
  d36($this$promise, completion) {
153
- var i = new (AttoWorkerJsPromiseImpl$workNetwork$slambda())(this.i7w_1, this.j7w_1, this.k7w_1, this.l7w_1, completion);
154
- i.m7w_1 = $this$promise;
153
+ var i = new (AttoWorkerJsPromiseImpl$workNetwork$slambda())(this.q7w_1, this.r7w_1, this.s7w_1, this.t7w_1, completion);
154
+ i.u7w_1 = $this$promise;
155
155
  return i;
156
156
  }
157
157
  }
@@ -163,7 +163,7 @@ function AttoWorkerJsPromiseImpl$workNetwork$slambda() {
163
163
  function AttoWorkerJsPromiseImpl$workNetwork$slambda_0(this$0, $network, $timestamp, $target, resultContinuation) {
164
164
  var i = new (AttoWorkerJsPromiseImpl$workNetwork$slambda())(this$0, $network, $timestamp, $target, resultContinuation);
165
165
  var l = function ($this$promise, $completion) {
166
- return i.y7v($this$promise, $completion);
166
+ return i.g7w($this$promise, $completion);
167
167
  };
168
168
  l.$arity = 1;
169
169
  return l;
@@ -175,18 +175,18 @@ function AttoWorkerJsPromiseImpl$workBlock$slambda() {
175
175
  constructor(this$0, $block, resultContinuation, $box) {
176
176
  if ($box === VOID)
177
177
  $box = {};
178
- $box.v7w_1 = this$0;
179
- $box.w7w_1 = $block;
178
+ $box.d7x_1 = this$0;
179
+ $box.e7x_1 = $block;
180
180
  super(resultContinuation, $box);
181
181
  }
182
- y7v($this$promise, $completion) {
182
+ g7w($this$promise, $completion) {
183
183
  var tmp = this.d36($this$promise, $completion);
184
184
  tmp.cc_1 = Unit_instance;
185
185
  tmp.dc_1 = null;
186
186
  return tmp.ic();
187
187
  }
188
188
  kd(p1, $completion) {
189
- return this.y7v((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
189
+ return this.g7w((!(p1 == null) ? isInterface(p1, CoroutineScope()) : false) ? p1 : THROW_CCE(), $completion);
190
190
  }
191
191
  ic() {
192
192
  var suspendResult = this.cc_1;
@@ -197,7 +197,7 @@ function AttoWorkerJsPromiseImpl$workBlock$slambda() {
197
197
  case 0:
198
198
  this.bc_1 = 2;
199
199
  this.ac_1 = 1;
200
- suspendResult = this.v7w_1.z7v_1.v7s(this.w7w_1, this);
200
+ suspendResult = this.d7x_1.h7w_1.d7t(this.e7x_1, this);
201
201
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
202
202
  return suspendResult;
203
203
  }
@@ -220,8 +220,8 @@ function AttoWorkerJsPromiseImpl$workBlock$slambda() {
220
220
  while (true);
221
221
  }
222
222
  d36($this$promise, completion) {
223
- var i = new (AttoWorkerJsPromiseImpl$workBlock$slambda())(this.v7w_1, this.w7w_1, completion);
224
- i.x7w_1 = $this$promise;
223
+ var i = new (AttoWorkerJsPromiseImpl$workBlock$slambda())(this.d7x_1, this.e7x_1, completion);
224
+ i.f7x_1 = $this$promise;
225
225
  return i;
226
226
  }
227
227
  }
@@ -233,7 +233,7 @@ function AttoWorkerJsPromiseImpl$workBlock$slambda() {
233
233
  function AttoWorkerJsPromiseImpl$workBlock$slambda_0(this$0, $block, resultContinuation) {
234
234
  var i = new (AttoWorkerJsPromiseImpl$workBlock$slambda())(this$0, $block, resultContinuation);
235
235
  var l = function ($this$promise, $completion) {
236
- return i.y7v($this$promise, $completion);
236
+ return i.g7w($this$promise, $completion);
237
237
  };
238
238
  l.$arity = 1;
239
239
  return l;
@@ -243,7 +243,7 @@ function AttoWorkerJsPromiseImpl() {
243
243
  if (AttoWorkerJsPromiseImplClass === VOID) {
244
244
  class $ {
245
245
  constructor(worker) {
246
- this.z7v_1 = worker;
246
+ this.h7w_1 = worker;
247
247
  }
248
248
  workThreshold(threshold, target) {
249
249
  var tmp = GlobalScope_instance;
@@ -146,8 +146,8 @@ function $workCOROUTINE$() {
146
146
  class $ extends CoroutineImpl() {
147
147
  constructor(_this__u8e3s4, request, resultContinuation) {
148
148
  super(resultContinuation);
149
- this.l7u_1 = _this__u8e3s4;
150
- this.m7u_1 = request;
149
+ this.t7u_1 = _this__u8e3s4;
150
+ this.u7u_1 = request;
151
151
  }
152
152
  ic() {
153
153
  var suspendResult = this.cc_1;
@@ -158,34 +158,34 @@ function $workCOROUTINE$() {
158
158
  case 0:
159
159
  this.bc_1 = 4;
160
160
  this.ac_1 = 1;
161
- suspendResult = this.l7u_1.d7v_1(this);
161
+ suspendResult = this.t7u_1.l7v_1(this);
162
162
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
163
163
  return suspendResult;
164
164
  }
165
165
 
166
166
  continue $sm;
167
167
  case 1:
168
- this.n7u_1 = suspendResult;
169
- this.o7u_1 = this.l7u_1.c7v_1 + '/works';
168
+ this.v7u_1 = suspendResult;
169
+ this.w7u_1 = this.t7u_1.k7v_1 + '/works';
170
170
  var tmp_0 = this;
171
- tmp_0.p7u_1 = get_httpClient();
171
+ tmp_0.x7u_1 = get_httpClient();
172
172
  var tmp_1 = this;
173
- tmp_1.q7u_1 = this.o7u_1;
174
- this.r7u_1 = this.p7u_1;
175
- this.s7u_1 = this.q7u_1;
173
+ tmp_1.y7u_1 = this.w7u_1;
174
+ this.z7u_1 = this.x7u_1;
175
+ this.a7v_1 = this.y7u_1;
176
176
  var tmp_2 = this;
177
- tmp_2.t7u_1 = this.r7u_1;
178
- this.u7u_1 = this.t7u_1;
179
- this.v7u_1 = new (HttpRequestBuilder())();
180
- this.v7u_1.o50_1 = Companion_getInstance_0().b46_1;
177
+ tmp_2.b7v_1 = this.z7u_1;
178
+ this.c7v_1 = this.b7v_1;
179
+ this.d7v_1 = new (HttpRequestBuilder())();
180
+ this.d7v_1.o50_1 = Companion_getInstance_0().b46_1;
181
181
  var tmp_3 = this;
182
- tmp_3.w7u_1 = this.u7u_1;
182
+ tmp_3.e7v_1 = this.c7v_1;
183
183
  var tmp_4 = this;
184
- var this_0 = this.v7u_1;
185
- url(this_0, this.s7u_1);
184
+ var this_0 = this.d7v_1;
185
+ url(this_0, this.a7v_1);
186
186
  contentType(this_0, Application_getInstance().i3z_1);
187
187
  accept(this_0, Application_getInstance().i3z_1);
188
- var body = this.m7u_1;
188
+ var body = this.u7u_1;
189
189
  if (body == null) {
190
190
  this_0.q50_1 = NullBody_instance;
191
191
  var tmp_5 = getKClass(Request());
@@ -227,23 +227,23 @@ function $workCOROUTINE$() {
227
227
  }
228
228
  }
229
229
 
230
- headers(this_0, WorkerRemote$work$lambda(this.n7u_1));
230
+ headers(this_0, WorkerRemote$work$lambda(this.v7u_1));
231
231
  timeout(this_0, WorkerRemote$work$lambda_0);
232
- tmp_4.x7u_1 = this_0;
233
- this.y7u_1 = this.w7u_1;
234
- this.z7u_1 = this.x7u_1;
232
+ tmp_4.f7v_1 = this_0;
233
+ this.g7v_1 = this.e7v_1;
234
+ this.h7v_1 = this.f7v_1;
235
235
  this.ac_1 = 2;
236
- suspendResult = (new (HttpStatement())(this.z7u_1, this.y7u_1)).q61(this);
236
+ suspendResult = (new (HttpStatement())(this.h7v_1, this.g7v_1)).q61(this);
237
237
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
238
238
  return suspendResult;
239
239
  }
240
240
 
241
241
  continue $sm;
242
242
  case 2:
243
- this.a7v_1 = suspendResult;
244
- this.b7v_1 = this.a7v_1;
243
+ this.i7v_1 = suspendResult;
244
+ this.j7v_1 = this.i7v_1;
245
245
  this.ac_1 = 3;
246
- var tmp_11 = this.b7v_1.l52();
246
+ var tmp_11 = this.j7v_1.l52();
247
247
  var tmp_12 = getKClass(Response());
248
248
  var tmp_13;
249
249
  try {
@@ -299,13 +299,13 @@ function WorkerRemote() {
299
299
  tmp = headerProvider;
300
300
  }
301
301
  headerProvider = tmp;
302
- this.c7v_1 = url;
303
- this.d7v_1 = headerProvider;
302
+ this.k7v_1 = url;
303
+ this.l7v_1 = headerProvider;
304
304
  }
305
- t7s(threshold, target, $completion) {
305
+ b7t(threshold, target, $completion) {
306
306
  throw NotImplementedError().jd();
307
307
  }
308
- u7t(request, $completion) {
308
+ c7u(request, $completion) {
309
309
  var tmp = new ($workCOROUTINE$())(this, request, $completion);
310
310
  tmp.cc_1 = Unit_instance;
311
311
  tmp.dc_1 = null;
@@ -314,8 +314,8 @@ function WorkerRemote() {
314
314
  v5() {
315
315
  }
316
316
  }
317
- protoOf($).u7s = work;
318
- protoOf($).v7s = work_0;
317
+ protoOf($).c7t = work;
318
+ protoOf($).d7t = work_0;
319
319
  initMetadataForClass($, 'WorkerRemote', VOID, VOID, [AttoWorkerOperations()], [2, 1, 3]);
320
320
  WorkerRemoteClass = $;
321
321
  }
@@ -62,8 +62,8 @@ import {
62
62
  ClosedSendChannelException29m33prpq9jaw as ClosedSendChannelException,
63
63
  close$default3plsfhsdbsvbv as close$default,
64
64
  cancel$default2g4arzbcb5isa as cancel$default,
65
- ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
66
65
  SendChannel38sllbxw662ws as SendChannel,
66
+ ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
67
67
  } from './Channel.mjs';
68
68
  import {
69
69
  SelectInstance2isepgzfsd8ur as SelectInstance,
@@ -3240,7 +3240,7 @@ function BufferedChannel() {
3240
3240
  }
3241
3241
  protoOf($).s2i = close$default;
3242
3242
  protoOf($).u2i = cancel$default;
3243
- initMetadataForClass($, 'BufferedChannel', VOID, VOID, [ReceiveChannel(), SendChannel()], [1, 4, 0, 3]);
3243
+ initMetadataForClass($, 'BufferedChannel', VOID, VOID, [SendChannel(), ReceiveChannel()], [1, 4, 0, 3]);
3244
3244
  BufferedChannelClass = $;
3245
3245
  }
3246
3246
  return BufferedChannelClass;
@@ -4,8 +4,8 @@ import { JobCancellationException2g3wpni5v5fkt as JobCancellationException } fro
4
4
  import { THROW_CCE2g6jy02ryeudk as THROW_CCE } from '../../../../kotlin-kotlin-stdlib/kotlin/hacks.mjs';
5
5
  import {
6
6
  close$default3plsfhsdbsvbv as close$default,
7
- ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
8
7
  SendChannel38sllbxw662ws as SendChannel,
8
+ ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
9
9
  } from './Channel.mjs';
10
10
  import { protoOf180f3jzyo7rfj as protoOf } from '../../../../kotlin-kotlin-stdlib/kotlin/js/coreRuntime.mjs';
11
11
  import { initMetadataForClassbxx6q50dy2s7 as initMetadataForClass } from '../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
@@ -62,7 +62,7 @@ function ChannelCoroutine() {
62
62
  }
63
63
  }
64
64
  protoOf($).s2i = close$default;
65
- initMetadataForClass($, 'ChannelCoroutine', VOID, VOID, [AbstractCoroutine(), ReceiveChannel(), SendChannel()], [1, 0]);
65
+ initMetadataForClass($, 'ChannelCoroutine', VOID, VOID, [AbstractCoroutine(), SendChannel(), ReceiveChannel()], [1, 0]);
66
66
  ChannelCoroutineClass = $;
67
67
  }
68
68
  return ChannelCoroutineClass;
@@ -161,7 +161,7 @@ function SelectImplementation() {
161
161
  return TrySelectDetailedResult_0(trySelectInternal(this, clauseObject, result));
162
162
  }
163
163
  }
164
- initMetadataForClass($, 'SelectImplementation', VOID, VOID, [CancelHandler(), SelectInstance(), Waiter()], [0, 2]);
164
+ initMetadataForClass($, 'SelectImplementation', VOID, VOID, [CancelHandler(), Waiter(), SelectInstance()], [0, 2]);
165
165
  SelectImplementationClass = $;
166
166
  }
167
167
  return SelectImplementationClass;
@@ -1,7 +1,7 @@
1
1
  import { EmptyCoroutineContext_getInstance31fow51ayy30t as EmptyCoroutineContext_getInstance } from '../../../../../kotlin-kotlin-stdlib/kotlin/coroutines/CoroutineContextImpl.mjs';
2
2
  import { VOID3gxj6tk5isa35 as VOID } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/void.mjs';
3
- import { CoroutineScopefcb5f5dwqcas as CoroutineScope } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs';
4
3
  import { AutoCloseable1l5p57f9lp7kv as AutoCloseable } from '../../../../../kotlin-kotlin-stdlib/kotlin/AutoCloseableJs.mjs';
4
+ import { CoroutineScopefcb5f5dwqcas as CoroutineScope } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs';
5
5
  import { initMetadataForObject1cxne3s9w65el as initMetadataForObject } from '../../../../../kotlin-kotlin-stdlib/kotlin/js/metadataUtils.mjs';
6
6
  //region block: imports
7
7
  //endregion
@@ -21,7 +21,7 @@ function NoopSelectorManager() {
21
21
  v5() {
22
22
  }
23
23
  }
24
- initMetadataForObject($, 'NoopSelectorManager', VOID, VOID, [CoroutineScope(), AutoCloseable()], [2]);
24
+ initMetadataForObject($, 'NoopSelectorManager', VOID, VOID, [AutoCloseable(), CoroutineScope()], [2]);
25
25
  NoopSelectorManagerClass = $;
26
26
  }
27
27
  return NoopSelectorManagerClass;
@@ -61,8 +61,8 @@ import { toLongw1zpgk99d84b as toLong } from '../../../../../kotlin-kotlin-stdli
61
61
  import { CompletableDeferred2lnqvsbvx74d3 as CompletableDeferred } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CompletableDeferred.mjs';
62
62
  import { SocketBase16wq3cyi6rfg8 as SocketBase } from './SocketBase.mjs';
63
63
  import { Dispatchers_getInstanceitgtkvqfcnx3 as Dispatchers_getInstance } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/Dispatchers.mjs';
64
- import { CoroutineScopefcb5f5dwqcas as CoroutineScope } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs';
65
64
  import { ASocket1hggj5ss9a2ef as ASocket } from './Sockets.mjs';
65
+ import { CoroutineScopefcb5f5dwqcas as CoroutineScope } from '../../../../../kotlinx-coroutines-core/kotlinx/coroutines/CoroutineScope.mjs';
66
66
  //region block: imports
67
67
  //endregion
68
68
  //region block: pre-declaration
@@ -559,7 +559,7 @@ function SocketImpl() {
559
559
  return null;
560
560
  }
561
561
  }
562
- initMetadataForClass($, 'SocketImpl', VOID, VOID, [SocketBase(), CoroutineScope(), ASocket()]);
562
+ initMetadataForClass($, 'SocketImpl', VOID, VOID, [SocketBase(), ASocket(), CoroutineScope()]);
563
563
  SocketImplClass = $;
564
564
  }
565
565
  return SocketImplClass;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@attocash/commons-js",
3
- "version": "5.1.1",
3
+ "version": "5.2.0",
4
4
  "main": "index.mjs",
5
5
  "types": "index.d.ts",
6
6
  "devDependencies": {