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.1.6 to 0.1.7

5

config/advanced.js

@@ -16,3 +16,6 @@ module.exports = {

env: 'development'
env: 'development',
// 是否模拟数据
isMock: false
};

1

lib/controller.js

@@ -28,3 +28,2 @@ var _ = require('lodash'),

render: function(file, data) {
console.log(this.req.query, Utils.isDev());
if (this.req.query.debug && Utils.isDev()) {

@@ -31,0 +30,0 @@ // 开发模式下,启用debug数据功能

@@ -26,3 +26,3 @@ var Express = require('express'),

// 开发环境使用假数据
if (Utils.c('env') === 'development') {
if (Utils.isDev() && Utils.c('isMock')) {
// 设置api地址为本地

@@ -29,0 +29,0 @@ Utils.c('api', 'http://127.0.0.1:' + Utils.c('port'));

{
"name": "advanced",
"version": "0.1.6",
"version": "0.1.7",
"description": "A simple MVC framework based on Express",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

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