Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/cafs

Package Overview
Dependencies
Maintainers
2
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/cafs - npm Package Compare versions

Comparing version 4.1.0 to 4.2.0

2

lib/addFilesFromDir.d.ts
/// <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

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