New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

icecream

Package Overview
Dependencies
Maintainers
1
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

icecream - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

11

icecream/controller.js
var utils = require('./utils');
var View = require('./view');
var fs = require('fs');
var sanitizer = require('sanitizer');

@@ -97,8 +98,10 @@ var Controller = module.exports = function(){

prototype.get = function(key){
return this.req.query[key];
prototype.get = function(key, flag){
var val = this.req.query[key];
return flag?sanitizer.escape(val):val;
}
prototype.post = function(key){
return this.req.body[key];
prototype.post = function(key, flag){
var val = this.req.body[key];
return flag?sanitizer.escape(val):val;
}

@@ -105,0 +108,0 @@

@@ -13,3 +13,2 @@ var path = require('path');

var icecream = module.exports = {

@@ -16,0 +15,0 @@ version : JSON.parse(fs.readFileSync(__dirname + '/../package.json', 'utf8')).version

{
"name": "icecream",
"version": "0.2.3",
"version": "0.2.4",
"description": "rapid web framework for nodejs",

@@ -28,3 +28,4 @@ "homepage": "http://github.com/nodengine/icecream",

"wrench": "1.4.4",
"log4js":"0.5.6"
"log4js":"0.5.6",
"sanitizer":"0.0.15"
},

@@ -31,0 +32,0 @@ "devDependencies": {},

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