Updated the project.

This commit is contained in:
Batuhan Berk Başoğlu 2024-06-03 15:44:25 -04:00
parent 5dfe9f128d
commit 7919556077
1550 changed files with 17063 additions and 40183 deletions

10
my-app/node_modules/validate-npm-package-name/lib/index.js generated vendored Executable file → Normal file
View 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')