@sap/ux-ui5-tooling 1.6.0 → 1.6.1
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/cli/index.js +19 -18
- package/dist/middlewares/fiori-tools-preview.js +15 -13
- package/dist/middlewares/fiori-tools-proxy.js +364 -362
- package/dist/tasks/cf-deploy/index.js +15 -13
- package/dist/tasks/deploy/index.js +19 -18
- package/dist/templates/control-property-editor/app.js +1 -1
- package/package.json +9 -9
package/dist/cli/index.js
CHANGED
|
@@ -135260,8 +135260,7 @@ function prettyPrintMessage(msg, log, logData) {
|
|
|
135260
135260
|
}
|
|
135261
135261
|
exports.prettyPrintMessage = prettyPrintMessage;
|
|
135262
135262
|
function printUrl(longtextUrl, frontendUrl, log) {
|
|
135263
|
-
const fullLongTextUrl = frontendUrl.concat(longtextUrl);
|
|
135264
|
-
log.info('Please copy and paste this link into your browser for more details : ');
|
|
135263
|
+
const fullLongTextUrl = frontendUrl.concat(longtextUrl).replace(/'/g, '%27'); // to make entire link clickable;
|
|
135265
135264
|
log.info(fullLongTextUrl);
|
|
135266
135265
|
}
|
|
135267
135266
|
function logLevel(severity, msg, log, error = false) {
|
|
@@ -135422,16 +135421,19 @@ class ODataClient {
|
|
|
135422
135421
|
* @param headers - axios headers (optional)
|
|
135423
135422
|
*/
|
|
135424
135423
|
async get(path, headers) {
|
|
135425
|
-
var _a, _b;
|
|
135424
|
+
var _a, _b, _c;
|
|
135426
135425
|
const httpClient = await this.getClient();
|
|
135427
|
-
|
|
135428
|
-
|
|
135429
|
-
|
|
135430
|
-
|
|
135431
|
-
|
|
135432
|
-
|
|
135433
|
-
|
|
135434
|
-
|
|
135426
|
+
const response = await ((_a = httpClient
|
|
135427
|
+
.get(path, headers === undefined ? {} : { headers })) === null || _a === void 0 ? void 0 : _a.catch((error) => {
|
|
135428
|
+
var _a, _b, _c;
|
|
135429
|
+
if (((_a = error.request) === null || _a === void 0 ? void 0 : _a._isRedirect) && ((_c = (_b = error.request) === null || _b === void 0 ? void 0 : _b._options) === null || _c === void 0 ? void 0 : _c.path)) {
|
|
135430
|
+
return httpClient.get(error.request._options.path, headers === undefined ? {} : { headers });
|
|
135431
|
+
}
|
|
135432
|
+
else {
|
|
135433
|
+
throw error;
|
|
135434
|
+
}
|
|
135435
|
+
}));
|
|
135436
|
+
if ((_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.d) {
|
|
135435
135437
|
if (response.data.d.results) {
|
|
135436
135438
|
return response.data.d.results;
|
|
135437
135439
|
}
|
|
@@ -135440,7 +135442,7 @@ class ODataClient {
|
|
|
135440
135442
|
}
|
|
135441
135443
|
}
|
|
135442
135444
|
// Used for v4 Service Groups
|
|
135443
|
-
if ((
|
|
135445
|
+
if ((_c = response === null || response === void 0 ? void 0 : response.data) === null || _c === void 0 ? void 0 : _c.value) {
|
|
135444
135446
|
return response.data;
|
|
135445
135447
|
}
|
|
135446
135448
|
// Allow consumer to process
|
|
@@ -144950,13 +144952,12 @@ async function getUI5VersionsEnhanced(filterOptions) {
|
|
|
144950
144952
|
filteredUI5Versions = sortUI5Versions(filteredUI5Versions);
|
|
144951
144953
|
}
|
|
144952
144954
|
return filteredUI5Versions.map((ui5) => ({
|
|
144953
|
-
|
|
144954
|
-
|
|
144955
|
+
name: ui5,
|
|
144956
|
+
value: ui5,
|
|
144957
|
+
version: {
|
|
144955
144958
|
semantic: ui5,
|
|
144956
144959
|
default: defaultUI5Version === ui5
|
|
144957
|
-
}
|
|
144958
|
-
toString: () => ui5,
|
|
144959
|
-
name: ui5
|
|
144960
|
+
}
|
|
144960
144961
|
}));
|
|
144961
144962
|
}
|
|
144962
144963
|
exports.getUI5VersionsEnhanced = getUI5VersionsEnhanced;
|
|
@@ -187384,7 +187385,7 @@ module.exports = JSON.parse('{"ERROR_SPECIFICATION_MISSING":"Seems specification
|
|
|
187384
187385
|
/***/ ((module) => {
|
|
187385
187386
|
|
|
187386
187387
|
"use strict";
|
|
187387
|
-
module.exports = JSON.parse('{"name":"@sap/ux-telemetry","version":"1.6.
|
|
187388
|
+
module.exports = JSON.parse('{"name":"@sap/ux-telemetry","version":"1.6.1","description":"SAP Fiori tools telemetry library","main":"dist/src/index.js","author":"SAP SE","license":"MIT","private":true,"azureInstrumentationKey":"0a65e45d-6bf4-421d-b845-61e888c50e9e","azureProdKey":"0a65e45d-6bf4-421d-b845-61e888c50e9e","scripts":{"pre-commit":"lint-staged --quiet","clean":"rimraf ./dist","build":"ts-node ./build-script/ && yarn run clean && tsc --project ./","test":"jest --maxWorkers=1 --silent --ci --forceExit --detectOpenHandles","lint":"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint --fix","lint:fix:all":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple ","format:fix":"prettier --write --loglevel silent --ignore-path ../../../.prettierignore","format:fix:all":"prettier --write \'**/*.{css,scss,html,js,json,ts,tsx,yaml,yml}\' \'!**/{out,dist,node_modules}/**\' \'!**/*.{svg,png,xml}\' --ignore-path ../../../.prettierignore","madge":"madge --warning --circular --extensions ts ./"},"dependencies":{"@sap-ux/store":"0.1.0","@sap/ux-cds":"1.6.1","@sap/ux-common-utils":"1.6.1","@sap/ux-feature-toggle":"1.6.1","@sap/ux-project-access":"1.6.1","applicationinsights":"1.4.1","performance-now":"2.1.0","yaml":"2.0.0-10"},"devDependencies":{"ts-node":"8.5.2","typescript":"3.8.3"},"files":["dist/"],"jestSonar":{"reportPath":"reports/test/unit","reportFile":"test-report.xml"},"eslint-formatter-multiple":{"formatters":[{"name":"stylish","output":"console"},{"name":"json","output":"file","path":"reports/lint/eslint.json"},{"name":"checkstyle","output":"file","path":"reports/lint/eslint.checkstyle.xml"}]}}');
|
|
187388
187389
|
|
|
187389
187390
|
/***/ }),
|
|
187390
187391
|
|
|
@@ -127746,8 +127746,7 @@ function prettyPrintMessage(msg, log, logData) {
|
|
|
127746
127746
|
}
|
|
127747
127747
|
exports.prettyPrintMessage = prettyPrintMessage;
|
|
127748
127748
|
function printUrl(longtextUrl, frontendUrl, log) {
|
|
127749
|
-
const fullLongTextUrl = frontendUrl.concat(longtextUrl);
|
|
127750
|
-
log.info('Please copy and paste this link into your browser for more details : ');
|
|
127749
|
+
const fullLongTextUrl = frontendUrl.concat(longtextUrl).replace(/'/g, '%27'); // to make entire link clickable;
|
|
127751
127750
|
log.info(fullLongTextUrl);
|
|
127752
127751
|
}
|
|
127753
127752
|
function logLevel(severity, msg, log, error = false) {
|
|
@@ -127908,16 +127907,19 @@ class ODataClient {
|
|
|
127908
127907
|
* @param headers - axios headers (optional)
|
|
127909
127908
|
*/
|
|
127910
127909
|
async get(path, headers) {
|
|
127911
|
-
var _a, _b;
|
|
127910
|
+
var _a, _b, _c;
|
|
127912
127911
|
const httpClient = await this.getClient();
|
|
127913
|
-
|
|
127914
|
-
|
|
127915
|
-
|
|
127916
|
-
|
|
127917
|
-
|
|
127918
|
-
|
|
127919
|
-
|
|
127920
|
-
|
|
127912
|
+
const response = await ((_a = httpClient
|
|
127913
|
+
.get(path, headers === undefined ? {} : { headers })) === null || _a === void 0 ? void 0 : _a.catch((error) => {
|
|
127914
|
+
var _a, _b, _c;
|
|
127915
|
+
if (((_a = error.request) === null || _a === void 0 ? void 0 : _a._isRedirect) && ((_c = (_b = error.request) === null || _b === void 0 ? void 0 : _b._options) === null || _c === void 0 ? void 0 : _c.path)) {
|
|
127916
|
+
return httpClient.get(error.request._options.path, headers === undefined ? {} : { headers });
|
|
127917
|
+
}
|
|
127918
|
+
else {
|
|
127919
|
+
throw error;
|
|
127920
|
+
}
|
|
127921
|
+
}));
|
|
127922
|
+
if ((_b = response === null || response === void 0 ? void 0 : response.data) === null || _b === void 0 ? void 0 : _b.d) {
|
|
127921
127923
|
if (response.data.d.results) {
|
|
127922
127924
|
return response.data.d.results;
|
|
127923
127925
|
}
|
|
@@ -127926,7 +127928,7 @@ class ODataClient {
|
|
|
127926
127928
|
}
|
|
127927
127929
|
}
|
|
127928
127930
|
// Used for v4 Service Groups
|
|
127929
|
-
if ((
|
|
127931
|
+
if ((_c = response === null || response === void 0 ? void 0 : response.data) === null || _c === void 0 ? void 0 : _c.value) {
|
|
127930
127932
|
return response.data;
|
|
127931
127933
|
}
|
|
127932
127934
|
// Allow consumer to process
|
|
@@ -158422,7 +158424,7 @@ module.exports = JSON.parse('{"ERROR_SPECIFICATION_MISSING":"Seems specification
|
|
|
158422
158424
|
/***/ ((module) => {
|
|
158423
158425
|
|
|
158424
158426
|
"use strict";
|
|
158425
|
-
module.exports = JSON.parse('{"name":"@sap/ux-telemetry","version":"1.6.
|
|
158427
|
+
module.exports = JSON.parse('{"name":"@sap/ux-telemetry","version":"1.6.1","description":"SAP Fiori tools telemetry library","main":"dist/src/index.js","author":"SAP SE","license":"MIT","private":true,"azureInstrumentationKey":"0a65e45d-6bf4-421d-b845-61e888c50e9e","azureProdKey":"0a65e45d-6bf4-421d-b845-61e888c50e9e","scripts":{"pre-commit":"lint-staged --quiet","clean":"rimraf ./dist","build":"ts-node ./build-script/ && yarn run clean && tsc --project ./","test":"jest --maxWorkers=1 --silent --ci --forceExit --detectOpenHandles","lint":"eslint . --ext .ts","lint:summary":"eslint . --ext .ts -f summary","lint:fix":"eslint --fix","lint:fix:all":"eslint . --ext .ts --fix","lint:report":"eslint . --ext .ts -f multiple ","format:fix":"prettier --write --loglevel silent --ignore-path ../../../.prettierignore","format:fix:all":"prettier --write \'**/*.{css,scss,html,js,json,ts,tsx,yaml,yml}\' \'!**/{out,dist,node_modules}/**\' \'!**/*.{svg,png,xml}\' --ignore-path ../../../.prettierignore","madge":"madge --warning --circular --extensions ts ./"},"dependencies":{"@sap-ux/store":"0.1.0","@sap/ux-cds":"1.6.1","@sap/ux-common-utils":"1.6.1","@sap/ux-feature-toggle":"1.6.1","@sap/ux-project-access":"1.6.1","applicationinsights":"1.4.1","performance-now":"2.1.0","yaml":"2.0.0-10"},"devDependencies":{"ts-node":"8.5.2","typescript":"3.8.3"},"files":["dist/"],"jestSonar":{"reportPath":"reports/test/unit","reportFile":"test-report.xml"},"eslint-formatter-multiple":{"formatters":[{"name":"stylish","output":"console"},{"name":"json","output":"file","path":"reports/lint/eslint.json"},{"name":"checkstyle","output":"file","path":"reports/lint/eslint.checkstyle.xml"}]}}');
|
|
158426
158428
|
|
|
158427
158429
|
/***/ }),
|
|
158428
158430
|
|