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

hlink

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hlink - npm Package Compare versions

Comparing version 0.3.1-beta.0 to 0.3.1

8

lib/utils/index.js

@@ -70,7 +70,5 @@ "use strict";

var out = execa_1.default.sync('ls', ['-i', file]).stdout;
console.log('编号输出', out);
var fileNumber = out.split(' ')[0];
var findOut = false;
findOut = execa_1.default.sync('find', [destPath, '-inum', fileNumber]).stdout;
console.log('findOut输出', findOut);
return findOut

@@ -83,8 +81,2 @@ ? findOut.split('\n').map(function (p) { return (deleteDir ? path_1.default.dirname(p) : p); })

var paths = getLinkPath(file, destPath);
if (paths.length >= 1) {
console.log('硬链接已存在', file, destPath);
}
else {
console.log('硬链接不存在', file, destPath);
}
return paths.length >= 1;

@@ -91,0 +83,0 @@ }

5

lib/utils/parse.js

@@ -73,3 +73,6 @@ "use strict";

index_1.warning(Number.isNaN(level), '查找的最大层级maxFindLevel必须设置为数字', '当前配置为', level);
index_1.warning(level > 6 || level < 1, '保存的最大层级maxFindLevel不能小于1大于6', '当前配置为', level);
if (level > 6) {
index_1.log.warn('最大层级maxFindLevel大于6 可能会有性能问题! 请根据情况自行处理');
}
index_1.warning(level < 1, '保存的最大层级maxFindLevel不能小于1', '当前配置为', level);
}

@@ -76,0 +79,0 @@ function checkDirectory(source, dest) {

2

package.json
{
"name": "hlink",
"version": "0.3.1-beta.0",
"version": "0.3.1",
"description": "hlink",

@@ -5,0 +5,0 @@ "license": "MIT",

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