absolute-version
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -5,2 +5,9 @@ # Changelog | ||
## [1.0.2](https://github.com/absolute-version/absolute-version-js/compare/v1.0.1...v1.0.2) (2023-03-17) | ||
### Bug Fixes | ||
* Fix a bug where the git hash was inappropriately truncated when there were no tags (fixes [#3](https://github.com/absolute-version/absolute-version-js/issues/3)) ([aad13ca](https://github.com/absolute-version/absolute-version-js/commit/aad13ca6f59c9145696b53f81dbb0f99d3d663db)) | ||
### [1.0.1](https://github.com/absolute-version/absolute-version-js/compare/v1.0.0...v1.0.1) (2022-05-25) | ||
@@ -7,0 +14,0 @@ |
@@ -33,3 +33,5 @@ "use strict"; | ||
}; | ||
var gitHash = function (gitInfo) { return gitInfo.hash.substring(1); }; | ||
var gitHash = function (gitInfo) { | ||
return gitInfo.hash.startsWith('g') ? gitInfo.hash.substring(1) : gitInfo.hash; | ||
}; | ||
var tagOrHash = function (gitInfo) { | ||
@@ -36,0 +38,0 @@ return gitInfo.tag ? gitInfo.tag : gitHash(gitInfo); |
{ | ||
"name": "absolute-version", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Reads your git tags to generate a unique human-readable version for every git commit", | ||
@@ -29,2 +29,3 @@ "main": "dist/index.js", | ||
"license": "MIT", | ||
"repository": "https://github.com/absolute-version/absolute-version-js", | ||
"devDependencies": { | ||
@@ -31,0 +32,0 @@ "@pact-foundation/pact-js-prettier-config": "^1.0.0", |
Sorry, the diff of this file is not supported yet
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
27777
155