@sap/ux-ui5-tooling 1.11.2 → 1.11.4
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/CHANGELOG.md +11 -0
- package/README.md +6 -3
- package/dist/cli/index.js +41590 -46763
- package/dist/middlewares/fiori-tools-appreload.js +79 -60
- package/dist/middlewares/fiori-tools-preview.js +20874 -17727
- package/dist/middlewares/fiori-tools-proxy.js +42128 -44636
- package/dist/middlewares/fiori-tools-servestatic.js +117 -93
- package/dist/tasks/cf-deploy/index.js +6056 -1913
- package/dist/tasks/deploy/index.js +19858 -25041
- package/package.json +32 -26
- package/dist/templates/control-property-editor/app.css +0 -2
- package/dist/templates/control-property-editor/app.js +0 -175
- package/dist/templates/control-property-editor/editor.html +0 -23
- package/dist/templates/control-property-editor/favicon.ico +0 -0
- package/dist/templates/control-property-editor/ui5-adaptation.js +0 -2
- package/dist/templates/variants-management/WorkspaceConnector.js +0 -76
- package/dist/templates/variants-management/preview.html +0 -61
|
@@ -1979,7 +1979,7 @@ var require_send = __commonJS({
|
|
|
1979
1979
|
var Stream = require("stream");
|
|
1980
1980
|
var util = require("util");
|
|
1981
1981
|
var extname = path.extname;
|
|
1982
|
-
var
|
|
1982
|
+
var join2 = path.join;
|
|
1983
1983
|
var normalize = path.normalize;
|
|
1984
1984
|
var resolve = path.resolve;
|
|
1985
1985
|
var sep = path.sep;
|
|
@@ -2202,7 +2202,7 @@ var require_send = __commonJS({
|
|
|
2202
2202
|
return res;
|
|
2203
2203
|
}
|
|
2204
2204
|
parts = path2.split(sep);
|
|
2205
|
-
path2 = normalize(
|
|
2205
|
+
path2 = normalize(join2(root, path2));
|
|
2206
2206
|
} else {
|
|
2207
2207
|
if (UP_PATH_REGEXP.test(path2)) {
|
|
2208
2208
|
debug('malicious path "%s"', path2);
|
|
@@ -2343,7 +2343,7 @@ var require_send = __commonJS({
|
|
|
2343
2343
|
return self2.onStatError(err);
|
|
2344
2344
|
return self2.error(404);
|
|
2345
2345
|
}
|
|
2346
|
-
var p =
|
|
2346
|
+
var p = join2(path2, self2._index[i]);
|
|
2347
2347
|
debug('stat "%s"', p);
|
|
2348
2348
|
fs.stat(p, function(err2, stat) {
|
|
2349
2349
|
if (err2)
|
|
@@ -4410,9 +4410,9 @@ var require_cloneDeep = __commonJS({
|
|
|
4410
4410
|
}
|
|
4411
4411
|
});
|
|
4412
4412
|
|
|
4413
|
-
// node_modules/@sap-ux/logger/dist/types.js
|
|
4413
|
+
// ../../node_modules/@sap-ux/logger/dist/types.js
|
|
4414
4414
|
var require_types2 = __commonJS({
|
|
4415
|
-
"node_modules/@sap-ux/logger/dist/types.js"(exports2) {
|
|
4415
|
+
"../../node_modules/@sap-ux/logger/dist/types.js"(exports2) {
|
|
4416
4416
|
"use strict";
|
|
4417
4417
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
4418
4418
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -4432,6 +4432,7 @@ var require_types2 = __commonJS({
|
|
|
4432
4432
|
var Transport = class {
|
|
4433
4433
|
/**
|
|
4434
4434
|
* A utility copy method to make immutable, deep copies of objects
|
|
4435
|
+
*
|
|
4435
4436
|
* @param obj
|
|
4436
4437
|
* @returns a frozen deep clone of `obj`
|
|
4437
4438
|
*/
|
|
@@ -4800,7 +4801,7 @@ var require_buffer_list = __commonJS({
|
|
|
4800
4801
|
}
|
|
4801
4802
|
}, {
|
|
4802
4803
|
key: "join",
|
|
4803
|
-
value: function
|
|
4804
|
+
value: function join2(s) {
|
|
4804
4805
|
if (this.length === 0)
|
|
4805
4806
|
return "";
|
|
4806
4807
|
var p = this.head;
|
|
@@ -7332,9 +7333,9 @@ var require_winston_transport = __commonJS({
|
|
|
7332
7333
|
}
|
|
7333
7334
|
});
|
|
7334
7335
|
|
|
7335
|
-
// node_modules/@sap-ux/logger/dist/transports/transport.js
|
|
7336
|
+
// ../../node_modules/@sap-ux/logger/dist/transports/transport.js
|
|
7336
7337
|
var require_transport = __commonJS({
|
|
7337
|
-
"node_modules/@sap-ux/logger/dist/transports/transport.js"(exports2) {
|
|
7338
|
+
"../../node_modules/@sap-ux/logger/dist/transports/transport.js"(exports2) {
|
|
7338
7339
|
"use strict";
|
|
7339
7340
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
7340
7341
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -7419,9 +7420,9 @@ var require_transport = __commonJS({
|
|
|
7419
7420
|
}
|
|
7420
7421
|
});
|
|
7421
7422
|
|
|
7422
|
-
// node_modules/@sap-ux/logger/dist/transports/index.js
|
|
7423
|
+
// ../../node_modules/@sap-ux/logger/dist/transports/index.js
|
|
7423
7424
|
var require_transports = __commonJS({
|
|
7424
|
-
"node_modules/@sap-ux/logger/dist/transports/index.js"(exports2) {
|
|
7425
|
+
"../../node_modules/@sap-ux/logger/dist/transports/index.js"(exports2) {
|
|
7425
7426
|
"use strict";
|
|
7426
7427
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
7427
7428
|
if (k2 === void 0)
|
|
@@ -8685,7 +8686,7 @@ var require_safe_stable_stringify = __commonJS({
|
|
|
8685
8686
|
return circularValue;
|
|
8686
8687
|
}
|
|
8687
8688
|
let res = "";
|
|
8688
|
-
let
|
|
8689
|
+
let join2 = ",";
|
|
8689
8690
|
const originalIndentation = indentation;
|
|
8690
8691
|
if (Array.isArray(value)) {
|
|
8691
8692
|
if (value.length === 0) {
|
|
@@ -8699,7 +8700,7 @@ var require_safe_stable_stringify = __commonJS({
|
|
|
8699
8700
|
indentation += spacer;
|
|
8700
8701
|
res += `
|
|
8701
8702
|
${indentation}`;
|
|
8702
|
-
|
|
8703
|
+
join2 = `,
|
|
8703
8704
|
${indentation}`;
|
|
8704
8705
|
}
|
|
8705
8706
|
const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
|
|
@@ -8707,13 +8708,13 @@ ${indentation}`;
|
|
|
8707
8708
|
for (; i < maximumValuesToStringify - 1; i++) {
|
|
8708
8709
|
const tmp2 = stringifyFnReplacer(i, value, stack2, replacer, spacer, indentation);
|
|
8709
8710
|
res += tmp2 !== void 0 ? tmp2 : "null";
|
|
8710
|
-
res +=
|
|
8711
|
+
res += join2;
|
|
8711
8712
|
}
|
|
8712
8713
|
const tmp = stringifyFnReplacer(i, value, stack2, replacer, spacer, indentation);
|
|
8713
8714
|
res += tmp !== void 0 ? tmp : "null";
|
|
8714
8715
|
if (value.length - 1 > maximumBreadth) {
|
|
8715
8716
|
const removedKeys = value.length - maximumBreadth - 1;
|
|
8716
|
-
res += `${
|
|
8717
|
+
res += `${join2}"... ${getItemCount(removedKeys)} not stringified"`;
|
|
8717
8718
|
}
|
|
8718
8719
|
if (spacer !== "") {
|
|
8719
8720
|
res += `
|
|
@@ -8734,16 +8735,16 @@ ${originalIndentation}`;
|
|
|
8734
8735
|
let separator = "";
|
|
8735
8736
|
if (spacer !== "") {
|
|
8736
8737
|
indentation += spacer;
|
|
8737
|
-
|
|
8738
|
+
join2 = `,
|
|
8738
8739
|
${indentation}`;
|
|
8739
8740
|
whitespace = " ";
|
|
8740
8741
|
}
|
|
8741
8742
|
let maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth);
|
|
8742
8743
|
if (isTypedArrayWithEntries(value)) {
|
|
8743
|
-
res += stringifyTypedArray(value,
|
|
8744
|
+
res += stringifyTypedArray(value, join2, maximumBreadth);
|
|
8744
8745
|
keys = keys.slice(value.length);
|
|
8745
8746
|
maximumPropertiesToStringify -= value.length;
|
|
8746
|
-
separator =
|
|
8747
|
+
separator = join2;
|
|
8747
8748
|
}
|
|
8748
8749
|
if (deterministic) {
|
|
8749
8750
|
keys = insertSort(keys);
|
|
@@ -8754,13 +8755,13 @@ ${indentation}`;
|
|
|
8754
8755
|
const tmp = stringifyFnReplacer(key2, value, stack2, replacer, spacer, indentation);
|
|
8755
8756
|
if (tmp !== void 0) {
|
|
8756
8757
|
res += `${separator}"${strEscape(key2)}":${whitespace}${tmp}`;
|
|
8757
|
-
separator =
|
|
8758
|
+
separator = join2;
|
|
8758
8759
|
}
|
|
8759
8760
|
}
|
|
8760
8761
|
if (keyLength > maximumBreadth) {
|
|
8761
8762
|
const removedKeys = keyLength - maximumBreadth;
|
|
8762
8763
|
res += `${separator}"...":${whitespace}"${getItemCount(removedKeys)} not stringified"`;
|
|
8763
|
-
separator =
|
|
8764
|
+
separator = join2;
|
|
8764
8765
|
}
|
|
8765
8766
|
if (spacer !== "" && separator.length > 1) {
|
|
8766
8767
|
res = `
|
|
@@ -8794,7 +8795,7 @@ ${originalIndentation}`;
|
|
|
8794
8795
|
}
|
|
8795
8796
|
const originalIndentation = indentation;
|
|
8796
8797
|
let res = "";
|
|
8797
|
-
let
|
|
8798
|
+
let join2 = ",";
|
|
8798
8799
|
if (Array.isArray(value)) {
|
|
8799
8800
|
if (value.length === 0) {
|
|
8800
8801
|
return "[]";
|
|
@@ -8807,7 +8808,7 @@ ${originalIndentation}`;
|
|
|
8807
8808
|
indentation += spacer;
|
|
8808
8809
|
res += `
|
|
8809
8810
|
${indentation}`;
|
|
8810
|
-
|
|
8811
|
+
join2 = `,
|
|
8811
8812
|
${indentation}`;
|
|
8812
8813
|
}
|
|
8813
8814
|
const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
|
|
@@ -8815,13 +8816,13 @@ ${indentation}`;
|
|
|
8815
8816
|
for (; i < maximumValuesToStringify - 1; i++) {
|
|
8816
8817
|
const tmp2 = stringifyArrayReplacer(i, value[i], stack2, replacer, spacer, indentation);
|
|
8817
8818
|
res += tmp2 !== void 0 ? tmp2 : "null";
|
|
8818
|
-
res +=
|
|
8819
|
+
res += join2;
|
|
8819
8820
|
}
|
|
8820
8821
|
const tmp = stringifyArrayReplacer(i, value[i], stack2, replacer, spacer, indentation);
|
|
8821
8822
|
res += tmp !== void 0 ? tmp : "null";
|
|
8822
8823
|
if (value.length - 1 > maximumBreadth) {
|
|
8823
8824
|
const removedKeys = value.length - maximumBreadth - 1;
|
|
8824
|
-
res += `${
|
|
8825
|
+
res += `${join2}"... ${getItemCount(removedKeys)} not stringified"`;
|
|
8825
8826
|
}
|
|
8826
8827
|
if (spacer !== "") {
|
|
8827
8828
|
res += `
|
|
@@ -8837,7 +8838,7 @@ ${originalIndentation}`;
|
|
|
8837
8838
|
let whitespace = "";
|
|
8838
8839
|
if (spacer !== "") {
|
|
8839
8840
|
indentation += spacer;
|
|
8840
|
-
|
|
8841
|
+
join2 = `,
|
|
8841
8842
|
${indentation}`;
|
|
8842
8843
|
whitespace = " ";
|
|
8843
8844
|
}
|
|
@@ -8846,7 +8847,7 @@ ${indentation}`;
|
|
|
8846
8847
|
const tmp = stringifyArrayReplacer(key2, value[key2], stack2, replacer, spacer, indentation);
|
|
8847
8848
|
if (tmp !== void 0) {
|
|
8848
8849
|
res += `${separator}"${strEscape(key2)}":${whitespace}${tmp}`;
|
|
8849
|
-
separator =
|
|
8850
|
+
separator = join2;
|
|
8850
8851
|
}
|
|
8851
8852
|
}
|
|
8852
8853
|
if (spacer !== "" && separator.length > 1) {
|
|
@@ -8897,20 +8898,20 @@ ${originalIndentation}`;
|
|
|
8897
8898
|
indentation += spacer;
|
|
8898
8899
|
let res2 = `
|
|
8899
8900
|
${indentation}`;
|
|
8900
|
-
const
|
|
8901
|
+
const join3 = `,
|
|
8901
8902
|
${indentation}`;
|
|
8902
8903
|
const maximumValuesToStringify = Math.min(value.length, maximumBreadth);
|
|
8903
8904
|
let i = 0;
|
|
8904
8905
|
for (; i < maximumValuesToStringify - 1; i++) {
|
|
8905
8906
|
const tmp2 = stringifyIndent(i, value[i], stack2, spacer, indentation);
|
|
8906
8907
|
res2 += tmp2 !== void 0 ? tmp2 : "null";
|
|
8907
|
-
res2 +=
|
|
8908
|
+
res2 += join3;
|
|
8908
8909
|
}
|
|
8909
8910
|
const tmp = stringifyIndent(i, value[i], stack2, spacer, indentation);
|
|
8910
8911
|
res2 += tmp !== void 0 ? tmp : "null";
|
|
8911
8912
|
if (value.length - 1 > maximumBreadth) {
|
|
8912
8913
|
const removedKeys = value.length - maximumBreadth - 1;
|
|
8913
|
-
res2 += `${
|
|
8914
|
+
res2 += `${join3}"... ${getItemCount(removedKeys)} not stringified"`;
|
|
8914
8915
|
}
|
|
8915
8916
|
res2 += `
|
|
8916
8917
|
${originalIndentation}`;
|
|
@@ -8926,16 +8927,16 @@ ${originalIndentation}`;
|
|
|
8926
8927
|
return '"[Object]"';
|
|
8927
8928
|
}
|
|
8928
8929
|
indentation += spacer;
|
|
8929
|
-
const
|
|
8930
|
+
const join2 = `,
|
|
8930
8931
|
${indentation}`;
|
|
8931
8932
|
let res = "";
|
|
8932
8933
|
let separator = "";
|
|
8933
8934
|
let maximumPropertiesToStringify = Math.min(keyLength, maximumBreadth);
|
|
8934
8935
|
if (isTypedArrayWithEntries(value)) {
|
|
8935
|
-
res += stringifyTypedArray(value,
|
|
8936
|
+
res += stringifyTypedArray(value, join2, maximumBreadth);
|
|
8936
8937
|
keys = keys.slice(value.length);
|
|
8937
8938
|
maximumPropertiesToStringify -= value.length;
|
|
8938
|
-
separator =
|
|
8939
|
+
separator = join2;
|
|
8939
8940
|
}
|
|
8940
8941
|
if (deterministic) {
|
|
8941
8942
|
keys = insertSort(keys);
|
|
@@ -8946,13 +8947,13 @@ ${indentation}`;
|
|
|
8946
8947
|
const tmp = stringifyIndent(key2, value[key2], stack2, spacer, indentation);
|
|
8947
8948
|
if (tmp !== void 0) {
|
|
8948
8949
|
res += `${separator}"${strEscape(key2)}": ${tmp}`;
|
|
8949
|
-
separator =
|
|
8950
|
+
separator = join2;
|
|
8950
8951
|
}
|
|
8951
8952
|
}
|
|
8952
8953
|
if (keyLength > maximumBreadth) {
|
|
8953
8954
|
const removedKeys = keyLength - maximumBreadth;
|
|
8954
8955
|
res += `${separator}"...": "${getItemCount(removedKeys)} not stringified"`;
|
|
8955
|
-
separator =
|
|
8956
|
+
separator = join2;
|
|
8956
8957
|
}
|
|
8957
8958
|
if (separator !== "") {
|
|
8958
8959
|
res = `
|
|
@@ -10896,7 +10897,7 @@ var require_buffer_list2 = __commonJS({
|
|
|
10896
10897
|
}
|
|
10897
10898
|
}, {
|
|
10898
10899
|
key: "join",
|
|
10899
|
-
value: function
|
|
10900
|
+
value: function join2(s) {
|
|
10900
10901
|
if (this.length === 0)
|
|
10901
10902
|
return "";
|
|
10902
10903
|
var p = this.head;
|
|
@@ -18046,9 +18047,9 @@ var require_winston = __commonJS({
|
|
|
18046
18047
|
}
|
|
18047
18048
|
});
|
|
18048
18049
|
|
|
18049
|
-
// node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js
|
|
18050
|
+
// ../../node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js
|
|
18050
18051
|
var require_null_transport = __commonJS({
|
|
18051
|
-
"node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js"(exports2) {
|
|
18052
|
+
"../../node_modules/@sap-ux/logger/dist/winston-logger/null-transport.js"(exports2) {
|
|
18052
18053
|
"use strict";
|
|
18053
18054
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
18054
18055
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -18065,9 +18066,9 @@ var require_null_transport = __commonJS({
|
|
|
18065
18066
|
}
|
|
18066
18067
|
});
|
|
18067
18068
|
|
|
18068
|
-
// node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js
|
|
18069
|
+
// ../../node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js
|
|
18069
18070
|
var require_vscode_output_channel_transport = __commonJS({
|
|
18070
|
-
"node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js"(exports2) {
|
|
18071
|
+
"../../node_modules/@sap-ux/logger/dist/winston-logger/vscode-output-channel-transport.js"(exports2) {
|
|
18071
18072
|
"use strict";
|
|
18072
18073
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
18073
18074
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
@@ -19153,9 +19154,9 @@ var require_supports_color = __commonJS({
|
|
|
19153
19154
|
}
|
|
19154
19155
|
});
|
|
19155
19156
|
|
|
19156
|
-
// node_modules/chalk/source/util.js
|
|
19157
|
+
// ../../node_modules/@sap-ux/logger/node_modules/chalk/source/util.js
|
|
19157
19158
|
var require_util = __commonJS({
|
|
19158
|
-
"node_modules/chalk/source/util.js"(exports2, module2) {
|
|
19159
|
+
"../../node_modules/@sap-ux/logger/node_modules/chalk/source/util.js"(exports2, module2) {
|
|
19159
19160
|
"use strict";
|
|
19160
19161
|
var stringReplaceAll = (string, substring, replacer) => {
|
|
19161
19162
|
let index = string.indexOf(substring);
|
|
@@ -19192,9 +19193,9 @@ var require_util = __commonJS({
|
|
|
19192
19193
|
}
|
|
19193
19194
|
});
|
|
19194
19195
|
|
|
19195
|
-
// node_modules/chalk/source/templates.js
|
|
19196
|
+
// ../../node_modules/@sap-ux/logger/node_modules/chalk/source/templates.js
|
|
19196
19197
|
var require_templates = __commonJS({
|
|
19197
|
-
"node_modules/chalk/source/templates.js"(exports2, module2) {
|
|
19198
|
+
"../../node_modules/@sap-ux/logger/node_modules/chalk/source/templates.js"(exports2, module2) {
|
|
19198
19199
|
"use strict";
|
|
19199
19200
|
var TEMPLATE_REGEX = /(?:\\(u(?:[a-f\d]{4}|\{[a-f\d]{1,6}\})|x[a-f\d]{2}|.))|(?:\{(~)?(\w+(?:\([^)]*\))?(?:\.\w+(?:\([^)]*\))?)*)(?:[ \t]|(?=\r?\n)))|(\})|((?:.|[\r\n\f])+?)/gi;
|
|
19200
19201
|
var STYLE_REGEX = /(?:^|\.)(\w+)(?:\(([^)]*)\))?/g;
|
|
@@ -19306,9 +19307,9 @@ var require_templates = __commonJS({
|
|
|
19306
19307
|
}
|
|
19307
19308
|
});
|
|
19308
19309
|
|
|
19309
|
-
// node_modules/chalk/source/index.js
|
|
19310
|
+
// ../../node_modules/@sap-ux/logger/node_modules/chalk/source/index.js
|
|
19310
19311
|
var require_source = __commonJS({
|
|
19311
|
-
"node_modules/chalk/source/index.js"(exports2, module2) {
|
|
19312
|
+
"../../node_modules/@sap-ux/logger/node_modules/chalk/source/index.js"(exports2, module2) {
|
|
19312
19313
|
"use strict";
|
|
19313
19314
|
var ansiStyles = require_ansi_styles();
|
|
19314
19315
|
var { stdout: stdoutColor, stderr: stderrColor } = require_supports_color();
|
|
@@ -19484,9 +19485,9 @@ var require_source = __commonJS({
|
|
|
19484
19485
|
}
|
|
19485
19486
|
});
|
|
19486
19487
|
|
|
19487
|
-
// node_modules/@sap-ux/logger/dist/winston-logger/adapter.js
|
|
19488
|
+
// ../../node_modules/@sap-ux/logger/dist/winston-logger/adapter.js
|
|
19488
19489
|
var require_adapter = __commonJS({
|
|
19489
|
-
"node_modules/@sap-ux/logger/dist/winston-logger/adapter.js"(exports2) {
|
|
19490
|
+
"../../node_modules/@sap-ux/logger/dist/winston-logger/adapter.js"(exports2) {
|
|
19490
19491
|
"use strict";
|
|
19491
19492
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
19492
19493
|
if (k2 === void 0)
|
|
@@ -19621,9 +19622,9 @@ ${level} ${chalk_1.default.magenta(label)} `);
|
|
|
19621
19622
|
}
|
|
19622
19623
|
});
|
|
19623
19624
|
|
|
19624
|
-
// node_modules/@sap-ux/logger/dist/winston-logger/utils.js
|
|
19625
|
+
// ../../node_modules/@sap-ux/logger/dist/winston-logger/utils.js
|
|
19625
19626
|
var require_utils = __commonJS({
|
|
19626
|
-
"node_modules/@sap-ux/logger/dist/winston-logger/utils.js"(exports2) {
|
|
19627
|
+
"../../node_modules/@sap-ux/logger/dist/winston-logger/utils.js"(exports2) {
|
|
19627
19628
|
"use strict";
|
|
19628
19629
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19629
19630
|
exports2.nextColor = void 0;
|
|
@@ -19643,9 +19644,9 @@ var require_utils = __commonJS({
|
|
|
19643
19644
|
}
|
|
19644
19645
|
});
|
|
19645
19646
|
|
|
19646
|
-
// node_modules/@sap-ux/logger/dist/winston-logger/logger.js
|
|
19647
|
+
// ../../node_modules/@sap-ux/logger/dist/winston-logger/logger.js
|
|
19647
19648
|
var require_logger2 = __commonJS({
|
|
19648
|
-
"node_modules/@sap-ux/logger/dist/winston-logger/logger.js"(exports2) {
|
|
19649
|
+
"../../node_modules/@sap-ux/logger/dist/winston-logger/logger.js"(exports2) {
|
|
19649
19650
|
"use strict";
|
|
19650
19651
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
19651
19652
|
if (k2 === void 0)
|
|
@@ -19789,9 +19790,9 @@ var require_logger2 = __commonJS({
|
|
|
19789
19790
|
}
|
|
19790
19791
|
});
|
|
19791
19792
|
|
|
19792
|
-
// node_modules/@sap-ux/logger/dist/winston-logger/index.js
|
|
19793
|
+
// ../../node_modules/@sap-ux/logger/dist/winston-logger/index.js
|
|
19793
19794
|
var require_winston_logger = __commonJS({
|
|
19794
|
-
"node_modules/@sap-ux/logger/dist/winston-logger/index.js"(exports2) {
|
|
19795
|
+
"../../node_modules/@sap-ux/logger/dist/winston-logger/index.js"(exports2) {
|
|
19795
19796
|
"use strict";
|
|
19796
19797
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
19797
19798
|
exports2.WinstonLogger = void 0;
|
|
@@ -19802,9 +19803,9 @@ var require_winston_logger = __commonJS({
|
|
|
19802
19803
|
}
|
|
19803
19804
|
});
|
|
19804
19805
|
|
|
19805
|
-
// node_modules/@sap-ux/logger/dist/index.js
|
|
19806
|
+
// ../../node_modules/@sap-ux/logger/dist/index.js
|
|
19806
19807
|
var require_dist = __commonJS({
|
|
19807
|
-
"node_modules/@sap-ux/logger/dist/index.js"(exports2) {
|
|
19808
|
+
"../../node_modules/@sap-ux/logger/dist/index.js"(exports2) {
|
|
19808
19809
|
"use strict";
|
|
19809
19810
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
19810
19811
|
if (k2 === void 0)
|
|
@@ -19841,17 +19842,38 @@ var require_dist = __commonJS({
|
|
|
19841
19842
|
var import_serve_static = __toESM(require_serve_static());
|
|
19842
19843
|
|
|
19843
19844
|
// ../../node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
19844
|
-
function _typeof(
|
|
19845
|
+
function _typeof(o) {
|
|
19845
19846
|
"@babel/helpers - typeof";
|
|
19846
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(
|
|
19847
|
-
return typeof
|
|
19848
|
-
} : function(
|
|
19849
|
-
return
|
|
19850
|
-
}, _typeof(
|
|
19847
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o2) {
|
|
19848
|
+
return typeof o2;
|
|
19849
|
+
} : function(o2) {
|
|
19850
|
+
return o2 && "function" == typeof Symbol && o2.constructor === Symbol && o2 !== Symbol.prototype ? "symbol" : typeof o2;
|
|
19851
|
+
}, _typeof(o);
|
|
19852
|
+
}
|
|
19853
|
+
|
|
19854
|
+
// ../../node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
19855
|
+
function _toPrimitive(input, hint) {
|
|
19856
|
+
if (_typeof(input) !== "object" || input === null)
|
|
19857
|
+
return input;
|
|
19858
|
+
var prim = input[Symbol.toPrimitive];
|
|
19859
|
+
if (prim !== void 0) {
|
|
19860
|
+
var res = prim.call(input, hint || "default");
|
|
19861
|
+
if (_typeof(res) !== "object")
|
|
19862
|
+
return res;
|
|
19863
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
19864
|
+
}
|
|
19865
|
+
return (hint === "string" ? String : Number)(input);
|
|
19866
|
+
}
|
|
19867
|
+
|
|
19868
|
+
// ../../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
19869
|
+
function _toPropertyKey(arg) {
|
|
19870
|
+
var key = _toPrimitive(arg, "string");
|
|
19871
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
19851
19872
|
}
|
|
19852
19873
|
|
|
19853
19874
|
// ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
19854
19875
|
function _defineProperty(obj, key, value) {
|
|
19876
|
+
key = _toPropertyKey(key);
|
|
19855
19877
|
if (key in obj) {
|
|
19856
19878
|
Object.defineProperty(obj, key, {
|
|
19857
19879
|
value,
|
|
@@ -19897,7 +19919,7 @@ function _defineProperties(target, props) {
|
|
|
19897
19919
|
descriptor.configurable = true;
|
|
19898
19920
|
if ("value" in descriptor)
|
|
19899
19921
|
descriptor.writable = true;
|
|
19900
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
19922
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
19901
19923
|
}
|
|
19902
19924
|
}
|
|
19903
19925
|
function _createClass(Constructor, protoProps, staticProps) {
|
|
@@ -19931,7 +19953,7 @@ function _possibleConstructorReturn(self2, call) {
|
|
|
19931
19953
|
|
|
19932
19954
|
// ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
|
|
19933
19955
|
function _getPrototypeOf(o) {
|
|
19934
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf2(o2) {
|
|
19956
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
|
|
19935
19957
|
return o2.__proto__ || Object.getPrototypeOf(o2);
|
|
19936
19958
|
};
|
|
19937
19959
|
return _getPrototypeOf(o);
|
|
@@ -19939,7 +19961,7 @@ function _getPrototypeOf(o) {
|
|
|
19939
19961
|
|
|
19940
19962
|
// ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
|
|
19941
19963
|
function _setPrototypeOf(o, p) {
|
|
19942
|
-
_setPrototypeOf = Object.setPrototypeOf
|
|
19964
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
|
|
19943
19965
|
o2.__proto__ = p2;
|
|
19944
19966
|
return o2;
|
|
19945
19967
|
};
|
|
@@ -19969,9 +19991,8 @@ function _inherits(subClass, superClass) {
|
|
|
19969
19991
|
function _arrayLikeToArray(arr, len) {
|
|
19970
19992
|
if (len == null || len > arr.length)
|
|
19971
19993
|
len = arr.length;
|
|
19972
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
19994
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++)
|
|
19973
19995
|
arr2[i] = arr[i];
|
|
19974
|
-
}
|
|
19975
19996
|
return arr2;
|
|
19976
19997
|
}
|
|
19977
19998
|
|
|
@@ -20019,33 +20040,31 @@ function _arrayWithHoles(arr) {
|
|
|
20019
20040
|
}
|
|
20020
20041
|
|
|
20021
20042
|
// ../../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js
|
|
20022
|
-
function _iterableToArrayLimit(
|
|
20023
|
-
var
|
|
20024
|
-
if (
|
|
20025
|
-
|
|
20026
|
-
var _arr = [];
|
|
20027
|
-
var _n = true;
|
|
20028
|
-
var _d = false;
|
|
20029
|
-
var _s, _e;
|
|
20030
|
-
try {
|
|
20031
|
-
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
|
20032
|
-
_arr.push(_s.value);
|
|
20033
|
-
if (i && _arr.length === i)
|
|
20034
|
-
break;
|
|
20035
|
-
}
|
|
20036
|
-
} catch (err) {
|
|
20037
|
-
_d = true;
|
|
20038
|
-
_e = err;
|
|
20039
|
-
} finally {
|
|
20043
|
+
function _iterableToArrayLimit(r, l) {
|
|
20044
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
20045
|
+
if (null != t) {
|
|
20046
|
+
var e, n, i, u, a = [], f = true, o = false;
|
|
20040
20047
|
try {
|
|
20041
|
-
if (
|
|
20042
|
-
|
|
20048
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
20049
|
+
if (Object(t) !== t)
|
|
20050
|
+
return;
|
|
20051
|
+
f = false;
|
|
20052
|
+
} else
|
|
20053
|
+
for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = true)
|
|
20054
|
+
;
|
|
20055
|
+
} catch (r2) {
|
|
20056
|
+
o = true, n = r2;
|
|
20043
20057
|
} finally {
|
|
20044
|
-
|
|
20045
|
-
|
|
20058
|
+
try {
|
|
20059
|
+
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u))
|
|
20060
|
+
return;
|
|
20061
|
+
} finally {
|
|
20062
|
+
if (o)
|
|
20063
|
+
throw n;
|
|
20064
|
+
}
|
|
20046
20065
|
}
|
|
20066
|
+
return a;
|
|
20047
20067
|
}
|
|
20048
|
-
return _arr;
|
|
20049
20068
|
}
|
|
20050
20069
|
|
|
20051
20070
|
// ../../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js
|
|
@@ -22159,11 +22178,13 @@ async function initI18n(language = "en") {
|
|
|
22159
22178
|
// src/middlewares/servestatic/fiori-tools-servestatic.ts
|
|
22160
22179
|
var import_express = __toESM(require("express"));
|
|
22161
22180
|
var import_logger = __toESM(require_dist());
|
|
22162
|
-
|
|
22181
|
+
var import_path = require("path");
|
|
22182
|
+
module.exports = ({ options, middlewareUtil }) => {
|
|
22163
22183
|
initI18n();
|
|
22164
22184
|
const log3 = new import_logger.ToolsLogger({
|
|
22165
22185
|
transports: [new import_logger.UI5ToolingTransport({ moduleName: "fiori-tools-servestatic" })]
|
|
22166
22186
|
});
|
|
22187
|
+
const rootPath = middlewareUtil.getProject().getRootPath();
|
|
22167
22188
|
const router = import_express.default.Router();
|
|
22168
22189
|
const configuration = options.configuration;
|
|
22169
22190
|
const paths = configuration.paths;
|
|
@@ -22181,12 +22202,15 @@ module.exports = ({ options }) => {
|
|
|
22181
22202
|
})
|
|
22182
22203
|
);
|
|
22183
22204
|
const serveStaticOptions = Object.assign({}, defaultOptions, overridenOptions);
|
|
22205
|
+
let srcRelativeCwd;
|
|
22206
|
+
if (!(0, import_path.isAbsolute)(config.src)) {
|
|
22207
|
+
const srcAbsolutePath = (0, import_path.join)(rootPath, config.src);
|
|
22208
|
+
srcRelativeCwd = (0, import_path.relative)(process.cwd(), srcAbsolutePath);
|
|
22209
|
+
}
|
|
22184
22210
|
log3.info(
|
|
22185
|
-
`Serving path ${config.path} locally from ${config.src} with configuration ${JSON.stringify(
|
|
22186
|
-
serveStaticOptions
|
|
22187
|
-
)}`
|
|
22211
|
+
`Serving path ${config.path} locally from ${srcRelativeCwd ? srcRelativeCwd : config.src} with configuration ${JSON.stringify(serveStaticOptions)}`
|
|
22188
22212
|
);
|
|
22189
|
-
router.use(config.path, (0, import_serve_static.default)(config.src, serveStaticOptions));
|
|
22213
|
+
router.use(config.path, (0, import_serve_static.default)(srcRelativeCwd ? srcRelativeCwd : config.src, serveStaticOptions));
|
|
22190
22214
|
}
|
|
22191
22215
|
return router;
|
|
22192
22216
|
};
|