utiller 1.0.172 → 1.0.174

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.
@@ -1899,8 +1899,9 @@ var Utiller = /*#__PURE__*/function () {
1899
1899
  }, {
1900
1900
  key: "getVisibleOrNone",
1901
1901
  value: function getVisibleOrNone(judgement) {
1902
+ var flex = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1902
1903
  return {
1903
- display: judgement ? "inherit" : "none"
1904
+ display: judgement ? flex ? "flex" : "inherit" : "none"
1904
1905
  };
1905
1906
  }
1906
1907
  }, {
@@ -1568,6 +1568,11 @@ var NodeUtiller = /*#__PURE__*/function (_Utiller) {
1568
1568
  value: function isEmptyFile(path) {
1569
1569
  return !this.isPathExist(path) || _lodash["default"].isEqual("", this.getFileContextInRaw(path).trim());
1570
1570
  }
1571
+ }, {
1572
+ key: "isEmptyFolder",
1573
+ value: function isEmptyFolder(path) {
1574
+ return _fs["default"].readdirSync(path).length === 0;
1575
+ }
1571
1576
  /** 把檔案弄得好看一點 */
1572
1577
 
1573
1578
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "utiller",
3
- "version": "1.0.172",
3
+ "version": "1.0.174",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -11,7 +11,7 @@
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
13
  "configerer": "^1.0.11",
14
- "utiller": "^1.0.171",
14
+ "utiller": "^1.0.173",
15
15
  "linepayer": "^1.0.4",
16
16
  "databazer": "^1.0.11",
17
17
  "lodash": "^4.17.20",