A RetroSearch Logo

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

Search Query:

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

validate-npm-package-name@6.0.1 · npm/cli@42ef765 · GitHub

File tree Expand file treeCollapse file tree 4 files changed

+14

-9

lines changed

Filter options

Expand file treeCollapse file tree 4 files changed

+14

-9

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

@@ -30,7 +30,7 @@ function validate (name) {

30 30

errors.push('name length must be greater than zero')

31 31

}

32 32 33 -

if (name.match(/^\./)) {

33 +

if (name.startsWith('.')) {

34 34

errors.push('name cannot start with a period')

35 35

}

36 36

@@ -75,6 +75,11 @@ function validate (name) {

75 75

if (nameMatch) {

76 76

var user = nameMatch[1]

77 77

var pkg = nameMatch[2]

78 + 79 +

if (pkg.startsWith('.')) {

80 +

errors.push('name cannot start with a period')

81 +

}

82 + 78 83

if (encodeURIComponent(user) === user && encodeURIComponent(pkg) === pkg) {

79 84

return done(warnings, errors)

80 85

}

Original file line number Diff line number Diff line change

@@ -1,14 +1,14 @@

1 1

{

2 2

"name": "validate-npm-package-name",

3 -

"version": "6.0.0",

3 +

"version": "6.0.1",

4 4

"description": "Give me a string and I'll tell you if it's a valid npm package name",

5 5

"main": "lib/",

6 6

"directories": {

7 7

"test": "test"

8 8

},

9 9

"devDependencies": {

10 10

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

11 -

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

11 +

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

12 12

"tap": "^16.0.1"

13 13

},

14 14

"scripts": {

@@ -49,7 +49,7 @@

49 49

},

50 50

"templateOSS": {

51 51

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

52 -

"version": "4.23.3",

52 +

"version": "4.24.3",

53 53

"publish": true

54 54

},

55 55

"tap": {

Original file line number Diff line number Diff line change

@@ -148,7 +148,7 @@

148 148

"text-table": "~0.2.0",

149 149

"tiny-relative-date": "^1.3.0",

150 150

"treeverse": "^3.0.0",

151 -

"validate-npm-package-name": "^6.0.0",

151 +

"validate-npm-package-name": "^6.0.1",

152 152

"which": "^5.0.0"

153 153

},

154 154

"bin": {

@@ -18270,9 +18270,9 @@

18270 18270

}

18271 18271

},

18272 18272

"node_modules/validate-npm-package-name": {

18273 -

"version": "6.0.0",

18274 -

"resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-6.0.0.tgz",

18275 -

"integrity": "sha512-d7KLgL1LD3U3fgnvWEY1cQXoO/q6EQ1BSz48Sa149V/5zVTAbgmZIpyI8TRi6U9/JNyeYLlTKsEMPtLC27RFUg==",

18273 +

"version": "6.0.1",

18274 +

"resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-6.0.1.tgz",

18275 +

"integrity": "sha512-OaI//3H0J7ZkR1OqlhGA8cA+Cbk/2xFOQpJOt5+s27/ta9eZwpeervh4Mxh4w0im/kdgktowaqVNR7QOrUd7Yg==",

18276 18276

"inBundle": true,

18277 18277

"license": "ISC",

18278 18278

"engines": {

Original file line number Diff line number Diff line change

@@ -115,7 +115,7 @@

115 115

"text-table": "~0.2.0",

116 116

"tiny-relative-date": "^1.3.0",

117 117

"treeverse": "^3.0.0",

118 -

"validate-npm-package-name": "^6.0.0",

118 +

"validate-npm-package-name": "^6.0.1",

119 119

"which": "^5.0.0"

120 120

},

121 121

"bundleDependencies": [

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