@types/send
Advanced tools
+0
-38
| /// <reference types="node" /> | ||
| import * as fs from "fs"; | ||
| import * as m from "mime"; | ||
| import * as stream from "stream"; | ||
@@ -14,3 +13,2 @@ | ||
| declare namespace send { | ||
| const mime: typeof m; | ||
| interface SendOptions { | ||
@@ -99,38 +97,2 @@ /** | ||
| /** | ||
| * @deprecated pass etag as option | ||
| * Enable or disable etag generation. | ||
| */ | ||
| etag(val: boolean): SendStream; | ||
| /** | ||
| * @deprecated use dotfiles option | ||
| * Enable or disable "hidden" (dot) files. | ||
| */ | ||
| hidden(val: boolean): SendStream; | ||
| /** | ||
| * @deprecated pass index as option | ||
| * Set index `paths`, set to a falsy value to disable index support. | ||
| */ | ||
| index(paths: string[] | string): SendStream; | ||
| /** | ||
| * @deprecated pass root as option | ||
| * Set root `path`. | ||
| */ | ||
| root(paths: string): SendStream; | ||
| /** | ||
| * @deprecated pass root as option | ||
| * Set root `path`. | ||
| */ | ||
| from(paths: string): SendStream; | ||
| /** | ||
| * @deprecated pass maxAge as option | ||
| * Set max-age to `maxAge`. | ||
| */ | ||
| maxage(maxAge: string | number): SendStream; | ||
| /** | ||
| * Emit error with `status`. | ||
@@ -137,0 +99,0 @@ */ |
| { | ||
| "name": "@types/send", | ||
| "version": "0.17.5", | ||
| "version": "1.2.0", | ||
| "description": "TypeScript definitions for send", | ||
@@ -33,8 +33,7 @@ "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/send", | ||
| "dependencies": { | ||
| "@types/mime": "^1", | ||
| "@types/node": "*" | ||
| }, | ||
| "peerDependencies": {}, | ||
| "typesPublisherContentHash": "8088c014f9e7c4c38cfce1ccf4f348a612ebe7009a733d262a12236edd4e90d7", | ||
| "typeScriptVersion": "5.1" | ||
| "typesPublisherContentHash": "6206894073da01205b509452f1fd1e673ee949f6908141b011a12357cc16a273", | ||
| "typeScriptVersion": "5.2" | ||
| } |
+2
-2
@@ -11,6 +11,6 @@ # Installation | ||
| ### Additional Details | ||
| * Last updated: Sat, 07 Jun 2025 02:15:25 GMT | ||
| * Dependencies: [@types/mime](https://npmjs.com/package/@types/mime), [@types/node](https://npmjs.com/package/@types/node) | ||
| * Last updated: Fri, 03 Oct 2025 23:32:18 GMT | ||
| * Dependencies: [@types/node](https://npmjs.com/package/@types/node) | ||
| # Credits | ||
| These definitions were written by [Mike Jerred](https://github.com/MikeJerred), [Piotr Błażejewicz](https://github.com/peterblazejewicz), and [Sebastian Beltran](https://github.com/bjohansebas). |
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
-50%0
-100%9005
-10.74%154
-17.2%- Removed
- Removed