Socket
Socket
Sign inDemoInstall

@pnpm/fetcher-base

Package Overview
Dependencies
Maintainers
2
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/fetcher-base - npm Package Compare versions

Comparing version 14.0.2 to 15.0.0

28

lib/index.d.ts
import { type Resolution, type GitResolution, type DirectoryResolution } from '@pnpm/resolver-base';
import type { DeferredManifestPromise, Cafs, FilesIndex } from '@pnpm/cafs-types';
import { type DeferredManifestPromise, type Cafs } from '@pnpm/cafs-types';
import { type DependencyManifest } from '@pnpm/types';
export interface PkgNameVersion {
name?: string;
version?: string;
}
export interface FetchOptions {
manifest?: DeferredManifestPromise;
filesIndexFile: string;
lockfileDir: string;
onStart?: (totalSize: number | null, attempt: number) => void;
onProgress?: (downloaded: number) => void;
readManifest?: boolean;
pkg: PkgNameVersion;
}
export type FetchFunction<FetcherResolution = Resolution, Options = FetchOptions, Result = FetchResult> = (cafs: Cafs, resolution: FetcherResolution, opts: Options) => Promise<Result>;
export type FetchResult = {
local?: false;
filesIndex: FilesIndex;
} | {
local: true;
export interface FetchResult {
local?: boolean;
manifest?: DependencyManifest;
filesIndex: Record<string, string>;
};
}
export interface GitFetcherOptions {
manifest?: DeferredManifestPromise;
readManifest?: boolean;
filesIndexFile: string;
pkg?: PkgNameVersion;
}
export type GitFetcher = FetchFunction<GitResolution, GitFetcherOptions, {
filesIndex: FilesIndex;
filesIndex: Record<string, string>;
manifest?: DependencyManifest;
}>;

@@ -23,0 +31,0 @@ export interface DirectoryFetcherOptions {

{
"name": "@pnpm/fetcher-base",
"version": "14.0.2",
"version": "15.0.0",
"description": "Types for pnpm-compatible fetchers",

@@ -32,4 +32,4 @@ "main": "lib/index.js",

"devDependencies": {
"@pnpm/cafs-types": "2.0.0",
"@pnpm/fetcher-base": "14.0.2"
"@pnpm/cafs-types": "3.0.0",
"@pnpm/fetcher-base": "15.0.0"
},

@@ -36,0 +36,0 @@ "exports": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc