Comparing version 1.2.2 to 1.2.3
@@ -66,3 +66,3 @@ (function() { | ||
app.get('/i18next/i18next.js', function(req, res) { | ||
var filename = (process.env.NODE_ENV !== 'production' || process.env['DEBUG']) ? __dirname + '/dep/i18next-1.2.1.js' : __dirname + '/dep/i18next-1.2.1.min.js'; | ||
var filename = (process.env.NODE_ENV !== 'production' || process.env['DEBUG']) ? __dirname + '/dep/i18next-' + i18n.Version + '.js' : __dirname + '/dep/i18next-' + i18n.Version + '.min.js'; | ||
@@ -135,5 +135,5 @@ fs.readFile(filename, function(err, data) { | ||
cookies.set('i18next', locale, { expires: expirationDate }); | ||
cookies.set('i18next', locale, { expires: expirationDate, httpOnly : false }); | ||
}; | ||
})(); |
(function() { | ||
var i18n = require('./dep/i18next-1.2.1') | ||
// when updating i18next dep update version here | ||
var i18nVersion = '1.2.3'; | ||
var i18n = require('./dep/i18next-1.2.3') | ||
, url = require('url') | ||
@@ -8,2 +11,4 @@ , Cookies = require('cookies') | ||
wrapper.Version = i18nVersion; | ||
if (typeof module !== 'undefined' && module.exports) { | ||
@@ -140,3 +145,9 @@ module.exports = wrapper; | ||
detectLanguage: detectLanguage | ||
detectLanguage: detectLanguage, | ||
cookie: { | ||
create: function() {}, | ||
read: function() {}, | ||
remove: function() {} | ||
} | ||
}; | ||
@@ -143,0 +154,0 @@ |
@@ -5,3 +5,3 @@ { | ||
"description": "A i18n middleware for the Express.js framework.", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -11,2 +11,10 @@ { | ||
"app": { | ||
"name": "app.name", | ||
"area": "app.area", | ||
"insert": "app.insert", | ||
"child": "app.child", | ||
"child_plural": "plural_not_found0.673282767413184", | ||
"friend_context_male": "app.friend_context_male", | ||
"friend_context_female": "app.friend_context_female", | ||
"district": "app.district", | ||
"room": "Room 21", | ||
@@ -13,0 +21,0 @@ "missingKeyFromClient": "app.missingKeyFromClient" |
@@ -14,4 +14,5 @@ var express = require('express') | ||
app.use(express.bodyParser()); | ||
app.use(app.router); | ||
app.use(i18n.handle); | ||
app.use(app.router); | ||
@@ -18,0 +19,0 @@ app.set('view engine', 'jade'); |
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
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
48751
948
25