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

pug-lint-wb-loader

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pug-lint-wb-loader - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

15

index.js

@@ -10,2 +10,3 @@ 'use strict';

// 获取带有错误文件行列的信息
var getFullMessage = function(filename, src, line, column, message) {

@@ -52,8 +53,2 @@ var fullMessage;

}).map(function (problem) {
//console.log(problem)
/*let errMsg = '\nPug-Lint Error:\n' +
'Filename: ' + _this.resourcePath + '\n' +
'Line at: [%s:%s]\n' +
'Rule: %s\n' +
'Msg: %s\n'*/
let errMsg = '\npug-lint报错信息\n' +

@@ -63,5 +58,2 @@ '报错规则: %s\n' +

'报错消息: ' + getFullMessage(_this.resourcePath, content, problem.line, problem.column, problem.msg) + '\n'
/*console.log('===========getFullMessage===========')
console.log(getFullMessage(_this.resourcePath, content, problem.line, problem.column, problem.msg))
console.log('===========getFullMessage end===========')*/
return util.format(

@@ -72,7 +64,2 @@ errMsg,

);
/*return util.format('\t\x1b[31m[%s:%s] %s\x1b[0m | Rule: \x1b[91m%s\x1b[0m',
problem.line,
problem.column || 0,
problem.msg,
problem.code.toLowerCase().replace(/^pug:/, '').replace(/^lint_/, ''));*/
}).join('\n\n'));

@@ -79,0 +66,0 @@ }

2

package.json
{
"name": "pug-lint-wb-loader",
"version": "1.0.0",
"version": "1.0.1",
"description": "用于pug-lint的loader",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -58,3 +58,3 @@ # pug-lint-wb-loader

exclude: /node_modules/,
loader: "pug-lint-loader",
loader: "pug-lint-wb-loader",
options: Object.assign({

@@ -61,0 +61,0 @@ emitError: true,

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