Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
@types/oauth-signature
Advanced tools
TypeScript definitions for oauth-signature
npm install --save @types/oauth-signature
This package contains type definitions for oauth-signature (https://github.com/bettiolo/oauth-signature-js).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/oauth-signature.
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;
These definitions were written by Sean Coker.
FAQs
TypeScript definitions for oauth-signature
The npm package @types/oauth-signature receives a total of 1,057 weekly downloads. As such, @types/oauth-signature popularity was classified as popular.
We found that @types/oauth-signature demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.