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

@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 0.1.6 to 0.1.7

6

CHANGELOG.md
# @tinyhttp/cookie
## 0.1.7
### Patch Changes
- Remove --compact flag
## 0.1.6

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

2

dist/index.js

@@ -5,2 +5,2 @@ let pairSplitRegExp=/; */;let fieldContentRegExp=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function tryDecode(str,decode=decodeURIComponent){try{return decode(str)}catch(e){return str}}

str+="; Domain="+domain}if(path){if(!fieldContentRegExp.test(path))throw new TypeError("option path is invalid");str+="; Path="+path}if(expires){if(typeof expires.toUTCString!=="function")throw new TypeError("option expires is invalid");str+="; Expires="+expires.toUTCString()}if(httpOnly)str+="; HttpOnly";if(secure)str+="; Secure";if(opt.sameSite){let sameSite=typeof opt.sameSite==="string"?opt.sameSite.toLowerCase():opt.sameSite;switch(sameSite){case true:str+="; SameSite=Strict";break;case "lax":str+=
"; SameSite=Lax";break;case "strict":str+="; SameSite=Strict";break;case "none":str+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid");}}return str}export{parse,serialize}
"; SameSite=Lax";break;case "strict":str+="; SameSite=Strict";break;case "none":str+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid");}}return str}export{parse,serialize}
{
"name": "@tinyhttp/cookie",
"version": "0.1.6",
"version": "0.1.7",
"type": "module",

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

"scripts": {
"build": "rollup -c --compact"
"build": "rollup -c"
}
}
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