formacao
This commit is contained in:
+3
-2
@@ -10,7 +10,7 @@ const cacache = require('cacache')
|
||||
const fsm = require('fs-minipass')
|
||||
const getContents = require('@npmcli/installed-package-contents')
|
||||
const npa = require('npm-package-arg')
|
||||
const retry = require('promise-retry')
|
||||
const { promiseRetry } = require('@gar/promise-retry')
|
||||
const ssri = require('ssri')
|
||||
const tar = require('tar')
|
||||
const { Minipass } = require('minipass')
|
||||
@@ -319,7 +319,7 @@ class FetcherBase {
|
||||
this.spec
|
||||
}. Extracting by manifest.`)
|
||||
}
|
||||
return this.resolve().then(() => retry(tryAgain =>
|
||||
return this.resolve().then(() => promiseRetry(tryAgain =>
|
||||
streamHandler(this.#istream(this[_.tarballFromResolved]()))
|
||||
.catch(streamErr => {
|
||||
// Most likely data integrity. A cache ENOENT error is unlikely
|
||||
@@ -502,6 +502,7 @@ FetcherBase.get = (rawSpec, opts = {}) => {
|
||||
case 'range':
|
||||
case 'tag':
|
||||
case 'alias':
|
||||
canUse({ allow: opts.allowRegistry, isRoot: opts._isRoot, allowType: 'registry', spec })
|
||||
return new RegistryFetcher(spec.subSpec || spec, opts)
|
||||
|
||||
case 'file':
|
||||
|
||||
Reference in New Issue
Block a user