🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

cus-loader-utils

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cus-loader-utils - npm Package Compare versions

Comparing version
1.0.1
to
1.0.2
+1
-1
dist/beforeExitHook.js

@@ -7,6 +7,6 @@ "use strict";

process.on('beforeExit', function () {
cb();
console.log('执行结束,释放内存');
cb();
});
};
exports.default = beforeExitHook;

@@ -7,4 +7,4 @@ import * as process from 'node:process';

process.on('beforeExit', function () {
cb();
console.log('执行结束,释放内存');
cb();
});

@@ -11,0 +11,0 @@ };

{
"name": "cus-loader-utils",
"version": "1.0.1",
"version": "1.0.2",
"description": "cus loader utils",
"main": "dist/index.js",
"publishConfig": {
"access": "public"
},
"license": "ISC",

@@ -7,0 +10,0 @@ "directories": {

@@ -16,6 +16,9 @@ # cus-loader-utils

// getAllFileByDir(dirPath, endsWidth) 执行 从指定目录下获取所有文件 <dirPath 表示从哪个目录开始,endsWidth 表示过滤这个目录下的那些后缀名文件>
// getListByLogFile(logPath) 执行 从指定目录下获取 log 文件 并且进行切割为数组 <logPath 表示 log文件 绝对路径>
// removeSameItemByList(liata, liatb) 执行 两个数组的对比 <liata 表示所有数据源的数组,liatb 表示需要被过滤的数组>
// writeResultToFile(writePath, list) 执行 拿到的数组进行写文件 <writePath 表示从写入路径,list 表示 写入的数组>
const { writeResultToFile, removeSameItemByList, getListByLogFile, getAllFileByDir } = getDiffByDirAndLogFile();
```