@applitools/core-base
Advanced tools
Comparing version 1.11.0 to 1.11.1
# Changelog | ||
## [1.11.1](https://github.com/Applitools-Dev/sdk/compare/js/core-base@1.11.0...js/core-base@1.11.1) (2024-04-15) | ||
### Dependencies | ||
* @applitools/utils bumped to 1.7.1 | ||
#### Bug Fixes | ||
* region intersection algorithm ([#2290](https://github.com/Applitools-Dev/sdk/issues/2290)) ([aaa8d0c](https://github.com/Applitools-Dev/sdk/commit/aaa8d0cbcb0e39d23d652c2caf9d27bfaed0d2eb)) | ||
* @applitools/logger bumped to 2.0.15 | ||
* @applitools/req bumped to 1.6.6 | ||
* @applitools/image bumped to 1.1.10 | ||
## [1.11.0](https://github.com/Applitools-Dev/sdk/compare/js/core-base@1.10.1...js/core-base@1.11.0) (2024-04-10) | ||
@@ -4,0 +20,0 @@ |
@@ -32,14 +32,16 @@ "use strict"; | ||
async function extractCommitInfo({ execOptions, logger = (0, logger_1.makeLogger)(), }) { | ||
const result = await executeWithLog('git log -1 --format="%aI %H"', { execOptions, logger }); | ||
if (result.stderr) { | ||
logger.log(`Error during extracting commit information from git`, result.stderr); | ||
} | ||
else | ||
try { | ||
let result; | ||
try { | ||
result = await executeWithLog('git log -1 --format="%aI %H"', { execOptions, logger }); | ||
if (result.stderr) { | ||
logger.log(`Error during extracting commit information from git`, result.stderr); | ||
} | ||
else { | ||
const [timestamp, sha] = result.stdout.trim().split(' '); | ||
return { timestamp, sha }; | ||
} | ||
catch (err) { | ||
logger.log(`Error during parsing commit hash from git`, err, result.stdout); | ||
} | ||
} | ||
catch (err) { | ||
logger.log(`Error during parsing commit hash from git`, err, result === null || result === void 0 ? void 0 : result.stdout); | ||
} | ||
} | ||
@@ -46,0 +48,0 @@ async function executeWithLog(command, { execOptions, logger = (0, logger_1.makeLogger)() } = { |
{ | ||
"name": "@applitools/core-base", | ||
"version": "1.11.0", | ||
"version": "1.11.1", | ||
"homepage": "https://applitools.com", | ||
@@ -45,6 +45,6 @@ "bugs": { | ||
"dependencies": { | ||
"@applitools/image": "1.1.9", | ||
"@applitools/logger": "2.0.14", | ||
"@applitools/req": "1.6.5", | ||
"@applitools/utils": "1.7.0", | ||
"@applitools/image": "1.1.10", | ||
"@applitools/logger": "2.0.15", | ||
"@applitools/req": "1.6.6", | ||
"@applitools/utils": "1.7.1", | ||
"abort-controller": "3.0.0", | ||
@@ -51,0 +51,0 @@ "throat": "6.0.2" |
173546
2978
+ Added@applitools/image@1.1.10(transitive)
+ Added@applitools/logger@2.0.15(transitive)
+ Added@applitools/req@1.6.6(transitive)
+ Added@applitools/utils@1.7.1(transitive)
- Removed@applitools/image@1.1.9(transitive)
- Removed@applitools/logger@2.0.14(transitive)
- Removed@applitools/req@1.6.5(transitive)
- Removed@applitools/utils@1.7.0(transitive)
Updated@applitools/image@1.1.10
Updated@applitools/logger@2.0.15
Updated@applitools/req@1.6.6
Updated@applitools/utils@1.7.1