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.2 to 4.0.3

5

dist/index.js

@@ -10,2 +10,3 @@ "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);

@@ -40,2 +41,6 @@ // Always use "junctions" on Windows. Even though support for "symbolic links" was added in Vista+, users by default

catch (err) {
if (err.code === 'ENOENT') {
await mkdir(path.dirname(dest), { recursive: true });
return await forceSymlink(src, dest);
}
if (err.code !== 'EEXIST' && err.code !== 'EISDIR')

@@ -42,0 +47,0 @@ throw err;

5

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

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

"ts-node": "^8.9.0",
"typescript": "^3.8.3"
"typescript": "^3.8.3",
"write-json-file": "^4.3.0"
},

@@ -55,0 +56,0 @@ "dependencies": {

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