@markuplint/svelte-parser 4.6.5 → 4.6.7

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/CHANGELOG.md CHANGED
@@ -3,7 +3,15 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- ## [4.6.5](https://github.com/markuplint/markuplint/compare/@markuplint/svelte-parser@4.6.4...@markuplint/svelte-parser@4.6.5) (2024-06-25)
6
+ ## [4.6.7](https://github.com/markuplint/markuplint/compare/@markuplint/svelte-parser@4.6.6...@markuplint/svelte-parser@4.6.7) (2024-09-23)
7
+
8
+ **Note:** Version bump only for package @markuplint/svelte-parser
9
+
10
+
11
+
12
+
13
+
14
+ ## [4.6.6](https://github.com/markuplint/markuplint/compare/@markuplint/svelte-parser@4.6.5...@markuplint/svelte-parser@4.6.6) (2024-09-02)
7
15
 
8
16
  **Note:** Version bump only for package @markuplint/svelte-parser
9
17
 
@@ -11,6 +19,10 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
11
19
 
12
20
 
13
21
 
22
+ ## [4.6.5](https://github.com/markuplint/markuplint/compare/@markuplint/svelte-parser@4.6.4...@markuplint/svelte-parser@4.6.5) (2024-06-25)
23
+
24
+ **Note:** Version bump only for package @markuplint/svelte-parser
25
+
14
26
  ## [4.6.4](https://github.com/markuplint/markuplint/compare/@markuplint/svelte-parser@4.6.3...@markuplint/svelte-parser@4.6.4) (2024-06-09)
15
27
 
16
28
  ### Bug Fixes
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import type { SvelteParser } from './parser.js';
3
2
  import type { ChildToken, Token } from '@markuplint/parser-utils';
4
3
  import type { Block } from 'svelte/compiler';
package/lib/parser.js CHANGED
@@ -83,7 +83,7 @@ class SvelteParser extends Parser {
83
83
  const children = originNode.children ?? [];
84
84
  const reEndTag = new RegExp(`</${originNode.name}\\s*>$`, 'i');
85
85
  const startTagEndOffset = children.length > 0
86
- ? children[0]?.start ?? 0
86
+ ? (children[0]?.start ?? 0)
87
87
  : token.raw.replace(reEndTag, '').length + token.startOffset;
88
88
  const startTagLocation = this.sliceFragment(token.startOffset, startTagEndOffset);
89
89
  return this.visitElement({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@markuplint/svelte-parser",
3
- "version": "4.6.5",
3
+ "version": "4.6.7",
4
4
  "description": "Svelte parser for markuplint",
5
5
  "repository": "git@github.com:markuplint/markuplint.git",
6
6
  "author": "Yusuke Hirao <yusukehirao@me.com>",
@@ -25,10 +25,10 @@
25
25
  "clean": "tsc --build --clean"
26
26
  },
27
27
  "dependencies": {
28
- "@markuplint/html-parser": "4.6.5",
29
- "@markuplint/ml-ast": "4.4.2",
30
- "@markuplint/parser-utils": "4.6.5",
31
- "svelte": "4.2.18"
28
+ "@markuplint/html-parser": "4.6.7",
29
+ "@markuplint/ml-ast": "4.4.4",
30
+ "@markuplint/parser-utils": "4.6.7",
31
+ "svelte": "4.2.19"
32
32
  },
33
- "gitHead": "05fdca254661ec335ff0cae4c6a11db164b032b9"
33
+ "gitHead": "05d2eabfcc41b67847c24049f12dd2b9f5ca6485"
34
34
  }