@solibo/solibo-sdk 1.1.12 → 1.1.13

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.
@@ -62,19 +62,19 @@ function MockEngine_init_$Create$(config) {
62
62
  }
63
63
  function Companion() {
64
64
  }
65
- protoOf(Companion).wnv = function (block) {
65
+ protoOf(Companion).inx = function (block) {
66
66
  // Inline function 'kotlin.apply' call
67
67
  var this_0 = new MockEngineConfig();
68
68
  block(this_0);
69
69
  return MockEngine_init_$Create$(this_0);
70
70
  };
71
71
  protoOf(Companion).w4b = function (block) {
72
- return this.wnv(block);
72
+ return this.inx(block);
73
73
  };
74
- protoOf(Companion).xnv = function (handler) {
74
+ protoOf(Companion).jnx = function (handler) {
75
75
  // Inline function 'kotlin.apply' call
76
76
  var this_0 = new MockEngineConfig();
77
- this_0.cnw_1.e1(handler);
77
+ this_0.onx_1.e1(handler);
78
78
  return MockEngine_init_$Create$(this_0);
79
79
  };
80
80
  var Companion_instance;
@@ -82,9 +82,9 @@ function Companion_getInstance_1() {
82
82
  return Companion_instance;
83
83
  }
84
84
  function MockEngine$execute$slambda($handler, $callContext, $data, resultContinuation) {
85
- this.mnw_1 = $handler;
86
- this.nnw_1 = $callContext;
87
- this.onw_1 = $data;
85
+ this.ynx_1 = $handler;
86
+ this.znx_1 = $callContext;
87
+ this.any_1 = $data;
88
88
  CoroutineImpl.call(this, resultContinuation);
89
89
  }
90
90
  protoOf(MockEngine$execute$slambda).k4h = function ($this$withContext, $completion) {
@@ -105,7 +105,7 @@ protoOf(MockEngine$execute$slambda).t9 = function () {
105
105
  case 0:
106
106
  this.m9_1 = 2;
107
107
  this.l9_1 = 1;
108
- suspendResult = this.mnw_1(new MockRequestHandleScope(this.nnw_1), this.onw_1, this);
108
+ suspendResult = this.ynx_1(new MockRequestHandleScope(this.znx_1), this.any_1, this);
109
109
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
110
110
  return suspendResult;
111
111
  }
@@ -128,8 +128,8 @@ protoOf(MockEngine$execute$slambda).t9 = function () {
128
128
  while (true);
129
129
  };
130
130
  protoOf(MockEngine$execute$slambda).r30 = function ($this$withContext, completion) {
131
- var i = new MockEngine$execute$slambda(this.mnw_1, this.nnw_1, this.onw_1, completion);
132
- i.pnw_1 = $this$withContext;
131
+ var i = new MockEngine$execute$slambda(this.ynx_1, this.znx_1, this.any_1, completion);
132
+ i.bny_1 = $this$withContext;
133
133
  return i;
134
134
  };
135
135
  function MockEngine$execute$slambda_0($handler, $callContext, $data, resultContinuation) {
@@ -142,14 +142,14 @@ function MockEngine$execute$slambda_0($handler, $callContext, $data, resultConti
142
142
  }
143
143
  function MockEngine$close$lambda(this$0) {
144
144
  return function (it) {
145
- this$0.xnw_1.a24();
145
+ this$0.jny_1.a24();
146
146
  return Unit_instance;
147
147
  };
148
148
  }
149
149
  function $executeCOROUTINE$(_this__u8e3s4, data, resultContinuation) {
150
150
  CoroutineImpl.call(this, resultContinuation);
151
- this.jnx_1 = _this__u8e3s4;
152
- this.knx_1 = data;
151
+ this.vny_1 = _this__u8e3s4;
152
+ this.wny_1 = data;
153
153
  }
154
154
  protoOf($executeCOROUTINE$).t9 = function () {
155
155
  var suspendResult = this.n9_1;
@@ -168,22 +168,22 @@ protoOf($executeCOROUTINE$).t9 = function () {
168
168
  continue $sm;
169
169
  case 1:
170
170
  var callContext_0 = suspendResult;
171
- this.jnx_1.wnw_1;
172
- if (this.jnx_1.anx_1 >= this.jnx_1.y4a().cnw_1.g1()) {
173
- var message = 'Unhandled ' + this.knx_1.c4g_1.toString();
171
+ this.vny_1.iny_1;
172
+ if (this.vny_1.mny_1 >= this.vny_1.y4a().onx_1.g1()) {
173
+ var message = 'Unhandled ' + this.wny_1.c4g_1.toString();
174
174
  throw IllegalStateException_init_$Create$(toString(message));
175
175
  }
176
176
 
177
- var handler = this.jnx_1.y4a().cnw_1.h1(this.jnx_1.anx_1);
178
- this.jnx_1.anx_1 = this.jnx_1.anx_1 + 1 | 0;
179
- if (this.jnx_1.y4a().dnw_1) {
180
- this.jnx_1.anx_1 = this.jnx_1.anx_1 % this.jnx_1.y4a().cnw_1.g1() | 0;
177
+ var handler = this.vny_1.y4a().onx_1.h1(this.vny_1.mny_1);
178
+ this.vny_1.mny_1 = this.vny_1.mny_1 + 1 | 0;
179
+ if (this.vny_1.y4a().pnx_1) {
180
+ this.vny_1.mny_1 = this.vny_1.mny_1 % this.vny_1.y4a().onx_1.g1() | 0;
181
181
  }
182
182
 
183
183
  var handler_0 = handler;
184
184
  this.l9_1 = 2;
185
- var tmp_0 = this.jnx_1.v4h().wj(callContext_0);
186
- suspendResult = withContext(tmp_0, MockEngine$execute$slambda_0(handler_0, callContext_0, this.knx_1, null), this);
185
+ var tmp_0 = this.vny_1.v4h().wj(callContext_0);
186
+ suspendResult = withContext(tmp_0, MockEngine$execute$slambda_0(handler_0, callContext_0, this.wny_1, null), this);
187
187
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
188
188
  return suspendResult;
189
189
  }
@@ -191,9 +191,9 @@ protoOf($executeCOROUTINE$).t9 = function () {
191
191
  continue $sm;
192
192
  case 2:
193
193
  var response = suspendResult;
194
- this.jnx_1.wnw_1;
195
- this.jnx_1.ynw_1.e1(this.knx_1);
196
- this.jnx_1.znw_1.e1(response);
194
+ this.vny_1.iny_1;
195
+ this.vny_1.kny_1.e1(this.wny_1);
196
+ this.vny_1.lny_1.e1(response);
197
197
  return response;
198
198
  case 3:
199
199
  throw this.o9_1;
@@ -211,31 +211,31 @@ protoOf($executeCOROUTINE$).t9 = function () {
211
211
  };
212
212
  function MockEngine(config, throwIfEmptyConfig) {
213
213
  HttpClientEngineBase.call(this, 'ktor-mock');
214
- this.unw_1 = config;
215
- this.vnw_1 = setOf([HttpTimeoutCapability_instance, WebSocketCapability_instance, WebSocketExtensionsCapability_instance]);
216
- this.wnw_1 = new Object();
217
- this.xnw_1 = Job();
214
+ this.gny_1 = config;
215
+ this.hny_1 = setOf([HttpTimeoutCapability_instance, WebSocketCapability_instance, WebSocketExtensionsCapability_instance]);
216
+ this.iny_1 = new Object();
217
+ this.jny_1 = Job();
218
218
  var tmp = this;
219
219
  // Inline function 'kotlin.collections.mutableListOf' call
220
- tmp.ynw_1 = ArrayList_init_$Create$();
220
+ tmp.kny_1 = ArrayList_init_$Create$();
221
221
  var tmp_0 = this;
222
222
  // Inline function 'kotlin.collections.mutableListOf' call
223
- tmp_0.znw_1 = ArrayList_init_$Create$();
224
- this.anx_1 = 0;
223
+ tmp_0.lny_1 = ArrayList_init_$Create$();
224
+ this.mny_1 = 0;
225
225
  if (throwIfEmptyConfig) {
226
226
  // Inline function 'kotlin.collections.isNotEmpty' call
227
227
  // Inline function 'kotlin.check' call
228
- if (!!this.y4a().cnw_1.r()) {
228
+ if (!!this.y4a().onx_1.r()) {
229
229
  var message = 'No request handler provided in [MockEngineConfig], please provide at least one.';
230
230
  throw IllegalStateException_init_$Create$(toString(message));
231
231
  }
232
232
  }
233
233
  }
234
234
  protoOf(MockEngine).y4a = function () {
235
- return this.unw_1;
235
+ return this.gny_1;
236
236
  };
237
237
  protoOf(MockEngine).j4g = function () {
238
- return this.vnw_1;
238
+ return this.hny_1;
239
239
  };
240
240
  protoOf(MockEngine).l4h = function (data, $completion) {
241
241
  var tmp = new $executeCOROUTINE$(this, data, $completion);
@@ -249,14 +249,14 @@ protoOf(MockEngine).c5 = function () {
249
249
  tmp.v1w(MockEngine$close$lambda(this));
250
250
  };
251
251
  function MockRequestHandleScope(callContext) {
252
- this.lnx_1 = callContext;
252
+ this.xny_1 = callContext;
253
253
  }
254
254
  function MockEngineConfig() {
255
255
  HttpClientEngineConfig.call(this);
256
256
  var tmp = this;
257
257
  // Inline function 'kotlin.collections.mutableListOf' call
258
- tmp.cnw_1 = ArrayList_init_$Create$();
259
- this.dnw_1 = true;
258
+ tmp.onx_1 = ArrayList_init_$Create$();
259
+ this.pnx_1 = true;
260
260
  }
261
261
  var EmptyArray;
262
262
  function respond(_this__u8e3s4, content, status, headers) {
@@ -269,7 +269,7 @@ function respond_0(_this__u8e3s4, content, status, headers) {
269
269
  status = status === VOID ? Companion_getInstance().g3l_1 : status;
270
270
  headers = headers === VOID ? headersOf() : headers;
271
271
  _init_properties_MockUtils_kt__e2fup7();
272
- return new HttpResponseData(status, GMTDate(), headers, Companion_getInstance_0().w3k_1, content, _this__u8e3s4.lnx_1);
272
+ return new HttpResponseData(status, GMTDate(), headers, Companion_getInstance_0().w3k_1, content, _this__u8e3s4.xny_1);
273
273
  }
274
274
  var properties_initialized_MockUtils_kt_4monrr;
275
275
  function _init_properties_MockUtils_kt__e2fup7() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "main": "index.js",
3
3
  "types": "index.d.ts",
4
- "version": "1.1.12",
4
+ "version": "1.1.13",
5
5
  "name": "@solibo/solibo-sdk",
6
6
  "dependencies": {
7
7
  "@js-joda/core": "3.2.0",