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/npm-registry-fetch/LICENSE.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/npm-registry-fetch/LICENSE.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/npm-registry-fetch/README.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/npm-registry-fetch/README.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/npm-registry-fetch/lib/auth.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/npm-registry-fetch/lib/auth.js
generated
vendored
Executable file → Normal file
4
my-app/node_modules/npm-registry-fetch/lib/check-response.js
generated
vendored
Executable file → Normal file
4
my-app/node_modules/npm-registry-fetch/lib/check-response.js
generated
vendored
Executable file → Normal file
|
@ -3,8 +3,8 @@
|
|||
const errors = require('./errors.js')
|
||||
const { Response } = require('minipass-fetch')
|
||||
const defaultOpts = require('./default-opts.js')
|
||||
const log = require('proc-log')
|
||||
const cleanUrl = require('./clean-url.js')
|
||||
const { log } = require('proc-log')
|
||||
const { redact: cleanUrl } = require('@npmcli/redact')
|
||||
|
||||
/* eslint-disable-next-line max-len */
|
||||
const moreInfoUrl = 'https://github.com/npm/cli/wiki/No-auth-for-URI,-but-auth-present-for-scoped-registry'
|
||||
|
|
27
my-app/node_modules/npm-registry-fetch/lib/clean-url.js
generated
vendored
27
my-app/node_modules/npm-registry-fetch/lib/clean-url.js
generated
vendored
|
@ -1,27 +0,0 @@
|
|||
const { URL } = require('url')
|
||||
|
||||
const replace = '***'
|
||||
const tokenRegex = /\bnpm_[a-zA-Z0-9]{36}\b/g
|
||||
const guidRegex = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/g
|
||||
|
||||
const cleanUrl = (str) => {
|
||||
if (typeof str !== 'string' || !str) {
|
||||
return str
|
||||
}
|
||||
|
||||
try {
|
||||
const url = new URL(str)
|
||||
if (url.password) {
|
||||
url.password = replace
|
||||
str = url.toString()
|
||||
}
|
||||
} catch {
|
||||
// ignore errors
|
||||
}
|
||||
|
||||
return str
|
||||
.replace(tokenRegex, `npm_${replace}`)
|
||||
.replace(guidRegex, `npm_${replace}`)
|
||||
}
|
||||
|
||||
module.exports = cleanUrl
|
0
my-app/node_modules/npm-registry-fetch/lib/default-opts.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/npm-registry-fetch/lib/default-opts.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/npm-registry-fetch/lib/errors.js
generated
vendored
Executable file → Normal file
0
my-app/node_modules/npm-registry-fetch/lib/errors.js
generated
vendored
Executable file → Normal file
5
my-app/node_modules/npm-registry-fetch/lib/index.js
generated
vendored
Executable file → Normal file
5
my-app/node_modules/npm-registry-fetch/lib/index.js
generated
vendored
Executable file → Normal file
|
@ -10,6 +10,7 @@ const qs = require('querystring')
|
|||
const url = require('url')
|
||||
const zlib = require('minizlib')
|
||||
const { Minipass } = require('minipass')
|
||||
const { redact: cleanUrl } = require('@npmcli/redact')
|
||||
|
||||
const defaultOpts = require('./default-opts.js')
|
||||
|
||||
|
@ -246,4 +247,6 @@ function getHeaders (uri, auth, opts) {
|
|||
return headers
|
||||
}
|
||||
|
||||
module.exports.cleanUrl = require('./clean-url.js')
|
||||
// export cleanUrl to avoid a breaking change
|
||||
// TODO: next semver major remove this. Consumers should use @npmcli/redact instead
|
||||
module.exports.cleanUrl = cleanUrl
|
||||
|
|
11
my-app/node_modules/npm-registry-fetch/package.json
generated
vendored
Executable file → Normal file
11
my-app/node_modules/npm-registry-fetch/package.json
generated
vendored
Executable file → Normal file
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "npm-registry-fetch",
|
||||
"version": "16.1.0",
|
||||
"version": "16.2.1",
|
||||
"description": "Fetch-based http client for use with npm registry APIs",
|
||||
"main": "lib",
|
||||
"files": [
|
||||
|
@ -9,7 +9,7 @@
|
|||
],
|
||||
"scripts": {
|
||||
"eslint": "eslint",
|
||||
"lint": "eslint \"**/*.js\"",
|
||||
"lint": "eslint \"**/*.{js,cjs,ts,mjs,jsx,tsx}\"",
|
||||
"lintfix": "npm run lint -- --fix",
|
||||
"test": "tap",
|
||||
"posttest": "npm run lint",
|
||||
|
@ -31,17 +31,18 @@
|
|||
"author": "GitHub Inc.",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@npmcli/redact": "^1.1.0",
|
||||
"make-fetch-happen": "^13.0.0",
|
||||
"minipass": "^7.0.2",
|
||||
"minipass-fetch": "^3.0.0",
|
||||
"minipass-json-stream": "^1.0.1",
|
||||
"minizlib": "^2.1.2",
|
||||
"npm-package-arg": "^11.0.0",
|
||||
"proc-log": "^3.0.0"
|
||||
"proc-log": "^4.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@npmcli/eslint-config": "^4.0.0",
|
||||
"@npmcli/template-oss": "4.19.0",
|
||||
"@npmcli/template-oss": "4.21.3",
|
||||
"cacache": "^18.0.0",
|
||||
"nock": "^13.2.4",
|
||||
"require-inject": "^1.4.4",
|
||||
|
@ -61,7 +62,7 @@
|
|||
},
|
||||
"templateOSS": {
|
||||
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
|
||||
"version": "4.19.0",
|
||||
"version": "4.21.3",
|
||||
"publish": "true"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue