Socket
Socket
Sign inDemoInstall

vue-eslint-parser

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-eslint-parser - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

9

index.js

@@ -101,9 +101,12 @@ /**

})
parser.on("text", (scriptText, location) => {
parser.on("text", (_, location) => {
if (startToken != null) {
const start = location.startOffset
const countLines = location.line - 1
const lineTerminators = "\n".repeat(countLines)
const spaces = " ".repeat(location.startOffset - countLines)
const spaces = " ".repeat(start - countLines)
const scriptText = originalText.slice(start, location.endOffset)
text = `${spaces}${lineTerminators}${scriptText}`
offset = location.startOffset
offset = start
}

@@ -110,0 +113,0 @@ })

{
"name": "vue-eslint-parser",
"version": "0.1.1",
"version": "0.1.2",
"description": "The ESLint custom parser for `.vue` files.",

@@ -5,0 +5,0 @@ "engines": {

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