A RetroSearch Logo

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

Search Query:

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

npm-package-arg@12.0.1 · npm/cli@28e8761 · GitHub

File tree Expand file treeCollapse file tree 4 files changed

+12

-9

lines changed

Filter options

Expand file treeCollapse file tree 4 files changed

+12

-9

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

@@ -17,6 +17,7 @@ const hasSlashes = isWindows ? /\\|[/]/ : /[/]/

17 17

const isURL = /^(?:git[+])?[a-z]+:/i

18 18

const isGit = /^[^@]+@[^:.]+\.[^:]+:.+$/i

19 19

const isFilename = /[.](?:tgz|tar.gz|tar)$/i

20 +

const isPortNumber = /:[0-9]+(\/|$)/i

20 21 21 22

function npa (arg, where) {

22 23

let name

@@ -324,7 +325,9 @@ function fromURL (res) {

324 325

// git+ssh://git@my.custom.git.com:username/project.git#deadbeef

325 326

// ...and various combinations. The username in the beginning is *required*.

326 327

const matched = rawSpec.match(/^git\+ssh:\/\/([^:#]+:[^#]+(?:\.git)?)(?:#(.*))?$/i)

327 -

if (matched && !matched[1].match(/:[0-9]+\/?.*$/i)) {

328 +

// Filter out all-number "usernames" which are really port numbers

329 +

// They can either be :1234 :1234/ or :1234/path but not :12abc

330 +

if (matched && !matched[1].match(isPortNumber)) {

328 331

res.type = 'git'

329 332

setGitAttrs(res, matched[2])

330 333

res.fetchSpec = matched[1]

Original file line number Diff line number Diff line change

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

1 1

{

2 2

"name": "npm-package-arg",

3 -

"version": "12.0.0",

3 +

"version": "12.0.1",

4 4

"description": "Parse the things that can be arguments to `npm install`",

5 5

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

6 6

"directories": {

@@ -18,7 +18,7 @@

18 18

},

19 19

"devDependencies": {

20 20

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

21 -

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

21 +

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

22 22

"tap": "^16.0.1"

23 23

},

24 24

"scripts": {

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

@@ -129,7 +129,7 @@

129 129

"normalize-package-data": "^7.0.0",

130 130

"npm-audit-report": "^6.0.0",

131 131

"npm-install-checks": "^7.1.1",

132 -

"npm-package-arg": "^12.0.0",

132 +

"npm-package-arg": "^12.0.1",

133 133

"npm-pick-manifest": "^10.0.0",

134 134

"npm-profile": "^11.0.1",

135 135

"npm-registry-fetch": "^18.0.2",

@@ -12166,9 +12166,9 @@

12166 12166

}

12167 12167

},

12168 12168

"node_modules/npm-package-arg": {

12169 -

"version": "12.0.0",

12170 -

"resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-12.0.0.tgz",

12171 -

"integrity": "sha512-ZTE0hbwSdTNL+Stx2zxSqdu2KZfNDcrtrLdIk7XGnQFYBWYDho/ORvXtn5XEePcL3tFpGjHCV3X3xrtDh7eZ+A==",

12169 +

"version": "12.0.1",

12170 +

"resolved": "https://registry.npmjs.org/npm-package-arg/-/npm-package-arg-12.0.1.tgz",

12171 +

"integrity": "sha512-aDxjFfPV3Liw0WOBWlyZLMBqtbgbg03rmGvHDJa2Ttv7tIz+1oB5qWec4psCDFZcZi9b5XdGkPdQiJxOPzvQRQ==",

12172 12172

"inBundle": true,

12173 12173

"license": "ISC",

12174 12174

"dependencies": {

Original file line number Diff line number Diff line change

@@ -96,7 +96,7 @@

96 96

"normalize-package-data": "^7.0.0",

97 97

"npm-audit-report": "^6.0.0",

98 98

"npm-install-checks": "^7.1.1",

99 -

"npm-package-arg": "^12.0.0",

99 +

"npm-package-arg": "^12.0.1",

100 100

"npm-pick-manifest": "^10.0.0",

101 101

"npm-profile": "^11.0.1",

102 102

"npm-registry-fetch": "^18.0.2",

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