Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Feb 19, 2024
1 parent 31cbe59 commit 1c952ef
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 22 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"devDependencies": {
"@codemirror/state": "^6.0.0",
"@codemirror/view": "^6.0.0",
"@codemirror/language": "https://github.com/lishid/cm-language",
"@codemirror/language": "https://github.com/lishid/cm-language#1aadcc247f20ccfda76424a9f853dbb4ee203fdc",
"@trivago/prettier-plugin-sort-imports": "4.2.0",
"@types/node": "^16.11.6",
"@typescript-eslint/eslint-plugin": "^5.2.0",
Expand Down
2 changes: 1 addition & 1 deletion src/postProcessor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { MarkdownPostProcessor, setIcon } from 'obsidian';
import { CalloutConfig } from './settings';

function getFirstTextNode(li: HTMLElement) {
for (const node of li.childNodes) {
for (const node of Array.from(li.childNodes)) {
if (
node.nodeType === document.ELEMENT_NODE &&
(node as HTMLElement).tagName === 'P'
Expand Down
25 changes: 10 additions & 15 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
{
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"baseUrl": ".",
"importHelpers": true,
"inlineSourceMap": true,
"inlineSources": true,
"isolatedModules": true,
"jsx": "react",
"lib": ["dom", "es6", "scripthost", "es2018"],
"module": "ESNext",
"target": "ES6",
"allowJs": true,
"noImplicitAny": true,
"moduleResolution": "node",
"importHelpers": true,
"isolatedModules": true,
"lib": [
"DOM",
"DOM.Iterable",
"ES5",
"ES6",
"ES7"
]
"noImplicitAny": true,
"skipLibCheck": true,
"target": "es2018"
},
"include": [
"**/*.ts"
]
"include": ["./src/**/*.ts", "./src/**/*.tsx"]
}
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,13 @@
"@babel/helper-validator-identifier" "^7.22.20"
to-fast-properties "^2.0.0"

"@codemirror/language@https://github.com/lishid/cm-language":
version "6.9.2"
resolved "https://github.com/lishid/cm-language#cc6a2cc30288db6be3f879ddf0e3ef64f14ed6ab"
"@codemirror/language@https://github.com/lishid/cm-language#1aadcc247f20ccfda76424a9f853dbb4ee203fdc":
version "6.6.0"
resolved "https://github.com/lishid/cm-language#1aadcc247f20ccfda76424a9f853dbb4ee203fdc"
dependencies:
"@codemirror/state" "^6.0.0"
"@codemirror/view" "^6.0.0"
"@lezer/common" "^1.1.0"
"@lezer/common" "^1.0.0"
"@lezer/highlight" "^1.0.0"
"@lezer/lr" "^1.0.0"
style-mod "^4.0.0"
Expand Down Expand Up @@ -208,7 +208,7 @@
"@jridgewell/resolve-uri" "^3.1.0"
"@jridgewell/sourcemap-codec" "^1.4.14"

"@lezer/common@^1.0.0", "@lezer/common@^1.1.0":
"@lezer/common@^1.0.0":
version "1.2.1"
resolved "https://registry.yarnpkg.com/@lezer/common/-/common-1.2.1.tgz#198b278b7869668e1bebbe687586e12a42731049"
integrity sha512-yemX0ZD2xS/73llMZIK6KplkjIjf2EvAHcinDi/TfJ9hS25G0388+ClHt6/3but0oOxinTcQHJLDXh6w1crzFQ==
Expand Down

0 comments on commit 1c952ef

Please sign in to comment.