@solibo/solibo-sdk 1.1.37 → 1.1.38
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 +99 -99
- package/Kotlin-DateTime-library-kotlinx-datetime.mjs +1 -1
- package/KotlinBigInteger-bignum.mjs +1114 -1114
- package/MultiplatformSettings-multiplatform-settings.mjs +16 -16
- package/Stately-stately-concurrency.mjs +4 -4
- 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 +240 -240
- package/cryptography-kotlin-cryptography-serialization-pem.mjs +15 -15
- package/kotlin-kotlin-stdlib.mjs +16 -16
- package/ktor-ktor-client-auth.mjs +224 -224
- package/ktor-ktor-client-logging.mjs +516 -516
- package/ktor-ktor-client-mock.mjs +39 -39
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.mjs +8305 -7504
- package/solibo-sdk-sdk-home-api.mjs.map +1 -1
- package/solibo-sdk-sdk.d.mts +6 -0
- package/solibo-sdk-sdk.mjs +2344 -2344
|
@@ -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.wpc_1 = '-----BEGIN ';
|
|
30
|
+
this.xpc_1 = '-----END ';
|
|
31
|
+
this.ypc_1 = '-----';
|
|
32
32
|
}
|
|
33
|
-
protoOf(Pem).
|
|
34
|
-
return this.
|
|
33
|
+
protoOf(Pem).zpc = function (bytes) {
|
|
34
|
+
return this.apd(decodeToString(bytes));
|
|
35
35
|
};
|
|
36
|
-
protoOf(Pem).
|
|
36
|
+
protoOf(Pem).apd = 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.
|
|
112
|
-
this.
|
|
111
|
+
this.bpd_1 = label;
|
|
112
|
+
this.cpd_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.bpd_1 === label)) {
|
|
117
|
+
var message = 'Wrong PEM label, expected ' + PemLabel__toString_impl_auwpt1(label) + ', actual ' + PemLabel__toString_impl_auwpt1(_this__u8e3s4.bpd_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.dpd_1 = _PemLabel___init__impl__xifhtx('PUBLIC KEY');
|
|
128
|
+
this.epd_1 = _PemLabel___init__impl__xifhtx('PRIVATE KEY');
|
|
129
|
+
this.fpd_1 = _PemLabel___init__impl__xifhtx('RSA PUBLIC KEY');
|
|
130
|
+
this.gpd_1 = _PemLabel___init__impl__xifhtx('RSA PRIVATE KEY');
|
|
131
|
+
this.hpd_1 = _PemLabel___init__impl__xifhtx('EC PRIVATE KEY');
|
|
132
132
|
}
|
|
133
133
|
var Companion_instance;
|
|
134
134
|
function Companion_getInstance() {
|
package/kotlin-kotlin-stdlib.mjs
CHANGED
|
@@ -37,17 +37,6 @@ if (typeof Array.prototype.fill === 'undefined') {
|
|
|
37
37
|
Object.defineProperty(TypedArray.prototype, 'fill', {value: Array.prototype.fill});
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
if (typeof Math.clz32 === 'undefined') {
|
|
41
|
-
Math.clz32 = function (log, LN2) {
|
|
42
|
-
return function (x) {
|
|
43
|
-
var asUint = x >>> 0;
|
|
44
|
-
if (asUint === 0) {
|
|
45
|
-
return 32;
|
|
46
|
-
}
|
|
47
|
-
return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
|
|
48
|
-
};
|
|
49
|
-
}(Math.log, Math.LN2);
|
|
50
|
-
}
|
|
51
40
|
if (typeof Math.trunc === 'undefined') {
|
|
52
41
|
Math.trunc = function (x) {
|
|
53
42
|
if (isNaN(x)) {
|
|
@@ -64,11 +53,16 @@ if (typeof Math.log10 === 'undefined') {
|
|
|
64
53
|
return Math.log(x) * Math.LOG10E;
|
|
65
54
|
};
|
|
66
55
|
}
|
|
67
|
-
if (typeof
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
56
|
+
if (typeof Math.clz32 === 'undefined') {
|
|
57
|
+
Math.clz32 = function (log, LN2) {
|
|
58
|
+
return function (x) {
|
|
59
|
+
var asUint = x >>> 0;
|
|
60
|
+
if (asUint === 0) {
|
|
61
|
+
return 32;
|
|
62
|
+
}
|
|
63
|
+
return 31 - (log(asUint) / LN2 | 0) | 0; // the "| 0" acts like math.floor
|
|
64
|
+
};
|
|
65
|
+
}(Math.log, Math.LN2);
|
|
72
66
|
}
|
|
73
67
|
if (typeof String.prototype.endsWith === 'undefined') {
|
|
74
68
|
Object.defineProperty(String.prototype, 'endsWith', {value: function (searchString, position) {
|
|
@@ -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;
|