Comparing version 0.0.1-pre5 to 0.0.2
@@ -13,3 +13,3 @@ var Joi = require('joi'); | ||
return function (status, callback) { | ||
var send = res.send; | ||
var send = res.send.bind(res); | ||
if (res.prettyError) { | ||
@@ -96,2 +96,2 @@ send = res.prettyError; | ||
module.exports.Conformity = Conformity; | ||
module.exports.Joi = Joi; | ||
module.exports.Joi = Joi; |
{ | ||
"name": "conformity", | ||
"version": "0.0.1-pre5", | ||
"version": "0.0.2", | ||
"description": "JSON validation middleware for express.js, kitchensink, etc", | ||
@@ -25,6 +25,3 @@ "main": "index.js", | ||
], | ||
"author": { | ||
"name": "Van Nguyen", | ||
"email": "thegoleffect@gmail.com" | ||
}, | ||
"author": "Van Nguyen <thegoleffect@gmail.com>", | ||
"license": "MIT", | ||
@@ -34,13 +31,3 @@ "dependencies": { | ||
"xss": "^0.2.10" | ||
}, | ||
"readme": "# Conformity - HTTP Parameter Validation Middleware\n\n[![Dependency Status](https://david-dm.org/thegoleffect/conformity.svg)](https://david-dm.org/thegoleffect/conformity.svg)\n[![devDependency Status](https://david-dm.org/thegoleffect/conformity/dev-status.svg)](https://david-dm.org/thegoleffect/conformity/dev-status.svg)\n\nConformity is a JSON validation middleware for express.js. It lets you perform path, query, payload, and response validation without polluting your handler code. Additionally, it performs XSS html escaping automatically.\n\n## Getting Started\n\n```\nnpm install --save conformity\n```\n\n\n```\nvar Express = require('express');\nvar Conformity = require('conformity');\nvar Joi = Conformity.validator;\n\nvar app = Express();\n\n// CONFORMITY USAGE:\napp.use(Conformity.validate());\nvar IndexHandler = function (req, res) {\n return 'Hello! ' + req.params.name;\n}\nIndexHandler.validate = {\n path: {\n name: Joi.string().required()\n }\n};\n\napp.get('/:name', IndexHandler);\n\napp.listen(3000);\n```", | ||
"readmeFilename": "README.md", | ||
"gitHead": "db386179e4a1479f6d6c16ea395693cf55144631", | ||
"bugs": { | ||
"url": "https://github.com/thegoleffect/conformity/issues" | ||
}, | ||
"homepage": "https://github.com/thegoleffect/conformity", | ||
"_id": "conformity@0.0.1-pre5", | ||
"_shasum": "fedb519750687cfb022b9e9a32592e0abb871b63", | ||
"_from": "conformity@0.0.1-pre5" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
99
5984
1