@pnpm/list
Advanced tools
Comparing version 8.1.0 to 8.1.1
@@ -1,3 +0,4 @@ | ||
export declare function getPkgInfo(pkg: { | ||
alias: string; | ||
import { ProjectManifest } from '@pnpm/types'; | ||
interface PkgData { | ||
alias: string | undefined; | ||
name: string; | ||
@@ -7,12 +8,8 @@ version: string; | ||
resolved?: string; | ||
}): Promise<{ | ||
alias: string; | ||
} | ||
export type PkgInfo = Omit<PkgData, 'name' | 'path'> & Pick<ProjectManifest, 'description' | 'license' | 'author' | 'homepage'> & { | ||
from: string; | ||
version: string; | ||
resolved: string | undefined; | ||
description: string | undefined; | ||
license: string | undefined; | ||
author: string | undefined; | ||
homepage: string | undefined; | ||
repository: string | undefined; | ||
}>; | ||
repository?: string; | ||
}; | ||
export declare function getPkgInfo(pkg: PkgData): Promise<PkgInfo>; | ||
export {}; |
import { PackageNode } from '@pnpm/reviewing.dependencies-hierarchy'; | ||
import { PkgInfo } from './getPkgInfo'; | ||
import { PackageDependencyHierarchy } from './types'; | ||
@@ -10,2 +11,6 @@ export declare function renderJson(pkgs: PackageDependencyHierarchy[], opts: { | ||
long: boolean; | ||
}): Promise<{}>; | ||
}): Promise<Record<string, PackageJsonListItem>>; | ||
interface PackageJsonListItem extends PkgInfo { | ||
dependencies?: Record<string, PackageJsonListItem>; | ||
} | ||
export {}; |
@@ -43,3 +43,3 @@ "use strict"; | ||
if (Object.keys(subDependencies).length > 0) { | ||
dep['dependencies'] = subDependencies; | ||
dep.dependencies = subDependencies; | ||
} | ||
@@ -46,0 +46,0 @@ if (!dep.resolved) { |
{ | ||
"name": "@pnpm/list", | ||
"version": "8.1.0", | ||
"version": "8.1.1", | ||
"description": "List installed packages in a symlinked `node_modules`", | ||
@@ -34,3 +34,3 @@ "main": "lib/index.js", | ||
"semver": "^7.3.8", | ||
"@pnpm/reviewing.dependencies-hierarchy": "1.2.0", | ||
"@pnpm/reviewing.dependencies-hierarchy": "1.2.1", | ||
"@pnpm/matcher": "4.0.1", | ||
@@ -45,3 +45,3 @@ "@pnpm/read-package-json": "7.0.5", | ||
"@types/semver": "7.3.13", | ||
"@pnpm/list": "8.1.0", | ||
"@pnpm/list": "8.1.1", | ||
"@pnpm/test-fixtures": "0.0.31" | ||
@@ -48,0 +48,0 @@ }, |
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
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
36138
510
+ Added@pnpm/dependency-path@1.1.2(transitive)
+ Added@pnpm/lockfile-file@7.0.3(transitive)
+ Added@pnpm/lockfile-utils@5.0.5(transitive)
+ Added@pnpm/reviewing.dependencies-hierarchy@1.2.1(transitive)
- Removed@pnpm/dependency-path@1.1.1(transitive)
- Removed@pnpm/lockfile-file@7.0.2(transitive)
- Removed@pnpm/lockfile-utils@5.0.4(transitive)
- Removed@pnpm/reviewing.dependencies-hierarchy@1.2.0(transitive)