Skip to content

Commit

Permalink
Merge pull request #49 from rodneylab/build__update_dependencies
Browse files Browse the repository at this point in the history
build(dependencies): 🧱 update crates
  • Loading branch information
rodneylab authored Aug 26, 2024
2 parents 8c13260 + 7719c7a commit a941473
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 36 deletions.
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ js-sys = "0.3.69"
mrml = { version = "4.0.1", features = ["parse", "render"], default-features = false }
nom = { version = "7.1.3", features = ["alloc"] }
pulldown-cmark = "0.9.2"
serde = { version = "1.0.208", features = ["derive"] }
serde = { version = "1.0.209", features = ["derive"] }
serde-wasm-bindgen = "0.6.5"
textwrap = "0.16.1"
thiserror = "1.0.63"
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
"wasmbuild": "deno run -A jsr:@deno/wasmbuild@0.17.2 --project=parsedown"
},
"exclude": ["lib/"],
"imports": { "@std/assert": "jsr:@std/assert@^1.0.2" }
"imports": { "@std/assert": "jsr:@std/assert@^1.0.3" }
}
16 changes: 8 additions & 8 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 16 additions & 16 deletions lib/parsedown.generated.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// deno-fmt-ignore-file
/// <reference types="./parsedown.generated.d.ts" />

// source-hash: 5b2aa856d119484b0eb995e53698b06b5c65f0e9
// source-hash: bd5a0611065a8cc26978a64d6767a77baad7975f
let wasm;

const heap = new Array(128).fill(undefined);
Expand Down Expand Up @@ -50,6 +50,18 @@ function addHeapObject(obj) {
return idx;
}

function dropObject(idx) {
if (idx < 132) return;
heap[idx] = heap_next;
heap_next = idx;
}

function takeObject(idx) {
const ret = getObject(idx);
dropObject(idx);
return ret;
}

let WASM_VECTOR_LEN = 0;

const cachedTextEncoder = typeof TextEncoder !== "undefined"
Expand Down Expand Up @@ -115,18 +127,6 @@ function getInt32Memory0() {
return cachedInt32Memory0;
}

function dropObject(idx) {
if (idx < 132) return;
heap[idx] = heap_next;
heap_next = idx;
}

function takeObject(idx) {
const ret = getObject(idx);
dropObject(idx);
return ret;
}

let cachedFloat64Memory0 = null;

function getFloat64Memory0() {
Expand Down Expand Up @@ -319,6 +319,9 @@ const imports = {
const ret = getStringFromWasm0(arg0, arg1);
return addHeapObject(ret);
},
__wbindgen_object_drop_ref: function (arg0) {
takeObject(arg0);
},
__wbindgen_number_new: function (arg0) {
const ret = arg0;
return addHeapObject(ret);
Expand All @@ -340,9 +343,6 @@ const imports = {
__wbg_log_986f64974292da8a: function (arg0, arg1) {
console.log(getStringFromWasm0(arg0, arg1));
},
__wbindgen_object_drop_ref: function (arg0) {
takeObject(arg0);
},
__wbg_length_c20a40f15020d68a: function (arg0) {
const ret = getObject(arg0).length;
return ret;
Expand Down
Binary file modified lib/parsedown_bg.wasm
Binary file not shown.

0 comments on commit a941473

Please sign in to comment.