@francisdb/vpin-wasm 0.23.4 → 0.23.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.
Files changed (3) hide show
  1. package/package.json +1 -1
  2. package/vpin.js +18 -19
  3. package/vpin_bg.wasm +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@francisdb/vpin-wasm",
3
- "version": "0.23.4",
3
+ "version": "0.23.6",
4
4
  "description": "WASM bindings for vpin, a rust library for the visual/virtual pinball ecosystem.",
5
5
  "homepage": "https://github.com/francisdb/vpin",
6
6
  "bugs": {
package/vpin.js CHANGED
@@ -33,22 +33,21 @@ export function extract(data, callback) {
33
33
  export function init() {
34
34
  wasm.init();
35
35
  }
36
-
37
36
  function __wbg_get_imports() {
38
37
  const import0 = {
39
38
  __proto__: null,
40
- __wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
39
+ __wbg_Error_3639a60ed15f87e7: function(arg0, arg1) {
41
40
  const ret = Error(getStringFromWasm0(arg0, arg1));
42
41
  return ret;
43
42
  },
44
- __wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
43
+ __wbg___wbindgen_debug_string_07cb72cfcc952e2b: function(arg0, arg1) {
45
44
  const ret = debugString(arg1);
46
45
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
47
46
  const len1 = WASM_VECTOR_LEN;
48
47
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
49
48
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
50
49
  },
51
- __wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
50
+ __wbg___wbindgen_string_get_965592073e5d848c: function(arg0, arg1) {
52
51
  const obj = arg1;
53
52
  const ret = typeof(obj) === 'string' ? obj : undefined;
54
53
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -56,10 +55,10 @@ function __wbg_get_imports() {
56
55
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
57
56
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
58
57
  },
59
- __wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
58
+ __wbg___wbindgen_throw_9c75d47bf9e7731e: function(arg0, arg1) {
60
59
  throw new Error(getStringFromWasm0(arg0, arg1));
61
60
  },
62
- __wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
61
+ __wbg_call_a41d6421b30a32c5: function() { return handleError(function (arg0, arg1, arg2) {
63
62
  const ret = arg0.call(arg1, arg2);
64
63
  return ret;
65
64
  }, arguments); },
@@ -74,23 +73,23 @@ function __wbg_get_imports() {
74
73
  wasm.__wbindgen_free(deferred0_0, deferred0_1, 1);
75
74
  }
76
75
  },
77
- __wbg_get_3ef1eba1850ade27: function() { return handleError(function (arg0, arg1) {
76
+ __wbg_get_41476db20fef99a8: function() { return handleError(function (arg0, arg1) {
78
77
  const ret = Reflect.get(arg0, arg1);
79
78
  return ret;
80
79
  }, arguments); },
81
- __wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
80
+ __wbg_get_652f640b3b0b6e3e: function(arg0, arg1) {
82
81
  const ret = arg0[arg1 >>> 0];
83
82
  return ret;
84
83
  },
85
- __wbg_keys_ab0d051a1c55236d: function(arg0) {
84
+ __wbg_keys_ee6179c15466c3ed: function(arg0) {
86
85
  const ret = Object.keys(arg0);
87
86
  return ret;
88
87
  },
89
- __wbg_length_b3416cf66a5452c8: function(arg0) {
88
+ __wbg_length_0a6ce016dc1460b0: function(arg0) {
90
89
  const ret = arg0.length;
91
90
  return ret;
92
91
  },
93
- __wbg_length_ea16607d7b61445b: function(arg0) {
92
+ __wbg_length_ba3c032602efe310: function(arg0) {
94
93
  const ret = arg0.length;
95
94
  return ret;
96
95
  },
@@ -98,22 +97,22 @@ function __wbg_get_imports() {
98
97
  const ret = new Error();
99
98
  return ret;
100
99
  },
101
- __wbg_new_ab79df5bd7c26067: function() {
100
+ __wbg_new_2fad8ca02fd00684: function() {
102
101
  const ret = new Object();
103
102
  return ret;
104
103
  },
105
- __wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
104
+ __wbg_new_from_slice_5a173c243af2e823: function(arg0, arg1) {
106
105
  const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
107
106
  return ret;
108
107
  },
109
- __wbg_now_16f0c993d5dd6c27: function() {
108
+ __wbg_now_4f457f10f864aec5: function() {
110
109
  const ret = Date.now();
111
110
  return ret;
112
111
  },
113
- __wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
112
+ __wbg_prototypesetcall_fd4050e806e1d519: function(arg0, arg1, arg2) {
114
113
  Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
115
114
  },
116
- __wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
115
+ __wbg_set_5337f8ac82364a3f: function() { return handleError(function (arg0, arg1, arg2) {
117
116
  const ret = Reflect.set(arg0, arg1, arg2);
118
117
  return ret;
119
118
  }, arguments); },
@@ -230,8 +229,7 @@ function getDataViewMemory0() {
230
229
  }
231
230
 
232
231
  function getStringFromWasm0(ptr, len) {
233
- ptr = ptr >>> 0;
234
- return decodeText(ptr, len);
232
+ return decodeText(ptr >>> 0, len);
235
233
  }
236
234
 
237
235
  let cachedUint8ArrayMemory0 = null;
@@ -334,8 +332,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
334
332
 
335
333
  let WASM_VECTOR_LEN = 0;
336
334
 
337
- let wasmModule, wasm;
335
+ let wasmModule, wasmInstance, wasm;
338
336
  function __wbg_finalize_init(instance, module) {
337
+ wasmInstance = instance;
339
338
  wasm = instance.exports;
340
339
  wasmModule = module;
341
340
  cachedDataViewMemory0 = null;
package/vpin_bg.wasm CHANGED
Binary file