New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/store.cafs

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/store.cafs - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

15

lib/index.d.ts
/// <reference types="node" />
import { type PackageFileInfo, type FilesIndex } from '@pnpm/cafs-types';
import { type AddToStoreResult, type PackageFileInfo, type FilesIndex } from '@pnpm/cafs-types';
import ssri from 'ssri';

@@ -15,10 +15,11 @@ import { checkPkgFilesIntegrity, type PackageFilesIndex, type SideEffects, type VerifyResult } from './checkPkgFilesIntegrity';

}
export declare function createCafs(cafsDir: string, { ignoreFile, cafsLocker }?: CreateCafsOpts): {
export interface CafsFunctions {
addFilesFromDir: (dirname: string, opts?: {
files?: string[] | undefined;
readManifest?: boolean | undefined;
} | undefined) => import("@pnpm/cafs-types").AddToStoreResult;
addFilesFromTarball: (tarballBuffer: Buffer, readManifest?: boolean | undefined) => import("@pnpm/cafs-types").AddToStoreResult;
files?: string[];
readManifest?: boolean;
}) => AddToStoreResult;
addFilesFromTarball: (tarballBuffer: Buffer, readManifest?: boolean) => AddToStoreResult;
getFilePathInCafs: (integrity: string | ssri.IntegrityLike, fileType: FileType) => string;
getFilePathByModeInCafs: (integrity: string | ssri.IntegrityLike, mode: number) => string;
};
}
export declare function createCafs(cafsDir: string, { ignoreFile, cafsLocker }?: CreateCafsOpts): CafsFunctions;
/// <reference types="node" />
export declare function parseJsonBufferSync(buffer: Buffer): any;
export declare function parseJsonBufferSync(buffer: Buffer): unknown;

@@ -0,2 +1,3 @@

import { type PackageManifest } from '@pnpm/types';
import { type PackageFilesIndex } from './checkPkgFilesIntegrity';
export declare function readManifestFromStore(cafsDir: string, pkgIndex: PackageFilesIndex): any;
export declare function readManifestFromStore(cafsDir: string, pkgIndex: PackageFilesIndex): PackageManifest | undefined;
{
"name": "@pnpm/store.cafs",
"version": "3.0.0",
"version": "3.0.1",
"description": "A content-addressable filesystem for the packages storage",

@@ -18,15 +18,15 @@ "main": "lib/index.js",

"strip-bom": "^4.0.0",
"@pnpm/fetcher-base": "16.0.0",
"@pnpm/fetcher-base": "16.0.1",
"@pnpm/graceful-fs": "4.0.0",
"@pnpm/store-controller-types": "18.0.0"
"@pnpm/store-controller-types": "18.0.1"
},
"devDependencies": {
"@types/is-gzip": "2.0.0",
"@types/node": "^18.19.24",
"@types/node": "^18.19.32",
"@types/ssri": "^7.1.5",
"symlink-dir": "^5.2.1",
"symlink-dir": "^6.0.0",
"tempy": "^1.0.1",
"@pnpm/cafs-types": "5.0.0",
"@pnpm/store.cafs": "3.0.0",
"@pnpm/types": "10.0.0"
"@pnpm/store.cafs": "3.0.1",
"@pnpm/types": "10.1.0"
},

@@ -33,0 +33,0 @@ "bugs": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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