@fast-scrape/wasm 0.2.3 → 0.2.4

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
@@ -5,7 +5,7 @@
5
5
  "Andrei G. <k05h31@gmail.com>"
6
6
  ],
7
7
  "description": "WebAssembly bindings for scrape-rs HTML parsing library",
8
- "version": "0.2.3",
8
+ "version": "0.2.4",
9
9
  "license": "MIT OR Apache-2.0",
10
10
  "repository": {
11
11
  "type": "git",
package/scrape_wasm.js CHANGED
@@ -277,7 +277,7 @@ export class Soup {
277
277
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
278
278
  const ptr0 = passStringToWasm0(selector, wasm.__wbindgen_export, wasm.__wbindgen_export2);
279
279
  const len0 = WASM_VECTOR_LEN;
280
- wasm.soup_findAll(retptr, this.__wbg_ptr, ptr0, len0);
280
+ wasm.soup_select(retptr, this.__wbg_ptr, ptr0, len0);
281
281
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
282
282
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
283
283
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -864,7 +864,7 @@ export class Tag {
864
864
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
865
865
  const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
866
866
  const len0 = WASM_VECTOR_LEN;
867
- wasm.tag_attr(retptr, this.__wbg_ptr, ptr0, len0);
867
+ wasm.tag_get(retptr, this.__wbg_ptr, ptr0, len0);
868
868
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
869
869
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
870
870
  let v2;
@@ -1013,7 +1013,7 @@ export class Tag {
1013
1013
  get parents() {
1014
1014
  try {
1015
1015
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1016
- wasm.tag_ancestors(retptr, this.__wbg_ptr);
1016
+ wasm.tag_parents(retptr, this.__wbg_ptr);
1017
1017
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1018
1018
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1019
1019
  var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
@@ -1061,7 +1061,7 @@ export class Tag {
1061
1061
  const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
1062
1062
  const ptr0 = passStringToWasm0(selector, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1063
1063
  const len0 = WASM_VECTOR_LEN;
1064
- wasm.tag_findAll(retptr, this.__wbg_ptr, ptr0, len0);
1064
+ wasm.tag_select(retptr, this.__wbg_ptr, ptr0, len0);
1065
1065
  var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
1066
1066
  var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
1067
1067
  var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
@@ -1328,11 +1328,11 @@ export function version() {
1328
1328
  function __wbg_get_imports() {
1329
1329
  const import0 = {
1330
1330
  __proto__: null,
1331
- __wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
1331
+ __wbg_Error_25ba92dc73c79ff8: function(arg0, arg1) {
1332
1332
  const ret = Error(getStringFromWasm0(arg0, arg1));
1333
1333
  return addHeapObject(ret);
1334
1334
  },
1335
- __wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
1335
+ __wbg___wbindgen_string_get_e935d22db323c682: function(arg0, arg1) {
1336
1336
  const obj = getObject(arg1);
1337
1337
  const ret = typeof(obj) === 'string' ? obj : undefined;
1338
1338
  var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
@@ -1340,10 +1340,10 @@ function __wbg_get_imports() {
1340
1340
  getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1341
1341
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1342
1342
  },
1343
- __wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
1343
+ __wbg___wbindgen_throw_f1861aae416df39d: function(arg0, arg1) {
1344
1344
  throw new Error(getStringFromWasm0(arg0, arg1));
1345
1345
  },
1346
- __wbg_error_7534b8e9a36f1ab4: function(arg0, arg1) {
1346
+ __wbg_error_a6fa202b58aa1cd3: function(arg0, arg1) {
1347
1347
  let deferred0_0;
1348
1348
  let deferred0_1;
1349
1349
  try {
@@ -1354,15 +1354,15 @@ function __wbg_get_imports() {
1354
1354
  wasm.__wbindgen_export3(deferred0_0, deferred0_1, 1);
1355
1355
  }
1356
1356
  },
1357
- __wbg_new_361308b2356cecd0: function() {
1357
+ __wbg_new_1b4edd8807f9a802: function() {
1358
1358
  const ret = new Object();
1359
1359
  return addHeapObject(ret);
1360
1360
  },
1361
- __wbg_new_8a6f238a6ece86ea: function() {
1361
+ __wbg_new_227d7c05414eb861: function() {
1362
1362
  const ret = new Error();
1363
1363
  return addHeapObject(ret);
1364
1364
  },
1365
- __wbg_set_6cb8631f80447a67: function() { return handleError(function (arg0, arg1, arg2) {
1365
+ __wbg_set_ca602273edb01610: function() { return handleError(function (arg0, arg1, arg2) {
1366
1366
  const ret = Reflect.set(getObject(arg0), getObject(arg1), getObject(arg2));
1367
1367
  return ret;
1368
1368
  }, arguments); },
@@ -1370,7 +1370,7 @@ function __wbg_get_imports() {
1370
1370
  const ret = Soup.__wrap(arg0);
1371
1371
  return addHeapObject(ret);
1372
1372
  },
1373
- __wbg_stack_0ed75d68575b0f3c: function(arg0, arg1) {
1373
+ __wbg_stack_3b0d974bbf31e44f: function(arg0, arg1) {
1374
1374
  const ret = getObject(arg1).stack;
1375
1375
  const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
1376
1376
  const len1 = WASM_VECTOR_LEN;
@@ -1425,7 +1425,7 @@ function _assertClass(instance, klass) {
1425
1425
  }
1426
1426
 
1427
1427
  function dropObject(idx) {
1428
- if (idx < 132) return;
1428
+ if (idx < 1028) return;
1429
1429
  heap[idx] = heap_next;
1430
1430
  heap_next = idx;
1431
1431
  }
@@ -1471,7 +1471,7 @@ function handleError(f, args) {
1471
1471
  }
1472
1472
  }
1473
1473
 
1474
- let heap = new Array(128).fill(undefined);
1474
+ let heap = new Array(1024).fill(undefined);
1475
1475
  heap.push(undefined, null, true, false);
1476
1476
 
1477
1477
  let heap_next = heap.length;
Binary file