A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/npm/cli/commit/5fc0f9dfdac3f95fd2eb6855beb2020941b2a361 below:

lazy load validate npm package name on error message (#7347) · npm/cli@5fc0f9d · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+1

-1

lines changed Original file line number Diff line number Diff line change

@@ -1,6 +1,5 @@

1 1

const { format } = require('util')

2 2

const { resolve } = require('path')

3 -

const nameValidator = require('validate-npm-package-name')

4 3

const { redactLog: replaceInfo } = require('@npmcli/redact')

5 4

const { report } = require('./explain-eresolve.js')

6 5

const log = require('./log-shim')

@@ -215,6 +214,7 @@ const errorMessage = (er, npm) => {

215 214

detail.push(['404', ''])

216 215

detail.push(['404', '', `'${replaceInfo(er.pkgid)}' is not in this registry.`])

217 216 217 +

const nameValidator = require('validate-npm-package-name')

218 218

const valResult = nameValidator(pkg)

219 219 220 220

if (!valResult.validForNewPackages) {

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4