eh-api-client
Advanced tools
Comparing version 0.47.4 to 0.47.5
@@ -42,30 +42,6 @@ // Type definitions for eh-api-client 0.24.0 | ||
export interface Factory { | ||
export declare class APIFactory { | ||
Client: { new ():Client }; | ||
secret: string | null | ||
getClientByContext(context: unknown): Client; | ||
setRetryOptions(options: RetryOptions): void; | ||
setAgentOptions(options: Record<string, unknown>): void; | ||
setSecret(secret: string): void; | ||
exists(cb?: Callback<boolean>): Promise<boolean>; | ||
exists(options: Options, cb?: Callback<boolean>): Promise<boolean>; | ||
getClient(userId: number, app: string): Client; | ||
getRawClient(): Client; | ||
get<T extends any>(options: Options, cb?: Callback<T>): Promise<T>; | ||
post<T extends any>(options: Options, cb?: Callback<T>): Promise<T>; | ||
post<T extends any>(options: Options, body: unknown, cb?: Callback<T>): Promise<T>; | ||
put<T extends any>(options: Options, cb?: Callback<T>): Promise<T>; | ||
put<T extends any>(options: Options, body: unknown, cb?: Callback<T>): Promise<T>; | ||
head<T extends any>(options: Options, cb?: Callback<unknown>): Promise<unknown>; | ||
patch<T extends any>(options: Options, cb?: Callback<T>): Promise<T>; | ||
patch<T extends any>(options: Options, body: unknown, cb?: Callback<T>): Promise<T>; | ||
delete<T extends any>(options: Options, cb?: Callback<T>): Promise<T>; | ||
} | ||
declare class APIFactory implements Factory{ | ||
Client: { new ():Client }; | ||
secret: string | null | ||
constructor(apiURL: string); | ||
@@ -72,0 +48,0 @@ |
@@ -8,2 +8,3 @@ var | ||
eventEmitter = require('./lib/eventemitter') | ||
Client = require("./lib/client") | ||
@@ -195,2 +196,3 @@ var defaultAgentOptions = { | ||
module.exports.Factory = Factory; | ||
module.exports = Factory; |
{ | ||
"name": "eh-api-client", | ||
"version": "0.47.4", | ||
"version": "0.47.5", | ||
"description": "Node.js rest client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46603
1490