@solibo/solibo-sdk 1.0.23 → 1.0.24-SNAPSHOT
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.js +228 -5
- package/KmLogging-logging.js.map +1 -1
- package/Stately-stately-concurrency.js +27 -5
- package/Stately-stately-concurrency.js.map +1 -1
- package/cryptography-kotlin-cryptography-core.js +58 -58
- package/cryptography-kotlin-cryptography-core.js.map +1 -1
- package/cryptography-kotlin-cryptography-provider-webcrypto.js +7 -7
- package/cryptography-kotlin-cryptography-provider-webcrypto.js.map +1 -1
- package/cryptography-kotlin-cryptography-random.js +74 -8
- package/cryptography-kotlin-cryptography-random.js.map +1 -1
- package/kotlin-kotlin-stdlib.js +14076 -1100
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/kotlinx-atomicfu.js +187 -8
- package/kotlinx-atomicfu.js.map +1 -1
- package/kotlinx-browser.js +19 -0
- package/kotlinx-browser.js.map +1 -0
- package/kotlinx-coroutines-core.js +9817 -5
- package/kotlinx-coroutines-core.js.map +1 -1
- package/kotlinx-io-kotlinx-io-bytestring.js +204 -5
- package/kotlinx-io-kotlinx-io-bytestring.js.map +1 -1
- package/kotlinx-io-kotlinx-io-core.js +2025 -5
- package/kotlinx-io-kotlinx-io-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-core.js +5906 -5
- package/kotlinx-serialization-kotlinx-serialization-core.js.map +1 -1
- package/kotlinx-serialization-kotlinx-serialization-json.js +5073 -5
- package/kotlinx-serialization-kotlinx-serialization-json.js.map +1 -1
- package/ktor-ktor-client-auth.js +1500 -5
- package/ktor-ktor-client-auth.js.map +1 -1
- package/ktor-ktor-client-content-negotiation.js +757 -5
- package/ktor-ktor-client-content-negotiation.js.map +1 -1
- package/ktor-ktor-client-core.js +13613 -36
- package/ktor-ktor-client-core.js.map +1 -1
- package/ktor-ktor-client-logging.js +3276 -5
- package/ktor-ktor-client-logging.js.map +1 -1
- package/ktor-ktor-events.js +84 -5
- package/ktor-ktor-events.js.map +1 -1
- package/ktor-ktor-http-cio.js +2261 -5
- package/ktor-ktor-http-cio.js.map +1 -1
- package/ktor-ktor-http.js +5127 -5
- package/ktor-ktor-http.js.map +1 -1
- package/ktor-ktor-io.js +3510 -5
- package/ktor-ktor-io.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx-json.js +57 -5
- package/ktor-ktor-serialization-kotlinx-json.js.map +1 -1
- package/ktor-ktor-serialization-kotlinx.js +855 -5
- package/ktor-ktor-serialization-kotlinx.js.map +1 -1
- package/ktor-ktor-serialization.js +369 -5
- package/ktor-ktor-serialization.js.map +1 -1
- package/ktor-ktor-utils.js +3610 -5
- package/ktor-ktor-utils.js.map +1 -1
- package/ktor-ktor-websockets.js +2542 -5
- package/ktor-ktor-websockets.js.map +1 -1
- package/package.json +1 -1
- package/solibo-sdk-sdk-home-api.js +2040 -5
- package/solibo-sdk-sdk-home-api.js.map +1 -1
- package/solibo-sdk-sdk.d.ts +12 -0
- package/solibo-sdk-sdk.js +2543 -4
- package/solibo-sdk-sdk.js.map +1 -1
|
@@ -12,11 +12,13 @@
|
|
|
12
12
|
}(function (_, kotlin_kotlin) {
|
|
13
13
|
'use strict';
|
|
14
14
|
//region block: imports
|
|
15
|
-
var
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
var
|
|
19
|
-
var
|
|
15
|
+
var imul = Math.imul;
|
|
16
|
+
var protoOf = kotlin_kotlin.$_$.qb;
|
|
17
|
+
var Unit_instance = kotlin_kotlin.$_$.y4;
|
|
18
|
+
var initMetadataForClass = kotlin_kotlin.$_$.ta;
|
|
19
|
+
var VOID = kotlin_kotlin.$_$.b;
|
|
20
|
+
var initMetadataForObject = kotlin_kotlin.$_$.za;
|
|
21
|
+
var Random = kotlin_kotlin.$_$.xb;
|
|
20
22
|
//endregion
|
|
21
23
|
//region block: pre-declaration
|
|
22
24
|
initMetadataForClass(CryptographyRandom, 'CryptographyRandom', VOID, Random);
|
|
@@ -27,11 +29,54 @@
|
|
|
27
29
|
function AbstractRandom() {
|
|
28
30
|
CryptographyRandom.call(this);
|
|
29
31
|
}
|
|
32
|
+
protoOf(AbstractRandom).oi = function (bitCount) {
|
|
33
|
+
var numBytes = (bitCount + 7 | 0) / 8 | 0;
|
|
34
|
+
var b = this.ui(numBytes);
|
|
35
|
+
var next = 0;
|
|
36
|
+
var inductionVariable = 0;
|
|
37
|
+
if (inductionVariable < numBytes)
|
|
38
|
+
do {
|
|
39
|
+
var i = inductionVariable;
|
|
40
|
+
inductionVariable = inductionVariable + 1 | 0;
|
|
41
|
+
next = (next << 8) + (b[i] & 255) | 0;
|
|
42
|
+
}
|
|
43
|
+
while (inductionVariable < numBytes);
|
|
44
|
+
return next >>> (imul(numBytes, 8) - bitCount | 0) | 0;
|
|
45
|
+
};
|
|
46
|
+
protoOf(AbstractRandom).si = function (array) {
|
|
47
|
+
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
48
|
+
// Inline function 'kotlin.collections.isEmpty' call
|
|
49
|
+
if (!(array.length === 0)) {
|
|
50
|
+
this.s6n(array);
|
|
51
|
+
}
|
|
52
|
+
return array;
|
|
53
|
+
};
|
|
30
54
|
function Default() {
|
|
31
55
|
Default_instance = this;
|
|
32
56
|
CryptographyRandom.call(this);
|
|
33
|
-
this.
|
|
57
|
+
this.t6n_1 = defaultCryptographyRandom();
|
|
34
58
|
}
|
|
59
|
+
protoOf(Default).oi = function (bitCount) {
|
|
60
|
+
return this.t6n_1.oi(bitCount);
|
|
61
|
+
};
|
|
62
|
+
protoOf(Default).rf = function () {
|
|
63
|
+
return this.t6n_1.rf();
|
|
64
|
+
};
|
|
65
|
+
protoOf(Default).pi = function () {
|
|
66
|
+
return this.t6n_1.pi();
|
|
67
|
+
};
|
|
68
|
+
protoOf(Default).qi = function (until) {
|
|
69
|
+
return this.t6n_1.qi(until);
|
|
70
|
+
};
|
|
71
|
+
protoOf(Default).ri = function (from, until) {
|
|
72
|
+
return this.t6n_1.ri(from, until);
|
|
73
|
+
};
|
|
74
|
+
protoOf(Default).si = function (array) {
|
|
75
|
+
return this.t6n_1.si(array);
|
|
76
|
+
};
|
|
77
|
+
protoOf(Default).ti = function (array, fromIndex, toIndex) {
|
|
78
|
+
return this.t6n_1.ti(array, fromIndex, toIndex);
|
|
79
|
+
};
|
|
35
80
|
var Default_instance;
|
|
36
81
|
function Default_getInstance() {
|
|
37
82
|
if (Default_instance == null)
|
|
@@ -45,12 +90,33 @@
|
|
|
45
90
|
function defaultCryptographyRandom() {
|
|
46
91
|
return WebCryptoCryptographyRandom_getInstance();
|
|
47
92
|
}
|
|
93
|
+
function fillBytes($this, jsArray) {
|
|
94
|
+
var size = jsArray.length;
|
|
95
|
+
if (size <= 65536) {
|
|
96
|
+
$this.v6n_1.getRandomValues(jsArray);
|
|
97
|
+
} else {
|
|
98
|
+
var filled = 0;
|
|
99
|
+
do {
|
|
100
|
+
// Inline function 'kotlin.comparisons.minOf' call
|
|
101
|
+
var b = size - filled | 0;
|
|
102
|
+
var chunkSize = Math.min(65536, b);
|
|
103
|
+
$this.v6n_1.getRandomValues(jsArray.subarray(filled, filled + chunkSize | 0));
|
|
104
|
+
filled = filled + chunkSize | 0;
|
|
105
|
+
}
|
|
106
|
+
while (filled < size);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
48
109
|
function WebCryptoCryptographyRandom() {
|
|
49
110
|
WebCryptoCryptographyRandom_instance = this;
|
|
50
111
|
AbstractRandom.call(this);
|
|
51
|
-
this.
|
|
52
|
-
this.
|
|
112
|
+
this.u6n_1 = 65536;
|
|
113
|
+
this.v6n_1 = getCrypto();
|
|
53
114
|
}
|
|
115
|
+
protoOf(WebCryptoCryptographyRandom).s6n = function (array) {
|
|
116
|
+
// Inline function 'kotlin.js.unsafeCast' call
|
|
117
|
+
// Inline function 'kotlin.js.asDynamic' call
|
|
118
|
+
fillBytes(this, array);
|
|
119
|
+
};
|
|
54
120
|
var WebCryptoCryptographyRandom_instance;
|
|
55
121
|
function WebCryptoCryptographyRandom_getInstance() {
|
|
56
122
|
if (WebCryptoCryptographyRandom_instance == null)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../../../cryptography-kotlin/cryptography-kotlin/cryptography-random/src/commonMain/kotlin/AbstractRandom.kt","../../../../../../../../../cryptography-kotlin/cryptography-kotlin/cryptography-random/src/commonMain/kotlin/CryptographyRandom.kt","../../../../../../../../../cryptography-kotlin/cryptography-kotlin/cryptography-random/src/jsMain/kotlin/CryptographyRandom.js.kt"],"sourcesContent":[null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<init>","defaultCryptographyRandom","getCrypto"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../../../../../../../cryptography-kotlin/cryptography-kotlin/cryptography-random/src/commonMain/kotlin/AbstractRandom.kt","common/src/generated/_Arrays.kt","../../../../../../../../../cryptography-kotlin/cryptography-kotlin/cryptography-random/src/commonMain/kotlin/CryptographyRandom.kt","../../../../../../../../../cryptography-kotlin/cryptography-kotlin/cryptography-random/src/jsMain/kotlin/CryptographyRandom.js.kt","js/src/generated/_ComparisonsJs.kt"],"sourcesContent":[null,null,null,null,null],"ignoreList":[],"x_google_ignoreList":[],"names":["<init>","nextBits","bitCount","numBytes","b","next","i","nextBytes","array","nextInt","nextLong","until","from","fromIndex","toIndex","defaultCryptographyRandom","fillBytes","jsArray","size","filled","chunkSize","getCrypto"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAMAA,CAAAA,EAAA;A,IAAyC,6B;EAAzC,C;wCACIC,CAA4BC,QAA5BD,EAAgD;A,QAC5CE,WAAe,CAAC,WAAW,CAAZ,QAAiB,CAAhCA,I;QACAC,IAAQ,QAAU,QAAV,C;QAERC,OAAW,C;QACD,qB;IAAV,wBAAkB,QAAlB,C;SAAA;A,YAAKC,IAAK,iB;QAAA,6C;QACN,OAAO,CAAC,QAAS,CAAV,KAAgB,EAAE,CAAF,IAAiB,GAAjC,CAAP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