hosted-git-info
Advanced tools
Comparing version 6.1.1 to 6.1.2
@@ -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": "6.1.1", | ||
"version": "6.1.2", | ||
"description": "Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab", | ||
@@ -8,3 +8,3 @@ "main": "./lib/index.js", | ||
"type": "git", | ||
"url": "https://github.com/npm/hosted-git-info.git" | ||
"url": "git+https://github.com/npm/hosted-git-info.git" | ||
}, | ||
@@ -28,6 +28,7 @@ "keywords": [ | ||
"test:coverage": "tap --coverage-report=html", | ||
"lint": "eslint \"**/*.js\"", | ||
"lint": "npm run eslint", | ||
"postlint": "template-oss-check", | ||
"lintfix": "npm run lint -- --fix", | ||
"template-oss-apply": "template-oss-apply --force" | ||
"lintfix": "npm run eslint -- --fix", | ||
"template-oss-apply": "template-oss-apply --force", | ||
"eslint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"" | ||
}, | ||
@@ -39,3 +40,3 @@ "dependencies": { | ||
"@npmcli/eslint-config": "^4.0.0", | ||
"@npmcli/template-oss": "4.7.1", | ||
"@npmcli/template-oss": "4.23.4", | ||
"tap": "^16.0.1" | ||
@@ -60,4 +61,4 @@ }, | ||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", | ||
"version": "4.7.1" | ||
"version": "4.23.4" | ||
} | ||
} |
26826
517