symlink-or-copy
Advanced tools
Comparing version 1.3.0 to 1.3.1
# master | ||
# 1.3.1 | ||
* Ensure symlink support detection cannot fail when cleaning up | ||
# 1.3.0 | ||
@@ -4,0 +8,0 @@ |
@@ -44,4 +44,4 @@ 'use strict'; | ||
fs.unlinkSync(canLinkSrc); | ||
try { | ||
fs.unlinkSync(canLinkSrc); | ||
fs.unlinkSync(canLinkDest); | ||
@@ -67,3 +67,7 @@ } catch (e) { | ||
} catch (e) { | ||
fs.rmdirSync(canLinkSrc); | ||
try { | ||
fs.rmdirSync(canLinkSrc); | ||
} catch(e) { | ||
// In case rmdir failed | ||
} | ||
result.directories = false; | ||
@@ -70,0 +74,0 @@ } |
{ | ||
"name": "symlink-or-copy", | ||
"description": "Symlink files or directories, falling back to copying on Windows", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"author": "Jo Liss <joliss42@gmail.com>", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10479
155
1