New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bili-sapp-cli

Package Overview
Dependencies
Maintainers
4
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bili-sapp-cli - npm Package Compare versions

Comparing version 0.1.16-mall-dev-20200826-01 to 0.1.16-mall-dev-20200826-02

27

lib/utils.js

@@ -20,3 +20,3 @@ const fs = require('fs');

absoluteFilePath = '';
if (index > -1) {

@@ -92,3 +92,3 @@ absoluteFilePath = filePath.slice(index + rootPath.length);

};
if (err) {

@@ -99,3 +99,3 @@ process.exitCode = 1;

}
files.forEach(function (file) {

@@ -109,7 +109,7 @@ var srcPath = path.join(srcDir, file);

}
fs.stat(srcPath, function (err, stats) {
if (stats.isDirectory()) {
const srcArray = srcPath.split('/');
if (srcArray[srcArray.length - 1] === '.git') {

@@ -119,3 +119,3 @@ checkEnd();

}
fs.mkdir(tarPath, function (err) {

@@ -127,3 +127,3 @@ // 忽略文件夹已存在的情况,mac:-17,windows:-4075

}
copyFolder(srcPath, tarPath, checkEnd, fileCompleteCallback, shouldCopyFile);

@@ -136,5 +136,8 @@ });

});
//为空时直接回调
files.length === 0 && cb && cb();
if (files.length === 0) {
cb && cb();
resolve()
}
});

@@ -147,3 +150,3 @@ });

var files = [];
if (exceptPath !== path && fs.existsSync(path)) {

@@ -153,4 +156,4 @@ files = fs.readdirSync(path);

var curPath = path + '/' + file;
if (fs.statSync(curPath).isDirectory()) {

@@ -247,2 +250,2 @@ deleteFolder(curPath, exceptPath);

mkdirsSync
};
};
{
"name": "bili-sapp-cli",
"version": "0.1.16-mall-dev-20200826-01",
"version": "0.1.16-mall-dev-20200826-02",
"description": "Bilibili Small App Cli",

@@ -5,0 +5,0 @@ "main": "index.js",

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