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

symlink-dir

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

symlink-dir - npm Package Compare versions

Comparing version 4.0.1 to 4.0.2

14

dist/index.js

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

const unlink = util_1.promisify(fs.unlink);
const mkdir = util_1.promisify(fs.mkdir);
const IS_WINDOWS = process.platform === 'win32' || /^(msys|cygwin)$/.test(process.env.OSTYPE);

@@ -23,3 +22,3 @@ // Always use "junctions" on Windows. Even though support for "symbolic links" was added in Vista+, users by default

}
async function symlinkDir(src, dest) {
function symlinkDir(src, dest) {
dest = betterPathResolve(dest);

@@ -30,12 +29,3 @@ src = betterPathResolve(src);

src = resolveSrc(src, dest);
try {
return await forceSymlink(src, dest);
}
catch (err) {
if (err.code === 'ENOENT') {
await mkdir(path.dirname(dest), { recursive: true });
return await forceSymlink(src, dest);
}
throw err;
}
return forceSymlink(src, dest);
}

@@ -42,0 +32,0 @@ /**

4

package.json
{
"name": "symlink-dir",
"version": "4.0.1",
"version": "4.0.2",
"description": "Cross-platform directory symlinking",

@@ -57,3 +57,3 @@ "main": "dist/index.js",

"graceful-fs": "^4.1.11",
"rename-overwrite": "^2.0.2"
"rename-overwrite": "^3.0.0"
},

@@ -60,0 +60,0 @@ "mos": {

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