Socket
Socket
Sign inDemoInstall

formconv

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.4 to 0.0.5

2

package.json
{
"name": "formconv",
"version": "0.0.4",
"version": "0.0.5",
"description": "A utility function to convert and validate form post data, and filter secure data from data base object",

@@ -5,0 +5,0 @@ "main": "scheme.js",

@@ -39,3 +39,3 @@ /**

var typeType = typeof type;
if(type != 'int' && type != String && type != Number && type != Date && type != Array && type != Boolean) {
if(type != 'int' && type != String && type != Number && type != Date && type != Array && type != Boolean && type != Object) {
throw new Error('wrong type ' + type + ' for field ' + field);

@@ -71,2 +71,4 @@ }

return null
case Object:
return value
default:

@@ -73,0 +75,0 @@ throw new Error('not support type '+ fieldDefine.type)

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc