Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

npm-registry-client

Package Overview
Dependencies
Maintainers
1
Versions
156
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm-registry-client - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

3

lib/request.js

@@ -163,3 +163,4 @@ module.exports = regRequest

headers["user-agent"] = this.conf.get('user-agent')
headers["user-agent"] = this.conf.get('user-agent') ||
'node/' + process.version

@@ -166,0 +167,0 @@ var p = this.conf.get('proxy')

@@ -5,3 +5,3 @@ {

"description": "Client for the npm registry",
"version": "0.2.0",
"version": "0.2.1",
"repository": {

@@ -8,0 +8,0 @@ "url": "git://github.com/isaacs/npm-registry-client"

@@ -11,3 +11,3 @@ # npm-registry-client

var RegClient = require('npm-registry-client')
var client = new RegClient(options)
var client = new RegClient(config)

@@ -22,7 +22,13 @@ client.get("npm", "latest", 1000, function (er, data, raw, res) {

# Options
# Configuration
This program is designed to work with
[npmconf](https://npmjs.org/package/npmconf), but you can also pass in
a plain-jane object with the appropriate configs, and it'll shim it
for you. Any configuration thingie that has get/set/del methods will
also be accepted.
* `registry` **Required** {String} URL to the registry
* `cache` **Required** {String} Path to the cache folder
* `alwaysAuth` {Boolean} Auth even for GET requests.
* `always-auth` {Boolean} Auth even for GET requests.
* `auth` {String} A base64-encoded `username:password`

@@ -33,15 +39,23 @@ * `email` {String} User's email address

* `ca` {String} Cerficate signing authority certificates to trust.
* `strictSSL` {Boolean} Whether or not to be strict with SSL
* `strict-ssl` {Boolean} Whether or not to be strict with SSL
certificates. Default = `true`
* `userAgent` {String} User agent header to send. Default =
* `user-agent` {String} User agent header to send. Default =
`"node/{process.version}"`
* `log` {Object} The logger to use. Defaults to `require("npmlog")` if
that works, otherwise logs are disabled.
* `retries` {Number} Number of times to retry on GET failures.
* `fetch-retries` {Number} Number of times to retry on GET failures.
Default=2
* `retryFactor` {Number} `factor` setting for `node-retry`. Default=10
* `retryMinTimeout` {Number} `minTimeout` setting for `node-retry`.
* `fetch-retry-factor` {Number} `factor` setting for `node-retry`. Default=10
* `fetch-retry-mintimeout` {Number} `minTimeout` setting for `node-retry`.
Default=10000 (10 seconds)
* `retryMaxTimeout` {Number} `maxTimeout` setting for `node-retry`.
* `fetch-retry-maxtimeout` {Number} `maxTimeout` setting for `node-retry`.
Default=60000 (60 seconds)
* `proxy` {URL} The url to proxy requests through.
* `https-proxy` {URL} The url to proxy https requests through.
Defaults to be the same as `proxy` if unset.
* `_auth` {String} The base64-encoded authorization header.
* `username` `_password` {String} Username/password to use to generate
`_auth` if not supplied.
* `_token` {Object} A token for use with
[couch-login](https://npmjs.org/package/couch-login)

@@ -48,0 +62,0 @@ # client.request(method, where, [what], [etag], [nofollow], cb)

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