@pnpm/cafs
Advanced tools
Comparing version 4.1.0 to 4.2.0
/// <reference types="node" /> | ||
import { DeferredManifestPromise, FilesIndex, FileWriteResult } from '@pnpm/fetcher-base'; | ||
import type { DeferredManifestPromise, FilesIndex, FileWriteResult } from '@pnpm/cafs-types'; | ||
export default function (cafs: { | ||
@@ -4,0 +4,0 @@ addStream: (stream: NodeJS.ReadableStream, mode: number) => Promise<FileWriteResult>; |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { PassThrough } from 'stream'; | ||
import { DeferredManifestPromise, FilesIndex, FileWriteResult } from '@pnpm/fetcher-base'; | ||
import type { DeferredManifestPromise, FilesIndex, FileWriteResult } from '@pnpm/cafs-types'; | ||
export default function (addStreamToCafs: (fileStream: PassThrough, mode: number) => Promise<FileWriteResult>, _ignore: null | ((filename: string) => Boolean), stream: NodeJS.ReadableStream, manifest?: DeferredManifestPromise): Promise<FilesIndex>; |
@@ -1,2 +0,2 @@ | ||
import { DeferredManifestPromise, PackageFileInfo } from '@pnpm/fetcher-base'; | ||
import type { DeferredManifestPromise, PackageFileInfo } from '@pnpm/cafs-types'; | ||
import ssri from 'ssri'; | ||
@@ -3,0 +3,0 @@ export interface PackageFilesIndex { |
/// <reference types="node" /> | ||
import { PackageFileInfo } from '@pnpm/fetcher-base'; | ||
import type { PackageFileInfo } from '@pnpm/cafs-types'; | ||
import ssri from 'ssri'; | ||
import checkFilesIntegrity, { PackageFilesIndex } from './checkFilesIntegrity'; | ||
import readManifestFromStore from './readManifestFromStore'; | ||
import getFilePathInCafs, { FileType, getFilePathByModeInCafs } from './getFilePathInCafs'; | ||
export { IntegrityLike } from 'ssri'; | ||
export { checkFilesIntegrity, readManifestFromStore, FileType, getFilePathByModeInCafs, getFilePathInCafs, PackageFileInfo, PackageFilesIndex, }; | ||
export default function createCafs(cafsDir: string, ignore?: ((filename: string) => Boolean)): { | ||
addFilesFromDir: (dirname: string, manifest?: import("@pnpm/fetcher-base").DeferredManifestPromise | undefined) => Promise<import("@pnpm/fetcher-base").FilesIndex>; | ||
addFilesFromTarball: (stream: NodeJS.ReadableStream, manifest?: import("@pnpm/fetcher-base").DeferredManifestPromise | undefined) => Promise<import("@pnpm/fetcher-base").FilesIndex>; | ||
addFilesFromDir: (dirname: string, manifest?: import("@pnpm/cafs-types").DeferredManifestPromise | undefined) => Promise<import("@pnpm/cafs-types").FilesIndex>; | ||
addFilesFromTarball: (stream: NodeJS.ReadableStream, manifest?: import("@pnpm/cafs-types").DeferredManifestPromise | undefined) => Promise<import("@pnpm/cafs-types").FilesIndex>; | ||
getFilePathInCafs: (integrity: string | ssri.IntegrityLike, fileType: FileType) => string; | ||
}; |
@@ -54,2 +54,3 @@ "use strict"; | ||
addFilesFromTarball: addFilesFromTarball_1.default.bind(null, addStream, ignore ?? null), | ||
getFilePathInCafs: getFilePathInCafs_1.default.bind(null, cafsDir), | ||
}; | ||
@@ -56,0 +57,0 @@ } |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import { PassThrough } from 'stream'; | ||
import { DeferredManifestPromise } from '@pnpm/fetcher-base'; | ||
import type { DeferredManifestPromise } from '@pnpm/cafs-types'; | ||
export declare function parseJsonBuffer(buffer: Buffer, deferred: DeferredManifestPromise): void; | ||
export declare function parseJsonStream(stream: PassThrough, deferred: DeferredManifestPromise): void; |
@@ -1,2 +0,2 @@ | ||
import { DeferredManifestPromise, PackageFileInfo } from '@pnpm/fetcher-base'; | ||
import type { DeferredManifestPromise, PackageFileInfo } from '@pnpm/cafs-types'; | ||
export default function readManifestFromStore(cafsDir: string, pkgIndex: Record<string, PackageFileInfo>, deferredManifest?: DeferredManifestPromise): Promise<boolean>; |
{ | ||
"name": "@pnpm/cafs", | ||
"version": "4.1.0", | ||
"version": "4.2.0", | ||
"description": "A content-addressable filesystem for the packages storage", | ||
@@ -12,5 +12,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@pnpm/fetcher-base": "13.0.2", | ||
"@pnpm/fetcher-base": "13.1.0", | ||
"@pnpm/graceful-fs": "2.0.0", | ||
"@pnpm/store-controller-types": "14.1.0", | ||
"@pnpm/store-controller-types": "14.1.1", | ||
"@zkochan/rimraf": "^2.1.2", | ||
@@ -28,3 +28,4 @@ "concat-stream": "^2.0.0", | ||
"devDependencies": { | ||
"@pnpm/cafs": "4.1.0", | ||
"@pnpm/cafs": "4.2.0", | ||
"@pnpm/cafs-types": "1.0.0", | ||
"@pnpm/types": "8.5.0", | ||
@@ -31,0 +32,0 @@ "@types/concat-stream": "^2.0.0", |
Sorry, the diff of this file is not supported yet
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
38575
480
9
+ Added@pnpm/fetcher-base@13.1.0(transitive)
+ Added@pnpm/resolver-base@9.1.0(transitive)
+ Added@pnpm/store-controller-types@14.1.1(transitive)
- Removed@pnpm/fetcher-base@13.0.2(transitive)
- Removed@pnpm/resolver-base@9.0.6(transitive)
- Removed@pnpm/store-controller-types@14.1.0(transitive)
Updated@pnpm/fetcher-base@13.1.0