Skip to content

Commit 3c6615f

Browse files
committed
1 parent 10445ca commit 3c6615f

File tree

4 files changed

+43
-20
lines changed

4 files changed

+43
-20
lines changed

node_modules/npm-user-validate/npm-user-validate.js node_modules/npm-user-validate/lib/index.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,17 @@ var requirements = exports.requirements = {
77
lowerCase: 'Name must be lowercase',
88
urlSafe: 'Name may not contain non-url-safe chars',
99
dot: 'Name may not start with "."',
10-
illegal: 'Name may not contain illegal character'
10+
illegal: 'Name may not contain illegal character',
1111
},
1212
password: {},
1313
email: {
1414
length: 'Email length must be less then or equal to 254 characters long',
15-
valid: 'Email must be an email address'
16-
}
15+
valid: 'Email must be an email address',
16+
},
1717
}
1818

1919
var illegalCharacterRe = new RegExp('([' + [
20-
"'"
20+
"'",
2121
].join() + '])')
2222

2323
function username (un) {
@@ -56,6 +56,6 @@ function email (em) {
5656
return null
5757
}
5858

59-
function pw (pw) {
59+
function pw () {
6060
return null
6161
}
+30-11
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,48 @@
11
{
22
"name": "npm-user-validate",
3-
"version": "1.0.1",
3+
"version": "2.0.0",
44
"description": "User validations for npm",
5-
"main": "npm-user-validate.js",
5+
"main": "lib/index.js",
66
"devDependencies": {
7-
"standard": "^8.4.0",
8-
"standard-version": "^3.0.0",
9-
"tap": "^7.1.2"
7+
"@npmcli/eslint-config": "^4.0.1",
8+
"@npmcli/template-oss": "4.11.0",
9+
"tap": "^16.3.2"
1010
},
1111
"scripts": {
12-
"pretest": "standard",
13-
"test": "tap --100 test/*.js"
12+
"test": "tap",
13+
"lint": "eslint \"**/*.js\"",
14+
"postlint": "template-oss-check",
15+
"template-oss-apply": "template-oss-apply --force",
16+
"lintfix": "npm run lint -- --fix",
17+
"snap": "tap",
18+
"posttest": "npm run lint"
1419
},
1520
"repository": {
1621
"type": "git",
17-
"url": "git://github.com/npm/npm-user-validate.git"
22+
"url": "https://github.com/npm/npm-user-validate.git"
1823
},
1924
"keywords": [
2025
"npm",
2126
"validation",
2227
"registry"
2328
],
24-
"author": "Robert Kowalski <[email protected]>",
29+
"author": "GitHub Inc.",
2530
"license": "BSD-2-Clause",
2631
"files": [
27-
"npm-user-validate.js"
28-
]
32+
"bin/",
33+
"lib/"
34+
],
35+
"engines": {
36+
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
37+
},
38+
"templateOSS": {
39+
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
40+
"version": "4.11.0"
41+
},
42+
"tap": {
43+
"nyc-arg": [
44+
"--exclude",
45+
"tap-snapshots/**"
46+
]
47+
}
2948
}

package-lock.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
"npm-pick-manifest": "^8.0.1",
131131
"npm-profile": "^7.0.1",
132132
"npm-registry-fetch": "^14.0.3",
133-
"npm-user-validate": "^1.0.1",
133+
"npm-user-validate": "^2.0.0",
134134
"npmlog": "^7.0.1",
135135
"p-map": "^4.0.0",
136136
"pacote": "^15.0.8",
@@ -8995,9 +8995,13 @@
89958995
}
89968996
},
89978997
"node_modules/npm-user-validate": {
8998-
"version": "1.0.1",
8998+
"version": "2.0.0",
8999+
"resolved": "https://registry.npmjs.org/npm-user-validate/-/npm-user-validate-2.0.0.tgz",
9000+
"integrity": "sha512-sSWeqAYJ2dUPStJB+AEj0DyLRltr/f6YNcvCA7phkB8/RMLMnVsQ41GMwHo/ERZLYNDsyB2wPm7pZo1mqPOl7Q==",
89999001
"inBundle": true,
9000-
"license": "BSD-2-Clause"
9002+
"engines": {
9003+
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
9004+
}
90019005
},
90029006
"node_modules/npmlog": {
90039007
"version": "7.0.1",

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"npm-pick-manifest": "^8.0.1",
100100
"npm-profile": "^7.0.1",
101101
"npm-registry-fetch": "^14.0.3",
102-
"npm-user-validate": "^1.0.1",
102+
"npm-user-validate": "^2.0.0",
103103
"npmlog": "^7.0.1",
104104
"p-map": "^4.0.0",
105105
"pacote": "^15.0.8",

0 commit comments

Comments
 (0)