Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eh-api-client

Package Overview
Dependencies
Maintainers
2
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eh-api-client - npm Package Compare versions

Comparing version 0.47.4 to 0.47.5

26

index.d.ts

@@ -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 @@

2

index.js

@@ -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",

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