cus-loader-utils
Advanced tools
@@ -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 @@ }; |
+4
-1
| { | ||
| "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": { |
+3
-0
@@ -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(); | ||
| ``` |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
8754
0.6%24
14.29%0
-100%