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

ghooks

Package Overview
Dependencies
Maintainers
2
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ghooks - npm Package Compare versions

Comparing version 1.3.0 to 1.3.1

.nyc_output/3392.json

10

dist/hook.template.js
'use strict';
var fs = require('fs');
var resolve = require('path').resolve;
var path = require('path');
var _require = require('path');
var resolve = _require.resolve;
var join = _require.join;
exports.generatedMessage = 'Generated by ghooks. Do not edit this file.';
exports.content = fs.readFileSync(resolve(__dirname + '/hook.template.raw'), 'UTF-8').replace('{{generated_message}}', exports.generatedMessage).replace('{{node_modules_path}}', path.join(process.cwd(), '..'));
exports.content = fs.readFileSync(resolve(__dirname + '/hook.template.raw'), 'UTF-8').replace('{{generated_message}}', exports.generatedMessage).replace('{{node_modules_path}}', join(process.cwd(), '..').replace(/\\/g, '\\'));

@@ -6,3 +6,8 @@ 'use strict';

var spawn = require('spawn-command');
var resolve = require('path').resolve;
var _require = require('path');
var resolve = _require.resolve;
var basename = _require.basename;
var findup = require('findup');

@@ -19,3 +24,3 @@ var fs = require('fs');

function hook(filename) {
return filename.match(/\/([^\/]+)\/?$/)[1];
return basename(filename);
}

@@ -22,0 +27,0 @@

{
"name": "ghooks",
"description": "Simple git hooks",
"version": "1.3.0",
"version": "1.3.1",
"main": "./dist/runner.js",

@@ -40,3 +40,3 @@ "keywords": [

"manage-path": "2.0.0",
"opt-cli": "1.4.2",
"opt-cli": "1.5.1",
"path-exists": "^2.0.0",

@@ -57,3 +57,3 @@ "spawn-command": "0.0.2"

"eslint-plugin-import": "^1.8.0",
"eslint-plugin-mocha": "^2.2.0",
"eslint-plugin-mocha": "^3.0.0",
"ghooks": "*",

@@ -60,0 +60,0 @@ "mocha": "^2.1.0",

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