jsontrek 0.1.4 → 0.1.7

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/bundle_bg.js CHANGED
@@ -10,20 +10,6 @@ heap.push(undefined, null, true, false);
10
10
 
11
11
  function getObject(idx) { return heap[idx]; }
12
12
 
13
- let heap_next = heap.length;
14
-
15
- function dropObject(idx) {
16
- if (idx < 132) return;
17
- heap[idx] = heap_next;
18
- heap_next = idx;
19
- }
20
-
21
- function takeObject(idx) {
22
- const ret = getObject(idx);
23
- dropObject(idx);
24
- return ret;
25
- }
26
-
27
13
  let WASM_VECTOR_LEN = 0;
28
14
 
29
15
  let cachedUint8ArrayMemory0 = null;
@@ -104,6 +90,20 @@ function getDataViewMemory0() {
104
90
  return cachedDataViewMemory0;
105
91
  }
106
92
 
93
+ let heap_next = heap.length;
94
+
95
+ function dropObject(idx) {
96
+ if (idx < 132) return;
97
+ heap[idx] = heap_next;
98
+ heap_next = idx;
99
+ }
100
+
101
+ function takeObject(idx) {
102
+ const ret = getObject(idx);
103
+ dropObject(idx);
104
+ return ret;
105
+ }
106
+
107
107
  function addHeapObject(obj) {
108
108
  if (heap_next === heap.length) heap.push(heap.length + 1);
109
109
  const idx = heap_next;
@@ -227,10 +227,6 @@ function handleError(f, args) {
227
227
  }
228
228
  }
229
229
 
230
- export function __wbindgen_object_drop_ref(arg0) {
231
- takeObject(arg0);
232
- };
233
-
234
230
  export function __wbindgen_string_get(arg0, arg1) {
235
231
  const obj = getObject(arg1);
236
232
  const ret = typeof(obj) === 'string' ? obj : undefined;
@@ -240,6 +236,10 @@ export function __wbindgen_string_get(arg0, arg1) {
240
236
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
241
237
  };
242
238
 
239
+ export function __wbindgen_object_drop_ref(arg0) {
240
+ takeObject(arg0);
241
+ };
242
+
243
243
  export function __wbindgen_boolean_get(arg0) {
244
244
  const v = getObject(arg0);
245
245
  const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
package/bundle_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "jsontrek",
3
3
  "type": "module",
4
- "version": "0.1.4",
4
+ "version": "0.1.7",
5
5
  "files": [
6
6
  "bundle_bg.wasm",
7
7
  "bundle.js",