@pnpm/dependency-path
Advanced tools
Comparing version 900.0.0 to 1000.0.0
@@ -17,3 +17,3 @@ "use strict"; | ||
exports.createPeersDirSuffix = createPeersDirSuffix; | ||
const crypto_base32_hash_1 = require("@pnpm/crypto.base32-hash"); | ||
const crypto_hash_1 = require("@pnpm/crypto.hash"); | ||
const semver_1 = __importDefault(require("semver")); | ||
@@ -166,3 +166,3 @@ function isAbsolute(dependencyPath) { | ||
function depPathToFilename(depPath, maxLengthWithoutHash) { | ||
let filename = depPathToFilenameUnescaped(depPath).replace(/[\\/:*?"<>|]/g, '+'); | ||
let filename = depPathToFilenameUnescaped(depPath).replace(/[\\/:*?"<>|#]/g, '+'); | ||
if (filename.includes('(')) { | ||
@@ -174,3 +174,3 @@ filename = filename | ||
if (filename.length > maxLengthWithoutHash || filename !== filename.toLowerCase() && !filename.startsWith('file+')) { | ||
return `${filename.substring(0, maxLengthWithoutHash - 27)}_${(0, crypto_base32_hash_1.createBase32Hash)(filename)}`; | ||
return `${filename.substring(0, maxLengthWithoutHash - 33)}_${(0, crypto_hash_1.createShortHash)(filename)}`; | ||
} | ||
@@ -202,3 +202,3 @@ return filename; | ||
if (dirName.length > maxLength) { | ||
dirName = (0, crypto_base32_hash_1.createBase32Hash)(dirName); | ||
dirName = (0, crypto_hash_1.createShortHash)(dirName); | ||
} | ||
@@ -205,0 +205,0 @@ return `(${dirName})`; |
{ | ||
"name": "@pnpm/dependency-path", | ||
"version": "900.0.0", | ||
"version": "1000.0.0", | ||
"description": "Utilities for working with symlinked node_modules", | ||
@@ -13,3 +13,3 @@ "main": "lib/index.js", | ||
"keywords": [ | ||
"pnpm9", | ||
"pnpm10", | ||
"node_modules", | ||
@@ -29,8 +29,8 @@ "pnpm", | ||
"semver": "^7.6.2", | ||
"@pnpm/types": "900.0.0", | ||
"@pnpm/crypto.base32-hash": "900.0.0" | ||
"@pnpm/crypto.hash": "1000.0.0", | ||
"@pnpm/types": "1000.0.0" | ||
}, | ||
"devDependencies": { | ||
"@types/semver": "7.5.3", | ||
"@pnpm/dependency-path": "900.0.0" | ||
"@pnpm/dependency-path": "1000.0.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "funding": "https://opencollective.com/pnpm", |
Sorry, the diff of this file is not supported yet
19019
+ Added@pnpm/crypto.hash@1000.0.0
+ Added@pnpm/crypto.hash@1000.0.0(transitive)
+ Added@pnpm/crypto.polyfill@1000.0.0(transitive)
+ Added@pnpm/types@1000.0.0(transitive)
- Removed@pnpm/crypto.base32-hash@900.0.0
- Removed@pnpm/crypto.base32-hash@900.0.0(transitive)
- Removed@pnpm/crypto.polyfill@900.0.0(transitive)
- Removed@pnpm/types@900.0.0(transitive)
- Removedrfc4648@1.5.4(transitive)
Updated@pnpm/types@1000.0.0