@pnpm/fetcher-base
Advanced tools
Comparing version 8.0.2 to 9.0.0
# @pnpm/fetcher-base | ||
## 9.0.0 | ||
### Major Changes | ||
- 0a6544043: `generatingIntegrity` replaced with `writeResult`. When files are added to the store, the store returns not only the file's integrity as a result, but also the exact time when the file's content was verified with its integrity. | ||
## 8.0.2 | ||
@@ -4,0 +10,0 @@ |
/// <reference types="node" /> | ||
import { Resolution } from '@pnpm/resolver-base'; | ||
import { DependencyManifest } from '@pnpm/types'; | ||
import { Integrity } from 'ssri'; | ||
export declare type Cafs = { | ||
import { IntegrityLike } from 'ssri'; | ||
export interface Cafs { | ||
addFilesFromDir: (dir: string, manifest?: DeferredManifestPromise) => Promise<FilesIndex>; | ||
addFilesFromTarball: (stream: NodeJS.ReadableStream, manifest?: DeferredManifestPromise) => Promise<FilesIndex>; | ||
}; | ||
} | ||
export interface FetchOptions { | ||
@@ -15,6 +15,6 @@ manifest?: DeferredManifestPromise; | ||
} | ||
export declare type DeferredManifestPromise = { | ||
export interface DeferredManifestPromise { | ||
resolve: (manifest: DependencyManifest) => void; | ||
reject: (err: Error) => void; | ||
}; | ||
} | ||
export declare type FetchFunction = (cafs: Cafs, resolution: Resolution, opts: FetchOptions) => Promise<FetchResult>; | ||
@@ -24,2 +24,6 @@ export interface FetchResult { | ||
} | ||
export interface FileWriteResult { | ||
checkedAt: number; | ||
integrity: IntegrityLike; | ||
} | ||
export interface FilesIndex { | ||
@@ -29,4 +33,4 @@ [filename: string]: { | ||
size: number; | ||
generatingIntegrity: Promise<Integrity>; | ||
writeResult: Promise<FileWriteResult>; | ||
}; | ||
} |
{ | ||
"name": "@pnpm/fetcher-base", | ||
"version": "8.0.2", | ||
"version": "9.0.0", | ||
"description": "Types for pnpm-compatible fetchers", | ||
@@ -13,3 +13,3 @@ "main": "lib/index.js", | ||
"start": "pnpm run tsc -- --watch", | ||
"lint": "tslint -c ../../tslint.json --project .", | ||
"lint": "eslint -c ../../eslint.json src/**/*.ts", | ||
"test": "pnpm run compile", | ||
@@ -16,0 +16,0 @@ "prepublishOnly": "pnpm run compile", |
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
5946
35