Comparing version 0.3.6 to 0.3.7
@@ -22,3 +22,3 @@ /** | ||
if (fs.existsSync(path)) { | ||
res.json(fs.readJsonFileSync(path)); | ||
res.json((fs.readJsonSync || fs.readJsonFileSync)(path)); | ||
} else { | ||
@@ -33,3 +33,3 @@ // 将最后一个单元当做参数,再试一次 | ||
if (fs.existsSync(path1)) { | ||
res.json(fs.readJsonFileSync(path1)); | ||
res.json((fs.readJsonSync || fs.readJsonFileSync)(path1)); | ||
} else { | ||
@@ -36,0 +36,0 @@ next(new Error('Mocking api ' + req.path + ', but does not exist data file ' + path + ' or ' + path1)); |
{ | ||
"name": "advanced", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "A simple MVC framework based on Express", | ||
@@ -19,3 +19,3 @@ "main": "./lib/index.js", | ||
"express": "^4.12.3", | ||
"fs-extra": "^0.18.3", | ||
"fs-extra": "^0.26.7", | ||
"lodash": "^3.8.0", | ||
@@ -22,0 +22,0 @@ "methods": "^1.1.1", |
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
36308
32
+ Addedfs-extra@0.26.7(transitive)
+ Addedklaw@1.3.1(transitive)
- Removedfs-extra@0.18.4(transitive)
- Removedgraceful-fs@3.0.12(transitive)
- Removednatives@1.1.6(transitive)
Updatedfs-extra@^0.26.7