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

@or-sdk/base

Package Overview
Dependencies
Maintainers
0
Versions
357
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@or-sdk/base - npm Package Compare versions

Comparing version 0.39.3-beta.3175.0 to 0.39.3-beta.3176.0

2

dist/cjs/Base.js

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

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