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

parse-diff

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

parse-diff - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

6

index.js

@@ -110,3 +110,3 @@ var defaultToWhiteSpace, escapeRegExp, ltrim, makeString, parseFile, parseFileFallback, trimLeft;

};
schema = [[/^diff\s/, start], [/^new file mode \d+$/, new_file], [/^deleted file mode \d+$/, deleted_file], [/^index\s[\da-zA-Z]+\.\.[\da-zA-Z]+(\s(\d+))?$/, index], [/^---\s/, from_file], [/^\+\+\+\s/, to_file], [/^@@\s+\-(\d+),?(\d+)?\s+\+(\d+),?(\d+)?\s@@/, chunk], [/^-/, del], [/^\+/, add]];
schema = [[/^\s+/, normal], [/^diff\s/, start], [/^new file mode \d+$/, new_file], [/^deleted file mode \d+$/, deleted_file], [/^index\s[\da-zA-Z]+\.\.[\da-zA-Z]+(\s(\d+))?$/, index], [/^---\s/, from_file], [/^\+\+\+\s/, to_file], [/^@@\s+\-(\d+),?(\d+)?\s+\+(\d+),?(\d+)?\s@@/, chunk], [/^-/, del], [/^\+/, add]];
parse = function(line) {

@@ -126,5 +126,3 @@ var j, len, m, p;

line = lines[j];
if (!parse(line)) {
normal(line);
}
parse(line);
}

@@ -131,0 +129,0 @@ return files;

{
"name": "parse-diff",
"version": "0.3.0",
"version": "0.3.1",
"description": "Unified diff parser",

@@ -20,6 +20,8 @@ "author": "Sergey Todyshev <stodyshev@gmail.com>",

"Scott Christopherson <scott@scott-christopherson.com>",
"Quest <quest@lysator.liu.se>"
"Quest <quest@lysator.liu.se>",
"Sung Won Cho <mikeswcho@gmail.com>",
"just-boris <just-boris@yandex-team.ru>"
],
"devDependencies": {
"coffee-script": "~1.9",
"coffee-script": "~1.10",
"grunt": "~0.4.5",

@@ -30,3 +32,3 @@ "grunt-contrib-jshint": "~0.11",

"grunt-npm": "~0.0.2",
"grunt-bump": "~0.3.2",
"grunt-bump": "~0.6.0",
"grunt-auto-release": "~0.0.6",

@@ -33,0 +35,0 @@ "grunt-cli": "~0.1",

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