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

@or-sdk/base

Package Overview
Dependencies
Maintainers
2
Versions
335
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.13.0 to 0.13.1

2

dist/cjs/utils/parseAxiosError.js

@@ -14,5 +14,5 @@ "use strict";

}
return res;
return new Error(res);
};
exports.default = parseAxiosError;
//# sourceMappingURL=parseAxiosError.js.map

@@ -12,5 +12,5 @@ const parseAxiosError = (e) => {

}
return res;
return new Error(res);
};
export default parseAxiosError;
//# sourceMappingURL=parseAxiosError.js.map

@@ -1,2 +0,2 @@

import { AxiosRequestHeaders } from 'axios';
import { AxiosRequestHeaders, AxiosError } from 'axios';
import { BaseConfig, CalApiParams, ServiceDiscoveryResponse } from './types';

@@ -22,3 +22,3 @@ export declare abstract class Base {

makeApiUrl(data: ServiceDiscoveryResponse): string;
parseError<T>(e: any): T;
parseError(e: AxiosError): Error;
protected getHeaders(): AxiosRequestHeaders;

@@ -25,0 +25,0 @@ private getToken;

import { Method } from 'axios';
export { AxiosError } from 'axios';
export interface BaseConfig {

@@ -3,0 +4,0 @@ token: Token;

import { AxiosError } from 'axios';
declare const parseAxiosError: (e: AxiosError) => any;
declare const parseAxiosError: (e: AxiosError) => Error;
export default parseAxiosError;
{
"version": "0.13.0",
"version": "0.13.1",
"name": "@or-sdk/base",

@@ -31,3 +31,3 @@ "main": "dist/cjs/index.js",

},
"gitHead": "df32fd4c00dc7584bb5472784f8cd1b1c81f6eeb"
"gitHead": "2c86c545ff23d9464ebba1a5287cde3651ed98c1"
}

@@ -1,2 +0,2 @@

import axios, { AxiosInstance, AxiosRequestHeaders } from 'axios';
import axios, { AxiosInstance, AxiosRequestHeaders, AxiosError } from 'axios';
import { BaseConfig, CalApiParams, ServiceDiscoveryResponse } from './types';

@@ -91,3 +91,3 @@ import { normalizeRoute, normalizeUrl, paramsSerializer, parseAxiosError } from './utils';

*/
parseError<T>(e: any): T {
parseError(e: AxiosError): Error {
return parseAxiosError(e);

@@ -94,0 +94,0 @@ }

import { Method } from 'axios';
export { AxiosError } from 'axios';
export interface BaseConfig {

@@ -4,0 +5,0 @@ /**

import { AxiosError } from 'axios';
const parseAxiosError = (e: AxiosError): any => {
const parseAxiosError = (e: AxiosError): Error => {
let res;

@@ -14,5 +14,5 @@

return res;
return new Error(res);
};
export default parseAxiosError;

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

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