rxing-wasm 0.1.0 → 0.1.2

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rxing-wasm",
3
3
  "description": "wasm bindings for rxing to provide commong barcode operations (decode/encode)",
4
- "version": "0.1.0",
4
+ "version": "0.1.2",
5
5
  "license": "Apache 2.0",
6
6
  "repository": {
7
7
  "type": "git",
package/rxing_wasm_bg.js CHANGED
@@ -34,6 +34,20 @@ function addHeapObject(obj) {
34
34
  return idx;
35
35
  }
36
36
 
37
+ function getObject(idx) { return heap[idx]; }
38
+
39
+ function dropObject(idx) {
40
+ if (idx < 36) return;
41
+ heap[idx] = heap_next;
42
+ heap_next = idx;
43
+ }
44
+
45
+ function takeObject(idx) {
46
+ const ret = getObject(idx);
47
+ dropObject(idx);
48
+ return ret;
49
+ }
50
+
37
51
  let cachedInt32Memory0 = new Int32Array();
38
52
 
39
53
  function getInt32Memory0() {
@@ -116,20 +130,6 @@ function passStringToWasm0(arg, malloc, realloc) {
116
130
  WASM_VECTOR_LEN = offset;
117
131
  return ptr;
118
132
  }
119
-
120
- function getObject(idx) { return heap[idx]; }
121
-
122
- function dropObject(idx) {
123
- if (idx < 36) return;
124
- heap[idx] = heap_next;
125
- heap_next = idx;
126
- }
127
-
128
- function takeObject(idx) {
129
- const ret = getObject(idx);
130
- dropObject(idx);
131
- return ret;
132
- }
133
133
  /**
134
134
  * Encode a barcode with the given data, dimensions, and type
135
135
  * @param {string} data
@@ -410,6 +410,20 @@ export function __wbindgen_string_new(arg0, arg1) {
410
410
  return addHeapObject(ret);
411
411
  };
412
412
 
413
+ export function __wbindgen_object_drop_ref(arg0) {
414
+ takeObject(arg0);
415
+ };
416
+
417
+ export function __wbg_getTime_cb82adb2556ed13e(arg0) {
418
+ const ret = getObject(arg0).getTime();
419
+ return ret;
420
+ };
421
+
422
+ export function __wbg_new0_a57059d72c5b7aee() {
423
+ const ret = new Date();
424
+ return addHeapObject(ret);
425
+ };
426
+
413
427
  export function __wbindgen_throw(arg0, arg1) {
414
428
  throw new Error(getStringFromWasm0(arg0, arg1));
415
429
  };
Binary file