Socket
Socket
Sign inDemoInstall

advanced

Package Overview
Dependencies
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

advanced - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

log/error.log

4

lib/middlewares/mock.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc