mirror of
https://github.com/pnpm/pnpm.git
synced 2026-05-05 22:47:50 -04:00
fix: the created fetcher should have type {tarball: FetchFunction}
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
dependencies:
|
||||
'@pnpm/fetcher-base': 1.0.0
|
||||
'@pnpm/tarball-fetcher': 'link:../__package_previews__/tarball-fetcher/@pnpm/tarball-fetcher'
|
||||
'@types/mem': 1.1.2
|
||||
'@types/mz': 0.0.32
|
||||
'@types/node': 9.6.2
|
||||
@@ -1876,7 +1877,7 @@ packages:
|
||||
resolution:
|
||||
integrity: sha1-5a2ryKz0CPY4X8dklWhMiOavaJo=
|
||||
registry: 'https://registry.npmjs.org/'
|
||||
shrinkwrapMinorVersion: 4
|
||||
shrinkwrapMinorVersion: 5
|
||||
shrinkwrapVersion: 3
|
||||
specifiers:
|
||||
'@pnpm/fetcher-base': ^1.0.0
|
||||
|
||||
13
src/index.ts
13
src/index.ts
@@ -1,5 +1,6 @@
|
||||
import logger from '@pnpm/logger'
|
||||
import {
|
||||
FetchFunction,
|
||||
FetchOptions,
|
||||
FetchResult,
|
||||
} from '@pnpm/fetcher-base'
|
||||
@@ -35,17 +36,7 @@ export default function (
|
||||
ignoreFile?: IgnoreFunction,
|
||||
offline?: boolean,
|
||||
},
|
||||
): {
|
||||
tarball: (
|
||||
resolution: {
|
||||
integrity?: string,
|
||||
registry?: string,
|
||||
tarball: string,
|
||||
},
|
||||
target: string,
|
||||
opts: FetchOptions,
|
||||
) => Promise<{}>
|
||||
} {
|
||||
): { tarball: FetchFunction } {
|
||||
const download = createDownloader({
|
||||
alwaysAuth: opts.alwaysAuth || false,
|
||||
registry: opts.registry,
|
||||
|
||||
Reference in New Issue
Block a user