@tinyhttp/cookie
Advanced tools
Comparing version 1.3.0 to 2.0.0
{ | ||
"name": "@tinyhttp/cookie", | ||
"version": "1.3.0", | ||
"version": "2.0.0", | ||
"type": "module", | ||
"description": "HTTP cookie parser and serializer for Node.js", | ||
"homepage": "https://github.com/talentlessguy/tinyhttp/tree/master/packages/cookie#readme", | ||
"homepage": "https://github.com/tinyhttp/tinyhttp/tree/master/packages/cookie#readme", | ||
"engines": { | ||
@@ -12,20 +12,11 @@ "node": ">=12.4.0" | ||
"type": "individual", | ||
"url": "https://github.com/talentlessguy/tinyhttp?sponsor=1" | ||
"url": "https://github.com/tinyhttp/tinyhttp?sponsor=1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/talentlessguy/tinyhttp.git", | ||
"url": "https://github.com/tinyhttp/tinyhttp.git", | ||
"directory": "packages/cookie" | ||
}, | ||
"main": "./dist/index.cjs", | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.js", | ||
"exports": { | ||
".": { | ||
"import": "./dist/index.js", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"./package.json": "./package.json", | ||
"./": "./" | ||
}, | ||
"exports": "./dist/index.js", | ||
"keywords": [ | ||
@@ -47,2 +38,2 @@ "tinyhttp", | ||
} | ||
} | ||
} |
@@ -142,3 +142,3 @@ # @tinyhttp/cookie | ||
import { parse, serialize } from '@tinyhttp/cookie' | ||
import escapeHtml from 'escape-html' | ||
import { escapeHTML } from 'es-escape-html' | ||
@@ -170,3 +170,3 @@ new App() | ||
res.write(name ? `<p>Welcome back, <strong>${escapeHtml(name)}</strong>!</p>` : '<p>Hello, new visitor!</p>') | ||
res.write(name ? `<p>Welcome back, <strong>${escapeHTML(name)}</strong>!</p>` : '<p>Hello, new visitor!</p>') | ||
@@ -173,0 +173,0 @@ res.write('<form method="GET">') |
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
No website
QualityPackage does not have a website.
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
12023
5
118
1