Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

npm-registry-fetch

npm26.5mISC18.0.2TypeScript support: definitely-typed

Fetch-based http client for use with npm registry APIs

npm, registry, fetch

readme

npm-registry-fetch

npm-registry-fetch is a Node.js library that implements a fetch-like API for accessing npm registry APIs consistently. It's able to consume npm-style configuration values and has all the necessary logic for picking registries, handling scopes, and dealing with authentication details built-in.

This package is meant to replace the older npm-registry-client.

Example

const npmFetch = require('npm-registry-fetch')

console.log(
  await npmFetch.json('/-/ping')
)

Table of Contents

Install

$ npm install npm-registry-fetch

Contributing

The npm team enthusiastically welcomes contributions and project participation! There's a bunch of things you can do if you want to contribute! The Contributor Guide has all the information you need for everything from reporting bugs to contributing entire new features. Please don't hesitate to jump in if you'd like to, or even ask us questions if something isn't clear.

All participants and maintainers in this project are expected to follow Code of Conduct, and just generally be excellent to each other.

Please refer to the Changelog for project history details, too.

Happy hacking!

API

Caching and write=true query strings

Before performing any PUT or DELETE operation, npm clients first make a GET request to the registry resource being updated, which includes the query string ?write=true.

The semantics of this are, effectively, "I intend to write to this thing, and need to know the latest current value, so that my write can land cleanly".

The public npm registry handles these ?write=true requests by ensuring that the cache is re-validated before sending a response. In order to maintain the same behavior on the client, and not get tripped up by an overeager local cache when we intend to write data to the registry, any request that comes through npm-registry-fetch that contains write=true in the query string will forcibly set the prefer-online option to true, and set both prefer-offline and offline to false, so that any local cached value will be revalidated.

> fetch(url, [opts]) -> Promise<Response>

Performs a request to a given URL.

The URL can be either a full URL, or a path to one. The appropriate registry will be automatically picked if only a URL path is given.

For available options, please see the section on fetch options.

Example
const res = await fetch('/-/ping')
console.log(res.headers)
res.on('data', d => console.log(d.toString('utf8')))

> fetch.json(url, [opts]) -> Promise<ResponseJSON>

Performs a request to a given registry URL, parses the body of the response as JSON, and returns it as its final value. This is a utility shorthand for fetch(url).then(res => res.json()).

For available options, please see the section on fetch options.

Example
const res = await fetch.json('/-/ping')
console.log(res) // Body parsed as JSON

> fetch.json.stream(url, jsonPath, [opts]) -> Stream

Performs a request to a given registry URL and parses the body of the response as JSON, with each entry being emitted through the stream.

The jsonPath argument is a JSONStream.parse() path, and the returned stream (unlike default JSONStreams), has a valid Symbol.asyncIterator implementation.

For available options, please see the section on fetch options.

Example
console.log('https://npm.im/~zkat has access to the following packages:')
for await (let {key, value} of fetch.json.stream('/-/user/zkat/package', '$*')) {
  console.log(`https://npm.im/${key} (perms: ${value})`)
}

fetch Options

Fetch options are optional, and can be passed in as either a Map-like object (one with a .get() method), a plain javascript object, or a figgy-pudding instance.

opts.agent
  • Type: http.Agent
  • Default: an appropriate agent based on URL protocol and proxy settings

An Agent instance to be shared across requests. This allows multiple concurrent fetch requests to happen on the same socket.

You do not need to provide this option unless you want something particularly specialized, since proxy configurations and http/https agents are already automatically managed internally when this option is not passed through.

opts.body
  • Type: Buffer | Stream | Object
  • Default: null

Request body to send through the outgoing request. Buffers and Streams will be passed through as-is, with a default content-type of application/octet-stream. Plain JavaScript objects will be JSON.stringifyed and the content-type will default to application/json.

Use opts.headers to set the content-type to something else.

opts.ca
  • Type: String, Array, or null
  • Default: null

The Certificate Authority signing certificate that is trusted for SSL connections to the registry. Values should be in PEM format (Windows calls it "Base-64 encoded X.509 (.CER)") with newlines replaced by the string '\n'. For example:

{
  ca: '-----BEGIN CERTIFICATE-----\nXXXX\nXXXX\n-----END CERTIFICATE-----'
}

Set to null to only allow "known" registrars, or to a specific CA cert to trust only that specific signing authority.

Multiple CAs can be trusted by specifying an array of certificates instead of a single string.

See also opts.strictSSL, opts.ca and opts.key

opts.cache
  • Type: path
  • Default: null

The location of the http cache directory. If provided, certain cachable requests will be cached according to IETF RFC 7234 rules. This will speed up future requests, as well as make the cached data available offline if necessary/requested.

See also offline, preferOffline, and preferOnline.

opts.cert
  • Type: String
  • Default: null

A client certificate to pass when accessing the registry. Values should be in PEM format (Windows calls it "Base-64 encoded X.509 (.CER)") with newlines replaced by the string '\n'. For example:

{
  cert: '-----BEGIN CERTIFICATE-----\nXXXX\nXXXX\n-----END CERTIFICATE-----'
}

It is not the path to a certificate file (and there is no "certfile" option).

See also: opts.ca and opts.key

opts.fetchRetries
  • Type: Number
  • Default: 2

The "retries" config for retry to use when fetching packages from the registry.

See also opts.retry to provide all retry options as a single object.

opts.fetchRetryFactor
  • Type: Number
  • Default: 10

The "factor" config for retry to use when fetching packages.

See also opts.retry to provide all retry options as a single object.

opts.fetchRetryMintimeout
  • Type: Number
  • Default: 10000 (10 seconds)

The "minTimeout" config for retry to use when fetching packages.

See also opts.retry to provide all retry options as a single object.

opts.fetchRetryMaxtimeout
  • Type: Number
  • Default: 60000 (1 minute)

The "maxTimeout" config for retry to use when fetching packages.

See also opts.retry to provide all retry options as a single object.

opts.forceAuth
  • Type: Object
  • Default: null

If present, other auth-related values in opts will be completely ignored, including alwaysAuth, email, and otp, when calculating auth for a request, and the auth details in opts.forceAuth will be used instead.

opts.gzip
  • Type: Boolean
  • Default: false

If true, npm-registry-fetch will set the Content-Encoding header to gzip and use zlib.gzip() or zlib.createGzip() to gzip-encode opts.body.

opts.headers
  • Type: Object
  • Default: null

Additional headers for the outgoing request. This option can also be used to override headers automatically generated by npm-registry-fetch, such as Content-Type.

opts.ignoreBody
  • Type: Boolean
  • Default: false

If true, the response body will be thrown away and res.body set to null. This will prevent dangling response sockets for requests where you don't usually care what the response body is.

opts.integrity

If provided, the response body's will be verified against this integrity string, using ssri. If verification succeeds, the response will complete as normal. If verification fails, the response body will error with an EINTEGRITY error.

Body integrity is only verified if the body is actually consumed to completion -- that is, if you use res.json()/res.buffer(), or if you consume the default res stream data to its end.

Cached data will have its integrity automatically verified using the previously-generated integrity hash for the saved request information, so EINTEGRITY errors can happen if opts.cache is used, even if opts.integrity is not passed in.

opts.key
  • Type: String
  • Default: null

A client key to pass when accessing the registry. Values should be in PEM format with newlines replaced by the string '\n'. For example:

{
  key: '-----BEGIN PRIVATE KEY-----\nXXXX\nXXXX\n-----END PRIVATE KEY-----'
}

It is not the path to a key file (and there is no "keyfile" option).

See also: opts.ca and opts.cert

opts.localAddress
  • Type: IP Address String
  • Default: null

The IP address of the local interface to use when making connections to the registry.

See also opts.proxy

opts.mapJSON
  • Type: Function
  • Default: undefined

When using fetch.json.stream() (NOT fetch.json()), this will be passed down to JSONStream as the second argument to JSONStream.parse, and can be used to transform stream data before output.

opts.maxSockets
  • Type: Integer
  • Default: 12

Maximum number of sockets to keep open during requests. Has no effect if opts.agent is used.

opts.method
  • Type: String
  • Default: 'GET'

HTTP method to use for the outgoing request. Case-insensitive.

opts.noProxy
  • Type: String | String[]
  • Default: process.env.NOPROXY

If present, should be a comma-separated string or an array of domain extensions that a proxy should not be used for.

opts.npmSession
  • Type: String
  • Default: null

If provided, will be sent in the npm-session header. This header is used by the npm registry to identify individual user sessions (usually individual invocations of the CLI).

opts.npmCommand
  • Type: String
  • Default: null

If provided, it will be sent in the npm-command header. This header is used by the npm registry to identify the npm command that caused this request to be made.

opts.offline
  • Type: Boolean
  • Default: false

Force offline mode: no network requests will be done during install. To allow npm-registry-fetch to fill in missing cache data, see opts.preferOffline.

This option is only really useful if you're also using opts.cache.

This option is set to true when the request includes write=true in the query string.

opts.otp
  • Type: Number | String
  • Default: null

This is a one-time password from a two-factor authenticator. It is required for certain registry interactions when two-factor auth is enabled for a user account.

opts.otpPrompt
  • Type: Function
  • Default: null

This is a method which will be called to provide an OTP if the server responds with a 401 response indicating that a one-time-password is required.

It may return a promise, which must resolve to the OTP value to be used. If the method fails to provide an OTP value, then the fetch will fail with the auth error that indicated an OTP was needed.

opts.password
  • Alias: _password
  • Type: String
  • Default: null

Password used for basic authentication. For the more modern authentication method, please use the (more secure) opts.token

Can optionally be scoped to a registry by using a "nerf dart" for that registry. That is:

{
  '//registry.npmjs.org/:password': 't0k3nH34r'
}

See also opts.username

opts.preferOffline
  • Type: Boolean
  • Default: false

If true, staleness checks for cached data will be bypassed, but missing data will be requested from the server. To force full offline mode, use opts.offline.

This option is generally only useful if you're also using opts.cache.

This option is set to false when the request includes write=true in the query string.

opts.preferOnline
  • Type: Boolean
  • Default: false

If true, staleness checks for cached data will be forced, making the CLI look for updates immediately even for fresh package data.

This option is generally only useful if you're also using opts.cache.

This option is set to true when the request includes write=true in the query string.

opts.scope
  • Type: String
  • Default: null

If provided, will be sent in the npm-scope header. This header is used by the npm registry to identify the toplevel package scope that a particular project installation is using.

opts.proxy
  • Type: url
  • Default: null

A proxy to use for outgoing http requests. If not passed in, the HTTP(S)_PROXY environment variable will be used.

opts.query
  • Type: String | Object
  • Default: null

If provided, the request URI will have a query string appended to it using this query. If opts.query is an object, it will be converted to a query string using querystring.stringify().

If the request URI already has a query string, it will be merged with opts.query, preferring opts.query values.

opts.registry
  • Type: URL
  • Default: 'https://registry.npmjs.org'

Registry configuration for a request. If a request URL only includes the URL path, this registry setting will be prepended.

See also opts.scope, opts.spec, and opts.<scope>:registry which can all affect the actual registry URL used by the outgoing request.

opts.retry
  • Type: Object
  • Default: null

Single-object configuration for request retry settings. If passed in, will override individually-passed fetch-retry-* settings.

opts.scope
  • Type: String
  • Default: null

Associate an operation with a scope for a scoped registry. This option can force lookup of scope-specific registries and authentication.

See also opts.<scope>:registry and opts.spec for interactions with this option.

opts.<scope>:registry
  • Type: String
  • Default: null

This option type can be used to configure the registry used for requests involving a particular scope. For example, opts['@myscope:registry'] = 'https://scope-specific.registry/' will make it so requests go out to this registry instead of opts.registry when opts.scope is used, or when opts.spec is a scoped package spec.

The @ before the scope name is optional, but recommended.

opts.spec

If provided, can be used to automatically configure opts.scope based on a specific package name. Non-registry package specs will throw an error.

opts.strictSSL
  • Type: Boolean
  • Default: true

Whether or not to do SSL key validation when making requests to the registry via https.

See also opts.ca.

opts.timeout
  • Type: Milliseconds
  • Default: 300000 (5 minutes)

Time before a hanging request times out.

opts._authToken
  • Type: String
  • Default: null

Authentication token string.

Can be scoped to a registry by using a "nerf dart" for that registry. That is:

{
  '//registry.npmjs.org/:_authToken': 't0k3nH34r'
}
opts.userAgent
  • Type: String
  • Default: 'npm-registry-fetch@<version>/node@<node-version>+<arch> (<platform>)'

User agent string to send in the User-Agent header.

opts.username
  • Type: String
  • Default: null

Username used for basic authentication. For the more modern authentication method, please use the (more secure) opts.authtoken

Can optionally be scoped to a registry by using a "nerf dart" for that registry. That is:

{
  '//registry.npmjs.org/:username': 't0k3nH34r'
}

See also opts.password

changelog

Changelog

18.0.2 (2024-10-16)

Bug Fixes

  • 8044781 #273 log cache hits distinct from fetch (#273) (@mbtools)

    Chores

  • 99b99d2 #269 bump cacache from 18.0.4 to 19.0.1 (#269) (@dependabot[bot])
  • bd3f7d1 #272 bump @npmcli/template-oss from 4.23.3 to 4.23.4 (#272) (@dependabot[bot], @npm-cli-bot)

18.0.1 (2024-10-02)

Dependencies

18.0.0 (2024-09-26)

⚠️ BREAKING CHANGES

17.1.0 (2024-06-12)

Features

  • 29712af #246 merging functionality from minipass-json-stream (@wraithgar)

Dependencies

Chores

  • 920a3d8 #241 bump @npmcli/template-oss to 4.22.0 (@lukekarrys)
  • 17a1013 #241 postinstall for dependabot template-oss PR (@lukekarrys)

17.0.1 (2024-05-02)

Bug Fixes

  • 45cef0a #239 allow HttpErrorBase to take headers object (@lukekarrys, @wraithgar)
  • 45cef0a #239 make ErrorBase always capture stack trace (#239) (@lukekarrys, @wraithgar)

17.0.0 (2024-04-30)

⚠️ BREAKING CHANGES

  • remove undcoumented cleanUrl export (#234)

Features

  • 105f786 #234 remove undcoumented cleanUrl export (#234) (@lukekarrys)

Dependencies

Chores

  • bdc9039 #238 fix linting in test files (@wraithgar)
  • ceaf77e #236 postinstall for dependabot template-oss PR (@lukekarrys)
  • 377d981 #236 bump @npmcli/template-oss from 4.21.3 to 4.21.4 (@dependabot[bot])

16.2.1 (2024-04-12)

Dependencies

16.2.0 (2024-04-03)

Features

  • 76b02e8 #231 use @npmcli/redact for url cleaning (#231) (@lukekarrys)

Chores

  • e58e8bc #225 postinstall for dependabot template-oss PR (@lukekarrys)
  • ac8ae30 #225 bump @npmcli/template-oss from 4.21.1 to 4.21.3 (@dependabot[bot])
  • 8fc28d0 #222 postinstall for dependabot template-oss PR (@lukekarrys)
  • b7c4309 #222 bump @npmcli/template-oss from 4.19.0 to 4.21.1 (@dependabot[bot])

16.1.0 (2023-10-10)

Features

  • 84823a5 #212 include regKey and authKey in auth object (@wraithgar)
  • 92ec0da #212 add getAuth to main exports (@wraithgar)

16.0.0 (2023-08-15)

⚠️ BREAKING CHANGES

  • support for node <=16.13 has been removed

Bug Fixes

Dependencies

  • c859195 #197 bump npm-package-arg from 10.1.0 to 11.0.0
  • c1d490d #198 bump make-fetch-happen from 12.0.0 to 13.0.0

15.0.0 (2023-07-28)

⚠️ BREAKING CHANGES

  • the underlying fetch module now uses @npmcli/agent. Backwards compatibility should be fully implemented but due to the scope of this change it was made a breaking change out of an abundance of caution.
  • support for node 14 has been removed

Bug Fixes

Dependencies

  • a97564f #195 bump make-fetch-happen from 11.1.1 to 12.0.0 (#195)
  • e154d49 #191 bump minipass from 5.0.0 to 7.0.2

14.0.5 (2023-04-27)

Dependencies

  • a2d5880 #177 bump minipass from 4.2.7 to 5.0.0 (#177)

14.0.4 (2023-04-13)

Bug Fixes

  • 15dd221 #178 clean password by using url object itself (#178) (@DEMON1A)

Documentation

  • 14d1159 #173 update API documentation of noProxy option (#173) (@lingyuncai)

14.0.3 (2022-12-07)

Dependencies

14.0.2 (2022-10-18)

Dependencies

  • 36b7685 #154 bump npm-package-arg from 9.1.2 to 10.0.0

14.0.1 (2022-10-17)

Dependencies

14.0.0 (2022-10-13)

⚠️ BREAKING CHANGES

  • this module no longer attempts to change file ownership automatically
  • npm-registry-fetch is now compatible with the following semver range for node: ^14.17.0 || ^16.13.0 || >=18.0.0

Features

  • 104a51f #138 postinstall for dependabot template-oss PR (@lukekarrys)

Dependencies

  • b5aeed0 #146 bump make-fetch-happen from 10.2.1 to 11.0.0 (#146)

13.3.1 (2022-08-15)

Bug Fixes

13.3.0 (2022-07-18)

Features

  • respect registry-scoped certfile and keyfile options (#125) (42d605c)

13.2.0 (2022-06-29)

Features

  • set 'npm-auth-type' header depending on config option (#123) (ff4ed65)

13.1.1 (2022-04-13)

Bug Fixes

  • replace deprecated String.prototype.substr() (#115) (804411f)

13.1.0 (2022-03-22)

Features

Dependencies

  • update make-fetch-happen requirement from ^10.0.3 to ^10.0.4 (#96) (38d9782)
  • update make-fetch-happen requirement from ^10.0.4 to ^10.0.6 (#101) (1d2f3ed)
  • update minipass-fetch requirement from ^2.0.1 to ^2.0.2 (#95) (d8c3180)
  • update minipass-fetch requirement from ^2.0.2 to ^2.0.3 (#99) (3e08986)
  • update npm-package-arg requirement from ^9.0.0 to ^9.0.1 (#102) (a6192b4)

13.0.1 (2022-03-02)

Dependencies

  • bump minipass-fetch from 1.4.1 to 2.0.1 (#92) (33d0ecd)
  • update make-fetch-happen requirement from ^10.0.2 to ^10.0.3 (ee38552)

13.0.0 (2022-02-14)

⚠ BREAKING CHANGES

  • this drops support for passing in a log property. All logs are now emitted on the process object via proc-log

Features

  • use proc-log and drop npmlog support (#85) (db90766)

Dependencies

  • bump npm-package-arg from 8.1.5 to 9.0.0 (0b41730)
  • update make-fetch-happen requirement from ^10.0.1 to ^10.0.2 (6644733)

12.0.2 (2022-02-09)

Bug Fixes

  • consistent use of url.URL (847e5f9)

Dependencies

  • update make-fetch-happen requirement from ^10.0.0 to ^10.0.1 (d1a2a7f)
  • update minipass requirement from ^3.1.3 to ^3.1.6 (caa4309)
  • update minipass-fetch requirement from ^1.3.0 to ^1.4.1 (52f2ca9)
  • update minizlib requirement from ^2.0.0 to ^2.1.2 (9258e8a)
  • update npm-package-arg requirement from ^8.0.0 to ^8.1.5 (131ab16)

Documentation

  • rename token to _authToken (d615b4e)

12.0.1 (2022-01-25)

dependencies

12.0.0 (2021-11-23)

⚠ BREAKING CHANGES

  • feat(opts): use scope instead of projectScope
  • drop support for node10 and non-LTS versions of node12 and node14

11.0.0

⚠ BREAKING CHANGES

  • remove handling of deprecated warning headers (#53)

Features

  • better cache status (#54)

Bug Fixes

  • docs: fix header typo for npm-command (#51)
  • fix(docs): update registry param (#52)

10.1.2

Bug Fixes

  • fix: get auth token correct when login with sso

10.1.1

Bug Fixes

  • Send auth when hostname matches registry, and reg has auth

10.1.1

Features

  • feat(auth): set basicAuth (#45)

10.0.0

⚠ BREAKING CHANGES

  • feat(auth) load/send based on URI, not registry

Features:

  • feat(otp): Adds opts.otpPrompt to provide an OTP on demand

Bug Fixes

  • fix(config): remove isFromCI and npm-is-ci

9.0.0

⚠ BREAKING CHANGES

  • Remove publishConfig option

8.1.5 (2020-10-12)

Bug Fixes

  • respect publishConfig.registry when specified (32e36ef), closes #35

8.1.4 (2020-08-17)

Bug Fixes

  • redact passwords from http logs (3c294eb)

8.1.3 (2020-07-21)

8.1.2 (2020-07-11)

8.1.1 (2020-06-30)

8.1.0 (2020-05-20)

Features

  • add npm-command HTTP header (1bb4eb2)

8.0.3 (2020-05-13)

Bug Fixes

  • update minipass and make-fetch-happen to latest (3b6c5d0), closes #23

8.0.2 (2020-05-04)

Bug Fixes

  • update make-fetch-happen to 8.0.6 (226df2c)

8.0.0 (2020-02-24)

⚠ BREAKING CHANGES

  • Removes the 'opts.refer' option and the HTTP Referer header (unless explicitly added to the 'headers' option, of course).

PR-URL: https://github.com/npm/npm-registry-fetch/pull/25 Credit: @isaacs

Bug Fixes

  • remove referer header and opts.refer (eb8f7af), closes #25

7.0.1 (2020-02-24)

7.0.0 (2020-02-18)

⚠ BREAKING CHANGES

  • figgy pudding is now nowhere to be found.
  • this removes figgy-pudding, and drops several option aliases.

Defaults and behavior are all the same, and this module is now using the canonical camelCase option names that npm v7 will provide to all its deps.

Related to: https://github.com/npm/rfcs/pull/102

PR-URL: https://github.com/npm/npm-registry-fetch/pull/22 Credit: @isaacs

Bug Fixes

  • Remove figgy-pudding, use canonical option names (ede3c08), closes #22
  • update cacache, ssri, make-fetch-happen (57fcc88)

6.0.2 (2020-02-14)

Bug Fixes

  • always bypass cache when ?write=true (83f89f3)

6.0.1 (2020-02-14)

Bug Fixes

  • use 30s default for timeout as per README (50e8afc), closes #20

6.0.0 (2019-12-17)

⚠ BREAKING CHANGES

  • This drops support for node < 10.

There are some lint failures due to standard pushing for using WhatWG URL objects instead of url.parse/url.resolve. However, the code in this lib does some fancy things with the query/search portions of the parsed url object, so it'll take a bit of care to make it work properly.

Bug Fixes

  • detect CI so our tests don't fail in CI (5813da6)
  • Use WhatWG URLs instead of url.parse (8ccfa8a)
  • normalize settings, drop old nodes, update deps (510b125)

5.0.1 (2019-11-11)

5.0.0 (2019-10-04)

Bug Fixes

  • prefer const in getAuth function (90ac7b1)
  • use minizlib instead of core zlib (e64702e)

Features

  • refactor to use Minipass streams (bb37f20)

BREAKING CHANGES

  • this replaces all core streams (except for some PassThrough streams in a few tests) with Minipass streams, and updates all deps to the latest and greatest Minipass versions of things.

4.0.2 (2019-10-04)

Bug Fixes

4.0.0 (2019-07-15)

BREAKING CHANGES

  • uid and gid are inferred from cache folder, rather than being passed in as options.

3.9.1 (2019-07-02)

3.9.0 (2019-01-24)

Features

  • auth: support username:password encoded legacy _auth (a91f90c)

3.8.0 (2018-08-23)

Features

  • mapJson: add support for passing in json stream mapper (0600986)

3.7.0 (2018-08-23)

Features

  • json.stream: add utility function for streamed JSON parsing (051d969)

3.6.0 (2018-08-22)

Bug Fixes

  • docs: document opts.forceAuth (40bcd65)

Features

  • opts.ignoreBody: add a boolean to throw away response bodies (6923702)

3.5.0 (2018-08-22)

Features

  • pkgid: heuristic pkgid calculation for errors (2e789a5)

3.4.0 (2018-08-22)

Bug Fixes

  • deps: use new figgy-pudding with aliases fix (0308f54)

Features

  • auth: add forceAuth option to force a specific auth mechanism (4524d17)

3.3.0 (2018-08-21)

Bug Fixes

  • query: stop including undefined keys (4718b1b)

Features

  • otp: use heuristic detection for malformed EOTP responses (f035194)

3.2.1 (2018-08-16)

Bug Fixes

  • opts: pass through non-null opts.retry (beba040)

3.2.0 (2018-07-27)

Features

  • gzip: add opts.gzip convenience opt (340abe0)

3.1.1 (2018-04-09)

3.1.0 (2018-04-09)

Features

  • config: support no-proxy and https-proxy options (9aa906b)

3.0.0 (2018-04-09)

Bug Fixes

  • api: pacote integration-related fixes (a29de4f)
  • config: stop caring about opts.config (5856a6f)

BREAKING CHANGES

  • config: opts.config is no longer supported. Pass the options down in opts itself.

2.1.0 (2018-04-08)

Features

  • token: accept opts.token for opts._authToken (108c9f0)

2.0.0 (2018-04-08)

meta

  • drop support for node@4 (758536e)

BREAKING CHANGES

  • node@4 is no longer supported

1.1.1 (2018-04-06)

1.1.0 (2018-03-16)

Features

  • specs: can use opts.spec to trigger pickManifest (85c4ac9)

1.0.1 (2018-03-16)

Bug Fixes

  • query: oops console.log (870e4f5)

1.0.0 (2018-03-16)

Bug Fixes

  • auth: get auth working with all the little details (84b94ba)
  • deps: add bluebird as an actual dep (1286e31)
  • errors: Unknown auth errors use default code (#1) (3d91b93)
  • standard: remove args from invocation (9620a0a)

Features

  • api: baseline kinda-working API impl (bf91f9f)
  • body: automatic handling of different opts.body values (f3b97db)
  • config: nicer input config input handling (b9ce21d)
  • opts: use figgy-pudding for opts handling (0abd527)
  • query: add query utility support (65ea8b1)