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

@pnpm/fetcher-base

Package Overview
Dependencies
Maintainers
3
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/fetcher-base - npm Package Compare versions

Comparing version 8.0.2 to 9.0.0

6

CHANGELOG.md
# @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 @@

16

lib/index.d.ts
/// <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",

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