diff --git a/node_modules/npm-user-validate/npm-user-validate.js b/node_modules/npm-user-validate/lib/index.js similarity index 90% rename from node_modules/npm-user-validate/npm-user-validate.js rename to node_modules/npm-user-validate/lib/index.js index ffd8791c7eb95..379a31d2720e3 100644 --- a/node_modules/npm-user-validate/npm-user-validate.js +++ b/node_modules/npm-user-validate/lib/index.js @@ -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) { @@ -56,6 +56,6 @@ function email (em) { return null } -function pw (pw) { +function pw () { return null } diff --git a/node_modules/npm-user-validate/package.json b/node_modules/npm-user-validate/package.json index ffcf1be7f5c62..8cf48f80f86a8 100644 --- a/node_modules/npm-user-validate/package.json +++ b/node_modules/npm-user-validate/package.json @@ -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 ", + "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/**" + ] + } } diff --git a/package-lock.json b/package-lock.json index 0c69d9ec7a27e..7a120c22f7f66 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", @@ -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", diff --git a/package.json b/package.json index 1320117e027f0..b0ce502365686 100644 --- a/package.json +++ b/package.json @@ -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",