@solibo/home-api 1.33.0 → 1.33.1

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.
@@ -223,11 +223,6 @@ initMetadataForClass(SendBroadcast, 'SendBroadcast', VOID, VOID, [Waiter]);
223
223
  initMetadataForClass(BufferedChannelIterator, 'BufferedChannelIterator', VOID, VOID, [Waiter], [0, 3]);
224
224
  initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
225
225
  initMetadataForCoroutine($receiveCOROUTINE$, CoroutineImpl);
226
- function close$default(cause, $super) {
227
- cause = cause === VOID ? null : cause;
228
- return $super === VOID ? this.close_ukldxa_k$(cause) : $super.close_ukldxa_k$.call(this, cause);
229
- }
230
- initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
231
226
  function cancel$default_0(cause, $super) {
232
227
  cause = cause === VOID ? null : cause;
233
228
  var tmp;
@@ -240,7 +235,12 @@ function cancel$default_0(cause, $super) {
240
235
  return tmp;
241
236
  }
242
237
  initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
243
- initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 4, 0, 3]);
238
+ function close$default(cause, $super) {
239
+ cause = cause === VOID ? null : cause;
240
+ return $super === VOID ? this.close_ukldxa_k$(cause) : $super.close_ukldxa_k$.call(this, cause);
241
+ }
242
+ initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
243
+ initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
244
244
  initMetadataForClass(WaiterEB, 'WaiterEB');
245
245
  initMetadataForClass(ReceiveCatching, 'ReceiveCatching', VOID, VOID, [Waiter]);
246
246
  initMetadataForObject(Factory, 'Factory');
@@ -250,7 +250,7 @@ initMetadataForCompanion(Companion);
250
250
  initMetadataForClass(ChannelResult, 'ChannelResult');
251
251
  initMetadataForClass(ClosedReceiveChannelException, 'ClosedReceiveChannelException', VOID, NoSuchElementException);
252
252
  initMetadataForClass(ClosedSendChannelException, 'ClosedSendChannelException', VOID, IllegalStateException);
253
- initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [SendChannel, ReceiveChannel], [1, 0]);
253
+ initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [ReceiveChannel, SendChannel], [1, 0]);
254
254
  initMetadataForClass(ConflatedBufferedChannel, 'ConflatedBufferedChannel', VOID, BufferedChannel, VOID, [1, 0]);
255
255
  initMetadataForInterface(ProducerScope, 'ProducerScope', VOID, VOID, [CoroutineScope, SendChannel], [1]);
256
256
  initMetadataForClass(ProducerCoroutine, 'ProducerCoroutine', VOID, ChannelCoroutine, [ProducerScope], [1, 0]);
@@ -80,8 +80,8 @@ import {
80
80
  _ChannelResult___get_isClosed__impl__mg7kuul2jcxqhngcqm as _ChannelResult___get_isClosed__impl__mg7kuu,
81
81
  close$default2suggcywjwe8g as close$default,
82
82
  cancel$default3v09jht7i082i as cancel$default,
83
- SendChannel38sllbxw662ws as SendChannel,
84
83
  ReceiveChannel24wu5e2tj9lbp as ReceiveChannel,
84
+ SendChannel38sllbxw662ws as SendChannel,
85
85
  } from './kotlinx-coroutines-core.mjs';
86
86
  import {
87
87
  get_isTraceEnabled82xibuu04nxp as get_isTraceEnabled,
@@ -145,7 +145,7 @@ initMetadataForCompanion(Companion_4);
145
145
  initMetadataForClass(ChannelConfig, 'ChannelConfig');
146
146
  initMetadataForClass(ChannelOverflow, 'ChannelOverflow', VOID, Enum);
147
147
  initMetadataForCompanion(Companion_5);
148
- initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 0]);
148
+ initMetadataForClass(BoundedChannel, 'BoundedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 0]);
149
149
  initMetadataForClass(ChannelOverflowException, 'ChannelOverflowException', VOID, RuntimeException);
150
150
  initMetadataForInterface(WebSocketExtension, 'WebSocketExtension');
151
151
  initMetadataForClass(WebSocketExtensionsConfig, 'WebSocketExtensionsConfig', WebSocketExtensionsConfig);
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "directory": "sdk/home-api"
18
18
  },
19
19
  "main": "solibo-sdk-sdk-home-api.mjs",
20
- "version": "1.33.0",
20
+ "version": "1.33.1",
21
21
  "name": "@solibo/home-api",
22
22
  "dependencies": {
23
23
  "ws": "8.21.3",
@@ -4398,7 +4398,7 @@ initMetadataForCoroutine($body$suspendBridgeCOROUTINE$_1, CoroutineImpl);
4398
4398
  initMetadataForCoroutine($typedBody$suspendBridgeCOROUTINE$_1, CoroutineImpl);
4399
4399
  initMetadataForClass(MappedBodyProvider, 'MappedBodyProvider', VOID, VOID, [BodyProvider], [1, 2]);
4400
4400
  initMetadataForCoroutine($decodeBodyCOROUTINE$, CoroutineImpl);
4401
- initMetadataForCoroutine($base64ByteArrayBodyCOROUTINE$, CoroutineImpl);
4401
+ initMetadataForCoroutine($fileBodyCOROUTINE$, CoroutineImpl);
4402
4402
  initMetadataForCompanion(Companion_966, VOID, [KSerializer]);
4403
4403
  initMetadataForClass(OctetByteArray, 'OctetByteArray', VOID, VOID, VOID, VOID, VOID, {0: Companion_getInstance_969});
4404
4404
  initMetadataForClass(PartConfig, 'PartConfig', PartConfig);
@@ -316937,12 +316937,22 @@ function decodeBody(_this__u8e3s4, type, $completion) {
316937
316937
  tmp.exception_1 = null;
316938
316938
  return tmp.doResume_5yljmg_k$();
316939
316939
  }
316940
- function base64ByteArrayBody(_this__u8e3s4, $completion) {
316941
- var tmp = new $base64ByteArrayBodyCOROUTINE$(_this__u8e3s4, $completion);
316940
+ function fileBody(_this__u8e3s4, serializer, raw, $completion) {
316941
+ var tmp = new $fileBodyCOROUTINE$(_this__u8e3s4, serializer, raw, $completion);
316942
316942
  tmp.result_1 = Unit_instance;
316943
316943
  tmp.exception_1 = null;
316944
316944
  return tmp.doResume_5yljmg_k$();
316945
316945
  }
316946
+ function Base64ByteArray$_init_$ref_e13pdp() {
316947
+ return constructCallableReference(function (p0) {
316948
+ return new Base64ByteArray(p0);
316949
+ }, 1, 0, 58, '<init>');
316950
+ }
316951
+ function OctetByteArray$_init_$ref_xqpg5f() {
316952
+ return constructCallableReference(function (p0) {
316953
+ return new OctetByteArray(p0);
316954
+ }, 1, 0, 59, '<init>');
316955
+ }
316946
316956
  function $decodeBodyCOROUTINE$(_this__u8e3s4, type, resultContinuation) {
316947
316957
  CoroutineImpl.call(this, resultContinuation);
316948
316958
  this._this__u8e3s4__1 = _this__u8e3s4;
@@ -316955,39 +316965,55 @@ protoOf($decodeBodyCOROUTINE$).doResume_5yljmg_k$ = function () {
316955
316965
  var tmp = this.state_1;
316956
316966
  switch (tmp) {
316957
316967
  case 0:
316958
- this.exceptionState_1 = 4;
316959
- if (this.type_1.type_1.equals(getKClass(Base64ByteArray))) {
316960
- this.state_1 = 2;
316961
- suspendResult = base64ByteArrayBody(this._this__u8e3s4__1, this);
316968
+ this.exceptionState_1 = 5;
316969
+ var tmp0_subject = this.type_1.type_1;
316970
+ if (tmp0_subject.equals(getKClass(Base64ByteArray))) {
316971
+ this.state_1 = 3;
316972
+ var tmp_0 = Companion_getInstance_967().serializer_9w0wvi_k$();
316973
+ suspendResult = fileBody(this._this__u8e3s4__1, tmp_0, Base64ByteArray$_init_$ref_e13pdp(), this);
316962
316974
  if (suspendResult === get_COROUTINE_SUSPENDED()) {
316963
316975
  return suspendResult;
316964
316976
  }
316965
316977
  continue $sm;
316966
316978
  } else {
316967
- this.state_1 = 1;
316968
- suspendResult = this._this__u8e3s4__1.get_call_wojxrb_k$().body_3ijhx3_k$(this.type_1, this);
316969
- if (suspendResult === get_COROUTINE_SUSPENDED()) {
316970
- return suspendResult;
316979
+ if (tmp0_subject.equals(getKClass(OctetByteArray))) {
316980
+ this.state_1 = 2;
316981
+ var tmp_1 = Companion_getInstance_969().serializer_9w0wvi_k$();
316982
+ suspendResult = fileBody(this._this__u8e3s4__1, tmp_1, OctetByteArray$_init_$ref_xqpg5f(), this);
316983
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
316984
+ return suspendResult;
316985
+ }
316986
+ continue $sm;
316987
+ } else {
316988
+ this.state_1 = 1;
316989
+ suspendResult = this._this__u8e3s4__1.get_call_wojxrb_k$().body_3ijhx3_k$(this.type_1, this);
316990
+ if (suspendResult === get_COROUTINE_SUSPENDED()) {
316991
+ return suspendResult;
316992
+ }
316993
+ continue $sm;
316971
316994
  }
316972
- continue $sm;
316973
316995
  }
316974
316996
 
316975
316997
  case 1:
316976
316998
  this.WHEN_RESULT0__1 = suspendResult;
316977
- this.state_1 = 3;
316999
+ this.state_1 = 4;
316978
317000
  continue $sm;
316979
317001
  case 2:
316980
317002
  this.WHEN_RESULT0__1 = suspendResult;
316981
- this.state_1 = 3;
317003
+ this.state_1 = 4;
316982
317004
  continue $sm;
316983
317005
  case 3:
316984
- return this.WHEN_RESULT0__1;
317006
+ this.WHEN_RESULT0__1 = suspendResult;
317007
+ this.state_1 = 4;
317008
+ continue $sm;
316985
317009
  case 4:
317010
+ return this.WHEN_RESULT0__1;
317011
+ case 5:
316986
317012
  throw this.exception_1;
316987
317013
  }
316988
317014
  } catch ($p) {
316989
317015
  var e = $p;
316990
- if (this.exceptionState_1 === 4) {
317016
+ if (this.exceptionState_1 === 5) {
316991
317017
  throw e;
316992
317018
  } else {
316993
317019
  this.state_1 = this.exceptionState_1;
@@ -316996,11 +317022,13 @@ protoOf($decodeBodyCOROUTINE$).doResume_5yljmg_k$ = function () {
316996
317022
  }
316997
317023
  while (true);
316998
317024
  };
316999
- function $base64ByteArrayBodyCOROUTINE$(_this__u8e3s4, resultContinuation) {
317025
+ function $fileBodyCOROUTINE$(_this__u8e3s4, serializer, raw, resultContinuation) {
317000
317026
  CoroutineImpl.call(this, resultContinuation);
317001
317027
  this._this__u8e3s4__1 = _this__u8e3s4;
317028
+ this.serializer_1 = serializer;
317029
+ this.raw_1 = raw;
317002
317030
  }
317003
- protoOf($base64ByteArrayBodyCOROUTINE$).doResume_5yljmg_k$ = function () {
317031
+ protoOf($fileBodyCOROUTINE$).doResume_5yljmg_k$ = function () {
317004
317032
  var suspendResult = this.result_1;
317005
317033
  $sm: do
317006
317034
  try {
@@ -317021,7 +317049,7 @@ protoOf($base64ByteArrayBodyCOROUTINE$).doResume_5yljmg_k$ = function () {
317021
317049
  var json = !(contentType == null) && (contentType.match_syvve3_k$(Application_getInstance().Json_1) || endsWith(contentType.contentSubtype_1, '+json'));
317022
317050
  if (json) {
317023
317051
  try {
317024
- return Default_getInstance_0().decodeFromString_jwu9sq_k$(Companion_getInstance_967().serializer_9w0wvi_k$(), decodeToString(bytes));
317052
+ return Default_getInstance_0().decodeFromString_jwu9sq_k$(this.serializer_1, decodeToString(bytes));
317025
317053
  } catch ($p) {
317026
317054
  if ($p instanceof IllegalArgumentException) {
317027
317055
  var e = $p;
@@ -317031,7 +317059,7 @@ protoOf($base64ByteArrayBodyCOROUTINE$).doResume_5yljmg_k$ = function () {
317031
317059
  }
317032
317060
  }
317033
317061
 
317034
- return new Base64ByteArray(bytes);
317062
+ return this.raw_1(bytes);
317035
317063
  case 2:
317036
317064
  throw this.exception_1;
317037
317065
  }