A RetroSearch Logo

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

Search Query:

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

hosted-git-info@8.0.2 · npm/cli@884bbde · 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

@@ -104,7 +104,7 @@

104 104

"fs-minipass": "^3.0.3",

105 105

"glob": "^10.4.5",

106 106

"graceful-fs": "^4.2.11",

107 -

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

107 +

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

108 108

"ini": "^5.0.0",

109 109

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

110 110

"is-cidr": "^5.1.0",

@@ -9037,9 +9037,9 @@

9037 9037

}

9038 9038

},

9039 9039

"node_modules/hosted-git-info": {

9040 -

"version": "8.0.0",

9041 -

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

9042 -

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

9040 +

"version": "8.0.2",

9041 +

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

9042 +

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

9043 9043

"inBundle": true,

9044 9044

"license": "ISC",

9045 9045

"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