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

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.2 to 1.0.3-0

2

dist/__fixtures__/postprocessArguments.js

@@ -36,5 +36,5 @@ "use strict";

],
"/mock-filename.js",
`/mock filename with quotes ", semicolons ; and spaces.js`,
];
exports.postprocessArguments = postprocessArguments;
//# sourceMappingURL=postprocessArguments.js.map

@@ -26,4 +26,5 @@ "use strict";

const Range_1 = require("./Range");
const sanitizeFilePath = (filePath) => JSON.stringify(path.resolve(filePath));
const getDiffForFile = (filePath, staged = false) => child_process
.execSync(`git diff --diff-filter=ACM --unified=0 HEAD ${staged ? " --staged" : ""} -- ${path.resolve(filePath)}`)
.execSync(`git diff --diff-filter=ACM --unified=0 HEAD ${staged ? " --staged" : ""} -- ${sanitizeFilePath(filePath)}`)
.toString();

@@ -30,0 +31,0 @@ exports.getDiffForFile = getDiffForFile;

{
"name": "eslint-plugin-diff",
"version": "1.0.2",
"version": "1.0.3-0",
"description": "Run ESLint on your changes only",

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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