Updated the project.
This commit is contained in:
parent
5dfe9f128d
commit
7919556077
1550 changed files with 17063 additions and 40183 deletions
0
my-app/node_modules/validate-npm-package-name/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/validate-npm-package-name/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/validate-npm-package-name/README.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/validate-npm-package-name/README.md
generated
vendored
Executable file → Normal file
10
my-app/node_modules/validate-npm-package-name/lib/index.js
generated
vendored
Executable file → Normal file
10
my-app/node_modules/validate-npm-package-name/lib/index.js
generated
vendored
Executable file → Normal file
|
@ -1,7 +1,7 @@
|
|||
'use strict'
|
||||
const { builtinModules: builtins } = require('module')
|
||||
|
||||
var scopedPackagePattern = new RegExp('^(?:@([^/]+?)[/])?([^/]+?)$')
|
||||
var builtins = require('builtins')
|
||||
var blacklist = [
|
||||
'node_modules',
|
||||
'favicon.ico',
|
||||
|
@ -52,11 +52,9 @@ function validate (name) {
|
|||
// Generate warnings for stuff that used to be allowed
|
||||
|
||||
// core module names like http, events, util, etc
|
||||
builtins({ version: '*' }).forEach(function (builtin) {
|
||||
if (name.toLowerCase() === builtin) {
|
||||
warnings.push(builtin + ' is a core module name')
|
||||
}
|
||||
})
|
||||
if (builtins.includes(name.toLowerCase())) {
|
||||
warnings.push(name + ' is a core module name')
|
||||
}
|
||||
|
||||
if (name.length > 214) {
|
||||
warnings.push('name can no longer contain more than 214 characters')
|
||||
|
|
19
my-app/node_modules/validate-npm-package-name/package.json
generated
vendored
Executable file → Normal file
19
my-app/node_modules/validate-npm-package-name/package.json
generated
vendored
Executable file → Normal file
|
@ -1,17 +1,14 @@
|
|||
{
|
||||
"name": "validate-npm-package-name",
|
||||
"version": "5.0.0",
|
||||
"version": "5.0.1",
|
||||
"description": "Give me a string and I'll tell you if it's a valid npm package name",
|
||||
"main": "lib/",
|
||||
"directories": {
|
||||
"test": "test"
|
||||
},
|
||||
"dependencies": {
|
||||
"builtins": "^5.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@npmcli/eslint-config": "^3.0.1",
|
||||
"@npmcli/template-oss": "4.5.1",
|
||||
"@npmcli/eslint-config": "^4.0.0",
|
||||
"@npmcli/template-oss": "4.22.0",
|
||||
"tap": "^16.0.1"
|
||||
},
|
||||
"scripts": {
|
||||
|
@ -19,7 +16,7 @@
|
|||
"test:code": "tap ${TAP_FLAGS:-'--'} test/*.js",
|
||||
"test:style": "standard",
|
||||
"test": "tap",
|
||||
"lint": "eslint \"**/*.js\"",
|
||||
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
|
||||
"postlint": "template-oss-check",
|
||||
"template-oss-apply": "template-oss-apply --force",
|
||||
"lintfix": "npm run lint -- --fix",
|
||||
|
@ -28,7 +25,7 @@
|
|||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/npm/validate-npm-package-name.git"
|
||||
"url": "git+https://github.com/npm/validate-npm-package-name.git"
|
||||
},
|
||||
"keywords": [
|
||||
"npm",
|
||||
|
@ -51,12 +48,10 @@
|
|||
},
|
||||
"templateOSS": {
|
||||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
||||
"version": "4.5.1"
|
||||
"version": "4.22.0",
|
||||
"publish": true
|
||||
},
|
||||
"tap": {
|
||||
"statements": 88,
|
||||
"branches": 92,
|
||||
"lines": 88,
|
||||
"nyc-arg": [
|
||||
"--exclude",
|
||||
"tap-snapshots/**"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue