New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/speakeasy

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/speakeasy - npm Package Compare versions

Comparing version 2.0.1 to 2.0.2

speakeasy/LICENSE

77

speakeasy/index.d.ts
// Type definitions for speakeasy v2.0.0
// Project: https://github.com/markbao/speakeasy
// Definitions by: Lucas Woo <https://github.com/legendecas>, Alexander Batukhtin <https://github.com/mrOlorin>
// Project: https://github.com/speakeasyjs/speakeasy
// Definitions by: Lucas Woo <https://github.com/legendecas>, Alexander Batukhtin <https://github.com/mrOlorin>, Aayush Kapoor <https://github.com/xeoneux>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface SharedOptions {
encoding?: string;
algorithm?: string;
}
interface Key {

@@ -17,7 +22,5 @@ ascii: string;

interface DigestOptions {
interface DigestOptions extends SharedOptions {
secret: string;
counter: string;
encoding?: string;
algorithm?: string;
key?: string;

@@ -43,3 +46,3 @@ }

interface TotpOptions {
interface TotpOptions extends SharedOptions {
key?: string;

@@ -50,3 +53,2 @@ step?: number;

length?: number;
encoding?: string;
counter?: number;

@@ -57,10 +59,19 @@ epoch?: number;

digest?: () => string;
algorithm?: string;
}
interface HotpOptions {
interface TotpVerifyOptions extends SharedOptions {
secret: string;
token: string;
time?: number;
step?: number;
epoch?: number;
counter?: number;
digits?: number;
window?: number;
}
interface HotpOptions extends SharedOptions {
key: string;
counter: number;
length?: number;
encoding?: string;
digits?: number;

@@ -70,4 +81,12 @@ digest?: () => string;

interface OtpauthURLOptions {
interface HotpVerifyOptions extends SharedOptions {
secret: string;
token: string;
counter: number;
digits?: number;
window?: number;
}
interface OtpauthURLOptions extends SharedOptions {
secret: string;
label: string;

@@ -77,24 +96,30 @@ issuer?: any;

counter?: number;
algorithm?: string;
digits?: number;
period?: number;
encoding?: string;
}
export declare function digest(options: DigestOptions): string;
interface Hotp {
(options: HotpOptions): string;
verifyDelta: (options: HotpVerifyOptions) => boolean;
verify: (options: HotpVerifyOptions) => boolean;
}
export declare function generate_key(options: GenerateOptions): Key;
interface Totp {
(options: TotpOptions): string;
verifyDelta: (options: TotpVerifyOptions) => boolean;
verify: (options: TotpVerifyOptions) => boolean;
}
export declare function generateSecret(options: GenerateSecretOptions): Key;
export declare const hotp: Hotp;
export declare const totp: Totp;
export declare function generateSecretASCII(length?: number, symbols?: boolean): string;
export declare function time(options: TotpOptions): string;
export declare function counter(options: HotpOptions): string;
export declare function digest(options: DigestOptions): string;
export declare function generate_key(options: GenerateOptions): Key;
export declare function generateSecret(options?: GenerateSecretOptions): Key;
export declare function generateSecretASCII(
length?: number,
symbols?: boolean
): string;
export declare function otpauthURL(options: OtpauthURLOptions): string;
export declare function hotp(options: HotpOptions): string;
export declare function counter(options: HotpOptions): string;
export declare function totp(options: TotpOptions): string;
export declare function time(options: TotpOptions): string;
{
"name": "@types/speakeasy",
"version": "2.0.1",
"version": "2.0.2",
"description": "TypeScript definitions for speakeasy",

@@ -9,7 +9,14 @@ "license": "MIT",

"name": "Lucas Woo",
"url": "https://github.com/legendecas"
"url": "https://github.com/legendecas",
"githubUsername": "legendecas"
},
{
"name": "Alexander Batukhtin",
"url": "https://github.com/mrOlorin"
"url": "https://github.com/mrOlorin",
"githubUsername": "mrOlorin"
},
{
"name": "Aayush Kapoor",
"url": "https://github.com/xeoneux",
"githubUsername": "xeoneux"
}

@@ -24,5 +31,4 @@ ],

"dependencies": {},
"peerDependencies": {},
"typesPublisherContentHash": "020aa8d5ba4a4084716ab9aa3b479c79781cbfcdfc0de949b17697310a05e8d9",
"typesPublisherContentHash": "afe2780ac8e9e4f7f3b05406456701dd9afdbffdbc2416be5bfb809ee8176229",
"typeScriptVersion": "2.0"
}

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

# Summary
This package contains type definitions for speakeasy (https://github.com/markbao/speakeasy).
This package contains type definitions for speakeasy (https://github.com/speakeasyjs/speakeasy).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/speakeasy
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/speakeasy
Additional Details
* Last updated: Tue, 21 Mar 2017 00:35:43 GMT
* Last updated: Thu, 11 Jan 2018 22:07:40 GMT
* Dependencies: none

@@ -17,2 +17,2 @@ * Global values: none

# Credits
These definitions were written by Lucas Woo <https://github.com/legendecas>, Alexander Batukhtin <https://github.com/mrOlorin>.
These definitions were written by Lucas Woo <https://github.com/legendecas>, Alexander Batukhtin <https://github.com/mrOlorin>, Aayush Kapoor <https://github.com/xeoneux>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc