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

git-validate

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-validate - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

3

lib/utils.js

@@ -137,2 +137,5 @@ var Fs = require('fs');

}
else {
throw new Error('Unable to find a .git folder for this project');
}

@@ -139,0 +142,0 @@ return root;

2

package.json
{
"name": "git-validate",
"version": "1.1.0",
"version": "1.1.1",
"description": "the extensible core of precommit-hook",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -160,5 +160,8 @@ var Utils = require('../lib/utils');

it('returns undefined when no git root exists', function (done) {
it('can return an error when no git root exists', function (done) {
expect(Utils.findGitRoot(Path.resolve(__dirname, '..', '..'))).to.be.undefined();
expect(function () {
Utils.findGitRoot(Path.resolve(__dirname, '..', '..'));
}).to.throw('Unable to find a .git folder for this project');
done();

@@ -165,0 +168,0 @@ });

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