@aspecto/core
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -37,7 +37,20 @@ "use strict"; | ||
} | ||
const gitData = dynamic_require_1.child_process() | ||
.execSync('git rev-parse HEAD', { stdio: 'ignore' }) | ||
.toString() | ||
.trim(); | ||
GITCollector.hash = gitData; | ||
let gitData = undefined; | ||
try { | ||
gitData = dynamic_require_1.child_process() | ||
.execSync('git rev-parse HEAD', { stdio: 'ignore' }) | ||
.toString() | ||
.trim(); | ||
GITCollector.hash = gitData; | ||
} | ||
catch (e2) { | ||
try { | ||
gitData = dynamic_require_1.child_process() | ||
.execSync('git rev-parse HEAD') | ||
.toString() | ||
.trim(); | ||
GITCollector.hash = gitData; | ||
} | ||
catch (e3) { } | ||
} | ||
return gitData; | ||
@@ -44,0 +57,0 @@ } |
{ | ||
"name": "@aspecto/core", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "Aspecto metric collector", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
88144
1356