Skip to content

Commit

Permalink
Fix keypress + upgrade squint
Browse files Browse the repository at this point in the history
  • Loading branch information
borkdude committed Nov 22, 2023
1 parent 540c964 commit 734a457
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@lezer/highlight": "^1.0.0",
"@lezer/lr": "^1.0.0",
"@nextjournal/lezer-clojure": "1.0.0",
"squint-cljs": "0.4.57",
"squint-cljs": "0.4.58",
"w3c-keyname": "^2.2.4"
},
"comments": {
Expand Down
3 changes: 3 additions & 0 deletions public/squint/js/demo.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,14 @@ let evalCode = async function (code) {
let evalCell = (opts) => {
let code = opts.state.doc.toString();
evalCode(code);
return true;
}

let evalToplevel = function (opts) {
let state = opts.state;
let code = top_level_string(state);
evalCode(code);
return true;
}

function JSONstringify(json) {
Expand All @@ -75,6 +77,7 @@ let evalAtCursor = function (opts) {
let state = opts.state;
let code = cursor_node_string(state);
evalCode(code);
return true;
}

let squintExtension = ( opts ) => {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1176,10 +1176,10 @@ source-map@^0.5.6:
resolved "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz"
integrity sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=

squint-cljs@0.4.57:
version "0.4.57"
resolved "https://registry.yarnpkg.com/squint-cljs/-/squint-cljs-0.4.57.tgz#fb5f48ca24d7077015160f08a72d70feb2e6f1c1"
integrity sha512-AMxbHOF1tikHNX/xWn957RyiNY2KnWxsFm0YSgcT4RBOaYSnBd1TOwmhKPgK0yY8jzjVIpkxXKfPpDDaMzM1fg==
squint-cljs@0.4.58:
version "0.4.58"
resolved "https://registry.yarnpkg.com/squint-cljs/-/squint-cljs-0.4.58.tgz#9dde3c431661ffd8f2596ad397e3c657bf91ffe9"
integrity sha512-X/F8gQfemySHHP6+nuQKUc6s+/3bYYGbKyiJDRqtyzbOYH/AIwaJM3RCGF7gAu99jSCcLrSh6NjIuwDKQicMXg==
dependencies:
chokidar "^3.5.3"

Expand Down

0 comments on commit 734a457

Please sign in to comment.