@ox-content/wasm 2.4.0 → 2.5.0
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/ox_content_wasm.js +18 -18
- package/ox_content_wasm_bg.wasm +0 -0
- package/package.json +1 -1
package/ox_content_wasm.js
CHANGED
|
@@ -16,7 +16,7 @@ export class WasmParserOptions {
|
|
|
16
16
|
}
|
|
17
17
|
constructor() {
|
|
18
18
|
const ret = wasm.wasmparseroptions_new();
|
|
19
|
-
this.__wbg_ptr = ret
|
|
19
|
+
this.__wbg_ptr = ret;
|
|
20
20
|
WasmParserOptionsFinalization.register(this, this.__wbg_ptr, this);
|
|
21
21
|
return this;
|
|
22
22
|
}
|
|
@@ -124,36 +124,36 @@ export function version() {
|
|
|
124
124
|
function __wbg_get_imports() {
|
|
125
125
|
const import0 = {
|
|
126
126
|
__proto__: null,
|
|
127
|
-
|
|
127
|
+
__wbg_Error_bce6d499ff0a4aff: function(arg0, arg1) {
|
|
128
128
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
129
129
|
return addHeapObject(ret);
|
|
130
130
|
},
|
|
131
|
-
|
|
131
|
+
__wbg___wbindgen_is_string_dde0fd9020db4434: function(arg0) {
|
|
132
132
|
const ret = typeof(getObject(arg0)) === 'string';
|
|
133
133
|
return ret;
|
|
134
134
|
},
|
|
135
|
-
|
|
135
|
+
__wbg___wbindgen_throw_9c31b086c2b26051: function(arg0, arg1) {
|
|
136
136
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
137
137
|
},
|
|
138
|
-
|
|
139
|
-
const ret = new
|
|
138
|
+
__wbg_new_02d162bc6cf02f60: function() {
|
|
139
|
+
const ret = new Object();
|
|
140
140
|
return addHeapObject(ret);
|
|
141
141
|
},
|
|
142
|
-
|
|
143
|
-
const ret = new
|
|
142
|
+
__wbg_new_070df68d66325372: function() {
|
|
143
|
+
const ret = new Map();
|
|
144
144
|
return addHeapObject(ret);
|
|
145
145
|
},
|
|
146
|
-
|
|
147
|
-
const ret = new
|
|
146
|
+
__wbg_new_310879b66b6e95e1: function() {
|
|
147
|
+
const ret = new Array();
|
|
148
148
|
return addHeapObject(ret);
|
|
149
149
|
},
|
|
150
|
-
__wbg_set_3bf1de9fab0cd644: function(arg0, arg1, arg2) {
|
|
151
|
-
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
152
|
-
},
|
|
153
150
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
154
151
|
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
155
152
|
},
|
|
156
|
-
|
|
153
|
+
__wbg_set_78ea6a19f4818587: function(arg0, arg1, arg2) {
|
|
154
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
155
|
+
},
|
|
156
|
+
__wbg_set_facb7a5914e0fa39: function(arg0, arg1, arg2) {
|
|
157
157
|
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
158
158
|
return addHeapObject(ret);
|
|
159
159
|
},
|
|
@@ -193,7 +193,7 @@ function __wbg_get_imports() {
|
|
|
193
193
|
|
|
194
194
|
const WasmParserOptionsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
195
195
|
? { register: () => {}, unregister: () => {} }
|
|
196
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_wasmparseroptions_free(ptr
|
|
196
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_wasmparseroptions_free(ptr, 1));
|
|
197
197
|
|
|
198
198
|
function addHeapObject(obj) {
|
|
199
199
|
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
@@ -225,8 +225,7 @@ function getDataViewMemory0() {
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
function getStringFromWasm0(ptr, len) {
|
|
228
|
-
|
|
229
|
-
return decodeText(ptr, len);
|
|
228
|
+
return decodeText(ptr >>> 0, len);
|
|
230
229
|
}
|
|
231
230
|
|
|
232
231
|
let cachedUint8ArrayMemory0 = null;
|
|
@@ -320,8 +319,9 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
320
319
|
|
|
321
320
|
let WASM_VECTOR_LEN = 0;
|
|
322
321
|
|
|
323
|
-
let wasmModule, wasm;
|
|
322
|
+
let wasmModule, wasmInstance, wasm;
|
|
324
323
|
function __wbg_finalize_init(instance, module) {
|
|
324
|
+
wasmInstance = instance;
|
|
325
325
|
wasm = instance.exports;
|
|
326
326
|
wasmModule = module;
|
|
327
327
|
cachedDataViewMemory0 = null;
|
package/ox_content_wasm_bg.wasm
CHANGED
|
Binary file
|