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

statehood

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

statehood - npm Package Compare versions

Comparing version 4.0.3 to 4.1.0

18

lib/index.js

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

4

package.json
{
"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": {

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