@vxapp/wxss
Advanced tools
Comparing version 0.0.15 to 0.0.16
11
index.js
@@ -7,8 +7,6 @@ const fs = require('fs'); | ||
const mkdir = promisify(fs.mkdir); | ||
const exists = promisify(fs.exists); | ||
const readFile = promisify(fs.readFile); | ||
const writeFile = promisify(fs.writeFile); | ||
const ensureDir = async dir => { | ||
const ensureDir = dir => { | ||
const paths = []; | ||
@@ -18,8 +16,7 @@ dir.split(path.sep).reduce((prev, cur) => { | ||
paths.push(result); | ||
try{ | ||
fs.mkdirSync(result); | ||
}catch(e){} | ||
return result; | ||
}, path.sep); | ||
for(const cur of paths){ | ||
const isExists = await exists(cur); | ||
!isExists && await mkdir(cur); | ||
} | ||
}; | ||
@@ -26,0 +23,0 @@ |
{ | ||
"name": "@vxapp/wxss", | ||
"version": "0.0.15", | ||
"version": "0.0.16", | ||
"description": "wechat mini-program wxss parser", | ||
@@ -21,6 +21,6 @@ "keywords": [ | ||
"dependencies": { | ||
"@vxapp/resolve": "^0.0.10", | ||
"@vxapp/resolve": "^0.0.11", | ||
"postcss": "^7.0.6" | ||
}, | ||
"gitHead": "e02dc67596abd028828e628e539ed6f398e1f822" | ||
"gitHead": "7787bf09096686206ef0b336b72a1522f8df39c7" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4513
50
+ Added@vxapp/resolve@0.0.11(transitive)
- Removed@vxapp/resolve@0.0.10(transitive)
Updated@vxapp/resolve@^0.0.11