Socket
Socket
Sign inDemoInstall

cookie

Package Overview
Dependencies
0
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.1 to 0.2.2

14

HISTORY.md

@@ -0,1 +1,8 @@

0.2.2 / 2015-09-17
==================
* Fix regression when setting empty cookie value
- Ease the new restriction, which is just basic header-level validation
* Fix typo in invalid value errors
0.2.1 / 2015-09-17

@@ -14,2 +21,9 @@ ==================

0.1.5 / 2015-09-17
==================
* Fix regression when setting empty cookie value
- Ease the new restriction, which is just basic header-level validation
* Fix typo in invalid value errors
0.1.4 / 2015-09-17

@@ -16,0 +30,0 @@ ==================

8

index.js

@@ -103,3 +103,3 @@ /*!

if (!fieldContentRegExp.test(name)) {
throw new TypeError('argument name is invaid');
throw new TypeError('argument name is invalid');
}

@@ -109,3 +109,3 @@

if (!fieldContentRegExp.test(value)) {
if (value && !fieldContentRegExp.test(value)) {
throw new TypeError('argument val is invalid');

@@ -124,3 +124,3 @@ }

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

@@ -133,3 +133,3 @@

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

@@ -136,0 +136,0 @@

{
"name": "cookie",
"description": "cookie parsing and serialization",
"version": "0.2.1",
"version": "0.2.2",
"author": "Roman Shtylman <shtylman@gmail.com>",

@@ -6,0 +6,0 @@ "contributors": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc