Socket
Socket
Sign inDemoInstall

@pnpm/store-controller-types

Package Overview
Dependencies
Maintainers
2
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/store-controller-types - npm Package Compare versions

Comparing version 15.0.3-0 to 16.0.0

27

lib/index.d.ts
import { type DirectoryResolution, type PreferredVersions, type Resolution, type WantedDependency, type WorkspacePackages } from '@pnpm/resolver-base';
import type { ImportPackageFunction, PackageFileInfo, PackageFilesResponse } from '@pnpm/cafs-types';
import type { ImportPackageFunction, ImportPackageFunctionAsync, PackageFileInfo, PackageFilesResponse } from '@pnpm/cafs-types';
import { type DependencyManifest, type PackageManifest } from '@pnpm/types';
export type { PackageFileInfo, PackageFilesResponse, ImportPackageFunction };
export type { PackageFileInfo, PackageFilesResponse, ImportPackageFunction, ImportPackageFunctionAsync };
export * from '@pnpm/resolver-base';

@@ -14,5 +14,5 @@ export type BundledManifest = Pick<DependencyManifest, 'bin' | 'bundledDependencies' | 'bundleDependencies' | 'dependencies' | 'directories' | 'engines' | 'name' | 'optionalDependencies' | 'os' | 'peerDependencies' | 'peerDependenciesMeta' | 'scripts' | 'version'>;

requestPackage: RequestPackageFunction;
fetchPackage: FetchPackageToStoreFunction;
fetchPackage: FetchPackageToStoreFunction | FetchPackageToStoreFunctionAsync;
getFilesIndexFilePath: GetFilesIndexFilePath;
importPackage: ImportPackageFunction;
importPackage: ImportPackageFunctionAsync;
close: () => Promise<void>;

@@ -22,8 +22,14 @@ prune: () => Promise<void>;

}
export interface PkgRequestFetchResult {
bundledManifest?: BundledManifest;
files: PackageFilesResponse;
}
export type FetchPackageToStoreFunction = (opts: FetchPackageToStoreOptions) => {
bundledManifest?: BundledManifestFunction;
filesIndexFile: string;
files: () => Promise<PackageFilesResponse>;
finishing: () => Promise<void>;
fetching: () => Promise<PkgRequestFetchResult>;
};
export type FetchPackageToStoreFunctionAsync = (opts: FetchPackageToStoreOptions) => Promise<{
filesIndexFile: string;
fetching: () => Promise<PkgRequestFetchResult>;
}>;
export type GetFilesIndexFilePath = (opts: Pick<FetchPackageToStoreOptions, 'pkg' | 'ignoreScripts'>) => {

@@ -82,6 +88,4 @@ filesIndexFile: string;

export interface PackageResponse {
bundledManifest?: BundledManifestFunction;
files?: () => Promise<PackageFilesResponse>;
fetching?: () => Promise<PkgRequestFetchResult>;
filesIndexFile?: string;
finishing?: () => Promise<void>;
body: {

@@ -112,2 +116,3 @@ isLocal: boolean;

}
export type ImportIndexedPackage = (to: string, opts: ImportOptions) => Promise<string | undefined>;
export type ImportIndexedPackage = (to: string, opts: ImportOptions) => string | undefined;
export type ImportIndexedPackageAsync = (to: string, opts: ImportOptions) => Promise<string | undefined>;
{
"name": "@pnpm/store-controller-types",
"version": "15.0.3-0",
"version": "16.0.0",
"description": "Types for the store controller",

@@ -26,4 +26,4 @@ "main": "lib/index.js",

"dependencies": {
"@pnpm/fetcher-base": "15.0.0",
"@pnpm/resolver-base": "10.0.2",
"@pnpm/fetcher-base": "14.0.2",
"@pnpm/types": "9.2.0"

@@ -33,4 +33,4 @@ },

"devDependencies": {
"@pnpm/cafs-types": "2.0.1-0",
"@pnpm/store-controller-types": "15.0.3-0"
"@pnpm/cafs-types": "3.0.0",
"@pnpm/store-controller-types": "16.0.0"
},

@@ -37,0 +37,0 @@ "exports": {

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