Huge News!Announcing our $40M Series B led by Abstract Ventures.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 1.0.28 to 2.0.0

57

speakeasy/index.d.ts

@@ -1,9 +0,7 @@

// Type definitions for speakeasy v1.0.4
// Type definitions for speakeasy v2.0.0
// Project: https://github.com/markbao/speakeasy
// Definitions by: Lucas Woo <https://github.com/legendecas>
// Definitions by: Lucas Woo <https://github.com/legendecas>, Alexander Batukhtin <https://github.com/mrOlorin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface IKey {
interface Key {
ascii: string;

@@ -16,4 +14,13 @@ base32: string;

google_auth_qr: string;
otpauth_url?: string;
}
interface DigestOptions {
secret: string;
counter: string;
encoding?: string;
algorithm?: string;
key?: string;
}
interface GenerateOptions {

@@ -27,4 +34,13 @@ length?: number;

interface GenerateSecretOptions {
length?: number;
name?: string;
qr_codes?: boolean;
google_auth_qr?: boolean;
otpauth_url?: boolean;
symbols?: boolean;
}
interface TotpOptions {
key: string;
key?: string;
step?: number;

@@ -35,2 +51,7 @@ time?: number;

encoding?: string;
counter?: number;
epoch?: number;
secret?: string;
digest?: () => string;
algorithm?: string;
}

@@ -43,6 +64,28 @@

encoding?: string;
digits?: number;
digest?: () => string;
}
export declare function generate_key(options: GenerateOptions): IKey;
interface OtpauthURLOptions {
secret: string;
label: string;
issuer?: any;
type?: string;
counter?: number;
algorithm?: string;
digits?: number;
period?: number;
encoding?: 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;

@@ -49,0 +92,0 @@

11

speakeasy/package.json
{
"name": "@types/speakeasy",
"version": "1.0.28",
"description": "TypeScript definitions for speakeasy v1.0.4",
"version": "2.0.0",
"description": "TypeScript definitions for speakeasy",
"license": "MIT",
"author": "Lucas Woo <https://github.com/legendecas>",
"author": "Lucas Woo <https://github.com/legendecas>, Alexander Batukhtin <https://github.com/mrOlorin>",
"main": "",

@@ -14,4 +14,5 @@ "repository": {

"dependencies": {},
"typings": "index.d.ts",
"typesPublisherContentHash": "97beea53336fbe49005649136d96164d538b0d9407267616cfe10e6cbed9f467"
"peerDependencies": {},
"typesPublisherContentHash": "2f1fb02f7d6562fb1d76870660d253eb187a9766711f257eebc25f2e6f8f151f",
"typeScriptVersion": "2.0"
}

@@ -5,15 +5,13 @@ # Installation

# Summary
This package contains type definitions for speakeasy v1.0.4 (https://github.com/markbao/speakeasy).
This package contains type definitions for speakeasy (https://github.com/markbao/speakeasy).
# Details
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/speakeasy
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/speakeasy
Additional Details
* Last updated: Mon, 19 Sep 2016 17:28:59 GMT
* File structure: ProperModule
* Library Dependencies: none
* Module Dependencies: none
* Last updated: Wed, 18 Jan 2017 08:47:11 GMT
* Dependencies: none
* Global values: none
# Credits
These definitions were written by Lucas Woo <https://github.com/legendecas>.
These definitions were written by Lucas Woo <https://github.com/legendecas>, Alexander Batukhtin <https://github.com/mrOlorin>.
{
"authors": "Lucas Woo <https://github.com/legendecas>",
"definitionFilename": "index.d.ts",
"libraryDependencies": [],
"moduleDependencies": [],
"libraryMajorVersion": "1",
"libraryMinorVersion": "0",
"libraryName": "speakeasy v1.0.4",
"typingsPackageName": "speakeasy",
"projectName": "https://github.com/markbao/speakeasy",
"name": "speakeasy",
"libraryName": "speakeasy",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"sourceBranch": "types-2.0",
"kind": "ProperModule",
"globals": [],
"declaredModules": [
"speakeasy"
],
"files": [
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "97beea53336fbe49005649136d96164d538b0d9407267616cfe10e6cbed9f467"
"data": {
"authors": "Lucas Woo <https://github.com/legendecas>, Alexander Batukhtin <https://github.com/mrOlorin>",
"dependencies": {},
"pathMappings": {},
"libraryMajorVersion": 2,
"libraryMinorVersion": 0,
"typeScriptVersion": "2.0",
"libraryName": "speakeasy",
"typingsPackageName": "speakeasy",
"projectName": "https://github.com/markbao/speakeasy",
"sourceRepoURL": "https://www.github.com/DefinitelyTyped/DefinitelyTyped",
"globals": [],
"declaredModules": [
"speakeasy/."
],
"files": [
"index.d.ts"
],
"hasPackageJson": false,
"contentHash": "2f1fb02f7d6562fb1d76870660d253eb187a9766711f257eebc25f2e6f8f151f"
},
"isLatest": true
}
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