New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@or-sdk/base

Package Overview
Dependencies
Maintainers
2
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.0.21 to 0.0.22

3

dist/Base.d.ts

@@ -6,6 +6,5 @@ import { AxiosRequestHeaders } from 'axios';

private readonly token;
private readonly sdkVersion;
private readonly axios;
private readonly baseUrl;
protected constructor({ userTokenFactory, token, sdkVersion, baseUrl }: BaseConfig);
protected constructor({ userTokenFactory, token, baseUrl }: BaseConfig);
protected getHeaders(): AxiosRequestHeaders;

@@ -12,0 +11,0 @@ get userToken(): string;

@@ -47,6 +47,5 @@ "use strict";

function Base(_a) {
var userTokenFactory = _a.userTokenFactory, token = _a.token, sdkVersion = _a.sdkVersion, baseUrl = _a.baseUrl;
var userTokenFactory = _a.userTokenFactory, token = _a.token, baseUrl = _a.baseUrl;
this.token = token;
this.userTokenFactory = userTokenFactory;
this.sdkVersion = sdkVersion;
this.baseUrl = baseUrl;

@@ -58,3 +57,2 @@ this.axios = axios_1.default.create({ paramsSerializer: utils_1.paramsSerializer });

Authorization: this.userToken,
'X-SDK-version': this.sdkVersion,
'Content-Type': 'application/json;charset=UTF-8',

@@ -61,0 +59,0 @@ };

@@ -5,28 +5,8 @@ import { Method } from 'axios';

userTokenFactory?: () => string;
sdkVersion: string;
baseUrl: string;
}
export interface BaseProviderConfig extends BaseConfig {
sdkApiUrl: string;
providersAccountId: string;
httpGatewayUrl: string;
sendWSMessage: (message: string) => Promise<any> | null;
}
export interface Headers {
Authorization: string;
'Content-Type': string;
'X-SDK-version': string;
}
export interface ExtraErrorProperty {
status?: string;
data?: any;
headers?: string;
config: {
method: string;
baseURL: string;
url: string;
data: any;
params: any;
};
}
export interface CalApiParams {

@@ -33,0 +13,0 @@ route: string;

{
"version": "0.0.21",
"version": "0.0.22",
"name": "@or-sdk/base",

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

},
"gitHead": "5f003ced8aa391b9c3a968dd49f11c2bcc48f0d9"
"gitHead": "ae824d960a9b106b6a50d8393160b9beeb5af4b4"
}

@@ -8,10 +8,8 @@ import axios, { AxiosInstance, AxiosRequestHeaders } from 'axios';

private readonly token: string | undefined;
private readonly sdkVersion: string;
private readonly axios: AxiosInstance;
private readonly baseUrl: string;
protected constructor({ userTokenFactory, token, sdkVersion, baseUrl }: BaseConfig) {
protected constructor({ userTokenFactory, token, baseUrl }: BaseConfig) {
this.token = token;
this.userTokenFactory = userTokenFactory;
this.sdkVersion = sdkVersion;
this.baseUrl = baseUrl;

@@ -24,3 +22,2 @@ this.axios = axios.create({ paramsSerializer });

Authorization: this.userToken,
'X-SDK-version': this.sdkVersion,
'Content-Type': 'application/json;charset=UTF-8',

@@ -27,0 +24,0 @@ };

export { Base } from './Base';
// export { BaseProvider } from './BaseProvider';
export * from './types';
export { PaginationOptions } from './types';

@@ -12,36 +12,10 @@ import { Method } from 'axios';

userTokenFactory?: ()=> string;
/**
* SDK version
*/
sdkVersion: string;
baseUrl: string;
}
export interface BaseProviderConfig extends BaseConfig {
sdkApiUrl: string;
providersAccountId: string;
httpGatewayUrl: string;
sendWSMessage: (message: string,)=> Promise<any>| null;
}
export interface Headers {
Authorization: string;
'Content-Type': string;
'X-SDK-version': string;
}
export interface ExtraErrorProperty {
status?: string;
data?: any;
headers?: string;
config: {
method: string;
baseURL: string;
url: string;
data: any;
params: any;
};
}
export interface CalApiParams {

@@ -48,0 +22,0 @@ route: string;

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

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