Socket
Socket
Sign inDemoInstall

@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 1.3.0 to 2.0.0

21

package.json
{
"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">')

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