From bc38ffd0eae716b199236dda061d0bdc74192dd3 Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Sun, 6 Oct 2024 20:40:22 -0700 Subject: [PATCH 1/2] Fix object assignment of `hasOwnProperty` (#177) --- index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 51a58cb..acd5acd 100644 --- a/index.js +++ b/index.js @@ -21,6 +21,7 @@ exports.serialize = serialize; */ var __toString = Object.prototype.toString +var __hasOwnProperty = Object.prototype.hasOwnProperty /** * RegExp to match cookie-name in RFC 6265 sec 4.1.1 @@ -130,7 +131,7 @@ function parse(str, opt) { var key = str.slice(keyStartIdx, keyEndIdx); // only assign once - if (!obj.hasOwnProperty(key)) { + if (!__hasOwnProperty.call(obj, key)) { var valStartIdx = startIndex(str, eqIdx + 1, endIdx); var valEndIdx = endIndex(str, endIdx, valStartIdx); From d19eaa1a2bb9ca43ac0951edd852ba4e88e410e0 Mon Sep 17 00:00:00 2001 From: Blake Embrey Date: Sun, 6 Oct 2024 20:41:17 -0700 Subject: [PATCH 2/2] 0.7.2 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f498ea7..22e3f92 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "cookie", "description": "HTTP server cookie parsing and serialization", - "version": "0.7.1", + "version": "0.7.2", "author": "Roman Shtylman ", "contributors": [ "Douglas Christopher Wilson " pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy