@or-sdk/base
Advanced tools
Comparing version 0.39.3-beta.3175.0 to 0.39.3-beta.3176.0
@@ -55,5 +55,5 @@ "use strict"; | ||
var axios_1 = __importDefault(require("axios")); | ||
var utils_1 = require("./utils"); | ||
var constants_1 = require("./constants"); | ||
var errors_1 = require("./errors"); | ||
var utils_1 = require("./utils"); | ||
var Base = /** @class */ (function () { | ||
@@ -60,0 +60,0 @@ function Base(_a) { |
@@ -11,5 +11,5 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
import axios from 'axios'; | ||
import { normalizeRoute, normalizeUrl, paramsSerializer, parseAxiosError, getServiceUrlWithRoute } from './utils'; | ||
import { DISCOVERY_ROUTE, DISCOVERY_ROUTE_ACCOUNTID, DISCOVERY_ROUTE_PROVIDERS_ACCOUNT_ID, TIMEOUT_SIGNAL_REASON, SdkStatus, } from './constants'; | ||
import { ApiTimeoutError } from './errors'; | ||
import { normalizeRoute, normalizeUrl, paramsSerializer, parseAxiosError, getServiceUrlWithRoute } from './utils'; | ||
export class Base { | ||
@@ -16,0 +16,0 @@ constructor({ token, discoveryUrl, serviceKey, requestAccountId, requestProvidersAccountId, feature, accountId, serviceUrl, useDefaultSerializer, paramSerializer = paramsSerializer, httpAgents = {}, interceptors = {}, }) { |
import { RawAxiosRequestHeaders, AxiosError } from 'axios'; | ||
import { BaseConfig, CalApiParams, MakeApiUrlData } from './types'; | ||
export declare abstract class Base { | ||
protected token: string | (() => string); | ||
private readonly token; | ||
private readonly axios; | ||
@@ -59,3 +59,3 @@ private readonly discoveryUrl; | ||
/** @ignore */ | ||
protected getToken(): string; | ||
private getToken; | ||
/** | ||
@@ -62,0 +62,0 @@ * Make API request |
{ | ||
"name": "@or-sdk/base", | ||
"version": "0.39.3-beta.3175.0", | ||
"version": "0.39.3-beta.3176.0", | ||
"license": "Apache-2.0", | ||
@@ -23,5 +23,5 @@ "main": "dist/cjs/index.js", | ||
"dependencies": { | ||
"axios": "^1.7.4", | ||
"axios": "^1.7.9", | ||
"lodash": "^4.17.21", | ||
"qs": "^6.12.1" | ||
"qs": "^6.13.1" | ||
}, | ||
@@ -28,0 +28,0 @@ "devDependencies": { |
import axios, { AxiosInstance, RawAxiosRequestHeaders, AxiosRequestConfig, AxiosError } from 'axios'; | ||
import { BaseConfig, BaseInterceptors, CalApiParams, MakeApiUrlData, ServiceDiscoveryResponse } from './types'; | ||
import { normalizeRoute, normalizeUrl, paramsSerializer, parseAxiosError, getServiceUrlWithRoute } from './utils'; | ||
import { | ||
@@ -11,7 +12,5 @@ DISCOVERY_ROUTE, | ||
import { ApiTimeoutError } from './errors'; | ||
import { BaseConfig, BaseInterceptors, CalApiParams, MakeApiUrlData, ServiceDiscoveryResponse } from './types'; | ||
import { normalizeRoute, normalizeUrl, paramsSerializer, parseAxiosError, getServiceUrlWithRoute } from './utils'; | ||
export abstract class Base { | ||
protected token: string | (() => string); | ||
private readonly token: string | (() => string); | ||
private readonly axios: AxiosInstance; | ||
@@ -212,3 +211,3 @@ private readonly discoveryUrl: string | null = null; | ||
/** @ignore */ | ||
protected getToken(): string { | ||
private getToken(): string { | ||
if (typeof this.token === 'string') { | ||
@@ -215,0 +214,0 @@ return this.token; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
174510
Updatedaxios@^1.7.9
Updatedqs@^6.13.1