@aiot-toolkit/shared-utils 2.0.2-beta.5 → 2.0.2-beta.6

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.
@@ -116,10 +116,7 @@ class FileUtil {
116
116
  * @returns
117
117
  */
118
118
  static updatePath(path, fullName) {
119
- if (fs_extra_1.default.statSync(path).isFile()) {
120
- return path_1.default.join(path_1.default.dirname(path), fullName);
121
- }
122
- return path;
119
+ return path_1.default.join(path_1.default.dirname(path), fullName);
123
120
  }
124
121
  /**
125
122
  * 复制文件
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aiot-toolkit/shared-utils",
3
- "version": "2.0.2-beta.5",
3
+ "version": "2.0.2-beta.6",
4
4
  "description": "The common method functions of the aiot-toolkit.",
5
5
  "homepage": "",
6
6
  "license": "ISC",
@@ -26,5 +26,5 @@
26
26
  "@types/fs-extra": "^11.0.4",
27
27
  "@types/qrcode-terminal": "^0.12.0"
28
28
  },
29
- "gitHead": "8c18753992c453c6569a3125378e75fbf4760a1f"
29
+ "gitHead": "b9b99afff176075380c2ec95b43797d696c393c1"
30
30
  }