@tinyhttp/res
Advanced tools
Comparing version 1.3.3 to 2.0.0
@@ -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" | ||
} | ||
} |
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
0
1
14469
12
287
+ Addedes-escape-html@^0.1.1
+ Added@tinyhttp/accepts@2.0.0(transitive)
+ Added@tinyhttp/content-disposition@2.0.0(transitive)
+ Added@tinyhttp/cookie@2.0.0(transitive)
+ Added@tinyhttp/cookie-signature@2.0.0(transitive)
+ Added@tinyhttp/encode-url@2.0.0(transitive)
+ Added@tinyhttp/etag@2.0.0(transitive)
+ Added@tinyhttp/req@2.0.0(transitive)
+ Added@tinyhttp/send@2.0.0(transitive)
+ Added@tinyhttp/type-is@2.0.0(transitive)
+ Added@tinyhttp/url@2.0.0(transitive)
+ Addedes-content-type@0.1.0(transitive)
+ Addedes-escape-html@0.1.1(transitive)
+ Addedes-fresh@0.0.10(transitive)
+ Addedes-mime-types@0.1.4(transitive)
+ Addedes-vary@0.1.2(transitive)
- Removedescape-html@^1.0.3
- Removed@tinyhttp/accepts@1.3.0(transitive)
- Removed@tinyhttp/content-disposition@1.3.0(transitive)
- Removed@tinyhttp/cookie@1.3.0(transitive)
- Removed@tinyhttp/cookie-signature@1.3.0(transitive)
- Removed@tinyhttp/encode-url@0.3.0(transitive)
- Removed@tinyhttp/etag@1.3.0(transitive)
- Removed@tinyhttp/req@1.3.1(transitive)
- Removed@tinyhttp/send@1.3.2(transitive)
- Removed@tinyhttp/type-is@1.3.0(transitive)
- Removed@tinyhttp/url@1.3.1(transitive)
- Removedes-content-type@0.0.10(transitive)
- Removedes-fresh@0.0.8(transitive)
- Removedes-mime-types@0.0.16(transitive)
- Removedes-vary@0.0.8(transitive)
- Removedescape-html@1.0.3(transitive)
Updated@tinyhttp/cookie@2.0.0
Updated@tinyhttp/encode-url@2.0.0
Updated@tinyhttp/req@2.0.0
Updated@tinyhttp/send@2.0.0
Updatedes-mime-types@^0.1.3
Updatedes-vary@^0.1.1