pacote 11.2.0 → 11.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/registry.js +3 -1
  2. package/package.json +1 -1
package/lib/registry.js CHANGED
@@ -92,9 +92,11 @@ class RegistryFetcher extends Fetcher {
92
92
  packument._cached = res.headers.has('x-local-cache')
93
93
  packument._contentLength = +res.headers.get('content-length')
94
94
  if (this.packumentCache)
95
- this.packumentCache.set(this.pakumentUrl, packument)
95
+ this.packumentCache.set(this.packumentUrl, packument)
96
96
  return packument
97
97
  })).catch(er => {
98
+ if (this.packumentCache)
99
+ this.packumentCache.delete(this.packumentUrl)
98
100
  if (er.code === 'E404' && !this.fullMetadata) {
99
101
  // possible that corgis are not supported by this registry
100
102
  this.fullMetadata = true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pacote",
3
- "version": "11.2.0",
3
+ "version": "11.2.1",
4
4
  "description": "JavaScript package downloader",
5
5
  "author": "Isaac Z. Schlueter <i@izs.me> (https://izs.me)",
6
6
  "bin": {