UNPKG

@sap/generator-adaptation-project

Version:

Adaptation project allows you to create an app variant for an existing SAP Fiori elements-based or SAPUI5 freestyle application, without changing the original application.

37 lines 1.71 kB
"use strict"; var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } return new (P || (P = Promise))(function (resolve, reject) { function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } step((generator = generator.apply(thisArg, _arguments || [])).next()); }); }; Object.defineProperty(exports, "__esModule", { value: true }); exports.fetchTransportList = void 0; const adp_common_1 = require("@sap/adp-common"); function fetchTransportList(abapService, packageName, repository) { var _a; return __awaiter(this, void 0, void 0, function* () { try { TransportList.transports = yield abapService.listTransports(packageName, repository); } catch (error) { //In case that the request fails we should not break package validation (_a = adp_common_1.Logger.getLogger) === null || _a === void 0 ? void 0 : _a.error(`Could not fetch transports! Error: ${error.message}`); } }); } exports.fetchTransportList = fetchTransportList; class TransportList { static get transports() { return this.transportList; } static set transports(value) { this.transportList = value; } } exports.default = TransportList; TransportList.transportList = []; //# sourceMappingURL=transport-list.js.map