You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@types/oauth-signature

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/oauth-signature

TypeScript definitions for oauth-signature

1.5.2
ts4.5
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
ts6.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Installation

npm install --save @types/oauth-signature

Summary

This package contains type definitions for oauth-signature (https://github.com/bettiolo/oauth-signature-js).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oauth-signature.

index.d.ts

declare namespace OauthSignature {
    function generate(
        httpMethod: string,
        url: string,
        parameters: { [key: string]: any },
        consumerSecret: string,
        tokenSecret?: string,
        options?: GenerateOptions,
    ): string;

    interface GenerateOptions {
        encodeSignature: boolean;
    }

    class SignatureBaseString {
        constructor(httpMethod: string, url: string, parameters: { [key: string]: any });

        generate(): string;
    }

    class HttpMethodElement {
        constructor(httpMethod: string);

        get(): string;
    }

    interface ParsedUrl {
        scheme: string;
        authority: string;
        port: string;
        path: string;
    }

    class UrlElement {
        constructor(url: string);

        get(): string | undefined | null;
        parseInBrowser(): ParsedUrl;
        parseInNode(): ParsedUrl;
    }

    class ParametersElement {
        constructor(parameters: { [key: string]: any });
        get(): string;
    }

    class ParametersLoader {
        constructor(parameters: { [key: string]: any });

        get(): { [key: string]: any };
    }

    class Rfc3986 {
        encode(decoded?: string): string;
        decode(encoded?: string): string;
    }

    class HmacSha1Signature {
        constructor(signatureBaseString: string, consumerSecret?: string, tokenSecret?: string);
        generate(encode?: boolean): string;
    }

    class HmacSha1 {
        constructor(text?: string, key?: string);

        getBase64EncodedHash(): string;
    }
}

declare var oauthSignature: typeof OauthSignature;

export as namespace oauthSignature;
export = oauthSignature;

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: none

Credits

These definitions were written by Sean Coker.

FAQs

Package last updated on 07 Nov 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts