@solibo/solibo-sdk 1.7.8 → 1.7.9
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.
- package/KmLogging-logging.mjs +98 -98
- package/KotlinBigInteger-bignum.mjs +1114 -1114
- package/MultiplatformSettings-multiplatform-settings-test.mjs +18 -18
- package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
- package/Stately-stately-concurrency.mjs +3 -3
- package/bitops-library-bits.mjs +33 -33
- package/bitops-library-endian.mjs +3 -3
- package/core-library-digest.mjs +29 -29
- package/cryptography-kotlin-cryptography-bigint.mjs +27 -27
- package/cryptography-kotlin-cryptography-core.mjs +47 -47
- package/cryptography-kotlin-cryptography-provider-base.mjs +4 -4
- package/cryptography-kotlin-cryptography-provider-webcrypto.mjs +135 -135
- package/cryptography-kotlin-cryptography-random.mjs +15 -15
- package/cryptography-kotlin-cryptography-serialization-asn1-modules.mjs +112 -112
- package/cryptography-kotlin-cryptography-serialization-asn1.mjs +237 -237
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +15 -15
- package/hash-library-md.mjs +30 -30
- package/kotlin-kotlin-stdlib.mjs +11 -11
- package/kotlin-kotlin-stdlib.mjs.map +1 -1
- package/ktor-ktor-client-auth.mjs +224 -224
- package/ktor-ktor-client-encoding.mjs +75 -75
- package/ktor-ktor-client-logging.mjs +520 -520
- package/ktor-ktor-client-mock.mjs +39 -39
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +33135 -32431
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +42 -0
- package/solibo-sdk-sdk.mjs +3119 -3111
|
@@ -26,14 +26,14 @@ initMetadataForClass(PemContent, 'PemContent');
|
|
|
26
26
|
initMetadataForCompanion(Companion);
|
|
27
27
|
//endregion
|
|
28
28
|
function Pem() {
|
|
29
|
-
this.
|
|
30
|
-
this.
|
|
31
|
-
this.
|
|
29
|
+
this.jt9_1 = '-----BEGIN ';
|
|
30
|
+
this.kt9_1 = '-----END ';
|
|
31
|
+
this.lt9_1 = '-----';
|
|
32
32
|
}
|
|
33
|
-
protoOf(Pem).
|
|
34
|
-
return this.
|
|
33
|
+
protoOf(Pem).mt9 = function (bytes) {
|
|
34
|
+
return this.nt9(decodeToString(bytes));
|
|
35
35
|
};
|
|
36
|
-
protoOf(Pem).
|
|
36
|
+
protoOf(Pem).nt9 = function (string) {
|
|
37
37
|
var lines = split(string, ['\n']);
|
|
38
38
|
var tmp$ret$0;
|
|
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.
|
|
112
|
-
this.
|
|
111
|
+
this.ot9_1 = label;
|
|
112
|
+
this.pt9_1 = bytes;
|
|
113
113
|
}
|
|
114
114
|
function ensurePemLabel(_this__u8e3s4, label) {
|
|
115
115
|
// Inline function 'kotlin.check' call
|
|
116
|
-
if (!(_this__u8e3s4.
|
|
117
|
-
var message = 'Wrong PEM label, expected ' + PemLabel__toString_impl_auwpt1(label) + ', actual ' + PemLabel__toString_impl_auwpt1(_this__u8e3s4.
|
|
116
|
+
if (!(_this__u8e3s4.ot9_1 === label)) {
|
|
117
|
+
var message = 'Wrong PEM label, expected ' + PemLabel__toString_impl_auwpt1(label) + ', actual ' + PemLabel__toString_impl_auwpt1(_this__u8e3s4.ot9_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.
|
|
128
|
-
this.
|
|
129
|
-
this.
|
|
130
|
-
this.
|
|
131
|
-
this.
|
|
127
|
+
this.qt9_1 = _PemLabel___init__impl__xifhtx('PUBLIC KEY');
|
|
128
|
+
this.rt9_1 = _PemLabel___init__impl__xifhtx('PRIVATE KEY');
|
|
129
|
+
this.st9_1 = _PemLabel___init__impl__xifhtx('RSA PUBLIC KEY');
|
|
130
|
+
this.tt9_1 = _PemLabel___init__impl__xifhtx('RSA PRIVATE KEY');
|
|
131
|
+
this.ut9_1 = _PemLabel___init__impl__xifhtx('EC PRIVATE KEY');
|
|
132
132
|
}
|
|
133
133
|
var Companion_instance;
|
|
134
134
|
function Companion_getInstance() {
|
package/hash-library-md.mjs
CHANGED
|
@@ -25,12 +25,12 @@ initMetadataForClass(MD5, 'MD5', MD5_init_$Create$, Digest);
|
|
|
25
25
|
function MD5_init_$Init$($this) {
|
|
26
26
|
Digest_init_$Init$('MD5', 64, 16, $this);
|
|
27
27
|
MD5.call($this);
|
|
28
|
-
$this.
|
|
28
|
+
$this.stf_1 = new Int32Array(16);
|
|
29
29
|
var tmp = $this;
|
|
30
30
|
// Inline function 'kotlin.collections.copyOf' call
|
|
31
31
|
// Inline function 'kotlin.js.asDynamic' call
|
|
32
|
-
tmp.
|
|
33
|
-
$this.
|
|
32
|
+
tmp.ttf_1 = Companion_getInstance().wtf_1.slice();
|
|
33
|
+
$this.utf_1 = Bit32_init_$Create$(64);
|
|
34
34
|
return $this;
|
|
35
35
|
}
|
|
36
36
|
function MD5_init_$Create$() {
|
|
@@ -38,16 +38,16 @@ function MD5_init_$Create$() {
|
|
|
38
38
|
}
|
|
39
39
|
function Companion() {
|
|
40
40
|
Companion_instance = this;
|
|
41
|
-
this.
|
|
41
|
+
this.vtf_1 = 64;
|
|
42
42
|
var tmp = this;
|
|
43
43
|
// Inline function 'kotlin.intArrayOf' call
|
|
44
|
-
tmp.
|
|
44
|
+
tmp.wtf_1 = new Int32Array([1732584193, -271733879, -1732584194, 271733878]);
|
|
45
45
|
var tmp_0 = this;
|
|
46
46
|
// Inline function 'kotlin.intArrayOf' call
|
|
47
|
-
tmp_0.
|
|
47
|
+
tmp_0.xtf_1 = new Int32Array([7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]);
|
|
48
48
|
var tmp_1 = this;
|
|
49
49
|
// Inline function 'kotlin.intArrayOf' call
|
|
50
|
-
tmp_1.
|
|
50
|
+
tmp_1.ytf_1 = new Int32Array([-680876936, -389564586, 606105819, -1044525330, -176418897, 1200080426, -1473231341, -45705983, 1770035416, -1958414417, -42063, -1990404162, 1804603682, -40341101, -1502002290, 1236535329, -165796510, -1069501632, 643717713, -373897302, -701558691, 38016083, -660478335, -405537848, 568446438, -1019803690, -187363961, 1163531501, -1444681467, -51403784, 1735328473, -1926607734, -378558, -2022574463, 1839030562, -35309556, -1530992060, 1272893353, -155497632, -1094730640, 681279174, -358537222, -722521979, 76029189, -640364487, -421815835, 530742520, -995338651, -198630844, 1126891415, -1416354905, -57434055, 1700485571, -1894986606, -1051523, -2054922799, 1873313359, -30611744, -1560198380, 1309151649, -145523070, -1120210379, 718787259, -343485551]);
|
|
51
51
|
}
|
|
52
52
|
var Companion_instance;
|
|
53
53
|
function Companion_getInstance() {
|
|
@@ -55,11 +55,11 @@ function Companion_getInstance() {
|
|
|
55
55
|
new Companion();
|
|
56
56
|
return Companion_instance;
|
|
57
57
|
}
|
|
58
|
-
protoOf(MD5).
|
|
59
|
-
var k = Companion_getInstance().
|
|
60
|
-
var s = Companion_getInstance().
|
|
61
|
-
var x = this.
|
|
62
|
-
var state = this.
|
|
58
|
+
protoOf(MD5).ote = function (input, offset) {
|
|
59
|
+
var k = Companion_getInstance().ytf_1;
|
|
60
|
+
var s = Companion_getInstance().xtf_1;
|
|
61
|
+
var x = this.stf_1;
|
|
62
|
+
var state = this.ttf_1;
|
|
63
63
|
var a = state[0];
|
|
64
64
|
var b = state[1];
|
|
65
65
|
var c = state[2];
|
|
@@ -72,7 +72,7 @@ protoOf(MD5).ktc = function (input, offset) {
|
|
|
72
72
|
Little_getInstance();
|
|
73
73
|
// Inline function 'org.kotlincrypto.bitops.endian.Little.leIntAt' call
|
|
74
74
|
var offset_0 = imul(i, 4) + offset | 0;
|
|
75
|
-
var xi = Little_getInstance().
|
|
75
|
+
var xi = Little_getInstance().ltf(input, offset_0);
|
|
76
76
|
x[i] = xi;
|
|
77
77
|
var f = (((b & c | ~b & d) + a | 0) + k[i] | 0) + xi | 0;
|
|
78
78
|
a = d;
|
|
@@ -124,40 +124,40 @@ protoOf(MD5).ktc = function (input, offset) {
|
|
|
124
124
|
state[1] = state[1] + b | 0;
|
|
125
125
|
state[2] = state[2] + c | 0;
|
|
126
126
|
state[3] = state[3] + d | 0;
|
|
127
|
-
this.
|
|
127
|
+
this.utf_1.atf();
|
|
128
128
|
};
|
|
129
|
-
protoOf(MD5).
|
|
130
|
-
var digest = new Int8Array(this.
|
|
131
|
-
this.
|
|
129
|
+
protoOf(MD5).pte = function (buf, bufPos) {
|
|
130
|
+
var digest = new Int8Array(this.hte());
|
|
131
|
+
this.mte(digest, 0, buf, bufPos);
|
|
132
132
|
return digest;
|
|
133
133
|
};
|
|
134
|
-
protoOf(MD5).
|
|
135
|
-
var tmp0_container = this.
|
|
134
|
+
protoOf(MD5).mte = function (dest, destOffset, buf, bufPos) {
|
|
135
|
+
var tmp0_container = this.utf_1.btf(bufPos).yte();
|
|
136
136
|
var bitsLo = tmp0_container.ch();
|
|
137
137
|
var bitsHi = tmp0_container.dh();
|
|
138
138
|
buf[bufPos] = -128;
|
|
139
139
|
if ((bufPos + 1 | 0) > 56) {
|
|
140
|
-
this.
|
|
140
|
+
this.ote(buf, 0);
|
|
141
141
|
fill(buf, 0, 0, 56);
|
|
142
142
|
}
|
|
143
143
|
// Inline function 'org.kotlincrypto.bitops.endian.Little.lePackIntoUnsafe' call
|
|
144
144
|
Little_getInstance();
|
|
145
|
-
Little_getInstance().
|
|
145
|
+
Little_getInstance().mtf(bitsLo, buf, 56);
|
|
146
146
|
// Inline function 'org.kotlincrypto.bitops.endian.Little.lePackIntoUnsafe' call
|
|
147
147
|
Little_getInstance();
|
|
148
|
-
Little_getInstance().
|
|
149
|
-
this.
|
|
148
|
+
Little_getInstance().mtf(bitsHi, buf, 60);
|
|
149
|
+
this.ote(buf, 0);
|
|
150
150
|
Little_getInstance();
|
|
151
151
|
// Inline function 'org.kotlincrypto.bitops.endian.Little.lePackIntoUnsafe' call
|
|
152
|
-
var this_0 = this.
|
|
152
|
+
var this_0 = this.ttf_1;
|
|
153
153
|
var sourceIndexEnd = this_0.length;
|
|
154
|
-
Little_getInstance().
|
|
154
|
+
Little_getInstance().ntf(this_0, dest, destOffset, 0, sourceIndexEnd);
|
|
155
155
|
};
|
|
156
|
-
protoOf(MD5).
|
|
157
|
-
fill_0(this.
|
|
158
|
-
var tmp0 = Companion_getInstance().
|
|
156
|
+
protoOf(MD5).nte = function () {
|
|
157
|
+
fill_0(this.stf_1, 0);
|
|
158
|
+
var tmp0 = Companion_getInstance().wtf_1;
|
|
159
159
|
// Inline function 'kotlin.collections.copyInto' call
|
|
160
|
-
var destination = this.
|
|
160
|
+
var destination = this.ttf_1;
|
|
161
161
|
var endIndex = tmp0.length;
|
|
162
162
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
163
163
|
// Inline function 'kotlin.js.asDynamic' call
|
|
@@ -165,7 +165,7 @@ protoOf(MD5).jtc = function () {
|
|
|
165
165
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
166
166
|
// Inline function 'kotlin.js.asDynamic' call
|
|
167
167
|
arrayCopy(tmp, destination, 0, 0, endIndex);
|
|
168
|
-
this.
|
|
168
|
+
this.utf_1.ctf();
|
|
169
169
|
};
|
|
170
170
|
function MD5() {
|
|
171
171
|
Companion_getInstance();
|
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -42,17 +42,6 @@ if (typeof Math.log10 === 'undefined') {
|
|
|
42
42
|
return Math.log(x) * Math.LOG10E;
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
if (typeof Math.trunc === 'undefined') {
|
|
46
|
-
Math.trunc = function (x) {
|
|
47
|
-
if (isNaN(x)) {
|
|
48
|
-
return NaN;
|
|
49
|
-
}
|
|
50
|
-
if (x > 0) {
|
|
51
|
-
return Math.floor(x);
|
|
52
|
-
}
|
|
53
|
-
return Math.ceil(x);
|
|
54
|
-
};
|
|
55
|
-
}
|
|
56
45
|
if (typeof Math.clz32 === 'undefined') {
|
|
57
46
|
Math.clz32 = function (log, LN2) {
|
|
58
47
|
return function (x) {
|
|
@@ -64,6 +53,17 @@ if (typeof Math.clz32 === 'undefined') {
|
|
|
64
53
|
};
|
|
65
54
|
}(Math.log, Math.LN2);
|
|
66
55
|
}
|
|
56
|
+
if (typeof Math.trunc === 'undefined') {
|
|
57
|
+
Math.trunc = function (x) {
|
|
58
|
+
if (isNaN(x)) {
|
|
59
|
+
return NaN;
|
|
60
|
+
}
|
|
61
|
+
if (x > 0) {
|
|
62
|
+
return Math.floor(x);
|
|
63
|
+
}
|
|
64
|
+
return Math.ceil(x);
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
67
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
68
68
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
69
69
|
var subjectString = this.toString();
|