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.0
to
1.23.1
+2
-2
httpsnippet/index.d.ts

@@ -38,4 +38,4 @@ // Type definitions for httpsnippet 1.23

title: string;
link?: string;
description?: string;
link?: string | undefined;
description?: string | undefined;
}

@@ -42,0 +42,0 @@

{
"name": "@types/httpsnippet",
"version": "1.23.0",
"version": "1.23.1",
"description": "TypeScript definitions for httpsnippet",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/httpsnippet",
"license": "MIT",

@@ -24,4 +25,4 @@ "contributors": [

},
"typesPublisherContentHash": "38704916f7c9666fc152ed2a1e7c9ab961392340e8676783850870ffa0c2cb4e",
"typeScriptVersion": "3.2"
"typesPublisherContentHash": "b58d3c3032cc36820ef18c322ee1732502c2f4f21e127419e2102e3eed953fe0",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,66 @@ # Installation

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
// Type definitions for httpsnippet 1.23
// Project: https://github.com/Kong/httpsnippet
// Definitions by: Marcell Toth <https://github.com/marcelltoth>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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, 27 Oct 2020 19:31:40 GMT
* Last updated: Thu, 08 Jul 2021 14:22:57 GMT
* Dependencies: [@types/har-format](https://npmjs.com/package/@types/har-format)

@@ -14,0 +75,0 @@ * Global values: none