@pnpm/dependency-path
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -30,2 +30,2 @@ import { type DepPath, type PkgResolutionId, type Registries, type PkgId, type PkgIdWithPatchHash } from '@pnpm/types'; | ||
} | string; | ||
export declare function createPeersDirSuffix(peerIds: PeerId[]): string; | ||
export declare function createPeersDirSuffix(peerIds: PeerId[], maxLength?: number): string; |
@@ -188,4 +188,4 @@ "use strict"; | ||
} | ||
function createPeersDirSuffix(peerIds) { | ||
const dirName = peerIds.map((peerId) => { | ||
function createPeersDirSuffix(peerIds, maxLength = 1000) { | ||
let dirName = peerIds.map((peerId) => { | ||
if (typeof peerId !== 'string') { | ||
@@ -199,2 +199,5 @@ return `${peerId.name}@${peerId.version}`; | ||
}).sort().join(')('); | ||
if (dirName.length > maxLength) { | ||
dirName = (0, crypto_base32_hash_1.createBase32Hash)(dirName); | ||
} | ||
return `(${dirName})`; | ||
@@ -201,0 +204,0 @@ } |
{ | ||
"name": "@pnpm/dependency-path", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "Utilities for working with symlinked node_modules", | ||
@@ -33,3 +33,3 @@ "main": "lib/index.js", | ||
"@types/semver": "7.5.3", | ||
"@pnpm/dependency-path": "5.0.0" | ||
"@pnpm/dependency-path": "5.1.0" | ||
}, | ||
@@ -36,0 +36,0 @@ "funding": "https://opencollective.com/pnpm", |
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
19272
234