Skip to content

Commit

Permalink
deps: validate-npm-package-name@5.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 7, 2024
1 parent d440011 commit 18e5312
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 157 deletions.
2 changes: 0 additions & 2 deletions DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,6 @@ graph LR;
bin-links-->read-cmd-shim;
bin-links-->write-file-atomic;
brace-expansion-->balanced-match;
builtins-->semver;
cacache-->fs-minipass;
cacache-->glob;
cacache-->lru-cache;
Expand Down Expand Up @@ -777,7 +776,6 @@ graph LR;
unique-slug-->imurmurhash;
validate-npm-package-license-->spdx-correct;
validate-npm-package-license-->spdx-expression-parse;
validate-npm-package-name-->builtins;
which-->isexe;
wrap-ansi-->ansi-styles;
wrap-ansi-->string-width;
Expand Down
1 change: 0 additions & 1 deletion node_modules/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
!/bin-links
!/binary-extensions
!/brace-expansion
!/builtins
!/cacache
!/chalk
!/chownr
Expand Down
20 changes: 0 additions & 20 deletions node_modules/builtins/License

This file was deleted.

80 changes: 0 additions & 80 deletions node_modules/builtins/index.js

This file was deleted.

19 changes: 0 additions & 19 deletions node_modules/builtins/package.json

This file was deleted.

10 changes: 4 additions & 6 deletions node_modules/validate-npm-package-name/lib/index.js
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -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')
Expand Down
19 changes: 7 additions & 12 deletions node_modules/validate-npm-package-name/package.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
{
"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": {
"cov:test": "TAP_FLAGS='--cov' npm run test:code",
"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",
Expand All @@ -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",
Expand All @@ -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/**"
Expand Down
21 changes: 5 additions & 16 deletions package-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
"text-table": "~0.2.0",
"tiny-relative-date": "^1.3.0",
"treeverse": "^3.0.0",
"validate-npm-package-name": "^5.0.0",
"validate-npm-package-name": "^5.0.1",
"which": "^4.0.0",
"write-file-atomic": "^5.0.1"
},
Expand Down Expand Up @@ -2803,15 +2803,6 @@
"integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",
"dev": true
},
"node_modules/builtins": {
"version": "5.1.0",
"resolved": "https://registry.npmjs.org/builtins/-/builtins-5.1.0.tgz",
"integrity": "sha512-SW9lzGTLvWTP1AY8xeAMZimqDrIaSdLQUcVr9DMef51niJ022Ri87SwRRKYm4A6iHfkPaiVUu/Duw2Wc4J7kKg==",
"inBundle": true,
"dependencies": {
"semver": "^7.0.0"
}
},
"node_modules/cacache": {
"version": "18.0.3",
"resolved": "https://registry.npmjs.org/cacache/-/cacache-18.0.3.tgz",
Expand Down Expand Up @@ -14328,13 +14319,11 @@
}
},
"node_modules/validate-npm-package-name": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-5.0.0.tgz",
"integrity": "sha512-YuKoXDAhBYxY7SfOKxHBDoSyENFeW5VvIIQp2TGQuit8gpK6MnWaQelBKxso72DoxTZfZdcP3W90LqpSkgPzLQ==",
"version": "5.0.1",
"resolved": "https://registry.npmjs.org/validate-npm-package-name/-/validate-npm-package-name-5.0.1.tgz",
"integrity": "sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ==",
"inBundle": true,
"dependencies": {
"builtins": "^5.0.0"
},
"license": "ISC",
"engines": {
"node": "^14.17.0 || ^16.13.0 || >=18.0.0"
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"text-table": "~0.2.0",
"tiny-relative-date": "^1.3.0",
"treeverse": "^3.0.0",
"validate-npm-package-name": "^5.0.0",
"validate-npm-package-name": "^5.0.1",
"which": "^4.0.0",
"write-file-atomic": "^5.0.1"
},
Expand Down

0 comments on commit 18e5312

Please sign in to comment.