@sap/ux-ui5-tooling 1.17.5 → 1.18.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/CHANGELOG.md +28 -0
- package/README.md +1 -1
- package/dist/cli/index.js +490 -400
- package/dist/middlewares/fiori-tools-appreload.js +68 -49
- package/dist/middlewares/fiori-tools-preview.js +445 -367
- package/dist/middlewares/fiori-tools-proxy.js +487 -409
- package/dist/middlewares/fiori-tools-servestatic.js +68 -49
- package/dist/tasks/cf-deploy/index.js +254 -177
- package/dist/tasks/deploy/index.js +526 -436
- package/package.json +19 -20
|
@@ -9687,7 +9687,7 @@ var require_texts = __commonJS({
|
|
|
9687
9687
|
"../../node_modules/@sap-ux/yaml/dist/texts/index.js"(exports2) {
|
|
9688
9688
|
"use strict";
|
|
9689
9689
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9690
|
-
exports2.interpolate =
|
|
9690
|
+
exports2.interpolate = interpolate;
|
|
9691
9691
|
function interpolate(template, replacements) {
|
|
9692
9692
|
try {
|
|
9693
9693
|
return !replacements ? template : template == null ? void 0 : template.replace(/{{-?([^{}]*)}}/g, (match, captureGroup1) => {
|
|
@@ -9699,7 +9699,6 @@ var require_texts = __commonJS({
|
|
|
9699
9699
|
return "";
|
|
9700
9700
|
}
|
|
9701
9701
|
}
|
|
9702
|
-
exports2.interpolate = interpolate;
|
|
9703
9702
|
}
|
|
9704
9703
|
});
|
|
9705
9704
|
|
|
@@ -9725,20 +9724,31 @@ var require_yaml_document = __commonJS({
|
|
|
9725
9724
|
} : function(o, v) {
|
|
9726
9725
|
o["default"] = v;
|
|
9727
9726
|
});
|
|
9728
|
-
var __importStar = exports2 && exports2.__importStar || function(
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9733
|
-
|
|
9734
|
-
|
|
9735
|
-
|
|
9736
|
-
|
|
9727
|
+
var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ function() {
|
|
9728
|
+
var ownKeys = function(o) {
|
|
9729
|
+
ownKeys = Object.getOwnPropertyNames || function(o2) {
|
|
9730
|
+
var ar = [];
|
|
9731
|
+
for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
|
|
9732
|
+
return ar;
|
|
9733
|
+
};
|
|
9734
|
+
return ownKeys(o);
|
|
9735
|
+
};
|
|
9736
|
+
return function(mod) {
|
|
9737
|
+
if (mod && mod.__esModule) return mod;
|
|
9738
|
+
var result2 = {};
|
|
9739
|
+
if (mod != null) {
|
|
9740
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result2, mod, k[i]);
|
|
9741
|
+
}
|
|
9742
|
+
__setModuleDefault(result2, mod);
|
|
9743
|
+
return result2;
|
|
9744
|
+
};
|
|
9745
|
+
}();
|
|
9737
9746
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
9738
9747
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
9739
9748
|
};
|
|
9740
9749
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
9741
|
-
exports2.YamlDocument =
|
|
9750
|
+
exports2.YamlDocument = void 0;
|
|
9751
|
+
exports2.yamlDocumentToYamlString = yamlDocumentToYamlString;
|
|
9742
9752
|
var yaml_1 = __importStar(require_dist());
|
|
9743
9753
|
var merge_1 = __importDefault(require_merge());
|
|
9744
9754
|
var errors_1 = require_errors2();
|
|
@@ -9746,7 +9756,6 @@ var require_yaml_document = __commonJS({
|
|
|
9746
9756
|
function yamlDocumentToYamlString(yamlDocument) {
|
|
9747
9757
|
return yaml_1.default.stringify(yamlDocument);
|
|
9748
9758
|
}
|
|
9749
|
-
exports2.yamlDocumentToYamlString = yamlDocumentToYamlString;
|
|
9750
9759
|
var YamlDocument = class _YamlDocument {
|
|
9751
9760
|
documents;
|
|
9752
9761
|
/**
|
|
@@ -19667,26 +19676,34 @@ var require_ui5config = __commonJS({
|
|
|
19667
19676
|
return this;
|
|
19668
19677
|
}
|
|
19669
19678
|
/**
|
|
19670
|
-
*
|
|
19679
|
+
* Returns a fiori-tools-proxy middleware YAML configuration.
|
|
19671
19680
|
*
|
|
19672
|
-
* @
|
|
19673
|
-
* @param ignoreCertError if true some certificate errors are ignored
|
|
19674
|
-
* @returns {UI5Config} the UI5Config instance
|
|
19681
|
+
* @returns {unknown} The fiori-tools-proxy middleware configuration
|
|
19675
19682
|
* @memberof UI5Config
|
|
19676
19683
|
*/
|
|
19677
|
-
|
|
19684
|
+
getFioriToolsProxyMiddlewareConfiguration() {
|
|
19678
19685
|
const middlewareList = this.document.getSequence({ path: "server.customMiddleware" });
|
|
19679
19686
|
const proxyMiddleware = this.document.findItem(middlewareList, (item) => item.name === constants_1.fioriToolsProxy);
|
|
19680
19687
|
if (!proxyMiddleware) {
|
|
19681
19688
|
throw new Error("Could not find fiori-tools-proxy");
|
|
19682
19689
|
}
|
|
19683
|
-
|
|
19684
|
-
const proxyMiddlewareYamlContent = this.findCustomMiddleware(constants_1.fioriToolsProxy);
|
|
19685
|
-
const proxyMiddlewareConfig = proxyMiddlewareYamlContent == null ? void 0 : proxyMiddlewareYamlContent.configuration;
|
|
19686
|
-
const configuration = this.document.getMap({
|
|
19690
|
+
return this.document.getMap({
|
|
19687
19691
|
start: proxyMiddleware,
|
|
19688
19692
|
path: "configuration"
|
|
19689
19693
|
});
|
|
19694
|
+
}
|
|
19695
|
+
/**
|
|
19696
|
+
* Adds a backend configuration to an existing fiori-tools-proxy middleware keeping any existing 'fiori-tools-proxy' backend configurations. If the config does not contain a fiori-tools-proxy middleware, an error is thrown.
|
|
19697
|
+
*
|
|
19698
|
+
* @param backend config of backend that is to be proxied
|
|
19699
|
+
* @param ignoreCertError if true some certificate errors are ignored
|
|
19700
|
+
* @returns {UI5Config} the UI5Config instance
|
|
19701
|
+
* @memberof UI5Config
|
|
19702
|
+
*/
|
|
19703
|
+
addBackendToFioriToolsProxydMiddleware(backend, ignoreCertError = false) {
|
|
19704
|
+
const configuration = this.getFioriToolsProxyMiddlewareConfiguration();
|
|
19705
|
+
const proxyMiddlewareConfig = configuration.toJSON();
|
|
19706
|
+
const comments = (0, middlewares_1.getBackendComments)(backend);
|
|
19690
19707
|
const backendNode = this.document.createNode({
|
|
19691
19708
|
value: backend,
|
|
19692
19709
|
comments
|
|
@@ -19708,6 +19725,30 @@ var require_ui5config = __commonJS({
|
|
|
19708
19725
|
}
|
|
19709
19726
|
return this;
|
|
19710
19727
|
}
|
|
19728
|
+
/**
|
|
19729
|
+
* Updates backend configuration to an existing fiori-tools-proxy middleware that matches path. If the config does not contain a fiori-tools-proxy middleware, an error is thrown.
|
|
19730
|
+
*
|
|
19731
|
+
* @param backend config of backend that is to be proxied
|
|
19732
|
+
* @returns {UI5Config} the UI5Config instance
|
|
19733
|
+
* @memberof UI5Config
|
|
19734
|
+
*/
|
|
19735
|
+
updateBackendToFioriToolsProxydMiddleware(backend) {
|
|
19736
|
+
const configuration = this.getFioriToolsProxyMiddlewareConfiguration();
|
|
19737
|
+
const proxyMiddlewareConfig = configuration.toJSON();
|
|
19738
|
+
const comments = (0, middlewares_1.getBackendComments)(backend);
|
|
19739
|
+
const backendNode = this.document.createNode({
|
|
19740
|
+
value: backend,
|
|
19741
|
+
comments
|
|
19742
|
+
});
|
|
19743
|
+
if (proxyMiddlewareConfig == null ? void 0 : proxyMiddlewareConfig.backend) {
|
|
19744
|
+
const matchingBackendIndex = proxyMiddlewareConfig == null ? void 0 : proxyMiddlewareConfig.backend.findIndex((existingBackend) => existingBackend.path && existingBackend.path === backend.path);
|
|
19745
|
+
if (matchingBackendIndex !== -1) {
|
|
19746
|
+
const backendConfigs = this.document.getSequence({ start: configuration, path: "backend" });
|
|
19747
|
+
backendConfigs.set(matchingBackendIndex, backendNode);
|
|
19748
|
+
}
|
|
19749
|
+
}
|
|
19750
|
+
return this;
|
|
19751
|
+
}
|
|
19711
19752
|
/**
|
|
19712
19753
|
* Removes a backend configuration from an existing fiori-tools-proxy middleware backend configurations. If the config does not contain a fiori-tools-proxy middleware, an error is thrown.
|
|
19713
19754
|
*
|
|
@@ -27556,9 +27597,9 @@ var require_merge22 = __commonJS({
|
|
|
27556
27597
|
}
|
|
27557
27598
|
});
|
|
27558
27599
|
|
|
27559
|
-
// ../../node_modules/
|
|
27600
|
+
// ../../node_modules/fast-glob/out/utils/array.js
|
|
27560
27601
|
var require_array = __commonJS({
|
|
27561
|
-
"../../node_modules/
|
|
27602
|
+
"../../node_modules/fast-glob/out/utils/array.js"(exports2) {
|
|
27562
27603
|
"use strict";
|
|
27563
27604
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
27564
27605
|
exports2.splitWhen = exports2.flatten = void 0;
|
|
@@ -27583,9 +27624,9 @@ var require_array = __commonJS({
|
|
|
27583
27624
|
}
|
|
27584
27625
|
});
|
|
27585
27626
|
|
|
27586
|
-
// ../../node_modules/
|
|
27627
|
+
// ../../node_modules/fast-glob/out/utils/errno.js
|
|
27587
27628
|
var require_errno = __commonJS({
|
|
27588
|
-
"../../node_modules/
|
|
27629
|
+
"../../node_modules/fast-glob/out/utils/errno.js"(exports2) {
|
|
27589
27630
|
"use strict";
|
|
27590
27631
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
27591
27632
|
exports2.isEnoentCodeError = void 0;
|
|
@@ -27596,9 +27637,9 @@ var require_errno = __commonJS({
|
|
|
27596
27637
|
}
|
|
27597
27638
|
});
|
|
27598
27639
|
|
|
27599
|
-
// ../../node_modules/
|
|
27640
|
+
// ../../node_modules/fast-glob/out/utils/fs.js
|
|
27600
27641
|
var require_fs = __commonJS({
|
|
27601
|
-
"../../node_modules/
|
|
27642
|
+
"../../node_modules/fast-glob/out/utils/fs.js"(exports2) {
|
|
27602
27643
|
"use strict";
|
|
27603
27644
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
27604
27645
|
exports2.createDirentFromStats = void 0;
|
|
@@ -27621,9 +27662,9 @@ var require_fs = __commonJS({
|
|
|
27621
27662
|
}
|
|
27622
27663
|
});
|
|
27623
27664
|
|
|
27624
|
-
// ../../node_modules/
|
|
27665
|
+
// ../../node_modules/fast-glob/out/utils/path.js
|
|
27625
27666
|
var require_path = __commonJS({
|
|
27626
|
-
"../../node_modules/
|
|
27667
|
+
"../../node_modules/fast-glob/out/utils/path.js"(exports2) {
|
|
27627
27668
|
"use strict";
|
|
27628
27669
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
27629
27670
|
exports2.convertPosixPathToPattern = exports2.convertWindowsPathToPattern = exports2.convertPathToPattern = exports2.escapePosixPath = exports2.escapeWindowsPath = exports2.escape = exports2.removeLeadingDotSegment = exports2.makeAbsolute = exports2.unixify = void 0;
|
|
@@ -30633,9 +30674,9 @@ var require_micromatch = __commonJS({
|
|
|
30633
30674
|
}
|
|
30634
30675
|
});
|
|
30635
30676
|
|
|
30636
|
-
// ../../node_modules/
|
|
30677
|
+
// ../../node_modules/fast-glob/out/utils/pattern.js
|
|
30637
30678
|
var require_pattern2 = __commonJS({
|
|
30638
|
-
"../../node_modules/
|
|
30679
|
+
"../../node_modules/fast-glob/out/utils/pattern.js"(exports2) {
|
|
30639
30680
|
"use strict";
|
|
30640
30681
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
30641
30682
|
exports2.isAbsolute = exports2.partitionAbsoluteAndRelative = exports2.removeDuplicateSlashes = exports2.matchAny = exports2.convertPatternsToRe = exports2.makeRe = exports2.getPatternParts = exports2.expandBraceExpansion = exports2.expandPatternsWithBraceExpansion = exports2.isAffectDepthOfReadingPattern = exports2.endsWithSlashGlobStar = exports2.hasGlobStar = exports2.getBaseDirectory = exports2.isPatternRelatedToParentDirectory = exports2.getPatternsOutsideCurrentDirectory = exports2.getPatternsInsideCurrentDirectory = exports2.getPositivePatterns = exports2.getNegativePatterns = exports2.isPositivePattern = exports2.isNegativePattern = exports2.convertToNegativePattern = exports2.convertToPositivePattern = exports2.isDynamicPattern = exports2.isStaticPattern = void 0;
|
|
@@ -30798,9 +30839,9 @@ var require_pattern2 = __commonJS({
|
|
|
30798
30839
|
}
|
|
30799
30840
|
});
|
|
30800
30841
|
|
|
30801
|
-
// ../../node_modules/
|
|
30842
|
+
// ../../node_modules/fast-glob/out/utils/stream.js
|
|
30802
30843
|
var require_stream2 = __commonJS({
|
|
30803
|
-
"../../node_modules/
|
|
30844
|
+
"../../node_modules/fast-glob/out/utils/stream.js"(exports2) {
|
|
30804
30845
|
"use strict";
|
|
30805
30846
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
30806
30847
|
exports2.merge = void 0;
|
|
@@ -30821,9 +30862,9 @@ var require_stream2 = __commonJS({
|
|
|
30821
30862
|
}
|
|
30822
30863
|
});
|
|
30823
30864
|
|
|
30824
|
-
// ../../node_modules/
|
|
30865
|
+
// ../../node_modules/fast-glob/out/utils/string.js
|
|
30825
30866
|
var require_string2 = __commonJS({
|
|
30826
|
-
"../../node_modules/
|
|
30867
|
+
"../../node_modules/fast-glob/out/utils/string.js"(exports2) {
|
|
30827
30868
|
"use strict";
|
|
30828
30869
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
30829
30870
|
exports2.isEmpty = exports2.isString = void 0;
|
|
@@ -30838,9 +30879,9 @@ var require_string2 = __commonJS({
|
|
|
30838
30879
|
}
|
|
30839
30880
|
});
|
|
30840
30881
|
|
|
30841
|
-
// ../../node_modules/
|
|
30882
|
+
// ../../node_modules/fast-glob/out/utils/index.js
|
|
30842
30883
|
var require_utils6 = __commonJS({
|
|
30843
|
-
"../../node_modules/
|
|
30884
|
+
"../../node_modules/fast-glob/out/utils/index.js"(exports2) {
|
|
30844
30885
|
"use strict";
|
|
30845
30886
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
30846
30887
|
exports2.string = exports2.stream = exports2.pattern = exports2.path = exports2.fs = exports2.errno = exports2.array = void 0;
|
|
@@ -30861,9 +30902,9 @@ var require_utils6 = __commonJS({
|
|
|
30861
30902
|
}
|
|
30862
30903
|
});
|
|
30863
30904
|
|
|
30864
|
-
// ../../node_modules/
|
|
30905
|
+
// ../../node_modules/fast-glob/out/managers/tasks.js
|
|
30865
30906
|
var require_tasks = __commonJS({
|
|
30866
|
-
"../../node_modules/
|
|
30907
|
+
"../../node_modules/fast-glob/out/managers/tasks.js"(exports2) {
|
|
30867
30908
|
"use strict";
|
|
30868
30909
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
30869
30910
|
exports2.convertPatternGroupToTask = exports2.convertPatternGroupsToTasks = exports2.groupPatternsByBaseDirectory = exports2.getNegativePatternsAsPositive = exports2.getPositivePatterns = exports2.convertPatternsToTasks = exports2.generate = void 0;
|
|
@@ -32011,9 +32052,9 @@ var require_out3 = __commonJS({
|
|
|
32011
32052
|
}
|
|
32012
32053
|
});
|
|
32013
32054
|
|
|
32014
|
-
// ../../node_modules/
|
|
32055
|
+
// ../../node_modules/fast-glob/out/readers/reader.js
|
|
32015
32056
|
var require_reader2 = __commonJS({
|
|
32016
|
-
"../../node_modules/
|
|
32057
|
+
"../../node_modules/fast-glob/out/readers/reader.js"(exports2) {
|
|
32017
32058
|
"use strict";
|
|
32018
32059
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32019
32060
|
var path4 = require("path");
|
|
@@ -32050,9 +32091,9 @@ var require_reader2 = __commonJS({
|
|
|
32050
32091
|
}
|
|
32051
32092
|
});
|
|
32052
32093
|
|
|
32053
|
-
// ../../node_modules/
|
|
32094
|
+
// ../../node_modules/fast-glob/out/readers/stream.js
|
|
32054
32095
|
var require_stream4 = __commonJS({
|
|
32055
|
-
"../../node_modules/
|
|
32096
|
+
"../../node_modules/fast-glob/out/readers/stream.js"(exports2) {
|
|
32056
32097
|
"use strict";
|
|
32057
32098
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32058
32099
|
var stream_1 = require("stream");
|
|
@@ -32107,9 +32148,9 @@ var require_stream4 = __commonJS({
|
|
|
32107
32148
|
}
|
|
32108
32149
|
});
|
|
32109
32150
|
|
|
32110
|
-
// ../../node_modules/
|
|
32151
|
+
// ../../node_modules/fast-glob/out/readers/async.js
|
|
32111
32152
|
var require_async5 = __commonJS({
|
|
32112
|
-
"../../node_modules/
|
|
32153
|
+
"../../node_modules/fast-glob/out/readers/async.js"(exports2) {
|
|
32113
32154
|
"use strict";
|
|
32114
32155
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32115
32156
|
var fsWalk = require_out3();
|
|
@@ -32146,9 +32187,9 @@ var require_async5 = __commonJS({
|
|
|
32146
32187
|
}
|
|
32147
32188
|
});
|
|
32148
32189
|
|
|
32149
|
-
// ../../node_modules/
|
|
32190
|
+
// ../../node_modules/fast-glob/out/providers/matchers/matcher.js
|
|
32150
32191
|
var require_matcher = __commonJS({
|
|
32151
|
-
"../../node_modules/
|
|
32192
|
+
"../../node_modules/fast-glob/out/providers/matchers/matcher.js"(exports2) {
|
|
32152
32193
|
"use strict";
|
|
32153
32194
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32154
32195
|
var utils = require_utils6();
|
|
@@ -32197,9 +32238,9 @@ var require_matcher = __commonJS({
|
|
|
32197
32238
|
}
|
|
32198
32239
|
});
|
|
32199
32240
|
|
|
32200
|
-
// ../../node_modules/
|
|
32241
|
+
// ../../node_modules/fast-glob/out/providers/matchers/partial.js
|
|
32201
32242
|
var require_partial = __commonJS({
|
|
32202
|
-
"../../node_modules/
|
|
32243
|
+
"../../node_modules/fast-glob/out/providers/matchers/partial.js"(exports2) {
|
|
32203
32244
|
"use strict";
|
|
32204
32245
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32205
32246
|
var matcher_1 = require_matcher();
|
|
@@ -32234,9 +32275,9 @@ var require_partial = __commonJS({
|
|
|
32234
32275
|
}
|
|
32235
32276
|
});
|
|
32236
32277
|
|
|
32237
|
-
// ../../node_modules/
|
|
32278
|
+
// ../../node_modules/fast-glob/out/providers/filters/deep.js
|
|
32238
32279
|
var require_deep = __commonJS({
|
|
32239
|
-
"../../node_modules/
|
|
32280
|
+
"../../node_modules/fast-glob/out/providers/filters/deep.js"(exports2) {
|
|
32240
32281
|
"use strict";
|
|
32241
32282
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32242
32283
|
var utils = require_utils6();
|
|
@@ -32299,9 +32340,9 @@ var require_deep = __commonJS({
|
|
|
32299
32340
|
}
|
|
32300
32341
|
});
|
|
32301
32342
|
|
|
32302
|
-
// ../../node_modules/
|
|
32343
|
+
// ../../node_modules/fast-glob/out/providers/filters/entry.js
|
|
32303
32344
|
var require_entry = __commonJS({
|
|
32304
|
-
"../../node_modules/
|
|
32345
|
+
"../../node_modules/fast-glob/out/providers/filters/entry.js"(exports2) {
|
|
32305
32346
|
"use strict";
|
|
32306
32347
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32307
32348
|
var utils = require_utils6();
|
|
@@ -32387,9 +32428,9 @@ var require_entry = __commonJS({
|
|
|
32387
32428
|
}
|
|
32388
32429
|
});
|
|
32389
32430
|
|
|
32390
|
-
// ../../node_modules/
|
|
32431
|
+
// ../../node_modules/fast-glob/out/providers/filters/error.js
|
|
32391
32432
|
var require_error = __commonJS({
|
|
32392
|
-
"../../node_modules/
|
|
32433
|
+
"../../node_modules/fast-glob/out/providers/filters/error.js"(exports2) {
|
|
32393
32434
|
"use strict";
|
|
32394
32435
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32395
32436
|
var utils = require_utils6();
|
|
@@ -32408,9 +32449,9 @@ var require_error = __commonJS({
|
|
|
32408
32449
|
}
|
|
32409
32450
|
});
|
|
32410
32451
|
|
|
32411
|
-
// ../../node_modules/
|
|
32452
|
+
// ../../node_modules/fast-glob/out/providers/transformers/entry.js
|
|
32412
32453
|
var require_entry2 = __commonJS({
|
|
32413
|
-
"../../node_modules/
|
|
32454
|
+
"../../node_modules/fast-glob/out/providers/transformers/entry.js"(exports2) {
|
|
32414
32455
|
"use strict";
|
|
32415
32456
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32416
32457
|
var utils = require_utils6();
|
|
@@ -32440,9 +32481,9 @@ var require_entry2 = __commonJS({
|
|
|
32440
32481
|
}
|
|
32441
32482
|
});
|
|
32442
32483
|
|
|
32443
|
-
// ../../node_modules/
|
|
32484
|
+
// ../../node_modules/fast-glob/out/providers/provider.js
|
|
32444
32485
|
var require_provider = __commonJS({
|
|
32445
|
-
"../../node_modules/
|
|
32486
|
+
"../../node_modules/fast-glob/out/providers/provider.js"(exports2) {
|
|
32446
32487
|
"use strict";
|
|
32447
32488
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32448
32489
|
var path4 = require("path");
|
|
@@ -32494,9 +32535,9 @@ var require_provider = __commonJS({
|
|
|
32494
32535
|
}
|
|
32495
32536
|
});
|
|
32496
32537
|
|
|
32497
|
-
// ../../node_modules/
|
|
32538
|
+
// ../../node_modules/fast-glob/out/providers/async.js
|
|
32498
32539
|
var require_async6 = __commonJS({
|
|
32499
|
-
"../../node_modules/
|
|
32540
|
+
"../../node_modules/fast-glob/out/providers/async.js"(exports2) {
|
|
32500
32541
|
"use strict";
|
|
32501
32542
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32502
32543
|
var async_1 = require_async5();
|
|
@@ -32523,9 +32564,9 @@ var require_async6 = __commonJS({
|
|
|
32523
32564
|
}
|
|
32524
32565
|
});
|
|
32525
32566
|
|
|
32526
|
-
// ../../node_modules/
|
|
32567
|
+
// ../../node_modules/fast-glob/out/providers/stream.js
|
|
32527
32568
|
var require_stream5 = __commonJS({
|
|
32528
|
-
"../../node_modules/
|
|
32569
|
+
"../../node_modules/fast-glob/out/providers/stream.js"(exports2) {
|
|
32529
32570
|
"use strict";
|
|
32530
32571
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32531
32572
|
var stream_1 = require("stream");
|
|
@@ -32557,9 +32598,9 @@ var require_stream5 = __commonJS({
|
|
|
32557
32598
|
}
|
|
32558
32599
|
});
|
|
32559
32600
|
|
|
32560
|
-
// ../../node_modules/
|
|
32601
|
+
// ../../node_modules/fast-glob/out/readers/sync.js
|
|
32561
32602
|
var require_sync5 = __commonJS({
|
|
32562
|
-
"../../node_modules/
|
|
32603
|
+
"../../node_modules/fast-glob/out/readers/sync.js"(exports2) {
|
|
32563
32604
|
"use strict";
|
|
32564
32605
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32565
32606
|
var fsStat = require_out();
|
|
@@ -32605,9 +32646,9 @@ var require_sync5 = __commonJS({
|
|
|
32605
32646
|
}
|
|
32606
32647
|
});
|
|
32607
32648
|
|
|
32608
|
-
// ../../node_modules/
|
|
32649
|
+
// ../../node_modules/fast-glob/out/providers/sync.js
|
|
32609
32650
|
var require_sync6 = __commonJS({
|
|
32610
|
-
"../../node_modules/
|
|
32651
|
+
"../../node_modules/fast-glob/out/providers/sync.js"(exports2) {
|
|
32611
32652
|
"use strict";
|
|
32612
32653
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32613
32654
|
var sync_1 = require_sync5();
|
|
@@ -32634,9 +32675,9 @@ var require_sync6 = __commonJS({
|
|
|
32634
32675
|
}
|
|
32635
32676
|
});
|
|
32636
32677
|
|
|
32637
|
-
// ../../node_modules/
|
|
32678
|
+
// ../../node_modules/fast-glob/out/settings.js
|
|
32638
32679
|
var require_settings4 = __commonJS({
|
|
32639
|
-
"../../node_modules/
|
|
32680
|
+
"../../node_modules/fast-glob/out/settings.js"(exports2) {
|
|
32640
32681
|
"use strict";
|
|
32641
32682
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
32642
32683
|
exports2.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
@@ -32694,9 +32735,9 @@ var require_settings4 = __commonJS({
|
|
|
32694
32735
|
}
|
|
32695
32736
|
});
|
|
32696
32737
|
|
|
32697
|
-
// ../../node_modules/
|
|
32738
|
+
// ../../node_modules/fast-glob/out/index.js
|
|
32698
32739
|
var require_out4 = __commonJS({
|
|
32699
|
-
"../../node_modules/
|
|
32740
|
+
"../../node_modules/fast-glob/out/index.js"(exports2, module2) {
|
|
32700
32741
|
"use strict";
|
|
32701
32742
|
var taskManager = require_tasks();
|
|
32702
32743
|
var async_1 = require_async6();
|
|
@@ -39699,7 +39740,7 @@ var require_line_offsets = __commonJS({
|
|
|
39699
39740
|
"../../node_modules/@sap-ux/text-document-utils/dist/line-offsets.js"(exports2) {
|
|
39700
39741
|
"use strict";
|
|
39701
39742
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
39702
|
-
exports2.getLineOffsets =
|
|
39743
|
+
exports2.getLineOffsets = getLineOffsets;
|
|
39703
39744
|
function getLineOffsets(text) {
|
|
39704
39745
|
const lineOffsets = [0];
|
|
39705
39746
|
let index = 0;
|
|
@@ -39717,7 +39758,6 @@ var require_line_offsets = __commonJS({
|
|
|
39717
39758
|
}
|
|
39718
39759
|
return lineOffsets;
|
|
39719
39760
|
}
|
|
39720
|
-
exports2.getLineOffsets = getLineOffsets;
|
|
39721
39761
|
}
|
|
39722
39762
|
});
|
|
39723
39763
|
|
|
@@ -39726,7 +39766,13 @@ var require_position = __commonJS({
|
|
|
39726
39766
|
"../../node_modules/@sap-ux/text-document-utils/dist/position.js"(exports2) {
|
|
39727
39767
|
"use strict";
|
|
39728
39768
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
39729
|
-
exports2.
|
|
39769
|
+
exports2.positionAt = positionAt;
|
|
39770
|
+
exports2.isBefore = isBefore;
|
|
39771
|
+
exports2.positionContained = positionContained;
|
|
39772
|
+
exports2.positionContainedStrict = positionContainedStrict;
|
|
39773
|
+
exports2.rangeContained = rangeContained;
|
|
39774
|
+
exports2.getIndentLevel = getIndentLevel;
|
|
39775
|
+
exports2.indent = indent;
|
|
39730
39776
|
var vscode_languageserver_types_1 = (init_main2(), __toCommonJS(main_exports2));
|
|
39731
39777
|
function positionAt(lineOffsets, offset, textLength) {
|
|
39732
39778
|
const target = Math.max(Math.min(offset, textLength), 0);
|
|
@@ -39746,7 +39792,6 @@ var require_position = __commonJS({
|
|
|
39746
39792
|
const line = low - 1;
|
|
39747
39793
|
return vscode_languageserver_types_1.Position.create(line, target - lineOffsets[line]);
|
|
39748
39794
|
}
|
|
39749
|
-
exports2.positionAt = positionAt;
|
|
39750
39795
|
function isBefore(pos1, pos2, includeEqual = false) {
|
|
39751
39796
|
if (pos1.line < pos2.line) {
|
|
39752
39797
|
return true;
|
|
@@ -39759,19 +39804,15 @@ var require_position = __commonJS({
|
|
|
39759
39804
|
}
|
|
39760
39805
|
return pos1.character < pos2.character;
|
|
39761
39806
|
}
|
|
39762
|
-
exports2.isBefore = isBefore;
|
|
39763
39807
|
function positionContained(range, position) {
|
|
39764
39808
|
return range !== void 0 && !isBefore(position, range.start, false) && isBefore(position, range.end, true);
|
|
39765
39809
|
}
|
|
39766
|
-
exports2.positionContained = positionContained;
|
|
39767
39810
|
function positionContainedStrict(range, position) {
|
|
39768
39811
|
return !isBefore(position, range.start, false) && isBefore(position, range.end, true);
|
|
39769
39812
|
}
|
|
39770
|
-
exports2.positionContainedStrict = positionContainedStrict;
|
|
39771
39813
|
function rangeContained(a, b) {
|
|
39772
39814
|
return isBefore(a.start, b.start, true) && isBefore(b.end, a.end, true);
|
|
39773
39815
|
}
|
|
39774
|
-
exports2.rangeContained = rangeContained;
|
|
39775
39816
|
function getIndentLevel(startPosition, tabWidth) {
|
|
39776
39817
|
let level;
|
|
39777
39818
|
if (startPosition < 0) {
|
|
@@ -39781,7 +39822,6 @@ var require_position = __commonJS({
|
|
|
39781
39822
|
}
|
|
39782
39823
|
return level;
|
|
39783
39824
|
}
|
|
39784
|
-
exports2.getIndentLevel = getIndentLevel;
|
|
39785
39825
|
function indent(tabWidth, useTabs, level) {
|
|
39786
39826
|
if (useTabs) {
|
|
39787
39827
|
return " ".repeat(level);
|
|
@@ -39789,7 +39829,6 @@ var require_position = __commonJS({
|
|
|
39789
39829
|
return " ".repeat(tabWidth * level);
|
|
39790
39830
|
}
|
|
39791
39831
|
}
|
|
39792
|
-
exports2.indent = indent;
|
|
39793
39832
|
}
|
|
39794
39833
|
});
|
|
39795
39834
|
|
|
@@ -39798,21 +39837,22 @@ var require_range2 = __commonJS({
|
|
|
39798
39837
|
"../../node_modules/@sap-ux/text-document-utils/dist/range.js"(exports2) {
|
|
39799
39838
|
"use strict";
|
|
39800
39839
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
39801
|
-
exports2.createRangeWithPosition = exports2.
|
|
39840
|
+
exports2.createRangeWithPosition = exports2.copyRange = exports2.copyPosition = void 0;
|
|
39841
|
+
exports2.rangeAt = rangeAt;
|
|
39842
|
+
exports2.arePositionsEqual = arePositionsEqual;
|
|
39843
|
+
exports2.areRangesEqual = areRangesEqual;
|
|
39844
|
+
exports2.createRange = createRange;
|
|
39802
39845
|
var position_1 = require_position();
|
|
39803
39846
|
var vscode_languageserver_types_1 = (init_main2(), __toCommonJS(main_exports2));
|
|
39804
39847
|
function rangeAt(lineOffsets, start, end, textLength) {
|
|
39805
39848
|
return vscode_languageserver_types_1.Range.create((0, position_1.positionAt)(lineOffsets, start, textLength), (0, position_1.positionAt)(lineOffsets, end, textLength));
|
|
39806
39849
|
}
|
|
39807
|
-
exports2.rangeAt = rangeAt;
|
|
39808
39850
|
function arePositionsEqual(a, b) {
|
|
39809
39851
|
return a.line === b.line && a.character === b.character;
|
|
39810
39852
|
}
|
|
39811
|
-
exports2.arePositionsEqual = arePositionsEqual;
|
|
39812
39853
|
function areRangesEqual(a, b) {
|
|
39813
39854
|
return arePositionsEqual(a.start, b.start) && arePositionsEqual(a.end, b.end);
|
|
39814
39855
|
}
|
|
39815
|
-
exports2.areRangesEqual = areRangesEqual;
|
|
39816
39856
|
var copyPosition = (position) => vscode_languageserver_types_1.Position.create(position.line, position.character);
|
|
39817
39857
|
exports2.copyPosition = copyPosition;
|
|
39818
39858
|
var copyRange = (range) => vscode_languageserver_types_1.Range.create((0, exports2.copyPosition)(range.start), (0, exports2.copyPosition)(range.end));
|
|
@@ -39820,7 +39860,6 @@ var require_range2 = __commonJS({
|
|
|
39820
39860
|
function createRange(line1, character1, line2, character2) {
|
|
39821
39861
|
return vscode_languageserver_types_1.Range.create(vscode_languageserver_types_1.Position.create(line1, character1), vscode_languageserver_types_1.Position.create(line2, character2));
|
|
39822
39862
|
}
|
|
39823
|
-
exports2.createRange = createRange;
|
|
39824
39863
|
var createRangeWithPosition = (start, end) => start && end ? vscode_languageserver_types_1.Range.create((0, exports2.copyPosition)(start), (0, exports2.copyPosition)(end)) : void 0;
|
|
39825
39864
|
exports2.createRangeWithPosition = createRangeWithPosition;
|
|
39826
39865
|
}
|
|
@@ -42475,7 +42514,8 @@ var require_access = __commonJS({
|
|
|
42475
42514
|
* @param memFs - optional mem-fs-editor instance
|
|
42476
42515
|
*/
|
|
42477
42516
|
async updatePackageJSON(packageJson, memFs) {
|
|
42478
|
-
|
|
42517
|
+
var _a3;
|
|
42518
|
+
await (0, file_1.updatePackageJSON)((0, path_1.join)(this.app.appRoot, constants_1.FileName.Package), packageJson, memFs ?? ((_a3 = this.options) == null ? void 0 : _a3.fs));
|
|
42479
42519
|
}
|
|
42480
42520
|
/**
|
|
42481
42521
|
* Updates manifest.json file asynchronously by keeping the previous indentation.
|
|
@@ -42484,7 +42524,8 @@ var require_access = __commonJS({
|
|
|
42484
42524
|
* @param memFs - optional mem-fs-editor instance
|
|
42485
42525
|
*/
|
|
42486
42526
|
async updateManifestJSON(manifest, memFs) {
|
|
42487
|
-
|
|
42527
|
+
var _a3;
|
|
42528
|
+
await (0, file_1.updateManifestJSON)(this.app.manifest, manifest, memFs ?? ((_a3 = this.options) == null ? void 0 : _a3.fs));
|
|
42488
42529
|
}
|
|
42489
42530
|
/**
|
|
42490
42531
|
* Project structure.
|
|
@@ -59439,16 +59480,16 @@ var require_types5 = __commonJS({
|
|
|
59439
59480
|
}
|
|
59440
59481
|
});
|
|
59441
59482
|
|
|
59442
|
-
// ../../node_modules
|
|
59483
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/stream.js
|
|
59443
59484
|
var require_stream6 = __commonJS({
|
|
59444
|
-
"../../node_modules
|
|
59485
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/stream.js"(exports2, module2) {
|
|
59445
59486
|
module2.exports = require("stream");
|
|
59446
59487
|
}
|
|
59447
59488
|
});
|
|
59448
59489
|
|
|
59449
|
-
// ../../node_modules
|
|
59490
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/destroy.js
|
|
59450
59491
|
var require_destroy2 = __commonJS({
|
|
59451
|
-
"../../node_modules
|
|
59492
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/destroy.js"(exports2, module2) {
|
|
59452
59493
|
"use strict";
|
|
59453
59494
|
function destroy2(err, cb) {
|
|
59454
59495
|
var _this = this;
|
|
@@ -59535,9 +59576,9 @@ var require_destroy2 = __commonJS({
|
|
|
59535
59576
|
}
|
|
59536
59577
|
});
|
|
59537
59578
|
|
|
59538
|
-
// ../../node_modules
|
|
59579
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/errors.js
|
|
59539
59580
|
var require_errors4 = __commonJS({
|
|
59540
|
-
"../../node_modules
|
|
59581
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/errors.js"(exports2, module2) {
|
|
59541
59582
|
"use strict";
|
|
59542
59583
|
var codes = {};
|
|
59543
59584
|
function createErrorType(code, message, Base) {
|
|
@@ -59635,9 +59676,9 @@ var require_errors4 = __commonJS({
|
|
|
59635
59676
|
}
|
|
59636
59677
|
});
|
|
59637
59678
|
|
|
59638
|
-
// ../../node_modules
|
|
59679
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/state.js
|
|
59639
59680
|
var require_state3 = __commonJS({
|
|
59640
|
-
"../../node_modules
|
|
59681
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/state.js"(exports2, module2) {
|
|
59641
59682
|
"use strict";
|
|
59642
59683
|
var ERR_INVALID_OPT_VALUE = require_errors4().codes.ERR_INVALID_OPT_VALUE;
|
|
59643
59684
|
function highWaterMarkFrom(options2, isDuplex, duplexKey) {
|
|
@@ -59660,9 +59701,9 @@ var require_state3 = __commonJS({
|
|
|
59660
59701
|
}
|
|
59661
59702
|
});
|
|
59662
59703
|
|
|
59663
|
-
// ../../node_modules
|
|
59704
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/buffer_list.js
|
|
59664
59705
|
var require_buffer_list = __commonJS({
|
|
59665
|
-
"../../node_modules
|
|
59706
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/buffer_list.js"(exports2, module2) {
|
|
59666
59707
|
"use strict";
|
|
59667
59708
|
function ownKeys(object, enumerableOnly) {
|
|
59668
59709
|
var keys = Object.keys(object);
|
|
@@ -60191,9 +60232,9 @@ var require_string_decoder2 = __commonJS({
|
|
|
60191
60232
|
}
|
|
60192
60233
|
});
|
|
60193
60234
|
|
|
60194
|
-
// ../../node_modules
|
|
60235
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/end-of-stream.js
|
|
60195
60236
|
var require_end_of_stream = __commonJS({
|
|
60196
|
-
"../../node_modules
|
|
60237
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/end-of-stream.js"(exports2, module2) {
|
|
60197
60238
|
"use strict";
|
|
60198
60239
|
var ERR_STREAM_PREMATURE_CLOSE = require_errors4().codes.ERR_STREAM_PREMATURE_CLOSE;
|
|
60199
60240
|
function once(callback) {
|
|
@@ -60280,9 +60321,9 @@ var require_end_of_stream = __commonJS({
|
|
|
60280
60321
|
}
|
|
60281
60322
|
});
|
|
60282
60323
|
|
|
60283
|
-
// ../../node_modules
|
|
60324
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/async_iterator.js
|
|
60284
60325
|
var require_async_iterator = __commonJS({
|
|
60285
|
-
"../../node_modules
|
|
60326
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/async_iterator.js"(exports2, module2) {
|
|
60286
60327
|
"use strict";
|
|
60287
60328
|
var _Object$setPrototypeO;
|
|
60288
60329
|
function _defineProperty2(obj, key, value) {
|
|
@@ -60448,9 +60489,9 @@ var require_async_iterator = __commonJS({
|
|
|
60448
60489
|
}
|
|
60449
60490
|
});
|
|
60450
60491
|
|
|
60451
|
-
// ../../node_modules
|
|
60492
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/from.js
|
|
60452
60493
|
var require_from = __commonJS({
|
|
60453
|
-
"../../node_modules
|
|
60494
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/internal/streams/from.js"(exports2, module2) {
|
|
60454
60495
|
"use strict";
|
|
60455
60496
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
60456
60497
|
try {
|
|
@@ -60561,9 +60602,9 @@ var require_from = __commonJS({
|
|
|
60561
60602
|
}
|
|
60562
60603
|
});
|
|
60563
60604
|
|
|
60564
|
-
// ../../node_modules
|
|
60605
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_readable.js
|
|
60565
60606
|
var require_stream_readable2 = __commonJS({
|
|
60566
|
-
"../../node_modules
|
|
60607
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_readable.js"(exports2, module2) {
|
|
60567
60608
|
"use strict";
|
|
60568
60609
|
module2.exports = Readable;
|
|
60569
60610
|
var Duplex;
|
|
@@ -61298,9 +61339,9 @@ var require_stream_readable2 = __commonJS({
|
|
|
61298
61339
|
}
|
|
61299
61340
|
});
|
|
61300
61341
|
|
|
61301
|
-
// ../../node_modules
|
|
61342
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_duplex.js
|
|
61302
61343
|
var require_stream_duplex2 = __commonJS({
|
|
61303
|
-
"../../node_modules
|
|
61344
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_duplex.js"(exports2, module2) {
|
|
61304
61345
|
"use strict";
|
|
61305
61346
|
var objectKeys = Object.keys || function(obj) {
|
|
61306
61347
|
var keys2 = [];
|
|
@@ -61393,9 +61434,9 @@ var require_stream_duplex2 = __commonJS({
|
|
|
61393
61434
|
}
|
|
61394
61435
|
});
|
|
61395
61436
|
|
|
61396
|
-
// ../../node_modules
|
|
61437
|
+
// ../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js
|
|
61397
61438
|
var require_stream_writable2 = __commonJS({
|
|
61398
|
-
"../../node_modules
|
|
61439
|
+
"../../node_modules/winston-transport/node_modules/readable-stream/lib/_stream_writable.js"(exports2, module2) {
|
|
61399
61440
|
"use strict";
|
|
61400
61441
|
module2.exports = Writable;
|
|
61401
61442
|
function CorkedRequest(state) {
|
|
@@ -61982,9 +62023,9 @@ var require_triple_beam = __commonJS({
|
|
|
61982
62023
|
}
|
|
61983
62024
|
});
|
|
61984
62025
|
|
|
61985
|
-
// ../../node_modules
|
|
62026
|
+
// ../../node_modules/winston-transport/modern.js
|
|
61986
62027
|
var require_modern = __commonJS({
|
|
61987
|
-
"../../node_modules
|
|
62028
|
+
"../../node_modules/winston-transport/modern.js"(exports2, module2) {
|
|
61988
62029
|
"use strict";
|
|
61989
62030
|
var util3 = require("util");
|
|
61990
62031
|
var Writable = require_stream_writable2();
|
|
@@ -62094,9 +62135,9 @@ var require_modern = __commonJS({
|
|
|
62094
62135
|
}
|
|
62095
62136
|
});
|
|
62096
62137
|
|
|
62097
|
-
// ../../node_modules
|
|
62138
|
+
// ../../node_modules/winston-transport/legacy.js
|
|
62098
62139
|
var require_legacy = __commonJS({
|
|
62099
|
-
"../../node_modules
|
|
62140
|
+
"../../node_modules/winston-transport/legacy.js"(exports2, module2) {
|
|
62100
62141
|
"use strict";
|
|
62101
62142
|
var util3 = require("util");
|
|
62102
62143
|
var { LEVEL } = require_triple_beam();
|
|
@@ -62160,9 +62201,9 @@ var require_legacy = __commonJS({
|
|
|
62160
62201
|
}
|
|
62161
62202
|
});
|
|
62162
62203
|
|
|
62163
|
-
// ../../node_modules
|
|
62204
|
+
// ../../node_modules/winston-transport/index.js
|
|
62164
62205
|
var require_winston_transport = __commonJS({
|
|
62165
|
-
"../../node_modules
|
|
62206
|
+
"../../node_modules/winston-transport/index.js"(exports2, module2) {
|
|
62166
62207
|
"use strict";
|
|
62167
62208
|
module2.exports = require_modern();
|
|
62168
62209
|
module2.exports.LegacyTransportStream = require_legacy();
|
|
@@ -73996,20 +74037,31 @@ var require_adapter = __commonJS({
|
|
|
73996
74037
|
} : function(o, v) {
|
|
73997
74038
|
o["default"] = v;
|
|
73998
74039
|
});
|
|
73999
|
-
var __importStar = exports2 && exports2.__importStar || function(
|
|
74000
|
-
|
|
74001
|
-
|
|
74002
|
-
|
|
74003
|
-
|
|
74004
|
-
|
|
74005
|
-
|
|
74006
|
-
|
|
74007
|
-
|
|
74040
|
+
var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ function() {
|
|
74041
|
+
var ownKeys = function(o) {
|
|
74042
|
+
ownKeys = Object.getOwnPropertyNames || function(o2) {
|
|
74043
|
+
var ar = [];
|
|
74044
|
+
for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
|
|
74045
|
+
return ar;
|
|
74046
|
+
};
|
|
74047
|
+
return ownKeys(o);
|
|
74048
|
+
};
|
|
74049
|
+
return function(mod) {
|
|
74050
|
+
if (mod && mod.__esModule) return mod;
|
|
74051
|
+
var result2 = {};
|
|
74052
|
+
if (mod != null) {
|
|
74053
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result2, mod, k[i]);
|
|
74054
|
+
}
|
|
74055
|
+
__setModuleDefault(result2, mod);
|
|
74056
|
+
return result2;
|
|
74057
|
+
};
|
|
74058
|
+
}();
|
|
74008
74059
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
74009
74060
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
74010
74061
|
};
|
|
74011
74062
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
74012
|
-
exports2.
|
|
74063
|
+
exports2.toWinstonLogLevel = toWinstonLogLevel;
|
|
74064
|
+
exports2.toWinstonTransport = toWinstonTransport;
|
|
74013
74065
|
var types_1 = require_types5();
|
|
74014
74066
|
var winston_1 = __importStar(require_winston());
|
|
74015
74067
|
var transports_1 = require_transports();
|
|
@@ -74020,7 +74072,6 @@ var require_adapter = __commonJS({
|
|
|
74020
74072
|
function toWinstonLogLevel(logLevel) {
|
|
74021
74073
|
return logLevel === void 0 ? void 0 : types_1.LogLevel[logLevel].toLowerCase();
|
|
74022
74074
|
}
|
|
74023
|
-
exports2.toWinstonLogLevel = toWinstonLogLevel;
|
|
74024
74075
|
var toWinstonTransportOptions = (transportOptions) => {
|
|
74025
74076
|
const { logLevel, ...opts } = transportOptions;
|
|
74026
74077
|
return Object.assign({}, opts, { level: toWinstonLogLevel(logLevel) });
|
|
@@ -74095,7 +74146,6 @@ ${level} ${chalk_1.default.magenta(label)} `);
|
|
|
74095
74146
|
throw new Error("Unrecognized transport type");
|
|
74096
74147
|
}
|
|
74097
74148
|
}
|
|
74098
|
-
exports2.toWinstonTransport = toWinstonTransport;
|
|
74099
74149
|
}
|
|
74100
74150
|
});
|
|
74101
74151
|
|
|
@@ -74143,15 +74193,25 @@ var require_logger2 = __commonJS({
|
|
|
74143
74193
|
} : function(o, v) {
|
|
74144
74194
|
o["default"] = v;
|
|
74145
74195
|
});
|
|
74146
|
-
var __importStar = exports2 && exports2.__importStar || function(
|
|
74147
|
-
|
|
74148
|
-
|
|
74149
|
-
|
|
74150
|
-
|
|
74151
|
-
|
|
74152
|
-
|
|
74153
|
-
|
|
74154
|
-
|
|
74196
|
+
var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ function() {
|
|
74197
|
+
var ownKeys = function(o) {
|
|
74198
|
+
ownKeys = Object.getOwnPropertyNames || function(o2) {
|
|
74199
|
+
var ar = [];
|
|
74200
|
+
for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
|
|
74201
|
+
return ar;
|
|
74202
|
+
};
|
|
74203
|
+
return ownKeys(o);
|
|
74204
|
+
};
|
|
74205
|
+
return function(mod) {
|
|
74206
|
+
if (mod && mod.__esModule) return mod;
|
|
74207
|
+
var result2 = {};
|
|
74208
|
+
if (mod != null) {
|
|
74209
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result2, mod, k[i]);
|
|
74210
|
+
}
|
|
74211
|
+
__setModuleDefault(result2, mod);
|
|
74212
|
+
return result2;
|
|
74213
|
+
};
|
|
74214
|
+
}();
|
|
74155
74215
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
74156
74216
|
exports2.WinstonLogger = void 0;
|
|
74157
74217
|
var transports_1 = require_transports();
|
|
@@ -110483,186 +110543,6 @@ var require_dist12 = __commonJS({
|
|
|
110483
110543
|
}
|
|
110484
110544
|
});
|
|
110485
110545
|
|
|
110486
|
-
// ../../node_modules/@sap-ux/feature-toggle/dist/constants.js
|
|
110487
|
-
var require_constants9 = __commonJS({
|
|
110488
|
-
"../../node_modules/@sap-ux/feature-toggle/dist/constants.js"(exports2) {
|
|
110489
|
-
"use strict";
|
|
110490
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110491
|
-
exports2.ExperimentalFeatures = exports2.FeatureToggleKey = exports2.tokenToggleGuid = exports2.extensionConfigKeys = void 0;
|
|
110492
|
-
exports2.extensionConfigKeys = {
|
|
110493
|
-
AnnotationModeler: "sap.ux.annotationModeler",
|
|
110494
|
-
AppGenerator: "sap.ux.appGenerator",
|
|
110495
|
-
ApplicationModeler: "sap.ux.applicationModeler",
|
|
110496
|
-
Help: "sap.ux.help",
|
|
110497
|
-
ServiceModeler: "sap.ux.serviceModeler",
|
|
110498
|
-
Internal: "sap.ux.internal"
|
|
110499
|
-
};
|
|
110500
|
-
exports2.tokenToggleGuid = {
|
|
110501
|
-
"sap.ux.help.testBetaFeatures.enableAppStudioGDContribution": "c8c52f0b-0d7d-4697-997a-d6f29814f42e",
|
|
110502
|
-
"sap.ux.help.testBetaFeatures.showTestGuides": "fbb03f42-0a86-4fd5-9fc4-8c9b38a4d1a3",
|
|
110503
|
-
"sap.ux.help.testBetaFeatures.enableFioriAI": "165a0e31-35ea-4bee-8d47-b8593435a82d",
|
|
110504
|
-
"sap.ux.help.testBetaFeatures.enableFioriAIJoule": "165a0e31-35ea-4bee-8d47-b8593435a82e",
|
|
110505
|
-
"sap.ux.help.testBetaFeatures.enableFioriAIVsCode": "165a0e31-35ea-4bee-8d47-b8593435a82f",
|
|
110506
|
-
"sap.ux.help.testBetaFeatures.enableFioriAIAppModeler": "165a0e31-35ea-4bee-8d47-b8593435a82g",
|
|
110507
|
-
"sap.ux.applicationModeler.testBetaFeatures.manifestEditor": true,
|
|
110508
|
-
"sap.ux.appGenerator.testBetaFeatures.newAnnotationAPI": true
|
|
110509
|
-
};
|
|
110510
|
-
exports2.FeatureToggleKey = "testBetaFeatures";
|
|
110511
|
-
exports2.ExperimentalFeatures = "sap.ux.applicationModeler.enableExperimentalFeatures";
|
|
110512
|
-
}
|
|
110513
|
-
});
|
|
110514
|
-
|
|
110515
|
-
// ../../node_modules/@sap-ux/feature-toggle/dist/featureToggle.js
|
|
110516
|
-
var require_featureToggle = __commonJS({
|
|
110517
|
-
"../../node_modules/@sap-ux/feature-toggle/dist/featureToggle.js"(exports2) {
|
|
110518
|
-
"use strict";
|
|
110519
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110520
|
-
exports2.FeatureToggleAccess = void 0;
|
|
110521
|
-
exports2.enableFeature = enableFeature;
|
|
110522
|
-
exports2.isFeatureEnabled = isFeatureEnabled;
|
|
110523
|
-
exports2.isInternalFeaturesSettingEnabled = isInternalFeaturesSettingEnabled2;
|
|
110524
|
-
var constants_1 = require_constants9();
|
|
110525
|
-
var FeatureToggleAccess = class _FeatureToggleAccess {
|
|
110526
|
-
static vscode = getVSCodeInstance();
|
|
110527
|
-
/**
|
|
110528
|
-
* Retrieves the toggle state of the specified feature.
|
|
110529
|
-
*
|
|
110530
|
-
* @param feature the feature to retrieve the toggle state for.
|
|
110531
|
-
* @returns the toggle state of the feature.
|
|
110532
|
-
*/
|
|
110533
|
-
static getFeatureToggle(feature) {
|
|
110534
|
-
var _a3;
|
|
110535
|
-
let toggleConfigValue;
|
|
110536
|
-
if ((feature.includes(constants_1.FeatureToggleKey) || feature === constants_1.ExperimentalFeatures) && _FeatureToggleAccess.vscode) {
|
|
110537
|
-
const toggleKey = feature.slice(0, feature.lastIndexOf("."));
|
|
110538
|
-
const toggleId = feature.slice(feature.lastIndexOf(".") + 1, feature.length);
|
|
110539
|
-
toggleConfigValue = (_a3 = _FeatureToggleAccess.vscode.workspace.getConfiguration(toggleKey)) == null ? void 0 : _a3.get(toggleId);
|
|
110540
|
-
} else {
|
|
110541
|
-
toggleConfigValue = false;
|
|
110542
|
-
}
|
|
110543
|
-
if (process.env.TOOLSUITE_FEATURES) {
|
|
110544
|
-
const envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
|
|
110545
|
-
toggleConfigValue = envFeatures.includes(feature) ? true : toggleConfigValue;
|
|
110546
|
-
}
|
|
110547
|
-
if (constants_1.tokenToggleGuid[feature]) {
|
|
110548
|
-
if (constants_1.tokenToggleGuid[feature] === toggleConfigValue) {
|
|
110549
|
-
toggleConfigValue = true;
|
|
110550
|
-
} else {
|
|
110551
|
-
toggleConfigValue = false;
|
|
110552
|
-
}
|
|
110553
|
-
}
|
|
110554
|
-
const featureToggle = {
|
|
110555
|
-
feature,
|
|
110556
|
-
isEnabled: toggleConfigValue === true ? toggleConfigValue : false
|
|
110557
|
-
};
|
|
110558
|
-
return featureToggle;
|
|
110559
|
-
}
|
|
110560
|
-
/**
|
|
110561
|
-
* Retrieves all feature toggles.
|
|
110562
|
-
*
|
|
110563
|
-
* @returns an array of defined feature toggles.
|
|
110564
|
-
*/
|
|
110565
|
-
static getAllFeatureToggles() {
|
|
110566
|
-
const definedToggles = [];
|
|
110567
|
-
if (_FeatureToggleAccess.vscode) {
|
|
110568
|
-
Object.keys(constants_1.extensionConfigKeys).forEach((toggleConfigKey) => {
|
|
110569
|
-
const toggleKey = `${constants_1.extensionConfigKeys[toggleConfigKey]}.${constants_1.FeatureToggleKey}`;
|
|
110570
|
-
let toggles = {};
|
|
110571
|
-
try {
|
|
110572
|
-
toggles = JSON.parse(JSON.stringify(_FeatureToggleAccess.vscode.workspace.getConfiguration(toggleKey)));
|
|
110573
|
-
} catch {
|
|
110574
|
-
}
|
|
110575
|
-
Object.keys(toggles).forEach((toggleId) => {
|
|
110576
|
-
const toggleConfigValue = _FeatureToggleAccess.vscode.workspace.getConfiguration(`${toggleKey}`).get(`${toggleId}`);
|
|
110577
|
-
const toggle = {
|
|
110578
|
-
feature: `${toggleKey}.${toggleId}`,
|
|
110579
|
-
isEnabled: toggleConfigValue ? toggleConfigValue : false
|
|
110580
|
-
};
|
|
110581
|
-
definedToggles.push(toggle);
|
|
110582
|
-
});
|
|
110583
|
-
});
|
|
110584
|
-
} else if (process.env.TOOLSUITE_FEATURES) {
|
|
110585
|
-
const envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
|
|
110586
|
-
for (const feature of envFeatures) {
|
|
110587
|
-
const toggle = {
|
|
110588
|
-
feature,
|
|
110589
|
-
isEnabled: true
|
|
110590
|
-
};
|
|
110591
|
-
definedToggles.push(toggle);
|
|
110592
|
-
}
|
|
110593
|
-
}
|
|
110594
|
-
return definedToggles;
|
|
110595
|
-
}
|
|
110596
|
-
};
|
|
110597
|
-
exports2.FeatureToggleAccess = FeatureToggleAccess;
|
|
110598
|
-
function getVSCodeInstance() {
|
|
110599
|
-
let vscode;
|
|
110600
|
-
try {
|
|
110601
|
-
vscode = require("vscode");
|
|
110602
|
-
} catch {
|
|
110603
|
-
}
|
|
110604
|
-
return vscode;
|
|
110605
|
-
}
|
|
110606
|
-
function enableFeature(feature) {
|
|
110607
|
-
let envFeatures = [];
|
|
110608
|
-
if (process.env.TOOLSUITE_FEATURES) {
|
|
110609
|
-
envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
|
|
110610
|
-
if (!envFeatures.includes(feature)) {
|
|
110611
|
-
envFeatures.push(feature);
|
|
110612
|
-
}
|
|
110613
|
-
} else {
|
|
110614
|
-
envFeatures.push(feature);
|
|
110615
|
-
}
|
|
110616
|
-
process.env.TOOLSUITE_FEATURES = envFeatures.join();
|
|
110617
|
-
}
|
|
110618
|
-
function isFeatureEnabled(feature) {
|
|
110619
|
-
return FeatureToggleAccess.getFeatureToggle(feature).isEnabled;
|
|
110620
|
-
}
|
|
110621
|
-
function isInternalFeaturesSettingEnabled2() {
|
|
110622
|
-
var _a3;
|
|
110623
|
-
const enableInternalFeaturesSetting = "sap.ux.internal.enableInternalFeatures";
|
|
110624
|
-
let internalEnabled = false;
|
|
110625
|
-
if (FeatureToggleAccess.vscode) {
|
|
110626
|
-
const internalSetting = FeatureToggleAccess.vscode.workspace ? (_a3 = FeatureToggleAccess.vscode.workspace.getConfiguration()) == null ? void 0 : _a3.get(enableInternalFeaturesSetting) : false;
|
|
110627
|
-
internalEnabled = internalSetting ?? false;
|
|
110628
|
-
}
|
|
110629
|
-
if (process.env.TOOLSUITE_INTERNAL && process.env.TOOLSUITE_INTERNAL === "true") {
|
|
110630
|
-
internalEnabled = true;
|
|
110631
|
-
}
|
|
110632
|
-
return internalEnabled;
|
|
110633
|
-
}
|
|
110634
|
-
}
|
|
110635
|
-
});
|
|
110636
|
-
|
|
110637
|
-
// ../../node_modules/@sap-ux/feature-toggle/dist/index.js
|
|
110638
|
-
var require_dist13 = __commonJS({
|
|
110639
|
-
"../../node_modules/@sap-ux/feature-toggle/dist/index.js"(exports2) {
|
|
110640
|
-
"use strict";
|
|
110641
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
110642
|
-
exports2.ExperimentalFeatures = exports2.FeatureToggleKey = exports2.enableFeature = exports2.isInternalFeaturesSettingEnabled = exports2.isFeatureEnabled = exports2.FeatureToggleAccess = void 0;
|
|
110643
|
-
var featureToggle_1 = require_featureToggle();
|
|
110644
|
-
Object.defineProperty(exports2, "FeatureToggleAccess", { enumerable: true, get: function() {
|
|
110645
|
-
return featureToggle_1.FeatureToggleAccess;
|
|
110646
|
-
} });
|
|
110647
|
-
Object.defineProperty(exports2, "isFeatureEnabled", { enumerable: true, get: function() {
|
|
110648
|
-
return featureToggle_1.isFeatureEnabled;
|
|
110649
|
-
} });
|
|
110650
|
-
Object.defineProperty(exports2, "isInternalFeaturesSettingEnabled", { enumerable: true, get: function() {
|
|
110651
|
-
return featureToggle_1.isInternalFeaturesSettingEnabled;
|
|
110652
|
-
} });
|
|
110653
|
-
Object.defineProperty(exports2, "enableFeature", { enumerable: true, get: function() {
|
|
110654
|
-
return featureToggle_1.enableFeature;
|
|
110655
|
-
} });
|
|
110656
|
-
var constants_1 = require_constants9();
|
|
110657
|
-
Object.defineProperty(exports2, "FeatureToggleKey", { enumerable: true, get: function() {
|
|
110658
|
-
return constants_1.FeatureToggleKey;
|
|
110659
|
-
} });
|
|
110660
|
-
Object.defineProperty(exports2, "ExperimentalFeatures", { enumerable: true, get: function() {
|
|
110661
|
-
return constants_1.ExperimentalFeatures;
|
|
110662
|
-
} });
|
|
110663
|
-
}
|
|
110664
|
-
});
|
|
110665
|
-
|
|
110666
110546
|
// ../../node_modules/@sap-ux/axios-extension/dist/factory.js
|
|
110667
110547
|
var require_factory = __commonJS({
|
|
110668
110548
|
"../../node_modules/@sap-ux/axios-extension/dist/factory.js"(exports2) {
|
|
@@ -110688,7 +110568,6 @@ var require_factory = __commonJS({
|
|
|
110688
110568
|
var proxy_from_env_1 = require_proxy_from_env();
|
|
110689
110569
|
var https_proxy_agent_1 = require_dist11();
|
|
110690
110570
|
var http_proxy_agent_1 = require_dist12();
|
|
110691
|
-
var feature_toggle_1 = require_dist13();
|
|
110692
110571
|
var PatchedHttpsProxyAgent = class extends https_proxy_agent_1.HttpsProxyAgent {
|
|
110693
110572
|
extraOptions;
|
|
110694
110573
|
/**
|
|
@@ -110720,8 +110599,7 @@ var require_factory = __commonJS({
|
|
|
110720
110599
|
rejectUnauthorized: !providerConfig.ignoreCertErrors
|
|
110721
110600
|
};
|
|
110722
110601
|
const localProxy = (0, proxy_from_env_1.getProxyForUrl)(config.baseURL);
|
|
110723
|
-
|
|
110724
|
-
if (isPatchProxyEnabled && localProxy) {
|
|
110602
|
+
if (localProxy) {
|
|
110725
110603
|
providerConfig.httpsAgent = new PatchedHttpsProxyAgent(localProxy, agentOptions);
|
|
110726
110604
|
providerConfig.httpAgent = new http_proxy_agent_1.HttpProxyAgent(localProxy);
|
|
110727
110605
|
providerConfig.proxy = false;
|
|
@@ -110847,7 +110725,7 @@ var require_factory = __commonJS({
|
|
|
110847
110725
|
});
|
|
110848
110726
|
|
|
110849
110727
|
// ../../node_modules/@sap-ux/axios-extension/dist/index.js
|
|
110850
|
-
var
|
|
110728
|
+
var require_dist13 = __commonJS({
|
|
110851
110729
|
"../../node_modules/@sap-ux/axios-extension/dist/index.js"(exports2) {
|
|
110852
110730
|
"use strict";
|
|
110853
110731
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -134926,7 +134804,7 @@ var require_agent = __commonJS({
|
|
|
134926
134804
|
});
|
|
134927
134805
|
|
|
134928
134806
|
// ../../node_modules/https-proxy-agent/dist/index.js
|
|
134929
|
-
var
|
|
134807
|
+
var require_dist14 = __commonJS({
|
|
134930
134808
|
"../../node_modules/https-proxy-agent/dist/index.js"(exports2, module2) {
|
|
134931
134809
|
"use strict";
|
|
134932
134810
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
@@ -134945,7 +134823,7 @@ var require_dist15 = __commonJS({
|
|
|
134945
134823
|
});
|
|
134946
134824
|
|
|
134947
134825
|
// ../../node_modules/@azure/core-rest-pipeline/node_modules/@tootallnate/once/dist/index.js
|
|
134948
|
-
var
|
|
134826
|
+
var require_dist15 = __commonJS({
|
|
134949
134827
|
"../../node_modules/@azure/core-rest-pipeline/node_modules/@tootallnate/once/dist/index.js"(exports2) {
|
|
134950
134828
|
"use strict";
|
|
134951
134829
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -135012,7 +134890,7 @@ var require_agent2 = __commonJS({
|
|
|
135012
134890
|
var tls_1 = __importDefault(require("tls"));
|
|
135013
134891
|
var url_1 = __importDefault(require("url"));
|
|
135014
134892
|
var debug_1 = __importDefault(require_src());
|
|
135015
|
-
var once_1 = __importDefault(
|
|
134893
|
+
var once_1 = __importDefault(require_dist15());
|
|
135016
134894
|
var agent_base_1 = require_src8();
|
|
135017
134895
|
var debug = (0, debug_1.default)("http-proxy-agent");
|
|
135018
134896
|
function isHTTPS(protocol) {
|
|
@@ -135110,7 +134988,7 @@ var require_agent2 = __commonJS({
|
|
|
135110
134988
|
});
|
|
135111
134989
|
|
|
135112
134990
|
// ../../node_modules/@azure/core-rest-pipeline/node_modules/http-proxy-agent/dist/index.js
|
|
135113
|
-
var
|
|
134991
|
+
var require_dist16 = __commonJS({
|
|
135114
134992
|
"../../node_modules/@azure/core-rest-pipeline/node_modules/http-proxy-agent/dist/index.js"(exports2, module2) {
|
|
135115
134993
|
"use strict";
|
|
135116
134994
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
@@ -135265,8 +135143,8 @@ function proxyPolicy(proxySettings = getDefaultProxySettings(), options2) {
|
|
|
135265
135143
|
var import_https_proxy_agent, import_http_proxy_agent, HTTPS_PROXY, HTTP_PROXY, ALL_PROXY, NO_PROXY, proxyPolicyName, globalNoProxyList, noProxyListLoaded, globalBypassedMap;
|
|
135266
135144
|
var init_proxyPolicy = __esm({
|
|
135267
135145
|
"../../node_modules/@azure/core-rest-pipeline/dist-esm/src/policies/proxyPolicy.js"() {
|
|
135268
|
-
import_https_proxy_agent = __toESM(
|
|
135269
|
-
import_http_proxy_agent = __toESM(
|
|
135146
|
+
import_https_proxy_agent = __toESM(require_dist14());
|
|
135147
|
+
import_http_proxy_agent = __toESM(require_dist16());
|
|
135270
135148
|
init_log2();
|
|
135271
135149
|
HTTPS_PROXY = "HTTPS_PROXY";
|
|
135272
135150
|
HTTP_PROXY = "HTTP_PROXY";
|
|
@@ -139601,7 +139479,7 @@ var require_package8 = __commonJS({
|
|
|
139601
139479
|
"../../node_modules/@sap-ux/telemetry/package.json"(exports2, module2) {
|
|
139602
139480
|
module2.exports = {
|
|
139603
139481
|
name: "@sap-ux/telemetry",
|
|
139604
|
-
version: "0.
|
|
139482
|
+
version: "0.6.2",
|
|
139605
139483
|
description: "Library for sending usage telemetry data",
|
|
139606
139484
|
repository: {
|
|
139607
139485
|
type: "git",
|
|
@@ -139619,11 +139497,11 @@ var require_package8 = __commonJS({
|
|
|
139619
139497
|
axios: "1.8.2",
|
|
139620
139498
|
"performance-now": "2.1.0",
|
|
139621
139499
|
yaml: "2.3.3",
|
|
139622
|
-
"@sap-ux/store": "1.
|
|
139623
|
-
"@sap-ux/project-access": "1.
|
|
139624
|
-
"@sap-ux/
|
|
139625
|
-
"@sap-ux/
|
|
139626
|
-
"@sap-ux/
|
|
139500
|
+
"@sap-ux/store": "1.1.0",
|
|
139501
|
+
"@sap-ux/project-access": "1.30.1",
|
|
139502
|
+
"@sap-ux/ui5-config": "0.28.1",
|
|
139503
|
+
"@sap-ux/logger": "0.7.0",
|
|
139504
|
+
"@sap-ux/btp-utils": "1.1.0"
|
|
139627
139505
|
},
|
|
139628
139506
|
devDependencies: {
|
|
139629
139507
|
"jest-extended": "4.0.2",
|
|
@@ -139640,7 +139518,7 @@ var require_package8 = __commonJS({
|
|
|
139640
139518
|
"!dist/**/*.map"
|
|
139641
139519
|
],
|
|
139642
139520
|
engines: {
|
|
139643
|
-
node: ">=
|
|
139521
|
+
node: ">=20.x"
|
|
139644
139522
|
},
|
|
139645
139523
|
scripts: {
|
|
139646
139524
|
build: "tsc --build",
|
|
@@ -147106,7 +146984,7 @@ var require_public_api2 = __commonJS({
|
|
|
147106
146984
|
});
|
|
147107
146985
|
|
|
147108
146986
|
// ../../node_modules/@sap-ux/telemetry/node_modules/yaml/dist/index.js
|
|
147109
|
-
var
|
|
146987
|
+
var require_dist17 = __commonJS({
|
|
147110
146988
|
"../../node_modules/@sap-ux/telemetry/node_modules/yaml/dist/index.js"(exports2) {
|
|
147111
146989
|
"use strict";
|
|
147112
146990
|
var composer = require_composer2();
|
|
@@ -147230,7 +147108,7 @@ var require_data_processor = __commonJS({
|
|
|
147230
147108
|
var axios_1 = __importDefault(require_axios());
|
|
147231
147109
|
var fs_1 = __importDefault(require("fs"));
|
|
147232
147110
|
var path_1 = __importDefault(require("path"));
|
|
147233
|
-
var yaml_1 = __importDefault(
|
|
147111
|
+
var yaml_1 = __importDefault(require_dist17());
|
|
147234
147112
|
var info_1 = require_info();
|
|
147235
147113
|
var search_1 = require_search();
|
|
147236
147114
|
var cap_1 = require_cap();
|
|
@@ -147302,7 +147180,16 @@ var require_data_processor = __commonJS({
|
|
|
147302
147180
|
return output3;
|
|
147303
147181
|
}
|
|
147304
147182
|
async function getTemplateType(appPath) {
|
|
147183
|
+
var _a3;
|
|
147305
147184
|
const readmeFilePath = path_1.default.join(appPath, "README.md");
|
|
147185
|
+
const appGenInfoPath = path_1.default.join(appPath, ".appGenInfo.json");
|
|
147186
|
+
if (fs_1.default.existsSync(appGenInfoPath)) {
|
|
147187
|
+
const appGenInfo = await fs_1.default.promises.readFile(appGenInfoPath, "utf-8");
|
|
147188
|
+
const appGenInfoParsed = JSON.parse(appGenInfo);
|
|
147189
|
+
if ((_a3 = appGenInfoParsed == null ? void 0 : appGenInfoParsed.generationParameters) == null ? void 0 : _a3.template) {
|
|
147190
|
+
return appGenInfoParsed.generationParameters.template.trim();
|
|
147191
|
+
}
|
|
147192
|
+
}
|
|
147306
147193
|
if (fs_1.default.existsSync(readmeFilePath)) {
|
|
147307
147194
|
const readmeContent = await fs_1.default.promises.readFile(readmeFilePath, "utf-8");
|
|
147308
147195
|
if (readmeContent) {
|
|
@@ -147631,7 +147518,7 @@ var require_reporting = __commonJS({
|
|
|
147631
147518
|
});
|
|
147632
147519
|
|
|
147633
147520
|
// ../../node_modules/@sap-ux/store/dist/constants.js
|
|
147634
|
-
var
|
|
147521
|
+
var require_constants9 = __commonJS({
|
|
147635
147522
|
"../../node_modules/@sap-ux/store/dist/constants.js"(exports2) {
|
|
147636
147523
|
"use strict";
|
|
147637
147524
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -154667,15 +154554,25 @@ var require_filesystem = __commonJS({
|
|
|
154667
154554
|
} : function(o, v) {
|
|
154668
154555
|
o["default"] = v;
|
|
154669
154556
|
});
|
|
154670
|
-
var __importStar = exports2 && exports2.__importStar || function(
|
|
154671
|
-
|
|
154672
|
-
|
|
154673
|
-
|
|
154674
|
-
|
|
154675
|
-
|
|
154676
|
-
|
|
154677
|
-
|
|
154678
|
-
|
|
154557
|
+
var __importStar = exports2 && exports2.__importStar || /* @__PURE__ */ function() {
|
|
154558
|
+
var ownKeys = function(o) {
|
|
154559
|
+
ownKeys = Object.getOwnPropertyNames || function(o2) {
|
|
154560
|
+
var ar = [];
|
|
154561
|
+
for (var k in o2) if (Object.prototype.hasOwnProperty.call(o2, k)) ar[ar.length] = k;
|
|
154562
|
+
return ar;
|
|
154563
|
+
};
|
|
154564
|
+
return ownKeys(o);
|
|
154565
|
+
};
|
|
154566
|
+
return function(mod) {
|
|
154567
|
+
if (mod && mod.__esModule) return mod;
|
|
154568
|
+
var result2 = {};
|
|
154569
|
+
if (mod != null) {
|
|
154570
|
+
for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result2, mod, k[i]);
|
|
154571
|
+
}
|
|
154572
|
+
__setModuleDefault(result2, mod);
|
|
154573
|
+
return result2;
|
|
154574
|
+
};
|
|
154575
|
+
}();
|
|
154679
154576
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
154680
154577
|
return mod && mod.__esModule ? mod : { "default": mod };
|
|
154681
154578
|
};
|
|
@@ -156159,7 +156056,7 @@ var require_backend_system = __commonJS({
|
|
|
156159
156056
|
});
|
|
156160
156057
|
|
|
156161
156058
|
// ../../node_modules/@sap-ux/store/dist/data-provider/constants.js
|
|
156162
|
-
var
|
|
156059
|
+
var require_constants10 = __commonJS({
|
|
156163
156060
|
"../../node_modules/@sap-ux/store/dist/data-provider/constants.js"(exports2) {
|
|
156164
156061
|
"use strict";
|
|
156165
156062
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -156182,7 +156079,7 @@ var require_backend_system2 = __commonJS({
|
|
|
156182
156079
|
exports2.SystemDataProvider = void 0;
|
|
156183
156080
|
var hybrid_1 = require_hybrid();
|
|
156184
156081
|
var backend_system_1 = require_backend_system();
|
|
156185
|
-
var constants_1 =
|
|
156082
|
+
var constants_1 = require_constants10();
|
|
156186
156083
|
var SystemDataProvider = class {
|
|
156187
156084
|
dataAccessor;
|
|
156188
156085
|
entityName = constants_1.Entities.BackendSystem;
|
|
@@ -156336,7 +156233,7 @@ var require_telemetry_setting2 = __commonJS({
|
|
|
156336
156233
|
exports2.TelemetryDataProvider = void 0;
|
|
156337
156234
|
var filesystem_1 = require_filesystem();
|
|
156338
156235
|
var telemetry_setting_1 = require_telemetry_setting();
|
|
156339
|
-
var constants_1 =
|
|
156236
|
+
var constants_1 = require_constants10();
|
|
156340
156237
|
var TelemetryDataProvider = class {
|
|
156341
156238
|
dataAccessor;
|
|
156342
156239
|
entityName = constants_1.Entities.TelemetrySetting;
|
|
@@ -156451,7 +156348,7 @@ var require_api_hub2 = __commonJS({
|
|
|
156451
156348
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
156452
156349
|
exports2.ApiHubSettingsProvider = void 0;
|
|
156453
156350
|
var hybrid_1 = require_hybrid();
|
|
156454
|
-
var constants_1 =
|
|
156351
|
+
var constants_1 = require_constants10();
|
|
156455
156352
|
var api_hub_1 = require_api_hub();
|
|
156456
156353
|
var ApiHubSettingsProvider = class {
|
|
156457
156354
|
dataAccessor;
|
|
@@ -156648,7 +156545,7 @@ var require_data_access = __commonJS({
|
|
|
156648
156545
|
});
|
|
156649
156546
|
|
|
156650
156547
|
// ../../node_modules/@sap-ux/store/dist/index.js
|
|
156651
|
-
var
|
|
156548
|
+
var require_dist18 = __commonJS({
|
|
156652
156549
|
"../../node_modules/@sap-ux/store/dist/index.js"(exports2) {
|
|
156653
156550
|
"use strict";
|
|
156654
156551
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -156670,7 +156567,7 @@ var require_dist19 = __commonJS({
|
|
|
156670
156567
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
156671
156568
|
exports2.FioriToolsSettings = exports2.getFioriToolsDirectory = exports2.Entity = exports2.getFilesystemWatcherFor = void 0;
|
|
156672
156569
|
exports2.getService = getService2;
|
|
156673
|
-
var constants_1 =
|
|
156570
|
+
var constants_1 = require_constants9();
|
|
156674
156571
|
Object.defineProperty(exports2, "Entity", { enumerable: true, get: function() {
|
|
156675
156572
|
return constants_1.Entity;
|
|
156676
156573
|
} });
|
|
@@ -156723,7 +156620,7 @@ var require_telemetry_settings = __commonJS({
|
|
|
156723
156620
|
exports2.setEnableTelemetry = setEnableTelemetry;
|
|
156724
156621
|
exports2.getTelemetrySetting = getTelemetrySetting;
|
|
156725
156622
|
var reporting_1 = require_reporting();
|
|
156726
|
-
var store_1 =
|
|
156623
|
+
var store_1 = require_dist18();
|
|
156727
156624
|
var btp_utils_1 = require_dist9();
|
|
156728
156625
|
var os_1 = __importDefault(require("os"));
|
|
156729
156626
|
var path_1 = __importDefault(require("path"));
|
|
@@ -157429,7 +157326,7 @@ var require_decorator = __commonJS({
|
|
|
157429
157326
|
});
|
|
157430
157327
|
|
|
157431
157328
|
// ../../node_modules/@sap-ux/telemetry/dist/index.js
|
|
157432
|
-
var
|
|
157329
|
+
var require_dist19 = __commonJS({
|
|
157433
157330
|
"../../node_modules/@sap-ux/telemetry/dist/index.js"(exports2) {
|
|
157434
157331
|
"use strict";
|
|
157435
157332
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -157500,7 +157397,7 @@ var require_dist20 = __commonJS({
|
|
|
157500
157397
|
});
|
|
157501
157398
|
|
|
157502
157399
|
// ../../node_modules/@sap-ux/ui5-info/dist/constants.js
|
|
157503
|
-
var
|
|
157400
|
+
var require_constants11 = __commonJS({
|
|
157504
157401
|
"../../node_modules/@sap-ux/ui5-info/dist/constants.js"(exports2) {
|
|
157505
157402
|
"use strict";
|
|
157506
157403
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -157567,7 +157464,7 @@ var require_ui5_version_fallback = __commonJS({
|
|
|
157567
157464
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
157568
157465
|
exports2.supportedUi5VersionFallbacks = exports2.defaultUi5Versions = exports2.ui5VersionFallbacks = exports2.supportState = void 0;
|
|
157569
157466
|
var semver_1 = require_semver2();
|
|
157570
|
-
var constants_1 =
|
|
157467
|
+
var constants_1 = require_constants11();
|
|
157571
157468
|
exports2.supportState = {
|
|
157572
157469
|
maintenance: "Maintenance",
|
|
157573
157470
|
outOfMaintenance: "Out of maintenance",
|
|
@@ -157987,7 +157884,7 @@ var require_ui5_version_info = __commonJS({
|
|
|
157987
157884
|
var axios_1 = __importDefault(require_axios());
|
|
157988
157885
|
var logger_1 = require_dist8();
|
|
157989
157886
|
var ui5_version_fallback_1 = require_ui5_version_fallback();
|
|
157990
|
-
var constants_1 =
|
|
157887
|
+
var constants_1 = require_constants11();
|
|
157991
157888
|
var latestUI5Version;
|
|
157992
157889
|
var passThroughStrings = /* @__PURE__ */ new Set(["snapshot", "snapshot-untested", constants_1.latestVersionString]);
|
|
157993
157890
|
var ui5VersionStrCmp = (a, b) => {
|
|
@@ -158216,7 +158113,7 @@ var require_ui5_theme_info = __commonJS({
|
|
|
158216
158113
|
exports2.ui5Themes = void 0;
|
|
158217
158114
|
exports2.getDefaultUI5Theme = getDefaultUI5Theme;
|
|
158218
158115
|
exports2.getUi5Themes = getUi5Themes;
|
|
158219
|
-
var constants_1 =
|
|
158116
|
+
var constants_1 = require_constants11();
|
|
158220
158117
|
var semver_1 = require_semver2();
|
|
158221
158118
|
var MIN_UI5_VER_DARK_THEME = "1.72.0";
|
|
158222
158119
|
var MIN_UI5_VER_HORIZON_THEME = "1.102.0";
|
|
@@ -158334,12 +158231,12 @@ var require_ui5_version_backend = __commonJS({
|
|
|
158334
158231
|
});
|
|
158335
158232
|
|
|
158336
158233
|
// ../../node_modules/@sap-ux/ui5-info/dist/index.js
|
|
158337
|
-
var
|
|
158234
|
+
var require_dist20 = __commonJS({
|
|
158338
158235
|
"../../node_modules/@sap-ux/ui5-info/dist/index.js"(exports2) {
|
|
158339
158236
|
"use strict";
|
|
158340
158237
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
158341
158238
|
exports2.getSapSystemUI5Version = exports2.ui5Themes = exports2.getUi5Themes = exports2.getDefaultUI5Theme = exports2.supportedUi5VersionFallbacks = exports2.getLatestUI5Version = exports2.getUI5Versions = exports2.defaultMinUi5Version = exports2.ui5VersionRequestInfo = exports2.latestVersionString = exports2.minUI5VersionForLocalDev = exports2.minUi5VersionV4Template = exports2.minUi5VersionSupportingCodeAssist = exports2.defaultVersion = void 0;
|
|
158342
|
-
var constants_1 =
|
|
158239
|
+
var constants_1 = require_constants11();
|
|
158343
158240
|
Object.defineProperty(exports2, "defaultVersion", { enumerable: true, get: function() {
|
|
158344
158241
|
return constants_1.defaultVersion;
|
|
158345
158242
|
} });
|
|
@@ -158389,6 +158286,187 @@ var require_dist21 = __commonJS({
|
|
|
158389
158286
|
}
|
|
158390
158287
|
});
|
|
158391
158288
|
|
|
158289
|
+
// ../../node_modules/@sap-ux/feature-toggle/dist/constants.js
|
|
158290
|
+
var require_constants12 = __commonJS({
|
|
158291
|
+
"../../node_modules/@sap-ux/feature-toggle/dist/constants.js"(exports2) {
|
|
158292
|
+
"use strict";
|
|
158293
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
158294
|
+
exports2.ExperimentalFeatures = exports2.FeatureToggleKey = exports2.tokenToggleGuid = exports2.extensionConfigKeys = void 0;
|
|
158295
|
+
exports2.extensionConfigKeys = {
|
|
158296
|
+
AnnotationModeler: "sap.ux.annotationModeler",
|
|
158297
|
+
AppGenerator: "sap.ux.appGenerator",
|
|
158298
|
+
ApplicationModeler: "sap.ux.applicationModeler",
|
|
158299
|
+
Help: "sap.ux.help",
|
|
158300
|
+
ServiceModeler: "sap.ux.serviceModeler",
|
|
158301
|
+
Internal: "sap.ux.internal"
|
|
158302
|
+
};
|
|
158303
|
+
exports2.tokenToggleGuid = {
|
|
158304
|
+
"sap.ux.help.testBetaFeatures.enableAppStudioGDContribution": "c8c52f0b-0d7d-4697-997a-d6f29814f42e",
|
|
158305
|
+
"sap.ux.help.testBetaFeatures.showTestGuides": "fbb03f42-0a86-4fd5-9fc4-8c9b38a4d1a3",
|
|
158306
|
+
"sap.ux.help.testBetaFeatures.enableFioriAI": "165a0e31-35ea-4bee-8d47-b8593435a82d",
|
|
158307
|
+
"sap.ux.help.testBetaFeatures.enableFioriAIJoule": "165a0e31-35ea-4bee-8d47-b8593435a82e",
|
|
158308
|
+
"sap.ux.help.testBetaFeatures.enableFioriAIVsCode": "165a0e31-35ea-4bee-8d47-b8593435a82f",
|
|
158309
|
+
"sap.ux.help.testBetaFeatures.enableFioriAIAppModeler": "165a0e31-35ea-4bee-8d47-b8593435a82g",
|
|
158310
|
+
"sap.ux.help.testBetaFeatures.enableFioriAIRapGeneration": "165a0e31-35ea-4bee-8d47-b8593435a82h",
|
|
158311
|
+
"sap.ux.applicationModeler.testBetaFeatures.manifestEditor": true,
|
|
158312
|
+
"sap.ux.appGenerator.testBetaFeatures.newAnnotationAPI": true
|
|
158313
|
+
};
|
|
158314
|
+
exports2.FeatureToggleKey = "testBetaFeatures";
|
|
158315
|
+
exports2.ExperimentalFeatures = "sap.ux.applicationModeler.enableExperimentalFeatures";
|
|
158316
|
+
}
|
|
158317
|
+
});
|
|
158318
|
+
|
|
158319
|
+
// ../../node_modules/@sap-ux/feature-toggle/dist/featureToggle.js
|
|
158320
|
+
var require_featureToggle = __commonJS({
|
|
158321
|
+
"../../node_modules/@sap-ux/feature-toggle/dist/featureToggle.js"(exports2) {
|
|
158322
|
+
"use strict";
|
|
158323
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
158324
|
+
exports2.FeatureToggleAccess = void 0;
|
|
158325
|
+
exports2.enableFeature = enableFeature;
|
|
158326
|
+
exports2.isFeatureEnabled = isFeatureEnabled;
|
|
158327
|
+
exports2.isInternalFeaturesSettingEnabled = isInternalFeaturesSettingEnabled2;
|
|
158328
|
+
var constants_1 = require_constants12();
|
|
158329
|
+
var FeatureToggleAccess = class _FeatureToggleAccess {
|
|
158330
|
+
static vscode = getVSCodeInstance();
|
|
158331
|
+
/**
|
|
158332
|
+
* Retrieves the toggle state of the specified feature.
|
|
158333
|
+
*
|
|
158334
|
+
* @param feature the feature to retrieve the toggle state for.
|
|
158335
|
+
* @returns the toggle state of the feature.
|
|
158336
|
+
*/
|
|
158337
|
+
static getFeatureToggle(feature) {
|
|
158338
|
+
var _a3;
|
|
158339
|
+
let toggleConfigValue;
|
|
158340
|
+
if ((feature.includes(constants_1.FeatureToggleKey) || feature === constants_1.ExperimentalFeatures) && _FeatureToggleAccess.vscode) {
|
|
158341
|
+
const toggleKey = feature.slice(0, feature.lastIndexOf("."));
|
|
158342
|
+
const toggleId = feature.slice(feature.lastIndexOf(".") + 1, feature.length);
|
|
158343
|
+
toggleConfigValue = (_a3 = _FeatureToggleAccess.vscode.workspace.getConfiguration(toggleKey)) == null ? void 0 : _a3.get(toggleId);
|
|
158344
|
+
} else {
|
|
158345
|
+
toggleConfigValue = false;
|
|
158346
|
+
}
|
|
158347
|
+
if (process.env.TOOLSUITE_FEATURES) {
|
|
158348
|
+
const envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
|
|
158349
|
+
toggleConfigValue = envFeatures.includes(feature) ? true : toggleConfigValue;
|
|
158350
|
+
}
|
|
158351
|
+
if (constants_1.tokenToggleGuid[feature]) {
|
|
158352
|
+
if (constants_1.tokenToggleGuid[feature] === toggleConfigValue) {
|
|
158353
|
+
toggleConfigValue = true;
|
|
158354
|
+
} else {
|
|
158355
|
+
toggleConfigValue = false;
|
|
158356
|
+
}
|
|
158357
|
+
}
|
|
158358
|
+
const featureToggle = {
|
|
158359
|
+
feature,
|
|
158360
|
+
isEnabled: toggleConfigValue === true ? toggleConfigValue : false
|
|
158361
|
+
};
|
|
158362
|
+
return featureToggle;
|
|
158363
|
+
}
|
|
158364
|
+
/**
|
|
158365
|
+
* Retrieves all feature toggles.
|
|
158366
|
+
*
|
|
158367
|
+
* @returns an array of defined feature toggles.
|
|
158368
|
+
*/
|
|
158369
|
+
static getAllFeatureToggles() {
|
|
158370
|
+
const definedToggles = [];
|
|
158371
|
+
if (_FeatureToggleAccess.vscode) {
|
|
158372
|
+
Object.keys(constants_1.extensionConfigKeys).forEach((toggleConfigKey) => {
|
|
158373
|
+
const toggleKey = `${constants_1.extensionConfigKeys[toggleConfigKey]}.${constants_1.FeatureToggleKey}`;
|
|
158374
|
+
let toggles = {};
|
|
158375
|
+
try {
|
|
158376
|
+
toggles = JSON.parse(JSON.stringify(_FeatureToggleAccess.vscode.workspace.getConfiguration(toggleKey)));
|
|
158377
|
+
} catch {
|
|
158378
|
+
}
|
|
158379
|
+
Object.keys(toggles).forEach((toggleId) => {
|
|
158380
|
+
const toggleConfigValue = _FeatureToggleAccess.vscode.workspace.getConfiguration(`${toggleKey}`).get(`${toggleId}`);
|
|
158381
|
+
const toggle = {
|
|
158382
|
+
feature: `${toggleKey}.${toggleId}`,
|
|
158383
|
+
isEnabled: toggleConfigValue ? toggleConfigValue : false
|
|
158384
|
+
};
|
|
158385
|
+
definedToggles.push(toggle);
|
|
158386
|
+
});
|
|
158387
|
+
});
|
|
158388
|
+
} else if (process.env.TOOLSUITE_FEATURES) {
|
|
158389
|
+
const envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
|
|
158390
|
+
for (const feature of envFeatures) {
|
|
158391
|
+
const toggle = {
|
|
158392
|
+
feature,
|
|
158393
|
+
isEnabled: true
|
|
158394
|
+
};
|
|
158395
|
+
definedToggles.push(toggle);
|
|
158396
|
+
}
|
|
158397
|
+
}
|
|
158398
|
+
return definedToggles;
|
|
158399
|
+
}
|
|
158400
|
+
};
|
|
158401
|
+
exports2.FeatureToggleAccess = FeatureToggleAccess;
|
|
158402
|
+
function getVSCodeInstance() {
|
|
158403
|
+
let vscode;
|
|
158404
|
+
try {
|
|
158405
|
+
vscode = require("vscode");
|
|
158406
|
+
} catch {
|
|
158407
|
+
}
|
|
158408
|
+
return vscode;
|
|
158409
|
+
}
|
|
158410
|
+
function enableFeature(feature) {
|
|
158411
|
+
let envFeatures = [];
|
|
158412
|
+
if (process.env.TOOLSUITE_FEATURES) {
|
|
158413
|
+
envFeatures = process.env.TOOLSUITE_FEATURES.split(",");
|
|
158414
|
+
if (!envFeatures.includes(feature)) {
|
|
158415
|
+
envFeatures.push(feature);
|
|
158416
|
+
}
|
|
158417
|
+
} else {
|
|
158418
|
+
envFeatures.push(feature);
|
|
158419
|
+
}
|
|
158420
|
+
process.env.TOOLSUITE_FEATURES = envFeatures.join();
|
|
158421
|
+
}
|
|
158422
|
+
function isFeatureEnabled(feature) {
|
|
158423
|
+
return FeatureToggleAccess.getFeatureToggle(feature).isEnabled;
|
|
158424
|
+
}
|
|
158425
|
+
function isInternalFeaturesSettingEnabled2() {
|
|
158426
|
+
var _a3;
|
|
158427
|
+
const enableInternalFeaturesSetting = "sap.ux.internal.enableInternalFeatures";
|
|
158428
|
+
let internalEnabled = false;
|
|
158429
|
+
if (FeatureToggleAccess.vscode) {
|
|
158430
|
+
const internalSetting = FeatureToggleAccess.vscode.workspace ? (_a3 = FeatureToggleAccess.vscode.workspace.getConfiguration()) == null ? void 0 : _a3.get(enableInternalFeaturesSetting) : false;
|
|
158431
|
+
internalEnabled = internalSetting ?? false;
|
|
158432
|
+
}
|
|
158433
|
+
if (process.env.TOOLSUITE_INTERNAL && process.env.TOOLSUITE_INTERNAL === "true") {
|
|
158434
|
+
internalEnabled = true;
|
|
158435
|
+
}
|
|
158436
|
+
return internalEnabled;
|
|
158437
|
+
}
|
|
158438
|
+
}
|
|
158439
|
+
});
|
|
158440
|
+
|
|
158441
|
+
// ../../node_modules/@sap-ux/feature-toggle/dist/index.js
|
|
158442
|
+
var require_dist21 = __commonJS({
|
|
158443
|
+
"../../node_modules/@sap-ux/feature-toggle/dist/index.js"(exports2) {
|
|
158444
|
+
"use strict";
|
|
158445
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
158446
|
+
exports2.ExperimentalFeatures = exports2.FeatureToggleKey = exports2.enableFeature = exports2.isInternalFeaturesSettingEnabled = exports2.isFeatureEnabled = exports2.FeatureToggleAccess = void 0;
|
|
158447
|
+
var featureToggle_1 = require_featureToggle();
|
|
158448
|
+
Object.defineProperty(exports2, "FeatureToggleAccess", { enumerable: true, get: function() {
|
|
158449
|
+
return featureToggle_1.FeatureToggleAccess;
|
|
158450
|
+
} });
|
|
158451
|
+
Object.defineProperty(exports2, "isFeatureEnabled", { enumerable: true, get: function() {
|
|
158452
|
+
return featureToggle_1.isFeatureEnabled;
|
|
158453
|
+
} });
|
|
158454
|
+
Object.defineProperty(exports2, "isInternalFeaturesSettingEnabled", { enumerable: true, get: function() {
|
|
158455
|
+
return featureToggle_1.isInternalFeaturesSettingEnabled;
|
|
158456
|
+
} });
|
|
158457
|
+
Object.defineProperty(exports2, "enableFeature", { enumerable: true, get: function() {
|
|
158458
|
+
return featureToggle_1.enableFeature;
|
|
158459
|
+
} });
|
|
158460
|
+
var constants_1 = require_constants12();
|
|
158461
|
+
Object.defineProperty(exports2, "FeatureToggleKey", { enumerable: true, get: function() {
|
|
158462
|
+
return constants_1.FeatureToggleKey;
|
|
158463
|
+
} });
|
|
158464
|
+
Object.defineProperty(exports2, "ExperimentalFeatures", { enumerable: true, get: function() {
|
|
158465
|
+
return constants_1.ExperimentalFeatures;
|
|
158466
|
+
} });
|
|
158467
|
+
}
|
|
158468
|
+
});
|
|
158469
|
+
|
|
158392
158470
|
// ../../node_modules/i18next/dist/esm/i18next.js
|
|
158393
158471
|
init_typeof();
|
|
158394
158472
|
init_objectSpread();
|
|
@@ -160491,15 +160569,15 @@ var import_guided_answers_helper = __toESM(require_dist7());
|
|
|
160491
160569
|
var import_fs3 = require("fs");
|
|
160492
160570
|
var import_yaml = __toESM(require_dist());
|
|
160493
160571
|
var import_path2 = require("path");
|
|
160494
|
-
var import_axios_extension = __toESM(
|
|
160572
|
+
var import_axios_extension = __toESM(require_dist13());
|
|
160495
160573
|
var import_btp_utils = __toESM(require_dist9());
|
|
160496
160574
|
var import_chalk = __toESM(require_source2());
|
|
160497
160575
|
var import_project_access = __toESM(require_dist6());
|
|
160498
|
-
var import_telemetry = __toESM(
|
|
160499
|
-
var import_ui5_info = __toESM(
|
|
160576
|
+
var import_telemetry = __toESM(require_dist19());
|
|
160577
|
+
var import_ui5_info = __toESM(require_dist20());
|
|
160500
160578
|
var import_semver3 = __toESM(require_semver2());
|
|
160501
|
-
var import_store = __toESM(
|
|
160502
|
-
var import_feature_toggle = __toESM(
|
|
160579
|
+
var import_store = __toESM(require_dist18());
|
|
160580
|
+
var import_feature_toggle = __toESM(require_dist21());
|
|
160503
160581
|
var helpLink = (0, import_guided_answers_helper.getHelpUrl)(import_guided_answers_helper.HELP_TREE.FIORI_TOOLS, [57266]);
|
|
160504
160582
|
var getHtmlFile = (url) => {
|
|
160505
160583
|
let html = url;
|
|
@@ -160562,7 +160640,7 @@ async function patchTls({ url, client, scp }, logger3) {
|
|
|
160562
160640
|
}
|
|
160563
160641
|
|
|
160564
160642
|
// src/middlewares/preview/utils.ts
|
|
160565
|
-
var import_telemetry2 = __toESM(
|
|
160643
|
+
var import_telemetry2 = __toESM(require_dist19());
|
|
160566
160644
|
var import_express = __toESM(require("express"));
|
|
160567
160645
|
var isTelemetryInitialized = false;
|
|
160568
160646
|
var hasChanges = (webappPath) => {
|