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

@lintest/eslint-plugin

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lintest/eslint-plugin - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

4

CHANGELOG.md
# Change Log
All notable version changes would be documented in this file.
## 0.5.2
> Patch version updated at 2023.07.21
- Bug Fixed: Wrong displaying progress items count
## 0.5.0 ~ 0.5.1

@@ -5,0 +9,0 @@ > Patch version updated at 2023.07.20

2

dist/src/report.js

@@ -1,1 +0,1 @@

"use strict";var i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,a=r.call(t),i=[];try{for(;(void 0===e||0<e--)&&!(n=a.next()).done;)i.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},c=(Object.defineProperty(exports,"__esModule",{value:!0}),t(require("path"))),l=require("@mornya/cli-libs"),s=require("./updateLogger"),u=["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"],g=[],p={display:"all",progressInterval:1e3,reportMaxFiles:20,reportLimitDuration:200,progressItemCount:5},d=!1,f=0,h=0,m=0;function resetStats(){g.length=0,d=!1,m=h=f=0}exports.default=function run(){return{create:function(t){var e,r,n,o,a;return t&&(d||(d=!0,(0,s.startLog)(),r=(e=i(t.options,5))[0],n=void 0===(n=e[1])?10:n,o=void 0===(o=e[2])?300:o,a=void 0===(a=e[3])?200:a,e=void 0===(e=e[4])?5:e,p.display=void 0===r?"all":r,p.reportMaxFiles=n,p.reportLimitDuration=o,p.progressInterval=a,p.progressItemCount=e,["unhandledRejection","SIGINT","SIGTERM"].forEach(function(t){process.on(t,function(){(0,s.endLog)(),resetStats(),process.exit(0)})}),process.on("beforeExit",function(){"progress"!==p.display&&!function printStats(){var t=Date.now(),t=(h+=g.length?t-g[g.length-1].start:0,l.Log.info("Total ".concat(l.chalk.magenta(g.length)," files linted in ").concat(l.chalk.magenta((h/1e3).toFixed(1))," sec.")),l.Log.linefeed(),g.filter(function(t){return t.duration>p.reportLimitDuration}).sort(function(t,e){return e.duration-t.duration}).slice(0,p.reportMaxFiles));t.length&&(l.Log.info("Slowest top ".concat(t.length," file").concat(1<t.length?"s":""," over ").concat(p.reportLimitDuration," ms:")),l.Log.linefeed(),t.forEach(function(t,e){var r=String(p.reportMaxFiles).length,e=String(e+1).padStart(r," ")+".";l.Log.out(" ".concat(l.chalk.gray(e)," ").concat(t.name," (").concat(l.chalk.magenta(t.duration)," ms)"))}),l.Log.linefeed())}(),(0,s.endLog)(),resetStats()})),r=Date.now(),n=t.getFilename().replace(process.cwd()+c.default.sep,""),"report"!==p.display&&(r>f+p.progressInterval||!f)&&(f=r,++m>u.length-1&&(m=0),g.length&&(0,s.updateLog)([" ".concat(l.chalk.magenta(u[m])," Linted ").concat(g.length," files (+").concat((h/1e3).toFixed(1)," sec)...")].concat(g.slice(0,p.progressItemCount).map(function(t){return" ".concat(l.chalk.magenta("›")," ").concat(l.chalk.gray(t.name)," ...")})))),g.length&&(a=r-(o=g[g.length-1]).start,o.duration=a,h+=a),g.push({name:n,start:r,duration:0})),{}}}}();
"use strict";var i=this&&this.__read||function(t,e){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var n,o,a=r.call(t),i=[];try{for(;(void 0===e||0<e--)&&!(n=a.next()).done;)i.push(n.value)}catch(t){o={error:t}}finally{try{n&&!n.done&&(r=a.return)&&r.call(a)}finally{if(o)throw o.error}}return i},t=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}},c=(Object.defineProperty(exports,"__esModule",{value:!0}),t(require("path"))),l=require("@mornya/cli-libs"),s=require("./updateLogger"),u=["⠋","⠙","⠹","⠸","⠼","⠴","⠦","⠧","⠇","⠏"],g=[],p={display:"all",progressInterval:1e3,reportMaxFiles:20,reportLimitDuration:200,progressItemCount:5},d=!1,f=0,h=0,m=0;function resetStats(){g.length=0,d=!1,m=h=f=0}exports.default=function run(){return{create:function(t){var e,r,n,o,a;return t&&(d||(d=!0,(0,s.startLog)(),r=(e=i(t.options,5))[0],n=void 0===(n=e[1])?10:n,o=void 0===(o=e[2])?300:o,a=void 0===(a=e[3])?200:a,e=void 0===(e=e[4])?5:e,p.display=void 0===r?"all":r,p.reportMaxFiles=n,p.reportLimitDuration=o,p.progressInterval=a,p.progressItemCount=e,["unhandledRejection","SIGINT","SIGTERM"].forEach(function(t){process.on(t,function(){(0,s.endLog)(),resetStats(),process.exit(0)})}),process.on("beforeExit",function(){"progress"!==p.display&&!function printStats(){var t=Date.now(),t=(h+=g.length?t-g[g.length-1].start:0,l.Log.info("Total ".concat(l.chalk.magenta(g.length)," files linted in ").concat(l.chalk.magenta((h/1e3).toFixed(1))," sec.")),l.Log.linefeed(),g.filter(function(t){return t.duration>p.reportLimitDuration}).sort(function(t,e){return e.duration-t.duration}).slice(0,p.reportMaxFiles));t.length&&(l.Log.info("Slowest top ".concat(t.length," file").concat(1<t.length?"s":""," over ").concat(p.reportLimitDuration," ms:")),l.Log.linefeed(),t.forEach(function(t,e){var r=String(p.reportMaxFiles).length,e=String(e+1).padStart(r," ")+".";l.Log.out(" ".concat(l.chalk.gray(e)," ").concat(t.name," (").concat(l.chalk.magenta(t.duration)," ms)"))}),l.Log.linefeed())}(),(0,s.endLog)(),resetStats()})),r=Date.now(),n=t.getFilename().replace(process.cwd()+c.default.sep,""),"report"!==p.display&&(r>f+p.progressInterval||!f)&&(f=r,++m>u.length-1&&(m=0),g.length&&(0,s.updateLog)([" ".concat(l.chalk.magenta(u[m])," Linted ").concat(g.length," files (+").concat((h/1e3).toFixed(1)," sec)...")].concat(g.slice(-p.progressItemCount).map(function(t){return" ".concat(l.chalk.magenta("›")," ").concat(l.chalk.gray(t.name)," ...")})))),g.length&&(a=r-(o=g[g.length-1]).start,o.duration=a,h+=a),g.push({name:n,start:r,duration:0})),{}}}}();
{
"name": "@lintest/eslint-plugin",
"version": "0.5.1",
"version": "0.5.2",
"description": "The ESLint plugin for Lintest.",

@@ -67,2 +67,3 @@ "keywords": [

"devDependencies": {
"@lintest/core": "^1.13.6",
"@types/jest": "^29.5.3",

@@ -69,0 +70,0 @@ "@types/node": "^20.4.2",

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