New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/dependency-path

Package Overview
Dependencies
Maintainers
2
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/dependency-path - npm Package Compare versions

Comparing version 900.0.0 to 1000.0.0

8

lib/index.js

@@ -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

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