Skip to content

Commit

Permalink
deps: npm-user-validate@2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed Feb 7, 2023
1 parent 10445ca commit 3c6615f
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@ var requirements = exports.requirements = {
lowerCase: 'Name must be lowercase',
urlSafe: 'Name may not contain non-url-safe chars',
dot: 'Name may not start with "."',
illegal: 'Name may not contain illegal character'
illegal: 'Name may not contain illegal character',
},
password: {},
email: {
length: 'Email length must be less then or equal to 254 characters long',
valid: 'Email must be an email address'
}
valid: 'Email must be an email address',
},
}

var illegalCharacterRe = new RegExp('([' + [
"'"
"'",
].join() + '])')

function username (un) {
Expand Down Expand Up @@ -56,6 +56,6 @@ function email (em) {
return null
}

function pw (pw) {
function pw () {
return null
}
41 changes: 30 additions & 11 deletions node_modules/npm-user-validate/package.json
Original file line number Diff line number Diff line change
@@ -1,29 +1,48 @@
{
"name": "npm-user-validate",
"version": "1.0.1",
"version": "2.0.0",
"description": "User validations for npm",
"main": "npm-user-validate.js",
"main": "lib/index.js",
"devDependencies": {
"standard": "^8.4.0",
"standard-version": "^3.0.0",
"tap": "^7.1.2"
"@npmcli/eslint-config": "^4.0.1",
"@npmcli/template-oss": "4.11.0",
"tap": "^16.3.2"
},
"scripts": {
"pretest": "standard",
"test": "tap --100 test/*.js"
"test": "tap",
"lint": "eslint \"**/*.js\"",
"postlint": "template-oss-check",
"template-oss-apply": "template-oss-apply --force",
"lintfix": "npm run lint -- --fix",
"snap": "tap",
"posttest": "npm run lint"
},
"repository": {
"type": "git",
"url": "git://github.com/npm/npm-user-validate.git"
"url": "https://github.com/npm/npm-user-validate.git"
},
"keywords": [
"npm",
"validation",
"registry"
],
"author": "Robert Kowalski <rok@kowalski.gd>",
"author": "GitHub Inc.",
"license": "BSD-2-Clause",
"files": [
"npm-user-validate.js"
]
"bin/",
"lib/"
],
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
},
"templateOSS": {
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "4.11.0"
},
"tap": {
"nyc-arg": [
"--exclude",
"tap-snapshots/**"
]
}
}
10 changes: 7 additions & 3 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"npm-pick-manifest": "^8.0.1",
"npm-profile": "^7.0.1",
"npm-registry-fetch": "^14.0.3",
"npm-user-validate": "^1.0.1",
"npm-user-validate": "^2.0.0",
"npmlog": "^7.0.1",
"p-map": "^4.0.0",
"pacote": "^15.0.8",
Expand Down Expand Up @@ -8995,9 +8995,13 @@
}
},
"node_modules/npm-user-validate": {
"version": "1.0.1",
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/npm-user-validate/-/npm-user-validate-2.0.0.tgz",
"integrity": "sha512-sSWeqAYJ2dUPStJB+AEj0DyLRltr/f6YNcvCA7phkB8/RMLMnVsQ41GMwHo/ERZLYNDsyB2wPm7pZo1mqPOl7Q==",
"inBundle": true,
"license": "BSD-2-Clause"
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
},
"node_modules/npmlog": {
"version": "7.0.1",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
"npm-pick-manifest": "^8.0.1",
"npm-profile": "^7.0.1",
"npm-registry-fetch": "^14.0.3",
"npm-user-validate": "^1.0.1",
"npm-user-validate": "^2.0.0",
"npmlog": "^7.0.1",
"p-map": "^4.0.0",
"pacote": "^15.0.8",
Expand Down

0 comments on commit 3c6615f

Please sign in to comment.