Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.0 to 0.3.1

9

lib/controller.js

@@ -42,4 +42,5 @@ var _ = require('lodash'),

request: function(apiObj, method) {
var self = this;
return Promise.reduce(_.keys(apiObj), function(ret, key) {
var self = this,
ret = {};
return Promise.map(_.keys(apiObj), function(key) {
var api = apiObj[key];

@@ -62,3 +63,5 @@ if (_.isString(api)) {

});
}, {});
}).then(function() {
return ret;
});
},

@@ -65,0 +68,0 @@

@@ -80,6 +80,7 @@ var fs = require('fs'),

_.each(arg, function(value, key) {
value = value === undefined ? 'undefined' : JSON.stringify(value);
resultToConsole.push(formatColor(key, 4));
resultToConsole.push(value);
resultToFile.push(format(key));
resultToFile.push(value === undefined ? 'undefined' : JSON.stringify(value));
resultToFile.push(value);
});

@@ -86,0 +87,0 @@ } else {

{
"name": "advanced",
"version": "0.3.0",
"version": "0.3.1",
"description": "A simple MVC framework based on Express",

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

"scripts": {
"test": "node_modules/.bin/mocha --compilers coffee:coffee-script/register test/utils.coffee",
"test": "node_modules/.bin/mocha --compilers coffee:coffee-script/register test/*.coffee",
"test-server": "node test/app2/server.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