read-package-json
Advanced tools
Comparing version 0.1.10 to 0.1.11
{ | ||
"name": "read-package-json", | ||
"version": "0.1.10", | ||
"version": "0.1.11", | ||
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)", | ||
@@ -5,0 +5,0 @@ "description": "The thing npm uses to read package.json files with semantics and defaults and validation", |
@@ -338,14 +338,2 @@ // vim: set softtabstop=16 shiftwidth=16: | ||
try { | ||
gitHead = fs.readFileSync('.git/HEAD', 'utf8').trim() | ||
if (gitHead.match(/^ref: /)) { | ||
gitHead = gitHead.replace(/^ref: /, '').trim() | ||
gitHead = fs.readFileSync('.git/' + gitHead, 'utf8').trim() | ||
} | ||
config.HEAD = gitHead | ||
} catch (_) { | ||
gitHead = '(not a git repo) ' + _.message | ||
} | ||
function final (file, data, cb) { | ||
@@ -352,0 +340,0 @@ var ret = validName(file, data) |
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
35568
733