New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

node-cookie

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-cookie - npm Package Compare versions

Comparing version

to
1.0.3

2

package.json
{
"name": "node-cookie",
"version": "1.0.2",
"version": "1.0.3",
"description": "sign, encrypt and parse http cookies",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -113,3 +113,3 @@ 'use strict'

Cookie._jsonCookie = function (str) {
if (str.substr(0, 2) !== 'j:') {
if (typeof (str) === 'string' && str.substr(0, 2) !== 'j:') {
return str

@@ -116,0 +116,0 @@ }