Socket
Socket
Sign inDemoInstall

npm-registry-fetch

Package Overview
Dependencies
Maintainers
6
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-registry-fetch - npm Package Compare versions

Comparing version 13.0.1 to 13.1.0

lib/clean-url.js

15

lib/check-response.js

@@ -7,2 +7,3 @@ 'use strict'

const log = require('proc-log')
const cleanUrl = require('./clean-url.js')

@@ -49,16 +50,4 @@ /* eslint-disable-next-line max-len */

const cacheStr = cacheStatus ? ` (cache ${cacheStatus})` : ''
const urlStr = cleanUrl(res.url)
let urlStr
try {
const { URL } = require('url')
const url = new URL(res.url)
if (url.password) {
url.password = '***'
}
urlStr = url.toString()
} catch (er) {
urlStr = res.url
}
log.http(

@@ -65,0 +54,0 @@ 'fetch',

@@ -107,7 +107,7 @@ 'use strict'

const doFetch = async body => {
const doFetch = async fetchBody => {
const p = fetch(uri, {
agent: opts.agent,
algorithms: opts.algorithms,
body,
body: fetchBody,
cache: getCacheMode(opts),

@@ -243,1 +243,3 @@ cachePath: opts.cache,

}
module.exports.cleanUrl = require('./clean-url.js')
{
"name": "npm-registry-fetch",
"version": "13.0.1",
"version": "13.1.0",
"description": "Fetch-based http client for use with npm registry APIs",
"main": "lib",
"files": [
"bin",
"lib"
"bin/",
"lib/"
],
"scripts": {
"eslint": "eslint",
"lint": "eslint '**/*.js'",
"lint": "eslint \"**/*.js\"",
"lintfix": "npm run lint -- --fix",

@@ -21,7 +21,10 @@ "prepublishOnly": "git push origin --follow-tags",

"postsnap": "npm run lintfix --",
"postlint": "npm-template-check",
"postlint": "template-oss-check",
"snap": "tap",
"template-copy": "npm-template-copy --force"
"template-oss-apply": "template-oss-apply --force"
},
"repository": "https://github.com/npm/npm-registry-fetch",
"repository": {
"type": "git",
"url": "https://github.com/npm/npm-registry-fetch.git"
},
"keywords": [

@@ -35,13 +38,14 @@ "npm",

"dependencies": {
"make-fetch-happen": "^10.0.3",
"make-fetch-happen": "^10.0.6",
"minipass": "^3.1.6",
"minipass-fetch": "^2.0.1",
"minipass-fetch": "^2.0.3",
"minipass-json-stream": "^1.0.1",
"minizlib": "^2.1.2",
"npm-package-arg": "^9.0.0",
"npm-package-arg": "^9.0.1",
"proc-log": "^2.0.0"
},
"devDependencies": {
"@npmcli/template-oss": "^2.8.1",
"cacache": "^15.3.0",
"@npmcli/eslint-config": "^3.0.1",
"@npmcli/template-oss": "3.1.2",
"cacache": "^16.0.2",
"nock": "^13.2.4",

@@ -57,7 +61,8 @@ "require-inject": "^1.4.4",

"engines": {
"node": "^12.13.0 || ^14.15.0 || >=16"
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
},
"templateOSS": {
"version": "2.8.1"
"//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",
"version": "3.1.2"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc