@scaffdog/error
Advanced tools
Comparing version 2.5.0 to 2.5.1
# Change Log | ||
## 2.5.1 | ||
### Patch Changes | ||
- [#730](https://github.com/scaffdog/scaffdog/pull/730) [`7659ec1`](https://github.com/scaffdog/scaffdog/commit/7659ec176125d213cd03ffec7cfac6066a8716b1) Thanks [@wadackel](https://github.com/wadackel)! - Fixed an error report when a template with a blank line contains invalid syntax. | ||
- Updated dependencies []: | ||
- @scaffdog/types@2.5.1 | ||
## 2.5.0 | ||
@@ -4,0 +13,0 @@ |
{ | ||
"name": "@scaffdog/error", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "A utility module of scaffdog error.", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"string-length": "4.0.2", | ||
"@scaffdog/types": "2.5.0" | ||
"@scaffdog/types": "2.5.1" | ||
}, | ||
@@ -30,0 +30,0 @@ "publishConfig": { |
@@ -67,6 +67,7 @@ import { test, expect } from 'vitest'; | ||
5 | ||
6 error! after text | ||
7 | ||
8`, | ||
range: [12, 17], | ||
range: [13, 18], | ||
}); | ||
@@ -76,4 +77,4 @@ | ||
${s} ${l} 4 | ||
${s} ${l} 5 | ||
${s} ${l} | ||
${r} ${l} 6 ${red('error!')} after text | ||
@@ -80,0 +81,0 @@ ${s} ${l} ${red('^^^^^^')} |
@@ -57,3 +57,2 @@ import type { | ||
const buffer: string[] = []; | ||
const terminator: string[] = []; | ||
let line = 1; | ||
@@ -63,7 +62,2 @@ | ||
if (NEWLINE.test(s)) { | ||
terminator.push(s); | ||
continue; | ||
} | ||
if (terminator.length > 0) { | ||
if (line >= start) { | ||
@@ -73,4 +67,4 @@ lines.push(buffer.join('')); | ||
buffer.length = 0; | ||
terminator.length = 0; | ||
line++; | ||
continue; | ||
} | ||
@@ -77,0 +71,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29563
668
+ Added@scaffdog/types@2.5.1(transitive)
+ Addedtype-fest@3.12.0(transitive)
- Removed@scaffdog/types@2.5.0(transitive)
- Removedtype-fest@3.6.0(transitive)
Updated@scaffdog/types@2.5.1