@pnpm/fetcher-base
Advanced tools
Comparing version 10.0.1 to 11.0.0
# @pnpm/fetcher-base | ||
## 11.0.0 | ||
### Major Changes | ||
- e6a2654a2: `importPackage()` and `tempDir()` added to the `Cafs` type. | ||
### Minor Changes | ||
- e6a2654a2: `PackageFileInfo`, `PackageFilesResponse`, and `ImportPackageFunction` types added. | ||
## 10.0.1 | ||
@@ -4,0 +14,0 @@ |
@@ -5,5 +5,26 @@ /// <reference types="node" /> | ||
import { IntegrityLike } from 'ssri'; | ||
export interface PackageFileInfo { | ||
checkedAt?: number; | ||
integrity: string; | ||
mode: number; | ||
size: number; | ||
} | ||
export interface PackageFilesResponse { | ||
fromStore: boolean; | ||
filesIndex: Record<string, PackageFileInfo>; | ||
sideEffects?: Record<string, Record<string, PackageFileInfo>>; | ||
} | ||
export declare type ImportPackageFunction = (to: string, opts: { | ||
targetEngine?: string; | ||
filesResponse: PackageFilesResponse; | ||
force: boolean; | ||
}) => Promise<{ | ||
isBuilt: boolean; | ||
importMethod: undefined | string; | ||
}>; | ||
export interface Cafs { | ||
addFilesFromDir: (dir: string, manifest?: DeferredManifestPromise) => Promise<FilesIndex>; | ||
addFilesFromTarball: (stream: NodeJS.ReadableStream, manifest?: DeferredManifestPromise) => Promise<FilesIndex>; | ||
importPackage: ImportPackageFunction; | ||
tempDir: () => Promise<string>; | ||
} | ||
@@ -10,0 +31,0 @@ export interface FetchOptions { |
{ | ||
"name": "@pnpm/fetcher-base", | ||
"version": "10.0.1", | ||
"version": "11.0.0", | ||
"description": "Types for pnpm-compatible fetchers", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7574
7
56