@types/httpsnippet
Advanced tools
| { | ||
| "name": "@types/httpsnippet", | ||
| "version": "1.23.4", | ||
| "description": "TypeScript definitions for httpsnippet", | ||
| "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/httpsnippet", | ||
| "license": "MIT", | ||
| "contributors": [ | ||
| { | ||
| "name": "Marcell Toth", | ||
| "githubUsername": "marcelltoth", | ||
| "url": "https://github.com/marcelltoth" | ||
| } | ||
| ], | ||
| "version": "3.0.1", | ||
| "description": "Stub TypeScript definitions entry for httpsnippet, which provides its own types definitions", | ||
| "main": "", | ||
| "types": "index.d.ts", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git", | ||
| "directory": "types/httpsnippet" | ||
| }, | ||
| "scripts": {}, | ||
| "license": "MIT", | ||
| "dependencies": { | ||
| "@types/har-format": "*" | ||
| "httpsnippet": "*" | ||
| }, | ||
| "typesPublisherContentHash": "f1ec9dee47f511cf0c8cce779510a6ea4b59b955cedcc7b0e1d2a87051e568e1", | ||
| "typeScriptVersion": "4.5" | ||
| "deprecated": "This is a stub types definition. httpsnippet provides its own type definitions, so you do not need this installed." | ||
| } |
@@ -1,71 +0,3 @@ | ||
| # Installation | ||
| > `npm install --save @types/httpsnippet` | ||
| This is a stub types definition for @types/httpsnippet (https://github.com/Mashape/httpsnippet). | ||
| # Summary | ||
| This package contains type definitions for httpsnippet (https://github.com/Kong/httpsnippet). | ||
| # Details | ||
| Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/httpsnippet. | ||
| ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/httpsnippet/index.d.ts) | ||
| ````ts | ||
| import { Har, Request } from "har-format"; | ||
| /*~ This declaration specifies that the class constructor function | ||
| *~ is the exported object from the file | ||
| */ | ||
| export = HTTPSnippet; | ||
| /*~ Write your module's methods and properties in this class */ | ||
| declare class HTTPSnippet { | ||
| constructor(data: HTTPSnippet.Data); | ||
| convert(target: string, options?: HTTPSnippet.Options): string | false; | ||
| convert(target: string, client?: string, options?: HTTPSnippet.Options): string | false; | ||
| static addTarget(target: HTTPSnippet.Target): void; | ||
| static addTargetClient(target: string, client: HTTPSnippet.TargetClient): void; | ||
| static availableTargets: string[]; | ||
| static extName(target: string): string; | ||
| } | ||
| declare namespace HTTPSnippet { | ||
| type Data = Har | Request; | ||
| type Options = object; | ||
| interface TargetClientInfo { | ||
| key: string; | ||
| title: string; | ||
| link?: string | undefined; | ||
| description?: string | undefined; | ||
| } | ||
| interface TargetClient { | ||
| (source: Request, options: Options): string; | ||
| info: TargetClientInfo; | ||
| } | ||
| interface TargetInfo<C extends string> { | ||
| key: string; | ||
| title: string; | ||
| extname: string; | ||
| default: C; | ||
| } | ||
| type Target<C extends string = string> = { | ||
| info: TargetInfo<C>; | ||
| } & Record<C, TargetClient>; | ||
| } | ||
| ```` | ||
| ### Additional Details | ||
| * Last updated: Tue, 07 Nov 2023 03:09:37 GMT | ||
| * Dependencies: [@types/har-format](https://npmjs.com/package/@types/har-format) | ||
| # Credits | ||
| These definitions were written by [Marcell Toth](https://github.com/marcelltoth). | ||
| httpsnippet provides its own type definitions, so you don't need @types/httpsnippet installed! |
| import { Har, Request } from "har-format"; | ||
| /*~ This declaration specifies that the class constructor function | ||
| *~ is the exported object from the file | ||
| */ | ||
| export = HTTPSnippet; | ||
| /*~ Write your module's methods and properties in this class */ | ||
| declare class HTTPSnippet { | ||
| constructor(data: HTTPSnippet.Data); | ||
| convert(target: string, options?: HTTPSnippet.Options): string | false; | ||
| convert(target: string, client?: string, options?: HTTPSnippet.Options): string | false; | ||
| static addTarget(target: HTTPSnippet.Target): void; | ||
| static addTargetClient(target: string, client: HTTPSnippet.TargetClient): void; | ||
| static availableTargets: string[]; | ||
| static extName(target: string): string; | ||
| } | ||
| declare namespace HTTPSnippet { | ||
| type Data = Har | Request; | ||
| type Options = object; | ||
| interface TargetClientInfo { | ||
| key: string; | ||
| title: string; | ||
| link?: string | undefined; | ||
| description?: string | undefined; | ||
| } | ||
| interface TargetClient { | ||
| (source: Request, options: Options): string; | ||
| info: TargetClientInfo; | ||
| } | ||
| interface TargetInfo<C extends string> { | ||
| key: string; | ||
| title: string; | ||
| extname: string; | ||
| default: C; | ||
| } | ||
| type Target<C extends string = string> = { | ||
| info: TargetInfo<C>; | ||
| } & Record<C, TargetClient>; | ||
| } |
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
1756
-67.07%3
-25%0
-100%2
100%1
Infinity%1
Infinity%3
-95.83%1
Infinity%1
Infinity%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed