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

@tinyhttp/res

Package Overview
Dependencies
Maintainers
1
Versions
104
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinyhttp/res - npm Package Compare versions

Comparing version 1.3.3 to 2.0.0

2

dist/index.d.ts

@@ -8,2 +8,2 @@ export * from '@tinyhttp/send';

export * from './download';
export * from './append';
export { append } from './append';

@@ -10,3 +10,3 @@ import { sendFile } from '@tinyhttp/send';

import { STATUS_CODES } from 'http';
import escapeHtml from 'escape-html';
import { escapeHTML } from 'es-escape-html';
import { contentDisposition } from '@tinyhttp/content-disposition';

@@ -160,3 +160,3 @@ import { resolve, extname } from 'path';

html: () => {
const u = escapeHtml(address);
const u = escapeHTML(address);
body = `<p>${STATUS_CODES[status]}. Redirecting to <a href="${u}">${u}</a></p>`;

@@ -163,0 +163,0 @@ }

{
"name": "@tinyhttp/res",
"version": "1.3.3",
"type": "module",
"description": "response extensions for tinyhttp",
"homepage": "https://tinyhttp.v1rtl.site",
"repository": {
"type": "git",
"url": "https://github.com/tinyhttp/tinyhttp.git",
"directory": "packages/res"
},
"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",
"./": "./"
},
"keywords": [
"tinyhttp",
"node.js",
"web framework",
"web",
"backend",
"res"
],
"engines": {
"node": ">=12.4.0"
},
"author": "v1rtl",
"license": "MIT",
"dependencies": {
"@tinyhttp/content-disposition": "1.3.0",
"@tinyhttp/cookie": "1.3.0",
"@tinyhttp/cookie-signature": "1.3.0",
"@tinyhttp/encode-url": "0.3.0",
"@tinyhttp/req": "1.3.1",
"@tinyhttp/send": "1.3.2",
"es-mime-types": "^0.0.16",
"es-vary": "^0.0.8",
"escape-html": "^1.0.3"
},
"devDependencies": {
"@types/escape-html": "^1.0.0"
},
"scripts": {
"build": "rollup -c"
}
}
"name": "@tinyhttp/res",
"version": "2.0.0",
"type": "module",
"description": "response extensions for tinyhttp",
"homepage": "https://tinyhttp.v1rtl.site",
"repository": {
"type": "git",
"url": "https://github.com/tinyhttp/tinyhttp.git",
"directory": "packages/res"
},
"types": "./dist/index.d.ts",
"exports": "./dist/index.js",
"keywords": [
"tinyhttp",
"node.js",
"web framework",
"web",
"backend",
"res"
],
"engines": {
"node": ">=12.4.0"
},
"author": "v1rtl",
"license": "MIT",
"dependencies": {
"@tinyhttp/content-disposition": "2.0.0",
"@tinyhttp/cookie": "2.0.0",
"@tinyhttp/cookie-signature": "2.0.0",
"@tinyhttp/encode-url": "2.0.0",
"@tinyhttp/req": "2.0.0",
"@tinyhttp/send": "2.0.0",
"es-escape-html": "^0.1.1",
"es-mime-types": "^0.1.3",
"es-vary": "^0.1.1"
},
"scripts": {
"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