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.29.1-beta.1953.0 to 0.29.1

9

CHANGELOG.md

@@ -6,2 +6,11 @@ # Change Log

## [0.29.1](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/base@0.29.0...@or-sdk/base@0.29.1) (2023-12-04)
### Bug Fixes
* **key_value_storage:** fix keys with spacebar ([92fcc56](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/commit/92fcc569170d0b08ec1936d4189c20177ff88278))
## [0.29.0](https://gitlab.internal.onereach.io/onereach/platform/or-sdk-next/compare/@or-sdk/base@0.28.3...@or-sdk/base@0.29.0) (2023-09-13)

@@ -8,0 +17,0 @@

20

dist/cjs/Base.js

@@ -172,3 +172,3 @@ "use strict";

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
url: "".concat((0, utils_1.normalizeUrl)(this.discoveryUrl), "/").concat((0, utils_1.normalizeRoute)(constants_1.DISCOVERY_ROUTE)),
url: "".concat((0, utils_1.normalizeUrl)(this.discoveryUrl), "/").concat(this.normalizeRoute(constants_1.DISCOVERY_ROUTE)),
params: __assign({ serviceName: this.serviceKey }, (this.feature ? { feature: this.feature } : {})),

@@ -191,3 +191,3 @@ })];

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
url: "".concat((0, utils_1.normalizeUrl)(this.discoveryUrl), "/").concat((0, utils_1.normalizeRoute)(constants_1.DISCOVERY_ROUTE_ACCOUNTID)),
url: "".concat((0, utils_1.normalizeUrl)(this.discoveryUrl), "/").concat(this.normalizeRoute(constants_1.DISCOVERY_ROUTE_ACCOUNTID)),
headers: this.getHeaders(),

@@ -210,3 +210,3 @@ })];

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
url: "".concat((0, utils_1.normalizeUrl)(this.discoveryUrl), "/").concat((0, utils_1.normalizeRoute)(constants_1.DISCOVERY_ROUTE_PROVIDERS_ACCOUNT_ID)),
url: "".concat((0, utils_1.normalizeUrl)(this.discoveryUrl), "/").concat(this.normalizeRoute(constants_1.DISCOVERY_ROUTE_PROVIDERS_ACCOUNT_ID)),
headers: this.getHeaders(),

@@ -287,3 +287,3 @@ })];

conf = {
url: "".concat(this._serviceUrl, "/").concat((0, utils_1.normalizeRoute)(params.route)),
url: "".concat(this._serviceUrl, "/").concat(this.normalizeRoute(params.route)),
method: params.method || 'GET',

@@ -337,3 +337,3 @@ data: params.data,

return [4 /*yield*/, this.axios({
url: "".concat(params.url || this._serviceUrl, "/").concat((0, utils_1.normalizeRoute)(params.route)),
url: "".concat(params.url || this._serviceUrl, "/").concat(this.normalizeRoute(params.route)),
method: params.method || 'GET',

@@ -354,2 +354,12 @@ data: params.data,

};
/**
* Normalize route ro remove splace from param
* ```typescript
* const result = await instance.normalizeRoute('/route');
* ```
* @ignore
*/
Base.prototype.normalizeRoute = function (data) {
return (0, utils_1.normalizeRoute)(data);
};
return Base;

@@ -356,0 +366,0 @@ }());

@@ -99,3 +99,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
url: `${normalizeUrl(this.discoveryUrl)}/${normalizeRoute(DISCOVERY_ROUTE)}`,
url: `${normalizeUrl(this.discoveryUrl)}/${this.normalizeRoute(DISCOVERY_ROUTE)}`,
params: Object.assign({ serviceName: this.serviceKey }, (this.feature ? { feature: this.feature } : {})),

@@ -111,3 +111,3 @@ });

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
url: `${normalizeUrl(this.discoveryUrl)}/${normalizeRoute(DISCOVERY_ROUTE_ACCOUNTID)}`,
url: `${normalizeUrl(this.discoveryUrl)}/${this.normalizeRoute(DISCOVERY_ROUTE_ACCOUNTID)}`,
headers: this.getHeaders(),

@@ -123,3 +123,3 @@ });

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
url: `${normalizeUrl(this.discoveryUrl)}/${normalizeRoute(DISCOVERY_ROUTE_PROVIDERS_ACCOUNT_ID)}`,
url: `${normalizeUrl(this.discoveryUrl)}/${this.normalizeRoute(DISCOVERY_ROUTE_PROVIDERS_ACCOUNT_ID)}`,
headers: this.getHeaders(),

@@ -185,3 +185,3 @@ });

const conf = {
url: `${this._serviceUrl}/${normalizeRoute(params.route)}`,
url: `${this._serviceUrl}/${this.normalizeRoute(params.route)}`,
method: params.method || 'GET',

@@ -224,3 +224,3 @@ data: params.data,

const { data } = yield this.axios({
url: `${params.url || this._serviceUrl}/${normalizeRoute(params.route)}`,
url: `${params.url || this._serviceUrl}/${this.normalizeRoute(params.route)}`,
method: params.method || 'GET',

@@ -237,3 +237,13 @@ data: params.data,

}
/**
* Normalize route ro remove splace from param
* ```typescript
* const result = await instance.normalizeRoute('/route');
* ```
* @ignore
*/
normalizeRoute(data) {
return normalizeRoute(data);
}
}
//# sourceMappingURL=Base.js.map

@@ -86,3 +86,11 @@ import { RawAxiosRequestHeaders, AxiosError } from 'axios';

protected callApiV2<T>(params: CalApiParams): Promise<T>;
/**
* Normalize route ro remove splace from param
* ```typescript
* const result = await instance.normalizeRoute('/route');
* ```
* @ignore
*/
protected normalizeRoute(data: string): string;
}
//# sourceMappingURL=Base.d.ts.map
{
"name": "@or-sdk/base",
"version": "0.29.1-beta.1953.0",
"version": "0.29.1",
"main": "dist/cjs/index.js",

@@ -32,3 +32,4 @@ "module": "dist/esm/index.js",

"access": "public"
}
},
"gitHead": "c84eb94c6d7d10f59a7616e4af5bd5e3b4c4e8ec"
}

@@ -129,3 +129,3 @@ import axios, { AxiosInstance, RawAxiosRequestHeaders, AxiosRequestConfig, AxiosError } from 'axios';

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
url: `${normalizeUrl(this.discoveryUrl!)}/${normalizeRoute(DISCOVERY_ROUTE)}`,
url: `${normalizeUrl(this.discoveryUrl!)}/${this.normalizeRoute(DISCOVERY_ROUTE)}`,
params: {

@@ -144,3 +144,3 @@ serviceName: this.serviceKey,

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
url: `${normalizeUrl(this.discoveryUrl!)}/${normalizeRoute(DISCOVERY_ROUTE_ACCOUNTID)}`,
url: `${normalizeUrl(this.discoveryUrl!)}/${this.normalizeRoute(DISCOVERY_ROUTE_ACCOUNTID)}`,
headers: this.getHeaders(),

@@ -156,3 +156,3 @@ });

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
url: `${normalizeUrl(this.discoveryUrl!)}/${normalizeRoute(DISCOVERY_ROUTE_PROVIDERS_ACCOUNT_ID)}`,
url: `${normalizeUrl(this.discoveryUrl!)}/${this.normalizeRoute(DISCOVERY_ROUTE_PROVIDERS_ACCOUNT_ID)}`,
headers: this.getHeaders(),

@@ -226,3 +226,3 @@ });

const conf: AxiosRequestConfig = {
url: `${this._serviceUrl}/${normalizeRoute(params.route)}`,
url: `${this._serviceUrl}/${this.normalizeRoute(params.route)}`,
method: params.method || 'GET',

@@ -266,3 +266,3 @@ data: params.data,

const { data } = await this.axios({
url: `${params.url || this._serviceUrl}/${normalizeRoute(params.route)}`,
url: `${params.url || this._serviceUrl}/${this.normalizeRoute(params.route)}`,
method: params.method || 'GET',

@@ -282,2 +282,13 @@ data: params.data,

}
/**
* Normalize route ro remove splace from param
* ```typescript
* const result = await instance.normalizeRoute('/route');
* ```
* @ignore
*/
protected normalizeRoute(data: string) {
return normalizeRoute(data);
}
}

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