node-tkms 0.9.0-rc25 → 0.9.0-rc27

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 CHANGED
@@ -22,6 +22,19 @@ 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
+
25
38
  let WASM_VECTOR_LEN = 0;
26
39
 
27
40
  let cachedTextEncoder = new TextEncoder('utf-8');
@@ -78,19 +91,6 @@ function passStringToWasm0(arg, malloc, realloc) {
78
91
  return ptr;
79
92
  }
80
93
 
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;
@@ -1510,13 +1510,9 @@ module.exports.__wbindgen_error_new = function(arg0, arg1) {
1510
1510
  return ret;
1511
1511
  };
1512
1512
 
1513
- module.exports.__wbindgen_string_get = function(arg0, arg1) {
1514
- const obj = arg1;
1515
- const ret = typeof(obj) === 'string' ? obj : undefined;
1516
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1517
- var len1 = WASM_VECTOR_LEN;
1518
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1519
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1513
+ module.exports.__wbg_reencryptionresponse_unwrap = function(arg0) {
1514
+ const ret = ReencryptionResponse.__unwrap(arg0);
1515
+ return ret;
1520
1516
  };
1521
1517
 
1522
1518
  module.exports.__wbindgen_number_get = function(arg0, arg1) {
@@ -1526,14 +1522,8 @@ module.exports.__wbindgen_number_get = function(arg0, arg1) {
1526
1522
  getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1527
1523
  };
1528
1524
 
1529
- module.exports.__wbg_reencryptionresponse_unwrap = function(arg0) {
1530
- const ret = ReencryptionResponse.__unwrap(arg0);
1531
- return ret;
1532
- };
1533
-
1534
- module.exports.__wbindgen_is_object = function(arg0) {
1535
- const val = arg0;
1536
- const ret = typeof(val) === 'object' && val !== null;
1525
+ module.exports.__wbindgen_is_null = function(arg0) {
1526
+ const ret = arg0 === null;
1537
1527
  return ret;
1538
1528
  };
1539
1529
 
@@ -1542,13 +1532,23 @@ module.exports.__wbindgen_is_undefined = function(arg0) {
1542
1532
  return ret;
1543
1533
  };
1544
1534
 
1545
- module.exports.__wbindgen_in = function(arg0, arg1) {
1546
- const ret = arg0 in arg1;
1535
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
1536
+ const obj = arg1;
1537
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1538
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1539
+ var len1 = WASM_VECTOR_LEN;
1540
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1541
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1542
+ };
1543
+
1544
+ module.exports.__wbindgen_is_object = function(arg0) {
1545
+ const val = arg0;
1546
+ const ret = typeof(val) === 'object' && val !== null;
1547
1547
  return ret;
1548
1548
  };
1549
1549
 
1550
- module.exports.__wbindgen_is_null = function(arg0) {
1551
- const ret = arg0 === null;
1550
+ module.exports.__wbindgen_in = function(arg0, arg1) {
1551
+ const ret = arg0 in arg1;
1552
1552
  return ret;
1553
1553
  };
1554
1554
 
package/kms_lib_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "collaborators": [
4
4
  "Zama"
5
5
  ],
6
- "version": "0.9.0-rc25",
6
+ "version": "0.9.0-rc27",
7
7
  "license": "BSD-3-Clause-Clear",
8
8
  "files": [
9
9
  "kms_lib_bg.wasm",