Comparing version 1.3.0 to 1.3.1
'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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
119
30119
+ Addedcommander@2.9.0(transitive)
+ Addedgraceful-readlink@1.0.1(transitive)
+ Addedopt-cli@1.5.1(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcli@0.11.2(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedexit@0.1.2(transitive)
- Removedglob@5.0.15(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedonce@1.4.0(transitive)
- Removedopt-cli@1.4.2(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedwrappy@1.0.2(transitive)
Updatedopt-cli@1.5.1