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.
- package/lib/registry.js +3 -1
- 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.
|
|
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
|