Socket
Socket
Sign inDemoInstall

i18next

Package Overview
Dependencies
Maintainers
1
Versions
501
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

lib/dep/i18next-1.2.3.js

4

lib/i18next.js

@@ -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');

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