@solibo/solibo-sdk 1.1.67 → 1.1.68

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.
@@ -26,14 +26,14 @@ initMetadataForClass(PemContent, 'PemContent');
26
26
  initMetadataForCompanion(Companion);
27
27
  //endregion
28
28
  function Pem() {
29
- this.hpj_1 = '-----BEGIN ';
30
- this.ipj_1 = '-----END ';
31
- this.jpj_1 = '-----';
29
+ this.hpk_1 = '-----BEGIN ';
30
+ this.ipk_1 = '-----END ';
31
+ this.jpk_1 = '-----';
32
32
  }
33
- protoOf(Pem).kpj = function (bytes) {
34
- return this.lpj(decodeToString(bytes));
33
+ protoOf(Pem).kpk = function (bytes) {
34
+ return this.lpk(decodeToString(bytes));
35
35
  };
36
- protoOf(Pem).lpj = function (string) {
36
+ protoOf(Pem).lpk = function (string) {
37
37
  var lines = split(string, ['\n']);
38
38
  var tmp$ret$1;
39
39
  $l$block: {
@@ -108,13 +108,13 @@ function Pem_getInstance() {
108
108
  return Pem_instance;
109
109
  }
110
110
  function PemContent(label, bytes) {
111
- this.mpj_1 = label;
112
- this.npj_1 = bytes;
111
+ this.mpk_1 = label;
112
+ this.npk_1 = bytes;
113
113
  }
114
114
  function ensurePemLabel(_this__u8e3s4, label) {
115
115
  // Inline function 'kotlin.check' call
116
- if (!(_this__u8e3s4.mpj_1 === label)) {
117
- var message = 'Wrong PEM label, expected ' + PemLabel__toString_impl_auwpt1(label) + ', actual ' + PemLabel__toString_impl_auwpt1(_this__u8e3s4.mpj_1);
116
+ if (!(_this__u8e3s4.mpk_1 === label)) {
117
+ var message = 'Wrong PEM label, expected ' + PemLabel__toString_impl_auwpt1(label) + ', actual ' + PemLabel__toString_impl_auwpt1(_this__u8e3s4.mpk_1);
118
118
  throw IllegalStateException_init_$Create$(toString(message));
119
119
  }
120
120
  return _this__u8e3s4;
@@ -124,11 +124,11 @@ function _PemLabel___init__impl__xifhtx(representation) {
124
124
  }
125
125
  function Companion() {
126
126
  Companion_instance = this;
127
- this.opj_1 = _PemLabel___init__impl__xifhtx('PUBLIC KEY');
128
- this.ppj_1 = _PemLabel___init__impl__xifhtx('PRIVATE KEY');
129
- this.qpj_1 = _PemLabel___init__impl__xifhtx('RSA PUBLIC KEY');
130
- this.rpj_1 = _PemLabel___init__impl__xifhtx('RSA PRIVATE KEY');
131
- this.spj_1 = _PemLabel___init__impl__xifhtx('EC PRIVATE KEY');
127
+ this.opk_1 = _PemLabel___init__impl__xifhtx('PUBLIC KEY');
128
+ this.ppk_1 = _PemLabel___init__impl__xifhtx('PRIVATE KEY');
129
+ this.qpk_1 = _PemLabel___init__impl__xifhtx('RSA PUBLIC KEY');
130
+ this.rpk_1 = _PemLabel___init__impl__xifhtx('RSA PRIVATE KEY');
131
+ this.spk_1 = _PemLabel___init__impl__xifhtx('EC PRIVATE KEY');
132
132
  }
133
133
  var Companion_instance;
134
134
  function Companion_getInstance() {
@@ -48,6 +48,11 @@ if (typeof Math.clz32 === 'undefined') {
48
48
  };
49
49
  }(Math.log, Math.LN2);
50
50
  }
51
+ if (typeof Math.log10 === 'undefined') {
52
+ Math.log10 = function (x) {
53
+ return Math.log(x) * Math.LOG10E;
54
+ };
55
+ }
51
56
  if (typeof Math.trunc === 'undefined') {
52
57
  Math.trunc = function (x) {
53
58
  if (isNaN(x)) {
@@ -59,17 +64,6 @@ if (typeof Math.trunc === 'undefined') {
59
64
  return Math.ceil(x);
60
65
  };
61
66
  }
62
- if (typeof Math.log10 === 'undefined') {
63
- Math.log10 = function (x) {
64
- return Math.log(x) * Math.LOG10E;
65
- };
66
- }
67
- if (typeof String.prototype.startsWith === 'undefined') {
68
- Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
69
- position = position || 0;
70
- return this.lastIndexOf(searchString, position) === position;
71
- }});
72
- }
73
67
  if (typeof String.prototype.endsWith === 'undefined') {
74
68
  Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
75
69
  var subjectString = this.toString();
@@ -81,6 +75,12 @@ if (typeof String.prototype.endsWith === 'undefined') {
81
75
  return lastIndex !== -1 && lastIndex === position;
82
76
  }});
83
77
  }
78
+ if (typeof String.prototype.startsWith === 'undefined') {
79
+ Object.defineProperty(String.prototype, 'startsWith', {value: function (searchString, position) {
80
+ position = position || 0;
81
+ return this.lastIndexOf(searchString, position) === position;
82
+ }});
83
+ }
84
84
  //endregion
85
85
  //region block: imports
86
86
  var imul_0 = Math.imul;
@@ -230,6 +230,11 @@ initMetadataForClass(SendBroadcast, 'SendBroadcast', VOID, VOID, [Waiter]);
230
230
  initMetadataForClass(BufferedChannelIterator, 'BufferedChannelIterator', VOID, VOID, [Waiter], [0, 3]);
231
231
  initMetadataForCoroutine($sendCOROUTINE$, CoroutineImpl);
232
232
  initMetadataForCoroutine($receiveCOROUTINE$, CoroutineImpl);
233
+ function close$default(cause, $super) {
234
+ cause = cause === VOID ? null : cause;
235
+ return $super === VOID ? this.k2q(cause) : $super.k2q.call(this, cause);
236
+ }
237
+ initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
233
238
  function cancel$default_0(cause, $super) {
234
239
  cause = cause === VOID ? null : cause;
235
240
  var tmp;
@@ -242,12 +247,7 @@ function cancel$default_0(cause, $super) {
242
247
  return tmp;
243
248
  }
244
249
  initMetadataForInterface(ReceiveChannel, 'ReceiveChannel', VOID, VOID, VOID, [0]);
245
- function close$default(cause, $super) {
246
- cause = cause === VOID ? null : cause;
247
- return $super === VOID ? this.k2q(cause) : $super.k2q.call(this, cause);
248
- }
249
- initMetadataForInterface(SendChannel, 'SendChannel', VOID, VOID, VOID, [1]);
250
- initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [ReceiveChannel, SendChannel], [1, 4, 0, 3]);
250
+ initMetadataForClass(BufferedChannel, 'BufferedChannel', VOID, VOID, [SendChannel, ReceiveChannel], [1, 4, 0, 3]);
251
251
  initMetadataForClass(WaiterEB, 'WaiterEB');
252
252
  initMetadataForClass(ReceiveCatching, 'ReceiveCatching', VOID, VOID, [Waiter]);
253
253
  initMetadataForObject(Factory, 'Factory');
@@ -257,7 +257,7 @@ initMetadataForCompanion(Companion);
257
257
  initMetadataForClass(ChannelResult, 'ChannelResult');
258
258
  initMetadataForClass(ClosedReceiveChannelException, 'ClosedReceiveChannelException', VOID, NoSuchElementException);
259
259
  initMetadataForClass(ClosedSendChannelException, 'ClosedSendChannelException', VOID, IllegalStateException);
260
- initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [AbstractCoroutine, ReceiveChannel, SendChannel], [1, 0]);
260
+ initMetadataForClass(ChannelCoroutine, 'ChannelCoroutine', VOID, AbstractCoroutine, [AbstractCoroutine, SendChannel, ReceiveChannel], [1, 0]);
261
261
  initMetadataForClass(ConflatedBufferedChannel, 'ConflatedBufferedChannel', VOID, BufferedChannel, VOID, [1, 0]);
262
262
  initMetadataForInterface(ProducerScope, 'ProducerScope', VOID, VOID, [CoroutineScope, SendChannel], [1]);
263
263
  initMetadataForClass(ProducerCoroutine, 'ProducerCoroutine', VOID, ChannelCoroutine, [ChannelCoroutine, ProducerScope], [1, 0]);
@@ -290,7 +290,7 @@ initMetadataForCoroutine($doSelectCOROUTINE$, CoroutineImpl);
290
290
  initMetadataForCoroutine($doSelectSuspendCOROUTINE$, CoroutineImpl);
291
291
  initMetadataForCoroutine($completeCOROUTINE$, CoroutineImpl);
292
292
  initMetadataForCoroutine($processResultAndInvokeBlockRecoveringExceptionCOROUTINE$, CoroutineImpl);
293
- initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, SelectInstance, Waiter], [0, 2]);
293
+ initMetadataForClass(SelectImplementation, 'SelectImplementation', VOID, VOID, [CancelHandler, Waiter, SelectInstance], [0, 2]);
294
294
  initMetadataForClass(TrySelectDetailedResult, 'TrySelectDetailedResult', VOID, Enum);
295
295
  function tryLock$default(owner, $super) {
296
296
  owner = owner === VOID ? null : owner;