Skip to content

Commit e987ab0

Browse files
committed
0.0.3 - making functions accessible to node
1 parent c89ace8 commit e987ab0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
async function create_dom_diff(html) {
2+
create_dom_diff = async (html) => {
33
if (!create_dom_diff.parser_p) create_dom_diff.parser_p = new Promise(async (done) => {
44
const Parser = window.TreeSitter
55
await Parser.init()
@@ -253,7 +253,7 @@ async function create_dom_diff(html) {
253253
}
254254
}
255255

256-
function apply_dom_diff(dom, diff) {
256+
apply_dom_diff = (dom, diff) => {
257257
let offsets = new Map()
258258

259259
diff.forEach((change) => {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@braidjs/dom-diff",
3-
"version": "0.0.2",
3+
"version": "0.0.3",
44
"description": "utilities for diffing html doms",
55
"author": "Braid Working Group",
66
"repository": "braid-org/dom-diff",

0 commit comments

Comments
 (0)