@sap/ux-ui5-tooling 1.9.4 → 1.9.6
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 +403 -0
- package/dist/cli/index.js +885 -496
- package/dist/middlewares/fiori-tools-appreload.js +51 -47
- package/dist/middlewares/fiori-tools-preview.js +897 -491
- package/dist/middlewares/fiori-tools-proxy.js +2503 -3814
- package/dist/tasks/cf-deploy/index.js +875 -483
- package/dist/tasks/deploy/index.js +879 -488
- package/dist/templates/variants-management/preview.html +1 -1
- package/package.json +14 -13
|
@@ -280,13 +280,8 @@ var require_EventName = __commonJS({
|
|
|
280
280
|
EventName3["APP_INFO_COMMAND_STARTED"] = "APP_INFO_COMMAND_STARTED";
|
|
281
281
|
EventName3["APP_INFO_LINK_CLICKED"] = "APP_INFO_LINK_CLICKED";
|
|
282
282
|
EventName3["APP_INFO_STARTUP_TIME"] = "APP_INFO_STARTUP_TIME";
|
|
283
|
-
EventName3["
|
|
284
|
-
EventName3["
|
|
285
|
-
EventName3["SRV_MODELER_PANEL_LOAD"] = "SRV_MODELER_PANEL_LOAD";
|
|
286
|
-
EventName3["SRV_MODELER_BACKEND_LOAD"] = "SRV_MODELER_BACKEND_LOAD";
|
|
287
|
-
EventName3["SRV_MODELER_ODATA_VERSION"] = "SRV_MODELER_ODATA_VERSION";
|
|
288
|
-
EventName3["ANNOTATION_FILE_PANEL_LOAD"] = "ANNOTATION_FILE_PANEL_LOAD";
|
|
289
|
-
EventName3["ANNOTATION_FILE_BACKEND_LOAD"] = "ANNOTATION_FILE_BACKEND_LOAD";
|
|
283
|
+
EventName3["SERVICE_MODELER_EVENT"] = "SERVICE_MODELER_EVENT";
|
|
284
|
+
EventName3["ANNOTATION_FILE_MANAGER_EVENT"] = "ANNOTATION_FILE_MANAGER_EVENT";
|
|
290
285
|
EventName3["ANNOTATION_LSP_XML_LOAD"] = "ANNOTATION_LSP_XML_LOAD";
|
|
291
286
|
EventName3["ANNOTATION_LSP_USAGE_TERM"] = "ANNOTATION_LSP_USAGE_TERM";
|
|
292
287
|
EventName3["ANNOTATION_LSP_CODE_COMPLETION"] = "ANNOTATION_LSP_CODE_COMPLETION";
|
|
@@ -4621,9 +4616,9 @@ var require_async_hook = __commonJS({
|
|
|
4621
4616
|
}
|
|
4622
4617
|
});
|
|
4623
4618
|
|
|
4624
|
-
// ../../node_modules/stack-chain/package.json
|
|
4619
|
+
// ../../node_modules/async-hook-jl/node_modules/stack-chain/package.json
|
|
4625
4620
|
var require_package3 = __commonJS({
|
|
4626
|
-
"../../node_modules/stack-chain/package.json"(exports2, module2) {
|
|
4621
|
+
"../../node_modules/async-hook-jl/node_modules/stack-chain/package.json"(exports2, module2) {
|
|
4627
4622
|
module2.exports = {
|
|
4628
4623
|
name: "stack-chain",
|
|
4629
4624
|
description: "API for combining call site modifiers",
|
|
@@ -4653,9 +4648,9 @@ var require_package3 = __commonJS({
|
|
|
4653
4648
|
}
|
|
4654
4649
|
});
|
|
4655
4650
|
|
|
4656
|
-
// ../../node_modules/stack-chain/format.js
|
|
4651
|
+
// ../../node_modules/async-hook-jl/node_modules/stack-chain/format.js
|
|
4657
4652
|
var require_format = __commonJS({
|
|
4658
|
-
"../../node_modules/stack-chain/format.js"(exports2, module2) {
|
|
4653
|
+
"../../node_modules/async-hook-jl/node_modules/stack-chain/format.js"(exports2, module2) {
|
|
4659
4654
|
function FormatErrorString(error3) {
|
|
4660
4655
|
try {
|
|
4661
4656
|
return Error.prototype.toString.call(error3);
|
|
@@ -4689,9 +4684,9 @@ var require_format = __commonJS({
|
|
|
4689
4684
|
}
|
|
4690
4685
|
});
|
|
4691
4686
|
|
|
4692
|
-
// ../../node_modules/stack-chain/stack-chain.js
|
|
4687
|
+
// ../../node_modules/async-hook-jl/node_modules/stack-chain/stack-chain.js
|
|
4693
4688
|
var require_stack_chain = __commonJS({
|
|
4694
|
-
"../../node_modules/stack-chain/stack-chain.js"(exports2, module2) {
|
|
4689
|
+
"../../node_modules/async-hook-jl/node_modules/stack-chain/stack-chain.js"(exports2, module2) {
|
|
4695
4690
|
var defaultFormater = require_format();
|
|
4696
4691
|
function stackChain() {
|
|
4697
4692
|
this.extend = new TraceModifier();
|
|
@@ -4817,9 +4812,9 @@ var require_stack_chain = __commonJS({
|
|
|
4817
4812
|
}
|
|
4818
4813
|
});
|
|
4819
4814
|
|
|
4820
|
-
// ../../node_modules/stack-chain/index.js
|
|
4815
|
+
// ../../node_modules/async-hook-jl/node_modules/stack-chain/index.js
|
|
4821
4816
|
var require_stack_chain2 = __commonJS({
|
|
4822
|
-
"../../node_modules/stack-chain/index.js"(exports2, module2) {
|
|
4817
|
+
"../../node_modules/async-hook-jl/node_modules/stack-chain/index.js"(exports2, module2) {
|
|
4823
4818
|
if (global._stackChain) {
|
|
4824
4819
|
if (global._stackChain.version === require_package3().version) {
|
|
4825
4820
|
module2.exports = global._stackChain;
|
|
@@ -4856,6 +4851,210 @@ var require_async_hook_jl = __commonJS({
|
|
|
4856
4851
|
}
|
|
4857
4852
|
});
|
|
4858
4853
|
|
|
4854
|
+
// ../../node_modules/stack-chain/package.json
|
|
4855
|
+
var require_package4 = __commonJS({
|
|
4856
|
+
"../../node_modules/stack-chain/package.json"(exports2, module2) {
|
|
4857
|
+
module2.exports = {
|
|
4858
|
+
name: "stack-chain",
|
|
4859
|
+
description: "API for combining call site modifiers",
|
|
4860
|
+
version: "2.0.0",
|
|
4861
|
+
author: "Andreas Madsen <amwebdk@gmail.com>",
|
|
4862
|
+
scripts: {
|
|
4863
|
+
test: "tap ./test/simple/*"
|
|
4864
|
+
},
|
|
4865
|
+
repository: {
|
|
4866
|
+
type: "git",
|
|
4867
|
+
url: "git://github.com/AndreasMadsen/stack-chain.git"
|
|
4868
|
+
},
|
|
4869
|
+
keywords: [
|
|
4870
|
+
"stack",
|
|
4871
|
+
"chain",
|
|
4872
|
+
"trace",
|
|
4873
|
+
"call site",
|
|
4874
|
+
"concat",
|
|
4875
|
+
"format"
|
|
4876
|
+
],
|
|
4877
|
+
devDependencies: {
|
|
4878
|
+
tap: "2.x.x",
|
|
4879
|
+
"uglify-js": "2.5.x"
|
|
4880
|
+
},
|
|
4881
|
+
license: "MIT"
|
|
4882
|
+
};
|
|
4883
|
+
}
|
|
4884
|
+
});
|
|
4885
|
+
|
|
4886
|
+
// ../../node_modules/stack-chain/format.js
|
|
4887
|
+
var require_format2 = __commonJS({
|
|
4888
|
+
"../../node_modules/stack-chain/format.js"(exports2, module2) {
|
|
4889
|
+
function FormatErrorString(error3) {
|
|
4890
|
+
try {
|
|
4891
|
+
return Error.prototype.toString.call(error3);
|
|
4892
|
+
} catch (e) {
|
|
4893
|
+
try {
|
|
4894
|
+
return "<error: " + e + ">";
|
|
4895
|
+
} catch (ee) {
|
|
4896
|
+
return "<error>";
|
|
4897
|
+
}
|
|
4898
|
+
}
|
|
4899
|
+
}
|
|
4900
|
+
module2.exports = function FormatStackTrace(error3, frames) {
|
|
4901
|
+
var lines = [];
|
|
4902
|
+
lines.push(FormatErrorString(error3));
|
|
4903
|
+
for (var i = 0; i < frames.length; i++) {
|
|
4904
|
+
var frame = frames[i];
|
|
4905
|
+
var line;
|
|
4906
|
+
try {
|
|
4907
|
+
line = frame.toString();
|
|
4908
|
+
} catch (e) {
|
|
4909
|
+
try {
|
|
4910
|
+
line = "<error: " + e + ">";
|
|
4911
|
+
} catch (ee) {
|
|
4912
|
+
line = "<error>";
|
|
4913
|
+
}
|
|
4914
|
+
}
|
|
4915
|
+
lines.push(" at " + line);
|
|
4916
|
+
}
|
|
4917
|
+
return lines.join("\n");
|
|
4918
|
+
};
|
|
4919
|
+
}
|
|
4920
|
+
});
|
|
4921
|
+
|
|
4922
|
+
// ../../node_modules/stack-chain/stack-chain.js
|
|
4923
|
+
var require_stack_chain3 = __commonJS({
|
|
4924
|
+
"../../node_modules/stack-chain/stack-chain.js"(exports2, module2) {
|
|
4925
|
+
var defaultFormater = require_format2();
|
|
4926
|
+
var originalCallSiteSymbol = Symbol("originalCallSite");
|
|
4927
|
+
var mutatedCallSiteSymbol = Symbol("mutatedCallSite");
|
|
4928
|
+
function stackChain() {
|
|
4929
|
+
this.extend = new TraceModifier();
|
|
4930
|
+
this.filter = new TraceModifier();
|
|
4931
|
+
this.format = new StackFormater();
|
|
4932
|
+
this.version = require_package4().version;
|
|
4933
|
+
}
|
|
4934
|
+
var SHORTCIRCUIT_CALLSITE = false;
|
|
4935
|
+
stackChain.prototype.callSite = function collectCallSites(options2) {
|
|
4936
|
+
if (!options2)
|
|
4937
|
+
options2 = {};
|
|
4938
|
+
SHORTCIRCUIT_CALLSITE = true;
|
|
4939
|
+
var obj = {};
|
|
4940
|
+
Error.captureStackTrace(obj, collectCallSites);
|
|
4941
|
+
var callSites = obj.stack;
|
|
4942
|
+
SHORTCIRCUIT_CALLSITE = false;
|
|
4943
|
+
callSites = callSites.slice(options2.slice || 0);
|
|
4944
|
+
if (options2.extend)
|
|
4945
|
+
callSites = this.extend._modify(obj, callSites);
|
|
4946
|
+
if (options2.filter)
|
|
4947
|
+
callSites = this.filter._modify(obj, callSites);
|
|
4948
|
+
return callSites;
|
|
4949
|
+
};
|
|
4950
|
+
stackChain.prototype.originalCallSite = function(error3) {
|
|
4951
|
+
error3.stack;
|
|
4952
|
+
return error3[originalCallSiteSymbol];
|
|
4953
|
+
};
|
|
4954
|
+
stackChain.prototype.mutatedCallSite = function(error3) {
|
|
4955
|
+
error3.stack;
|
|
4956
|
+
return error3[mutatedCallSiteSymbol];
|
|
4957
|
+
};
|
|
4958
|
+
var chain = new stackChain();
|
|
4959
|
+
function TraceModifier() {
|
|
4960
|
+
this._modifiers = [];
|
|
4961
|
+
}
|
|
4962
|
+
TraceModifier.prototype._modify = function(error3, frames) {
|
|
4963
|
+
for (var i = 0, l = this._modifiers.length; i < l; i++) {
|
|
4964
|
+
frames = this._modifiers[i](error3, frames);
|
|
4965
|
+
}
|
|
4966
|
+
return frames;
|
|
4967
|
+
};
|
|
4968
|
+
TraceModifier.prototype.attach = function(modifier) {
|
|
4969
|
+
this._modifiers.push(modifier);
|
|
4970
|
+
};
|
|
4971
|
+
TraceModifier.prototype.deattach = function(modifier) {
|
|
4972
|
+
var index = this._modifiers.indexOf(modifier);
|
|
4973
|
+
if (index === -1)
|
|
4974
|
+
return false;
|
|
4975
|
+
this._modifiers.splice(index, 1);
|
|
4976
|
+
return true;
|
|
4977
|
+
};
|
|
4978
|
+
function StackFormater() {
|
|
4979
|
+
this._formater = defaultFormater;
|
|
4980
|
+
this._previous = void 0;
|
|
4981
|
+
}
|
|
4982
|
+
StackFormater.prototype.replace = function(formater) {
|
|
4983
|
+
if (formater) {
|
|
4984
|
+
this._formater = formater;
|
|
4985
|
+
} else {
|
|
4986
|
+
this.restore();
|
|
4987
|
+
}
|
|
4988
|
+
};
|
|
4989
|
+
StackFormater.prototype.restore = function() {
|
|
4990
|
+
this._formater = defaultFormater;
|
|
4991
|
+
this._previous = void 0;
|
|
4992
|
+
};
|
|
4993
|
+
StackFormater.prototype._backup = function() {
|
|
4994
|
+
this._previous = this._formater;
|
|
4995
|
+
};
|
|
4996
|
+
StackFormater.prototype._roolback = function() {
|
|
4997
|
+
if (this._previous === defaultFormater) {
|
|
4998
|
+
this.replace(void 0);
|
|
4999
|
+
} else {
|
|
5000
|
+
this.replace(this._previous);
|
|
5001
|
+
}
|
|
5002
|
+
this._previous = void 0;
|
|
5003
|
+
};
|
|
5004
|
+
if (Error.prepareStackTrace) {
|
|
5005
|
+
chain.format.replace(Error.prepareStackTrace);
|
|
5006
|
+
}
|
|
5007
|
+
var SHORTCIRCUIT_FORMATER = false;
|
|
5008
|
+
function prepareStackTrace(error3, originalFrames) {
|
|
5009
|
+
if (SHORTCIRCUIT_CALLSITE)
|
|
5010
|
+
return originalFrames;
|
|
5011
|
+
if (SHORTCIRCUIT_FORMATER)
|
|
5012
|
+
return defaultFormater(error3, originalFrames);
|
|
5013
|
+
var frames = originalFrames.concat();
|
|
5014
|
+
frames = chain.extend._modify(error3, frames);
|
|
5015
|
+
frames = chain.filter._modify(error3, frames);
|
|
5016
|
+
frames = frames.slice(0, Error.stackTraceLimit);
|
|
5017
|
+
if (Object.isExtensible(error3)) {
|
|
5018
|
+
error3[originalCallSiteSymbol] = originalFrames;
|
|
5019
|
+
error3[mutatedCallSiteSymbol] = frames;
|
|
5020
|
+
}
|
|
5021
|
+
SHORTCIRCUIT_FORMATER = true;
|
|
5022
|
+
var format2 = chain.format._formater(error3, frames);
|
|
5023
|
+
SHORTCIRCUIT_FORMATER = false;
|
|
5024
|
+
return format2;
|
|
5025
|
+
}
|
|
5026
|
+
Object.defineProperty(Error, "prepareStackTrace", {
|
|
5027
|
+
"get": function() {
|
|
5028
|
+
return prepareStackTrace;
|
|
5029
|
+
},
|
|
5030
|
+
"set": function(formater) {
|
|
5031
|
+
if (formater === prepareStackTrace) {
|
|
5032
|
+
chain.format._roolback();
|
|
5033
|
+
} else {
|
|
5034
|
+
chain.format._backup();
|
|
5035
|
+
chain.format.replace(formater);
|
|
5036
|
+
}
|
|
5037
|
+
}
|
|
5038
|
+
});
|
|
5039
|
+
module2.exports = chain;
|
|
5040
|
+
}
|
|
5041
|
+
});
|
|
5042
|
+
|
|
5043
|
+
// ../../node_modules/stack-chain/index.js
|
|
5044
|
+
var require_stack_chain4 = __commonJS({
|
|
5045
|
+
"../../node_modules/stack-chain/index.js"(exports2, module2) {
|
|
5046
|
+
if (global._stackChain) {
|
|
5047
|
+
if (global._stackChain.version === require_package4().version) {
|
|
5048
|
+
module2.exports = global._stackChain;
|
|
5049
|
+
} else {
|
|
5050
|
+
throw new Error("Conflicting version of stack-chain found");
|
|
5051
|
+
}
|
|
5052
|
+
} else {
|
|
5053
|
+
module2.exports = global._stackChain = require_stack_chain3();
|
|
5054
|
+
}
|
|
5055
|
+
}
|
|
5056
|
+
});
|
|
5057
|
+
|
|
4859
5058
|
// ../../node_modules/cls-hooked/context-legacy.js
|
|
4860
5059
|
var require_context_legacy = __commonJS({
|
|
4861
5060
|
"../../node_modules/cls-hooked/context-legacy.js"(exports2, module2) {
|
|
@@ -5159,7 +5358,7 @@ var require_context_legacy = __commonJS({
|
|
|
5159
5358
|
}
|
|
5160
5359
|
}
|
|
5161
5360
|
if (DEBUG_CLS_HOOKED) {
|
|
5162
|
-
stackChain =
|
|
5361
|
+
stackChain = require_stack_chain4();
|
|
5163
5362
|
for (modifier in stackChain.filter._modifiers) {
|
|
5164
5363
|
stackChain.filter.deattach(modifier);
|
|
5165
5364
|
}
|
|
@@ -11949,11 +12148,11 @@ var require_applicationinsights = __commonJS({
|
|
|
11949
12148
|
});
|
|
11950
12149
|
|
|
11951
12150
|
// ../lib/telemetry/dist/package.json
|
|
11952
|
-
var
|
|
12151
|
+
var require_package5 = __commonJS({
|
|
11953
12152
|
"../lib/telemetry/dist/package.json"(exports2, module2) {
|
|
11954
12153
|
module2.exports = {
|
|
11955
12154
|
name: "@sap/ux-telemetry",
|
|
11956
|
-
version: "1.9.
|
|
12155
|
+
version: "1.9.6",
|
|
11957
12156
|
description: "SAP Fiori tools telemetry library",
|
|
11958
12157
|
main: "dist/src/index.js",
|
|
11959
12158
|
author: "SAP SE",
|
|
@@ -11978,20 +12177,20 @@ var require_package4 = __commonJS({
|
|
|
11978
12177
|
},
|
|
11979
12178
|
dependencies: {
|
|
11980
12179
|
"@sap-ux/store": "0.3.8",
|
|
11981
|
-
"@sap/ux-cds": "1.9.
|
|
11982
|
-
"@sap/ux-common-utils": "1.9.
|
|
11983
|
-
"@sap/ux-feature-toggle": "1.9.
|
|
11984
|
-
"@sap/ux-project-access": "1.9.
|
|
12180
|
+
"@sap/ux-cds": "1.9.6",
|
|
12181
|
+
"@sap/ux-common-utils": "1.9.6",
|
|
12182
|
+
"@sap/ux-feature-toggle": "1.9.6",
|
|
12183
|
+
"@sap/ux-project-access": "1.9.6",
|
|
11985
12184
|
applicationinsights: "1.4.1",
|
|
11986
12185
|
axios: "0.26.0",
|
|
11987
12186
|
"performance-now": "2.1.0",
|
|
11988
|
-
yaml: "2.
|
|
12187
|
+
yaml: "2.2.2"
|
|
11989
12188
|
},
|
|
11990
12189
|
devDependencies: {
|
|
11991
12190
|
memfs: "3.4.13",
|
|
11992
12191
|
"ts-jest": "29.0.5",
|
|
11993
12192
|
"ts-node": "8.5.2",
|
|
11994
|
-
typescript: "4.9.
|
|
12193
|
+
typescript: "4.9.5",
|
|
11995
12194
|
unionfs: "4.4.0"
|
|
11996
12195
|
},
|
|
11997
12196
|
files: [
|
|
@@ -12083,7 +12282,7 @@ var require_reporting = __commonJS({
|
|
|
12083
12282
|
exports2.reportEnableTelemetryOnOff = exports2.reportRuntimeError = void 0;
|
|
12084
12283
|
var EventName_1 = require_EventName();
|
|
12085
12284
|
var appInsights = __importStar(require_applicationinsights());
|
|
12086
|
-
var telemetryPackageJSON = __importStar(
|
|
12285
|
+
var telemetryPackageJSON = __importStar(require_package5());
|
|
12087
12286
|
var telemetryClientConfig_1 = require_telemetryClientConfig();
|
|
12088
12287
|
var parseErrorStack = (errorStack) => {
|
|
12089
12288
|
const regexps = [/sap-ux.+/gi, /[a-zA-Z-]+\/ide-extension\/.+/gi, /(\/telemetry\/.+)/gi];
|
|
@@ -15268,73 +15467,76 @@ var require_visit = __commonJS({
|
|
|
15268
15467
|
var SKIP = Symbol("skip children");
|
|
15269
15468
|
var REMOVE = Symbol("remove node");
|
|
15270
15469
|
function visit(node, visitor) {
|
|
15271
|
-
|
|
15272
|
-
visitor = Object.assign({
|
|
15273
|
-
Alias: visitor.Node,
|
|
15274
|
-
Map: visitor.Node,
|
|
15275
|
-
Scalar: visitor.Node,
|
|
15276
|
-
Seq: visitor.Node
|
|
15277
|
-
}, visitor.Value && {
|
|
15278
|
-
Map: visitor.Value,
|
|
15279
|
-
Scalar: visitor.Value,
|
|
15280
|
-
Seq: visitor.Value
|
|
15281
|
-
}, visitor.Collection && {
|
|
15282
|
-
Map: visitor.Collection,
|
|
15283
|
-
Seq: visitor.Collection
|
|
15284
|
-
}, visitor);
|
|
15285
|
-
}
|
|
15470
|
+
const visitor_ = initVisitor(visitor);
|
|
15286
15471
|
if (Node.isDocument(node)) {
|
|
15287
|
-
const cd =
|
|
15472
|
+
const cd = visit_(null, node.contents, visitor_, Object.freeze([node]));
|
|
15288
15473
|
if (cd === REMOVE)
|
|
15289
15474
|
node.contents = null;
|
|
15290
15475
|
} else
|
|
15291
|
-
|
|
15476
|
+
visit_(null, node, visitor_, Object.freeze([]));
|
|
15292
15477
|
}
|
|
15293
15478
|
visit.BREAK = BREAK;
|
|
15294
15479
|
visit.SKIP = SKIP;
|
|
15295
15480
|
visit.REMOVE = REMOVE;
|
|
15296
|
-
function
|
|
15297
|
-
|
|
15298
|
-
if (typeof visitor === "function")
|
|
15299
|
-
ctrl = visitor(key, node, path);
|
|
15300
|
-
else if (Node.isMap(node)) {
|
|
15301
|
-
if (visitor.Map)
|
|
15302
|
-
ctrl = visitor.Map(key, node, path);
|
|
15303
|
-
} else if (Node.isSeq(node)) {
|
|
15304
|
-
if (visitor.Seq)
|
|
15305
|
-
ctrl = visitor.Seq(key, node, path);
|
|
15306
|
-
} else if (Node.isPair(node)) {
|
|
15307
|
-
if (visitor.Pair)
|
|
15308
|
-
ctrl = visitor.Pair(key, node, path);
|
|
15309
|
-
} else if (Node.isScalar(node)) {
|
|
15310
|
-
if (visitor.Scalar)
|
|
15311
|
-
ctrl = visitor.Scalar(key, node, path);
|
|
15312
|
-
} else if (Node.isAlias(node)) {
|
|
15313
|
-
if (visitor.Alias)
|
|
15314
|
-
ctrl = visitor.Alias(key, node, path);
|
|
15315
|
-
}
|
|
15481
|
+
function visit_(key, node, visitor, path) {
|
|
15482
|
+
const ctrl = callVisitor(key, node, visitor, path);
|
|
15316
15483
|
if (Node.isNode(ctrl) || Node.isPair(ctrl)) {
|
|
15317
|
-
|
|
15318
|
-
|
|
15319
|
-
|
|
15320
|
-
|
|
15321
|
-
|
|
15322
|
-
|
|
15323
|
-
|
|
15324
|
-
|
|
15325
|
-
|
|
15326
|
-
|
|
15327
|
-
|
|
15328
|
-
|
|
15329
|
-
|
|
15484
|
+
replaceNode(key, path, ctrl);
|
|
15485
|
+
return visit_(key, ctrl, visitor, path);
|
|
15486
|
+
}
|
|
15487
|
+
if (typeof ctrl !== "symbol") {
|
|
15488
|
+
if (Node.isCollection(node)) {
|
|
15489
|
+
path = Object.freeze(path.concat(node));
|
|
15490
|
+
for (let i = 0; i < node.items.length; ++i) {
|
|
15491
|
+
const ci = visit_(i, node.items[i], visitor, path);
|
|
15492
|
+
if (typeof ci === "number")
|
|
15493
|
+
i = ci - 1;
|
|
15494
|
+
else if (ci === BREAK)
|
|
15495
|
+
return BREAK;
|
|
15496
|
+
else if (ci === REMOVE) {
|
|
15497
|
+
node.items.splice(i, 1);
|
|
15498
|
+
i -= 1;
|
|
15499
|
+
}
|
|
15500
|
+
}
|
|
15501
|
+
} else if (Node.isPair(node)) {
|
|
15502
|
+
path = Object.freeze(path.concat(node));
|
|
15503
|
+
const ck = visit_("key", node.key, visitor, path);
|
|
15504
|
+
if (ck === BREAK)
|
|
15505
|
+
return BREAK;
|
|
15506
|
+
else if (ck === REMOVE)
|
|
15507
|
+
node.key = null;
|
|
15508
|
+
const cv = visit_("value", node.value, visitor, path);
|
|
15509
|
+
if (cv === BREAK)
|
|
15510
|
+
return BREAK;
|
|
15511
|
+
else if (cv === REMOVE)
|
|
15512
|
+
node.value = null;
|
|
15330
15513
|
}
|
|
15331
|
-
|
|
15514
|
+
}
|
|
15515
|
+
return ctrl;
|
|
15516
|
+
}
|
|
15517
|
+
async function visitAsync(node, visitor) {
|
|
15518
|
+
const visitor_ = initVisitor(visitor);
|
|
15519
|
+
if (Node.isDocument(node)) {
|
|
15520
|
+
const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node]));
|
|
15521
|
+
if (cd === REMOVE)
|
|
15522
|
+
node.contents = null;
|
|
15523
|
+
} else
|
|
15524
|
+
await visitAsync_(null, node, visitor_, Object.freeze([]));
|
|
15525
|
+
}
|
|
15526
|
+
visitAsync.BREAK = BREAK;
|
|
15527
|
+
visitAsync.SKIP = SKIP;
|
|
15528
|
+
visitAsync.REMOVE = REMOVE;
|
|
15529
|
+
async function visitAsync_(key, node, visitor, path) {
|
|
15530
|
+
const ctrl = await callVisitor(key, node, visitor, path);
|
|
15531
|
+
if (Node.isNode(ctrl) || Node.isPair(ctrl)) {
|
|
15532
|
+
replaceNode(key, path, ctrl);
|
|
15533
|
+
return visitAsync_(key, ctrl, visitor, path);
|
|
15332
15534
|
}
|
|
15333
15535
|
if (typeof ctrl !== "symbol") {
|
|
15334
15536
|
if (Node.isCollection(node)) {
|
|
15335
15537
|
path = Object.freeze(path.concat(node));
|
|
15336
15538
|
for (let i = 0; i < node.items.length; ++i) {
|
|
15337
|
-
const ci =
|
|
15539
|
+
const ci = await visitAsync_(i, node.items[i], visitor, path);
|
|
15338
15540
|
if (typeof ci === "number")
|
|
15339
15541
|
i = ci - 1;
|
|
15340
15542
|
else if (ci === BREAK)
|
|
@@ -15346,12 +15548,12 @@ var require_visit = __commonJS({
|
|
|
15346
15548
|
}
|
|
15347
15549
|
} else if (Node.isPair(node)) {
|
|
15348
15550
|
path = Object.freeze(path.concat(node));
|
|
15349
|
-
const ck =
|
|
15551
|
+
const ck = await visitAsync_("key", node.key, visitor, path);
|
|
15350
15552
|
if (ck === BREAK)
|
|
15351
15553
|
return BREAK;
|
|
15352
15554
|
else if (ck === REMOVE)
|
|
15353
15555
|
node.key = null;
|
|
15354
|
-
const cv =
|
|
15556
|
+
const cv = await visitAsync_("value", node.value, visitor, path);
|
|
15355
15557
|
if (cv === BREAK)
|
|
15356
15558
|
return BREAK;
|
|
15357
15559
|
else if (cv === REMOVE)
|
|
@@ -15360,7 +15562,58 @@ var require_visit = __commonJS({
|
|
|
15360
15562
|
}
|
|
15361
15563
|
return ctrl;
|
|
15362
15564
|
}
|
|
15565
|
+
function initVisitor(visitor) {
|
|
15566
|
+
if (typeof visitor === "object" && (visitor.Collection || visitor.Node || visitor.Value)) {
|
|
15567
|
+
return Object.assign({
|
|
15568
|
+
Alias: visitor.Node,
|
|
15569
|
+
Map: visitor.Node,
|
|
15570
|
+
Scalar: visitor.Node,
|
|
15571
|
+
Seq: visitor.Node
|
|
15572
|
+
}, visitor.Value && {
|
|
15573
|
+
Map: visitor.Value,
|
|
15574
|
+
Scalar: visitor.Value,
|
|
15575
|
+
Seq: visitor.Value
|
|
15576
|
+
}, visitor.Collection && {
|
|
15577
|
+
Map: visitor.Collection,
|
|
15578
|
+
Seq: visitor.Collection
|
|
15579
|
+
}, visitor);
|
|
15580
|
+
}
|
|
15581
|
+
return visitor;
|
|
15582
|
+
}
|
|
15583
|
+
function callVisitor(key, node, visitor, path) {
|
|
15584
|
+
var _a2, _b, _c, _d, _e;
|
|
15585
|
+
if (typeof visitor === "function")
|
|
15586
|
+
return visitor(key, node, path);
|
|
15587
|
+
if (Node.isMap(node))
|
|
15588
|
+
return (_a2 = visitor.Map) == null ? void 0 : _a2.call(visitor, key, node, path);
|
|
15589
|
+
if (Node.isSeq(node))
|
|
15590
|
+
return (_b = visitor.Seq) == null ? void 0 : _b.call(visitor, key, node, path);
|
|
15591
|
+
if (Node.isPair(node))
|
|
15592
|
+
return (_c = visitor.Pair) == null ? void 0 : _c.call(visitor, key, node, path);
|
|
15593
|
+
if (Node.isScalar(node))
|
|
15594
|
+
return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path);
|
|
15595
|
+
if (Node.isAlias(node))
|
|
15596
|
+
return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node, path);
|
|
15597
|
+
return void 0;
|
|
15598
|
+
}
|
|
15599
|
+
function replaceNode(key, path, node) {
|
|
15600
|
+
const parent = path[path.length - 1];
|
|
15601
|
+
if (Node.isCollection(parent)) {
|
|
15602
|
+
parent.items[key] = node;
|
|
15603
|
+
} else if (Node.isPair(parent)) {
|
|
15604
|
+
if (key === "key")
|
|
15605
|
+
parent.key = node;
|
|
15606
|
+
else
|
|
15607
|
+
parent.value = node;
|
|
15608
|
+
} else if (Node.isDocument(parent)) {
|
|
15609
|
+
parent.contents = node;
|
|
15610
|
+
} else {
|
|
15611
|
+
const pt = Node.isAlias(parent) ? "alias" : "scalar";
|
|
15612
|
+
throw new Error(`Cannot replace node with ${pt} parent`);
|
|
15613
|
+
}
|
|
15614
|
+
}
|
|
15363
15615
|
exports2.visit = visit;
|
|
15616
|
+
exports2.visitAsync = visitAsync;
|
|
15364
15617
|
}
|
|
15365
15618
|
});
|
|
15366
15619
|
|
|
@@ -15381,13 +15634,14 @@ var require_directives = __commonJS({
|
|
|
15381
15634
|
var escapeTagName = (tn) => tn.replace(/[!,[\]{}]/g, (ch) => escapeChars[ch]);
|
|
15382
15635
|
var Directives = class {
|
|
15383
15636
|
constructor(yaml, tags) {
|
|
15384
|
-
this.
|
|
15637
|
+
this.docStart = null;
|
|
15638
|
+
this.docEnd = false;
|
|
15385
15639
|
this.yaml = Object.assign({}, Directives.defaultYaml, yaml);
|
|
15386
15640
|
this.tags = Object.assign({}, Directives.defaultTags, tags);
|
|
15387
15641
|
}
|
|
15388
15642
|
clone() {
|
|
15389
15643
|
const copy3 = new Directives(this.yaml, this.tags);
|
|
15390
|
-
copy3.
|
|
15644
|
+
copy3.docStart = this.docStart;
|
|
15391
15645
|
return copy3;
|
|
15392
15646
|
}
|
|
15393
15647
|
atDocument() {
|
|
@@ -15428,7 +15682,7 @@ var require_directives = __commonJS({
|
|
|
15428
15682
|
}
|
|
15429
15683
|
case "%YAML": {
|
|
15430
15684
|
this.yaml.explicit = true;
|
|
15431
|
-
if (parts.length
|
|
15685
|
+
if (parts.length !== 1) {
|
|
15432
15686
|
onError(0, "%YAML directive should contain exactly one part");
|
|
15433
15687
|
return false;
|
|
15434
15688
|
}
|
|
@@ -15437,7 +15691,8 @@ var require_directives = __commonJS({
|
|
|
15437
15691
|
this.yaml.version = version;
|
|
15438
15692
|
return true;
|
|
15439
15693
|
} else {
|
|
15440
|
-
|
|
15694
|
+
const isValid = /^\d+\.\d+$/.test(version);
|
|
15695
|
+
onError(6, `Unsupported YAML version ${version}`, isValid);
|
|
15441
15696
|
return false;
|
|
15442
15697
|
}
|
|
15443
15698
|
}
|
|
@@ -15545,7 +15800,7 @@ var require_anchors = __commonJS({
|
|
|
15545
15800
|
const sourceObjects = /* @__PURE__ */ new Map();
|
|
15546
15801
|
let prevAnchors = null;
|
|
15547
15802
|
return {
|
|
15548
|
-
onAnchor(source) {
|
|
15803
|
+
onAnchor: (source) => {
|
|
15549
15804
|
aliasObjects.push(source);
|
|
15550
15805
|
if (!prevAnchors)
|
|
15551
15806
|
prevAnchors = anchorNames(doc);
|
|
@@ -15553,7 +15808,7 @@ var require_anchors = __commonJS({
|
|
|
15553
15808
|
prevAnchors.add(anchor);
|
|
15554
15809
|
return anchor;
|
|
15555
15810
|
},
|
|
15556
|
-
setAnchors() {
|
|
15811
|
+
setAnchors: () => {
|
|
15557
15812
|
for (const source of aliasObjects) {
|
|
15558
15813
|
const ref = sourceObjects.get(source);
|
|
15559
15814
|
if (typeof ref === "object" && ref.anchor && (Node.isScalar(ref.node) || Node.isCollection(ref.node))) {
|
|
@@ -15689,7 +15944,7 @@ var require_toJS = __commonJS({
|
|
|
15689
15944
|
ctx.onCreate(res);
|
|
15690
15945
|
return res;
|
|
15691
15946
|
}
|
|
15692
|
-
if (typeof value === "bigint" && !(ctx
|
|
15947
|
+
if (typeof value === "bigint" && !(ctx == null ? void 0 : ctx.keep))
|
|
15693
15948
|
return Number(value);
|
|
15694
15949
|
return value;
|
|
15695
15950
|
}
|
|
@@ -15710,7 +15965,7 @@ var require_Scalar = __commonJS({
|
|
|
15710
15965
|
this.value = value;
|
|
15711
15966
|
}
|
|
15712
15967
|
toJSON(arg, ctx) {
|
|
15713
|
-
return ctx
|
|
15968
|
+
return (ctx == null ? void 0 : ctx.keep) ? this.value : toJS.toJS(this.value, arg, ctx);
|
|
15714
15969
|
}
|
|
15715
15970
|
toString() {
|
|
15716
15971
|
return String(this.value);
|
|
@@ -15737,12 +15992,15 @@ var require_createNode = __commonJS({
|
|
|
15737
15992
|
function findTagObject(value, tagName, tags) {
|
|
15738
15993
|
if (tagName) {
|
|
15739
15994
|
const match = tags.filter((t) => t.tag === tagName);
|
|
15740
|
-
const tagObj = match.find((t) => !t.format)
|
|
15995
|
+
const tagObj = match.find((t) => !t.format) ?? match[0];
|
|
15741
15996
|
if (!tagObj)
|
|
15742
15997
|
throw new Error(`Tag ${tagName} not found`);
|
|
15743
15998
|
return tagObj;
|
|
15744
15999
|
}
|
|
15745
|
-
return tags.find((t) =>
|
|
16000
|
+
return tags.find((t) => {
|
|
16001
|
+
var _a2;
|
|
16002
|
+
return ((_a2 = t.identify) == null ? void 0 : _a2.call(t, value)) && !t.format;
|
|
16003
|
+
});
|
|
15746
16004
|
}
|
|
15747
16005
|
function createNode(value, tagName, ctx) {
|
|
15748
16006
|
var _a2, _b;
|
|
@@ -15751,11 +16009,11 @@ var require_createNode = __commonJS({
|
|
|
15751
16009
|
if (Node.isNode(value))
|
|
15752
16010
|
return value;
|
|
15753
16011
|
if (Node.isPair(value)) {
|
|
15754
|
-
const map = (_b = (_a2 = ctx.schema[Node.MAP]).createNode)
|
|
16012
|
+
const map = (_b = (_a2 = ctx.schema[Node.MAP]).createNode) == null ? void 0 : _b.call(_a2, ctx.schema, null, ctx);
|
|
15755
16013
|
map.items.push(value);
|
|
15756
16014
|
return map;
|
|
15757
16015
|
}
|
|
15758
|
-
if (value instanceof String || value instanceof Number || value instanceof Boolean || typeof BigInt
|
|
16016
|
+
if (value instanceof String || value instanceof Number || value instanceof Boolean || typeof BigInt !== "undefined" && value instanceof BigInt) {
|
|
15759
16017
|
value = value.valueOf();
|
|
15760
16018
|
}
|
|
15761
16019
|
const { aliasDuplicateObjects, onAnchor, onTagObj, schema, sourceObjects } = ctx;
|
|
@@ -15771,12 +16029,13 @@ var require_createNode = __commonJS({
|
|
|
15771
16029
|
sourceObjects.set(value, ref);
|
|
15772
16030
|
}
|
|
15773
16031
|
}
|
|
15774
|
-
if (tagName
|
|
16032
|
+
if (tagName == null ? void 0 : tagName.startsWith("!!"))
|
|
15775
16033
|
tagName = defaultTagPrefix + tagName.slice(2);
|
|
15776
16034
|
let tagObj = findTagObject(value, tagName, schema.tags);
|
|
15777
16035
|
if (!tagObj) {
|
|
15778
|
-
if (value && typeof value.toJSON === "function")
|
|
16036
|
+
if (value && typeof value.toJSON === "function") {
|
|
15779
16037
|
value = value.toJSON();
|
|
16038
|
+
}
|
|
15780
16039
|
if (!value || typeof value !== "object") {
|
|
15781
16040
|
const node2 = new Scalar.Scalar(value);
|
|
15782
16041
|
if (ref)
|
|
@@ -15789,7 +16048,7 @@ var require_createNode = __commonJS({
|
|
|
15789
16048
|
onTagObj(tagObj);
|
|
15790
16049
|
delete ctx.onTagObj;
|
|
15791
16050
|
}
|
|
15792
|
-
const node = (tagObj
|
|
16051
|
+
const node = (tagObj == null ? void 0 : tagObj.createNode) ? tagObj.createNode(ctx.schema, value, ctx) : new Scalar.Scalar(value);
|
|
15793
16052
|
if (tagName)
|
|
15794
16053
|
node.tag = tagName;
|
|
15795
16054
|
if (ref)
|
|
@@ -15927,7 +16186,7 @@ var require_stringifyComment = __commonJS({
|
|
|
15927
16186
|
return comment.substring(1);
|
|
15928
16187
|
return indent ? comment.replace(/^(?! *$)/gm, indent) : comment;
|
|
15929
16188
|
}
|
|
15930
|
-
var lineComment = (str, indent, comment) => comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
|
|
16189
|
+
var lineComment = (str, indent, comment) => str.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
|
|
15931
16190
|
exports2.indentComment = indentComment;
|
|
15932
16191
|
exports2.lineComment = lineComment;
|
|
15933
16192
|
exports2.stringifyComment = stringifyComment;
|
|
@@ -16066,8 +16325,8 @@ var require_stringifyString = __commonJS({
|
|
|
16066
16325
|
"use strict";
|
|
16067
16326
|
var Scalar = require_Scalar();
|
|
16068
16327
|
var foldFlowLines = require_foldFlowLines();
|
|
16069
|
-
var getFoldOptions = (ctx) => ({
|
|
16070
|
-
indentAtStart: ctx.indentAtStart,
|
|
16328
|
+
var getFoldOptions = (ctx, isBlock) => ({
|
|
16329
|
+
indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart,
|
|
16071
16330
|
lineWidth: ctx.options.lineWidth,
|
|
16072
16331
|
minContentWidth: ctx.options.minContentWidth
|
|
16073
16332
|
});
|
|
@@ -16168,7 +16427,7 @@ var require_stringifyString = __commonJS({
|
|
|
16168
16427
|
}
|
|
16169
16428
|
}
|
|
16170
16429
|
str = start ? str + json.slice(start) : json;
|
|
16171
|
-
return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_QUOTED, getFoldOptions(ctx));
|
|
16430
|
+
return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_QUOTED, getFoldOptions(ctx, false));
|
|
16172
16431
|
}
|
|
16173
16432
|
function singleQuotedString(value, ctx) {
|
|
16174
16433
|
if (ctx.options.singleQuote === false || ctx.implicitKey && value.includes("\n") || /[ \t]\n|\n[ \t]/.test(value))
|
|
@@ -16176,7 +16435,7 @@ var require_stringifyString = __commonJS({
|
|
|
16176
16435
|
const indent = ctx.indent || (containsDocumentMarker(value) ? " " : "");
|
|
16177
16436
|
const res = "'" + value.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
16178
16437
|
${indent}`) + "'";
|
|
16179
|
-
return ctx.implicitKey ? res : foldFlowLines.foldFlowLines(res, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx));
|
|
16438
|
+
return ctx.implicitKey ? res : foldFlowLines.foldFlowLines(res, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false));
|
|
16180
16439
|
}
|
|
16181
16440
|
function quotedString(value, ctx) {
|
|
16182
16441
|
const { singleQuote } = ctx.options;
|
|
@@ -16258,38 +16517,42 @@ ${indent}`) + "'";
|
|
|
16258
16517
|
${indent}${start}${value}${end}`;
|
|
16259
16518
|
}
|
|
16260
16519
|
value = value.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${indent}`);
|
|
16261
|
-
const body = foldFlowLines.foldFlowLines(`${start}${value}${end}`, indent, foldFlowLines.FOLD_BLOCK, getFoldOptions(ctx));
|
|
16520
|
+
const body = foldFlowLines.foldFlowLines(`${start}${value}${end}`, indent, foldFlowLines.FOLD_BLOCK, getFoldOptions(ctx, true));
|
|
16262
16521
|
return `${header}
|
|
16263
16522
|
${indent}${body}`;
|
|
16264
16523
|
}
|
|
16265
16524
|
function plainString(item, ctx, onComment, onChompKeep) {
|
|
16266
16525
|
const { type, value } = item;
|
|
16267
|
-
const { actualString, implicitKey, indent, inFlow } = ctx;
|
|
16526
|
+
const { actualString, implicitKey, indent, indentStep, inFlow } = ctx;
|
|
16268
16527
|
if (implicitKey && /[\n[\]{},]/.test(value) || inFlow && /[[\]{},]/.test(value)) {
|
|
16269
16528
|
return quotedString(value, ctx);
|
|
16270
16529
|
}
|
|
16271
16530
|
if (!value || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) {
|
|
16272
|
-
return implicitKey || inFlow || value.
|
|
16531
|
+
return implicitKey || inFlow || !value.includes("\n") ? quotedString(value, ctx) : blockString(item, ctx, onComment, onChompKeep);
|
|
16273
16532
|
}
|
|
16274
|
-
if (!implicitKey && !inFlow && type !== Scalar.Scalar.PLAIN && value.
|
|
16533
|
+
if (!implicitKey && !inFlow && type !== Scalar.Scalar.PLAIN && value.includes("\n")) {
|
|
16275
16534
|
return blockString(item, ctx, onComment, onChompKeep);
|
|
16276
16535
|
}
|
|
16277
|
-
if (
|
|
16278
|
-
|
|
16279
|
-
|
|
16536
|
+
if (containsDocumentMarker(value)) {
|
|
16537
|
+
if (indent === "") {
|
|
16538
|
+
ctx.forceBlockIndent = true;
|
|
16539
|
+
return blockString(item, ctx, onComment, onChompKeep);
|
|
16540
|
+
} else if (implicitKey && indent === indentStep) {
|
|
16541
|
+
return quotedString(value, ctx);
|
|
16542
|
+
}
|
|
16280
16543
|
}
|
|
16281
16544
|
const str = value.replace(/\n+/g, `$&
|
|
16282
16545
|
${indent}`);
|
|
16283
16546
|
if (actualString) {
|
|
16284
16547
|
const test = (tag) => {
|
|
16285
16548
|
var _a2;
|
|
16286
|
-
return tag.default && tag.tag !== "tag:yaml.org,2002:str" && ((_a2 = tag.test)
|
|
16549
|
+
return tag.default && tag.tag !== "tag:yaml.org,2002:str" && ((_a2 = tag.test) == null ? void 0 : _a2.test(str));
|
|
16287
16550
|
};
|
|
16288
16551
|
const { compat, tags } = ctx.doc.schema;
|
|
16289
|
-
if (tags.some(test) || (compat
|
|
16552
|
+
if (tags.some(test) || (compat == null ? void 0 : compat.some(test)))
|
|
16290
16553
|
return quotedString(value, ctx);
|
|
16291
16554
|
}
|
|
16292
|
-
return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx));
|
|
16555
|
+
return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false));
|
|
16293
16556
|
}
|
|
16294
16557
|
function stringifyString(item, ctx, onComment, onChompKeep) {
|
|
16295
16558
|
const { implicitKey, inFlow } = ctx;
|
|
@@ -16346,6 +16609,7 @@ var require_stringify = __commonJS({
|
|
|
16346
16609
|
doubleQuotedAsJSON: false,
|
|
16347
16610
|
doubleQuotedMinMultiLineLength: 40,
|
|
16348
16611
|
falseStr: "false",
|
|
16612
|
+
flowCollectionPadding: true,
|
|
16349
16613
|
indentSeq: true,
|
|
16350
16614
|
lineWidth: 80,
|
|
16351
16615
|
minContentWidth: 20,
|
|
@@ -16369,6 +16633,7 @@ var require_stringify = __commonJS({
|
|
|
16369
16633
|
return {
|
|
16370
16634
|
anchors: /* @__PURE__ */ new Set(),
|
|
16371
16635
|
doc,
|
|
16636
|
+
flowCollectionPadding: opt.flowCollectionPadding ? " " : "",
|
|
16372
16637
|
indent: "",
|
|
16373
16638
|
indentStep: typeof opt.indent === "number" ? " ".repeat(opt.indent) : " ",
|
|
16374
16639
|
inFlow,
|
|
@@ -16376,23 +16641,27 @@ var require_stringify = __commonJS({
|
|
|
16376
16641
|
};
|
|
16377
16642
|
}
|
|
16378
16643
|
function getTagObject(tags, item) {
|
|
16644
|
+
var _a2;
|
|
16379
16645
|
if (item.tag) {
|
|
16380
16646
|
const match = tags.filter((t) => t.tag === item.tag);
|
|
16381
16647
|
if (match.length > 0)
|
|
16382
|
-
return match.find((t) => t.format === item.format)
|
|
16648
|
+
return match.find((t) => t.format === item.format) ?? match[0];
|
|
16383
16649
|
}
|
|
16384
16650
|
let tagObj = void 0;
|
|
16385
16651
|
let obj;
|
|
16386
16652
|
if (Node.isScalar(item)) {
|
|
16387
16653
|
obj = item.value;
|
|
16388
|
-
const match = tags.filter((t) =>
|
|
16389
|
-
|
|
16654
|
+
const match = tags.filter((t) => {
|
|
16655
|
+
var _a3;
|
|
16656
|
+
return (_a3 = t.identify) == null ? void 0 : _a3.call(t, obj);
|
|
16657
|
+
});
|
|
16658
|
+
tagObj = match.find((t) => t.format === item.format) ?? match.find((t) => !t.format);
|
|
16390
16659
|
} else {
|
|
16391
16660
|
obj = item;
|
|
16392
16661
|
tagObj = tags.find((t) => t.nodeClass && obj instanceof t.nodeClass);
|
|
16393
16662
|
}
|
|
16394
16663
|
if (!tagObj) {
|
|
16395
|
-
const name = obj
|
|
16664
|
+
const name = ((_a2 = obj == null ? void 0 : obj.constructor) == null ? void 0 : _a2.name) ?? typeof obj;
|
|
16396
16665
|
throw new Error(`Tag not resolved for ${name} value`);
|
|
16397
16666
|
}
|
|
16398
16667
|
return tagObj;
|
|
@@ -16406,7 +16675,7 @@ var require_stringify = __commonJS({
|
|
|
16406
16675
|
anchors$1.add(anchor);
|
|
16407
16676
|
props.push(`&${anchor}`);
|
|
16408
16677
|
}
|
|
16409
|
-
const tag = node.tag
|
|
16678
|
+
const tag = node.tag ? node.tag : tagObj.default ? null : tagObj.tag;
|
|
16410
16679
|
if (tag)
|
|
16411
16680
|
props.push(doc.directives.tagString(tag));
|
|
16412
16681
|
return props.join(" ");
|
|
@@ -16418,7 +16687,7 @@ var require_stringify = __commonJS({
|
|
|
16418
16687
|
if (Node.isAlias(item)) {
|
|
16419
16688
|
if (ctx.doc.directives)
|
|
16420
16689
|
return item.toString(ctx);
|
|
16421
|
-
if ((_a2 = ctx.resolvedAliases)
|
|
16690
|
+
if ((_a2 = ctx.resolvedAliases) == null ? void 0 : _a2.has(item)) {
|
|
16422
16691
|
throw new TypeError(`Cannot stringify circular structure without alias nodes`);
|
|
16423
16692
|
} else {
|
|
16424
16693
|
if (ctx.resolvedAliases)
|
|
@@ -16434,7 +16703,7 @@ var require_stringify = __commonJS({
|
|
|
16434
16703
|
tagObj = getTagObject(ctx.doc.schema.tags, node);
|
|
16435
16704
|
const props = stringifyProps(node, tagObj, ctx);
|
|
16436
16705
|
if (props.length > 0)
|
|
16437
|
-
ctx.indentAtStart = (ctx.indentAtStart
|
|
16706
|
+
ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
|
|
16438
16707
|
const str = typeof tagObj.stringify === "function" ? tagObj.stringify(node, ctx, onComment, onChompKeep) : Node.isScalar(node) ? stringifyString.stringifyString(node, ctx, onComment, onChompKeep) : node.toString(ctx, onComment, onChompKeep);
|
|
16439
16708
|
if (!props)
|
|
16440
16709
|
return str;
|
|
@@ -16484,7 +16753,7 @@ var require_stringifyPair = __commonJS({
|
|
|
16484
16753
|
if (allNullValues || value == null) {
|
|
16485
16754
|
if (keyCommentDone && onComment)
|
|
16486
16755
|
onComment();
|
|
16487
|
-
return explicitKey ? `? ${str}` : str;
|
|
16756
|
+
return str === "" ? "?" : explicitKey ? `? ${str}` : str;
|
|
16488
16757
|
}
|
|
16489
16758
|
} else if (allNullValues && !simpleKeys || value == null && explicitKey) {
|
|
16490
16759
|
str = `? ${str}`;
|
|
@@ -16506,40 +16775,64 @@ ${indent}:`;
|
|
|
16506
16775
|
if (keyComment)
|
|
16507
16776
|
str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
|
|
16508
16777
|
}
|
|
16509
|
-
let vcb
|
|
16510
|
-
let valueComment = null;
|
|
16778
|
+
let vsb, vcb, valueComment;
|
|
16511
16779
|
if (Node.isNode(value)) {
|
|
16512
|
-
|
|
16513
|
-
|
|
16514
|
-
if (value.commentBefore) {
|
|
16515
|
-
const cs = commentString(value.commentBefore);
|
|
16516
|
-
vcb += `
|
|
16517
|
-
${stringifyComment.indentComment(cs, ctx.indent)}`;
|
|
16518
|
-
}
|
|
16780
|
+
vsb = !!value.spaceBefore;
|
|
16781
|
+
vcb = value.commentBefore;
|
|
16519
16782
|
valueComment = value.comment;
|
|
16520
|
-
} else
|
|
16521
|
-
|
|
16783
|
+
} else {
|
|
16784
|
+
vsb = false;
|
|
16785
|
+
vcb = null;
|
|
16786
|
+
valueComment = null;
|
|
16787
|
+
if (value && typeof value === "object")
|
|
16788
|
+
value = doc.createNode(value);
|
|
16522
16789
|
}
|
|
16523
16790
|
ctx.implicitKey = false;
|
|
16524
16791
|
if (!explicitKey && !keyComment && Node.isScalar(value))
|
|
16525
16792
|
ctx.indentAtStart = str.length + 1;
|
|
16526
16793
|
chompKeep = false;
|
|
16527
16794
|
if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && Node.isSeq(value) && !value.flow && !value.tag && !value.anchor) {
|
|
16528
|
-
ctx.indent = ctx.indent.
|
|
16795
|
+
ctx.indent = ctx.indent.substring(2);
|
|
16529
16796
|
}
|
|
16530
16797
|
let valueCommentDone = false;
|
|
16531
16798
|
const valueStr = stringify.stringify(value, ctx, () => valueCommentDone = true, () => chompKeep = true);
|
|
16532
16799
|
let ws = " ";
|
|
16533
|
-
if (
|
|
16534
|
-
ws =
|
|
16800
|
+
if (keyComment || vsb || vcb) {
|
|
16801
|
+
ws = vsb ? "\n" : "";
|
|
16802
|
+
if (vcb) {
|
|
16803
|
+
const cs = commentString(vcb);
|
|
16804
|
+
ws += `
|
|
16805
|
+
${stringifyComment.indentComment(cs, ctx.indent)}`;
|
|
16806
|
+
}
|
|
16807
|
+
if (valueStr === "" && !ctx.inFlow) {
|
|
16808
|
+
if (ws === "\n")
|
|
16809
|
+
ws = "\n\n";
|
|
16810
|
+
} else {
|
|
16811
|
+
ws += `
|
|
16535
16812
|
${ctx.indent}`;
|
|
16813
|
+
}
|
|
16536
16814
|
} else if (!explicitKey && Node.isCollection(value)) {
|
|
16537
|
-
const
|
|
16538
|
-
|
|
16539
|
-
|
|
16815
|
+
const vs0 = valueStr[0];
|
|
16816
|
+
const nl0 = valueStr.indexOf("\n");
|
|
16817
|
+
const hasNewline = nl0 !== -1;
|
|
16818
|
+
const flow = ctx.inFlow ?? value.flow ?? value.items.length === 0;
|
|
16819
|
+
if (hasNewline || !flow) {
|
|
16820
|
+
let hasPropsLine = false;
|
|
16821
|
+
if (hasNewline && (vs0 === "&" || vs0 === "!")) {
|
|
16822
|
+
let sp0 = valueStr.indexOf(" ");
|
|
16823
|
+
if (vs0 === "&" && sp0 !== -1 && sp0 < nl0 && valueStr[sp0 + 1] === "!") {
|
|
16824
|
+
sp0 = valueStr.indexOf(" ", sp0 + 1);
|
|
16825
|
+
}
|
|
16826
|
+
if (sp0 === -1 || nl0 < sp0)
|
|
16827
|
+
hasPropsLine = true;
|
|
16828
|
+
}
|
|
16829
|
+
if (!hasPropsLine)
|
|
16830
|
+
ws = `
|
|
16540
16831
|
${ctx.indent}`;
|
|
16541
|
-
|
|
16832
|
+
}
|
|
16833
|
+
} else if (valueStr === "" || valueStr[0] === "\n") {
|
|
16542
16834
|
ws = "";
|
|
16835
|
+
}
|
|
16543
16836
|
str += ws + valueStr;
|
|
16544
16837
|
if (ctx.inFlow) {
|
|
16545
16838
|
if (valueCommentDone && onComment)
|
|
@@ -16587,7 +16880,7 @@ var require_addPairToJSMap = __commonJS({
|
|
|
16587
16880
|
var toJS = require_toJS();
|
|
16588
16881
|
var MERGE_KEY = "<<";
|
|
16589
16882
|
function addPairToJSMap(ctx, map, { key, value }) {
|
|
16590
|
-
if (ctx
|
|
16883
|
+
if ((ctx == null ? void 0 : ctx.doc.schema.merge) && isMergeKey(key)) {
|
|
16591
16884
|
value = Node.isAlias(value) ? value.resolve(ctx.doc) : value;
|
|
16592
16885
|
if (Node.isSeq(value))
|
|
16593
16886
|
for (const it of value.items)
|
|
@@ -16698,11 +16991,11 @@ var require_Pair = __commonJS({
|
|
|
16698
16991
|
return new Pair(key, value);
|
|
16699
16992
|
}
|
|
16700
16993
|
toJSON(_45, ctx) {
|
|
16701
|
-
const pair = ctx
|
|
16994
|
+
const pair = (ctx == null ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {};
|
|
16702
16995
|
return addPairToJSMap.addPairToJSMap(ctx, pair, this);
|
|
16703
16996
|
}
|
|
16704
16997
|
toString(ctx, onComment, onChompKeep) {
|
|
16705
|
-
return ctx
|
|
16998
|
+
return (ctx == null ? void 0 : ctx.doc) ? stringifyPair.stringifyPair(this, ctx, onComment, onChompKeep) : JSON.stringify(this);
|
|
16706
16999
|
}
|
|
16707
17000
|
};
|
|
16708
17001
|
exports2.Pair = Pair;
|
|
@@ -16710,23 +17003,6 @@ var require_Pair = __commonJS({
|
|
|
16710
17003
|
}
|
|
16711
17004
|
});
|
|
16712
17005
|
|
|
16713
|
-
// ../../node_modules/yaml/dist/options.js
|
|
16714
|
-
var require_options = __commonJS({
|
|
16715
|
-
"../../node_modules/yaml/dist/options.js"(exports2) {
|
|
16716
|
-
"use strict";
|
|
16717
|
-
var defaultOptions = {
|
|
16718
|
-
intAsBigInt: false,
|
|
16719
|
-
keepSourceTokens: false,
|
|
16720
|
-
logLevel: "warn",
|
|
16721
|
-
prettyErrors: true,
|
|
16722
|
-
strict: true,
|
|
16723
|
-
uniqueKeys: true,
|
|
16724
|
-
version: "1.2"
|
|
16725
|
-
};
|
|
16726
|
-
exports2.defaultOptions = defaultOptions;
|
|
16727
|
-
}
|
|
16728
|
-
});
|
|
16729
|
-
|
|
16730
17006
|
// ../../node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
16731
17007
|
var require_stringifyCollection = __commonJS({
|
|
16732
17008
|
"../../node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
|
|
@@ -16736,8 +17012,7 @@ var require_stringifyCollection = __commonJS({
|
|
|
16736
17012
|
var stringify = require_stringify();
|
|
16737
17013
|
var stringifyComment = require_stringifyComment();
|
|
16738
17014
|
function stringifyCollection(collection, ctx, options2) {
|
|
16739
|
-
|
|
16740
|
-
const flow = (_a2 = ctx.inFlow) !== null && _a2 !== void 0 ? _a2 : collection.flow;
|
|
17015
|
+
const flow = ctx.inFlow ?? collection.flow;
|
|
16741
17016
|
const stringify2 = flow ? stringifyFlowCollection : stringifyBlockCollection;
|
|
16742
17017
|
return stringify2(collection, ctx, options2);
|
|
16743
17018
|
}
|
|
@@ -16791,7 +17066,7 @@ ${indent}${line}` : "\n";
|
|
|
16791
17066
|
return str;
|
|
16792
17067
|
}
|
|
16793
17068
|
function stringifyFlowCollection({ comment, items }, ctx, { flowChars, itemIndent, onComment }) {
|
|
16794
|
-
const { indent, indentStep, options: { commentString } } = ctx;
|
|
17069
|
+
const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx;
|
|
16795
17070
|
itemIndent += indentStep;
|
|
16796
17071
|
const itemCtx = Object.assign({}, ctx, {
|
|
16797
17072
|
indent: itemIndent,
|
|
@@ -16858,11 +17133,11 @@ ${indentStep}${indent}${line}` : "\n";
|
|
|
16858
17133
|
str += `
|
|
16859
17134
|
${indent}${end}`;
|
|
16860
17135
|
} else {
|
|
16861
|
-
str = `${start}
|
|
17136
|
+
str = `${start}${fcPadding}${lines.join(" ")}${fcPadding}${end}`;
|
|
16862
17137
|
}
|
|
16863
17138
|
}
|
|
16864
17139
|
if (comment) {
|
|
16865
|
-
str += stringifyComment.lineComment(str, commentString(comment)
|
|
17140
|
+
str += stringifyComment.lineComment(str, indent, commentString(comment));
|
|
16866
17141
|
if (onComment)
|
|
16867
17142
|
onComment();
|
|
16868
17143
|
}
|
|
@@ -16903,23 +17178,24 @@ var require_YAMLMap = __commonJS({
|
|
|
16903
17178
|
return void 0;
|
|
16904
17179
|
}
|
|
16905
17180
|
var YAMLMap = class extends Collection.Collection {
|
|
17181
|
+
static get tagName() {
|
|
17182
|
+
return "tag:yaml.org,2002:map";
|
|
17183
|
+
}
|
|
16906
17184
|
constructor(schema) {
|
|
16907
17185
|
super(Node.MAP, schema);
|
|
16908
17186
|
this.items = [];
|
|
16909
17187
|
}
|
|
16910
|
-
static get tagName() {
|
|
16911
|
-
return "tag:yaml.org,2002:map";
|
|
16912
|
-
}
|
|
16913
17188
|
add(pair, overwrite) {
|
|
17189
|
+
var _a2;
|
|
16914
17190
|
let _pair;
|
|
16915
17191
|
if (Node.isPair(pair))
|
|
16916
17192
|
_pair = pair;
|
|
16917
17193
|
else if (!pair || typeof pair !== "object" || !("key" in pair)) {
|
|
16918
|
-
_pair = new Pair.Pair(pair, pair.value);
|
|
17194
|
+
_pair = new Pair.Pair(pair, pair == null ? void 0 : pair.value);
|
|
16919
17195
|
} else
|
|
16920
17196
|
_pair = new Pair.Pair(pair.key, pair.value);
|
|
16921
17197
|
const prev = findPair(this.items, _pair.key);
|
|
16922
|
-
const sortEntries = this.schema
|
|
17198
|
+
const sortEntries = (_a2 = this.schema) == null ? void 0 : _a2.sortMapEntries;
|
|
16923
17199
|
if (prev) {
|
|
16924
17200
|
if (!overwrite)
|
|
16925
17201
|
throw new Error(`Key ${_pair.key} already set`);
|
|
@@ -16946,8 +17222,8 @@ var require_YAMLMap = __commonJS({
|
|
|
16946
17222
|
}
|
|
16947
17223
|
get(key, keepScalar) {
|
|
16948
17224
|
const it = findPair(this.items, key);
|
|
16949
|
-
const node = it
|
|
16950
|
-
return !keepScalar && Node.isScalar(node) ? node.value : node;
|
|
17225
|
+
const node = it == null ? void 0 : it.value;
|
|
17226
|
+
return (!keepScalar && Node.isScalar(node) ? node.value : node) ?? void 0;
|
|
16951
17227
|
}
|
|
16952
17228
|
has(key) {
|
|
16953
17229
|
return !!findPair(this.items, key);
|
|
@@ -16956,8 +17232,8 @@ var require_YAMLMap = __commonJS({
|
|
|
16956
17232
|
this.add(new Pair.Pair(key, value), true);
|
|
16957
17233
|
}
|
|
16958
17234
|
toJSON(_45, ctx, Type) {
|
|
16959
|
-
const map = Type ? new Type() : ctx
|
|
16960
|
-
if (ctx
|
|
17235
|
+
const map = Type ? new Type() : (ctx == null ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {};
|
|
17236
|
+
if (ctx == null ? void 0 : ctx.onCreate)
|
|
16961
17237
|
ctx.onCreate(map);
|
|
16962
17238
|
for (const item of this.items)
|
|
16963
17239
|
addPairToJSMap.addPairToJSMap(ctx, map, item);
|
|
@@ -17042,13 +17318,13 @@ var require_YAMLSeq = __commonJS({
|
|
|
17042
17318
|
var Scalar = require_Scalar();
|
|
17043
17319
|
var toJS = require_toJS();
|
|
17044
17320
|
var YAMLSeq = class extends Collection.Collection {
|
|
17321
|
+
static get tagName() {
|
|
17322
|
+
return "tag:yaml.org,2002:seq";
|
|
17323
|
+
}
|
|
17045
17324
|
constructor(schema) {
|
|
17046
17325
|
super(Node.SEQ, schema);
|
|
17047
17326
|
this.items = [];
|
|
17048
17327
|
}
|
|
17049
|
-
static get tagName() {
|
|
17050
|
-
return "tag:yaml.org,2002:seq";
|
|
17051
|
-
}
|
|
17052
17328
|
add(value) {
|
|
17053
17329
|
this.items.push(value);
|
|
17054
17330
|
}
|
|
@@ -17082,7 +17358,7 @@ var require_YAMLSeq = __commonJS({
|
|
|
17082
17358
|
}
|
|
17083
17359
|
toJSON(_45, ctx) {
|
|
17084
17360
|
const seq = [];
|
|
17085
|
-
if (ctx
|
|
17361
|
+
if (ctx == null ? void 0 : ctx.onCreate)
|
|
17086
17362
|
ctx.onCreate(seq);
|
|
17087
17363
|
let i = 0;
|
|
17088
17364
|
for (const item of this.items)
|
|
@@ -17180,7 +17456,7 @@ var require_null = __commonJS({
|
|
|
17180
17456
|
tag: "tag:yaml.org,2002:null",
|
|
17181
17457
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
17182
17458
|
resolve: () => new Scalar.Scalar(null),
|
|
17183
|
-
stringify: ({ source }, ctx) => source && nullTag.test.test(source) ? source : ctx.options.nullStr
|
|
17459
|
+
stringify: ({ source }, ctx) => typeof source === "string" && nullTag.test.test(source) ? source : ctx.options.nullStr
|
|
17184
17460
|
};
|
|
17185
17461
|
exports2.nullTag = nullTag;
|
|
17186
17462
|
}
|
|
@@ -17500,7 +17776,7 @@ var require_pairs = __commonJS({
|
|
|
17500
17776
|
pair.key.commentBefore = pair.key.commentBefore ? `${item.commentBefore}
|
|
17501
17777
|
${pair.key.commentBefore}` : item.commentBefore;
|
|
17502
17778
|
if (item.comment) {
|
|
17503
|
-
const cn = pair.value
|
|
17779
|
+
const cn = pair.value ?? pair.key;
|
|
17504
17780
|
cn.comment = cn.comment ? `${item.comment}
|
|
17505
17781
|
${cn.comment}` : item.comment;
|
|
17506
17782
|
}
|
|
@@ -17578,7 +17854,7 @@ var require_omap = __commonJS({
|
|
|
17578
17854
|
if (!ctx)
|
|
17579
17855
|
return super.toJSON(_45);
|
|
17580
17856
|
const map = /* @__PURE__ */ new Map();
|
|
17581
|
-
if (ctx
|
|
17857
|
+
if (ctx == null ? void 0 : ctx.onCreate)
|
|
17582
17858
|
ctx.onCreate(map);
|
|
17583
17859
|
for (const pair of this.items) {
|
|
17584
17860
|
let key, value;
|
|
@@ -17804,7 +18080,7 @@ var require_set = __commonJS({
|
|
|
17804
18080
|
let pair;
|
|
17805
18081
|
if (Node.isPair(key))
|
|
17806
18082
|
pair = key;
|
|
17807
|
-
else if (typeof key === "object" && "key" in key && "value" in key && key.value === null)
|
|
18083
|
+
else if (key && typeof key === "object" && "key" in key && "value" in key && key.value === null)
|
|
17808
18084
|
pair = new Pair.Pair(key.key, null);
|
|
17809
18085
|
else
|
|
17810
18086
|
pair = new Pair.Pair(key, null);
|
|
@@ -18099,11 +18375,11 @@ var require_Schema = __commonJS({
|
|
|
18099
18375
|
this.name = typeof schema === "string" && schema || "core";
|
|
18100
18376
|
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
|
18101
18377
|
this.tags = tags.getTags(customTags, this.name);
|
|
18102
|
-
this.toStringOptions = toStringDefaults
|
|
18378
|
+
this.toStringOptions = toStringDefaults ?? null;
|
|
18103
18379
|
Object.defineProperty(this, Node.MAP, { value: map.map });
|
|
18104
18380
|
Object.defineProperty(this, Node.SCALAR, { value: string.string });
|
|
18105
18381
|
Object.defineProperty(this, Node.SEQ, { value: seq.seq });
|
|
18106
|
-
this.sortMapEntries = sortMapEntries ===
|
|
18382
|
+
this.sortMapEntries = typeof sortMapEntries === "function" ? sortMapEntries : sortMapEntries === true ? sortMapEntriesByKey : null;
|
|
18107
18383
|
}
|
|
18108
18384
|
clone() {
|
|
18109
18385
|
const copy3 = Object.create(Schema.prototype, Object.getOwnPropertyDescriptors(this));
|
|
@@ -18123,6 +18399,7 @@ var require_stringifyDocument = __commonJS({
|
|
|
18123
18399
|
var stringify = require_stringify();
|
|
18124
18400
|
var stringifyComment = require_stringifyComment();
|
|
18125
18401
|
function stringifyDocument(doc, options2) {
|
|
18402
|
+
var _a2;
|
|
18126
18403
|
const lines = [];
|
|
18127
18404
|
let hasDirectives = options2.directives === true;
|
|
18128
18405
|
if (options2.directives !== false && doc.directives) {
|
|
@@ -18130,7 +18407,7 @@ var require_stringifyDocument = __commonJS({
|
|
|
18130
18407
|
if (dir) {
|
|
18131
18408
|
lines.push(dir);
|
|
18132
18409
|
hasDirectives = true;
|
|
18133
|
-
} else if (doc.directives.
|
|
18410
|
+
} else if (doc.directives.docStart)
|
|
18134
18411
|
hasDirectives = true;
|
|
18135
18412
|
}
|
|
18136
18413
|
if (hasDirectives)
|
|
@@ -18167,13 +18444,27 @@ var require_stringifyDocument = __commonJS({
|
|
|
18167
18444
|
} else {
|
|
18168
18445
|
lines.push(stringify.stringify(doc.contents, ctx));
|
|
18169
18446
|
}
|
|
18170
|
-
|
|
18171
|
-
|
|
18172
|
-
|
|
18173
|
-
|
|
18174
|
-
|
|
18175
|
-
|
|
18176
|
-
|
|
18447
|
+
if ((_a2 = doc.directives) == null ? void 0 : _a2.docEnd) {
|
|
18448
|
+
if (doc.comment) {
|
|
18449
|
+
const cs = commentString(doc.comment);
|
|
18450
|
+
if (cs.includes("\n")) {
|
|
18451
|
+
lines.push("...");
|
|
18452
|
+
lines.push(stringifyComment.indentComment(cs, ""));
|
|
18453
|
+
} else {
|
|
18454
|
+
lines.push(`... ${cs}`);
|
|
18455
|
+
}
|
|
18456
|
+
} else {
|
|
18457
|
+
lines.push("...");
|
|
18458
|
+
}
|
|
18459
|
+
} else {
|
|
18460
|
+
let dc = doc.comment;
|
|
18461
|
+
if (dc && chompKeep)
|
|
18462
|
+
dc = dc.replace(/^\n+/, "");
|
|
18463
|
+
if (dc) {
|
|
18464
|
+
if ((!chompKeep || contentComment) && lines[lines.length - 1] !== "")
|
|
18465
|
+
lines.push("");
|
|
18466
|
+
lines.push(stringifyComment.indentComment(commentString(dc), ""));
|
|
18467
|
+
}
|
|
18177
18468
|
}
|
|
18178
18469
|
return lines.join("\n") + "\n";
|
|
18179
18470
|
}
|
|
@@ -18240,7 +18531,6 @@ var require_Document = __commonJS({
|
|
|
18240
18531
|
var Node = require_Node();
|
|
18241
18532
|
var Pair = require_Pair();
|
|
18242
18533
|
var toJS = require_toJS();
|
|
18243
|
-
var options2 = require_options();
|
|
18244
18534
|
var Schema = require_Schema();
|
|
18245
18535
|
var stringify = require_stringify();
|
|
18246
18536
|
var stringifyDocument = require_stringifyDocument();
|
|
@@ -18249,7 +18539,7 @@ var require_Document = __commonJS({
|
|
|
18249
18539
|
var createNode = require_createNode();
|
|
18250
18540
|
var directives = require_directives();
|
|
18251
18541
|
var Document = class {
|
|
18252
|
-
constructor(value, replacer,
|
|
18542
|
+
constructor(value, replacer, options2) {
|
|
18253
18543
|
this.commentBefore = null;
|
|
18254
18544
|
this.comment = null;
|
|
18255
18545
|
this.errors = [];
|
|
@@ -18258,24 +18548,32 @@ var require_Document = __commonJS({
|
|
|
18258
18548
|
let _replacer = null;
|
|
18259
18549
|
if (typeof replacer === "function" || Array.isArray(replacer)) {
|
|
18260
18550
|
_replacer = replacer;
|
|
18261
|
-
} else if (
|
|
18262
|
-
|
|
18551
|
+
} else if (options2 === void 0 && replacer) {
|
|
18552
|
+
options2 = replacer;
|
|
18263
18553
|
replacer = void 0;
|
|
18264
18554
|
}
|
|
18265
|
-
const opt = Object.assign({
|
|
18555
|
+
const opt = Object.assign({
|
|
18556
|
+
intAsBigInt: false,
|
|
18557
|
+
keepSourceTokens: false,
|
|
18558
|
+
logLevel: "warn",
|
|
18559
|
+
prettyErrors: true,
|
|
18560
|
+
strict: true,
|
|
18561
|
+
uniqueKeys: true,
|
|
18562
|
+
version: "1.2"
|
|
18563
|
+
}, options2);
|
|
18266
18564
|
this.options = opt;
|
|
18267
18565
|
let { version } = opt;
|
|
18268
|
-
if (
|
|
18269
|
-
this.directives =
|
|
18566
|
+
if (options2 == null ? void 0 : options2._directives) {
|
|
18567
|
+
this.directives = options2._directives.atDocument();
|
|
18270
18568
|
if (this.directives.yaml.explicit)
|
|
18271
18569
|
version = this.directives.yaml.version;
|
|
18272
18570
|
} else
|
|
18273
18571
|
this.directives = new directives.Directives({ version });
|
|
18274
|
-
this.setSchema(version,
|
|
18572
|
+
this.setSchema(version, options2);
|
|
18275
18573
|
if (value === void 0)
|
|
18276
18574
|
this.contents = null;
|
|
18277
18575
|
else {
|
|
18278
|
-
this.contents = this.createNode(value, _replacer,
|
|
18576
|
+
this.contents = this.createNode(value, _replacer, options2);
|
|
18279
18577
|
}
|
|
18280
18578
|
}
|
|
18281
18579
|
clone() {
|
|
@@ -18310,7 +18608,7 @@ var require_Document = __commonJS({
|
|
|
18310
18608
|
}
|
|
18311
18609
|
return new Alias.Alias(node.anchor);
|
|
18312
18610
|
}
|
|
18313
|
-
createNode(value, replacer,
|
|
18611
|
+
createNode(value, replacer, options2) {
|
|
18314
18612
|
let _replacer = void 0;
|
|
18315
18613
|
if (typeof replacer === "function") {
|
|
18316
18614
|
value = replacer.call({ "": value }, "", value);
|
|
@@ -18321,15 +18619,15 @@ var require_Document = __commonJS({
|
|
|
18321
18619
|
if (asStr.length > 0)
|
|
18322
18620
|
replacer = replacer.concat(asStr);
|
|
18323
18621
|
_replacer = replacer;
|
|
18324
|
-
} else if (
|
|
18325
|
-
|
|
18622
|
+
} else if (options2 === void 0 && replacer) {
|
|
18623
|
+
options2 = replacer;
|
|
18326
18624
|
replacer = void 0;
|
|
18327
18625
|
}
|
|
18328
|
-
const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } =
|
|
18626
|
+
const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } = options2 ?? {};
|
|
18329
18627
|
const { onAnchor, setAnchors, sourceObjects } = anchors.createNodeAnchors(this, anchorPrefix || "a");
|
|
18330
18628
|
const ctx = {
|
|
18331
|
-
aliasDuplicateObjects: aliasDuplicateObjects
|
|
18332
|
-
keepUndefined: keepUndefined
|
|
18629
|
+
aliasDuplicateObjects: aliasDuplicateObjects ?? true,
|
|
18630
|
+
keepUndefined: keepUndefined ?? false,
|
|
18333
18631
|
onAnchor,
|
|
18334
18632
|
onTagObj,
|
|
18335
18633
|
replacer: _replacer,
|
|
@@ -18342,9 +18640,9 @@ var require_Document = __commonJS({
|
|
|
18342
18640
|
setAnchors();
|
|
18343
18641
|
return node;
|
|
18344
18642
|
}
|
|
18345
|
-
createPair(key, value,
|
|
18346
|
-
const k = this.createNode(key, null,
|
|
18347
|
-
const v = this.createNode(value, null,
|
|
18643
|
+
createPair(key, value, options2 = {}) {
|
|
18644
|
+
const k = this.createNode(key, null, options2);
|
|
18645
|
+
const v = this.createNode(value, null, options2);
|
|
18348
18646
|
return new Pair.Pair(k, v);
|
|
18349
18647
|
}
|
|
18350
18648
|
delete(key) {
|
|
@@ -18391,7 +18689,7 @@ var require_Document = __commonJS({
|
|
|
18391
18689
|
this.contents.setIn(path, value);
|
|
18392
18690
|
}
|
|
18393
18691
|
}
|
|
18394
|
-
setSchema(version,
|
|
18692
|
+
setSchema(version, options2 = {}) {
|
|
18395
18693
|
if (typeof version === "number")
|
|
18396
18694
|
version = String(version);
|
|
18397
18695
|
let opt;
|
|
@@ -18404,10 +18702,11 @@ var require_Document = __commonJS({
|
|
|
18404
18702
|
opt = { merge: true, resolveKnownTags: false, schema: "yaml-1.1" };
|
|
18405
18703
|
break;
|
|
18406
18704
|
case "1.2":
|
|
18705
|
+
case "next":
|
|
18407
18706
|
if (this.directives)
|
|
18408
|
-
this.directives.yaml.version =
|
|
18707
|
+
this.directives.yaml.version = version;
|
|
18409
18708
|
else
|
|
18410
|
-
this.directives = new directives.Directives({ version
|
|
18709
|
+
this.directives = new directives.Directives({ version });
|
|
18411
18710
|
opt = { merge: false, resolveKnownTags: true, schema: "core" };
|
|
18412
18711
|
break;
|
|
18413
18712
|
case null:
|
|
@@ -18420,10 +18719,10 @@ var require_Document = __commonJS({
|
|
|
18420
18719
|
throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${sv}`);
|
|
18421
18720
|
}
|
|
18422
18721
|
}
|
|
18423
|
-
if (
|
|
18424
|
-
this.schema =
|
|
18722
|
+
if (options2.schema instanceof Object)
|
|
18723
|
+
this.schema = options2.schema;
|
|
18425
18724
|
else if (opt)
|
|
18426
|
-
this.schema = new Schema.Schema(Object.assign(opt,
|
|
18725
|
+
this.schema = new Schema.Schema(Object.assign(opt, options2));
|
|
18427
18726
|
else
|
|
18428
18727
|
throw new Error(`With a null YAML version, the { schema: Schema } option is required`);
|
|
18429
18728
|
}
|
|
@@ -18437,7 +18736,7 @@ var require_Document = __commonJS({
|
|
|
18437
18736
|
maxAliasCount: typeof maxAliasCount === "number" ? maxAliasCount : 100,
|
|
18438
18737
|
stringify: stringify.stringify
|
|
18439
18738
|
};
|
|
18440
|
-
const res = toJS.toJS(this.contents, jsonArg
|
|
18739
|
+
const res = toJS.toJS(this.contents, jsonArg ?? "", ctx);
|
|
18441
18740
|
if (typeof onAnchor === "function")
|
|
18442
18741
|
for (const { count, res: res2 } of ctx.anchors.values())
|
|
18443
18742
|
onAnchor(res2, count);
|
|
@@ -18446,14 +18745,14 @@ var require_Document = __commonJS({
|
|
|
18446
18745
|
toJSON(jsonArg, onAnchor) {
|
|
18447
18746
|
return this.toJS({ json: true, jsonArg, mapAsMap: false, onAnchor });
|
|
18448
18747
|
}
|
|
18449
|
-
toString(
|
|
18748
|
+
toString(options2 = {}) {
|
|
18450
18749
|
if (this.errors.length > 0)
|
|
18451
18750
|
throw new Error("Document with errors cannot be stringified");
|
|
18452
|
-
if ("indent" in
|
|
18453
|
-
const s = JSON.stringify(
|
|
18751
|
+
if ("indent" in options2 && (!Number.isInteger(options2.indent) || Number(options2.indent) <= 0)) {
|
|
18752
|
+
const s = JSON.stringify(options2.indent);
|
|
18454
18753
|
throw new Error(`"indent" option must be a positive integer, not ${s}`);
|
|
18455
18754
|
}
|
|
18456
|
-
return stringifyDocument.stringifyDocument(this,
|
|
18755
|
+
return stringifyDocument.stringifyDocument(this, options2);
|
|
18457
18756
|
}
|
|
18458
18757
|
};
|
|
18459
18758
|
function assertCollection(contents) {
|
|
@@ -18513,7 +18812,7 @@ var require_errors = __commonJS({
|
|
|
18513
18812
|
let count = 1;
|
|
18514
18813
|
const end = error3.linePos[1];
|
|
18515
18814
|
if (end && end.line === line && end.col > col) {
|
|
18516
|
-
count = Math.min(end.col - col, 80 - ci);
|
|
18815
|
+
count = Math.max(1, Math.min(end.col - col, 80 - ci));
|
|
18517
18816
|
}
|
|
18518
18817
|
const pointer = " ".repeat(ci) + "^".repeat(count);
|
|
18519
18818
|
error3.message += `:
|
|
@@ -18541,6 +18840,7 @@ var require_resolve_props = __commonJS({
|
|
|
18541
18840
|
let comment = "";
|
|
18542
18841
|
let commentSep = "";
|
|
18543
18842
|
let hasNewline = false;
|
|
18843
|
+
let hasNewlineAfterProp = false;
|
|
18544
18844
|
let reqSpace = false;
|
|
18545
18845
|
let anchor = null;
|
|
18546
18846
|
let tag = null;
|
|
@@ -18581,11 +18881,15 @@ var require_resolve_props = __commonJS({
|
|
|
18581
18881
|
commentSep += token2.source;
|
|
18582
18882
|
atNewline = true;
|
|
18583
18883
|
hasNewline = true;
|
|
18884
|
+
if (anchor || tag)
|
|
18885
|
+
hasNewlineAfterProp = true;
|
|
18584
18886
|
hasSpace = true;
|
|
18585
18887
|
break;
|
|
18586
18888
|
case "anchor":
|
|
18587
18889
|
if (anchor)
|
|
18588
18890
|
onError(token2, "MULTIPLE_ANCHORS", "A node can have at most one anchor");
|
|
18891
|
+
if (token2.source.endsWith(":"))
|
|
18892
|
+
onError(token2.offset + token2.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", true);
|
|
18589
18893
|
anchor = token2;
|
|
18590
18894
|
if (start === null)
|
|
18591
18895
|
start = token2.offset;
|
|
@@ -18608,7 +18912,7 @@ var require_resolve_props = __commonJS({
|
|
|
18608
18912
|
if (anchor || tag)
|
|
18609
18913
|
onError(token2, "BAD_PROP_ORDER", `Anchors and tags must be after the ${token2.source} indicator`);
|
|
18610
18914
|
if (found)
|
|
18611
|
-
onError(token2, "UNEXPECTED_TOKEN", `Unexpected ${token2.source} in ${flow
|
|
18915
|
+
onError(token2, "UNEXPECTED_TOKEN", `Unexpected ${token2.source} in ${flow ?? "collection"}`);
|
|
18612
18916
|
found = token2;
|
|
18613
18917
|
atNewline = false;
|
|
18614
18918
|
hasSpace = false;
|
|
@@ -18638,10 +18942,11 @@ var require_resolve_props = __commonJS({
|
|
|
18638
18942
|
spaceBefore,
|
|
18639
18943
|
comment,
|
|
18640
18944
|
hasNewline,
|
|
18945
|
+
hasNewlineAfterProp,
|
|
18641
18946
|
anchor,
|
|
18642
18947
|
tag,
|
|
18643
18948
|
end,
|
|
18644
|
-
start: start
|
|
18949
|
+
start: start ?? end
|
|
18645
18950
|
};
|
|
18646
18951
|
}
|
|
18647
18952
|
exports2.resolveProps = resolveProps;
|
|
@@ -18696,7 +19001,7 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
18696
19001
|
"use strict";
|
|
18697
19002
|
var utilContainsNewline = require_util_contains_newline();
|
|
18698
19003
|
function flowIndentCheck(indent, fc, onError) {
|
|
18699
|
-
if ((fc
|
|
19004
|
+
if ((fc == null ? void 0 : fc.type) === "flow-collection") {
|
|
18700
19005
|
const end = fc.end[0];
|
|
18701
19006
|
if (end.indent === indent && (end.source === "]" || end.source === "}") && utilContainsNewline.containsNewline(fc)) {
|
|
18702
19007
|
const msg = "Flow end indicator should be more indented than parent";
|
|
@@ -18741,11 +19046,12 @@ var require_resolve_block_map = __commonJS({
|
|
|
18741
19046
|
if (ctx.atRoot)
|
|
18742
19047
|
ctx.atRoot = false;
|
|
18743
19048
|
let offset = bm.offset;
|
|
19049
|
+
let commentEnd = null;
|
|
18744
19050
|
for (const collItem of bm.items) {
|
|
18745
19051
|
const { start, key, sep, value } = collItem;
|
|
18746
19052
|
const keyProps = resolveProps.resolveProps(start, {
|
|
18747
19053
|
indicator: "explicit-key-ind",
|
|
18748
|
-
next: key
|
|
19054
|
+
next: key ?? (sep == null ? void 0 : sep[0]),
|
|
18749
19055
|
offset,
|
|
18750
19056
|
onError,
|
|
18751
19057
|
startOnNewline: true
|
|
@@ -18759,6 +19065,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
18759
19065
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
18760
19066
|
}
|
|
18761
19067
|
if (!keyProps.anchor && !keyProps.tag && !sep) {
|
|
19068
|
+
commentEnd = keyProps.end;
|
|
18762
19069
|
if (keyProps.comment) {
|
|
18763
19070
|
if (map.comment)
|
|
18764
19071
|
map.comment += "\n" + keyProps.comment;
|
|
@@ -18767,17 +19074,19 @@ var require_resolve_block_map = __commonJS({
|
|
|
18767
19074
|
}
|
|
18768
19075
|
continue;
|
|
18769
19076
|
}
|
|
18770
|
-
|
|
19077
|
+
if (keyProps.hasNewlineAfterProp || utilContainsNewline.containsNewline(key)) {
|
|
19078
|
+
onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
19079
|
+
}
|
|
19080
|
+
} else if (((_a2 = keyProps.found) == null ? void 0 : _a2.indent) !== bm.indent) {
|
|
18771
19081
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
18772
|
-
|
|
18773
|
-
onError(key, "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
19082
|
+
}
|
|
18774
19083
|
const keyStart = keyProps.end;
|
|
18775
19084
|
const keyNode = key ? composeNode(ctx, key, keyProps, onError) : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);
|
|
18776
19085
|
if (ctx.schema.compat)
|
|
18777
19086
|
utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError);
|
|
18778
19087
|
if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
|
|
18779
19088
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
18780
|
-
const valueProps = resolveProps.resolveProps(sep
|
|
19089
|
+
const valueProps = resolveProps.resolveProps(sep ?? [], {
|
|
18781
19090
|
indicator: "map-value-ind",
|
|
18782
19091
|
next: value,
|
|
18783
19092
|
offset: keyNode.range[2],
|
|
@@ -18787,7 +19096,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
18787
19096
|
offset = valueProps.end;
|
|
18788
19097
|
if (valueProps.found) {
|
|
18789
19098
|
if (implicitKey) {
|
|
18790
|
-
if ((value
|
|
19099
|
+
if ((value == null ? void 0 : value.type) === "block-map" && !valueProps.hasNewline)
|
|
18791
19100
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings");
|
|
18792
19101
|
if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
|
|
18793
19102
|
onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
|
|
@@ -18815,7 +19124,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
18815
19124
|
map.items.push(pair);
|
|
18816
19125
|
}
|
|
18817
19126
|
}
|
|
18818
|
-
|
|
19127
|
+
if (commentEnd && commentEnd < offset)
|
|
19128
|
+
onError(commentEnd, "IMPOSSIBLE", "Map comment with trailing content");
|
|
19129
|
+
map.range = [bm.offset, offset, commentEnd ?? offset];
|
|
18819
19130
|
return map;
|
|
18820
19131
|
}
|
|
18821
19132
|
exports2.resolveBlockMap = resolveBlockMap;
|
|
@@ -18834,6 +19145,7 @@ var require_resolve_block_seq = __commonJS({
|
|
|
18834
19145
|
if (ctx.atRoot)
|
|
18835
19146
|
ctx.atRoot = false;
|
|
18836
19147
|
let offset = bs.offset;
|
|
19148
|
+
let commentEnd = null;
|
|
18837
19149
|
for (const { start, value } of bs.items) {
|
|
18838
19150
|
const props = resolveProps.resolveProps(start, {
|
|
18839
19151
|
indicator: "seq-item-ind",
|
|
@@ -18842,26 +19154,26 @@ var require_resolve_block_seq = __commonJS({
|
|
|
18842
19154
|
onError,
|
|
18843
19155
|
startOnNewline: true
|
|
18844
19156
|
});
|
|
18845
|
-
offset = props.end;
|
|
18846
19157
|
if (!props.found) {
|
|
18847
19158
|
if (props.anchor || props.tag || value) {
|
|
18848
19159
|
if (value && value.type === "block-seq")
|
|
18849
|
-
onError(
|
|
19160
|
+
onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
|
|
18850
19161
|
else
|
|
18851
19162
|
onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
|
|
18852
19163
|
} else {
|
|
19164
|
+
commentEnd = props.end;
|
|
18853
19165
|
if (props.comment)
|
|
18854
19166
|
seq.comment = props.comment;
|
|
18855
19167
|
continue;
|
|
18856
19168
|
}
|
|
18857
19169
|
}
|
|
18858
|
-
const node = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx,
|
|
19170
|
+
const node = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, start, null, props, onError);
|
|
18859
19171
|
if (ctx.schema.compat)
|
|
18860
19172
|
utilFlowIndentCheck.flowIndentCheck(bs.indent, value, onError);
|
|
18861
19173
|
offset = node.range[2];
|
|
18862
19174
|
seq.items.push(node);
|
|
18863
19175
|
}
|
|
18864
|
-
seq.range = [bs.offset, offset, offset];
|
|
19176
|
+
seq.range = [bs.offset, offset, commentEnd ?? offset];
|
|
18865
19177
|
return seq;
|
|
18866
19178
|
}
|
|
18867
19179
|
exports2.resolveBlockSeq = resolveBlockSeq;
|
|
@@ -18940,7 +19252,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
18940
19252
|
const props = resolveProps.resolveProps(start, {
|
|
18941
19253
|
flow: fcName,
|
|
18942
19254
|
indicator: "explicit-key-ind",
|
|
18943
|
-
next: key
|
|
19255
|
+
next: key ?? (sep == null ? void 0 : sep[0]),
|
|
18944
19256
|
offset,
|
|
18945
19257
|
onError,
|
|
18946
19258
|
startOnNewline: false
|
|
@@ -18987,7 +19299,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
18987
19299
|
if (prevItemComment) {
|
|
18988
19300
|
let prev = coll.items[coll.items.length - 1];
|
|
18989
19301
|
if (Node.isPair(prev))
|
|
18990
|
-
prev = prev.value
|
|
19302
|
+
prev = prev.value ?? prev.key;
|
|
18991
19303
|
if (prev.comment)
|
|
18992
19304
|
prev.comment += "\n" + prevItemComment;
|
|
18993
19305
|
else
|
|
@@ -19007,7 +19319,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
19007
19319
|
const keyNode = key ? composeNode(ctx, key, props, onError) : composeEmptyNode(ctx, keyStart, start, null, props, onError);
|
|
19008
19320
|
if (isBlock(key))
|
|
19009
19321
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
19010
|
-
const valueProps = resolveProps.resolveProps(sep
|
|
19322
|
+
const valueProps = resolveProps.resolveProps(sep ?? [], {
|
|
19011
19323
|
flow: fcName,
|
|
19012
19324
|
indicator: "map-value-ind",
|
|
19013
19325
|
next: value,
|
|
@@ -19144,7 +19456,7 @@ var require_compose_collection = __commonJS({
|
|
|
19144
19456
|
const node = Node.isNode(res) ? res : new Scalar.Scalar(res);
|
|
19145
19457
|
node.range = coll.range;
|
|
19146
19458
|
node.tag = tagName;
|
|
19147
|
-
if (tag
|
|
19459
|
+
if (tag == null ? void 0 : tag.format)
|
|
19148
19460
|
node.format = tag.format;
|
|
19149
19461
|
return node;
|
|
19150
19462
|
}
|
|
@@ -19172,8 +19484,8 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
19172
19484
|
else
|
|
19173
19485
|
break;
|
|
19174
19486
|
}
|
|
19175
|
-
if (
|
|
19176
|
-
const value2 = header.chomp === "+" ? "\n".repeat(Math.max(
|
|
19487
|
+
if (chompStart === 0) {
|
|
19488
|
+
const value2 = header.chomp === "+" && lines.length > 0 ? "\n".repeat(Math.max(1, lines.length - 1)) : "";
|
|
19177
19489
|
let end2 = start + header.length;
|
|
19178
19490
|
if (scalar.source)
|
|
19179
19491
|
end2 += scalar.source.length;
|
|
@@ -19199,6 +19511,10 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
19199
19511
|
}
|
|
19200
19512
|
offset += indent.length + content.length + 1;
|
|
19201
19513
|
}
|
|
19514
|
+
for (let i = lines.length - 1; i >= chompStart; --i) {
|
|
19515
|
+
if (lines[i][0].length > trimIndent)
|
|
19516
|
+
chompStart = i + 1;
|
|
19517
|
+
}
|
|
19202
19518
|
let value = "";
|
|
19203
19519
|
let sep = "";
|
|
19204
19520
|
let prevMoreIndented = false;
|
|
@@ -19315,7 +19631,7 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
19315
19631
|
const split = source.split(/\n( *)/);
|
|
19316
19632
|
const first = split[0];
|
|
19317
19633
|
const m = first.match(/^( *)/);
|
|
19318
|
-
const line0 = m
|
|
19634
|
+
const line0 = (m == null ? void 0 : m[1]) ? [m[1], first.slice(m[1].length)] : ["", first];
|
|
19319
19635
|
const lines = [line0];
|
|
19320
19636
|
for (let i = 1; i < split.length; i += 2)
|
|
19321
19637
|
lines.push([split[i], split[i + 1]]);
|
|
@@ -19430,7 +19746,7 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
19430
19746
|
const last = /[ \t]*(.*)/sy;
|
|
19431
19747
|
last.lastIndex = pos;
|
|
19432
19748
|
match = last.exec(source);
|
|
19433
|
-
return res + sep + (match
|
|
19749
|
+
return res + sep + ((match == null ? void 0 : match[1]) ?? "");
|
|
19434
19750
|
}
|
|
19435
19751
|
function doubleQuotedValue(source, onError) {
|
|
19436
19752
|
let res = "";
|
|
@@ -19543,11 +19859,11 @@ var require_compose_scalar = __commonJS({
|
|
|
19543
19859
|
const tag = tagToken && tagName ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError) : token2.type === "scalar" ? findScalarTagByTest(ctx, value, token2, onError) : ctx.schema[Node.SCALAR];
|
|
19544
19860
|
let scalar;
|
|
19545
19861
|
try {
|
|
19546
|
-
const res = tag.resolve(value, (msg) => onError(tagToken
|
|
19862
|
+
const res = tag.resolve(value, (msg) => onError(tagToken ?? token2, "TAG_RESOLVE_FAILED", msg), ctx.options);
|
|
19547
19863
|
scalar = Node.isScalar(res) ? res : new Scalar.Scalar(res);
|
|
19548
19864
|
} catch (error3) {
|
|
19549
19865
|
const msg = error3 instanceof Error ? error3.message : String(error3);
|
|
19550
|
-
onError(tagToken
|
|
19866
|
+
onError(tagToken ?? token2, "TAG_RESOLVE_FAILED", msg);
|
|
19551
19867
|
scalar = new Scalar.Scalar(value);
|
|
19552
19868
|
}
|
|
19553
19869
|
scalar.range = range;
|
|
@@ -19576,7 +19892,7 @@ var require_compose_scalar = __commonJS({
|
|
|
19576
19892
|
}
|
|
19577
19893
|
}
|
|
19578
19894
|
for (const tag of matchWithTest)
|
|
19579
|
-
if ((_a2 = tag.test)
|
|
19895
|
+
if ((_a2 = tag.test) == null ? void 0 : _a2.test(value))
|
|
19580
19896
|
return tag;
|
|
19581
19897
|
const kt = schema.knownTags[tagName];
|
|
19582
19898
|
if (kt && !kt.collection) {
|
|
@@ -19589,13 +19905,13 @@ var require_compose_scalar = __commonJS({
|
|
|
19589
19905
|
function findScalarTagByTest({ directives, schema }, value, token2, onError) {
|
|
19590
19906
|
const tag = schema.tags.find((tag2) => {
|
|
19591
19907
|
var _a2;
|
|
19592
|
-
return tag2.default && ((_a2 = tag2.test)
|
|
19908
|
+
return tag2.default && ((_a2 = tag2.test) == null ? void 0 : _a2.test(value));
|
|
19593
19909
|
}) || schema[Node.SCALAR];
|
|
19594
19910
|
if (schema.compat) {
|
|
19595
19911
|
const compat = schema.compat.find((tag2) => {
|
|
19596
19912
|
var _a2;
|
|
19597
|
-
return tag2.default && ((_a2 = tag2.test)
|
|
19598
|
-
})
|
|
19913
|
+
return tag2.default && ((_a2 = tag2.test) == null ? void 0 : _a2.test(value));
|
|
19914
|
+
}) ?? schema[Node.SCALAR];
|
|
19599
19915
|
if (tag.tag !== compat.tag) {
|
|
19600
19916
|
const ts = directives.tagString(tag.tag);
|
|
19601
19917
|
const cs = directives.tagString(compat.tag);
|
|
@@ -19627,7 +19943,7 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
19627
19943
|
continue;
|
|
19628
19944
|
}
|
|
19629
19945
|
st = before[++i];
|
|
19630
|
-
while ((st
|
|
19946
|
+
while ((st == null ? void 0 : st.type) === "space") {
|
|
19631
19947
|
offset += st.source.length;
|
|
19632
19948
|
st = before[++i];
|
|
19633
19949
|
}
|
|
@@ -19653,6 +19969,7 @@ var require_compose_node = __commonJS({
|
|
|
19653
19969
|
function composeNode(ctx, token2, props, onError) {
|
|
19654
19970
|
const { spaceBefore, comment, anchor, tag } = props;
|
|
19655
19971
|
let node;
|
|
19972
|
+
let isSrcToken = true;
|
|
19656
19973
|
switch (token2.type) {
|
|
19657
19974
|
case "alias":
|
|
19658
19975
|
node = composeAlias(ctx, token2, onError);
|
|
@@ -19674,9 +19991,12 @@ var require_compose_node = __commonJS({
|
|
|
19674
19991
|
if (anchor)
|
|
19675
19992
|
node.anchor = anchor.source.substring(1);
|
|
19676
19993
|
break;
|
|
19677
|
-
default:
|
|
19678
|
-
|
|
19679
|
-
|
|
19994
|
+
default: {
|
|
19995
|
+
const message = token2.type === "error" ? token2.message : `Unsupported token (type: ${token2.type})`;
|
|
19996
|
+
onError(token2, "UNEXPECTED_TOKEN", message);
|
|
19997
|
+
node = composeEmptyNode(ctx, token2.offset, void 0, null, props, onError);
|
|
19998
|
+
isSrcToken = false;
|
|
19999
|
+
}
|
|
19680
20000
|
}
|
|
19681
20001
|
if (anchor && node.anchor === "")
|
|
19682
20002
|
onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
|
|
@@ -19688,11 +20008,11 @@ var require_compose_node = __commonJS({
|
|
|
19688
20008
|
else
|
|
19689
20009
|
node.commentBefore = comment;
|
|
19690
20010
|
}
|
|
19691
|
-
if (ctx.options.keepSourceTokens)
|
|
20011
|
+
if (ctx.options.keepSourceTokens && isSrcToken)
|
|
19692
20012
|
node.srcToken = token2;
|
|
19693
20013
|
return node;
|
|
19694
20014
|
}
|
|
19695
|
-
function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag }, onError) {
|
|
20015
|
+
function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag, end }, onError) {
|
|
19696
20016
|
const token2 = {
|
|
19697
20017
|
type: "scalar",
|
|
19698
20018
|
offset: utilEmptyScalarPosition.emptyScalarPosition(offset, before, pos),
|
|
@@ -19707,14 +20027,18 @@ var require_compose_node = __commonJS({
|
|
|
19707
20027
|
}
|
|
19708
20028
|
if (spaceBefore)
|
|
19709
20029
|
node.spaceBefore = true;
|
|
19710
|
-
if (comment)
|
|
20030
|
+
if (comment) {
|
|
19711
20031
|
node.comment = comment;
|
|
20032
|
+
node.range[2] = end;
|
|
20033
|
+
}
|
|
19712
20034
|
return node;
|
|
19713
20035
|
}
|
|
19714
20036
|
function composeAlias({ options: options2 }, { offset, source, end }, onError) {
|
|
19715
20037
|
const alias = new Alias.Alias(source.substring(1));
|
|
19716
20038
|
if (alias.source === "")
|
|
19717
20039
|
onError(offset, "BAD_ALIAS", "Alias cannot be an empty string");
|
|
20040
|
+
if (alias.source.endsWith(":"))
|
|
20041
|
+
onError(offset + source.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", true);
|
|
19718
20042
|
const valueEnd = offset + source.length;
|
|
19719
20043
|
const re = resolveEnd.resolveEnd(end, valueEnd, options2.strict, onError);
|
|
19720
20044
|
alias.range = [offset, valueEnd, re.offset];
|
|
@@ -19736,7 +20060,7 @@ var require_compose_doc = __commonJS({
|
|
|
19736
20060
|
var resolveEnd = require_resolve_end();
|
|
19737
20061
|
var resolveProps = require_resolve_props();
|
|
19738
20062
|
function composeDoc(options2, directives, { offset, start, value, end }, onError) {
|
|
19739
|
-
const opts = Object.assign({ directives }, options2);
|
|
20063
|
+
const opts = Object.assign({ _directives: directives }, options2);
|
|
19740
20064
|
const doc = new Document.Document(void 0, opts);
|
|
19741
20065
|
const ctx = {
|
|
19742
20066
|
atRoot: true,
|
|
@@ -19746,13 +20070,13 @@ var require_compose_doc = __commonJS({
|
|
|
19746
20070
|
};
|
|
19747
20071
|
const props = resolveProps.resolveProps(start, {
|
|
19748
20072
|
indicator: "doc-start",
|
|
19749
|
-
next: value
|
|
20073
|
+
next: value ?? (end == null ? void 0 : end[0]),
|
|
19750
20074
|
offset,
|
|
19751
20075
|
onError,
|
|
19752
20076
|
startOnNewline: true
|
|
19753
20077
|
});
|
|
19754
20078
|
if (props.found) {
|
|
19755
|
-
doc.directives.
|
|
20079
|
+
doc.directives.docStart = true;
|
|
19756
20080
|
if (value && (value.type === "block-map" || value.type === "block-seq") && !props.hasNewline)
|
|
19757
20081
|
onError(props.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker");
|
|
19758
20082
|
}
|
|
@@ -19776,7 +20100,6 @@ var require_composer = __commonJS({
|
|
|
19776
20100
|
var Document = require_Document();
|
|
19777
20101
|
var errors = require_errors();
|
|
19778
20102
|
var Node = require_Node();
|
|
19779
|
-
var options2 = require_options();
|
|
19780
20103
|
var composeDoc = require_compose_doc();
|
|
19781
20104
|
var resolveEnd = require_resolve_end();
|
|
19782
20105
|
function getErrorPos(src) {
|
|
@@ -19801,7 +20124,7 @@ var require_composer = __commonJS({
|
|
|
19801
20124
|
afterEmptyLine = false;
|
|
19802
20125
|
break;
|
|
19803
20126
|
case "%":
|
|
19804
|
-
if (((_a2 = prelude[i + 1])
|
|
20127
|
+
if (((_a2 = prelude[i + 1]) == null ? void 0 : _a2[0]) !== "#")
|
|
19805
20128
|
i += 1;
|
|
19806
20129
|
atComment = false;
|
|
19807
20130
|
break;
|
|
@@ -19814,7 +20137,7 @@ var require_composer = __commonJS({
|
|
|
19814
20137
|
return { comment, afterEmptyLine };
|
|
19815
20138
|
}
|
|
19816
20139
|
var Composer = class {
|
|
19817
|
-
constructor(
|
|
20140
|
+
constructor(options2 = {}) {
|
|
19818
20141
|
this.doc = null;
|
|
19819
20142
|
this.atDirectives = false;
|
|
19820
20143
|
this.prelude = [];
|
|
@@ -19827,10 +20150,8 @@ var require_composer = __commonJS({
|
|
|
19827
20150
|
else
|
|
19828
20151
|
this.errors.push(new errors.YAMLParseError(pos, code, message));
|
|
19829
20152
|
};
|
|
19830
|
-
this.directives = new directives.Directives({
|
|
19831
|
-
|
|
19832
|
-
});
|
|
19833
|
-
this.options = options$1;
|
|
20153
|
+
this.directives = new directives.Directives({ version: options2.version || "1.2" });
|
|
20154
|
+
this.options = options2;
|
|
19834
20155
|
}
|
|
19835
20156
|
decorate(doc, afterDoc) {
|
|
19836
20157
|
const { comment, afterEmptyLine } = parsePrelude(this.prelude);
|
|
@@ -19839,7 +20160,7 @@ var require_composer = __commonJS({
|
|
|
19839
20160
|
if (afterDoc) {
|
|
19840
20161
|
doc.comment = doc.comment ? `${doc.comment}
|
|
19841
20162
|
${comment}` : comment;
|
|
19842
|
-
} else if (afterEmptyLine || doc.directives.
|
|
20163
|
+
} else if (afterEmptyLine || doc.directives.docStart || !dc) {
|
|
19843
20164
|
doc.commentBefore = comment;
|
|
19844
20165
|
} else if (Node.isCollection(dc) && !dc.flow && dc.items.length > 0) {
|
|
19845
20166
|
let it = dc.items[0];
|
|
@@ -19893,8 +20214,8 @@ ${cb}` : comment;
|
|
|
19893
20214
|
break;
|
|
19894
20215
|
case "document": {
|
|
19895
20216
|
const doc = composeDoc.composeDoc(this.options, this.directives, token2, this.onError);
|
|
19896
|
-
if (this.atDirectives && !doc.directives.
|
|
19897
|
-
this.onError(token2, "MISSING_CHAR", "Missing directives-end indicator line");
|
|
20217
|
+
if (this.atDirectives && !doc.directives.docStart)
|
|
20218
|
+
this.onError(token2, "MISSING_CHAR", "Missing directives-end/doc-start indicator line");
|
|
19898
20219
|
this.decorate(doc, false);
|
|
19899
20220
|
if (this.doc)
|
|
19900
20221
|
yield this.doc;
|
|
@@ -19924,6 +20245,7 @@ ${cb}` : comment;
|
|
|
19924
20245
|
this.errors.push(new errors.YAMLParseError(getErrorPos(token2), "UNEXPECTED_TOKEN", msg));
|
|
19925
20246
|
break;
|
|
19926
20247
|
}
|
|
20248
|
+
this.doc.directives.docEnd = true;
|
|
19927
20249
|
const end = resolveEnd.resolveEnd(token2.end, token2.offset + token2.source.length, this.doc.options.strict, this.onError);
|
|
19928
20250
|
this.decorate(this.doc, true);
|
|
19929
20251
|
if (end.comment) {
|
|
@@ -19944,7 +20266,7 @@ ${end.comment}` : end.comment;
|
|
|
19944
20266
|
yield this.doc;
|
|
19945
20267
|
this.doc = null;
|
|
19946
20268
|
} else if (forceDoc) {
|
|
19947
|
-
const opts = Object.assign({
|
|
20269
|
+
const opts = Object.assign({ _directives: this.directives }, this.options);
|
|
19948
20270
|
const doc = new Document.Document(void 0, opts);
|
|
19949
20271
|
if (this.atDirectives)
|
|
19950
20272
|
this.onError(endOffset, "MISSING_CHAR", "Missing directives-end indicator line");
|
|
@@ -19987,7 +20309,6 @@ var require_cst_scalar = __commonJS({
|
|
|
19987
20309
|
return null;
|
|
19988
20310
|
}
|
|
19989
20311
|
function createScalarToken(value, context) {
|
|
19990
|
-
var _a2;
|
|
19991
20312
|
const { implicitKey = false, indent, inFlow = false, offset = -1, type = "PLAIN" } = context;
|
|
19992
20313
|
const source = stringifyString.stringifyString({ type, value }, {
|
|
19993
20314
|
implicitKey,
|
|
@@ -19995,7 +20316,7 @@ var require_cst_scalar = __commonJS({
|
|
|
19995
20316
|
inFlow,
|
|
19996
20317
|
options: { blockQuote: true, lineWidth: -1 }
|
|
19997
20318
|
});
|
|
19998
|
-
const end =
|
|
20319
|
+
const end = context.end ?? [
|
|
19999
20320
|
{ type: "newline", offset: -1, indent, source: "\n" }
|
|
20000
20321
|
];
|
|
20001
20322
|
switch (source[0]) {
|
|
@@ -20223,7 +20544,7 @@ var require_cst_visit = __commonJS({
|
|
|
20223
20544
|
visit.itemAtPath = (cst, path) => {
|
|
20224
20545
|
let item = cst;
|
|
20225
20546
|
for (const [field, index] of path) {
|
|
20226
|
-
const tok = item
|
|
20547
|
+
const tok = item == null ? void 0 : item[field];
|
|
20227
20548
|
if (tok && "items" in tok) {
|
|
20228
20549
|
item = tok.items[index];
|
|
20229
20550
|
} else
|
|
@@ -20234,7 +20555,7 @@ var require_cst_visit = __commonJS({
|
|
|
20234
20555
|
visit.parentCollection = (cst, path) => {
|
|
20235
20556
|
const parent = visit.itemAtPath(cst, path.slice(0, -1));
|
|
20236
20557
|
const field = path[path.length - 1][0];
|
|
20237
|
-
const coll = parent
|
|
20558
|
+
const coll = parent == null ? void 0 : parent[field];
|
|
20238
20559
|
if (coll && "items" in coll)
|
|
20239
20560
|
return coll;
|
|
20240
20561
|
throw new Error("Parent collection not found");
|
|
@@ -20411,7 +20732,7 @@ var require_lexer = __commonJS({
|
|
|
20411
20732
|
this.lineEndPos = null;
|
|
20412
20733
|
}
|
|
20413
20734
|
this.atEnd = !incomplete;
|
|
20414
|
-
let next = this.next
|
|
20735
|
+
let next = this.next ?? "stream";
|
|
20415
20736
|
while (next && (incomplete || this.hasChars(1)))
|
|
20416
20737
|
next = yield* this.parseNext(next);
|
|
20417
20738
|
}
|
|
@@ -20610,9 +20931,13 @@ var require_lexer = __commonJS({
|
|
|
20610
20931
|
let indent = -1;
|
|
20611
20932
|
do {
|
|
20612
20933
|
nl = yield* this.pushNewline();
|
|
20613
|
-
|
|
20614
|
-
|
|
20934
|
+
if (nl > 0) {
|
|
20935
|
+
sp = yield* this.pushSpaces(false);
|
|
20615
20936
|
this.indentValue = indent = sp;
|
|
20937
|
+
} else {
|
|
20938
|
+
sp = 0;
|
|
20939
|
+
}
|
|
20940
|
+
sp += yield* this.pushSpaces(true);
|
|
20616
20941
|
} while (nl + sp > 0);
|
|
20617
20942
|
const line = this.getLine();
|
|
20618
20943
|
if (line === null)
|
|
@@ -20773,9 +21098,10 @@ var require_lexer = __commonJS({
|
|
|
20773
21098
|
let ch2 = this.buffer[i];
|
|
20774
21099
|
if (ch2 === "\r")
|
|
20775
21100
|
ch2 = this.buffer[--i];
|
|
21101
|
+
const lastChar = i;
|
|
20776
21102
|
while (ch2 === " " || ch2 === " ")
|
|
20777
21103
|
ch2 = this.buffer[--i];
|
|
20778
|
-
if (ch2 === "\n" && i >= this.pos)
|
|
21104
|
+
if (ch2 === "\n" && i >= this.pos && i + 1 + indent > lastChar)
|
|
20779
21105
|
nl = i;
|
|
20780
21106
|
else
|
|
20781
21107
|
break;
|
|
@@ -20850,16 +21176,19 @@ var require_lexer = __commonJS({
|
|
|
20850
21176
|
return (yield* this.pushTag()) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
|
|
20851
21177
|
case "&":
|
|
20852
21178
|
return (yield* this.pushUntil(isNotAnchorChar)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
|
|
20853
|
-
case ":":
|
|
20854
|
-
case "?":
|
|
20855
21179
|
case "-":
|
|
20856
|
-
|
|
20857
|
-
|
|
21180
|
+
case "?":
|
|
21181
|
+
case ":": {
|
|
21182
|
+
const inFlow = this.flowLevel > 0;
|
|
21183
|
+
const ch1 = this.charAt(1);
|
|
21184
|
+
if (isEmpty(ch1) || inFlow && invalidFlowScalarChars.includes(ch1)) {
|
|
21185
|
+
if (!inFlow)
|
|
20858
21186
|
this.indentNext = this.indentValue + 1;
|
|
20859
21187
|
else if (this.flowKey)
|
|
20860
21188
|
this.flowKey = false;
|
|
20861
21189
|
return (yield* this.pushCount(1)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
|
|
20862
21190
|
}
|
|
21191
|
+
}
|
|
20863
21192
|
}
|
|
20864
21193
|
return 0;
|
|
20865
21194
|
}
|
|
@@ -20961,7 +21290,7 @@ var require_parser = __commonJS({
|
|
|
20961
21290
|
return true;
|
|
20962
21291
|
return false;
|
|
20963
21292
|
}
|
|
20964
|
-
function
|
|
21293
|
+
function findNonEmptyIndex(list) {
|
|
20965
21294
|
for (let i = 0; i < list.length; ++i) {
|
|
20966
21295
|
switch (list[i].type) {
|
|
20967
21296
|
case "space":
|
|
@@ -20969,13 +21298,13 @@ var require_parser = __commonJS({
|
|
|
20969
21298
|
case "newline":
|
|
20970
21299
|
break;
|
|
20971
21300
|
default:
|
|
20972
|
-
return
|
|
21301
|
+
return i;
|
|
20973
21302
|
}
|
|
20974
21303
|
}
|
|
20975
|
-
return
|
|
21304
|
+
return -1;
|
|
20976
21305
|
}
|
|
20977
21306
|
function isFlowToken(token2) {
|
|
20978
|
-
switch (token2
|
|
21307
|
+
switch (token2 == null ? void 0 : token2.type) {
|
|
20979
21308
|
case "alias":
|
|
20980
21309
|
case "scalar":
|
|
20981
21310
|
case "single-quoted-scalar":
|
|
@@ -20992,7 +21321,7 @@ var require_parser = __commonJS({
|
|
|
20992
21321
|
return parent.start;
|
|
20993
21322
|
case "block-map": {
|
|
20994
21323
|
const it = parent.items[parent.items.length - 1];
|
|
20995
|
-
return it.sep
|
|
21324
|
+
return it.sep ?? it.start;
|
|
20996
21325
|
}
|
|
20997
21326
|
case "block-seq":
|
|
20998
21327
|
return parent.items[parent.items.length - 1].start;
|
|
@@ -21016,7 +21345,7 @@ var require_parser = __commonJS({
|
|
|
21016
21345
|
break loop;
|
|
21017
21346
|
}
|
|
21018
21347
|
}
|
|
21019
|
-
while (((_a2 = prev[++i])
|
|
21348
|
+
while (((_a2 = prev[++i]) == null ? void 0 : _a2.type) === "space") {
|
|
21020
21349
|
}
|
|
21021
21350
|
return prev.splice(i, prev.length);
|
|
21022
21351
|
}
|
|
@@ -21160,7 +21489,7 @@ var require_parser = __commonJS({
|
|
|
21160
21489
|
return this.stack[this.stack.length - n];
|
|
21161
21490
|
}
|
|
21162
21491
|
*pop(error3) {
|
|
21163
|
-
const token2 = error3
|
|
21492
|
+
const token2 = error3 ?? this.stack.pop();
|
|
21164
21493
|
if (!token2) {
|
|
21165
21494
|
const message = "Tried to pop an empty stack";
|
|
21166
21495
|
yield { type: "error", offset: this.offset, source: "", message };
|
|
@@ -21221,7 +21550,7 @@ var require_parser = __commonJS({
|
|
|
21221
21550
|
}
|
|
21222
21551
|
if ((top.type === "document" || top.type === "block-map" || top.type === "block-seq") && (token2.type === "block-map" || token2.type === "block-seq")) {
|
|
21223
21552
|
const last = token2.items[token2.items.length - 1];
|
|
21224
|
-
if (last && !last.sep && !last.value && last.start.length > 0 &&
|
|
21553
|
+
if (last && !last.sep && !last.value && last.start.length > 0 && findNonEmptyIndex(last.start) === -1 && (token2.indent === 0 || last.start.every((st) => st.type !== "comment" || st.indent < token2.indent))) {
|
|
21225
21554
|
if (top.type === "document")
|
|
21226
21555
|
top.end = last.start;
|
|
21227
21556
|
else
|
|
@@ -21267,7 +21596,7 @@ var require_parser = __commonJS({
|
|
|
21267
21596
|
return yield* this.lineEnd(doc);
|
|
21268
21597
|
switch (this.type) {
|
|
21269
21598
|
case "doc-start": {
|
|
21270
|
-
if (
|
|
21599
|
+
if (findNonEmptyIndex(doc.start) !== -1) {
|
|
21271
21600
|
yield* this.pop();
|
|
21272
21601
|
yield* this.step();
|
|
21273
21602
|
} else
|
|
@@ -21350,25 +21679,26 @@ var require_parser = __commonJS({
|
|
|
21350
21679
|
if (it.value) {
|
|
21351
21680
|
const end = "end" in it.value ? it.value.end : void 0;
|
|
21352
21681
|
const last = Array.isArray(end) ? end[end.length - 1] : void 0;
|
|
21353
|
-
if ((last
|
|
21354
|
-
end
|
|
21682
|
+
if ((last == null ? void 0 : last.type) === "comment")
|
|
21683
|
+
end == null ? void 0 : end.push(this.sourceToken);
|
|
21355
21684
|
else
|
|
21356
21685
|
map.items.push({ start: [this.sourceToken] });
|
|
21357
|
-
} else if (it.sep)
|
|
21686
|
+
} else if (it.sep) {
|
|
21358
21687
|
it.sep.push(this.sourceToken);
|
|
21359
|
-
else
|
|
21688
|
+
} else {
|
|
21360
21689
|
it.start.push(this.sourceToken);
|
|
21690
|
+
}
|
|
21361
21691
|
return;
|
|
21362
21692
|
case "space":
|
|
21363
21693
|
case "comment":
|
|
21364
|
-
if (it.value)
|
|
21694
|
+
if (it.value) {
|
|
21365
21695
|
map.items.push({ start: [this.sourceToken] });
|
|
21366
|
-
else if (it.sep)
|
|
21696
|
+
} else if (it.sep) {
|
|
21367
21697
|
it.sep.push(this.sourceToken);
|
|
21368
|
-
else {
|
|
21698
|
+
} else {
|
|
21369
21699
|
if (this.atIndentedComment(it.start, map.indent)) {
|
|
21370
21700
|
const prev = map.items[map.items.length - 2];
|
|
21371
|
-
const end = (_a2 = prev
|
|
21701
|
+
const end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end;
|
|
21372
21702
|
if (Array.isArray(end)) {
|
|
21373
21703
|
Array.prototype.push.apply(end, it.start);
|
|
21374
21704
|
end.push(this.sourceToken);
|
|
@@ -21381,58 +21711,114 @@ var require_parser = __commonJS({
|
|
|
21381
21711
|
return;
|
|
21382
21712
|
}
|
|
21383
21713
|
if (this.indent >= map.indent) {
|
|
21384
|
-
const atNextItem = !this.onKeyLine && this.indent === map.indent &&
|
|
21714
|
+
const atNextItem = !this.onKeyLine && this.indent === map.indent && it.sep;
|
|
21715
|
+
let start = [];
|
|
21716
|
+
if (atNextItem && it.sep && !it.value) {
|
|
21717
|
+
const nl = [];
|
|
21718
|
+
for (let i = 0; i < it.sep.length; ++i) {
|
|
21719
|
+
const st = it.sep[i];
|
|
21720
|
+
switch (st.type) {
|
|
21721
|
+
case "newline":
|
|
21722
|
+
nl.push(i);
|
|
21723
|
+
break;
|
|
21724
|
+
case "space":
|
|
21725
|
+
break;
|
|
21726
|
+
case "comment":
|
|
21727
|
+
if (st.indent > map.indent)
|
|
21728
|
+
nl.length = 0;
|
|
21729
|
+
break;
|
|
21730
|
+
default:
|
|
21731
|
+
nl.length = 0;
|
|
21732
|
+
}
|
|
21733
|
+
}
|
|
21734
|
+
if (nl.length >= 2)
|
|
21735
|
+
start = it.sep.splice(nl[1]);
|
|
21736
|
+
}
|
|
21385
21737
|
switch (this.type) {
|
|
21386
21738
|
case "anchor":
|
|
21387
21739
|
case "tag":
|
|
21388
21740
|
if (atNextItem || it.value) {
|
|
21389
|
-
|
|
21741
|
+
start.push(this.sourceToken);
|
|
21742
|
+
map.items.push({ start });
|
|
21390
21743
|
this.onKeyLine = true;
|
|
21391
|
-
} else if (it.sep)
|
|
21744
|
+
} else if (it.sep) {
|
|
21392
21745
|
it.sep.push(this.sourceToken);
|
|
21393
|
-
else
|
|
21746
|
+
} else {
|
|
21394
21747
|
it.start.push(this.sourceToken);
|
|
21748
|
+
}
|
|
21395
21749
|
return;
|
|
21396
21750
|
case "explicit-key-ind":
|
|
21397
|
-
if (!it.sep && !includesToken(it.start, "explicit-key-ind"))
|
|
21751
|
+
if (!it.sep && !includesToken(it.start, "explicit-key-ind")) {
|
|
21398
21752
|
it.start.push(this.sourceToken);
|
|
21399
|
-
else if (atNextItem || it.value)
|
|
21400
|
-
|
|
21401
|
-
|
|
21753
|
+
} else if (atNextItem || it.value) {
|
|
21754
|
+
start.push(this.sourceToken);
|
|
21755
|
+
map.items.push({ start });
|
|
21756
|
+
} else {
|
|
21402
21757
|
this.stack.push({
|
|
21403
21758
|
type: "block-map",
|
|
21404
21759
|
offset: this.offset,
|
|
21405
21760
|
indent: this.indent,
|
|
21406
21761
|
items: [{ start: [this.sourceToken] }]
|
|
21407
21762
|
});
|
|
21763
|
+
}
|
|
21408
21764
|
this.onKeyLine = true;
|
|
21409
21765
|
return;
|
|
21410
21766
|
case "map-value-ind":
|
|
21411
|
-
if (
|
|
21412
|
-
|
|
21413
|
-
|
|
21414
|
-
|
|
21415
|
-
|
|
21416
|
-
|
|
21417
|
-
|
|
21418
|
-
|
|
21419
|
-
|
|
21420
|
-
|
|
21421
|
-
|
|
21422
|
-
|
|
21423
|
-
|
|
21424
|
-
|
|
21425
|
-
|
|
21426
|
-
|
|
21427
|
-
|
|
21428
|
-
|
|
21429
|
-
|
|
21430
|
-
|
|
21431
|
-
|
|
21432
|
-
|
|
21433
|
-
})
|
|
21434
|
-
|
|
21435
|
-
|
|
21767
|
+
if (includesToken(it.start, "explicit-key-ind")) {
|
|
21768
|
+
if (!it.sep) {
|
|
21769
|
+
if (includesToken(it.start, "newline")) {
|
|
21770
|
+
Object.assign(it, { key: null, sep: [this.sourceToken] });
|
|
21771
|
+
} else {
|
|
21772
|
+
const start2 = getFirstKeyStartProps(it.start);
|
|
21773
|
+
this.stack.push({
|
|
21774
|
+
type: "block-map",
|
|
21775
|
+
offset: this.offset,
|
|
21776
|
+
indent: this.indent,
|
|
21777
|
+
items: [{ start: start2, key: null, sep: [this.sourceToken] }]
|
|
21778
|
+
});
|
|
21779
|
+
}
|
|
21780
|
+
} else if (it.value) {
|
|
21781
|
+
map.items.push({ start: [], key: null, sep: [this.sourceToken] });
|
|
21782
|
+
} else if (includesToken(it.sep, "map-value-ind")) {
|
|
21783
|
+
this.stack.push({
|
|
21784
|
+
type: "block-map",
|
|
21785
|
+
offset: this.offset,
|
|
21786
|
+
indent: this.indent,
|
|
21787
|
+
items: [{ start, key: null, sep: [this.sourceToken] }]
|
|
21788
|
+
});
|
|
21789
|
+
} else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
|
|
21790
|
+
const start2 = getFirstKeyStartProps(it.start);
|
|
21791
|
+
const key = it.key;
|
|
21792
|
+
const sep = it.sep;
|
|
21793
|
+
sep.push(this.sourceToken);
|
|
21794
|
+
delete it.key, delete it.sep;
|
|
21795
|
+
this.stack.push({
|
|
21796
|
+
type: "block-map",
|
|
21797
|
+
offset: this.offset,
|
|
21798
|
+
indent: this.indent,
|
|
21799
|
+
items: [{ start: start2, key, sep }]
|
|
21800
|
+
});
|
|
21801
|
+
} else if (start.length > 0) {
|
|
21802
|
+
it.sep = it.sep.concat(start, this.sourceToken);
|
|
21803
|
+
} else {
|
|
21804
|
+
it.sep.push(this.sourceToken);
|
|
21805
|
+
}
|
|
21806
|
+
} else {
|
|
21807
|
+
if (!it.sep) {
|
|
21808
|
+
Object.assign(it, { key: null, sep: [this.sourceToken] });
|
|
21809
|
+
} else if (it.value || atNextItem) {
|
|
21810
|
+
map.items.push({ start, key: null, sep: [this.sourceToken] });
|
|
21811
|
+
} else if (includesToken(it.sep, "map-value-ind")) {
|
|
21812
|
+
this.stack.push({
|
|
21813
|
+
type: "block-map",
|
|
21814
|
+
offset: this.offset,
|
|
21815
|
+
indent: this.indent,
|
|
21816
|
+
items: [{ start: [], key: null, sep: [this.sourceToken] }]
|
|
21817
|
+
});
|
|
21818
|
+
} else {
|
|
21819
|
+
it.sep.push(this.sourceToken);
|
|
21820
|
+
}
|
|
21821
|
+
}
|
|
21436
21822
|
this.onKeyLine = true;
|
|
21437
21823
|
return;
|
|
21438
21824
|
case "alias":
|
|
@@ -21441,7 +21827,7 @@ var require_parser = __commonJS({
|
|
|
21441
21827
|
case "double-quoted-scalar": {
|
|
21442
21828
|
const fs2 = this.flowScalar(this.type);
|
|
21443
21829
|
if (atNextItem || it.value) {
|
|
21444
|
-
map.items.push({ start
|
|
21830
|
+
map.items.push({ start, key: fs2, sep: [] });
|
|
21445
21831
|
this.onKeyLine = true;
|
|
21446
21832
|
} else if (it.sep) {
|
|
21447
21833
|
this.stack.push(fs2);
|
|
@@ -21454,8 +21840,9 @@ var require_parser = __commonJS({
|
|
|
21454
21840
|
default: {
|
|
21455
21841
|
const bv = this.startBlockValue(map);
|
|
21456
21842
|
if (bv) {
|
|
21457
|
-
if (atNextItem && bv.type !== "block-seq" && includesToken(it.start, "explicit-key-ind"))
|
|
21458
|
-
map.items.push({ start
|
|
21843
|
+
if (atNextItem && bv.type !== "block-seq" && includesToken(it.start, "explicit-key-ind")) {
|
|
21844
|
+
map.items.push({ start });
|
|
21845
|
+
}
|
|
21459
21846
|
this.stack.push(bv);
|
|
21460
21847
|
return;
|
|
21461
21848
|
}
|
|
@@ -21473,8 +21860,8 @@ var require_parser = __commonJS({
|
|
|
21473
21860
|
if (it.value) {
|
|
21474
21861
|
const end = "end" in it.value ? it.value.end : void 0;
|
|
21475
21862
|
const last = Array.isArray(end) ? end[end.length - 1] : void 0;
|
|
21476
|
-
if ((last
|
|
21477
|
-
end
|
|
21863
|
+
if ((last == null ? void 0 : last.type) === "comment")
|
|
21864
|
+
end == null ? void 0 : end.push(this.sourceToken);
|
|
21478
21865
|
else
|
|
21479
21866
|
seq.items.push({ start: [this.sourceToken] });
|
|
21480
21867
|
} else
|
|
@@ -21487,7 +21874,7 @@ var require_parser = __commonJS({
|
|
|
21487
21874
|
else {
|
|
21488
21875
|
if (this.atIndentedComment(it.start, seq.indent)) {
|
|
21489
21876
|
const prev = seq.items[seq.items.length - 2];
|
|
21490
|
-
const end = (_a2 = prev
|
|
21877
|
+
const end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end;
|
|
21491
21878
|
if (Array.isArray(end)) {
|
|
21492
21879
|
Array.prototype.push.apply(end, it.start);
|
|
21493
21880
|
end.push(this.sourceToken);
|
|
@@ -21587,7 +21974,7 @@ var require_parser = __commonJS({
|
|
|
21587
21974
|
}
|
|
21588
21975
|
} else {
|
|
21589
21976
|
const parent = this.peek(2);
|
|
21590
|
-
if (parent.type === "block-map" && (this.type === "map-value-ind" || this.type === "newline" && !parent.items[parent.items.length - 1].sep)) {
|
|
21977
|
+
if (parent.type === "block-map" && (this.type === "map-value-ind" && parent.indent === fc.indent || this.type === "newline" && !parent.items[parent.items.length - 1].sep)) {
|
|
21591
21978
|
yield* this.pop();
|
|
21592
21979
|
yield* this.step();
|
|
21593
21980
|
} else if (this.type === "map-value-ind" && parent.type !== "flow-collection") {
|
|
@@ -21745,7 +22132,7 @@ var require_public_api = __commonJS({
|
|
|
21745
22132
|
}
|
|
21746
22133
|
function parseAllDocuments(source, options2 = {}) {
|
|
21747
22134
|
const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options2);
|
|
21748
|
-
const parser$1 = new parser.Parser(lineCounter2
|
|
22135
|
+
const parser$1 = new parser.Parser(lineCounter2 == null ? void 0 : lineCounter2.addNewLine);
|
|
21749
22136
|
const composer$1 = new composer.Composer(options2);
|
|
21750
22137
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
|
21751
22138
|
if (prettyErrors && lineCounter2)
|
|
@@ -21759,7 +22146,7 @@ var require_public_api = __commonJS({
|
|
|
21759
22146
|
}
|
|
21760
22147
|
function parseDocument(source, options2 = {}) {
|
|
21761
22148
|
const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options2);
|
|
21762
|
-
const parser$1 = new parser.Parser(lineCounter2
|
|
22149
|
+
const parser$1 = new parser.Parser(lineCounter2 == null ? void 0 : lineCounter2.addNewLine);
|
|
21763
22150
|
const composer$1 = new composer.Composer(options2);
|
|
21764
22151
|
let doc = null;
|
|
21765
22152
|
for (const _doc of composer$1.compose(parser$1.parse(source), true, source.length)) {
|
|
@@ -21809,7 +22196,7 @@ var require_public_api = __commonJS({
|
|
|
21809
22196
|
options2 = indent < 1 ? void 0 : indent > 8 ? { indent: 8 } : { indent };
|
|
21810
22197
|
}
|
|
21811
22198
|
if (value === void 0) {
|
|
21812
|
-
const { keepUndefined } = options2
|
|
22199
|
+
const { keepUndefined } = options2 ?? replacer ?? {};
|
|
21813
22200
|
if (!keepUndefined)
|
|
21814
22201
|
return void 0;
|
|
21815
22202
|
}
|
|
@@ -21836,7 +22223,6 @@ var require_dist2 = __commonJS({
|
|
|
21836
22223
|
var Scalar = require_Scalar();
|
|
21837
22224
|
var YAMLMap = require_YAMLMap();
|
|
21838
22225
|
var YAMLSeq = require_YAMLSeq();
|
|
21839
|
-
var options2 = require_options();
|
|
21840
22226
|
var cst = require_cst();
|
|
21841
22227
|
var lexer = require_lexer();
|
|
21842
22228
|
var lineCounter = require_line_counter();
|
|
@@ -21862,7 +22248,6 @@ var require_dist2 = __commonJS({
|
|
|
21862
22248
|
exports2.Scalar = Scalar.Scalar;
|
|
21863
22249
|
exports2.YAMLMap = YAMLMap.YAMLMap;
|
|
21864
22250
|
exports2.YAMLSeq = YAMLSeq.YAMLSeq;
|
|
21865
|
-
exports2.defaultOptions = options2.defaultOptions;
|
|
21866
22251
|
exports2.CST = cst;
|
|
21867
22252
|
exports2.Lexer = lexer.Lexer;
|
|
21868
22253
|
exports2.LineCounter = lineCounter.LineCounter;
|
|
@@ -21872,6 +22257,7 @@ var require_dist2 = __commonJS({
|
|
|
21872
22257
|
exports2.parseDocument = publicApi.parseDocument;
|
|
21873
22258
|
exports2.stringify = publicApi.stringify;
|
|
21874
22259
|
exports2.visit = visit.visit;
|
|
22260
|
+
exports2.visitAsync = visit.visitAsync;
|
|
21875
22261
|
}
|
|
21876
22262
|
});
|
|
21877
22263
|
|
|
@@ -23113,15 +23499,15 @@ var require_common2 = __commonJS({
|
|
|
23113
23499
|
};
|
|
23114
23500
|
var Je = (c, n, t, o) => {
|
|
23115
23501
|
if (n && typeof n == "object" || typeof n == "function")
|
|
23116
|
-
for (let
|
|
23117
|
-
!O.call(c,
|
|
23502
|
+
for (let s of Ne(n))
|
|
23503
|
+
!O.call(c, s) && (t || s !== "default") && P(c, s, { get: () => n[s], enumerable: !(o = Ye(n, s)) || o.enumerable });
|
|
23118
23504
|
return c;
|
|
23119
23505
|
};
|
|
23120
23506
|
var $e = ((c) => (n, t) => c && c.get(n) || (t = Je(qe({}), n, 1), c && c.set(n, t), t))(typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23121
23507
|
var Ht = {};
|
|
23122
23508
|
A(Ht, { ALPViewType: () => I, ActionTitlePrefix: () => tt, ArtifactType: () => w, BindingPropertyRegexAsString: () => ot, ControlType: () => M, CustomExtensionType: () => oe, DATESETTINGSPATH: () => mt, DataSourceType: () => $, DefinitionName: () => W, DirName: () => k, DraftDiscardEnabledSettings: () => N, ExportArtifacts: () => v, FIORI_FCL_ROOT_ID: () => ut, FIORI_FCL_ROOT_VIEW_NAME: () => xt, FRAGMENTNAMEPART: () => bt, FacetBase: () => G, FacetTitlePrefix: () => et, Features: () => ae, FileName: () => B, FioriElementsVersion: () => L, FlexChangeLayer: () => h, FlexibleColumnLayoutAggregations: () => J, FlexibleColumnLayoutType: () => F, GENERICAPPSETTINGS: () => St, LogSeverity: () => ee, LogSeverityLabel: () => At, MANIFESTPATH: () => nt, METADATAPATH: () => at, MacrosPropertyType: () => Y, ManifestSection: () => Z, OdataVersion: () => j, PAGETYPE_VIEW_EXTENSION_TEMPLATE_MAP: () => De, PageType: () => Ze, PageTypeV2: () => T, PageTypeV4: () => C, PropertyName: () => X, QUICKVARPATH: () => lt, QUICKVARPATHX: () => gt, SAPUI5_FRAGMENT_CLASS: () => dt, SAPUI5_VIEW_CLASS: () => Pt, SchemaKeyName: () => K, SchemaTag: () => Q, SchemaType: () => R, SectionType: () => U, StatePreservationMode: () => q, TableColumnVerticalAlignment: () => z, TemplateType: () => te, UIVOCABULARY: () => st, UIVOCABULARYALPHADOT: () => ct, UIVOCABULARYDOT: () => pt, VOCWITHCOLONS: () => rt, VOCWITHSLASH: () => it, ViewTemplateType: () => H, ViewTypes: () => D, Visualization: () => _45, v2: () => f, v4: () => E });
|
|
23123
|
-
var T = ((
|
|
23124
|
-
var C = ((
|
|
23509
|
+
var T = ((r) => (r.ObjectPage = "ObjectPage", r.ListReport = "ListReport", r.OverviewPage = "OverviewPage", r.CustomPage = "CustomPage", r.AnalyticalListPage = "AnalyticalListPage", r))(T || {});
|
|
23510
|
+
var C = ((r) => (r.ObjectPage = "ObjectPage", r.ListReport = "ListReport", r.CustomPage = "CustomPage", r.FPMCustomPage = "FPMCustomPage", r.AnalyticalListPage = "AnalyticalListPage", r))(C || {});
|
|
23125
23511
|
var Ze = d(d({}, T), C);
|
|
23126
23512
|
var De = /* @__PURE__ */ new Map([["ListReport", "sap.suite.ui.generic.template.ListReport.view.ListReport"], ["AnalyticalListPage", "sap.suite.ui.generic.template.AnalyticalListPage.view.AnalyticalListPage"], ["ObjectPage", "sap.suite.ui.generic.template.ObjectPage.view.Details"]]);
|
|
23127
23513
|
var L = ((t) => (t.v2 = "v2", t.v4 = "v4", t))(L || {});
|
|
@@ -23132,20 +23518,20 @@ var require_common2 = __commonJS({
|
|
|
23132
23518
|
var v = ((t) => (t.flex = "flex", t.manifest = "manifest", t))(v || {});
|
|
23133
23519
|
var I = ((t) => (t.Primary = "primary", t.Secondary = "secondary", t))(I || {});
|
|
23134
23520
|
var U = ((o) => (o.Section = "Section", o.SubSection = "SubSection", o.HeaderSection = "HeaderSection", o))(U || {});
|
|
23135
|
-
var w = ((
|
|
23521
|
+
var w = ((s) => (s.Manifest = "Manifest", s.FlexChange = "FlexChange", s.Annotation = "Annotation", s.XMLProperty = "XMLProperty", s))(w || {});
|
|
23136
23522
|
var M = ((g) => (g.Table = "sap.m.Table", g.TableColumn = "sap.m.Column", g.SmartTable = "sap.ui.comp.smarttable.SmartTable", g.SmartFilterBar = "sap.ui.comp.smartfilterbar.SmartFilterBar", g.SmartChart = "sap.ui.comp.smartchart.SmartChart", g.Group = "sap.ui.comp.smartform.Group", g.GroupElement = "sap.ui.comp.smartform.GroupElement", g.Button = "sap.m.Button", g.ToolbarButton = "sap.m.OverflowToolbarButton", g.Avatar = "sap.f.Avatar", g.ObjectPageDynamicHeaderTitle = "sap.uxap.ObjectPageDynamicHeaderTitle", g.ObjectPageGridProperties = "sap.ui.layout.GridData", g.ObjectPageHeader = "sap.uxap.ObjectPageHeader", g.ObjectPageLayout = "sap.uxap.ObjectPageLayout", g.HeaderAction = "sap.uxap.ObjectPageHeaderActionButton", g.DynamicPage = "sap.f.DynamicPage", g.Form = "sap.ui.layout.form", g.Chart = "sap.suite.ui.microchart", g.Section = "sap.uxap.ObjectPageSection", g.SubSection = "sap.uxap.ObjectPageSubSection", g))(M || {});
|
|
23137
23523
|
var _45 = ((t) => (t.LineItem = "LineItem", t.Chart = "Chart", t))(_45 || {});
|
|
23138
|
-
var k = ((
|
|
23524
|
+
var k = ((i) => (i.Sapux = "src", i.Schemas = ".schemas", i.Pages = "pages", i.Webapp = "webapp", i.Temp = ".tmp", i.Changes = "changes", i.LocalService = "localService", i.Controller = "controller", i.View = "view", i.Fragment = "fragment", i.Ext = "ext", i.VSCode = ".vscode", i))(k || {});
|
|
23139
23525
|
var B = ((n) => (n.App = "app.json", n))(B || {});
|
|
23140
23526
|
var et = "Facet ID: ";
|
|
23141
23527
|
var tt = "Action ID: ";
|
|
23142
23528
|
var G = ((S) => (S.LineItem = "LineItem", S.CollectionFacet = "CollectionFacet", S.Chart = "Chart", S.Form = "Form", S.Identification = "Identification", S.DataPoint = "DataPoint", S.Address = "Address", S.Contact = "Contact", S.PresentationVariant = "PresentationVariant", S.Unknown = "", S))(G || {});
|
|
23143
23529
|
var ot = "^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$";
|
|
23144
|
-
var H = ((
|
|
23530
|
+
var H = ((r) => (r.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", r.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", r.TreeTableColumnsExtension = "TreeTableColumnsExtension", r.GridTableColumnsExtension = "GridTableColumnsExtension", r.ResponsiveTableCellsExtension = "ResponsiveTableCellsExtension", r))(H || {});
|
|
23145
23531
|
var W = ((e) => (e.Action = "Action", e.Actions = "Actions", e.ActionsLR = "Actions<LineItems>", e.ALPChart = "ALPChart", e.ALPChartView = "ALPChartView", e.ALPTable = "ALPTable", e.ALPTableView = "ALPTableView", e.AnalyticalListPageFilterBar = "AnalyticalListPageFilterBar", e.AnnotationPathAsObject = "AnnotationPathAsObject", e.ChartToolBarAction = "ChartToolBarAction", e.CommonHeaderFacetSettings = "CommonHeaderFacetSettings", e.CompactFilters = "CompactFilters", e.CustomFooterActionOP = "CustomFooterActionOP", e.CustomHeaderAction = "CustomHeaderAction", e.CustomHeaderActionOP = "CustomHeaderActionOP", e.CustomFormActionOP = "CustomFormActionOP", e.CustomTableAction = "CustomTableAction", e.CustomTableActionOP = "CustomTableActionOP", e.CustomColumn = "TableCustomColumn", e.CustomColumnOP = "TableCustomColumnOP", e.CustomColumns = "TableCustomColumns", e.CustomSections = "CustomSections", e.FieldPath = "FieldPath", e.Field = "Field", e.Fields = "Fields", e.Fields4Dialog = "Fields4Dialog", e.FilterBar = "FilterBar", e.FilterBarVisualFilters = "FilterBarVisualFilters", e.Footer = "Footer", e.FooterAction = "FooterAction", e.FooterActionV4 = "FooterActionV4", e.FooterActions = "FooterActions", e.FooterActionsLR = "FooterActions<LineItems>", e.Form = "Form", e.FormAction = "FormAction", e.GenericActions = "GenericActions", e.GenericColumnsOP = "GenericColumnsOP", e.GenericFooter = "GenericFooter", e.GenericSections = "GenericSections", e.Header = "Header", e.HeaderActions = "HeaderActions", e.ObjectPageHeaderAction = "ObjectPageHeaderAction", e.ObjectPageHeaderActions = "ObjectPageHeaderActions", e.HeaderSections = "HeaderSections", e.LineItems = "LineItems", e.LineItemsOfView = "LineItemsOfView", e.ListReportFilterBar = "ListReportFilterBar", e.LRTableView = "LRTableView", e.LRChartView = "LRChartView", e.MultiEditV2 = "MultiEdit", e.MultiTableModeV4 = "MultiTableModeV4", e.ObjectPageChart = "ObjectPageChart", e.ObjectPageCustomSectionFragment = "ObjectPageCustomSectionFragment", e.ObjectPageForm = "ObjectPageForm", e.ObjectPageFooter = "ObjectPageFooter", e.ObjectPageFooterAction = "ObjectPageFooterAction", e.ObjectPageFooterActions = "ObjectPageFooterActions", e.ObjectPageHeader = "ObjectPageHeader", e.ObjectPageHeaderSectionForm = "ObjectPageHeaderSectionForm", e.ObjectPageHeaderSectionChart = "ObjectPageHeaderSectionChart", e.ObjectPageHeaderSectionDataPoint = "ObjectPageHeaderSectionDataPoint", e.ObjectPageHeaderSectionContact = "ObjectPageHeaderSectionContact", e.ObjectPageHeaderSectionAddress = "ObjectPageHeaderSectionAddress", e.ObjectPageLayout = "ObjectPageLayout", e.ObjectPagePresentationVariant = "ObjectPagePresentationVariant", e.ObjectPageSectionAddress = "ObjectPageSectionAddress", e.ObjectPageSectionChart = "ObjectPageSectionChart", e.ObjectPageSectionContact = "ObjectPageSectionContact", e.ObjectPageSectionDataPoint = "ObjectPageSectionDataPoint", e.ObjectPageSectionForm = "ObjectPageSectionForm", e.ObjectPageSectionPresentationVariant = "ObjectPageSectionPresentationVariant", e.ObjectPageSectionTableV4 = "ObjectPageSectionTableV4", e.ObjectPageSubSections = "ObjectPageSubSections", e.ObjectPageTable = "ObjectPageTable", e.ObjectPageTableColumn = "ObjectPageTableColumn", e.ObjectPageToolBar = "ObjectPageToolBar", e.ObjectPageToolBarAction = "ObjectPageToolBarAction", e.ObjectPageToolBarActions = "ObjectPageToolBarActions", e.Position = "Position", e.PositionOP = "PositionOP", e.QuickVariant = "QuickVariant", e.QuickVariantSelectionOP = "QuickVariantSelectionOP", e.QuickVariantSelectionV4OP = "QuickVariantSelectionV4OP", e.RelatedFacetKeys = "RelatedFacetKeys", e.Sections = "Sections", e.SectionActions = "SectionActions", e.SelectionFields = "SelectionFields", e.Table = "Table", e.TableSPV = "TableSPV", e.TableColumn = "TableColumn", e.TableViewExtension = "TableViewExtension", e.ToolBarAction = "ToolBarAction", e.ToolBarLR = "ToolBar<LineItems>", e.ToolBar = "ToolBar", e.ViewTableColumn = "ViewTableColumn", e.ViewCustomColumn = "ViewTableCustomColumn", e.ViewCustomAction = "ViewTableCustomAction", e.ViewChartToolBar = "ViewChartToolBar", e.ViewToolBarAction = "ViewToolBarAction", e.ViewPosition = "ViewPosition", e.ViewCustomActionPosition = "ViewCustomActionPosition", e.VisualFilters = "VisualFilters", e.VisualFilter = "VisualFilter", e.CustomActionPosition = "CustomActionPosition", e.CustomActionPositionOP = "CustomActionPositionOP", e.CustomHeaderActionPosition = "CustomHeaderActionPosition", e.CustomHeaderActionPositionOP = "CustomHeaderActionPositionOP", e.CustomFooterActionPositionOP = "CustomFooterActionPositionOP", e))(W || {});
|
|
23146
|
-
var X = ((
|
|
23147
|
-
var Q = ((
|
|
23148
|
-
var K = ((
|
|
23532
|
+
var X = ((i) => (i.actions = "actions", i.annotationPath = "annotationPath", i.chart = "chart", i.columns = "columns", i.defaultPath = "defaultPath", i.defaultTemplateAnnotationPath = "defaultTemplateAnnotationPath", i.footer = "footer", i.header = "header", i.sections = "sections", i.table = "table", i.views = "views", i.visualFilters = "visualFilters", i))(X || {});
|
|
23533
|
+
var Q = ((i) => (i.annotationPath = "annotationPath", i.annotationType = "annotationType", i.artifactType = "artifactType", i.controlType = "controlType", i.dataType = "dataType", i.fullyQualifiedName = "fullyQualifiedName", i.hidden = "hidden", i.isViewNode = "isViewNode", i.key = "key", i.keys = "keys", i.target = "target", i.propertyIndex = "propertyIndex", i))(Q || {});
|
|
23534
|
+
var K = ((r) => (r.id = "ID", r.value = "Value", r.action = "Action", r.target = "Target", r.key = "Key", r))(K || {});
|
|
23149
23535
|
var at = "webapp/localService/metadata.xml";
|
|
23150
23536
|
var nt = "webapp/manifest.json";
|
|
23151
23537
|
var it = "/@com.sap.vocabularies";
|
|
@@ -23157,13 +23543,13 @@ var require_common2 = __commonJS({
|
|
|
23157
23543
|
var gt = "/quickVariantSelectionX";
|
|
23158
23544
|
var mt = "/filterSettings/dateSettings";
|
|
23159
23545
|
var bt = ".fragment.";
|
|
23160
|
-
var Y = ((
|
|
23546
|
+
var Y = ((s) => (s.Control = "Control", s.Property = "Property", s.Aggregation = "Aggregation", s.Event = "Event", s))(Y || {});
|
|
23161
23547
|
var N = ((n) => (n.restricted = "restricted", n))(N || {});
|
|
23162
23548
|
var z = ((o) => (o.Top = "Top", o.Middle = "Middle", o.Bottom = "Bottom", o))(z || {});
|
|
23163
23549
|
var q = ((t) => (t.persistence = "persistence", t.discovery = "discovery", t))(q || {});
|
|
23164
23550
|
var J = ((o) => (o.BeginColumnPages = "beginColumnPages", o.MidColumnPages = "midColumnPages", o.EndColumnPages = "endColumnPages", o))(J || {});
|
|
23165
23551
|
var $ = ((t) => (t.OData = "OData", t.ODataAnnotation = "ODataAnnotation", t))($ || {});
|
|
23166
|
-
var Z = ((
|
|
23552
|
+
var Z = ((r) => (r.ui = "sap.ui", r.app = "sap.app", r.generic = "sap.ui.generic.app", r.ovp = "sap.ovp", r.ui5 = "sap.ui5", r))(Z || {});
|
|
23167
23553
|
var St = `${"sap.ui.generic.app"}/settings`;
|
|
23168
23554
|
var xt = "sap.fe.templates.RootContainer.view.Fcl";
|
|
23169
23555
|
var ut = "appRootView";
|
|
@@ -23181,7 +23567,7 @@ var require_common2 = __commonJS({
|
|
|
23181
23567
|
var ie = ((m) => (m.analytical = "sap.ovp.cards.charts.analytical", m.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", m.list = "sap.ovp.cards.list", m.listv4 = "sap.ovp.cards.v4.list", m.linklist = "sap.ovp.cards.linklist", m.linklistv4 = "sap.ovp.cards.v4.linklist", m.table = "sap.ovp.cards.table", m.tablev4 = "sap.ovp.cards.v4.table", m.stack = "sap.ovp.cards.stack", m))(ie || {});
|
|
23182
23568
|
var Tt = { "sap.ovp.cards.charts.analytical": "AnalyticalCard", "sap.ovp.cards.v4.charts.analytical": "AnalyticalCard", "sap.ovp.cards.list": "ListCard", "sap.ovp.cards.v4.list": "ListCard", "sap.ovp.cards.linklist": "LinklistCard", "sap.ovp.cards.v4.linklist": "LinklistCard", "sap.ovp.cards.table": "TableCard", "sap.ovp.cards.v4.table": "TableCard", "sap.ovp.cards.stack": "StackCard" };
|
|
23183
23569
|
var re = ((b) => (b.analyticalCardSettings = "analyticalCardSettings", b.analyticalCardSettingsv4 = "analyticalCardSettingsv4", b.listCardSettings = "listCardSettings", b.listCardSettingsv4 = "listCardSettingsv4", b.stackCardSettings = "stackCardSettings", b.linkListCardSettings = "linkListCardSettings", b.tableCardSettings = "tableCardSettings", b.tableCardSettingsv4 = "tableCardSettingsv4", b))(re || {});
|
|
23184
|
-
var se = ((
|
|
23570
|
+
var se = ((r) => (r.average = "average", r.max = "max", r.min = "min", r.sum = "sum", r.count = "$count", r))(se || {});
|
|
23185
23571
|
var pe = ((o) => (o.standard = "standard", o.bar = "bar", o.carousel = "carousel", o))(pe || {});
|
|
23186
23572
|
var ce = ((t) => (t.extended = "extended", t.condensed = "condensed", t))(ce || {});
|
|
23187
23573
|
var le = ((t) => (t.ascending = "ascending", t.descending = "descending", t))(le || {});
|
|
@@ -23189,17 +23575,17 @@ var require_common2 = __commonJS({
|
|
|
23189
23575
|
var me = ((a) => (a.DATERANGE = "DATERANGE", a.DATE = "DATE", a.FROM = "FROM", a.TO = "TO", a.DAYS = "DAYS", a.LASTDAYS = "LASTDAYS", a.LASTWEEKS = "LASTWEEKS", a.WEEK = "WEEK", a.LASTMONTHS = "LASTMONTHS", a.MONTH = "MONTH", a.QUARTER = "QUARTER", a.LASTQUARTERS = "LASTQUARTERS", a.LASTYEARS = "LASTYEARS", a.LASTYEAR = "LASTYEAR", a.YEAR = "YEAR", a.NEXTDAYS = "NEXTDAYS", a.NEXTWEEKS = "NEXTWEEKS", a.NEXTMONTHS = "NEXTMONTHS", a.NEXTQUARTERS = "NEXTQUARTERS", a.NEXTYEARS = "NEXTYEARS", a.NEXT = "NEXT", a.SPECIFICMONTH = "SPECIFICMONTH", a.YESTERDAY = "YESTERDAY", a.YEARTODATE = "YEARTODATE", a.TODAY = "TODAY", a.TOMORROW = "TOMORROW", a.THISWEEK = "THISWEEK", a.LASTWEEK = "LASTWEEK", a.LAST2WEEKS = "LAST2WEEKS", a.LAST3WEEKS = "LAST3WEEKS", a.LAST4WEEKS = "LAST4WEEKS", a.LAST5WEEKS = "LAST5WEEKS", a.NEXTWEEK = "NEXTWEEK", a.NEXT2WEEKS = "NEXT2WEEKS", a.NEXT3WEEKS = "NEXT3WEEKS", a.NEXT4WEEKS = "NEXT4WEEKS", a.NEXT5WEEKS = "NEXT5WEEKS", a.THISMONTH = "THISMONTH", a.LASTMONTH = "LASTMONTH", a.NEXTMONTH = "NEXTMONTH", a.THISQUARTER = "THISQUARTER", a.LASTQUARTER = "LASTQUARTER", a.NEXTQUARTER = "NEXTQUARTER", a.QUARTER1 = "QUARTER1", a.QUARTER2 = "QUARTER2", a.QUARTER3 = "QUARTER3", a.QUARTER4 = "QUARTER4", a.TODAYFROMTO = "TODAYFROMTO", a))(me || {});
|
|
23190
23576
|
var be = ((l) => (l.YESTERDAY = "YESTERDAY", l.TODAY = "TODAY", l.THISWEEK = "THISWEEK", l.LASTWEEK = "LASTWEEK", l.THISMONTH = "THISMONTH", l.TOMORROW = "TOMORROW", l.LASTMONTH = "LASTMONTH", l.THISQUARTER = "THISQUARTER", l.LASTQUARTER = "LASTQUARTER", l.THISYEAR = "THISYEAR", l.LASTYEAR = "LASTYEAR", l.LAST2WEEKS = "LAST2WEEKS", l.LAST3WEEKS = "LAST3WEEKS", l.LAST4WEEKS = "LAST4WEEKS", l.LAST5WEEKS = "LAST5WEEKS", l.YEARTODATE = "YEARTODATE", l.QUARTER1 = "QUARTER1", l.QUARTER2 = "QUARTER2", l.QUARTER3 = "QUARTER3", l.QUARTER4 = "QUARTER4", l.DATETOYEAR = "DATETOYEAR", l))(be || {});
|
|
23191
23577
|
var Se = ((n) => (n.XML = "XML", n))(Se || {});
|
|
23192
|
-
var xe = ((
|
|
23193
|
-
var ue = ((
|
|
23578
|
+
var xe = ((s) => (s.ResponsiveTable = "ResponsiveTable", s.GridTable = "GridTable", s.AnalyticalTable = "AnalyticalTable", s.TreeTable = "TreeTable", s))(xe || {});
|
|
23579
|
+
var ue = ((s) => (s.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", s.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", s.TreeTableColumnsExtension = "TreeTableColumnsExtension", s.GridTableColumnsExtension = "GridTableColumnsExtension", s))(ue || {});
|
|
23194
23580
|
var Pe = ((n) => (n.extension = "extension", n))(Pe || {});
|
|
23195
23581
|
var de = ((n) => (n.GENERICPROPERTY = "GENERICPROPERTY", n))(de || {});
|
|
23196
23582
|
var Ae = ((o) => (o.charttable = "charttable", o.chart = "chart", o.table = "table", o))(Ae || {});
|
|
23197
23583
|
var Te = ((t) => (t.visual = "visual", t.compact = "compact", t))(Te || {});
|
|
23198
23584
|
var Ce = ((o) => (o.always = "always", o.never = "never", o.ifAnyFilterExist = "ifAnyFilterExist", o))(Ce || {});
|
|
23199
|
-
var fe = ((
|
|
23585
|
+
var fe = ((p) => (p.bar = "bar", p.column = "column", p.line = "line", p.combination = "combination", p.pie = "pie", p.donut = "donut", p.scatter = "scatter", p.bubble = "bubble", p.heatmap = "heatmap", p.bullet = "bullet", p.verticalBullet = "vertical_bullet", p.stackedBar = "stacked_bar", p.stackedColumn = "stacked_column", p.stackedCombination = "stacked_combination", p.horizontalStackedCombination = "horizontal_stacked_combination", p.dualBar = "dual_bar", p.dualColumn = "dual_column", p.dualLine = "dual_line", p.dualStackedBar = "dual_stacked_bar", p.dualStackedColumn = "dual_stacked_column", p.dualCombination = "dual_combination", p.dualStackedCombination = "dual_stacked_combination", p.dualHorizontalCombination = "dual_horizontal_combination", p.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", p.hundredStackedBar = "100_stacked_bar", p.hundredStackedColumn = "100_stacked_column", p.hundredDualStackedBar = "100_dual_stacked_bar", p.hundredDualStackedColumn = "100_dual_stacked_column", p.waterfall = "waterfall", p.horizontalWaterfall = "horizontal_waterfall", p))(fe || {});
|
|
23200
23586
|
var Ee = ((o) => (o.AfterFacet = "AfterFacet", o.BeforeFacet = "BeforeFacet", o.ReplaceFacet = "ReplaceFacet", o))(Ee || {});
|
|
23201
23587
|
var ye = ((n) => (n.XML = "XML", n))(ye || {});
|
|
23202
|
-
var Ve = ((
|
|
23588
|
+
var Ve = ((o) => (o.inline = "inline", o.creationRows = "creationRows", o.creationRowsHiddenInEditMode = "creationRowsHiddenInEditMode", o))(Ve || {});
|
|
23203
23589
|
var Ct = "sap.suite.ui.generic.template";
|
|
23204
23590
|
var ft = "sap.suite.ui.generic.template.ObjectPage";
|
|
23205
23591
|
var Et = "sap.suite.ui.generic.template.ListReport";
|
|
@@ -23213,7 +23599,7 @@ var require_common2 = __commonJS({
|
|
|
23213
23599
|
var E = {};
|
|
23214
23600
|
A(E, { ActionPlacement: () => Le, Availability: () => We, CustomSectionViewTypesV4: () => Be, DefaultPathType: () => ve, DesigntimeValues: () => Me, FE_TEMPLATE_V4: () => ht, FE_TEMPLATE_V4_ALP: () => Ut, FE_TEMPLATE_V4_CUSTOM_PAGE: () => Rt, FE_TEMPLATE_V4_LIST_REPORT: () => It, FE_TEMPLATE_V4_OBJECT_PAGE: () => vt, FIORI_FCL_ROUTER_CLASS: () => Mt, HorizontalAlign: () => Xe, InitialLayoutType: () => Ue, InitialLoadType: () => Re, LayoutType: () => Ie, Placement: () => He, SAPUI5_CONTROLLER_EXTENSION: () => kt, SAPUI5_DEPENDENCY_LIB_SAP_F: () => _t, SAPUI5_FRAGMENT_TYPE_V4: () => wt, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => Gt, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => Bt, SectionLayoutType: () => _e, SectionPosition: () => ke, SectionPositionV4: () => Ge, SelectType: () => we, SelectionMode: () => je, TableCreationModeType: () => he, TableTypeV4: () => Fe, VariantManagementTypeListReport: () => Ke, VariantManagementTypeObjectPage: () => Qe });
|
|
23215
23601
|
var Le = ((t) => (t.After = "After", t.Before = "Before", t))(Le || {});
|
|
23216
|
-
var je = ((
|
|
23602
|
+
var je = ((s) => (s.Multi = "Multi", s.None = "None", s.Single = "Single", s.Auto = "Auto", s))(je || {});
|
|
23217
23603
|
var Fe = ((o) => (o.ResponsiveTable = "ResponsiveTable", o.GridTable = "GridTable", o.AnalyticalTable = "AnalyticalTable", o))(Fe || {});
|
|
23218
23604
|
var he = ((o) => (o.NewPage = "NewPage", o.Inline = "Inline", o.CreationRow = "CreationRow", o))(he || {});
|
|
23219
23605
|
var Re = ((o) => (o.Disabled = "Disabled", o.Enabled = "Enabled", o.Auto = "Auto", o))(Re || {});
|
|
@@ -23297,46 +23683,46 @@ var require_v2 = __commonJS({
|
|
|
23297
23683
|
var F = Object.getOwnPropertyNames;
|
|
23298
23684
|
var j = Object.prototype.hasOwnProperty;
|
|
23299
23685
|
var W = (s) => p(s, "__esModule", { value: true });
|
|
23300
|
-
var w = (s,
|
|
23301
|
-
for (var a in
|
|
23302
|
-
p(s, a, { get:
|
|
23303
|
-
};
|
|
23304
|
-
var M = (s,
|
|
23305
|
-
if (
|
|
23306
|
-
for (let r of F(
|
|
23307
|
-
!j.call(s, r) && (a || r !== "default") && p(s, r, { get: () =>
|
|
23686
|
+
var w = (s, i) => {
|
|
23687
|
+
for (var a in i)
|
|
23688
|
+
p(s, a, { get: i[a], enumerable: true });
|
|
23689
|
+
};
|
|
23690
|
+
var M = (s, i, a, n) => {
|
|
23691
|
+
if (i && typeof i == "object" || typeof i == "function")
|
|
23692
|
+
for (let r of F(i))
|
|
23693
|
+
!j.call(s, r) && (a || r !== "default") && p(s, r, { get: () => i[r], enumerable: !(n = h(i, r)) || n.enumerable });
|
|
23308
23694
|
return s;
|
|
23309
23695
|
};
|
|
23310
|
-
var B = ((s) => (
|
|
23696
|
+
var B = ((s) => (i, a) => s && s.get(i) || (a = M(W({}), i, 1), s && s.set(i, a), a))(typeof WeakMap != "undefined" ? /* @__PURE__ */ new WeakMap() : 0);
|
|
23311
23697
|
var Z = {};
|
|
23312
|
-
w(Z, { CardSettingsType: () =>
|
|
23313
|
-
var b = ((
|
|
23314
|
-
var
|
|
23698
|
+
w(Z, { CardSettingsType: () => m, CardTemplateType: () => d, ChartCardType: () => b, ChartType: () => I, ContainerLayoutType: () => k, CreateMode: () => N, DateRangeType: () => u, DefaultContentView: () => y, DefaultDateRangeValueType: () => P, DefaultFilterMode: () => v, ExtensionFragmentTypes: () => _45, FE_TEMPLATE_V2: () => X, FE_TEMPLATE_V2_ALP: () => G, FE_TEMPLATE_V2_LIST_REPORT: () => K, FE_TEMPLATE_V2_OBJECT_PAGE: () => H, IgnoredFieldsType: () => L, LinkListFlavorType: () => A, ListFlavorType: () => T, ListTypeType: () => x, LoadDataOnAppLaunchSettings: () => U, MeasureAggregateValues: () => g, SAPUI5_CONTROLLER_EXTENSION: () => z, SAPUI5_VIEW_EXTENSION: () => Y, SAPUI5_VIEW_EXTENSION_ANALYTICAL_LIST_PAGE: () => $, SAPUI5_VIEW_EXTENSION_LIST_REPORT: () => J, SAPUI5_VIEW_EXTENSION_OBJECT_PAGE: () => q, SectionPosition: () => V, SortOrderType: () => E, Strategy: () => R, TableColumnExtensionTypeV2: () => O, TableTypeV2: () => C, cardTemplateTypeMap: () => Q, customColumnViewTypes: () => f });
|
|
23699
|
+
var b = ((n) => (n.cardBubble = "cardBubble", n.cardchartsline = "cardchartsline", n.cardchartsdonut = "cardchartsdonut", n))(b || {});
|
|
23700
|
+
var d = ((l) => (l.analytical = "sap.ovp.cards.charts.analytical", l.analyticalv4 = "sap.ovp.cards.v4.charts.analytical", l.list = "sap.ovp.cards.list", l.listv4 = "sap.ovp.cards.v4.list", l.linklist = "sap.ovp.cards.linklist", l.linklistv4 = "sap.ovp.cards.v4.linklist", l.table = "sap.ovp.cards.table", l.tablev4 = "sap.ovp.cards.v4.table", l.stack = "sap.ovp.cards.stack", l))(d || {});
|
|
23315
23701
|
var Q = { "sap.ovp.cards.charts.analytical": "AnalyticalCard", "sap.ovp.cards.v4.charts.analytical": "AnalyticalCard", "sap.ovp.cards.list": "ListCard", "sap.ovp.cards.v4.list": "ListCard", "sap.ovp.cards.linklist": "LinklistCard", "sap.ovp.cards.v4.linklist": "LinklistCard", "sap.ovp.cards.table": "TableCard", "sap.ovp.cards.v4.table": "TableCard", "sap.ovp.cards.stack": "StackCard" };
|
|
23316
|
-
var
|
|
23702
|
+
var m = ((c) => (c.analyticalCardSettings = "analyticalCardSettings", c.analyticalCardSettingsv4 = "analyticalCardSettingsv4", c.listCardSettings = "listCardSettings", c.listCardSettingsv4 = "listCardSettingsv4", c.stackCardSettings = "stackCardSettings", c.linkListCardSettings = "linkListCardSettings", c.tableCardSettings = "tableCardSettings", c.tableCardSettingsv4 = "tableCardSettingsv4", c))(m || {});
|
|
23317
23703
|
var g = ((S) => (S.average = "average", S.max = "max", S.min = "min", S.sum = "sum", S.count = "$count", S))(g || {});
|
|
23318
|
-
var T = ((
|
|
23704
|
+
var T = ((n) => (n.standard = "standard", n.bar = "bar", n.carousel = "carousel", n))(T || {});
|
|
23319
23705
|
var x = ((a) => (a.extended = "extended", a.condensed = "condensed", a))(x || {});
|
|
23320
23706
|
var E = ((a) => (a.ascending = "ascending", a.descending = "descending", a))(E || {});
|
|
23321
23707
|
var A = ((a) => (a.standard = "standard", a.carousel = "carousel", a))(A || {});
|
|
23322
23708
|
var u = ((e) => (e.DATERANGE = "DATERANGE", e.DATE = "DATE", e.FROM = "FROM", e.TO = "TO", e.DAYS = "DAYS", e.LASTDAYS = "LASTDAYS", e.LASTWEEKS = "LASTWEEKS", e.WEEK = "WEEK", e.LASTMONTHS = "LASTMONTHS", e.MONTH = "MONTH", e.QUARTER = "QUARTER", e.LASTQUARTERS = "LASTQUARTERS", e.LASTYEARS = "LASTYEARS", e.LASTYEAR = "LASTYEAR", e.YEAR = "YEAR", e.NEXTDAYS = "NEXTDAYS", e.NEXTWEEKS = "NEXTWEEKS", e.NEXTMONTHS = "NEXTMONTHS", e.NEXTQUARTERS = "NEXTQUARTERS", e.NEXTYEARS = "NEXTYEARS", e.NEXT = "NEXT", e.SPECIFICMONTH = "SPECIFICMONTH", e.YESTERDAY = "YESTERDAY", e.YEARTODATE = "YEARTODATE", e.TODAY = "TODAY", e.TOMORROW = "TOMORROW", e.THISWEEK = "THISWEEK", e.LASTWEEK = "LASTWEEK", e.LAST2WEEKS = "LAST2WEEKS", e.LAST3WEEKS = "LAST3WEEKS", e.LAST4WEEKS = "LAST4WEEKS", e.LAST5WEEKS = "LAST5WEEKS", e.NEXTWEEK = "NEXTWEEK", e.NEXT2WEEKS = "NEXT2WEEKS", e.NEXT3WEEKS = "NEXT3WEEKS", e.NEXT4WEEKS = "NEXT4WEEKS", e.NEXT5WEEKS = "NEXT5WEEKS", e.THISMONTH = "THISMONTH", e.LASTMONTH = "LASTMONTH", e.NEXTMONTH = "NEXTMONTH", e.THISQUARTER = "THISQUARTER", e.LASTQUARTER = "LASTQUARTER", e.NEXTQUARTER = "NEXTQUARTER", e.QUARTER1 = "QUARTER1", e.QUARTER2 = "QUARTER2", e.QUARTER3 = "QUARTER3", e.QUARTER4 = "QUARTER4", e.TODAYFROMTO = "TODAYFROMTO", e))(u || {});
|
|
23323
23709
|
var P = ((o) => (o.YESTERDAY = "YESTERDAY", o.TODAY = "TODAY", o.THISWEEK = "THISWEEK", o.LASTWEEK = "LASTWEEK", o.THISMONTH = "THISMONTH", o.TOMORROW = "TOMORROW", o.LASTMONTH = "LASTMONTH", o.THISQUARTER = "THISQUARTER", o.LASTQUARTER = "LASTQUARTER", o.THISYEAR = "THISYEAR", o.LASTYEAR = "LASTYEAR", o.LAST2WEEKS = "LAST2WEEKS", o.LAST3WEEKS = "LAST3WEEKS", o.LAST4WEEKS = "LAST4WEEKS", o.LAST5WEEKS = "LAST5WEEKS", o.YEARTODATE = "YEARTODATE", o.QUARTER1 = "QUARTER1", o.QUARTER2 = "QUARTER2", o.QUARTER3 = "QUARTER3", o.QUARTER4 = "QUARTER4", o.DATETOYEAR = "DATETOYEAR", o))(P || {});
|
|
23324
|
-
var f = ((
|
|
23710
|
+
var f = ((i) => (i.XML = "XML", i))(f || {});
|
|
23325
23711
|
var C = ((r) => (r.ResponsiveTable = "ResponsiveTable", r.GridTable = "GridTable", r.AnalyticalTable = "AnalyticalTable", r.TreeTable = "TreeTable", r))(C || {});
|
|
23326
23712
|
var O = ((r) => (r.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", r.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", r.TreeTableColumnsExtension = "TreeTableColumnsExtension", r.GridTableColumnsExtension = "GridTableColumnsExtension", r))(O || {});
|
|
23327
|
-
var
|
|
23328
|
-
var
|
|
23329
|
-
var y = ((
|
|
23713
|
+
var R = ((i) => (i.extension = "extension", i))(R || {});
|
|
23714
|
+
var L = ((i) => (i.GENERICPROPERTY = "GENERICPROPERTY", i))(L || {});
|
|
23715
|
+
var y = ((n) => (n.charttable = "charttable", n.chart = "chart", n.table = "table", n))(y || {});
|
|
23330
23716
|
var v = ((a) => (a.visual = "visual", a.compact = "compact", a))(v || {});
|
|
23331
|
-
var U = ((
|
|
23332
|
-
var
|
|
23333
|
-
var
|
|
23334
|
-
var _45 = ((
|
|
23335
|
-
var N = ((n) => (n.inline = "inline", n))(N || {});
|
|
23717
|
+
var U = ((n) => (n.always = "always", n.never = "never", n.ifAnyFilterExist = "ifAnyFilterExist", n))(U || {});
|
|
23718
|
+
var I = ((t) => (t.bar = "bar", t.column = "column", t.line = "line", t.combination = "combination", t.pie = "pie", t.donut = "donut", t.scatter = "scatter", t.bubble = "bubble", t.heatmap = "heatmap", t.bullet = "bullet", t.verticalBullet = "vertical_bullet", t.stackedBar = "stacked_bar", t.stackedColumn = "stacked_column", t.stackedCombination = "stacked_combination", t.horizontalStackedCombination = "horizontal_stacked_combination", t.dualBar = "dual_bar", t.dualColumn = "dual_column", t.dualLine = "dual_line", t.dualStackedBar = "dual_stacked_bar", t.dualStackedColumn = "dual_stacked_column", t.dualCombination = "dual_combination", t.dualStackedCombination = "dual_stacked_combination", t.dualHorizontalCombination = "dual_horizontal_combination", t.dualHorizontalStackedCombination = "dual_horizontal_stacked_combination", t.hundredStackedBar = "100_stacked_bar", t.hundredStackedColumn = "100_stacked_column", t.hundredDualStackedBar = "100_dual_stacked_bar", t.hundredDualStackedColumn = "100_dual_stacked_column", t.waterfall = "waterfall", t.horizontalWaterfall = "horizontal_waterfall", t))(I || {});
|
|
23719
|
+
var V = ((n) => (n.AfterFacet = "AfterFacet", n.BeforeFacet = "BeforeFacet", n.ReplaceFacet = "ReplaceFacet", n))(V || {});
|
|
23720
|
+
var _45 = ((i) => (i.XML = "XML", i))(_45 || {});
|
|
23721
|
+
var N = ((n) => (n.inline = "inline", n.creationRows = "creationRows", n.creationRowsHiddenInEditMode = "creationRowsHiddenInEditMode", n))(N || {});
|
|
23336
23722
|
var X = "sap.suite.ui.generic.template";
|
|
23337
|
-
var
|
|
23338
|
-
var
|
|
23339
|
-
var
|
|
23723
|
+
var H = "sap.suite.ui.generic.template.ObjectPage";
|
|
23724
|
+
var K = "sap.suite.ui.generic.template.ListReport";
|
|
23725
|
+
var G = "sap.suite.ui.generic.template.AnalyticalListPage";
|
|
23340
23726
|
var Y = "sap.ui.viewExtensions";
|
|
23341
23727
|
var z = "sap.ui.controllerExtensions";
|
|
23342
23728
|
var q = "sap.suite.ui.generic.template.ObjectPage.view.Details";
|
|
@@ -23409,9 +23795,13 @@ var require_dist3 = __commonJS({
|
|
|
23409
23795
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
23410
23796
|
if (k2 === void 0)
|
|
23411
23797
|
k2 = k;
|
|
23412
|
-
Object.
|
|
23413
|
-
|
|
23414
|
-
|
|
23798
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
23799
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
23800
|
+
desc = { enumerable: true, get: function() {
|
|
23801
|
+
return m[k];
|
|
23802
|
+
} };
|
|
23803
|
+
}
|
|
23804
|
+
Object.defineProperty(o, k2, desc);
|
|
23415
23805
|
} : function(o, m, k, k2) {
|
|
23416
23806
|
if (k2 === void 0)
|
|
23417
23807
|
k2 = k;
|
|
@@ -23700,7 +24090,7 @@ var require_constants = __commonJS({
|
|
|
23700
24090
|
});
|
|
23701
24091
|
|
|
23702
24092
|
// ../lib/sapux-spec/dist/package.js
|
|
23703
|
-
var
|
|
24093
|
+
var require_package6 = __commonJS({
|
|
23704
24094
|
"../lib/sapux-spec/dist/package.js"(exports2) {
|
|
23705
24095
|
"use strict";
|
|
23706
24096
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -23764,7 +24154,7 @@ var require_dist4 = __commonJS({
|
|
|
23764
24154
|
__exportStar(require_pages(), exports2);
|
|
23765
24155
|
__exportStar(require_webapp(), exports2);
|
|
23766
24156
|
__exportStar(require_constants(), exports2);
|
|
23767
|
-
__exportStar(
|
|
24157
|
+
__exportStar(require_package6(), exports2);
|
|
23768
24158
|
__exportStar(require_project(), exports2);
|
|
23769
24159
|
var location = () => {
|
|
23770
24160
|
return __dirname.replace(/\\/g, "/");
|
|
@@ -28920,11 +29310,11 @@ var require_webapp2 = __commonJS({
|
|
|
28920
29310
|
var yaml = __importStar(require_Yaml());
|
|
28921
29311
|
var project_spec_1 = require_dist4();
|
|
28922
29312
|
async function getUi5CustomWebappPath(root) {
|
|
28923
|
-
var _a2, _b, _c, _d
|
|
29313
|
+
var _a2, _b, _c, _d;
|
|
28924
29314
|
let webappPath = project_spec_1.DirName.Webapp;
|
|
28925
29315
|
try {
|
|
28926
29316
|
const yamlContent = await (0, file_1.readFile)((0, path_1.join)(root, project_spec_1.FileName.Ui5Yaml));
|
|
28927
|
-
webappPath = (
|
|
29317
|
+
webappPath = ((_d = (_c = (_b = (_a2 = yaml.parse(yamlContent)) == null ? void 0 : _a2.resources) == null ? void 0 : _b.configuration) == null ? void 0 : _c.paths) == null ? void 0 : _d.webapp) ?? project_spec_1.DirName.Webapp;
|
|
28928
29318
|
} catch {
|
|
28929
29319
|
}
|
|
28930
29320
|
return webappPath;
|
|
@@ -38595,18 +38985,17 @@ var require_config = __commonJS({
|
|
|
38595
38985
|
};
|
|
38596
38986
|
exports2.destinationPropertyId = Object.keys(exports2.DestinationAttributeProperty);
|
|
38597
38987
|
function hasDestinationAttrib(destinationProperty, destinationAttributeProperty, destinationAttribs = {}) {
|
|
38598
|
-
var _a2
|
|
38599
|
-
return (
|
|
38988
|
+
var _a2;
|
|
38989
|
+
return (destinationAttribs && ((_a2 = destinationAttribs[destinationProperty]) == null ? void 0 : _a2.includes(destinationAttributeProperty))) ?? false;
|
|
38600
38990
|
}
|
|
38601
38991
|
exports2.hasDestinationAttrib = hasDestinationAttrib;
|
|
38602
38992
|
function hasFullUrlDestAttribute(destinationAttribs) {
|
|
38603
|
-
var _a2
|
|
38604
|
-
return (
|
|
38993
|
+
var _a2;
|
|
38994
|
+
return (destinationAttribs && ((_a2 = destinationAttribs["WebIDEAdditionalData"]) == null ? void 0 : _a2.includes(exports2.DestinationAttributeProperty.FULL_URL))) ?? false;
|
|
38605
38995
|
}
|
|
38606
38996
|
exports2.hasFullUrlDestAttribute = hasFullUrlDestAttribute;
|
|
38607
38997
|
function hasHTML5DynamicDestinationAttrib(destinationAttribs) {
|
|
38608
|
-
|
|
38609
|
-
return (_a2 = destinationAttribs && destinationAttribs["HTML5.DynamicDestination"] === "true") != null ? _a2 : false;
|
|
38998
|
+
return (destinationAttribs && destinationAttribs["HTML5.DynamicDestination"] === "true") ?? false;
|
|
38610
38999
|
}
|
|
38611
39000
|
exports2.hasHTML5DynamicDestinationAttrib = hasHTML5DynamicDestinationAttrib;
|
|
38612
39001
|
}
|
|
@@ -54605,14 +54994,14 @@ var require_destination = __commonJS({
|
|
|
54605
54994
|
}
|
|
54606
54995
|
exports2.listDestinations = listDestinations;
|
|
54607
54996
|
async function replaceUrlForAppStudio(systemConfig, destinationName, destinationInstance) {
|
|
54608
|
-
var _a2
|
|
54997
|
+
var _a2;
|
|
54609
54998
|
systemConfig.originalUrl = systemConfig.url;
|
|
54610
54999
|
if (destinationName && destinationInstance) {
|
|
54611
55000
|
systemConfig.url = `https://${destinationName}${DEST}`;
|
|
54612
55001
|
systemConfig.basDestinationInstanceCred = await getAuthHeaderForInstanceBasedDest(destinationInstance);
|
|
54613
55002
|
} else {
|
|
54614
55003
|
systemConfig.url = (0, ux_common_utils_1.getAppStudioBaseURL)();
|
|
54615
|
-
systemConfig.service = `/destinations/${destinationName
|
|
55004
|
+
systemConfig.service = `/destinations/${destinationName ?? systemConfig.destination}${((_a2 = systemConfig.service) == null ? void 0 : _a2.replace(/^\/?/, "/")) ?? ""}`;
|
|
54616
55005
|
}
|
|
54617
55006
|
delete systemConfig.scp;
|
|
54618
55007
|
delete systemConfig.client;
|
|
@@ -54764,11 +55153,11 @@ var require_connection = __commonJS({
|
|
|
54764
55153
|
return isHtmlResponse(response) && typeof response.data === "string" && !!response.data.match(/log[io]n/i);
|
|
54765
55154
|
}
|
|
54766
55155
|
function getContentType(contentTypeHeader, responseData) {
|
|
54767
|
-
var _a2
|
|
55156
|
+
var _a2;
|
|
54768
55157
|
if (contentTypeHeader) {
|
|
54769
55158
|
return contentTypeHeader.toLowerCase();
|
|
54770
55159
|
} else if (typeof responseData === "string") {
|
|
54771
|
-
return (
|
|
55160
|
+
return ((_a2 = (0, detect_content_type_1.default)(Buffer.from(responseData))) == null ? void 0 : _a2.toLowerCase()) ?? "";
|
|
54772
55161
|
} else {
|
|
54773
55162
|
return "";
|
|
54774
55163
|
}
|
|
@@ -56810,6 +57199,7 @@ var require_message = __commonJS({
|
|
|
56810
57199
|
}
|
|
56811
57200
|
exports2.prettyPrintMessage = prettyPrintMessage;
|
|
56812
57201
|
function printUrl(longtextUrl, frontendUrl, log4) {
|
|
57202
|
+
log4.info("Click this link for more information:");
|
|
56813
57203
|
const fullLongTextUrl = frontendUrl.concat(longtextUrl).replace(/'/g, "%27");
|
|
56814
57204
|
log4.info(fullLongTextUrl);
|
|
56815
57205
|
}
|
|
@@ -57127,8 +57517,8 @@ var require_oDataClient = __commonJS({
|
|
|
57127
57517
|
debug(res);
|
|
57128
57518
|
},
|
|
57129
57519
|
error: (debug, error3) => {
|
|
57130
|
-
var _a2, _b, _c, _d, _e
|
|
57131
|
-
debug(`Error ${(_c = (_b = (_a2 = error3.response) == null ? void 0 : _a2.config) == null ? void 0 : _b.method) == null ? void 0 : _c.toUpperCase()} ${(_d = error3.response) == null ? void 0 : _d.status} ${this.buildFullUrl((
|
|
57520
|
+
var _a2, _b, _c, _d, _e;
|
|
57521
|
+
debug(`Error ${(_c = (_b = (_a2 = error3.response) == null ? void 0 : _a2.config) == null ? void 0 : _b.method) == null ? void 0 : _c.toUpperCase()} ${(_d = error3.response) == null ? void 0 : _d.status} ${this.buildFullUrl(((_e = error3.response) == null ? void 0 : _e.config) ?? {})}
|
|
57132
57522
|
`);
|
|
57133
57523
|
debug(error3.response);
|
|
57134
57524
|
debug(error3);
|
|
@@ -57258,8 +57648,7 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
57258
57648
|
}
|
|
57259
57649
|
var Ui5AbapRepository = class extends oDataClient_1.ODataClient {
|
|
57260
57650
|
constructor({ system, credentials = void 0, log: log4 = console, connection = void 0, ignoreCertError, postConnectionCallback }) {
|
|
57261
|
-
|
|
57262
|
-
system.service = (_a2 = system.service) != null ? _a2 : constants_1.DEFAULT_SERVICE_PATH;
|
|
57651
|
+
system.service = system.service ?? constants_1.DEFAULT_SERVICE_PATH;
|
|
57263
57652
|
super({ system, credentials, log: log4, connection, ignoreCertError, postConnectionCallback });
|
|
57264
57653
|
}
|
|
57265
57654
|
async getInfo(app) {
|
|
@@ -57355,7 +57744,7 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
57355
57744
|
}
|
|
57356
57745
|
return isExisting ? await httpClient.put(`/Repositories('${encodeURIComponent(appName)}')`, payload, config) : await httpClient.post("/Repositories", payload, config);
|
|
57357
57746
|
} catch (error3) {
|
|
57358
|
-
if (((_a2 = error3 == null ? void 0 : error3.response) == null ? void 0 : _a2.status)
|
|
57747
|
+
if ([504, 408].includes((_a2 = error3 == null ? void 0 : error3.response) == null ? void 0 : _a2.status)) {
|
|
57359
57748
|
if (tryCount >= 3) {
|
|
57360
57749
|
throw error3;
|
|
57361
57750
|
}
|
|
@@ -58157,12 +58546,12 @@ var require_system3 = __commonJS({
|
|
|
58157
58546
|
const systems = {};
|
|
58158
58547
|
const destinations = await (0, connection_1.listDestinations)();
|
|
58159
58548
|
Object.values(destinations).sort((a, b) => a.Name.localeCompare(b.Name, void 0, { numeric: true, caseFirst: "lower" })).forEach((destination) => {
|
|
58160
|
-
var _a2
|
|
58549
|
+
var _a2;
|
|
58161
58550
|
systems[destination.Name] = new sapSystem_1.SapSystem(destination.Name, {
|
|
58162
58551
|
url: destination.Host,
|
|
58163
58552
|
destination: destination.Name,
|
|
58164
58553
|
destinationAuthType: destination.Authentication,
|
|
58165
|
-
scp: (
|
|
58554
|
+
scp: ((_a2 = destination.WebIDEUsage) == null ? void 0 : _a2.includes("abap_cloud")) ?? false,
|
|
58166
58555
|
destinationAttributes: Object.assign({}, destination),
|
|
58167
58556
|
client: destination["sap-client"]
|
|
58168
58557
|
});
|
|
@@ -59693,7 +60082,8 @@ var require_constants5 = __commonJS({
|
|
|
59693
60082
|
Tsconfig: "tsconfig.json",
|
|
59694
60083
|
Ui5Yaml: "ui5.yaml",
|
|
59695
60084
|
Ui5LocalYaml: "ui5-local.yaml",
|
|
59696
|
-
Ui5MockYaml: "ui5-mock.yaml"
|
|
60085
|
+
Ui5MockYaml: "ui5-mock.yaml",
|
|
60086
|
+
UI5DeployYaml: "ui5-deploy.yaml"
|
|
59697
60087
|
};
|
|
59698
60088
|
}
|
|
59699
60089
|
});
|
|
@@ -61666,9 +62056,9 @@ var require_merge = __commonJS({
|
|
|
61666
62056
|
}
|
|
61667
62057
|
});
|
|
61668
62058
|
|
|
61669
|
-
// ../../node_modules/@sap-ux/
|
|
62059
|
+
// ../../node_modules/@sap-ux/yaml/dist/errors/yaml-error.js
|
|
61670
62060
|
var require_yaml_error = __commonJS({
|
|
61671
|
-
"../../node_modules/@sap-ux/
|
|
62061
|
+
"../../node_modules/@sap-ux/yaml/dist/errors/yaml-error.js"(exports2) {
|
|
61672
62062
|
"use strict";
|
|
61673
62063
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61674
62064
|
exports2.YAMLError = void 0;
|
|
@@ -61683,9 +62073,9 @@ var require_yaml_error = __commonJS({
|
|
|
61683
62073
|
}
|
|
61684
62074
|
});
|
|
61685
62075
|
|
|
61686
|
-
// ../../node_modules/@sap-ux/
|
|
62076
|
+
// ../../node_modules/@sap-ux/yaml/dist/errors/index.js
|
|
61687
62077
|
var require_errors2 = __commonJS({
|
|
61688
|
-
"../../node_modules/@sap-ux/
|
|
62078
|
+
"../../node_modules/@sap-ux/yaml/dist/errors/index.js"(exports2) {
|
|
61689
62079
|
"use strict";
|
|
61690
62080
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61691
62081
|
exports2.YAMLError = exports2.errorTemplate = exports2.errorCode = void 0;
|
|
@@ -61722,9 +62112,9 @@ var require_errors2 = __commonJS({
|
|
|
61722
62112
|
}
|
|
61723
62113
|
});
|
|
61724
62114
|
|
|
61725
|
-
// ../../node_modules/@sap-ux/
|
|
62115
|
+
// ../../node_modules/@sap-ux/yaml/dist/texts/index.js
|
|
61726
62116
|
var require_texts = __commonJS({
|
|
61727
|
-
"../../node_modules/@sap-ux/
|
|
62117
|
+
"../../node_modules/@sap-ux/yaml/dist/texts/index.js"(exports2) {
|
|
61728
62118
|
"use strict";
|
|
61729
62119
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61730
62120
|
exports2.interpolate = void 0;
|
|
@@ -61743,9 +62133,9 @@ var require_texts = __commonJS({
|
|
|
61743
62133
|
}
|
|
61744
62134
|
});
|
|
61745
62135
|
|
|
61746
|
-
// ../../node_modules/@sap-ux/
|
|
62136
|
+
// ../../node_modules/@sap-ux/yaml/dist/yaml-document.js
|
|
61747
62137
|
var require_yaml_document = __commonJS({
|
|
61748
|
-
"../../node_modules/@sap-ux/
|
|
62138
|
+
"../../node_modules/@sap-ux/yaml/dist/yaml-document.js"(exports2) {
|
|
61749
62139
|
"use strict";
|
|
61750
62140
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
61751
62141
|
if (k2 === void 0)
|
|
@@ -61979,9 +62369,9 @@ var require_yaml_document = __commonJS({
|
|
|
61979
62369
|
}
|
|
61980
62370
|
});
|
|
61981
62371
|
|
|
61982
|
-
// ../../node_modules/@sap-ux/
|
|
62372
|
+
// ../../node_modules/@sap-ux/yaml/dist/index.js
|
|
61983
62373
|
var require_dist8 = __commonJS({
|
|
61984
|
-
"../../node_modules/@sap-ux/
|
|
62374
|
+
"../../node_modules/@sap-ux/yaml/dist/index.js"(exports2) {
|
|
61985
62375
|
"use strict";
|
|
61986
62376
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
61987
62377
|
exports2.YAMLError = exports2.errorCode = exports2.YAMLMap = exports2.YAMLSeq = exports2.YamlDocument = void 0;
|
|
@@ -62006,9 +62396,9 @@ var require_dist8 = __commonJS({
|
|
|
62006
62396
|
}
|
|
62007
62397
|
});
|
|
62008
62398
|
|
|
62009
|
-
// ../../node_modules/@sap-ux/
|
|
62399
|
+
// ../../node_modules/@sap-ux/ui5-config/dist/middlewares.js
|
|
62010
62400
|
var require_middlewares = __commonJS({
|
|
62011
|
-
"../../node_modules/@sap-ux/
|
|
62401
|
+
"../../node_modules/@sap-ux/ui5-config/dist/middlewares.js"(exports2) {
|
|
62012
62402
|
"use strict";
|
|
62013
62403
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62014
62404
|
exports2.getMockServerMiddlewareConfig = exports2.getFioriToolsProxyMiddlewareConfig = exports2.getAppReloadMiddlewareConfig = void 0;
|
|
@@ -62082,9 +62472,9 @@ var require_middlewares = __commonJS({
|
|
|
62082
62472
|
}
|
|
62083
62473
|
});
|
|
62084
62474
|
|
|
62085
|
-
// ../../node_modules/@sap-ux/
|
|
62475
|
+
// ../../node_modules/@sap-ux/ui5-config/dist/ui5config.js
|
|
62086
62476
|
var require_ui5config = __commonJS({
|
|
62087
|
-
"../../node_modules/@sap-ux/
|
|
62477
|
+
"../../node_modules/@sap-ux/ui5-config/dist/ui5config.js"(exports2) {
|
|
62088
62478
|
"use strict";
|
|
62089
62479
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
62090
62480
|
function adopt(value) {
|
|
@@ -62286,9 +62676,9 @@ var require_ui5config = __commonJS({
|
|
|
62286
62676
|
}
|
|
62287
62677
|
});
|
|
62288
62678
|
|
|
62289
|
-
// ../../node_modules/@sap-ux/
|
|
62679
|
+
// ../../node_modules/@sap-ux/ui5-config/dist/index.js
|
|
62290
62680
|
var require_dist9 = __commonJS({
|
|
62291
|
-
"../../node_modules/@sap-ux/
|
|
62681
|
+
"../../node_modules/@sap-ux/ui5-config/dist/index.js"(exports2) {
|
|
62292
62682
|
"use strict";
|
|
62293
62683
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62294
62684
|
exports2.YAMLError = exports2.yamlErrorCode = exports2.UI5Config = void 0;
|
|
@@ -62338,7 +62728,7 @@ var require_ui5_config = __commonJS({
|
|
|
62338
62728
|
});
|
|
62339
62729
|
};
|
|
62340
62730
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62341
|
-
exports2.getWebappPath = void 0;
|
|
62731
|
+
exports2.readUi5Yaml = exports2.getWebappPath = void 0;
|
|
62342
62732
|
var path_1 = require("path");
|
|
62343
62733
|
var ui5_config_1 = require_dist9();
|
|
62344
62734
|
var constants_1 = require_constants5();
|
|
@@ -62360,6 +62750,17 @@ var require_ui5_config = __commonJS({
|
|
|
62360
62750
|
});
|
|
62361
62751
|
}
|
|
62362
62752
|
exports2.getWebappPath = getWebappPath;
|
|
62753
|
+
function readUi5Yaml(basePath, fileName) {
|
|
62754
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
62755
|
+
const ui5YamlPath = (0, path_1.join)(basePath, fileName);
|
|
62756
|
+
if (yield (0, file_1.fileExists)(ui5YamlPath)) {
|
|
62757
|
+
const yamlString = yield (0, file_1.readFile)(ui5YamlPath);
|
|
62758
|
+
return yield ui5_config_1.UI5Config.newInstance(yamlString);
|
|
62759
|
+
}
|
|
62760
|
+
throw Error(`File '${fileName}' not found in project '${basePath}'`);
|
|
62761
|
+
});
|
|
62762
|
+
}
|
|
62763
|
+
exports2.readUi5Yaml = readUi5Yaml;
|
|
62363
62764
|
}
|
|
62364
62765
|
});
|
|
62365
62766
|
|
|
@@ -62623,7 +63024,7 @@ var require_project2 = __commonJS({
|
|
|
62623
63024
|
"../../node_modules/@sap-ux/project-access/dist/project/index.js"(exports2) {
|
|
62624
63025
|
"use strict";
|
|
62625
63026
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62626
|
-
exports2.getWebappPath = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getAppProgrammingLanguage = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getCapProjectType = exports2.getCapModelAndServices = void 0;
|
|
63027
|
+
exports2.readUi5Yaml = exports2.getWebappPath = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getAppProgrammingLanguage = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getCapProjectType = exports2.getCapModelAndServices = void 0;
|
|
62627
63028
|
var cap_1 = require_cap();
|
|
62628
63029
|
Object.defineProperty(exports2, "getCapModelAndServices", { enumerable: true, get: function() {
|
|
62629
63030
|
return cap_1.getCapModelAndServices;
|
|
@@ -62659,6 +63060,9 @@ var require_project2 = __commonJS({
|
|
|
62659
63060
|
Object.defineProperty(exports2, "getWebappPath", { enumerable: true, get: function() {
|
|
62660
63061
|
return ui5_config_1.getWebappPath;
|
|
62661
63062
|
} });
|
|
63063
|
+
Object.defineProperty(exports2, "readUi5Yaml", { enumerable: true, get: function() {
|
|
63064
|
+
return ui5_config_1.readUi5Yaml;
|
|
63065
|
+
} });
|
|
62662
63066
|
}
|
|
62663
63067
|
});
|
|
62664
63068
|
|
|
@@ -62687,7 +63091,7 @@ var require_info2 = __commonJS({
|
|
|
62687
63091
|
});
|
|
62688
63092
|
|
|
62689
63093
|
// ../../node_modules/@sap-ux/project-access/dist/types/package/index.js
|
|
62690
|
-
var
|
|
63094
|
+
var require_package7 = __commonJS({
|
|
62691
63095
|
"../../node_modules/@sap-ux/project-access/dist/types/package/index.js"(exports2) {
|
|
62692
63096
|
"use strict";
|
|
62693
63097
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -62738,7 +63142,7 @@ var require_types5 = __commonJS({
|
|
|
62738
63142
|
__exportStar(require_cap2(), exports2);
|
|
62739
63143
|
__exportStar(require_find(), exports2);
|
|
62740
63144
|
__exportStar(require_info2(), exports2);
|
|
62741
|
-
__exportStar(
|
|
63145
|
+
__exportStar(require_package7(), exports2);
|
|
62742
63146
|
__exportStar(require_vscode(), exports2);
|
|
62743
63147
|
__exportStar(require_webapp3(), exports2);
|
|
62744
63148
|
}
|
|
@@ -62769,7 +63173,7 @@ var require_dist10 = __commonJS({
|
|
|
62769
63173
|
__createBinding(exports3, m, p);
|
|
62770
63174
|
};
|
|
62771
63175
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
62772
|
-
exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getWebappPath = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findAllApps = exports2.FileName = void 0;
|
|
63176
|
+
exports2.readUi5Yaml = exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getWebappPath = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findAllApps = exports2.FileName = void 0;
|
|
62773
63177
|
var constants_1 = require_constants5();
|
|
62774
63178
|
Object.defineProperty(exports2, "FileName", { enumerable: true, get: function() {
|
|
62775
63179
|
return constants_1.FileName;
|
|
@@ -62805,6 +63209,9 @@ var require_dist10 = __commonJS({
|
|
|
62805
63209
|
Object.defineProperty(exports2, "loadModuleFromProject", { enumerable: true, get: function() {
|
|
62806
63210
|
return project_1.loadModuleFromProject;
|
|
62807
63211
|
} });
|
|
63212
|
+
Object.defineProperty(exports2, "readUi5Yaml", { enumerable: true, get: function() {
|
|
63213
|
+
return project_1.readUi5Yaml;
|
|
63214
|
+
} });
|
|
62808
63215
|
__exportStar(require_types5(), exports2);
|
|
62809
63216
|
}
|
|
62810
63217
|
});
|
|
@@ -63036,37 +63443,32 @@ var require_utils9 = __commonJS({
|
|
|
63036
63443
|
try {
|
|
63037
63444
|
await findProject(root, projects);
|
|
63038
63445
|
} catch (error3) {
|
|
63039
|
-
|
|
63040
|
-
root,
|
|
63041
|
-
error: error3.message
|
|
63042
|
-
});
|
|
63043
|
-
if (logger) {
|
|
63044
|
-
logger.error(errorMessage);
|
|
63045
|
-
} else {
|
|
63046
|
-
console.error(errorMessage);
|
|
63047
|
-
}
|
|
63446
|
+
logError(error3, "ERROR_PROJECT_ROOT_WORKSPACE", logger);
|
|
63048
63447
|
}
|
|
63049
63448
|
}
|
|
63050
63449
|
return projects;
|
|
63051
63450
|
}
|
|
63052
|
-
|
|
63451
|
+
function logError(error3, i18nText, logger) {
|
|
63452
|
+
const errorMessage = i18n_1.i18n.t(i18nText, {
|
|
63453
|
+
error: error3.message
|
|
63454
|
+
});
|
|
63455
|
+
if (logger) {
|
|
63456
|
+
logger.error(errorMessage);
|
|
63457
|
+
} else {
|
|
63458
|
+
console.error(errorMessage);
|
|
63459
|
+
}
|
|
63460
|
+
}
|
|
63461
|
+
async function findAllProjectRoots(wsFolders, sapuxRequired = true, logger, includeAdaptationProjects) {
|
|
63053
63462
|
const projects = await findAllPackageJsonFolders(wsFolders, logger);
|
|
63054
63463
|
if (sapuxRequired) {
|
|
63055
63464
|
const sapuxProjects = [];
|
|
63056
63465
|
for (const root of projects) {
|
|
63057
63466
|
try {
|
|
63058
|
-
if ((await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package))).sapux) {
|
|
63467
|
+
if ((await (0, file_1.readJSON)((0, path_1.join)(root, project_spec_1.FileName.Package))).sapux || includeAdaptationProjects && await isAdaptationProject(root)) {
|
|
63059
63468
|
sapuxProjects.push(root);
|
|
63060
63469
|
}
|
|
63061
63470
|
} catch (error3) {
|
|
63062
|
-
|
|
63063
|
-
error: error3.message
|
|
63064
|
-
});
|
|
63065
|
-
if (logger) {
|
|
63066
|
-
logger.error(errorMessage);
|
|
63067
|
-
} else {
|
|
63068
|
-
console.error(errorMessage);
|
|
63069
|
-
}
|
|
63471
|
+
logError(error3, "ERROR_INVALID_PACKAGE_JSON", logger);
|
|
63070
63472
|
}
|
|
63071
63473
|
}
|
|
63072
63474
|
return sapuxProjects;
|
|
@@ -63211,14 +63613,7 @@ var require_utils9 = __commonJS({
|
|
|
63211
63613
|
result2.push(root);
|
|
63212
63614
|
}
|
|
63213
63615
|
} catch (error3) {
|
|
63214
|
-
|
|
63215
|
-
root
|
|
63216
|
-
});
|
|
63217
|
-
if (logger) {
|
|
63218
|
-
logger.error(errorMessage);
|
|
63219
|
-
} else {
|
|
63220
|
-
console.error(errorMessage);
|
|
63221
|
-
}
|
|
63616
|
+
logError(error3, "ERROR_INVALIND_PACKAGE_JSON_FOR_APP", logger);
|
|
63222
63617
|
}
|
|
63223
63618
|
}
|
|
63224
63619
|
return result2;
|
|
@@ -64018,7 +64413,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
64018
64413
|
return (0, ux_feature_toggle_1.isInternalFeaturesSettingEnabled)() ? "internal" : "external";
|
|
64019
64414
|
}
|
|
64020
64415
|
async function getManifestSourceTemplate(appPath) {
|
|
64021
|
-
var _a2
|
|
64416
|
+
var _a2;
|
|
64022
64417
|
let sourceTemplate;
|
|
64023
64418
|
try {
|
|
64024
64419
|
const manifestPath = path_1.default.join(appPath, "webapp", "manifest.json");
|
|
@@ -64029,10 +64424,10 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
64029
64424
|
} catch (err) {
|
|
64030
64425
|
console.log(`[Telemetry]: ${err.message}`);
|
|
64031
64426
|
}
|
|
64032
|
-
sourceTemplate = sourceTemplate
|
|
64033
|
-
sourceTemplate.id =
|
|
64034
|
-
sourceTemplate.version =
|
|
64035
|
-
sourceTemplate.toolsId =
|
|
64427
|
+
sourceTemplate = sourceTemplate ?? {};
|
|
64428
|
+
sourceTemplate.id = sourceTemplate.id ?? "";
|
|
64429
|
+
sourceTemplate.version = sourceTemplate.version ?? "";
|
|
64430
|
+
sourceTemplate.toolsId = sourceTemplate.toolsId ?? types_1.ToolsId.NO_TOOLS_ID;
|
|
64036
64431
|
return sourceTemplate;
|
|
64037
64432
|
}
|
|
64038
64433
|
async function getProcessVersions() {
|
|
@@ -71439,7 +71834,7 @@ var require_transports = __commonJS({
|
|
|
71439
71834
|
});
|
|
71440
71835
|
|
|
71441
71836
|
// ../../node_modules/logform/format.js
|
|
71442
|
-
var
|
|
71837
|
+
var require_format3 = __commonJS({
|
|
71443
71838
|
"../../node_modules/logform/format.js"(exports2, module2) {
|
|
71444
71839
|
"use strict";
|
|
71445
71840
|
var InvalidFormatError = class extends Error {
|
|
@@ -72200,7 +72595,7 @@ var require_levels = __commonJS({
|
|
|
72200
72595
|
var require_align = __commonJS({
|
|
72201
72596
|
"../../node_modules/logform/align.js"(exports2, module2) {
|
|
72202
72597
|
"use strict";
|
|
72203
|
-
var format2 =
|
|
72598
|
+
var format2 = require_format3();
|
|
72204
72599
|
module2.exports = format2((info) => {
|
|
72205
72600
|
info.message = ` ${info.message}`;
|
|
72206
72601
|
return info;
|
|
@@ -72212,7 +72607,7 @@ var require_align = __commonJS({
|
|
|
72212
72607
|
var require_errors4 = __commonJS({
|
|
72213
72608
|
"../../node_modules/logform/errors.js"(exports2, module2) {
|
|
72214
72609
|
"use strict";
|
|
72215
|
-
var format2 =
|
|
72610
|
+
var format2 = require_format3();
|
|
72216
72611
|
var { LEVEL, MESSAGE } = require_triple_beam();
|
|
72217
72612
|
module2.exports = format2((einfo, { stack }) => {
|
|
72218
72613
|
if (einfo instanceof Error) {
|
|
@@ -72310,7 +72705,7 @@ var require_cli3 = __commonJS({
|
|
|
72310
72705
|
var require_combine = __commonJS({
|
|
72311
72706
|
"../../node_modules/logform/combine.js"(exports2, module2) {
|
|
72312
72707
|
"use strict";
|
|
72313
|
-
var format2 =
|
|
72708
|
+
var format2 = require_format3();
|
|
72314
72709
|
function cascade(formats) {
|
|
72315
72710
|
if (!formats.every(isValidFormat)) {
|
|
72316
72711
|
return;
|
|
@@ -73009,7 +73404,7 @@ ${originalIndentation}`;
|
|
|
73009
73404
|
var require_json = __commonJS({
|
|
73010
73405
|
"../../node_modules/logform/json.js"(exports2, module2) {
|
|
73011
73406
|
"use strict";
|
|
73012
|
-
var format2 =
|
|
73407
|
+
var format2 = require_format3();
|
|
73013
73408
|
var { MESSAGE } = require_triple_beam();
|
|
73014
73409
|
var stringify = require_safe_stable_stringify();
|
|
73015
73410
|
function replacer(key, value) {
|
|
@@ -73029,7 +73424,7 @@ var require_json = __commonJS({
|
|
|
73029
73424
|
var require_label = __commonJS({
|
|
73030
73425
|
"../../node_modules/logform/label.js"(exports2, module2) {
|
|
73031
73426
|
"use strict";
|
|
73032
|
-
var format2 =
|
|
73427
|
+
var format2 = require_format3();
|
|
73033
73428
|
module2.exports = format2((info, opts) => {
|
|
73034
73429
|
if (opts.message) {
|
|
73035
73430
|
info.message = `[${opts.label}] ${info.message}`;
|
|
@@ -73045,7 +73440,7 @@ var require_label = __commonJS({
|
|
|
73045
73440
|
var require_logstash = __commonJS({
|
|
73046
73441
|
"../../node_modules/logform/logstash.js"(exports2, module2) {
|
|
73047
73442
|
"use strict";
|
|
73048
|
-
var format2 =
|
|
73443
|
+
var format2 = require_format3();
|
|
73049
73444
|
var { MESSAGE } = require_triple_beam();
|
|
73050
73445
|
var jsonStringify = require_safe_stable_stringify();
|
|
73051
73446
|
module2.exports = format2((info) => {
|
|
@@ -73069,7 +73464,7 @@ var require_logstash = __commonJS({
|
|
|
73069
73464
|
var require_metadata2 = __commonJS({
|
|
73070
73465
|
"../../node_modules/logform/metadata.js"(exports2, module2) {
|
|
73071
73466
|
"use strict";
|
|
73072
|
-
var format2 =
|
|
73467
|
+
var format2 = require_format3();
|
|
73073
73468
|
function fillExcept(info, fillExceptKeys, metadataKey) {
|
|
73074
73469
|
const savedKeys = fillExceptKeys.reduce((acc, key) => {
|
|
73075
73470
|
acc[key] = info[key];
|
|
@@ -73122,7 +73517,7 @@ var require_metadata2 = __commonJS({
|
|
|
73122
73517
|
var require_ms2 = __commonJS({
|
|
73123
73518
|
"../../node_modules/logform/ms.js"(exports2, module2) {
|
|
73124
73519
|
"use strict";
|
|
73125
|
-
var format2 =
|
|
73520
|
+
var format2 = require_format3();
|
|
73126
73521
|
var ms = require_ms();
|
|
73127
73522
|
module2.exports = format2((info) => {
|
|
73128
73523
|
const curr = +new Date();
|
|
@@ -73139,7 +73534,7 @@ var require_pretty_print = __commonJS({
|
|
|
73139
73534
|
"../../node_modules/logform/pretty-print.js"(exports2, module2) {
|
|
73140
73535
|
"use strict";
|
|
73141
73536
|
var inspect = require("util").inspect;
|
|
73142
|
-
var format2 =
|
|
73537
|
+
var format2 = require_format3();
|
|
73143
73538
|
var { LEVEL, MESSAGE, SPLAT } = require_triple_beam();
|
|
73144
73539
|
module2.exports = format2((info, opts = {}) => {
|
|
73145
73540
|
const stripped = Object.assign({}, info);
|
|
@@ -73175,7 +73570,7 @@ var require_printf = __commonJS({
|
|
|
73175
73570
|
var require_simple = __commonJS({
|
|
73176
73571
|
"../../node_modules/logform/simple.js"(exports2, module2) {
|
|
73177
73572
|
"use strict";
|
|
73178
|
-
var format2 =
|
|
73573
|
+
var format2 = require_format3();
|
|
73179
73574
|
var { MESSAGE } = require_triple_beam();
|
|
73180
73575
|
var jsonStringify = require_safe_stable_stringify();
|
|
73181
73576
|
module2.exports = format2((info) => {
|
|
@@ -73664,7 +74059,7 @@ var require_timestamp2 = __commonJS({
|
|
|
73664
74059
|
"../../node_modules/logform/timestamp.js"(exports2, module2) {
|
|
73665
74060
|
"use strict";
|
|
73666
74061
|
var fecha2 = (init_fecha(), __toCommonJS(fecha_exports));
|
|
73667
|
-
var format2 =
|
|
74062
|
+
var format2 = require_format3();
|
|
73668
74063
|
module2.exports = format2((info, opts = {}) => {
|
|
73669
74064
|
if (opts.format) {
|
|
73670
74065
|
info.timestamp = typeof opts.format === "function" ? opts.format() : fecha2.format(new Date(), opts.format);
|
|
@@ -73685,7 +74080,7 @@ var require_uncolorize = __commonJS({
|
|
|
73685
74080
|
"../../node_modules/logform/uncolorize.js"(exports2, module2) {
|
|
73686
74081
|
"use strict";
|
|
73687
74082
|
var colors = require_safe();
|
|
73688
|
-
var format2 =
|
|
74083
|
+
var format2 = require_format3();
|
|
73689
74084
|
var { MESSAGE } = require_triple_beam();
|
|
73690
74085
|
module2.exports = format2((info, opts) => {
|
|
73691
74086
|
if (opts.level !== false) {
|
|
@@ -73706,7 +74101,7 @@ var require_uncolorize = __commonJS({
|
|
|
73706
74101
|
var require_logform = __commonJS({
|
|
73707
74102
|
"../../node_modules/logform/index.js"(exports2) {
|
|
73708
74103
|
"use strict";
|
|
73709
|
-
var format2 = exports2.format =
|
|
74104
|
+
var format2 = exports2.format = require_format3();
|
|
73710
74105
|
exports2.levels = require_levels();
|
|
73711
74106
|
function exposeFormat(name, requireFormat) {
|
|
73712
74107
|
Object.defineProperty(format2, name, {
|
|
@@ -73822,7 +74217,7 @@ var require_common8 = __commonJS({
|
|
|
73822
74217
|
});
|
|
73823
74218
|
|
|
73824
74219
|
// ../../node_modules/winston/package.json
|
|
73825
|
-
var
|
|
74220
|
+
var require_package8 = __commonJS({
|
|
73826
74221
|
"../../node_modules/winston/package.json"(exports2, module2) {
|
|
73827
74222
|
module2.exports = {
|
|
73828
74223
|
name: "winston",
|
|
@@ -81002,7 +81397,7 @@ var require_winston = __commonJS({
|
|
|
81002
81397
|
"use strict";
|
|
81003
81398
|
var logform = require_logform();
|
|
81004
81399
|
var { warn: warn3 } = require_common8();
|
|
81005
|
-
exports2.version =
|
|
81400
|
+
exports2.version = require_package8().version;
|
|
81006
81401
|
exports2.transports = require_transports2();
|
|
81007
81402
|
exports2.config = require_config3();
|
|
81008
81403
|
exports2.addColors = logform.levels;
|
|
@@ -82008,10 +82403,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
82008
82403
|
try {
|
|
82009
82404
|
content = await fs_1.default.promises.readFile(deprecatedSettingPath, "utf-8");
|
|
82010
82405
|
const deprecatedSetting = JSON.parse(content);
|
|
82011
|
-
const propValues = deprecatedExtensionPropKeys.map((propKey) =>
|
|
82012
|
-
var _a2;
|
|
82013
|
-
return (_a2 = deprecatedSetting[propKey]) != null ? _a2 : true;
|
|
82014
|
-
});
|
|
82406
|
+
const propValues = deprecatedExtensionPropKeys.map((propKey) => deprecatedSetting[propKey] ?? true);
|
|
82015
82407
|
const deprecatedEnableTelemetrySetting = propValues.reduce((prevValue, currentValue) => prevValue && currentValue);
|
|
82016
82408
|
(0, exports2.setEnableTelemetry)(deprecatedEnableTelemetrySetting);
|
|
82017
82409
|
} catch {
|
|
@@ -82132,7 +82524,7 @@ var require_client3 = __commonJS({
|
|
|
82132
82524
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
82133
82525
|
exports2.ClientFactory = void 0;
|
|
82134
82526
|
var system_1 = require_system2();
|
|
82135
|
-
var telemetryPackageJSON = __importStar(
|
|
82527
|
+
var telemetryPackageJSON = __importStar(require_package5());
|
|
82136
82528
|
var toolsSuiteTelemetry_1 = require_toolsSuiteTelemetry();
|
|
82137
82529
|
var ClientFactory2 = class {
|
|
82138
82530
|
static getTelemetryClient() {
|