forms-generator
Advanced tools
Comparing version 1.0.4 to 1.1.0
### v1.1.0 (2016/08/06) | ||
- Dependencies update. | ||
- Ensure i18n 0.8 compatibility. | ||
### v1.0.4 (2015/08/17) | ||
@@ -3,0 +8,0 @@ |
@@ -25,3 +25,4 @@ | ||
directory: path.join(__dirname, './locales'), | ||
defaultLocale: 'en' | ||
defaultLocale: 'en', | ||
queryParameter: 'locale' | ||
}); | ||
@@ -161,3 +162,2 @@ app.use(i18n.init); | ||
router.get("/", function(req, res) { | ||
i18n.overrideLocaleFromQuery(req); | ||
res.render("index", { | ||
@@ -164,0 +164,0 @@ simpleForm: simpleForm.getContent(req), |
@@ -10,5 +10,5 @@ { | ||
"jade": "^1.8.0", | ||
"i18n": "~0.5.0", | ||
"validator": "^3.22.0" | ||
"i18n": "~0.8.0", | ||
"validator": "^5.5.0" | ||
} | ||
} |
@@ -716,3 +716,3 @@ | ||
'__insertions' : insertions ? insertions : {}, | ||
'__attrsExtender' : options && options.attrsExtender ? options.attrsExtender : null, | ||
'__attrsExtender' : options && options.attrsExtender ? options.attrsExtender : null | ||
}; | ||
@@ -719,0 +719,0 @@ extendProps(opts, options); |
{ | ||
"name": "forms-generator", | ||
"version": "1.0.4", | ||
"version": "1.1.0", | ||
"description": "A library that helps with HTML forms", | ||
@@ -17,3 +17,3 @@ "author": { | ||
"multiparty": "^4.1.0", | ||
"async": "^1.4.0" | ||
"async": "^2.0.0" | ||
}, | ||
@@ -24,3 +24,3 @@ "engines": { | ||
"scripts": { | ||
"test": "istanbul cover --print both ./vows -- --spec tests/*.js", | ||
"test": "nyc vows --spec tests/*.js", | ||
"pipe-coverage": "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js --verbose" | ||
@@ -38,9 +38,18 @@ }, | ||
"dom-compare": "~0.2.0", | ||
"i18n": "~0.5.0", | ||
"istanbul": "^0.3.17", | ||
"i18n": "~0.8.0", | ||
"jade": "^1.8.0", | ||
"jsdom": "^3.0.0", | ||
"nyc": "^7.1.0", | ||
"vows": ">0.8.0" | ||
}, | ||
"license": "MIT" | ||
"license": "MIT", | ||
"nyc": { | ||
"include": [ | ||
"lib/**/*.js" | ||
], | ||
"reporter": [ | ||
"lcov", | ||
"text-summary" | ||
] | ||
} | ||
} |
# Forms Generator | ||
[![NPM Version](https://badge.fury.io/js/forms-generator.svg)](https://badge.fury.io/js/forms-generator) | ||
[![Build Status](https://travis-ci.org/an-sh/forms-generator.svg?branch=master)](https://travis-ci.org/an-sh/forms-generator) | ||
@@ -32,3 +33,3 @@ [![Coverage Status](https://coveralls.io/repos/an-sh/forms-generator/badge.svg?branch=master&service=github)](https://coveralls.io/github/an-sh/forms-generator?branch=master) | ||
This demonstration will show the basic workflow for express with jade | ||
This demonstration will show the basic workflow for express with Jade | ||
and i18n integration. | ||
@@ -180,4 +181,4 @@ | ||
dependencies, but rather they are expected by some methods as | ||
arguments. `Jade` should be compatible with version `1.9.0` and `i18n` | ||
with version `0.5.0`. | ||
arguments. `Jade` should be compatible with version `^1.9.0` (also | ||
`pug 1.x` may be used) and `i18n` with version `~0.5.0` or `~0.8.0`. | ||
@@ -357,2 +358,5 @@ ### Identifiers or IDs | ||
__NOTE:__ For legacy reasons this method does __not__ follow node | ||
style callbacks convention. | ||
__Arguments:__ | ||
@@ -395,3 +399,3 @@ | ||
Execute only a global validator. | ||
Runs only a global validator. | ||
@@ -401,3 +405,3 @@ __Arguments:__ | ||
- `fields` - Multiparty fields data __or__ `null`. | ||
- `files` - Multiparty fields data __or__ `null`. | ||
- `files` - Multiparty files data __or__ `null`. | ||
- `i18n` - `i18n` translation library. | ||
@@ -407,3 +411,3 @@ - `callback` - `function` callback to run after validation. | ||
- `fields` - Multiparty fields data __or__ `null`. | ||
- `files` - Multiparty fields data __or__ `null`. | ||
- `files` - Multiparty files data __or__ `null`. | ||
@@ -504,3 +508,3 @@ | ||
- `jade` - `jade` library. | ||
- `jade` - `jade` library (also `pug 1.x` may be used). | ||
- `options` - `jade` and render options __or__ `null`. Render options: | ||
@@ -507,0 +511,0 @@ - `attrsExtender` - `function` that extends HTML tags attributes. |
@@ -10,5 +10,5 @@ { | ||
"jade": "^1.8.0", | ||
"i18n": "~0.5.0", | ||
"validator": "^3.22.0" | ||
"i18n": "~0.8.0", | ||
"validator": "^5.5.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
125646
35
2280
612
+ Addedasync@2.6.4(transitive)
+ Addedlodash@4.17.21(transitive)
- Removedasync@1.5.2(transitive)
Updatedasync@^2.0.0