hosted-git-info
Advanced tools
Comparing version 8.0.0 to 8.0.1
@@ -7,3 +7,7 @@ /* eslint-disable max-len */ | ||
const maybeEncode = (arg) => arg ? encodeURIComponent(arg) : '' | ||
const formatHashFragment = (f) => f.toLowerCase().replace(/^\W+|\/|\W+$/g, '').replace(/\W+/g, '-') | ||
const formatHashFragment = (f) => f.toLowerCase() | ||
.replace(/^\W+/g, '') // strip leading non-characters | ||
.replace(/\W+$/g, '') // strip trailing non-characters | ||
.replace(/\//g, '') // strip all slashes | ||
.replace(/\W+/g, '-') // replace remaining non-characters with '-' | ||
@@ -10,0 +14,0 @@ const defaults = { |
{ | ||
"name": "hosted-git-info", | ||
"version": "8.0.0", | ||
"version": "8.0.1", | ||
"description": "Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab", | ||
@@ -38,3 +38,3 @@ "main": "./lib/index.js", | ||
"@npmcli/eslint-config": "^5.0.0", | ||
"@npmcli/template-oss": "4.23.3", | ||
"@npmcli/template-oss": "4.23.4", | ||
"tap": "^16.0.1" | ||
@@ -59,5 +59,5 @@ }, | ||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", | ||
"version": "4.23.3", | ||
"version": "4.23.4", | ||
"publish": "true" | ||
} | ||
} |
26796
516