Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@scaffdog/error

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@scaffdog/error - npm Package Compare versions

Comparing version 2.5.0 to 2.5.1

9

CHANGELOG.md
# 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 @@

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc