New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hosted-git-info

Package Overview
Dependencies
Maintainers
6
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hosted-git-info - npm Package Compare versions

Comparing version 6.1.1 to 6.1.2

6

lib/hosts.js

@@ -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 = {

15

package.json
{
"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"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc