node-tkms 0.9.0-rc36 → 0.9.0-rc38
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/kms_lib.js +25 -25
- package/kms_lib_bg.wasm +0 -0
- package/package.json +1 -1
package/kms_lib.js
CHANGED
|
@@ -22,19 +22,6 @@ function getStringFromWasm0(ptr, len) {
|
|
|
22
22
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
function isLikeNone(x) {
|
|
26
|
-
return x === undefined || x === null;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
let cachedDataViewMemory0 = null;
|
|
30
|
-
|
|
31
|
-
function getDataViewMemory0() {
|
|
32
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
33
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
34
|
-
}
|
|
35
|
-
return cachedDataViewMemory0;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
25
|
let WASM_VECTOR_LEN = 0;
|
|
39
26
|
|
|
40
27
|
let cachedTextEncoder = new TextEncoder('utf-8');
|
|
@@ -91,6 +78,19 @@ function passStringToWasm0(arg, malloc, realloc) {
|
|
|
91
78
|
return ptr;
|
|
92
79
|
}
|
|
93
80
|
|
|
81
|
+
function isLikeNone(x) {
|
|
82
|
+
return x === undefined || x === null;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
let cachedDataViewMemory0 = null;
|
|
86
|
+
|
|
87
|
+
function getDataViewMemory0() {
|
|
88
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
89
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
90
|
+
}
|
|
91
|
+
return cachedDataViewMemory0;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
94
|
function debugString(val) {
|
|
95
95
|
// primitive types
|
|
96
96
|
const type = typeof val;
|
|
@@ -1475,18 +1475,6 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
|
|
|
1475
1475
|
return ret;
|
|
1476
1476
|
};
|
|
1477
1477
|
|
|
1478
|
-
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
1479
|
-
const obj = arg1;
|
|
1480
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1481
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1482
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1483
|
-
};
|
|
1484
|
-
|
|
1485
|
-
module.exports.__wbg_reencryptionresponse_unwrap = function(arg0) {
|
|
1486
|
-
const ret = ReencryptionResponse.__unwrap(arg0);
|
|
1487
|
-
return ret;
|
|
1488
|
-
};
|
|
1489
|
-
|
|
1490
1478
|
module.exports.__wbindgen_string_get = function(arg0, arg1) {
|
|
1491
1479
|
const obj = arg1;
|
|
1492
1480
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
@@ -1517,6 +1505,18 @@ module.exports.__wbindgen_is_null = function(arg0) {
|
|
|
1517
1505
|
return ret;
|
|
1518
1506
|
};
|
|
1519
1507
|
|
|
1508
|
+
module.exports.__wbg_reencryptionresponse_unwrap = function(arg0) {
|
|
1509
|
+
const ret = ReencryptionResponse.__unwrap(arg0);
|
|
1510
|
+
return ret;
|
|
1511
|
+
};
|
|
1512
|
+
|
|
1513
|
+
module.exports.__wbindgen_number_get = function(arg0, arg1) {
|
|
1514
|
+
const obj = arg1;
|
|
1515
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1516
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1517
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
1520
|
module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
|
|
1521
1521
|
const ret = arg0 == arg1;
|
|
1522
1522
|
return ret;
|
package/kms_lib_bg.wasm
CHANGED
|
Binary file
|