Socket
Socket
Sign inDemoInstall

eslint-plugin-diff

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-diff - npm Package Compare versions

Comparing version 1.0.16-1 to 1.0.16-2

2

dist/processors.js

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

Object.defineProperty(exports,"__esModule",{value:!0}),exports.stagedConfig=exports.staged=exports.diffConfig=exports.diff=void 0;const e=require("./git"),s=(s=!1)=>{const t=(0,e.getUntrackedFileList)(s),r=(0,e.getDiffFileList)(s);return(e,s)=>void 0!==process.env.VSCODE_CLI||r.includes(s)||t.includes(s)?[e]:[]};const t=(s=!1)=>{const t=(0,e.getUntrackedFileList)(s);return(r,i)=>{if(0===r.length)return[];if(t.includes(i))return r.flat();if(s&&!(0,e.hasCleanIndex)(i))return function(e){return[{fatal:!0,message:`${e} has unstaged changes. Please stage or remove the changes.`,severity:2,column:0,line:0,ruleId:null}]}(i);const n=(0,e.getRangesForDiff)((0,e.getDiffForFile)(i,s));return r.flatMap((e=>e.filter((({fatal:e,line:s})=>{if(!0===e)return!0;const t=n.some((e=>s=>s.isWithinRange(e))(s));return t}))))}},r=(e=!1)=>({preprocess:s(e),postprocess:t(e),supportsAutofix:!0}),i=r();exports.diff=i;const n=r(!0);exports.staged=n;exports.diffConfig={plugins:["diff"],overrides:[{files:["*"],processor:"diff/diff"}]};exports.stagedConfig={plugins:["diff"],overrides:[{files:["*"],processor:"diff/staged"}]};
Object.defineProperty(exports,"__esModule",{value:!0}),exports.getUnstagedChangesError=exports.stagedConfig=exports.staged=exports.diffConfig=exports.diff=void 0;const e=require("./git"),s=(e,s)=>(t,r)=>void 0!==process.env.VSCODE_CLI||s.includes(r)||e.includes(r)?[t]:[];function t(e){return[{fatal:!0,message:`${e} has unstaged changes. Please stage or remove the changes.`,severity:2,column:0,line:0,ruleId:null}]}exports.getUnstagedChangesError=t;const r=(s,r=!1)=>(i,o)=>{if(0===i.length)return[];if(s.includes(o))return i.flat();if(r&&!(0,e.hasCleanIndex)(o))return t(o);const n=(0,e.getRangesForDiff)((0,e.getDiffForFile)(o,r));return i.flatMap((e=>e.filter((({fatal:e,line:s})=>{if(!0===e)return!0;const t=n.some((e=>s=>s.isWithinRange(e))(s));return t}))))},i=(t=!1)=>{const i=(0,e.getUntrackedFileList)(t),o=(0,e.getDiffFileList)(t);return{preprocess:s(i,o),postprocess:r(i,t),supportsAutofix:!0}},o=i();exports.diff=o;const n=i(!0);exports.staged=n;exports.diffConfig={plugins:["diff"],overrides:[{files:["*"],processor:"diff/diff"}]};exports.stagedConfig={plugins:["diff"],overrides:[{files:["*"],processor:"diff/staged"}]};
{
"name": "eslint-plugin-diff",
"version": "1.0.16-1",
"version": "1.0.16-2",
"description": "Run ESLint on your changes only",

@@ -5,0 +5,0 @@ "keywords": [

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