@sap-ux/axios-extension
Advanced tools
Comparing version 1.12.6 to 1.13.0
@@ -102,3 +102,4 @@ "use strict"; | ||
}; | ||
const response = yield this.get(`/${this.entitySet}`, { params }); | ||
const requestPath = this.entitySet ? `/${this.entitySet}` : '/ServiceCollection'; | ||
const response = yield this.get(requestPath, { params }); | ||
const services = response.odata(); | ||
@@ -130,5 +131,2 @@ if (services.length > 1) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
if (!this.entitySet) { | ||
yield this.determineEntitySet(); | ||
} | ||
if (!id) { | ||
@@ -141,3 +139,3 @@ const ServiceConfig = yield this.findService({ title, path }); | ||
if (id) { | ||
const response = yield this.get(`/${this.entitySet}('${encodeURIComponent(id)}')/Annotations`, { | ||
const response = yield this.get(`/ServiceCollection('${encodeURIComponent(id)}')/Annotations`, { | ||
params: { $format: 'json' } | ||
@@ -144,0 +142,0 @@ }); |
@@ -34,2 +34,3 @@ "use strict"; | ||
const util_1 = require("util"); | ||
const patchTls_1 = require("./base/patchTls"); | ||
/** | ||
@@ -76,2 +77,5 @@ * Create a new instance of given type and set default configuration merged with the given config. | ||
} | ||
if (patchTls_1.TlsPatch.isPatchRequired(config.baseURL)) { | ||
patchTls_1.TlsPatch.apply(); | ||
} | ||
return instance; | ||
@@ -78,0 +82,0 @@ } |
{ | ||
"name": "@sap-ux/axios-extension", | ||
"version": "1.12.6", | ||
"version": "1.13.0", | ||
"description": "Extension of the Axios module adding convenience methods to interact with SAP systems especially with OData services.", | ||
@@ -32,3 +32,3 @@ "repository": { | ||
"supertest": "6.3.3", | ||
"@sap-ux/project-access": "1.20.1" | ||
"@sap-ux/project-access": "1.21.0" | ||
}, | ||
@@ -35,0 +35,0 @@ "files": [ |
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
Network access
Supply chain riskThis module accesses the network.
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
273165
93
6203
4