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

@xylabs/api

Package Overview
Dependencies
Maintainers
0
Versions
220
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/api - npm Package Compare versions

Comparing version 4.0.3 to 4.0.4

dist/neutral/ApiClient.d.ts

42

dist/neutral/index.d.ts

@@ -1,36 +0,6 @@

declare enum ApiStage {
Beta = "beta",
Local = "local",
Prod = "prod"
}
declare abstract class ApiClient {
protected token?: (string | null) | undefined;
protected stage?: ApiStage | undefined;
constructor(token?: (string | null) | undefined, stage?: ApiStage | undefined);
abstract endPoint(): string;
}
interface ApiConfig {
apiDomain: string;
apiKey?: string;
jwtToken?: string;
userid?: string;
}
declare class ApiEndpoint<T> {
private _value?;
private config;
private path;
constructor(config: ApiConfig, path: string);
get value(): T | undefined;
private get headers();
private get url();
fetch(): Promise<T>;
get(): Promise<T | NonNullable<T>>;
insert(value: T): Promise<T>;
}
declare const getApiStage: (hostname: string) => ApiStage;
export { ApiClient, type ApiConfig, ApiEndpoint, ApiStage, getApiStage };
export * from './ApiClient.ts';
export * from './ApiConfig.ts';
export * from './ApiEndpoint.ts';
export * from './ApiStage.ts';
export * from './getApiStage.ts';
//# sourceMappingURL=index.d.ts.map
{
"name": "@xylabs/api",
"version": "4.0.3",
"version": "4.0.4",
"description": "Base functionality used throughout XY Labs TypeScript/JavaScript libraries",

@@ -41,7 +41,7 @@ "keywords": [

"dependencies": {
"axios": "^1.7.4"
"axios": "^1.7.5"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^4.0.0",
"@xylabs/tsconfig": "^4.0.0",
"@xylabs/ts-scripts-yarn3": "^4.0.7",
"@xylabs/tsconfig": "^4.0.7",
"typescript": "^5.5.4"

@@ -48,0 +48,0 @@ },

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