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

@pnpm/pkg-manager.direct-dep-linker

Package Overview
Dependencies
Maintainers
2
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/pkg-manager.direct-dep-linker - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

14

lib/linkDirectDeps.js

@@ -48,3 +48,3 @@ "use strict";

const deps = (await (0, read_modules_dir_1.readModulesDir)(modulesDir)) ?? [];
return Promise.all(deps.map((alias) => (0, resolve_link_target_1.default)(path_1.default.join(modulesDir, alias))));
return Promise.all(deps.map((alias) => resolveLinkTargetOrFile(path_1.default.join(modulesDir, alias))));
}

@@ -64,6 +64,16 @@ async function deletePkgsPresentInRoot(modulesDir, pkgsLinkedToRoot) {

linkedTo,
linkedFrom: await (0, resolve_link_target_1.default)(linkedTo),
linkedFrom: await resolveLinkTargetOrFile(linkedTo),
};
}));
}
async function resolveLinkTargetOrFile(filePath) {
try {
return await (0, resolve_link_target_1.default)(filePath);
}
catch (err) { // eslint-disable-line @typescript-eslint/no-explicit-any
if (err.code !== 'EINVAL' && err.code !== 'UNKNOWN')
throw err;
return filePath;
}
}
async function linkDirectDepsOfProject(project) {

@@ -70,0 +80,0 @@ await Promise.all(project.dependencies.map(async (dep) => {

4

package.json
{
"name": "@pnpm/pkg-manager.direct-dep-linker",
"description": "Fast installation using only pnpm-lock.yaml",
"version": "1.0.0",
"version": "1.0.1",
"bugs": {

@@ -19,3 +19,3 @@ "url": "https://github.com/pnpm/pnpm/issues"

"@types/ramda": "0.28.15",
"@pnpm/pkg-manager.direct-dep-linker": "1.0.0"
"@pnpm/pkg-manager.direct-dep-linker": "1.0.1"
},

@@ -22,0 +22,0 @@ "homepage": "https://github.com/pnpm/pnpm/blob/main/pkg-manager/direct-dep-linker#readme",

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