A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/cli/commit/fbad17aa990d78642836bd97faed71d3e0ca8eab below:

hosted-git-info@8.0.2 · npm/cli@fbad17a · GitHub

File tree Expand file treeCollapse file tree 4 files changed

+13

-9

lines changed

Filter options

Expand file treeCollapse file tree 4 files changed

+13

-9

lines changed Original file line number Diff line number Diff line change

@@ -4,7 +4,11 @@

4 4 5 5

const maybeJoin = (...args) => args.every(arg => arg) ? args.join('') : ''

6 6

const maybeEncode = (arg) => arg ? encodeURIComponent(arg) : ''

7 -

const formatHashFragment = (f) => f.toLowerCase().replace(/^\W+|\/|\W+$/g, '').replace(/\W+/g, '-')

7 +

const formatHashFragment = (f) => f.toLowerCase()

8 +

.replace(/^\W+/g, '') // strip leading non-characters

9 +

.replace(/(?<!\W)\W+$/, '') // strip trailing non-characters

10 +

.replace(/\//g, '') // strip all slashes

11 +

.replace(/\W+/g, '-') // replace remaining non-characters with '-'

8 12 9 13

const defaults = {

10 14

sshtemplate: ({ domain, user, project, committish }) =>

Original file line number Diff line number Diff line change

@@ -1,6 +1,6 @@

1 1

{

2 2

"name": "hosted-git-info",

3 -

"version": "8.0.0",

3 +

"version": "8.0.2",

4 4

"description": "Provides metadata and conversions from repository urls for GitHub, Bitbucket and GitLab",

5 5

"main": "./lib/index.js",

6 6

"repository": {

@@ -35,7 +35,7 @@

35 35

},

36 36

"devDependencies": {

37 37

"@npmcli/eslint-config": "^5.0.0",

38 -

"@npmcli/template-oss": "4.23.3",

38 +

"@npmcli/template-oss": "4.23.4",

39 39

"tap": "^16.0.1"

40 40

},

41 41

"files": [

@@ -55,7 +55,7 @@

55 55

},

56 56

"templateOSS": {

57 57

"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",

58 -

"version": "4.23.3",

58 +

"version": "4.23.4",

59 59

"publish": "true"

60 60

}

61 61

}

Original file line number Diff line number Diff line change

@@ -106,7 +106,7 @@

106 106

"fs-minipass": "^3.0.3",

107 107

"glob": "^10.4.5",

108 108

"graceful-fs": "^4.2.11",

109 -

"hosted-git-info": "^8.0.0",

109 +

"hosted-git-info": "^8.0.2",

110 110

"ini": "^5.0.0",

111 111

"init-package-json": "^7.0.1",

112 112

"is-cidr": "^5.1.0",

@@ -7385,9 +7385,9 @@

7385 7385

}

7386 7386

},

7387 7387

"node_modules/hosted-git-info": {

7388 -

"version": "8.0.0",

7389 -

"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-8.0.0.tgz",

7390 -

"integrity": "sha512-4nw3vOVR+vHUOT8+U4giwe2tcGv+R3pwwRidUe67DoMBTjhrfr6rZYJVVwdkBE+Um050SG+X9tf0Jo4fOpn01w==",

7388 +

"version": "8.0.2",

7389 +

"resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-8.0.2.tgz",

7390 +

"integrity": "sha512-sYKnA7eGln5ov8T8gnYlkSOxFJvywzEx9BueN6xo/GKO8PGiI6uK6xx+DIGe45T3bdVjLAQDQW1aicT8z8JwQg==",

7391 7391

"inBundle": true,

7392 7392

"license": "ISC",

7393 7393

"dependencies": {

Original file line number Diff line number Diff line change

@@ -71,7 +71,7 @@

71 71

"fs-minipass": "^3.0.3",

72 72

"glob": "^10.4.5",

73 73

"graceful-fs": "^4.2.11",

74 -

"hosted-git-info": "^8.0.0",

74 +

"hosted-git-info": "^8.0.2",

75 75

"ini": "^5.0.0",

76 76

"init-package-json": "^7.0.1",

77 77

"is-cidr": "^5.1.0",

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4