Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pnpm/dependency-path

Package Overview
Dependencies
Maintainers
2
Versions
27
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 5.0.0 to 5.1.0

2

lib/index.d.ts

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

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