mm_zip 1.0.1 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -1,5 +1,7 @@
1
- 'use strict';
2
- const toolCommon = require('./lib/tool_common');
3
- const zipCommon = require('./lib/zip_common');
1
+ const toolCommon = require('./lib/tool_common.js');
2
+ const zipCommon = require('./lib/zip_common.js');
4
3
 
5
- module.exports = { ...toolCommon, zipCommon };
4
+ module.exports = {
5
+ ...toolCommon,
6
+ zipCommon
7
+ };
package/lib/zip_common.js CHANGED
@@ -2,6 +2,7 @@
2
2
  /** mm_zip 工具共享的路径与计数能力,供 zip / unzip 按包名引用自身模块 */
3
3
  const fs = require('fs');
4
4
  const path = require('path');
5
+ const { fullname } = require('mm_helper');
5
6
 
6
7
  module.exports = {
7
8
  /**
@@ -11,11 +12,7 @@ module.exports = {
11
12
  */
12
13
  resolvePath(p) {
13
14
  if (!path.isAbsolute(p)) {
14
- if (p.fullname) {
15
- p = p.fullname(process.cwd() + path.sep);
16
- } else {
17
- p = path.resolve(process.cwd(), p);
18
- }
15
+ p = fullname(p);
19
16
  }
20
17
  return p;
21
18
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mm_zip",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "压缩与解压工具包:提供 zip 目录压缩与 zip 文件解压的 AI 函数工具",
5
5
  "type": "commonjs",
6
6
  "main": "index.js",
@@ -28,8 +28,8 @@
28
28
  "test": "node test.js"
29
29
  },
30
30
  "dependencies": {
31
- "compressing": "^2.1.3",
32
- "mm_files": "^1.4.0",
33
- "mm_helper": "^1.0.0"
31
+ "compressing": "^2.1.5",
32
+ "mm_files": "^1.4.2",
33
+ "mm_helper": "^2.0.5"
34
34
  }
35
35
  }