rxing-wasm 0.5.5 → 0.5.6

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
@@ -2,7 +2,7 @@
2
2
  "name": "rxing-wasm",
3
3
  "type": "module",
4
4
  "description": "wasm bindings for rxing to provide commong barcode operations (decode/encode)",
5
- "version": "0.5.5",
5
+ "version": "0.5.6",
6
6
  "license": "Apache 2.0",
7
7
  "repository": {
8
8
  "type": "git",
package/rxing_wasm.js CHANGED
@@ -1,7 +1,7 @@
1
1
  /* @ts-self-types="./rxing_wasm.d.ts" */
2
-
3
2
  import * as wasm from "./rxing_wasm_bg.wasm";
4
3
  import { __wbg_set_wasm } from "./rxing_wasm_bg.js";
4
+
5
5
  __wbg_set_wasm(wasm);
6
6
 
7
7
  export {
package/rxing_wasm_bg.js CHANGED
@@ -82,7 +82,6 @@ export const BarcodeFormat = Object.freeze({
82
82
 
83
83
  export class BarcodeResult {
84
84
  static __wrap(ptr) {
85
- ptr = ptr >>> 0;
86
85
  const obj = Object.create(BarcodeResult.prototype);
87
86
  obj.__wbg_ptr = ptr;
88
87
  BarcodeResultFinalization.register(obj, obj.__wbg_ptr, obj);
@@ -214,7 +213,7 @@ export class DecodeHintDictionary {
214
213
  }
215
214
  constructor() {
216
215
  const ret = wasm.decodehintdictionary_new();
217
- this.__wbg_ptr = ret >>> 0;
216
+ this.__wbg_ptr = ret;
218
217
  DecodeHintDictionaryFinalization.register(this, this.__wbg_ptr, this);
219
218
  return this;
220
219
  }
@@ -371,7 +370,7 @@ export class EncodeHintDictionary {
371
370
  }
372
371
  constructor() {
373
372
  const ret = wasm.encodehintdictionary_new();
374
- this.__wbg_ptr = ret >>> 0;
373
+ this.__wbg_ptr = ret;
375
374
  EncodeHintDictionaryFinalization.register(this, this.__wbg_ptr, this);
376
375
  return this;
377
376
  }
@@ -823,37 +822,37 @@ export function encode_barcode_with_hints(data, width, height, bc_type, hints) {
823
822
  wasm.__wbindgen_export3(deferred3_0, deferred3_1, 1);
824
823
  }
825
824
  }
826
- export function __wbg___wbindgen_throw_89ca9e2c67795ec1(arg0, arg1) {
825
+ export function __wbg___wbindgen_throw_bbadd78c1bac3a77(arg0, arg1) {
827
826
  throw new Error(getStringFromWasm0(arg0, arg1));
828
827
  }
829
828
  export function __wbg_barcoderesult_new(arg0) {
830
829
  const ret = BarcodeResult.__wrap(arg0);
831
830
  return addHeapObject(ret);
832
831
  }
833
- export function __wbg_data_ffb4ac47e0d4a955(arg0, arg1) {
832
+ export function __wbg_data_b0613a0806797919(arg0, arg1) {
834
833
  const ret = getObject(arg1).data;
835
834
  const ptr1 = passArray8ToWasm0(ret, wasm.__wbindgen_export);
836
835
  const len1 = WASM_VECTOR_LEN;
837
836
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
838
837
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
839
838
  }
840
- export function __wbg_getContext_584271593c677472() { return handleError(function (arg0, arg1, arg2) {
839
+ export function __wbg_getContext_db5f8ccb275883ba() { return handleError(function (arg0, arg1, arg2) {
841
840
  const ret = getObject(arg0).getContext(getStringFromWasm0(arg1, arg2));
842
841
  return isLikeNone(ret) ? 0 : addHeapObject(ret);
843
842
  }, arguments); }
844
- export function __wbg_getImageData_1de684b025ca7bac() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
843
+ export function __wbg_getImageData_2a147e83657d5a95() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
845
844
  const ret = getObject(arg0).getImageData(arg1, arg2, arg3, arg4);
846
845
  return addHeapObject(ret);
847
846
  }, arguments); }
848
- export function __wbg_getTime_4b23931c93d819bb(arg0) {
847
+ export function __wbg_getTime_ef2e115ede346a26(arg0) {
849
848
  const ret = getObject(arg0).getTime();
850
849
  return ret;
851
850
  }
852
- export function __wbg_height_24525137c918d58e(arg0) {
851
+ export function __wbg_height_16941927eccda208(arg0) {
853
852
  const ret = getObject(arg0).height;
854
853
  return ret;
855
854
  }
856
- export function __wbg_instanceof_CanvasRenderingContext2d_83f2657cf4d5cfb4(arg0) {
855
+ export function __wbg_instanceof_CanvasRenderingContext2d_f9f8e0bbab67ac49(arg0) {
857
856
  let result;
858
857
  try {
859
858
  result = getObject(arg0) instanceof CanvasRenderingContext2D;
@@ -863,19 +862,19 @@ export function __wbg_instanceof_CanvasRenderingContext2d_83f2657cf4d5cfb4(arg0)
863
862
  const ret = result;
864
863
  return ret;
865
864
  }
866
- export function __wbg_new_0_e8782c8df6122565() {
865
+ export function __wbg_new_0_878c6ec3a1c600f3() {
867
866
  const ret = new Date();
868
867
  return addHeapObject(ret);
869
868
  }
870
- export function __wbg_new_5947ca72f3fee3e6() {
869
+ export function __wbg_new_883c0db065f06efd() {
871
870
  const ret = new Map();
872
871
  return addHeapObject(ret);
873
872
  }
874
- export function __wbg_set_b1226382f10be917(arg0, arg1, arg2) {
873
+ export function __wbg_set_5f806304fb633ab3(arg0, arg1, arg2) {
875
874
  const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
876
875
  return addHeapObject(ret);
877
876
  }
878
- export function __wbg_width_6dfa1166676a8f64(arg0) {
877
+ export function __wbg_width_ba63b77e481cffae(arg0) {
879
878
  const ret = getObject(arg0).width;
880
879
  return ret;
881
880
  }
@@ -889,13 +888,13 @@ export function __wbindgen_object_drop_ref(arg0) {
889
888
  }
890
889
  const BarcodeResultFinalization = (typeof FinalizationRegistry === 'undefined')
891
890
  ? { register: () => {}, unregister: () => {} }
892
- : new FinalizationRegistry(ptr => wasm.__wbg_barcoderesult_free(ptr >>> 0, 1));
891
+ : new FinalizationRegistry(ptr => wasm.__wbg_barcoderesult_free(ptr, 1));
893
892
  const DecodeHintDictionaryFinalization = (typeof FinalizationRegistry === 'undefined')
894
893
  ? { register: () => {}, unregister: () => {} }
895
- : new FinalizationRegistry(ptr => wasm.__wbg_decodehintdictionary_free(ptr >>> 0, 1));
894
+ : new FinalizationRegistry(ptr => wasm.__wbg_decodehintdictionary_free(ptr, 1));
896
895
  const EncodeHintDictionaryFinalization = (typeof FinalizationRegistry === 'undefined')
897
896
  ? { register: () => {}, unregister: () => {} }
898
- : new FinalizationRegistry(ptr => wasm.__wbg_encodehintdictionary_free(ptr >>> 0, 1));
897
+ : new FinalizationRegistry(ptr => wasm.__wbg_encodehintdictionary_free(ptr, 1));
899
898
 
900
899
  function addHeapObject(obj) {
901
900
  if (heap_next === heap.length) heap.push(heap.length + 1);
@@ -961,8 +960,7 @@ function getFloat32ArrayMemory0() {
961
960
  }
962
961
 
963
962
  function getStringFromWasm0(ptr, len) {
964
- ptr = ptr >>> 0;
965
- return decodeText(ptr, len);
963
+ return decodeText(ptr >>> 0, len);
966
964
  }
967
965
 
968
966
  let cachedUint32ArrayMemory0 = null;
Binary file