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.9 to 0.1.10

7

demo/server.js
var Advanced = require('advanced'),
Utils = Advanced.Utils,
swig = require('swig'),

@@ -6,3 +7,3 @@ Path = require('path');

// Set root path. In order to start app in any path.
Advanced.Utils.c('root', __dirname);
Utils.c('root', __dirname);

@@ -19,4 +20,4 @@ var app = Advanced(function(app) {

app.listen(Advanced.Utils.c('port'), function() {
console.log('App is listening on the port ' + Advanced.Utils.c('port'));
app.listen(Utils.c('port'), function() {
console.log('App is listening on the port ' + Utils.c('port'));
});

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

Utils.fs.readdirSync(configPath).map(function(file) {
if (file.charAt(0) === '.') return;
var config = require(Path.join(configPath, file));

@@ -56,0 +57,0 @@ Utils.c(config);

@@ -33,4 +33,4 @@ var Express = require('express'),

group: function(path, fn) {
// first argument is path
// last argument is router
// the first argument is path
// the last argument is router
var middlewares = slice.call(arguments, 1),

@@ -37,0 +37,0 @@ routerFn = middlewares.pop();

{
"name": "advanced",
"version": "0.1.9",
"version": "0.1.10",
"description": "A simple MVC framework based on Express",

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

@@ -98,3 +98,3 @@ # Advanced

For example. Assume that the request path is `/test/api`. If there is a json file which path is `/mock/test/api.json`, the json data will be sent by reading the file.
For example. Assume that the request path is `/test/api`. If there is a json file whose path is `/mock/test/api.json`, the json data will be sent by reading the file.

@@ -101,0 +101,0 @@ # Debug template data

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