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

depsync

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

depsync - npm Package Compare versions

Comparing version 1.2.3 to 1.2.4

2

package.json
{
"name": "depsync",
"version": "1.2.3",
"version": "1.2.4",
"author": "Dom Chen",

@@ -5,0 +5,0 @@ "homepage": "http://www.idom.me/",

@@ -61,18 +61,2 @@ //////////////////////////////////////////////////////////////////////////////////////

function deleteDirectory(path) {
let files = [];
if (fs.existsSync(path)) {
files = fs.readdirSync(path);
files.forEach(function (file) {
let curPath = path + "/" + file;
if (fs.statSync(curPath).isDirectory()) {
deleteDirectory(curPath);
} else {
fs.unlinkSync(curPath);
}
});
fs.rmdirSync(path);
}
}
function deleteEmptyDir(path) {

@@ -93,7 +77,3 @@ try {

try {
if (fs.lstatSync(path).isDirectory()) {
deleteDirectory(path);
} else {
fs.unlinkSync(path);
}
fs.rmSync(path, { recursive: true, force: true });
} catch (e) {

@@ -100,0 +80,0 @@ }

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