New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@types/httpsnippet

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/httpsnippet - npm Package Compare versions

Comparing version
1.23.4
to
3.0.1
+5
-20
httpsnippet/package.json
{
"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."
}
+2
-70

@@ -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>;
}