@tinyhttp/cookie
Advanced tools
Comparing version 0.1.6 to 0.1.7
# @tinyhttp/cookie | ||
## 0.1.7 | ||
### Patch Changes | ||
- Remove --compact flag | ||
## 0.1.6 | ||
@@ -4,0 +10,0 @@ |
@@ -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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16914
165