@sap-ux/axios-extension
Advanced tools
Comparing version 0.4.0 to 0.5.0
@@ -7,2 +7,3 @@ import { ServiceProvider } from '../base/service-provider'; | ||
import { ODataVersion } from '../base/odata-service'; | ||
import { LayeredRepositoryService } from './lrep-service'; | ||
export interface AbapServiceProviderExtension { | ||
@@ -64,3 +65,9 @@ s4Cloud: boolean | undefined; | ||
appIndex(): AppIndexService; | ||
/** | ||
* Create or get an existing instance of design time adaptation service. | ||
* | ||
* @returns an instance of the design time adaptation service. | ||
*/ | ||
layeredRepository(): LayeredRepositoryService; | ||
} | ||
//# sourceMappingURL=abap-service-provider.d.ts.map |
@@ -19,2 +19,3 @@ "use strict"; | ||
const odata_service_1 = require("../base/odata-service"); | ||
const lrep_service_1 = require("./lrep-service"); | ||
/** | ||
@@ -132,4 +133,15 @@ * Extension of the service provider for ABAP services. | ||
} | ||
/** | ||
* Create or get an existing instance of design time adaptation service. | ||
* | ||
* @returns an instance of the design time adaptation service. | ||
*/ | ||
layeredRepository() { | ||
if (!this.services[lrep_service_1.LayeredRepositoryService.PATH]) { | ||
this.services[lrep_service_1.LayeredRepositoryService.PATH] = this.createService(lrep_service_1.LayeredRepositoryService.PATH, lrep_service_1.LayeredRepositoryService); | ||
} | ||
return this.services[lrep_service_1.LayeredRepositoryService.PATH]; | ||
} | ||
} | ||
exports.AbapServiceProvider = AbapServiceProvider; | ||
//# sourceMappingURL=abap-service-provider.js.map |
export { Ui5AbapRepositoryService, AppInfo, ApplicationConfig } from './ui5-abap-repository-service'; | ||
export { LayeredRepositoryService, AdaptationConfig } from './lrep-service'; | ||
export { AbapServiceProvider } from './abap-service-provider'; | ||
@@ -3,0 +4,0 @@ export { AppIndex, AppIndexService } from './app-index-service'; |
@@ -13,5 +13,7 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TenantType = exports.AppIndexService = exports.AbapServiceProvider = exports.Ui5AbapRepositoryService = void 0; | ||
exports.TenantType = exports.AppIndexService = exports.AbapServiceProvider = exports.LayeredRepositoryService = exports.Ui5AbapRepositoryService = void 0; | ||
var ui5_abap_repository_service_1 = require("./ui5-abap-repository-service"); | ||
Object.defineProperty(exports, "Ui5AbapRepositoryService", { enumerable: true, get: function () { return ui5_abap_repository_service_1.Ui5AbapRepositoryService; } }); | ||
var lrep_service_1 = require("./lrep-service"); | ||
Object.defineProperty(exports, "LayeredRepositoryService", { enumerable: true, get: function () { return lrep_service_1.LayeredRepositoryService; } }); | ||
var abap_service_provider_1 = require("./abap-service-provider"); | ||
@@ -18,0 +20,0 @@ Object.defineProperty(exports, "AbapServiceProvider", { enumerable: true, get: function () { return abap_service_provider_1.AbapServiceProvider; } }); |
@@ -145,6 +145,6 @@ "use strict"; | ||
}); | ||
// throw error on connection issues and remove interceptor if successfully connected | ||
// throw error if the user is unauthorized otherwise, remove interceptor if successfully connected | ||
const oneTimeRespInterceptorId = provider.interceptors.response.use((response) => { | ||
var _a, _b, _c, _d; | ||
if (response.status >= 400) { | ||
if (response.status === 401) { | ||
throw new error_1.ConnectionError(response.statusText, response); | ||
@@ -151,0 +151,0 @@ } |
{ | ||
"name": "@sap-ux/axios-extension", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "Extension of the Axios module adding convinience methods to interact with SAP systems especially with OData services.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
Sorry, the diff of this file is not supported yet
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
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
197735
87
2994
81
2