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

@pnpm/fs.hard-link-dir

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pnpm/fs.hard-link-dir - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

4

lib/index.js

@@ -10,2 +10,6 @@ "use strict";

async function hardLinkDir(src, destDirs) {
if (destDirs.length === 0)
return;
// Don't try to hard link the source directory to itself
destDirs = destDirs.filter((destDir) => path_1.default.relative(destDir, src) !== '');
const files = await fs_1.promises.readdir(src);

@@ -12,0 +16,0 @@ await Promise.all(files.map(async (file) => {

6

package.json
{
"name": "@pnpm/fs.hard-link-dir",
"version": "1.0.0",
"version": "1.0.1",
"description": "Hard link all files from a directory to several target directories.",

@@ -28,4 +28,4 @@ "main": "lib/index.js",

"devDependencies": {
"@pnpm/fs.hard-link-dir": "1.0.0",
"@pnpm/prepare": "0.0.59"
"@pnpm/fs.hard-link-dir": "1.0.1",
"@pnpm/prepare": "0.0.62"
},

@@ -32,0 +32,0 @@ "exports": {

Sorry, the diff of this file is not supported yet

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