Comparing version 0.5.0 to 0.5.1
@@ -155,3 +155,3 @@ import { isJSON } from './objects.js'; | ||
export function gitCommitHash(repo = '.') { | ||
repo = repo.replaceAll(/\/+/, '/').replaceAll(/\/$/, ''); | ||
repo = repo.replaceAll(/\/+/g, '/').replaceAll(/\/$/g, ''); | ||
const rev = fs | ||
@@ -158,0 +158,0 @@ .readFileSync(repo + '.git/HEAD') |
{ | ||
"name": "utilium", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "Typescript utilies", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -221,3 +221,3 @@ import { isJSON } from './objects.js'; | ||
export function gitCommitHash(repo: string = '.'): string { | ||
repo = repo.replaceAll(/\/+/, '/').replaceAll(/\/$/, ''); | ||
repo = repo.replaceAll(/\/+/g, '/').replaceAll(/\/$/g, ''); | ||
const rev = fs | ||
@@ -224,0 +224,0 @@ .readFileSync(repo + '.git/HEAD') |
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
68426