@sap-ux/deploy-tooling 0.8.0 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/base/deploy.js +14 -21
- package/package.json +1 -1
package/dist/base/deploy.js
CHANGED
|
@@ -227,9 +227,9 @@ function handle401Error(command, provider, config, logger, archive) {
|
|
|
227
227
|
config.target.serviceKey.uaa.password = credentials.password;
|
|
228
228
|
}
|
|
229
229
|
else {
|
|
230
|
-
|
|
230
|
+
config.credentials = credentials;
|
|
231
231
|
}
|
|
232
|
-
yield
|
|
232
|
+
yield runCommand(command, config, logger, archive);
|
|
233
233
|
return true;
|
|
234
234
|
}
|
|
235
235
|
else {
|
|
@@ -289,27 +289,20 @@ function getUi5AbapRepositoryService(provider, config, logger) {
|
|
|
289
289
|
function createTransportRequest(config, logger, provider) {
|
|
290
290
|
var _a;
|
|
291
291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
provider = yield getAbapServiceProvider(config, logger);
|
|
295
|
-
}
|
|
296
|
-
const adtService = yield provider.getAdtService(axios_extension_1.TransportRequestService);
|
|
297
|
-
logger.debug(`ADTService created for application ${config.app.name}, ${!adtService}.`);
|
|
298
|
-
const transportRequest = yield (adtService === null || adtService === void 0 ? void 0 : adtService.createTransportRequest({
|
|
299
|
-
packageName: (_a = config.app.package) !== null && _a !== void 0 ? _a : '',
|
|
300
|
-
ui5AppName: config.app.name,
|
|
301
|
-
description: 'Created by @sap-ux/deploy-tooling'
|
|
302
|
-
}));
|
|
303
|
-
if (transportRequest) {
|
|
304
|
-
logger.info(`Transport request ${transportRequest} created for application ${config.app.name}.`);
|
|
305
|
-
return transportRequest;
|
|
306
|
-
}
|
|
307
|
-
throw new Error(`Transport request could not be created for application ${config.app.name}.`);
|
|
292
|
+
if (!provider) {
|
|
293
|
+
provider = yield getAbapServiceProvider(config, logger);
|
|
308
294
|
}
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
295
|
+
const adtService = yield provider.getAdtService(axios_extension_1.TransportRequestService);
|
|
296
|
+
const transportRequest = yield (adtService === null || adtService === void 0 ? void 0 : adtService.createTransportRequest({
|
|
297
|
+
packageName: (_a = config.app.package) !== null && _a !== void 0 ? _a : '',
|
|
298
|
+
ui5AppName: config.app.name,
|
|
299
|
+
description: 'Created by @sap-ux/deploy-tooling'
|
|
300
|
+
}));
|
|
301
|
+
if (transportRequest) {
|
|
302
|
+
logger.info(`Transport request ${transportRequest} created for application ${config.app.name}.`);
|
|
303
|
+
return transportRequest;
|
|
312
304
|
}
|
|
305
|
+
throw new Error(`Transport request could not be created for application ${config.app.name}.`);
|
|
313
306
|
});
|
|
314
307
|
}
|
|
315
308
|
exports.createTransportRequest = createTransportRequest;
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"bugs": {
|
|
10
10
|
"url": "https://github.com/SAP/open-ux-tools/issues?q=is%3Aopen+is%3Aissue+label%3Abug+label%3Adeploy-tooling"
|
|
11
11
|
},
|
|
12
|
-
"version": "0.
|
|
12
|
+
"version": "0.9.0",
|
|
13
13
|
"license": "Apache-2.0",
|
|
14
14
|
"author": "@SAP/ux-tools-team",
|
|
15
15
|
"main": "dist/index.js",
|