@xylabs/api
Advanced tools
Comparing version 4.0.3 to 4.0.4
@@ -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 @@ }, |
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
21152
24
208
Updatedaxios@^1.7.5