Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

i18next-http-middleware

Package Overview
Dependencies
Maintainers
2
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

i18next-http-middleware - npm Package Compare versions

Comparing version 2.0.0 to 2.1.0

3

CHANGELOG.md

@@ -0,2 +1,5 @@

## [v2.1.0](https://github.com/i18next/i18next-http-middleware/compare/v2.0.0...v2.1.0)
- LanguageDetector: cookie, new option: cookiePath
## [v2.0.0](https://github.com/i18next/i18next-http-middleware/compare/v1.3.1...v2.0.0)
- potentially BREAKING: change cookie defaults: cookieSameSite: 'strict'

@@ -50,2 +50,3 @@ "use strict";

// cookieDomain: 'myDomain'
// cookiePath: '/my/path'
checkWhitelist: true,

@@ -52,0 +53,0 @@ checkForSimilarInWhitelist: false,

@@ -103,2 +103,3 @@ "use strict";

domain: options.cookieDomain,
path: options.cookiePath,
httpOnly: false,

@@ -105,0 +106,0 @@ overwrite: true,

@@ -21,2 +21,3 @@ import * as utils from './utils.js'

// cookieDomain: 'myDomain'
// cookiePath: '/my/path'

@@ -23,0 +24,0 @@ checkWhitelist: true,

@@ -81,2 +81,3 @@ // eslint-disable-next-line no-control-regex

domain: options.cookieDomain,
path: options.cookiePath,
httpOnly: false,

@@ -83,0 +84,0 @@ overwrite: true,

2

package.json
{
"name": "i18next-http-middleware",
"version": "2.0.0",
"version": "2.1.0",
"private": false,

@@ -5,0 +5,0 @@ "type": "module",

@@ -301,2 +301,3 @@ # Introduction

cookieDomain: 'myDomain',
cookiePath: '/my/path',
cookieSecure: true, // if need secure cookie

@@ -303,0 +304,0 @@ cookieSameSite: 'strict', // 'strict', 'lax' or 'none'

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