Socket
Socket
Sign inDemoInstall

@tinyhttp/cookie

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/cookie - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

CHANGELOG.md
# @tinyhttp/cookie
## 1.0.3
### Patch Changes
- strip bytes
## 1.0.2

@@ -4,0 +10,0 @@

9

dist/index.js

@@ -68,13 +68,8 @@ const pairSplitRegExp = /; */;

if (opt.path) {
if (!fieldContentRegExp.test(opt.path)) {
if (!fieldContentRegExp.test(opt.path))
throw new TypeError('option path is invalid');
}
str += '; Path=' + opt.path;
}
if (opt.expires) {
if (typeof opt.expires.toUTCString !== 'function') {
throw new TypeError('option expires is invalid');
}
if (opt.expires)
str += '; Expires=' + opt.expires.toUTCString();
}
if (opt.httpOnly)

@@ -81,0 +76,0 @@ str += '; HttpOnly';

{
"name": "@tinyhttp/cookie",
"version": "1.0.2",
"version": "1.0.3",
"type": "module",

@@ -5,0 +5,0 @@ "description": "HTTP cookie parser and serializer for Node.js",

@@ -96,5 +96,3 @@ const pairSplitRegExp = /; */

if (opt.path) {
if (!fieldContentRegExp.test(opt.path)) {
throw new TypeError('option path is invalid')
}
if (!fieldContentRegExp.test(opt.path)) throw new TypeError('option path is invalid')

@@ -104,10 +102,4 @@ str += '; Path=' + opt.path

if (opt.expires) {
if (typeof opt.expires.toUTCString !== 'function') {
throw new TypeError('option expires is invalid')
}
if (opt.expires) str += '; Expires=' + opt.expires.toUTCString()
str += '; Expires=' + opt.expires.toUTCString()
}
if (opt.httpOnly) str += '; HttpOnly'

@@ -114,0 +106,0 @@

Sorry, the diff of this file is not supported yet

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