@markuplint/svelte-parser 4.7.3 → 4.7.5
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/lib/parse-block.js
CHANGED
|
@@ -23,7 +23,9 @@ originBlockNode) {
|
|
|
23
23
|
? originBlockNode.pending?.nodes
|
|
24
24
|
: originBlockNode.type === 'KeyBlock'
|
|
25
25
|
? originBlockNode.fragment.nodes
|
|
26
|
-
: originBlockNode.
|
|
26
|
+
: originBlockNode.type === 'SvelteBoundary'
|
|
27
|
+
? originBlockNode.fragment.nodes
|
|
28
|
+
: originBlockNode.body.nodes;
|
|
27
29
|
const fragStart = fragment?.at(0)?.start;
|
|
28
30
|
const fragEnd = fragment?.at(-1)?.end;
|
|
29
31
|
/**
|
|
@@ -5,7 +5,7 @@ export type SvelteEachBlock = AST.EachBlock;
|
|
|
5
5
|
export type SvelteAwaitBlock = AST.AwaitBlock;
|
|
6
6
|
export declare function svelteParse(template: string): SvelteNode[];
|
|
7
7
|
export type SvelteDirective = Directive | AST.Attribute | AST.SpreadAttribute;
|
|
8
|
-
export type SvelteBlock = AST.EachBlock | AST.IfBlock | AST.AwaitBlock | AST.KeyBlock | AST.SnippetBlock;
|
|
8
|
+
export type SvelteBlock = AST.EachBlock | AST.IfBlock | AST.AwaitBlock | AST.KeyBlock | AST.SnippetBlock | AST.SvelteBoundary;
|
|
9
9
|
type Tag = AST.ExpressionTag | AST.HtmlTag | AST.ConstTag | AST.DebugTag | AST.RenderTag;
|
|
10
10
|
type Directive = AST.AnimateDirective | AST.BindDirective | AST.ClassDirective | AST.LetDirective | AST.OnDirective | AST.StyleDirective | AST.TransitionDirective | AST.UseDirective;
|
|
11
11
|
type ElementLike = AST.Component | AST.TitleElement | AST.SlotElement | AST.RegularElement | AST.SvelteBody | AST.SvelteComponent | AST.SvelteDocument | AST.SvelteElement | AST.SvelteFragment | AST.SvelteHead | AST.SvelteOptionsRaw | AST.SvelteSelf | AST.SvelteWindow;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@markuplint/svelte-parser",
|
|
3
|
-
"version": "4.7.
|
|
3
|
+
"version": "4.7.5",
|
|
4
4
|
"description": "Svelte parser for markuplint",
|
|
5
5
|
"repository": "git@github.com:markuplint/markuplint.git",
|
|
6
6
|
"author": "Yusuke Hirao <yusukehirao@me.com>",
|
|
@@ -30,10 +30,10 @@
|
|
|
30
30
|
"clean": "tsc --build --clean"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@markuplint/html-parser": "4.6.
|
|
33
|
+
"@markuplint/html-parser": "4.6.15",
|
|
34
34
|
"@markuplint/ml-ast": "4.4.9",
|
|
35
|
-
"@markuplint/parser-utils": "4.8.
|
|
36
|
-
"svelte": "5.
|
|
35
|
+
"@markuplint/parser-utils": "4.8.3",
|
|
36
|
+
"svelte": "5.9.1"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "687a84e00546b8f1f2ed88125fe507239723c8d8"
|
|
39
39
|
}
|