@pnpm/store-controller-types
Advanced tools
Comparing version 15.0.3-0 to 16.0.0
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
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7569
131
0
+ Added@pnpm/fetcher-base@15.0.0(transitive)
- Removed@pnpm/fetcher-base@14.0.2(transitive)
Updated@pnpm/fetcher-base@15.0.0