New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-pug

Package Overview
Dependencies
Maintainers
2
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-pug - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

25

package.json
{
"name": "eslint-plugin-pug",
"description": "An ESLint plugin for linting inline scripts in Pug files",
"version": "1.2.2",
"version": "1.2.3",
"author": "Greg V <greg@unrelenting.technology>",

@@ -28,18 +28,17 @@ "license": "Unlicense",

"dependencies": {
"lodash": "^4.17.15",
"pug-lexer": "^4.1.0",
"pug-parser": "^5.0.1",
"pug-walk": "^1.1.8",
"vfile": "^4.0.2",
"vfile-location": "^3.0.0"
"lodash": "^4.17.20",
"pug-lexer": "^5.0.0",
"pug-parser": "^6.0.0",
"pug-walk": "^2.0.0",
"vfile": "^4.2.1",
"vfile-location": "^3.2.0"
},
"devDependencies": {
"eslint": "^6.8.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.20.1",
"eslint-plugin-node": "^11.0.0",
"eslint": "^7.16.0",
"eslint-config-standard": "^16.0.2",
"eslint-plugin-import": "^2.22.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"jest": "^25.1.0"
"jest": "^26.6.3"
}
}

@@ -76,2 +76,3 @@ const _ = require('lodash')

const { origs, text } = exports.nodesToOrigsAndText(ctx, node.block.nodes)
// console.log('preprocess 1', JSON.stringify({ origs, text, nodes: node.block.nodes }, null, 2))
ctx.blocks.push({

@@ -88,2 +89,3 @@ column: node.column,

})
// console.log('preprocess 2', JSON.stringify(ctx.blocks, null, 2))
return ctx.blocks

@@ -117,4 +119,4 @@ }

// add indent to multiline fix.text
const head = exports.positionToOffset(ctx.vfileLoc, { line: origStart[0], column: origStart[1] })
const indent = ctx.src.substring(head - origStart[1] + 1, head)
const head = exports.positionToOffset(ctx.vfileLoc, { line: origStart[0], column: origStart[1]+1 })
const indent = ctx.src.substring(head - origStart[1], head)
fix.text = fix.text.replace(/\n/g, '\n' + fix.text.substring(fix.range[0] - origStart[1], fix.range[0]))

@@ -126,3 +128,3 @@ fix.text = exports.addIndentAfterLf(fix.text, indent)

exports.postprocess = (messages, filename) => {
// console.log(JSON.stringify(ctx, null, 2))
// console.log('postprocess', JSON.stringify({ messages, ctx }, null, 2))

@@ -129,0 +131,0 @@ const newMessages = []

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