Comparing version 4.0.3 to 4.1.0
@@ -24,2 +24,3 @@ 'use strict'; | ||
isHttpOnly: Joi.boolean(), | ||
isSameSite: Joi.valid('Strict', 'Lax').allow(false), | ||
path: Joi.string().allow(null), | ||
@@ -49,2 +50,3 @@ domain: Joi.string().allow(null), | ||
isHttpOnly: false, | ||
isSameSite: false, | ||
path: null, | ||
@@ -143,4 +145,4 @@ domain: null, | ||
const details = { | ||
name: name, | ||
value: value, | ||
name, | ||
value, | ||
settings: definition, | ||
@@ -298,2 +300,10 @@ reason: typeof reason === 'string' ? reason : reason.message | ||
if (!value && | ||
definition.encoding === 'form') { | ||
return next(null, {}); | ||
} | ||
Hoek.assert(typeof value === 'string', 'Invalid string'); | ||
// Encodings: 'base64json', 'base64', 'form', 'iron', 'none' | ||
@@ -399,2 +409,6 @@ | ||
if (definition.isSameSite) { | ||
segment = segment + `; SameSite=${definition.isSameSite}`; | ||
} | ||
if (definition.domain) { | ||
@@ -401,0 +415,0 @@ const domain = definition.domain.toLowerCase(); |
{ | ||
"name": "statehood", | ||
"description": "HTTP State Management Utilities", | ||
"version": "4.0.3", | ||
"version": "4.1.0", | ||
"repository": "git://github.com/hapijs/statehood", | ||
@@ -26,3 +26,3 @@ "main": "lib/index.js", | ||
"code": "3.x.x", | ||
"lab": "10.x.x" | ||
"lab": "11.x.x" | ||
}, | ||
@@ -29,0 +29,0 @@ "scripts": { |
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
18524
407