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

git-tools

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-tools - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

9

git-tools.js

@@ -220,3 +220,3 @@ var spawn = require( "child_process" ).spawn;

var rBlame = /^(\w+)(\s(\S+))?\s+(\d+)\)\s(.*)$/;
var rBlame = /^(\^?\w+)(\s(\S+))?\s+(\d+)\)\s(.*)$/;

@@ -231,5 +231,12 @@ args.push(function( error, blame ) {

var matches = rBlame.exec( line );
var commit = matches[ 1 ];
var boundary = /^\^/.test( commit );
if ( boundary ) {
commit = commit.substring( 1 );
}
return {
commit: matches[ 1 ],
boundary: boundary,
path: matches[ 3 ] || options.path,

@@ -236,0 +243,0 @@ lineNumber: parseInt( matches[ 4 ], 10 ),

2

package.json
{
"name": "git-tools",
"version": "0.1.0",
"version": "0.1.1",
"description": "Tools for parsing data out of git repositories.",

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

@@ -165,2 +165,3 @@ # node-git-tools

* `commit`: SHA of commit that most recently modified the line.
* `boundary`: Boolean indicating whether the commit is a boundary for the range.
* `path`: Path to the file at the time of the most recent modification to the line.

@@ -167,0 +168,0 @@ * `lineNumber`: Line number within the file.

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