@sap/ux-ui5-tooling 1.9.4 → 1.9.5
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 +632 -435
- package/dist/middlewares/fiori-tools-appreload.js +51 -47
- package/dist/middlewares/fiori-tools-preview.js +646 -432
- package/dist/middlewares/fiori-tools-proxy.js +2363 -3866
- package/dist/tasks/cf-deploy/index.js +622 -422
- package/dist/tasks/deploy/index.js +628 -429
- package/dist/templates/variants-management/preview.html +1 -1
- package/package.json +13 -12
|
@@ -12953,73 +12953,76 @@ var require_visit = __commonJS({
|
|
|
12953
12953
|
var SKIP = Symbol("skip children");
|
|
12954
12954
|
var REMOVE = Symbol("remove node");
|
|
12955
12955
|
function visit(node, visitor) {
|
|
12956
|
-
|
|
12957
|
-
visitor = Object.assign({
|
|
12958
|
-
Alias: visitor.Node,
|
|
12959
|
-
Map: visitor.Node,
|
|
12960
|
-
Scalar: visitor.Node,
|
|
12961
|
-
Seq: visitor.Node
|
|
12962
|
-
}, visitor.Value && {
|
|
12963
|
-
Map: visitor.Value,
|
|
12964
|
-
Scalar: visitor.Value,
|
|
12965
|
-
Seq: visitor.Value
|
|
12966
|
-
}, visitor.Collection && {
|
|
12967
|
-
Map: visitor.Collection,
|
|
12968
|
-
Seq: visitor.Collection
|
|
12969
|
-
}, visitor);
|
|
12970
|
-
}
|
|
12956
|
+
const visitor_ = initVisitor(visitor);
|
|
12971
12957
|
if (Node.isDocument(node)) {
|
|
12972
|
-
const cd =
|
|
12958
|
+
const cd = visit_(null, node.contents, visitor_, Object.freeze([node]));
|
|
12973
12959
|
if (cd === REMOVE)
|
|
12974
12960
|
node.contents = null;
|
|
12975
12961
|
} else
|
|
12976
|
-
|
|
12962
|
+
visit_(null, node, visitor_, Object.freeze([]));
|
|
12977
12963
|
}
|
|
12978
12964
|
visit.BREAK = BREAK;
|
|
12979
12965
|
visit.SKIP = SKIP;
|
|
12980
12966
|
visit.REMOVE = REMOVE;
|
|
12981
|
-
function
|
|
12982
|
-
|
|
12983
|
-
if (typeof visitor === "function")
|
|
12984
|
-
ctrl = visitor(key, node, path3);
|
|
12985
|
-
else if (Node.isMap(node)) {
|
|
12986
|
-
if (visitor.Map)
|
|
12987
|
-
ctrl = visitor.Map(key, node, path3);
|
|
12988
|
-
} else if (Node.isSeq(node)) {
|
|
12989
|
-
if (visitor.Seq)
|
|
12990
|
-
ctrl = visitor.Seq(key, node, path3);
|
|
12991
|
-
} else if (Node.isPair(node)) {
|
|
12992
|
-
if (visitor.Pair)
|
|
12993
|
-
ctrl = visitor.Pair(key, node, path3);
|
|
12994
|
-
} else if (Node.isScalar(node)) {
|
|
12995
|
-
if (visitor.Scalar)
|
|
12996
|
-
ctrl = visitor.Scalar(key, node, path3);
|
|
12997
|
-
} else if (Node.isAlias(node)) {
|
|
12998
|
-
if (visitor.Alias)
|
|
12999
|
-
ctrl = visitor.Alias(key, node, path3);
|
|
13000
|
-
}
|
|
12967
|
+
function visit_(key, node, visitor, path3) {
|
|
12968
|
+
const ctrl = callVisitor(key, node, visitor, path3);
|
|
13001
12969
|
if (Node.isNode(ctrl) || Node.isPair(ctrl)) {
|
|
13002
|
-
|
|
13003
|
-
|
|
13004
|
-
|
|
13005
|
-
|
|
13006
|
-
|
|
13007
|
-
|
|
13008
|
-
|
|
13009
|
-
|
|
13010
|
-
|
|
13011
|
-
|
|
13012
|
-
|
|
13013
|
-
|
|
13014
|
-
|
|
12970
|
+
replaceNode(key, path3, ctrl);
|
|
12971
|
+
return visit_(key, ctrl, visitor, path3);
|
|
12972
|
+
}
|
|
12973
|
+
if (typeof ctrl !== "symbol") {
|
|
12974
|
+
if (Node.isCollection(node)) {
|
|
12975
|
+
path3 = Object.freeze(path3.concat(node));
|
|
12976
|
+
for (let i = 0; i < node.items.length; ++i) {
|
|
12977
|
+
const ci = visit_(i, node.items[i], visitor, path3);
|
|
12978
|
+
if (typeof ci === "number")
|
|
12979
|
+
i = ci - 1;
|
|
12980
|
+
else if (ci === BREAK)
|
|
12981
|
+
return BREAK;
|
|
12982
|
+
else if (ci === REMOVE) {
|
|
12983
|
+
node.items.splice(i, 1);
|
|
12984
|
+
i -= 1;
|
|
12985
|
+
}
|
|
12986
|
+
}
|
|
12987
|
+
} else if (Node.isPair(node)) {
|
|
12988
|
+
path3 = Object.freeze(path3.concat(node));
|
|
12989
|
+
const ck = visit_("key", node.key, visitor, path3);
|
|
12990
|
+
if (ck === BREAK)
|
|
12991
|
+
return BREAK;
|
|
12992
|
+
else if (ck === REMOVE)
|
|
12993
|
+
node.key = null;
|
|
12994
|
+
const cv = visit_("value", node.value, visitor, path3);
|
|
12995
|
+
if (cv === BREAK)
|
|
12996
|
+
return BREAK;
|
|
12997
|
+
else if (cv === REMOVE)
|
|
12998
|
+
node.value = null;
|
|
13015
12999
|
}
|
|
13016
|
-
|
|
13000
|
+
}
|
|
13001
|
+
return ctrl;
|
|
13002
|
+
}
|
|
13003
|
+
async function visitAsync(node, visitor) {
|
|
13004
|
+
const visitor_ = initVisitor(visitor);
|
|
13005
|
+
if (Node.isDocument(node)) {
|
|
13006
|
+
const cd = await visitAsync_(null, node.contents, visitor_, Object.freeze([node]));
|
|
13007
|
+
if (cd === REMOVE)
|
|
13008
|
+
node.contents = null;
|
|
13009
|
+
} else
|
|
13010
|
+
await visitAsync_(null, node, visitor_, Object.freeze([]));
|
|
13011
|
+
}
|
|
13012
|
+
visitAsync.BREAK = BREAK;
|
|
13013
|
+
visitAsync.SKIP = SKIP;
|
|
13014
|
+
visitAsync.REMOVE = REMOVE;
|
|
13015
|
+
async function visitAsync_(key, node, visitor, path3) {
|
|
13016
|
+
const ctrl = await callVisitor(key, node, visitor, path3);
|
|
13017
|
+
if (Node.isNode(ctrl) || Node.isPair(ctrl)) {
|
|
13018
|
+
replaceNode(key, path3, ctrl);
|
|
13019
|
+
return visitAsync_(key, ctrl, visitor, path3);
|
|
13017
13020
|
}
|
|
13018
13021
|
if (typeof ctrl !== "symbol") {
|
|
13019
13022
|
if (Node.isCollection(node)) {
|
|
13020
13023
|
path3 = Object.freeze(path3.concat(node));
|
|
13021
13024
|
for (let i = 0; i < node.items.length; ++i) {
|
|
13022
|
-
const ci =
|
|
13025
|
+
const ci = await visitAsync_(i, node.items[i], visitor, path3);
|
|
13023
13026
|
if (typeof ci === "number")
|
|
13024
13027
|
i = ci - 1;
|
|
13025
13028
|
else if (ci === BREAK)
|
|
@@ -13031,12 +13034,12 @@ var require_visit = __commonJS({
|
|
|
13031
13034
|
}
|
|
13032
13035
|
} else if (Node.isPair(node)) {
|
|
13033
13036
|
path3 = Object.freeze(path3.concat(node));
|
|
13034
|
-
const ck =
|
|
13037
|
+
const ck = await visitAsync_("key", node.key, visitor, path3);
|
|
13035
13038
|
if (ck === BREAK)
|
|
13036
13039
|
return BREAK;
|
|
13037
13040
|
else if (ck === REMOVE)
|
|
13038
13041
|
node.key = null;
|
|
13039
|
-
const cv =
|
|
13042
|
+
const cv = await visitAsync_("value", node.value, visitor, path3);
|
|
13040
13043
|
if (cv === BREAK)
|
|
13041
13044
|
return BREAK;
|
|
13042
13045
|
else if (cv === REMOVE)
|
|
@@ -13045,7 +13048,58 @@ var require_visit = __commonJS({
|
|
|
13045
13048
|
}
|
|
13046
13049
|
return ctrl;
|
|
13047
13050
|
}
|
|
13051
|
+
function initVisitor(visitor) {
|
|
13052
|
+
if (typeof visitor === "object" && (visitor.Collection || visitor.Node || visitor.Value)) {
|
|
13053
|
+
return Object.assign({
|
|
13054
|
+
Alias: visitor.Node,
|
|
13055
|
+
Map: visitor.Node,
|
|
13056
|
+
Scalar: visitor.Node,
|
|
13057
|
+
Seq: visitor.Node
|
|
13058
|
+
}, visitor.Value && {
|
|
13059
|
+
Map: visitor.Value,
|
|
13060
|
+
Scalar: visitor.Value,
|
|
13061
|
+
Seq: visitor.Value
|
|
13062
|
+
}, visitor.Collection && {
|
|
13063
|
+
Map: visitor.Collection,
|
|
13064
|
+
Seq: visitor.Collection
|
|
13065
|
+
}, visitor);
|
|
13066
|
+
}
|
|
13067
|
+
return visitor;
|
|
13068
|
+
}
|
|
13069
|
+
function callVisitor(key, node, visitor, path3) {
|
|
13070
|
+
var _a2, _b, _c, _d, _e;
|
|
13071
|
+
if (typeof visitor === "function")
|
|
13072
|
+
return visitor(key, node, path3);
|
|
13073
|
+
if (Node.isMap(node))
|
|
13074
|
+
return (_a2 = visitor.Map) == null ? void 0 : _a2.call(visitor, key, node, path3);
|
|
13075
|
+
if (Node.isSeq(node))
|
|
13076
|
+
return (_b = visitor.Seq) == null ? void 0 : _b.call(visitor, key, node, path3);
|
|
13077
|
+
if (Node.isPair(node))
|
|
13078
|
+
return (_c = visitor.Pair) == null ? void 0 : _c.call(visitor, key, node, path3);
|
|
13079
|
+
if (Node.isScalar(node))
|
|
13080
|
+
return (_d = visitor.Scalar) == null ? void 0 : _d.call(visitor, key, node, path3);
|
|
13081
|
+
if (Node.isAlias(node))
|
|
13082
|
+
return (_e = visitor.Alias) == null ? void 0 : _e.call(visitor, key, node, path3);
|
|
13083
|
+
return void 0;
|
|
13084
|
+
}
|
|
13085
|
+
function replaceNode(key, path3, node) {
|
|
13086
|
+
const parent = path3[path3.length - 1];
|
|
13087
|
+
if (Node.isCollection(parent)) {
|
|
13088
|
+
parent.items[key] = node;
|
|
13089
|
+
} else if (Node.isPair(parent)) {
|
|
13090
|
+
if (key === "key")
|
|
13091
|
+
parent.key = node;
|
|
13092
|
+
else
|
|
13093
|
+
parent.value = node;
|
|
13094
|
+
} else if (Node.isDocument(parent)) {
|
|
13095
|
+
parent.contents = node;
|
|
13096
|
+
} else {
|
|
13097
|
+
const pt = Node.isAlias(parent) ? "alias" : "scalar";
|
|
13098
|
+
throw new Error(`Cannot replace node with ${pt} parent`);
|
|
13099
|
+
}
|
|
13100
|
+
}
|
|
13048
13101
|
exports2.visit = visit;
|
|
13102
|
+
exports2.visitAsync = visitAsync;
|
|
13049
13103
|
}
|
|
13050
13104
|
});
|
|
13051
13105
|
|
|
@@ -13066,13 +13120,14 @@ var require_directives = __commonJS({
|
|
|
13066
13120
|
var escapeTagName = (tn) => tn.replace(/[!,[\]{}]/g, (ch) => escapeChars[ch]);
|
|
13067
13121
|
var Directives = class {
|
|
13068
13122
|
constructor(yaml, tags) {
|
|
13069
|
-
this.
|
|
13123
|
+
this.docStart = null;
|
|
13124
|
+
this.docEnd = false;
|
|
13070
13125
|
this.yaml = Object.assign({}, Directives.defaultYaml, yaml);
|
|
13071
13126
|
this.tags = Object.assign({}, Directives.defaultTags, tags);
|
|
13072
13127
|
}
|
|
13073
13128
|
clone() {
|
|
13074
13129
|
const copy3 = new Directives(this.yaml, this.tags);
|
|
13075
|
-
copy3.
|
|
13130
|
+
copy3.docStart = this.docStart;
|
|
13076
13131
|
return copy3;
|
|
13077
13132
|
}
|
|
13078
13133
|
atDocument() {
|
|
@@ -13113,7 +13168,7 @@ var require_directives = __commonJS({
|
|
|
13113
13168
|
}
|
|
13114
13169
|
case "%YAML": {
|
|
13115
13170
|
this.yaml.explicit = true;
|
|
13116
|
-
if (parts.length
|
|
13171
|
+
if (parts.length !== 1) {
|
|
13117
13172
|
onError(0, "%YAML directive should contain exactly one part");
|
|
13118
13173
|
return false;
|
|
13119
13174
|
}
|
|
@@ -13122,7 +13177,8 @@ var require_directives = __commonJS({
|
|
|
13122
13177
|
this.yaml.version = version;
|
|
13123
13178
|
return true;
|
|
13124
13179
|
} else {
|
|
13125
|
-
|
|
13180
|
+
const isValid = /^\d+\.\d+$/.test(version);
|
|
13181
|
+
onError(6, `Unsupported YAML version ${version}`, isValid);
|
|
13126
13182
|
return false;
|
|
13127
13183
|
}
|
|
13128
13184
|
}
|
|
@@ -13230,7 +13286,7 @@ var require_anchors = __commonJS({
|
|
|
13230
13286
|
const sourceObjects = /* @__PURE__ */ new Map();
|
|
13231
13287
|
let prevAnchors = null;
|
|
13232
13288
|
return {
|
|
13233
|
-
onAnchor(source) {
|
|
13289
|
+
onAnchor: (source) => {
|
|
13234
13290
|
aliasObjects.push(source);
|
|
13235
13291
|
if (!prevAnchors)
|
|
13236
13292
|
prevAnchors = anchorNames(doc);
|
|
@@ -13238,7 +13294,7 @@ var require_anchors = __commonJS({
|
|
|
13238
13294
|
prevAnchors.add(anchor);
|
|
13239
13295
|
return anchor;
|
|
13240
13296
|
},
|
|
13241
|
-
setAnchors() {
|
|
13297
|
+
setAnchors: () => {
|
|
13242
13298
|
for (const source of aliasObjects) {
|
|
13243
13299
|
const ref = sourceObjects.get(source);
|
|
13244
13300
|
if (typeof ref === "object" && ref.anchor && (Node.isScalar(ref.node) || Node.isCollection(ref.node))) {
|
|
@@ -13374,7 +13430,7 @@ var require_toJS = __commonJS({
|
|
|
13374
13430
|
ctx.onCreate(res);
|
|
13375
13431
|
return res;
|
|
13376
13432
|
}
|
|
13377
|
-
if (typeof value === "bigint" && !(ctx
|
|
13433
|
+
if (typeof value === "bigint" && !(ctx == null ? void 0 : ctx.keep))
|
|
13378
13434
|
return Number(value);
|
|
13379
13435
|
return value;
|
|
13380
13436
|
}
|
|
@@ -13395,7 +13451,7 @@ var require_Scalar = __commonJS({
|
|
|
13395
13451
|
this.value = value;
|
|
13396
13452
|
}
|
|
13397
13453
|
toJSON(arg, ctx) {
|
|
13398
|
-
return ctx
|
|
13454
|
+
return (ctx == null ? void 0 : ctx.keep) ? this.value : toJS.toJS(this.value, arg, ctx);
|
|
13399
13455
|
}
|
|
13400
13456
|
toString() {
|
|
13401
13457
|
return String(this.value);
|
|
@@ -13422,12 +13478,15 @@ var require_createNode = __commonJS({
|
|
|
13422
13478
|
function findTagObject(value, tagName, tags) {
|
|
13423
13479
|
if (tagName) {
|
|
13424
13480
|
const match = tags.filter((t) => t.tag === tagName);
|
|
13425
|
-
const tagObj = match.find((t) => !t.format)
|
|
13481
|
+
const tagObj = match.find((t) => !t.format) ?? match[0];
|
|
13426
13482
|
if (!tagObj)
|
|
13427
13483
|
throw new Error(`Tag ${tagName} not found`);
|
|
13428
13484
|
return tagObj;
|
|
13429
13485
|
}
|
|
13430
|
-
return tags.find((t) =>
|
|
13486
|
+
return tags.find((t) => {
|
|
13487
|
+
var _a2;
|
|
13488
|
+
return ((_a2 = t.identify) == null ? void 0 : _a2.call(t, value)) && !t.format;
|
|
13489
|
+
});
|
|
13431
13490
|
}
|
|
13432
13491
|
function createNode(value, tagName, ctx) {
|
|
13433
13492
|
var _a2, _b;
|
|
@@ -13436,11 +13495,11 @@ var require_createNode = __commonJS({
|
|
|
13436
13495
|
if (Node.isNode(value))
|
|
13437
13496
|
return value;
|
|
13438
13497
|
if (Node.isPair(value)) {
|
|
13439
|
-
const map = (_b = (_a2 = ctx.schema[Node.MAP]).createNode)
|
|
13498
|
+
const map = (_b = (_a2 = ctx.schema[Node.MAP]).createNode) == null ? void 0 : _b.call(_a2, ctx.schema, null, ctx);
|
|
13440
13499
|
map.items.push(value);
|
|
13441
13500
|
return map;
|
|
13442
13501
|
}
|
|
13443
|
-
if (value instanceof String || value instanceof Number || value instanceof Boolean || typeof BigInt
|
|
13502
|
+
if (value instanceof String || value instanceof Number || value instanceof Boolean || typeof BigInt !== "undefined" && value instanceof BigInt) {
|
|
13444
13503
|
value = value.valueOf();
|
|
13445
13504
|
}
|
|
13446
13505
|
const { aliasDuplicateObjects, onAnchor, onTagObj, schema, sourceObjects } = ctx;
|
|
@@ -13456,12 +13515,13 @@ var require_createNode = __commonJS({
|
|
|
13456
13515
|
sourceObjects.set(value, ref);
|
|
13457
13516
|
}
|
|
13458
13517
|
}
|
|
13459
|
-
if (tagName
|
|
13518
|
+
if (tagName == null ? void 0 : tagName.startsWith("!!"))
|
|
13460
13519
|
tagName = defaultTagPrefix + tagName.slice(2);
|
|
13461
13520
|
let tagObj = findTagObject(value, tagName, schema.tags);
|
|
13462
13521
|
if (!tagObj) {
|
|
13463
|
-
if (value && typeof value.toJSON === "function")
|
|
13522
|
+
if (value && typeof value.toJSON === "function") {
|
|
13464
13523
|
value = value.toJSON();
|
|
13524
|
+
}
|
|
13465
13525
|
if (!value || typeof value !== "object") {
|
|
13466
13526
|
const node2 = new Scalar.Scalar(value);
|
|
13467
13527
|
if (ref)
|
|
@@ -13474,7 +13534,7 @@ var require_createNode = __commonJS({
|
|
|
13474
13534
|
onTagObj(tagObj);
|
|
13475
13535
|
delete ctx.onTagObj;
|
|
13476
13536
|
}
|
|
13477
|
-
const node = (tagObj
|
|
13537
|
+
const node = (tagObj == null ? void 0 : tagObj.createNode) ? tagObj.createNode(ctx.schema, value, ctx) : new Scalar.Scalar(value);
|
|
13478
13538
|
if (tagName)
|
|
13479
13539
|
node.tag = tagName;
|
|
13480
13540
|
if (ref)
|
|
@@ -13612,7 +13672,7 @@ var require_stringifyComment = __commonJS({
|
|
|
13612
13672
|
return comment.substring(1);
|
|
13613
13673
|
return indent ? comment.replace(/^(?! *$)/gm, indent) : comment;
|
|
13614
13674
|
}
|
|
13615
|
-
var lineComment = (str, indent, comment) => comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
|
|
13675
|
+
var lineComment = (str, indent, comment) => str.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
|
|
13616
13676
|
exports2.indentComment = indentComment;
|
|
13617
13677
|
exports2.lineComment = lineComment;
|
|
13618
13678
|
exports2.stringifyComment = stringifyComment;
|
|
@@ -13751,8 +13811,8 @@ var require_stringifyString = __commonJS({
|
|
|
13751
13811
|
"use strict";
|
|
13752
13812
|
var Scalar = require_Scalar();
|
|
13753
13813
|
var foldFlowLines = require_foldFlowLines();
|
|
13754
|
-
var getFoldOptions = (ctx) => ({
|
|
13755
|
-
indentAtStart: ctx.indentAtStart,
|
|
13814
|
+
var getFoldOptions = (ctx, isBlock) => ({
|
|
13815
|
+
indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart,
|
|
13756
13816
|
lineWidth: ctx.options.lineWidth,
|
|
13757
13817
|
minContentWidth: ctx.options.minContentWidth
|
|
13758
13818
|
});
|
|
@@ -13853,7 +13913,7 @@ var require_stringifyString = __commonJS({
|
|
|
13853
13913
|
}
|
|
13854
13914
|
}
|
|
13855
13915
|
str = start ? str + json.slice(start) : json;
|
|
13856
|
-
return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_QUOTED, getFoldOptions(ctx));
|
|
13916
|
+
return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_QUOTED, getFoldOptions(ctx, false));
|
|
13857
13917
|
}
|
|
13858
13918
|
function singleQuotedString(value, ctx) {
|
|
13859
13919
|
if (ctx.options.singleQuote === false || ctx.implicitKey && value.includes("\n") || /[ \t]\n|\n[ \t]/.test(value))
|
|
@@ -13861,7 +13921,7 @@ var require_stringifyString = __commonJS({
|
|
|
13861
13921
|
const indent = ctx.indent || (containsDocumentMarker(value) ? " " : "");
|
|
13862
13922
|
const res = "'" + value.replace(/'/g, "''").replace(/\n+/g, `$&
|
|
13863
13923
|
${indent}`) + "'";
|
|
13864
|
-
return ctx.implicitKey ? res : foldFlowLines.foldFlowLines(res, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx));
|
|
13924
|
+
return ctx.implicitKey ? res : foldFlowLines.foldFlowLines(res, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false));
|
|
13865
13925
|
}
|
|
13866
13926
|
function quotedString(value, ctx) {
|
|
13867
13927
|
const { singleQuote } = ctx.options;
|
|
@@ -13943,38 +14003,42 @@ ${indent}`) + "'";
|
|
|
13943
14003
|
${indent}${start}${value}${end}`;
|
|
13944
14004
|
}
|
|
13945
14005
|
value = value.replace(/\n+/g, "\n$&").replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g, "$1$2").replace(/\n+/g, `$&${indent}`);
|
|
13946
|
-
const body = foldFlowLines.foldFlowLines(`${start}${value}${end}`, indent, foldFlowLines.FOLD_BLOCK, getFoldOptions(ctx));
|
|
14006
|
+
const body = foldFlowLines.foldFlowLines(`${start}${value}${end}`, indent, foldFlowLines.FOLD_BLOCK, getFoldOptions(ctx, true));
|
|
13947
14007
|
return `${header}
|
|
13948
14008
|
${indent}${body}`;
|
|
13949
14009
|
}
|
|
13950
14010
|
function plainString(item, ctx, onComment, onChompKeep) {
|
|
13951
14011
|
const { type, value } = item;
|
|
13952
|
-
const { actualString, implicitKey, indent, inFlow } = ctx;
|
|
14012
|
+
const { actualString, implicitKey, indent, indentStep, inFlow } = ctx;
|
|
13953
14013
|
if (implicitKey && /[\n[\]{},]/.test(value) || inFlow && /[[\]{},]/.test(value)) {
|
|
13954
14014
|
return quotedString(value, ctx);
|
|
13955
14015
|
}
|
|
13956
14016
|
if (!value || /^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(value)) {
|
|
13957
|
-
return implicitKey || inFlow || value.
|
|
14017
|
+
return implicitKey || inFlow || !value.includes("\n") ? quotedString(value, ctx) : blockString(item, ctx, onComment, onChompKeep);
|
|
13958
14018
|
}
|
|
13959
|
-
if (!implicitKey && !inFlow && type !== Scalar.Scalar.PLAIN && value.
|
|
14019
|
+
if (!implicitKey && !inFlow && type !== Scalar.Scalar.PLAIN && value.includes("\n")) {
|
|
13960
14020
|
return blockString(item, ctx, onComment, onChompKeep);
|
|
13961
14021
|
}
|
|
13962
|
-
if (
|
|
13963
|
-
|
|
13964
|
-
|
|
14022
|
+
if (containsDocumentMarker(value)) {
|
|
14023
|
+
if (indent === "") {
|
|
14024
|
+
ctx.forceBlockIndent = true;
|
|
14025
|
+
return blockString(item, ctx, onComment, onChompKeep);
|
|
14026
|
+
} else if (implicitKey && indent === indentStep) {
|
|
14027
|
+
return quotedString(value, ctx);
|
|
14028
|
+
}
|
|
13965
14029
|
}
|
|
13966
14030
|
const str = value.replace(/\n+/g, `$&
|
|
13967
14031
|
${indent}`);
|
|
13968
14032
|
if (actualString) {
|
|
13969
14033
|
const test = (tag) => {
|
|
13970
14034
|
var _a2;
|
|
13971
|
-
return tag.default && tag.tag !== "tag:yaml.org,2002:str" && ((_a2 = tag.test)
|
|
14035
|
+
return tag.default && tag.tag !== "tag:yaml.org,2002:str" && ((_a2 = tag.test) == null ? void 0 : _a2.test(str));
|
|
13972
14036
|
};
|
|
13973
14037
|
const { compat, tags } = ctx.doc.schema;
|
|
13974
|
-
if (tags.some(test) || (compat
|
|
14038
|
+
if (tags.some(test) || (compat == null ? void 0 : compat.some(test)))
|
|
13975
14039
|
return quotedString(value, ctx);
|
|
13976
14040
|
}
|
|
13977
|
-
return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx));
|
|
14041
|
+
return implicitKey ? str : foldFlowLines.foldFlowLines(str, indent, foldFlowLines.FOLD_FLOW, getFoldOptions(ctx, false));
|
|
13978
14042
|
}
|
|
13979
14043
|
function stringifyString(item, ctx, onComment, onChompKeep) {
|
|
13980
14044
|
const { implicitKey, inFlow } = ctx;
|
|
@@ -14031,6 +14095,7 @@ var require_stringify = __commonJS({
|
|
|
14031
14095
|
doubleQuotedAsJSON: false,
|
|
14032
14096
|
doubleQuotedMinMultiLineLength: 40,
|
|
14033
14097
|
falseStr: "false",
|
|
14098
|
+
flowCollectionPadding: true,
|
|
14034
14099
|
indentSeq: true,
|
|
14035
14100
|
lineWidth: 80,
|
|
14036
14101
|
minContentWidth: 20,
|
|
@@ -14054,6 +14119,7 @@ var require_stringify = __commonJS({
|
|
|
14054
14119
|
return {
|
|
14055
14120
|
anchors: /* @__PURE__ */ new Set(),
|
|
14056
14121
|
doc,
|
|
14122
|
+
flowCollectionPadding: opt.flowCollectionPadding ? " " : "",
|
|
14057
14123
|
indent: "",
|
|
14058
14124
|
indentStep: typeof opt.indent === "number" ? " ".repeat(opt.indent) : " ",
|
|
14059
14125
|
inFlow,
|
|
@@ -14061,23 +14127,27 @@ var require_stringify = __commonJS({
|
|
|
14061
14127
|
};
|
|
14062
14128
|
}
|
|
14063
14129
|
function getTagObject(tags, item) {
|
|
14130
|
+
var _a2;
|
|
14064
14131
|
if (item.tag) {
|
|
14065
14132
|
const match = tags.filter((t) => t.tag === item.tag);
|
|
14066
14133
|
if (match.length > 0)
|
|
14067
|
-
return match.find((t) => t.format === item.format)
|
|
14134
|
+
return match.find((t) => t.format === item.format) ?? match[0];
|
|
14068
14135
|
}
|
|
14069
14136
|
let tagObj = void 0;
|
|
14070
14137
|
let obj;
|
|
14071
14138
|
if (Node.isScalar(item)) {
|
|
14072
14139
|
obj = item.value;
|
|
14073
|
-
const match = tags.filter((t) =>
|
|
14074
|
-
|
|
14140
|
+
const match = tags.filter((t) => {
|
|
14141
|
+
var _a3;
|
|
14142
|
+
return (_a3 = t.identify) == null ? void 0 : _a3.call(t, obj);
|
|
14143
|
+
});
|
|
14144
|
+
tagObj = match.find((t) => t.format === item.format) ?? match.find((t) => !t.format);
|
|
14075
14145
|
} else {
|
|
14076
14146
|
obj = item;
|
|
14077
14147
|
tagObj = tags.find((t) => t.nodeClass && obj instanceof t.nodeClass);
|
|
14078
14148
|
}
|
|
14079
14149
|
if (!tagObj) {
|
|
14080
|
-
const name = obj
|
|
14150
|
+
const name = ((_a2 = obj == null ? void 0 : obj.constructor) == null ? void 0 : _a2.name) ?? typeof obj;
|
|
14081
14151
|
throw new Error(`Tag not resolved for ${name} value`);
|
|
14082
14152
|
}
|
|
14083
14153
|
return tagObj;
|
|
@@ -14091,7 +14161,7 @@ var require_stringify = __commonJS({
|
|
|
14091
14161
|
anchors$1.add(anchor);
|
|
14092
14162
|
props.push(`&${anchor}`);
|
|
14093
14163
|
}
|
|
14094
|
-
const tag = node.tag
|
|
14164
|
+
const tag = node.tag ? node.tag : tagObj.default ? null : tagObj.tag;
|
|
14095
14165
|
if (tag)
|
|
14096
14166
|
props.push(doc.directives.tagString(tag));
|
|
14097
14167
|
return props.join(" ");
|
|
@@ -14103,7 +14173,7 @@ var require_stringify = __commonJS({
|
|
|
14103
14173
|
if (Node.isAlias(item)) {
|
|
14104
14174
|
if (ctx.doc.directives)
|
|
14105
14175
|
return item.toString(ctx);
|
|
14106
|
-
if ((_a2 = ctx.resolvedAliases)
|
|
14176
|
+
if ((_a2 = ctx.resolvedAliases) == null ? void 0 : _a2.has(item)) {
|
|
14107
14177
|
throw new TypeError(`Cannot stringify circular structure without alias nodes`);
|
|
14108
14178
|
} else {
|
|
14109
14179
|
if (ctx.resolvedAliases)
|
|
@@ -14119,7 +14189,7 @@ var require_stringify = __commonJS({
|
|
|
14119
14189
|
tagObj = getTagObject(ctx.doc.schema.tags, node);
|
|
14120
14190
|
const props = stringifyProps(node, tagObj, ctx);
|
|
14121
14191
|
if (props.length > 0)
|
|
14122
|
-
ctx.indentAtStart = (ctx.indentAtStart
|
|
14192
|
+
ctx.indentAtStart = (ctx.indentAtStart ?? 0) + props.length + 1;
|
|
14123
14193
|
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);
|
|
14124
14194
|
if (!props)
|
|
14125
14195
|
return str;
|
|
@@ -14169,7 +14239,7 @@ var require_stringifyPair = __commonJS({
|
|
|
14169
14239
|
if (allNullValues || value == null) {
|
|
14170
14240
|
if (keyCommentDone && onComment)
|
|
14171
14241
|
onComment();
|
|
14172
|
-
return explicitKey ? `? ${str}` : str;
|
|
14242
|
+
return str === "" ? "?" : explicitKey ? `? ${str}` : str;
|
|
14173
14243
|
}
|
|
14174
14244
|
} else if (allNullValues && !simpleKeys || value == null && explicitKey) {
|
|
14175
14245
|
str = `? ${str}`;
|
|
@@ -14191,40 +14261,64 @@ ${indent}:`;
|
|
|
14191
14261
|
if (keyComment)
|
|
14192
14262
|
str += stringifyComment.lineComment(str, ctx.indent, commentString(keyComment));
|
|
14193
14263
|
}
|
|
14194
|
-
let vcb
|
|
14195
|
-
let valueComment = null;
|
|
14264
|
+
let vsb, vcb, valueComment;
|
|
14196
14265
|
if (Node.isNode(value)) {
|
|
14197
|
-
|
|
14198
|
-
|
|
14199
|
-
if (value.commentBefore) {
|
|
14200
|
-
const cs = commentString(value.commentBefore);
|
|
14201
|
-
vcb += `
|
|
14202
|
-
${stringifyComment.indentComment(cs, ctx.indent)}`;
|
|
14203
|
-
}
|
|
14266
|
+
vsb = !!value.spaceBefore;
|
|
14267
|
+
vcb = value.commentBefore;
|
|
14204
14268
|
valueComment = value.comment;
|
|
14205
|
-
} else
|
|
14206
|
-
|
|
14269
|
+
} else {
|
|
14270
|
+
vsb = false;
|
|
14271
|
+
vcb = null;
|
|
14272
|
+
valueComment = null;
|
|
14273
|
+
if (value && typeof value === "object")
|
|
14274
|
+
value = doc.createNode(value);
|
|
14207
14275
|
}
|
|
14208
14276
|
ctx.implicitKey = false;
|
|
14209
14277
|
if (!explicitKey && !keyComment && Node.isScalar(value))
|
|
14210
14278
|
ctx.indentAtStart = str.length + 1;
|
|
14211
14279
|
chompKeep = false;
|
|
14212
14280
|
if (!indentSeq && indentStep.length >= 2 && !ctx.inFlow && !explicitKey && Node.isSeq(value) && !value.flow && !value.tag && !value.anchor) {
|
|
14213
|
-
ctx.indent = ctx.indent.
|
|
14281
|
+
ctx.indent = ctx.indent.substring(2);
|
|
14214
14282
|
}
|
|
14215
14283
|
let valueCommentDone = false;
|
|
14216
14284
|
const valueStr = stringify.stringify(value, ctx, () => valueCommentDone = true, () => chompKeep = true);
|
|
14217
14285
|
let ws = " ";
|
|
14218
|
-
if (
|
|
14219
|
-
ws =
|
|
14286
|
+
if (keyComment || vsb || vcb) {
|
|
14287
|
+
ws = vsb ? "\n" : "";
|
|
14288
|
+
if (vcb) {
|
|
14289
|
+
const cs = commentString(vcb);
|
|
14290
|
+
ws += `
|
|
14291
|
+
${stringifyComment.indentComment(cs, ctx.indent)}`;
|
|
14292
|
+
}
|
|
14293
|
+
if (valueStr === "" && !ctx.inFlow) {
|
|
14294
|
+
if (ws === "\n")
|
|
14295
|
+
ws = "\n\n";
|
|
14296
|
+
} else {
|
|
14297
|
+
ws += `
|
|
14220
14298
|
${ctx.indent}`;
|
|
14299
|
+
}
|
|
14221
14300
|
} else if (!explicitKey && Node.isCollection(value)) {
|
|
14222
|
-
const
|
|
14223
|
-
|
|
14224
|
-
|
|
14301
|
+
const vs0 = valueStr[0];
|
|
14302
|
+
const nl0 = valueStr.indexOf("\n");
|
|
14303
|
+
const hasNewline = nl0 !== -1;
|
|
14304
|
+
const flow = ctx.inFlow ?? value.flow ?? value.items.length === 0;
|
|
14305
|
+
if (hasNewline || !flow) {
|
|
14306
|
+
let hasPropsLine = false;
|
|
14307
|
+
if (hasNewline && (vs0 === "&" || vs0 === "!")) {
|
|
14308
|
+
let sp0 = valueStr.indexOf(" ");
|
|
14309
|
+
if (vs0 === "&" && sp0 !== -1 && sp0 < nl0 && valueStr[sp0 + 1] === "!") {
|
|
14310
|
+
sp0 = valueStr.indexOf(" ", sp0 + 1);
|
|
14311
|
+
}
|
|
14312
|
+
if (sp0 === -1 || nl0 < sp0)
|
|
14313
|
+
hasPropsLine = true;
|
|
14314
|
+
}
|
|
14315
|
+
if (!hasPropsLine)
|
|
14316
|
+
ws = `
|
|
14225
14317
|
${ctx.indent}`;
|
|
14226
|
-
|
|
14318
|
+
}
|
|
14319
|
+
} else if (valueStr === "" || valueStr[0] === "\n") {
|
|
14227
14320
|
ws = "";
|
|
14321
|
+
}
|
|
14228
14322
|
str += ws + valueStr;
|
|
14229
14323
|
if (ctx.inFlow) {
|
|
14230
14324
|
if (valueCommentDone && onComment)
|
|
@@ -14272,7 +14366,7 @@ var require_addPairToJSMap = __commonJS({
|
|
|
14272
14366
|
var toJS = require_toJS();
|
|
14273
14367
|
var MERGE_KEY = "<<";
|
|
14274
14368
|
function addPairToJSMap(ctx, map, { key, value }) {
|
|
14275
|
-
if (ctx
|
|
14369
|
+
if ((ctx == null ? void 0 : ctx.doc.schema.merge) && isMergeKey(key)) {
|
|
14276
14370
|
value = Node.isAlias(value) ? value.resolve(ctx.doc) : value;
|
|
14277
14371
|
if (Node.isSeq(value))
|
|
14278
14372
|
for (const it of value.items)
|
|
@@ -14383,11 +14477,11 @@ var require_Pair = __commonJS({
|
|
|
14383
14477
|
return new Pair(key, value);
|
|
14384
14478
|
}
|
|
14385
14479
|
toJSON(_45, ctx) {
|
|
14386
|
-
const pair = ctx
|
|
14480
|
+
const pair = (ctx == null ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {};
|
|
14387
14481
|
return addPairToJSMap.addPairToJSMap(ctx, pair, this);
|
|
14388
14482
|
}
|
|
14389
14483
|
toString(ctx, onComment, onChompKeep) {
|
|
14390
|
-
return ctx
|
|
14484
|
+
return (ctx == null ? void 0 : ctx.doc) ? stringifyPair.stringifyPair(this, ctx, onComment, onChompKeep) : JSON.stringify(this);
|
|
14391
14485
|
}
|
|
14392
14486
|
};
|
|
14393
14487
|
exports2.Pair = Pair;
|
|
@@ -14395,23 +14489,6 @@ var require_Pair = __commonJS({
|
|
|
14395
14489
|
}
|
|
14396
14490
|
});
|
|
14397
14491
|
|
|
14398
|
-
// ../../node_modules/yaml/dist/options.js
|
|
14399
|
-
var require_options = __commonJS({
|
|
14400
|
-
"../../node_modules/yaml/dist/options.js"(exports2) {
|
|
14401
|
-
"use strict";
|
|
14402
|
-
var defaultOptions = {
|
|
14403
|
-
intAsBigInt: false,
|
|
14404
|
-
keepSourceTokens: false,
|
|
14405
|
-
logLevel: "warn",
|
|
14406
|
-
prettyErrors: true,
|
|
14407
|
-
strict: true,
|
|
14408
|
-
uniqueKeys: true,
|
|
14409
|
-
version: "1.2"
|
|
14410
|
-
};
|
|
14411
|
-
exports2.defaultOptions = defaultOptions;
|
|
14412
|
-
}
|
|
14413
|
-
});
|
|
14414
|
-
|
|
14415
14492
|
// ../../node_modules/yaml/dist/stringify/stringifyCollection.js
|
|
14416
14493
|
var require_stringifyCollection = __commonJS({
|
|
14417
14494
|
"../../node_modules/yaml/dist/stringify/stringifyCollection.js"(exports2) {
|
|
@@ -14421,8 +14498,7 @@ var require_stringifyCollection = __commonJS({
|
|
|
14421
14498
|
var stringify = require_stringify();
|
|
14422
14499
|
var stringifyComment = require_stringifyComment();
|
|
14423
14500
|
function stringifyCollection(collection, ctx, options2) {
|
|
14424
|
-
|
|
14425
|
-
const flow = (_a2 = ctx.inFlow) !== null && _a2 !== void 0 ? _a2 : collection.flow;
|
|
14501
|
+
const flow = ctx.inFlow ?? collection.flow;
|
|
14426
14502
|
const stringify2 = flow ? stringifyFlowCollection : stringifyBlockCollection;
|
|
14427
14503
|
return stringify2(collection, ctx, options2);
|
|
14428
14504
|
}
|
|
@@ -14476,7 +14552,7 @@ ${indent}${line}` : "\n";
|
|
|
14476
14552
|
return str;
|
|
14477
14553
|
}
|
|
14478
14554
|
function stringifyFlowCollection({ comment, items }, ctx, { flowChars, itemIndent, onComment }) {
|
|
14479
|
-
const { indent, indentStep, options: { commentString } } = ctx;
|
|
14555
|
+
const { indent, indentStep, flowCollectionPadding: fcPadding, options: { commentString } } = ctx;
|
|
14480
14556
|
itemIndent += indentStep;
|
|
14481
14557
|
const itemCtx = Object.assign({}, ctx, {
|
|
14482
14558
|
indent: itemIndent,
|
|
@@ -14543,11 +14619,11 @@ ${indentStep}${indent}${line}` : "\n";
|
|
|
14543
14619
|
str += `
|
|
14544
14620
|
${indent}${end}`;
|
|
14545
14621
|
} else {
|
|
14546
|
-
str = `${start}
|
|
14622
|
+
str = `${start}${fcPadding}${lines.join(" ")}${fcPadding}${end}`;
|
|
14547
14623
|
}
|
|
14548
14624
|
}
|
|
14549
14625
|
if (comment) {
|
|
14550
|
-
str += stringifyComment.lineComment(str, commentString(comment)
|
|
14626
|
+
str += stringifyComment.lineComment(str, indent, commentString(comment));
|
|
14551
14627
|
if (onComment)
|
|
14552
14628
|
onComment();
|
|
14553
14629
|
}
|
|
@@ -14588,23 +14664,24 @@ var require_YAMLMap = __commonJS({
|
|
|
14588
14664
|
return void 0;
|
|
14589
14665
|
}
|
|
14590
14666
|
var YAMLMap = class extends Collection.Collection {
|
|
14667
|
+
static get tagName() {
|
|
14668
|
+
return "tag:yaml.org,2002:map";
|
|
14669
|
+
}
|
|
14591
14670
|
constructor(schema) {
|
|
14592
14671
|
super(Node.MAP, schema);
|
|
14593
14672
|
this.items = [];
|
|
14594
14673
|
}
|
|
14595
|
-
static get tagName() {
|
|
14596
|
-
return "tag:yaml.org,2002:map";
|
|
14597
|
-
}
|
|
14598
14674
|
add(pair, overwrite) {
|
|
14675
|
+
var _a2;
|
|
14599
14676
|
let _pair;
|
|
14600
14677
|
if (Node.isPair(pair))
|
|
14601
14678
|
_pair = pair;
|
|
14602
14679
|
else if (!pair || typeof pair !== "object" || !("key" in pair)) {
|
|
14603
|
-
_pair = new Pair.Pair(pair, pair.value);
|
|
14680
|
+
_pair = new Pair.Pair(pair, pair == null ? void 0 : pair.value);
|
|
14604
14681
|
} else
|
|
14605
14682
|
_pair = new Pair.Pair(pair.key, pair.value);
|
|
14606
14683
|
const prev = findPair(this.items, _pair.key);
|
|
14607
|
-
const sortEntries = this.schema
|
|
14684
|
+
const sortEntries = (_a2 = this.schema) == null ? void 0 : _a2.sortMapEntries;
|
|
14608
14685
|
if (prev) {
|
|
14609
14686
|
if (!overwrite)
|
|
14610
14687
|
throw new Error(`Key ${_pair.key} already set`);
|
|
@@ -14631,8 +14708,8 @@ var require_YAMLMap = __commonJS({
|
|
|
14631
14708
|
}
|
|
14632
14709
|
get(key, keepScalar) {
|
|
14633
14710
|
const it = findPair(this.items, key);
|
|
14634
|
-
const node = it
|
|
14635
|
-
return !keepScalar && Node.isScalar(node) ? node.value : node;
|
|
14711
|
+
const node = it == null ? void 0 : it.value;
|
|
14712
|
+
return (!keepScalar && Node.isScalar(node) ? node.value : node) ?? void 0;
|
|
14636
14713
|
}
|
|
14637
14714
|
has(key) {
|
|
14638
14715
|
return !!findPair(this.items, key);
|
|
@@ -14641,8 +14718,8 @@ var require_YAMLMap = __commonJS({
|
|
|
14641
14718
|
this.add(new Pair.Pair(key, value), true);
|
|
14642
14719
|
}
|
|
14643
14720
|
toJSON(_45, ctx, Type) {
|
|
14644
|
-
const map = Type ? new Type() : ctx
|
|
14645
|
-
if (ctx
|
|
14721
|
+
const map = Type ? new Type() : (ctx == null ? void 0 : ctx.mapAsMap) ? /* @__PURE__ */ new Map() : {};
|
|
14722
|
+
if (ctx == null ? void 0 : ctx.onCreate)
|
|
14646
14723
|
ctx.onCreate(map);
|
|
14647
14724
|
for (const item of this.items)
|
|
14648
14725
|
addPairToJSMap.addPairToJSMap(ctx, map, item);
|
|
@@ -14727,13 +14804,13 @@ var require_YAMLSeq = __commonJS({
|
|
|
14727
14804
|
var Scalar = require_Scalar();
|
|
14728
14805
|
var toJS = require_toJS();
|
|
14729
14806
|
var YAMLSeq = class extends Collection.Collection {
|
|
14807
|
+
static get tagName() {
|
|
14808
|
+
return "tag:yaml.org,2002:seq";
|
|
14809
|
+
}
|
|
14730
14810
|
constructor(schema) {
|
|
14731
14811
|
super(Node.SEQ, schema);
|
|
14732
14812
|
this.items = [];
|
|
14733
14813
|
}
|
|
14734
|
-
static get tagName() {
|
|
14735
|
-
return "tag:yaml.org,2002:seq";
|
|
14736
|
-
}
|
|
14737
14814
|
add(value) {
|
|
14738
14815
|
this.items.push(value);
|
|
14739
14816
|
}
|
|
@@ -14767,7 +14844,7 @@ var require_YAMLSeq = __commonJS({
|
|
|
14767
14844
|
}
|
|
14768
14845
|
toJSON(_45, ctx) {
|
|
14769
14846
|
const seq = [];
|
|
14770
|
-
if (ctx
|
|
14847
|
+
if (ctx == null ? void 0 : ctx.onCreate)
|
|
14771
14848
|
ctx.onCreate(seq);
|
|
14772
14849
|
let i = 0;
|
|
14773
14850
|
for (const item of this.items)
|
|
@@ -14865,7 +14942,7 @@ var require_null = __commonJS({
|
|
|
14865
14942
|
tag: "tag:yaml.org,2002:null",
|
|
14866
14943
|
test: /^(?:~|[Nn]ull|NULL)?$/,
|
|
14867
14944
|
resolve: () => new Scalar.Scalar(null),
|
|
14868
|
-
stringify: ({ source }, ctx) => source && nullTag.test.test(source) ? source : ctx.options.nullStr
|
|
14945
|
+
stringify: ({ source }, ctx) => typeof source === "string" && nullTag.test.test(source) ? source : ctx.options.nullStr
|
|
14869
14946
|
};
|
|
14870
14947
|
exports2.nullTag = nullTag;
|
|
14871
14948
|
}
|
|
@@ -15185,7 +15262,7 @@ var require_pairs = __commonJS({
|
|
|
15185
15262
|
pair.key.commentBefore = pair.key.commentBefore ? `${item.commentBefore}
|
|
15186
15263
|
${pair.key.commentBefore}` : item.commentBefore;
|
|
15187
15264
|
if (item.comment) {
|
|
15188
|
-
const cn = pair.value
|
|
15265
|
+
const cn = pair.value ?? pair.key;
|
|
15189
15266
|
cn.comment = cn.comment ? `${item.comment}
|
|
15190
15267
|
${cn.comment}` : item.comment;
|
|
15191
15268
|
}
|
|
@@ -15263,7 +15340,7 @@ var require_omap = __commonJS({
|
|
|
15263
15340
|
if (!ctx)
|
|
15264
15341
|
return super.toJSON(_45);
|
|
15265
15342
|
const map = /* @__PURE__ */ new Map();
|
|
15266
|
-
if (ctx
|
|
15343
|
+
if (ctx == null ? void 0 : ctx.onCreate)
|
|
15267
15344
|
ctx.onCreate(map);
|
|
15268
15345
|
for (const pair of this.items) {
|
|
15269
15346
|
let key, value;
|
|
@@ -15489,7 +15566,7 @@ var require_set = __commonJS({
|
|
|
15489
15566
|
let pair;
|
|
15490
15567
|
if (Node.isPair(key))
|
|
15491
15568
|
pair = key;
|
|
15492
|
-
else if (typeof key === "object" && "key" in key && "value" in key && key.value === null)
|
|
15569
|
+
else if (key && typeof key === "object" && "key" in key && "value" in key && key.value === null)
|
|
15493
15570
|
pair = new Pair.Pair(key.key, null);
|
|
15494
15571
|
else
|
|
15495
15572
|
pair = new Pair.Pair(key, null);
|
|
@@ -15784,11 +15861,11 @@ var require_Schema = __commonJS({
|
|
|
15784
15861
|
this.name = typeof schema === "string" && schema || "core";
|
|
15785
15862
|
this.knownTags = resolveKnownTags ? tags.coreKnownTags : {};
|
|
15786
15863
|
this.tags = tags.getTags(customTags, this.name);
|
|
15787
|
-
this.toStringOptions = toStringDefaults
|
|
15864
|
+
this.toStringOptions = toStringDefaults ?? null;
|
|
15788
15865
|
Object.defineProperty(this, Node.MAP, { value: map.map });
|
|
15789
15866
|
Object.defineProperty(this, Node.SCALAR, { value: string.string });
|
|
15790
15867
|
Object.defineProperty(this, Node.SEQ, { value: seq.seq });
|
|
15791
|
-
this.sortMapEntries = sortMapEntries ===
|
|
15868
|
+
this.sortMapEntries = typeof sortMapEntries === "function" ? sortMapEntries : sortMapEntries === true ? sortMapEntriesByKey : null;
|
|
15792
15869
|
}
|
|
15793
15870
|
clone() {
|
|
15794
15871
|
const copy3 = Object.create(Schema.prototype, Object.getOwnPropertyDescriptors(this));
|
|
@@ -15808,6 +15885,7 @@ var require_stringifyDocument = __commonJS({
|
|
|
15808
15885
|
var stringify = require_stringify();
|
|
15809
15886
|
var stringifyComment = require_stringifyComment();
|
|
15810
15887
|
function stringifyDocument(doc, options2) {
|
|
15888
|
+
var _a2;
|
|
15811
15889
|
const lines = [];
|
|
15812
15890
|
let hasDirectives = options2.directives === true;
|
|
15813
15891
|
if (options2.directives !== false && doc.directives) {
|
|
@@ -15815,7 +15893,7 @@ var require_stringifyDocument = __commonJS({
|
|
|
15815
15893
|
if (dir) {
|
|
15816
15894
|
lines.push(dir);
|
|
15817
15895
|
hasDirectives = true;
|
|
15818
|
-
} else if (doc.directives.
|
|
15896
|
+
} else if (doc.directives.docStart)
|
|
15819
15897
|
hasDirectives = true;
|
|
15820
15898
|
}
|
|
15821
15899
|
if (hasDirectives)
|
|
@@ -15852,13 +15930,27 @@ var require_stringifyDocument = __commonJS({
|
|
|
15852
15930
|
} else {
|
|
15853
15931
|
lines.push(stringify.stringify(doc.contents, ctx));
|
|
15854
15932
|
}
|
|
15855
|
-
|
|
15856
|
-
|
|
15857
|
-
|
|
15858
|
-
|
|
15859
|
-
|
|
15860
|
-
|
|
15861
|
-
|
|
15933
|
+
if ((_a2 = doc.directives) == null ? void 0 : _a2.docEnd) {
|
|
15934
|
+
if (doc.comment) {
|
|
15935
|
+
const cs = commentString(doc.comment);
|
|
15936
|
+
if (cs.includes("\n")) {
|
|
15937
|
+
lines.push("...");
|
|
15938
|
+
lines.push(stringifyComment.indentComment(cs, ""));
|
|
15939
|
+
} else {
|
|
15940
|
+
lines.push(`... ${cs}`);
|
|
15941
|
+
}
|
|
15942
|
+
} else {
|
|
15943
|
+
lines.push("...");
|
|
15944
|
+
}
|
|
15945
|
+
} else {
|
|
15946
|
+
let dc = doc.comment;
|
|
15947
|
+
if (dc && chompKeep)
|
|
15948
|
+
dc = dc.replace(/^\n+/, "");
|
|
15949
|
+
if (dc) {
|
|
15950
|
+
if ((!chompKeep || contentComment) && lines[lines.length - 1] !== "")
|
|
15951
|
+
lines.push("");
|
|
15952
|
+
lines.push(stringifyComment.indentComment(commentString(dc), ""));
|
|
15953
|
+
}
|
|
15862
15954
|
}
|
|
15863
15955
|
return lines.join("\n") + "\n";
|
|
15864
15956
|
}
|
|
@@ -15925,7 +16017,6 @@ var require_Document = __commonJS({
|
|
|
15925
16017
|
var Node = require_Node();
|
|
15926
16018
|
var Pair = require_Pair();
|
|
15927
16019
|
var toJS = require_toJS();
|
|
15928
|
-
var options2 = require_options();
|
|
15929
16020
|
var Schema = require_Schema();
|
|
15930
16021
|
var stringify = require_stringify();
|
|
15931
16022
|
var stringifyDocument = require_stringifyDocument();
|
|
@@ -15934,7 +16025,7 @@ var require_Document = __commonJS({
|
|
|
15934
16025
|
var createNode = require_createNode();
|
|
15935
16026
|
var directives = require_directives();
|
|
15936
16027
|
var Document = class {
|
|
15937
|
-
constructor(value, replacer,
|
|
16028
|
+
constructor(value, replacer, options2) {
|
|
15938
16029
|
this.commentBefore = null;
|
|
15939
16030
|
this.comment = null;
|
|
15940
16031
|
this.errors = [];
|
|
@@ -15943,24 +16034,32 @@ var require_Document = __commonJS({
|
|
|
15943
16034
|
let _replacer = null;
|
|
15944
16035
|
if (typeof replacer === "function" || Array.isArray(replacer)) {
|
|
15945
16036
|
_replacer = replacer;
|
|
15946
|
-
} else if (
|
|
15947
|
-
|
|
16037
|
+
} else if (options2 === void 0 && replacer) {
|
|
16038
|
+
options2 = replacer;
|
|
15948
16039
|
replacer = void 0;
|
|
15949
16040
|
}
|
|
15950
|
-
const opt = Object.assign({
|
|
16041
|
+
const opt = Object.assign({
|
|
16042
|
+
intAsBigInt: false,
|
|
16043
|
+
keepSourceTokens: false,
|
|
16044
|
+
logLevel: "warn",
|
|
16045
|
+
prettyErrors: true,
|
|
16046
|
+
strict: true,
|
|
16047
|
+
uniqueKeys: true,
|
|
16048
|
+
version: "1.2"
|
|
16049
|
+
}, options2);
|
|
15951
16050
|
this.options = opt;
|
|
15952
16051
|
let { version } = opt;
|
|
15953
|
-
if (
|
|
15954
|
-
this.directives =
|
|
16052
|
+
if (options2 == null ? void 0 : options2._directives) {
|
|
16053
|
+
this.directives = options2._directives.atDocument();
|
|
15955
16054
|
if (this.directives.yaml.explicit)
|
|
15956
16055
|
version = this.directives.yaml.version;
|
|
15957
16056
|
} else
|
|
15958
16057
|
this.directives = new directives.Directives({ version });
|
|
15959
|
-
this.setSchema(version,
|
|
16058
|
+
this.setSchema(version, options2);
|
|
15960
16059
|
if (value === void 0)
|
|
15961
16060
|
this.contents = null;
|
|
15962
16061
|
else {
|
|
15963
|
-
this.contents = this.createNode(value, _replacer,
|
|
16062
|
+
this.contents = this.createNode(value, _replacer, options2);
|
|
15964
16063
|
}
|
|
15965
16064
|
}
|
|
15966
16065
|
clone() {
|
|
@@ -15995,7 +16094,7 @@ var require_Document = __commonJS({
|
|
|
15995
16094
|
}
|
|
15996
16095
|
return new Alias.Alias(node.anchor);
|
|
15997
16096
|
}
|
|
15998
|
-
createNode(value, replacer,
|
|
16097
|
+
createNode(value, replacer, options2) {
|
|
15999
16098
|
let _replacer = void 0;
|
|
16000
16099
|
if (typeof replacer === "function") {
|
|
16001
16100
|
value = replacer.call({ "": value }, "", value);
|
|
@@ -16006,15 +16105,15 @@ var require_Document = __commonJS({
|
|
|
16006
16105
|
if (asStr.length > 0)
|
|
16007
16106
|
replacer = replacer.concat(asStr);
|
|
16008
16107
|
_replacer = replacer;
|
|
16009
|
-
} else if (
|
|
16010
|
-
|
|
16108
|
+
} else if (options2 === void 0 && replacer) {
|
|
16109
|
+
options2 = replacer;
|
|
16011
16110
|
replacer = void 0;
|
|
16012
16111
|
}
|
|
16013
|
-
const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } =
|
|
16112
|
+
const { aliasDuplicateObjects, anchorPrefix, flow, keepUndefined, onTagObj, tag } = options2 ?? {};
|
|
16014
16113
|
const { onAnchor, setAnchors, sourceObjects } = anchors.createNodeAnchors(this, anchorPrefix || "a");
|
|
16015
16114
|
const ctx = {
|
|
16016
|
-
aliasDuplicateObjects: aliasDuplicateObjects
|
|
16017
|
-
keepUndefined: keepUndefined
|
|
16115
|
+
aliasDuplicateObjects: aliasDuplicateObjects ?? true,
|
|
16116
|
+
keepUndefined: keepUndefined ?? false,
|
|
16018
16117
|
onAnchor,
|
|
16019
16118
|
onTagObj,
|
|
16020
16119
|
replacer: _replacer,
|
|
@@ -16027,9 +16126,9 @@ var require_Document = __commonJS({
|
|
|
16027
16126
|
setAnchors();
|
|
16028
16127
|
return node;
|
|
16029
16128
|
}
|
|
16030
|
-
createPair(key, value,
|
|
16031
|
-
const k = this.createNode(key, null,
|
|
16032
|
-
const v = this.createNode(value, null,
|
|
16129
|
+
createPair(key, value, options2 = {}) {
|
|
16130
|
+
const k = this.createNode(key, null, options2);
|
|
16131
|
+
const v = this.createNode(value, null, options2);
|
|
16033
16132
|
return new Pair.Pair(k, v);
|
|
16034
16133
|
}
|
|
16035
16134
|
delete(key) {
|
|
@@ -16076,7 +16175,7 @@ var require_Document = __commonJS({
|
|
|
16076
16175
|
this.contents.setIn(path3, value);
|
|
16077
16176
|
}
|
|
16078
16177
|
}
|
|
16079
|
-
setSchema(version,
|
|
16178
|
+
setSchema(version, options2 = {}) {
|
|
16080
16179
|
if (typeof version === "number")
|
|
16081
16180
|
version = String(version);
|
|
16082
16181
|
let opt;
|
|
@@ -16089,10 +16188,11 @@ var require_Document = __commonJS({
|
|
|
16089
16188
|
opt = { merge: true, resolveKnownTags: false, schema: "yaml-1.1" };
|
|
16090
16189
|
break;
|
|
16091
16190
|
case "1.2":
|
|
16191
|
+
case "next":
|
|
16092
16192
|
if (this.directives)
|
|
16093
|
-
this.directives.yaml.version =
|
|
16193
|
+
this.directives.yaml.version = version;
|
|
16094
16194
|
else
|
|
16095
|
-
this.directives = new directives.Directives({ version
|
|
16195
|
+
this.directives = new directives.Directives({ version });
|
|
16096
16196
|
opt = { merge: false, resolveKnownTags: true, schema: "core" };
|
|
16097
16197
|
break;
|
|
16098
16198
|
case null:
|
|
@@ -16105,10 +16205,10 @@ var require_Document = __commonJS({
|
|
|
16105
16205
|
throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${sv}`);
|
|
16106
16206
|
}
|
|
16107
16207
|
}
|
|
16108
|
-
if (
|
|
16109
|
-
this.schema =
|
|
16208
|
+
if (options2.schema instanceof Object)
|
|
16209
|
+
this.schema = options2.schema;
|
|
16110
16210
|
else if (opt)
|
|
16111
|
-
this.schema = new Schema.Schema(Object.assign(opt,
|
|
16211
|
+
this.schema = new Schema.Schema(Object.assign(opt, options2));
|
|
16112
16212
|
else
|
|
16113
16213
|
throw new Error(`With a null YAML version, the { schema: Schema } option is required`);
|
|
16114
16214
|
}
|
|
@@ -16122,7 +16222,7 @@ var require_Document = __commonJS({
|
|
|
16122
16222
|
maxAliasCount: typeof maxAliasCount === "number" ? maxAliasCount : 100,
|
|
16123
16223
|
stringify: stringify.stringify
|
|
16124
16224
|
};
|
|
16125
|
-
const res = toJS.toJS(this.contents, jsonArg
|
|
16225
|
+
const res = toJS.toJS(this.contents, jsonArg ?? "", ctx);
|
|
16126
16226
|
if (typeof onAnchor === "function")
|
|
16127
16227
|
for (const { count, res: res2 } of ctx.anchors.values())
|
|
16128
16228
|
onAnchor(res2, count);
|
|
@@ -16131,14 +16231,14 @@ var require_Document = __commonJS({
|
|
|
16131
16231
|
toJSON(jsonArg, onAnchor) {
|
|
16132
16232
|
return this.toJS({ json: true, jsonArg, mapAsMap: false, onAnchor });
|
|
16133
16233
|
}
|
|
16134
|
-
toString(
|
|
16234
|
+
toString(options2 = {}) {
|
|
16135
16235
|
if (this.errors.length > 0)
|
|
16136
16236
|
throw new Error("Document with errors cannot be stringified");
|
|
16137
|
-
if ("indent" in
|
|
16138
|
-
const s = JSON.stringify(
|
|
16237
|
+
if ("indent" in options2 && (!Number.isInteger(options2.indent) || Number(options2.indent) <= 0)) {
|
|
16238
|
+
const s = JSON.stringify(options2.indent);
|
|
16139
16239
|
throw new Error(`"indent" option must be a positive integer, not ${s}`);
|
|
16140
16240
|
}
|
|
16141
|
-
return stringifyDocument.stringifyDocument(this,
|
|
16241
|
+
return stringifyDocument.stringifyDocument(this, options2);
|
|
16142
16242
|
}
|
|
16143
16243
|
};
|
|
16144
16244
|
function assertCollection(contents) {
|
|
@@ -16198,7 +16298,7 @@ var require_errors = __commonJS({
|
|
|
16198
16298
|
let count = 1;
|
|
16199
16299
|
const end = error3.linePos[1];
|
|
16200
16300
|
if (end && end.line === line && end.col > col) {
|
|
16201
|
-
count = Math.min(end.col - col, 80 - ci);
|
|
16301
|
+
count = Math.max(1, Math.min(end.col - col, 80 - ci));
|
|
16202
16302
|
}
|
|
16203
16303
|
const pointer = " ".repeat(ci) + "^".repeat(count);
|
|
16204
16304
|
error3.message += `:
|
|
@@ -16226,6 +16326,7 @@ var require_resolve_props = __commonJS({
|
|
|
16226
16326
|
let comment = "";
|
|
16227
16327
|
let commentSep = "";
|
|
16228
16328
|
let hasNewline = false;
|
|
16329
|
+
let hasNewlineAfterProp = false;
|
|
16229
16330
|
let reqSpace = false;
|
|
16230
16331
|
let anchor = null;
|
|
16231
16332
|
let tag = null;
|
|
@@ -16266,11 +16367,15 @@ var require_resolve_props = __commonJS({
|
|
|
16266
16367
|
commentSep += token2.source;
|
|
16267
16368
|
atNewline = true;
|
|
16268
16369
|
hasNewline = true;
|
|
16370
|
+
if (anchor || tag)
|
|
16371
|
+
hasNewlineAfterProp = true;
|
|
16269
16372
|
hasSpace = true;
|
|
16270
16373
|
break;
|
|
16271
16374
|
case "anchor":
|
|
16272
16375
|
if (anchor)
|
|
16273
16376
|
onError(token2, "MULTIPLE_ANCHORS", "A node can have at most one anchor");
|
|
16377
|
+
if (token2.source.endsWith(":"))
|
|
16378
|
+
onError(token2.offset + token2.source.length - 1, "BAD_ALIAS", "Anchor ending in : is ambiguous", true);
|
|
16274
16379
|
anchor = token2;
|
|
16275
16380
|
if (start === null)
|
|
16276
16381
|
start = token2.offset;
|
|
@@ -16293,7 +16398,7 @@ var require_resolve_props = __commonJS({
|
|
|
16293
16398
|
if (anchor || tag)
|
|
16294
16399
|
onError(token2, "BAD_PROP_ORDER", `Anchors and tags must be after the ${token2.source} indicator`);
|
|
16295
16400
|
if (found)
|
|
16296
|
-
onError(token2, "UNEXPECTED_TOKEN", `Unexpected ${token2.source} in ${flow
|
|
16401
|
+
onError(token2, "UNEXPECTED_TOKEN", `Unexpected ${token2.source} in ${flow ?? "collection"}`);
|
|
16297
16402
|
found = token2;
|
|
16298
16403
|
atNewline = false;
|
|
16299
16404
|
hasSpace = false;
|
|
@@ -16323,10 +16428,11 @@ var require_resolve_props = __commonJS({
|
|
|
16323
16428
|
spaceBefore,
|
|
16324
16429
|
comment,
|
|
16325
16430
|
hasNewline,
|
|
16431
|
+
hasNewlineAfterProp,
|
|
16326
16432
|
anchor,
|
|
16327
16433
|
tag,
|
|
16328
16434
|
end,
|
|
16329
|
-
start: start
|
|
16435
|
+
start: start ?? end
|
|
16330
16436
|
};
|
|
16331
16437
|
}
|
|
16332
16438
|
exports2.resolveProps = resolveProps;
|
|
@@ -16381,7 +16487,7 @@ var require_util_flow_indent_check = __commonJS({
|
|
|
16381
16487
|
"use strict";
|
|
16382
16488
|
var utilContainsNewline = require_util_contains_newline();
|
|
16383
16489
|
function flowIndentCheck(indent, fc, onError) {
|
|
16384
|
-
if ((fc
|
|
16490
|
+
if ((fc == null ? void 0 : fc.type) === "flow-collection") {
|
|
16385
16491
|
const end = fc.end[0];
|
|
16386
16492
|
if (end.indent === indent && (end.source === "]" || end.source === "}") && utilContainsNewline.containsNewline(fc)) {
|
|
16387
16493
|
const msg = "Flow end indicator should be more indented than parent";
|
|
@@ -16426,11 +16532,12 @@ var require_resolve_block_map = __commonJS({
|
|
|
16426
16532
|
if (ctx.atRoot)
|
|
16427
16533
|
ctx.atRoot = false;
|
|
16428
16534
|
let offset = bm.offset;
|
|
16535
|
+
let commentEnd = null;
|
|
16429
16536
|
for (const collItem of bm.items) {
|
|
16430
16537
|
const { start, key, sep, value } = collItem;
|
|
16431
16538
|
const keyProps = resolveProps.resolveProps(start, {
|
|
16432
16539
|
indicator: "explicit-key-ind",
|
|
16433
|
-
next: key
|
|
16540
|
+
next: key ?? (sep == null ? void 0 : sep[0]),
|
|
16434
16541
|
offset,
|
|
16435
16542
|
onError,
|
|
16436
16543
|
startOnNewline: true
|
|
@@ -16444,6 +16551,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
16444
16551
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
16445
16552
|
}
|
|
16446
16553
|
if (!keyProps.anchor && !keyProps.tag && !sep) {
|
|
16554
|
+
commentEnd = keyProps.end;
|
|
16447
16555
|
if (keyProps.comment) {
|
|
16448
16556
|
if (map.comment)
|
|
16449
16557
|
map.comment += "\n" + keyProps.comment;
|
|
@@ -16452,17 +16560,19 @@ var require_resolve_block_map = __commonJS({
|
|
|
16452
16560
|
}
|
|
16453
16561
|
continue;
|
|
16454
16562
|
}
|
|
16455
|
-
|
|
16563
|
+
if (keyProps.hasNewlineAfterProp || utilContainsNewline.containsNewline(key)) {
|
|
16564
|
+
onError(key ?? start[start.length - 1], "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
16565
|
+
}
|
|
16566
|
+
} else if (((_a2 = keyProps.found) == null ? void 0 : _a2.indent) !== bm.indent) {
|
|
16456
16567
|
onError(offset, "BAD_INDENT", startColMsg);
|
|
16457
|
-
|
|
16458
|
-
onError(key, "MULTILINE_IMPLICIT_KEY", "Implicit keys need to be on a single line");
|
|
16568
|
+
}
|
|
16459
16569
|
const keyStart = keyProps.end;
|
|
16460
16570
|
const keyNode = key ? composeNode(ctx, key, keyProps, onError) : composeEmptyNode(ctx, keyStart, start, null, keyProps, onError);
|
|
16461
16571
|
if (ctx.schema.compat)
|
|
16462
16572
|
utilFlowIndentCheck.flowIndentCheck(bm.indent, key, onError);
|
|
16463
16573
|
if (utilMapIncludes.mapIncludes(ctx, map.items, keyNode))
|
|
16464
16574
|
onError(keyStart, "DUPLICATE_KEY", "Map keys must be unique");
|
|
16465
|
-
const valueProps = resolveProps.resolveProps(sep
|
|
16575
|
+
const valueProps = resolveProps.resolveProps(sep ?? [], {
|
|
16466
16576
|
indicator: "map-value-ind",
|
|
16467
16577
|
next: value,
|
|
16468
16578
|
offset: keyNode.range[2],
|
|
@@ -16472,7 +16582,7 @@ var require_resolve_block_map = __commonJS({
|
|
|
16472
16582
|
offset = valueProps.end;
|
|
16473
16583
|
if (valueProps.found) {
|
|
16474
16584
|
if (implicitKey) {
|
|
16475
|
-
if ((value
|
|
16585
|
+
if ((value == null ? void 0 : value.type) === "block-map" && !valueProps.hasNewline)
|
|
16476
16586
|
onError(offset, "BLOCK_AS_IMPLICIT_KEY", "Nested mappings are not allowed in compact mappings");
|
|
16477
16587
|
if (ctx.options.strict && keyProps.start < valueProps.found.offset - 1024)
|
|
16478
16588
|
onError(keyNode.range, "KEY_OVER_1024_CHARS", "The : indicator must be at most 1024 chars after the start of an implicit block mapping key");
|
|
@@ -16500,7 +16610,9 @@ var require_resolve_block_map = __commonJS({
|
|
|
16500
16610
|
map.items.push(pair);
|
|
16501
16611
|
}
|
|
16502
16612
|
}
|
|
16503
|
-
|
|
16613
|
+
if (commentEnd && commentEnd < offset)
|
|
16614
|
+
onError(commentEnd, "IMPOSSIBLE", "Map comment with trailing content");
|
|
16615
|
+
map.range = [bm.offset, offset, commentEnd ?? offset];
|
|
16504
16616
|
return map;
|
|
16505
16617
|
}
|
|
16506
16618
|
exports2.resolveBlockMap = resolveBlockMap;
|
|
@@ -16519,6 +16631,7 @@ var require_resolve_block_seq = __commonJS({
|
|
|
16519
16631
|
if (ctx.atRoot)
|
|
16520
16632
|
ctx.atRoot = false;
|
|
16521
16633
|
let offset = bs.offset;
|
|
16634
|
+
let commentEnd = null;
|
|
16522
16635
|
for (const { start, value } of bs.items) {
|
|
16523
16636
|
const props = resolveProps.resolveProps(start, {
|
|
16524
16637
|
indicator: "seq-item-ind",
|
|
@@ -16527,26 +16640,26 @@ var require_resolve_block_seq = __commonJS({
|
|
|
16527
16640
|
onError,
|
|
16528
16641
|
startOnNewline: true
|
|
16529
16642
|
});
|
|
16530
|
-
offset = props.end;
|
|
16531
16643
|
if (!props.found) {
|
|
16532
16644
|
if (props.anchor || props.tag || value) {
|
|
16533
16645
|
if (value && value.type === "block-seq")
|
|
16534
|
-
onError(
|
|
16646
|
+
onError(props.end, "BAD_INDENT", "All sequence items must start at the same column");
|
|
16535
16647
|
else
|
|
16536
16648
|
onError(offset, "MISSING_CHAR", "Sequence item without - indicator");
|
|
16537
16649
|
} else {
|
|
16650
|
+
commentEnd = props.end;
|
|
16538
16651
|
if (props.comment)
|
|
16539
16652
|
seq.comment = props.comment;
|
|
16540
16653
|
continue;
|
|
16541
16654
|
}
|
|
16542
16655
|
}
|
|
16543
|
-
const node = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx,
|
|
16656
|
+
const node = value ? composeNode(ctx, value, props, onError) : composeEmptyNode(ctx, props.end, start, null, props, onError);
|
|
16544
16657
|
if (ctx.schema.compat)
|
|
16545
16658
|
utilFlowIndentCheck.flowIndentCheck(bs.indent, value, onError);
|
|
16546
16659
|
offset = node.range[2];
|
|
16547
16660
|
seq.items.push(node);
|
|
16548
16661
|
}
|
|
16549
|
-
seq.range = [bs.offset, offset, offset];
|
|
16662
|
+
seq.range = [bs.offset, offset, commentEnd ?? offset];
|
|
16550
16663
|
return seq;
|
|
16551
16664
|
}
|
|
16552
16665
|
exports2.resolveBlockSeq = resolveBlockSeq;
|
|
@@ -16625,7 +16738,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
16625
16738
|
const props = resolveProps.resolveProps(start, {
|
|
16626
16739
|
flow: fcName,
|
|
16627
16740
|
indicator: "explicit-key-ind",
|
|
16628
|
-
next: key
|
|
16741
|
+
next: key ?? (sep == null ? void 0 : sep[0]),
|
|
16629
16742
|
offset,
|
|
16630
16743
|
onError,
|
|
16631
16744
|
startOnNewline: false
|
|
@@ -16672,7 +16785,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
16672
16785
|
if (prevItemComment) {
|
|
16673
16786
|
let prev = coll.items[coll.items.length - 1];
|
|
16674
16787
|
if (Node.isPair(prev))
|
|
16675
|
-
prev = prev.value
|
|
16788
|
+
prev = prev.value ?? prev.key;
|
|
16676
16789
|
if (prev.comment)
|
|
16677
16790
|
prev.comment += "\n" + prevItemComment;
|
|
16678
16791
|
else
|
|
@@ -16692,7 +16805,7 @@ var require_resolve_flow_collection = __commonJS({
|
|
|
16692
16805
|
const keyNode = key ? composeNode(ctx, key, props, onError) : composeEmptyNode(ctx, keyStart, start, null, props, onError);
|
|
16693
16806
|
if (isBlock(key))
|
|
16694
16807
|
onError(keyNode.range, "BLOCK_IN_FLOW", blockMsg);
|
|
16695
|
-
const valueProps = resolveProps.resolveProps(sep
|
|
16808
|
+
const valueProps = resolveProps.resolveProps(sep ?? [], {
|
|
16696
16809
|
flow: fcName,
|
|
16697
16810
|
indicator: "map-value-ind",
|
|
16698
16811
|
next: value,
|
|
@@ -16829,7 +16942,7 @@ var require_compose_collection = __commonJS({
|
|
|
16829
16942
|
const node = Node.isNode(res) ? res : new Scalar.Scalar(res);
|
|
16830
16943
|
node.range = coll.range;
|
|
16831
16944
|
node.tag = tagName;
|
|
16832
|
-
if (tag
|
|
16945
|
+
if (tag == null ? void 0 : tag.format)
|
|
16833
16946
|
node.format = tag.format;
|
|
16834
16947
|
return node;
|
|
16835
16948
|
}
|
|
@@ -16857,8 +16970,8 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
16857
16970
|
else
|
|
16858
16971
|
break;
|
|
16859
16972
|
}
|
|
16860
|
-
if (
|
|
16861
|
-
const value2 = header.chomp === "+" ? "\n".repeat(Math.max(
|
|
16973
|
+
if (chompStart === 0) {
|
|
16974
|
+
const value2 = header.chomp === "+" && lines.length > 0 ? "\n".repeat(Math.max(1, lines.length - 1)) : "";
|
|
16862
16975
|
let end2 = start + header.length;
|
|
16863
16976
|
if (scalar.source)
|
|
16864
16977
|
end2 += scalar.source.length;
|
|
@@ -16884,6 +16997,10 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
16884
16997
|
}
|
|
16885
16998
|
offset += indent.length + content.length + 1;
|
|
16886
16999
|
}
|
|
17000
|
+
for (let i = lines.length - 1; i >= chompStart; --i) {
|
|
17001
|
+
if (lines[i][0].length > trimIndent)
|
|
17002
|
+
chompStart = i + 1;
|
|
17003
|
+
}
|
|
16887
17004
|
let value = "";
|
|
16888
17005
|
let sep = "";
|
|
16889
17006
|
let prevMoreIndented = false;
|
|
@@ -17000,7 +17117,7 @@ var require_resolve_block_scalar = __commonJS({
|
|
|
17000
17117
|
const split = source.split(/\n( *)/);
|
|
17001
17118
|
const first = split[0];
|
|
17002
17119
|
const m = first.match(/^( *)/);
|
|
17003
|
-
const line0 = m
|
|
17120
|
+
const line0 = (m == null ? void 0 : m[1]) ? [m[1], first.slice(m[1].length)] : ["", first];
|
|
17004
17121
|
const lines = [line0];
|
|
17005
17122
|
for (let i = 1; i < split.length; i += 2)
|
|
17006
17123
|
lines.push([split[i], split[i + 1]]);
|
|
@@ -17115,7 +17232,7 @@ var require_resolve_flow_scalar = __commonJS({
|
|
|
17115
17232
|
const last = /[ \t]*(.*)/sy;
|
|
17116
17233
|
last.lastIndex = pos;
|
|
17117
17234
|
match = last.exec(source);
|
|
17118
|
-
return res + sep + (match
|
|
17235
|
+
return res + sep + ((match == null ? void 0 : match[1]) ?? "");
|
|
17119
17236
|
}
|
|
17120
17237
|
function doubleQuotedValue(source, onError) {
|
|
17121
17238
|
let res = "";
|
|
@@ -17228,11 +17345,11 @@ var require_compose_scalar = __commonJS({
|
|
|
17228
17345
|
const tag = tagToken && tagName ? findScalarTagByName(ctx.schema, value, tagName, tagToken, onError) : token2.type === "scalar" ? findScalarTagByTest(ctx, value, token2, onError) : ctx.schema[Node.SCALAR];
|
|
17229
17346
|
let scalar;
|
|
17230
17347
|
try {
|
|
17231
|
-
const res = tag.resolve(value, (msg) => onError(tagToken
|
|
17348
|
+
const res = tag.resolve(value, (msg) => onError(tagToken ?? token2, "TAG_RESOLVE_FAILED", msg), ctx.options);
|
|
17232
17349
|
scalar = Node.isScalar(res) ? res : new Scalar.Scalar(res);
|
|
17233
17350
|
} catch (error3) {
|
|
17234
17351
|
const msg = error3 instanceof Error ? error3.message : String(error3);
|
|
17235
|
-
onError(tagToken
|
|
17352
|
+
onError(tagToken ?? token2, "TAG_RESOLVE_FAILED", msg);
|
|
17236
17353
|
scalar = new Scalar.Scalar(value);
|
|
17237
17354
|
}
|
|
17238
17355
|
scalar.range = range;
|
|
@@ -17261,7 +17378,7 @@ var require_compose_scalar = __commonJS({
|
|
|
17261
17378
|
}
|
|
17262
17379
|
}
|
|
17263
17380
|
for (const tag of matchWithTest)
|
|
17264
|
-
if ((_a2 = tag.test)
|
|
17381
|
+
if ((_a2 = tag.test) == null ? void 0 : _a2.test(value))
|
|
17265
17382
|
return tag;
|
|
17266
17383
|
const kt = schema.knownTags[tagName];
|
|
17267
17384
|
if (kt && !kt.collection) {
|
|
@@ -17274,13 +17391,13 @@ var require_compose_scalar = __commonJS({
|
|
|
17274
17391
|
function findScalarTagByTest({ directives, schema }, value, token2, onError) {
|
|
17275
17392
|
const tag = schema.tags.find((tag2) => {
|
|
17276
17393
|
var _a2;
|
|
17277
|
-
return tag2.default && ((_a2 = tag2.test)
|
|
17394
|
+
return tag2.default && ((_a2 = tag2.test) == null ? void 0 : _a2.test(value));
|
|
17278
17395
|
}) || schema[Node.SCALAR];
|
|
17279
17396
|
if (schema.compat) {
|
|
17280
17397
|
const compat = schema.compat.find((tag2) => {
|
|
17281
17398
|
var _a2;
|
|
17282
|
-
return tag2.default && ((_a2 = tag2.test)
|
|
17283
|
-
})
|
|
17399
|
+
return tag2.default && ((_a2 = tag2.test) == null ? void 0 : _a2.test(value));
|
|
17400
|
+
}) ?? schema[Node.SCALAR];
|
|
17284
17401
|
if (tag.tag !== compat.tag) {
|
|
17285
17402
|
const ts = directives.tagString(tag.tag);
|
|
17286
17403
|
const cs = directives.tagString(compat.tag);
|
|
@@ -17312,7 +17429,7 @@ var require_util_empty_scalar_position = __commonJS({
|
|
|
17312
17429
|
continue;
|
|
17313
17430
|
}
|
|
17314
17431
|
st = before[++i];
|
|
17315
|
-
while ((st
|
|
17432
|
+
while ((st == null ? void 0 : st.type) === "space") {
|
|
17316
17433
|
offset += st.source.length;
|
|
17317
17434
|
st = before[++i];
|
|
17318
17435
|
}
|
|
@@ -17338,6 +17455,7 @@ var require_compose_node = __commonJS({
|
|
|
17338
17455
|
function composeNode(ctx, token2, props, onError) {
|
|
17339
17456
|
const { spaceBefore, comment, anchor, tag } = props;
|
|
17340
17457
|
let node;
|
|
17458
|
+
let isSrcToken = true;
|
|
17341
17459
|
switch (token2.type) {
|
|
17342
17460
|
case "alias":
|
|
17343
17461
|
node = composeAlias(ctx, token2, onError);
|
|
@@ -17359,9 +17477,12 @@ var require_compose_node = __commonJS({
|
|
|
17359
17477
|
if (anchor)
|
|
17360
17478
|
node.anchor = anchor.source.substring(1);
|
|
17361
17479
|
break;
|
|
17362
|
-
default:
|
|
17363
|
-
|
|
17364
|
-
|
|
17480
|
+
default: {
|
|
17481
|
+
const message = token2.type === "error" ? token2.message : `Unsupported token (type: ${token2.type})`;
|
|
17482
|
+
onError(token2, "UNEXPECTED_TOKEN", message);
|
|
17483
|
+
node = composeEmptyNode(ctx, token2.offset, void 0, null, props, onError);
|
|
17484
|
+
isSrcToken = false;
|
|
17485
|
+
}
|
|
17365
17486
|
}
|
|
17366
17487
|
if (anchor && node.anchor === "")
|
|
17367
17488
|
onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
|
|
@@ -17373,11 +17494,11 @@ var require_compose_node = __commonJS({
|
|
|
17373
17494
|
else
|
|
17374
17495
|
node.commentBefore = comment;
|
|
17375
17496
|
}
|
|
17376
|
-
if (ctx.options.keepSourceTokens)
|
|
17497
|
+
if (ctx.options.keepSourceTokens && isSrcToken)
|
|
17377
17498
|
node.srcToken = token2;
|
|
17378
17499
|
return node;
|
|
17379
17500
|
}
|
|
17380
|
-
function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag }, onError) {
|
|
17501
|
+
function composeEmptyNode(ctx, offset, before, pos, { spaceBefore, comment, anchor, tag, end }, onError) {
|
|
17381
17502
|
const token2 = {
|
|
17382
17503
|
type: "scalar",
|
|
17383
17504
|
offset: utilEmptyScalarPosition.emptyScalarPosition(offset, before, pos),
|
|
@@ -17392,14 +17513,18 @@ var require_compose_node = __commonJS({
|
|
|
17392
17513
|
}
|
|
17393
17514
|
if (spaceBefore)
|
|
17394
17515
|
node.spaceBefore = true;
|
|
17395
|
-
if (comment)
|
|
17516
|
+
if (comment) {
|
|
17396
17517
|
node.comment = comment;
|
|
17518
|
+
node.range[2] = end;
|
|
17519
|
+
}
|
|
17397
17520
|
return node;
|
|
17398
17521
|
}
|
|
17399
17522
|
function composeAlias({ options: options2 }, { offset, source, end }, onError) {
|
|
17400
17523
|
const alias = new Alias.Alias(source.substring(1));
|
|
17401
17524
|
if (alias.source === "")
|
|
17402
17525
|
onError(offset, "BAD_ALIAS", "Alias cannot be an empty string");
|
|
17526
|
+
if (alias.source.endsWith(":"))
|
|
17527
|
+
onError(offset + source.length - 1, "BAD_ALIAS", "Alias ending in : is ambiguous", true);
|
|
17403
17528
|
const valueEnd = offset + source.length;
|
|
17404
17529
|
const re = resolveEnd.resolveEnd(end, valueEnd, options2.strict, onError);
|
|
17405
17530
|
alias.range = [offset, valueEnd, re.offset];
|
|
@@ -17421,7 +17546,7 @@ var require_compose_doc = __commonJS({
|
|
|
17421
17546
|
var resolveEnd = require_resolve_end();
|
|
17422
17547
|
var resolveProps = require_resolve_props();
|
|
17423
17548
|
function composeDoc(options2, directives, { offset, start, value, end }, onError) {
|
|
17424
|
-
const opts = Object.assign({ directives }, options2);
|
|
17549
|
+
const opts = Object.assign({ _directives: directives }, options2);
|
|
17425
17550
|
const doc = new Document.Document(void 0, opts);
|
|
17426
17551
|
const ctx = {
|
|
17427
17552
|
atRoot: true,
|
|
@@ -17431,13 +17556,13 @@ var require_compose_doc = __commonJS({
|
|
|
17431
17556
|
};
|
|
17432
17557
|
const props = resolveProps.resolveProps(start, {
|
|
17433
17558
|
indicator: "doc-start",
|
|
17434
|
-
next: value
|
|
17559
|
+
next: value ?? (end == null ? void 0 : end[0]),
|
|
17435
17560
|
offset,
|
|
17436
17561
|
onError,
|
|
17437
17562
|
startOnNewline: true
|
|
17438
17563
|
});
|
|
17439
17564
|
if (props.found) {
|
|
17440
|
-
doc.directives.
|
|
17565
|
+
doc.directives.docStart = true;
|
|
17441
17566
|
if (value && (value.type === "block-map" || value.type === "block-seq") && !props.hasNewline)
|
|
17442
17567
|
onError(props.end, "MISSING_CHAR", "Block collection cannot start on same line with directives-end marker");
|
|
17443
17568
|
}
|
|
@@ -17461,7 +17586,6 @@ var require_composer = __commonJS({
|
|
|
17461
17586
|
var Document = require_Document();
|
|
17462
17587
|
var errors = require_errors();
|
|
17463
17588
|
var Node = require_Node();
|
|
17464
|
-
var options2 = require_options();
|
|
17465
17589
|
var composeDoc = require_compose_doc();
|
|
17466
17590
|
var resolveEnd = require_resolve_end();
|
|
17467
17591
|
function getErrorPos(src) {
|
|
@@ -17486,7 +17610,7 @@ var require_composer = __commonJS({
|
|
|
17486
17610
|
afterEmptyLine = false;
|
|
17487
17611
|
break;
|
|
17488
17612
|
case "%":
|
|
17489
|
-
if (((_a2 = prelude[i + 1])
|
|
17613
|
+
if (((_a2 = prelude[i + 1]) == null ? void 0 : _a2[0]) !== "#")
|
|
17490
17614
|
i += 1;
|
|
17491
17615
|
atComment = false;
|
|
17492
17616
|
break;
|
|
@@ -17499,7 +17623,7 @@ var require_composer = __commonJS({
|
|
|
17499
17623
|
return { comment, afterEmptyLine };
|
|
17500
17624
|
}
|
|
17501
17625
|
var Composer = class {
|
|
17502
|
-
constructor(
|
|
17626
|
+
constructor(options2 = {}) {
|
|
17503
17627
|
this.doc = null;
|
|
17504
17628
|
this.atDirectives = false;
|
|
17505
17629
|
this.prelude = [];
|
|
@@ -17512,10 +17636,8 @@ var require_composer = __commonJS({
|
|
|
17512
17636
|
else
|
|
17513
17637
|
this.errors.push(new errors.YAMLParseError(pos, code, message));
|
|
17514
17638
|
};
|
|
17515
|
-
this.directives = new directives.Directives({
|
|
17516
|
-
|
|
17517
|
-
});
|
|
17518
|
-
this.options = options$1;
|
|
17639
|
+
this.directives = new directives.Directives({ version: options2.version || "1.2" });
|
|
17640
|
+
this.options = options2;
|
|
17519
17641
|
}
|
|
17520
17642
|
decorate(doc, afterDoc) {
|
|
17521
17643
|
const { comment, afterEmptyLine } = parsePrelude(this.prelude);
|
|
@@ -17524,7 +17646,7 @@ var require_composer = __commonJS({
|
|
|
17524
17646
|
if (afterDoc) {
|
|
17525
17647
|
doc.comment = doc.comment ? `${doc.comment}
|
|
17526
17648
|
${comment}` : comment;
|
|
17527
|
-
} else if (afterEmptyLine || doc.directives.
|
|
17649
|
+
} else if (afterEmptyLine || doc.directives.docStart || !dc) {
|
|
17528
17650
|
doc.commentBefore = comment;
|
|
17529
17651
|
} else if (Node.isCollection(dc) && !dc.flow && dc.items.length > 0) {
|
|
17530
17652
|
let it = dc.items[0];
|
|
@@ -17578,8 +17700,8 @@ ${cb}` : comment;
|
|
|
17578
17700
|
break;
|
|
17579
17701
|
case "document": {
|
|
17580
17702
|
const doc = composeDoc.composeDoc(this.options, this.directives, token2, this.onError);
|
|
17581
|
-
if (this.atDirectives && !doc.directives.
|
|
17582
|
-
this.onError(token2, "MISSING_CHAR", "Missing directives-end indicator line");
|
|
17703
|
+
if (this.atDirectives && !doc.directives.docStart)
|
|
17704
|
+
this.onError(token2, "MISSING_CHAR", "Missing directives-end/doc-start indicator line");
|
|
17583
17705
|
this.decorate(doc, false);
|
|
17584
17706
|
if (this.doc)
|
|
17585
17707
|
yield this.doc;
|
|
@@ -17609,6 +17731,7 @@ ${cb}` : comment;
|
|
|
17609
17731
|
this.errors.push(new errors.YAMLParseError(getErrorPos(token2), "UNEXPECTED_TOKEN", msg));
|
|
17610
17732
|
break;
|
|
17611
17733
|
}
|
|
17734
|
+
this.doc.directives.docEnd = true;
|
|
17612
17735
|
const end = resolveEnd.resolveEnd(token2.end, token2.offset + token2.source.length, this.doc.options.strict, this.onError);
|
|
17613
17736
|
this.decorate(this.doc, true);
|
|
17614
17737
|
if (end.comment) {
|
|
@@ -17629,7 +17752,7 @@ ${end.comment}` : end.comment;
|
|
|
17629
17752
|
yield this.doc;
|
|
17630
17753
|
this.doc = null;
|
|
17631
17754
|
} else if (forceDoc) {
|
|
17632
|
-
const opts = Object.assign({
|
|
17755
|
+
const opts = Object.assign({ _directives: this.directives }, this.options);
|
|
17633
17756
|
const doc = new Document.Document(void 0, opts);
|
|
17634
17757
|
if (this.atDirectives)
|
|
17635
17758
|
this.onError(endOffset, "MISSING_CHAR", "Missing directives-end indicator line");
|
|
@@ -17672,7 +17795,6 @@ var require_cst_scalar = __commonJS({
|
|
|
17672
17795
|
return null;
|
|
17673
17796
|
}
|
|
17674
17797
|
function createScalarToken(value, context) {
|
|
17675
|
-
var _a2;
|
|
17676
17798
|
const { implicitKey = false, indent, inFlow = false, offset = -1, type = "PLAIN" } = context;
|
|
17677
17799
|
const source = stringifyString.stringifyString({ type, value }, {
|
|
17678
17800
|
implicitKey,
|
|
@@ -17680,7 +17802,7 @@ var require_cst_scalar = __commonJS({
|
|
|
17680
17802
|
inFlow,
|
|
17681
17803
|
options: { blockQuote: true, lineWidth: -1 }
|
|
17682
17804
|
});
|
|
17683
|
-
const end =
|
|
17805
|
+
const end = context.end ?? [
|
|
17684
17806
|
{ type: "newline", offset: -1, indent, source: "\n" }
|
|
17685
17807
|
];
|
|
17686
17808
|
switch (source[0]) {
|
|
@@ -17908,7 +18030,7 @@ var require_cst_visit = __commonJS({
|
|
|
17908
18030
|
visit.itemAtPath = (cst, path3) => {
|
|
17909
18031
|
let item = cst;
|
|
17910
18032
|
for (const [field, index] of path3) {
|
|
17911
|
-
const tok = item
|
|
18033
|
+
const tok = item == null ? void 0 : item[field];
|
|
17912
18034
|
if (tok && "items" in tok) {
|
|
17913
18035
|
item = tok.items[index];
|
|
17914
18036
|
} else
|
|
@@ -17919,7 +18041,7 @@ var require_cst_visit = __commonJS({
|
|
|
17919
18041
|
visit.parentCollection = (cst, path3) => {
|
|
17920
18042
|
const parent = visit.itemAtPath(cst, path3.slice(0, -1));
|
|
17921
18043
|
const field = path3[path3.length - 1][0];
|
|
17922
|
-
const coll = parent
|
|
18044
|
+
const coll = parent == null ? void 0 : parent[field];
|
|
17923
18045
|
if (coll && "items" in coll)
|
|
17924
18046
|
return coll;
|
|
17925
18047
|
throw new Error("Parent collection not found");
|
|
@@ -18096,7 +18218,7 @@ var require_lexer = __commonJS({
|
|
|
18096
18218
|
this.lineEndPos = null;
|
|
18097
18219
|
}
|
|
18098
18220
|
this.atEnd = !incomplete;
|
|
18099
|
-
let next = this.next
|
|
18221
|
+
let next = this.next ?? "stream";
|
|
18100
18222
|
while (next && (incomplete || this.hasChars(1)))
|
|
18101
18223
|
next = yield* this.parseNext(next);
|
|
18102
18224
|
}
|
|
@@ -18295,9 +18417,13 @@ var require_lexer = __commonJS({
|
|
|
18295
18417
|
let indent = -1;
|
|
18296
18418
|
do {
|
|
18297
18419
|
nl = yield* this.pushNewline();
|
|
18298
|
-
|
|
18299
|
-
|
|
18420
|
+
if (nl > 0) {
|
|
18421
|
+
sp = yield* this.pushSpaces(false);
|
|
18300
18422
|
this.indentValue = indent = sp;
|
|
18423
|
+
} else {
|
|
18424
|
+
sp = 0;
|
|
18425
|
+
}
|
|
18426
|
+
sp += yield* this.pushSpaces(true);
|
|
18301
18427
|
} while (nl + sp > 0);
|
|
18302
18428
|
const line = this.getLine();
|
|
18303
18429
|
if (line === null)
|
|
@@ -18458,9 +18584,10 @@ var require_lexer = __commonJS({
|
|
|
18458
18584
|
let ch2 = this.buffer[i];
|
|
18459
18585
|
if (ch2 === "\r")
|
|
18460
18586
|
ch2 = this.buffer[--i];
|
|
18587
|
+
const lastChar = i;
|
|
18461
18588
|
while (ch2 === " " || ch2 === " ")
|
|
18462
18589
|
ch2 = this.buffer[--i];
|
|
18463
|
-
if (ch2 === "\n" && i >= this.pos)
|
|
18590
|
+
if (ch2 === "\n" && i >= this.pos && i + 1 + indent > lastChar)
|
|
18464
18591
|
nl = i;
|
|
18465
18592
|
else
|
|
18466
18593
|
break;
|
|
@@ -18535,16 +18662,19 @@ var require_lexer = __commonJS({
|
|
|
18535
18662
|
return (yield* this.pushTag()) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
|
|
18536
18663
|
case "&":
|
|
18537
18664
|
return (yield* this.pushUntil(isNotAnchorChar)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
|
|
18538
|
-
case ":":
|
|
18539
|
-
case "?":
|
|
18540
18665
|
case "-":
|
|
18541
|
-
|
|
18542
|
-
|
|
18666
|
+
case "?":
|
|
18667
|
+
case ":": {
|
|
18668
|
+
const inFlow = this.flowLevel > 0;
|
|
18669
|
+
const ch1 = this.charAt(1);
|
|
18670
|
+
if (isEmpty(ch1) || inFlow && invalidFlowScalarChars.includes(ch1)) {
|
|
18671
|
+
if (!inFlow)
|
|
18543
18672
|
this.indentNext = this.indentValue + 1;
|
|
18544
18673
|
else if (this.flowKey)
|
|
18545
18674
|
this.flowKey = false;
|
|
18546
18675
|
return (yield* this.pushCount(1)) + (yield* this.pushSpaces(true)) + (yield* this.pushIndicators());
|
|
18547
18676
|
}
|
|
18677
|
+
}
|
|
18548
18678
|
}
|
|
18549
18679
|
return 0;
|
|
18550
18680
|
}
|
|
@@ -18646,7 +18776,7 @@ var require_parser = __commonJS({
|
|
|
18646
18776
|
return true;
|
|
18647
18777
|
return false;
|
|
18648
18778
|
}
|
|
18649
|
-
function
|
|
18779
|
+
function findNonEmptyIndex(list) {
|
|
18650
18780
|
for (let i = 0; i < list.length; ++i) {
|
|
18651
18781
|
switch (list[i].type) {
|
|
18652
18782
|
case "space":
|
|
@@ -18654,13 +18784,13 @@ var require_parser = __commonJS({
|
|
|
18654
18784
|
case "newline":
|
|
18655
18785
|
break;
|
|
18656
18786
|
default:
|
|
18657
|
-
return
|
|
18787
|
+
return i;
|
|
18658
18788
|
}
|
|
18659
18789
|
}
|
|
18660
|
-
return
|
|
18790
|
+
return -1;
|
|
18661
18791
|
}
|
|
18662
18792
|
function isFlowToken(token2) {
|
|
18663
|
-
switch (token2
|
|
18793
|
+
switch (token2 == null ? void 0 : token2.type) {
|
|
18664
18794
|
case "alias":
|
|
18665
18795
|
case "scalar":
|
|
18666
18796
|
case "single-quoted-scalar":
|
|
@@ -18677,7 +18807,7 @@ var require_parser = __commonJS({
|
|
|
18677
18807
|
return parent.start;
|
|
18678
18808
|
case "block-map": {
|
|
18679
18809
|
const it = parent.items[parent.items.length - 1];
|
|
18680
|
-
return it.sep
|
|
18810
|
+
return it.sep ?? it.start;
|
|
18681
18811
|
}
|
|
18682
18812
|
case "block-seq":
|
|
18683
18813
|
return parent.items[parent.items.length - 1].start;
|
|
@@ -18701,7 +18831,7 @@ var require_parser = __commonJS({
|
|
|
18701
18831
|
break loop;
|
|
18702
18832
|
}
|
|
18703
18833
|
}
|
|
18704
|
-
while (((_a2 = prev[++i])
|
|
18834
|
+
while (((_a2 = prev[++i]) == null ? void 0 : _a2.type) === "space") {
|
|
18705
18835
|
}
|
|
18706
18836
|
return prev.splice(i, prev.length);
|
|
18707
18837
|
}
|
|
@@ -18845,7 +18975,7 @@ var require_parser = __commonJS({
|
|
|
18845
18975
|
return this.stack[this.stack.length - n];
|
|
18846
18976
|
}
|
|
18847
18977
|
*pop(error3) {
|
|
18848
|
-
const token2 = error3
|
|
18978
|
+
const token2 = error3 ?? this.stack.pop();
|
|
18849
18979
|
if (!token2) {
|
|
18850
18980
|
const message = "Tried to pop an empty stack";
|
|
18851
18981
|
yield { type: "error", offset: this.offset, source: "", message };
|
|
@@ -18906,7 +19036,7 @@ var require_parser = __commonJS({
|
|
|
18906
19036
|
}
|
|
18907
19037
|
if ((top.type === "document" || top.type === "block-map" || top.type === "block-seq") && (token2.type === "block-map" || token2.type === "block-seq")) {
|
|
18908
19038
|
const last = token2.items[token2.items.length - 1];
|
|
18909
|
-
if (last && !last.sep && !last.value && last.start.length > 0 &&
|
|
19039
|
+
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))) {
|
|
18910
19040
|
if (top.type === "document")
|
|
18911
19041
|
top.end = last.start;
|
|
18912
19042
|
else
|
|
@@ -18952,7 +19082,7 @@ var require_parser = __commonJS({
|
|
|
18952
19082
|
return yield* this.lineEnd(doc);
|
|
18953
19083
|
switch (this.type) {
|
|
18954
19084
|
case "doc-start": {
|
|
18955
|
-
if (
|
|
19085
|
+
if (findNonEmptyIndex(doc.start) !== -1) {
|
|
18956
19086
|
yield* this.pop();
|
|
18957
19087
|
yield* this.step();
|
|
18958
19088
|
} else
|
|
@@ -19035,25 +19165,26 @@ var require_parser = __commonJS({
|
|
|
19035
19165
|
if (it.value) {
|
|
19036
19166
|
const end = "end" in it.value ? it.value.end : void 0;
|
|
19037
19167
|
const last = Array.isArray(end) ? end[end.length - 1] : void 0;
|
|
19038
|
-
if ((last
|
|
19039
|
-
end
|
|
19168
|
+
if ((last == null ? void 0 : last.type) === "comment")
|
|
19169
|
+
end == null ? void 0 : end.push(this.sourceToken);
|
|
19040
19170
|
else
|
|
19041
19171
|
map.items.push({ start: [this.sourceToken] });
|
|
19042
|
-
} else if (it.sep)
|
|
19172
|
+
} else if (it.sep) {
|
|
19043
19173
|
it.sep.push(this.sourceToken);
|
|
19044
|
-
else
|
|
19174
|
+
} else {
|
|
19045
19175
|
it.start.push(this.sourceToken);
|
|
19176
|
+
}
|
|
19046
19177
|
return;
|
|
19047
19178
|
case "space":
|
|
19048
19179
|
case "comment":
|
|
19049
|
-
if (it.value)
|
|
19180
|
+
if (it.value) {
|
|
19050
19181
|
map.items.push({ start: [this.sourceToken] });
|
|
19051
|
-
else if (it.sep)
|
|
19182
|
+
} else if (it.sep) {
|
|
19052
19183
|
it.sep.push(this.sourceToken);
|
|
19053
|
-
else {
|
|
19184
|
+
} else {
|
|
19054
19185
|
if (this.atIndentedComment(it.start, map.indent)) {
|
|
19055
19186
|
const prev = map.items[map.items.length - 2];
|
|
19056
|
-
const end = (_a2 = prev
|
|
19187
|
+
const end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end;
|
|
19057
19188
|
if (Array.isArray(end)) {
|
|
19058
19189
|
Array.prototype.push.apply(end, it.start);
|
|
19059
19190
|
end.push(this.sourceToken);
|
|
@@ -19066,58 +19197,114 @@ var require_parser = __commonJS({
|
|
|
19066
19197
|
return;
|
|
19067
19198
|
}
|
|
19068
19199
|
if (this.indent >= map.indent) {
|
|
19069
|
-
const atNextItem = !this.onKeyLine && this.indent === map.indent &&
|
|
19200
|
+
const atNextItem = !this.onKeyLine && this.indent === map.indent && it.sep;
|
|
19201
|
+
let start = [];
|
|
19202
|
+
if (atNextItem && it.sep && !it.value) {
|
|
19203
|
+
const nl = [];
|
|
19204
|
+
for (let i = 0; i < it.sep.length; ++i) {
|
|
19205
|
+
const st = it.sep[i];
|
|
19206
|
+
switch (st.type) {
|
|
19207
|
+
case "newline":
|
|
19208
|
+
nl.push(i);
|
|
19209
|
+
break;
|
|
19210
|
+
case "space":
|
|
19211
|
+
break;
|
|
19212
|
+
case "comment":
|
|
19213
|
+
if (st.indent > map.indent)
|
|
19214
|
+
nl.length = 0;
|
|
19215
|
+
break;
|
|
19216
|
+
default:
|
|
19217
|
+
nl.length = 0;
|
|
19218
|
+
}
|
|
19219
|
+
}
|
|
19220
|
+
if (nl.length >= 2)
|
|
19221
|
+
start = it.sep.splice(nl[1]);
|
|
19222
|
+
}
|
|
19070
19223
|
switch (this.type) {
|
|
19071
19224
|
case "anchor":
|
|
19072
19225
|
case "tag":
|
|
19073
19226
|
if (atNextItem || it.value) {
|
|
19074
|
-
|
|
19227
|
+
start.push(this.sourceToken);
|
|
19228
|
+
map.items.push({ start });
|
|
19075
19229
|
this.onKeyLine = true;
|
|
19076
|
-
} else if (it.sep)
|
|
19230
|
+
} else if (it.sep) {
|
|
19077
19231
|
it.sep.push(this.sourceToken);
|
|
19078
|
-
else
|
|
19232
|
+
} else {
|
|
19079
19233
|
it.start.push(this.sourceToken);
|
|
19234
|
+
}
|
|
19080
19235
|
return;
|
|
19081
19236
|
case "explicit-key-ind":
|
|
19082
|
-
if (!it.sep && !includesToken(it.start, "explicit-key-ind"))
|
|
19237
|
+
if (!it.sep && !includesToken(it.start, "explicit-key-ind")) {
|
|
19083
19238
|
it.start.push(this.sourceToken);
|
|
19084
|
-
else if (atNextItem || it.value)
|
|
19085
|
-
|
|
19086
|
-
|
|
19239
|
+
} else if (atNextItem || it.value) {
|
|
19240
|
+
start.push(this.sourceToken);
|
|
19241
|
+
map.items.push({ start });
|
|
19242
|
+
} else {
|
|
19087
19243
|
this.stack.push({
|
|
19088
19244
|
type: "block-map",
|
|
19089
19245
|
offset: this.offset,
|
|
19090
19246
|
indent: this.indent,
|
|
19091
19247
|
items: [{ start: [this.sourceToken] }]
|
|
19092
19248
|
});
|
|
19249
|
+
}
|
|
19093
19250
|
this.onKeyLine = true;
|
|
19094
19251
|
return;
|
|
19095
19252
|
case "map-value-ind":
|
|
19096
|
-
if (
|
|
19097
|
-
|
|
19098
|
-
|
|
19099
|
-
|
|
19100
|
-
|
|
19101
|
-
|
|
19102
|
-
|
|
19103
|
-
|
|
19104
|
-
|
|
19105
|
-
|
|
19106
|
-
|
|
19107
|
-
|
|
19108
|
-
|
|
19109
|
-
|
|
19110
|
-
|
|
19111
|
-
|
|
19112
|
-
|
|
19113
|
-
|
|
19114
|
-
|
|
19115
|
-
|
|
19116
|
-
|
|
19117
|
-
|
|
19118
|
-
})
|
|
19119
|
-
|
|
19120
|
-
|
|
19253
|
+
if (includesToken(it.start, "explicit-key-ind")) {
|
|
19254
|
+
if (!it.sep) {
|
|
19255
|
+
if (includesToken(it.start, "newline")) {
|
|
19256
|
+
Object.assign(it, { key: null, sep: [this.sourceToken] });
|
|
19257
|
+
} else {
|
|
19258
|
+
const start2 = getFirstKeyStartProps(it.start);
|
|
19259
|
+
this.stack.push({
|
|
19260
|
+
type: "block-map",
|
|
19261
|
+
offset: this.offset,
|
|
19262
|
+
indent: this.indent,
|
|
19263
|
+
items: [{ start: start2, key: null, sep: [this.sourceToken] }]
|
|
19264
|
+
});
|
|
19265
|
+
}
|
|
19266
|
+
} else if (it.value) {
|
|
19267
|
+
map.items.push({ start: [], key: null, sep: [this.sourceToken] });
|
|
19268
|
+
} else if (includesToken(it.sep, "map-value-ind")) {
|
|
19269
|
+
this.stack.push({
|
|
19270
|
+
type: "block-map",
|
|
19271
|
+
offset: this.offset,
|
|
19272
|
+
indent: this.indent,
|
|
19273
|
+
items: [{ start, key: null, sep: [this.sourceToken] }]
|
|
19274
|
+
});
|
|
19275
|
+
} else if (isFlowToken(it.key) && !includesToken(it.sep, "newline")) {
|
|
19276
|
+
const start2 = getFirstKeyStartProps(it.start);
|
|
19277
|
+
const key = it.key;
|
|
19278
|
+
const sep = it.sep;
|
|
19279
|
+
sep.push(this.sourceToken);
|
|
19280
|
+
delete it.key, delete it.sep;
|
|
19281
|
+
this.stack.push({
|
|
19282
|
+
type: "block-map",
|
|
19283
|
+
offset: this.offset,
|
|
19284
|
+
indent: this.indent,
|
|
19285
|
+
items: [{ start: start2, key, sep }]
|
|
19286
|
+
});
|
|
19287
|
+
} else if (start.length > 0) {
|
|
19288
|
+
it.sep = it.sep.concat(start, this.sourceToken);
|
|
19289
|
+
} else {
|
|
19290
|
+
it.sep.push(this.sourceToken);
|
|
19291
|
+
}
|
|
19292
|
+
} else {
|
|
19293
|
+
if (!it.sep) {
|
|
19294
|
+
Object.assign(it, { key: null, sep: [this.sourceToken] });
|
|
19295
|
+
} else if (it.value || atNextItem) {
|
|
19296
|
+
map.items.push({ start, key: null, sep: [this.sourceToken] });
|
|
19297
|
+
} else if (includesToken(it.sep, "map-value-ind")) {
|
|
19298
|
+
this.stack.push({
|
|
19299
|
+
type: "block-map",
|
|
19300
|
+
offset: this.offset,
|
|
19301
|
+
indent: this.indent,
|
|
19302
|
+
items: [{ start: [], key: null, sep: [this.sourceToken] }]
|
|
19303
|
+
});
|
|
19304
|
+
} else {
|
|
19305
|
+
it.sep.push(this.sourceToken);
|
|
19306
|
+
}
|
|
19307
|
+
}
|
|
19121
19308
|
this.onKeyLine = true;
|
|
19122
19309
|
return;
|
|
19123
19310
|
case "alias":
|
|
@@ -19126,7 +19313,7 @@ var require_parser = __commonJS({
|
|
|
19126
19313
|
case "double-quoted-scalar": {
|
|
19127
19314
|
const fs3 = this.flowScalar(this.type);
|
|
19128
19315
|
if (atNextItem || it.value) {
|
|
19129
|
-
map.items.push({ start
|
|
19316
|
+
map.items.push({ start, key: fs3, sep: [] });
|
|
19130
19317
|
this.onKeyLine = true;
|
|
19131
19318
|
} else if (it.sep) {
|
|
19132
19319
|
this.stack.push(fs3);
|
|
@@ -19139,8 +19326,9 @@ var require_parser = __commonJS({
|
|
|
19139
19326
|
default: {
|
|
19140
19327
|
const bv = this.startBlockValue(map);
|
|
19141
19328
|
if (bv) {
|
|
19142
|
-
if (atNextItem && bv.type !== "block-seq" && includesToken(it.start, "explicit-key-ind"))
|
|
19143
|
-
map.items.push({ start
|
|
19329
|
+
if (atNextItem && bv.type !== "block-seq" && includesToken(it.start, "explicit-key-ind")) {
|
|
19330
|
+
map.items.push({ start });
|
|
19331
|
+
}
|
|
19144
19332
|
this.stack.push(bv);
|
|
19145
19333
|
return;
|
|
19146
19334
|
}
|
|
@@ -19158,8 +19346,8 @@ var require_parser = __commonJS({
|
|
|
19158
19346
|
if (it.value) {
|
|
19159
19347
|
const end = "end" in it.value ? it.value.end : void 0;
|
|
19160
19348
|
const last = Array.isArray(end) ? end[end.length - 1] : void 0;
|
|
19161
|
-
if ((last
|
|
19162
|
-
end
|
|
19349
|
+
if ((last == null ? void 0 : last.type) === "comment")
|
|
19350
|
+
end == null ? void 0 : end.push(this.sourceToken);
|
|
19163
19351
|
else
|
|
19164
19352
|
seq.items.push({ start: [this.sourceToken] });
|
|
19165
19353
|
} else
|
|
@@ -19172,7 +19360,7 @@ var require_parser = __commonJS({
|
|
|
19172
19360
|
else {
|
|
19173
19361
|
if (this.atIndentedComment(it.start, seq.indent)) {
|
|
19174
19362
|
const prev = seq.items[seq.items.length - 2];
|
|
19175
|
-
const end = (_a2 = prev
|
|
19363
|
+
const end = (_a2 = prev == null ? void 0 : prev.value) == null ? void 0 : _a2.end;
|
|
19176
19364
|
if (Array.isArray(end)) {
|
|
19177
19365
|
Array.prototype.push.apply(end, it.start);
|
|
19178
19366
|
end.push(this.sourceToken);
|
|
@@ -19272,7 +19460,7 @@ var require_parser = __commonJS({
|
|
|
19272
19460
|
}
|
|
19273
19461
|
} else {
|
|
19274
19462
|
const parent = this.peek(2);
|
|
19275
|
-
if (parent.type === "block-map" && (this.type === "map-value-ind" || this.type === "newline" && !parent.items[parent.items.length - 1].sep)) {
|
|
19463
|
+
if (parent.type === "block-map" && (this.type === "map-value-ind" && parent.indent === fc.indent || this.type === "newline" && !parent.items[parent.items.length - 1].sep)) {
|
|
19276
19464
|
yield* this.pop();
|
|
19277
19465
|
yield* this.step();
|
|
19278
19466
|
} else if (this.type === "map-value-ind" && parent.type !== "flow-collection") {
|
|
@@ -19430,7 +19618,7 @@ var require_public_api = __commonJS({
|
|
|
19430
19618
|
}
|
|
19431
19619
|
function parseAllDocuments(source, options2 = {}) {
|
|
19432
19620
|
const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options2);
|
|
19433
|
-
const parser$1 = new parser.Parser(lineCounter2
|
|
19621
|
+
const parser$1 = new parser.Parser(lineCounter2 == null ? void 0 : lineCounter2.addNewLine);
|
|
19434
19622
|
const composer$1 = new composer.Composer(options2);
|
|
19435
19623
|
const docs = Array.from(composer$1.compose(parser$1.parse(source)));
|
|
19436
19624
|
if (prettyErrors && lineCounter2)
|
|
@@ -19444,7 +19632,7 @@ var require_public_api = __commonJS({
|
|
|
19444
19632
|
}
|
|
19445
19633
|
function parseDocument2(source, options2 = {}) {
|
|
19446
19634
|
const { lineCounter: lineCounter2, prettyErrors } = parseOptions(options2);
|
|
19447
|
-
const parser$1 = new parser.Parser(lineCounter2
|
|
19635
|
+
const parser$1 = new parser.Parser(lineCounter2 == null ? void 0 : lineCounter2.addNewLine);
|
|
19448
19636
|
const composer$1 = new composer.Composer(options2);
|
|
19449
19637
|
let doc = null;
|
|
19450
19638
|
for (const _doc of composer$1.compose(parser$1.parse(source), true, source.length)) {
|
|
@@ -19494,7 +19682,7 @@ var require_public_api = __commonJS({
|
|
|
19494
19682
|
options2 = indent < 1 ? void 0 : indent > 8 ? { indent: 8 } : { indent };
|
|
19495
19683
|
}
|
|
19496
19684
|
if (value === void 0) {
|
|
19497
|
-
const { keepUndefined } = options2
|
|
19685
|
+
const { keepUndefined } = options2 ?? replacer ?? {};
|
|
19498
19686
|
if (!keepUndefined)
|
|
19499
19687
|
return void 0;
|
|
19500
19688
|
}
|
|
@@ -19521,7 +19709,6 @@ var require_dist3 = __commonJS({
|
|
|
19521
19709
|
var Scalar = require_Scalar();
|
|
19522
19710
|
var YAMLMap = require_YAMLMap();
|
|
19523
19711
|
var YAMLSeq = require_YAMLSeq();
|
|
19524
|
-
var options2 = require_options();
|
|
19525
19712
|
var cst = require_cst();
|
|
19526
19713
|
var lexer = require_lexer();
|
|
19527
19714
|
var lineCounter = require_line_counter();
|
|
@@ -19547,7 +19734,6 @@ var require_dist3 = __commonJS({
|
|
|
19547
19734
|
exports2.Scalar = Scalar.Scalar;
|
|
19548
19735
|
exports2.YAMLMap = YAMLMap.YAMLMap;
|
|
19549
19736
|
exports2.YAMLSeq = YAMLSeq.YAMLSeq;
|
|
19550
|
-
exports2.defaultOptions = options2.defaultOptions;
|
|
19551
19737
|
exports2.CST = cst;
|
|
19552
19738
|
exports2.Lexer = lexer.Lexer;
|
|
19553
19739
|
exports2.LineCounter = lineCounter.LineCounter;
|
|
@@ -19557,6 +19743,7 @@ var require_dist3 = __commonJS({
|
|
|
19557
19743
|
exports2.parseDocument = publicApi.parseDocument;
|
|
19558
19744
|
exports2.stringify = publicApi.stringify;
|
|
19559
19745
|
exports2.visit = visit.visit;
|
|
19746
|
+
exports2.visitAsync = visit.visitAsync;
|
|
19560
19747
|
}
|
|
19561
19748
|
});
|
|
19562
19749
|
|
|
@@ -27120,18 +27307,17 @@ var require_config = __commonJS({
|
|
|
27120
27307
|
};
|
|
27121
27308
|
exports2.destinationPropertyId = Object.keys(exports2.DestinationAttributeProperty);
|
|
27122
27309
|
function hasDestinationAttrib(destinationProperty, destinationAttributeProperty, destinationAttribs = {}) {
|
|
27123
|
-
var _a2
|
|
27124
|
-
return (
|
|
27310
|
+
var _a2;
|
|
27311
|
+
return (destinationAttribs && ((_a2 = destinationAttribs[destinationProperty]) == null ? void 0 : _a2.includes(destinationAttributeProperty))) ?? false;
|
|
27125
27312
|
}
|
|
27126
27313
|
exports2.hasDestinationAttrib = hasDestinationAttrib;
|
|
27127
27314
|
function hasFullUrlDestAttribute(destinationAttribs) {
|
|
27128
|
-
var _a2
|
|
27129
|
-
return (
|
|
27315
|
+
var _a2;
|
|
27316
|
+
return (destinationAttribs && ((_a2 = destinationAttribs["WebIDEAdditionalData"]) == null ? void 0 : _a2.includes(exports2.DestinationAttributeProperty.FULL_URL))) ?? false;
|
|
27130
27317
|
}
|
|
27131
27318
|
exports2.hasFullUrlDestAttribute = hasFullUrlDestAttribute;
|
|
27132
27319
|
function hasHTML5DynamicDestinationAttrib(destinationAttribs) {
|
|
27133
|
-
|
|
27134
|
-
return (_a2 = destinationAttribs && destinationAttribs["HTML5.DynamicDestination"] === "true") != null ? _a2 : false;
|
|
27320
|
+
return (destinationAttribs && destinationAttribs["HTML5.DynamicDestination"] === "true") ?? false;
|
|
27135
27321
|
}
|
|
27136
27322
|
exports2.hasHTML5DynamicDestinationAttrib = hasHTML5DynamicDestinationAttrib;
|
|
27137
27323
|
}
|
|
@@ -45514,14 +45700,14 @@ var require_destination = __commonJS({
|
|
|
45514
45700
|
}
|
|
45515
45701
|
exports2.listDestinations = listDestinations;
|
|
45516
45702
|
async function replaceUrlForAppStudio(systemConfig, destinationName, destinationInstance) {
|
|
45517
|
-
var _a2
|
|
45703
|
+
var _a2;
|
|
45518
45704
|
systemConfig.originalUrl = systemConfig.url;
|
|
45519
45705
|
if (destinationName && destinationInstance) {
|
|
45520
45706
|
systemConfig.url = `https://${destinationName}${DEST}`;
|
|
45521
45707
|
systemConfig.basDestinationInstanceCred = await getAuthHeaderForInstanceBasedDest(destinationInstance);
|
|
45522
45708
|
} else {
|
|
45523
45709
|
systemConfig.url = (0, ux_common_utils_1.getAppStudioBaseURL)();
|
|
45524
|
-
systemConfig.service = `/destinations/${destinationName
|
|
45710
|
+
systemConfig.service = `/destinations/${destinationName ?? systemConfig.destination}${((_a2 = systemConfig.service) == null ? void 0 : _a2.replace(/^\/?/, "/")) ?? ""}`;
|
|
45525
45711
|
}
|
|
45526
45712
|
delete systemConfig.scp;
|
|
45527
45713
|
delete systemConfig.client;
|
|
@@ -45673,11 +45859,11 @@ var require_connection = __commonJS({
|
|
|
45673
45859
|
return isHtmlResponse(response) && typeof response.data === "string" && !!response.data.match(/log[io]n/i);
|
|
45674
45860
|
}
|
|
45675
45861
|
function getContentType(contentTypeHeader, responseData) {
|
|
45676
|
-
var _a2
|
|
45862
|
+
var _a2;
|
|
45677
45863
|
if (contentTypeHeader) {
|
|
45678
45864
|
return contentTypeHeader.toLowerCase();
|
|
45679
45865
|
} else if (typeof responseData === "string") {
|
|
45680
|
-
return (
|
|
45866
|
+
return ((_a2 = (0, detect_content_type_1.default)(Buffer.from(responseData))) == null ? void 0 : _a2.toLowerCase()) ?? "";
|
|
45681
45867
|
} else {
|
|
45682
45868
|
return "";
|
|
45683
45869
|
}
|
|
@@ -47719,6 +47905,7 @@ var require_message = __commonJS({
|
|
|
47719
47905
|
}
|
|
47720
47906
|
exports2.prettyPrintMessage = prettyPrintMessage;
|
|
47721
47907
|
function printUrl(longtextUrl, frontendUrl, log3) {
|
|
47908
|
+
log3.info("Click this link for more information:");
|
|
47722
47909
|
const fullLongTextUrl = frontendUrl.concat(longtextUrl).replace(/'/g, "%27");
|
|
47723
47910
|
log3.info(fullLongTextUrl);
|
|
47724
47911
|
}
|
|
@@ -49000,8 +49187,8 @@ var require_oDataClient = __commonJS({
|
|
|
49000
49187
|
debug2(res);
|
|
49001
49188
|
},
|
|
49002
49189
|
error: (debug2, error3) => {
|
|
49003
|
-
var _a2, _b, _c, _d, _e
|
|
49004
|
-
debug2(`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((
|
|
49190
|
+
var _a2, _b, _c, _d, _e;
|
|
49191
|
+
debug2(`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) ?? {})}
|
|
49005
49192
|
`);
|
|
49006
49193
|
debug2(error3.response);
|
|
49007
49194
|
debug2(error3);
|
|
@@ -49131,8 +49318,7 @@ var require_ui5AbapRepository = __commonJS({
|
|
|
49131
49318
|
}
|
|
49132
49319
|
var Ui5AbapRepository2 = class extends oDataClient_1.ODataClient {
|
|
49133
49320
|
constructor({ system, credentials = void 0, log: log3 = console, connection = void 0, ignoreCertError, postConnectionCallback }) {
|
|
49134
|
-
|
|
49135
|
-
system.service = (_a2 = system.service) != null ? _a2 : constants_1.DEFAULT_SERVICE_PATH;
|
|
49321
|
+
system.service = system.service ?? constants_1.DEFAULT_SERVICE_PATH;
|
|
49136
49322
|
super({ system, credentials, log: log3, connection, ignoreCertError, postConnectionCallback });
|
|
49137
49323
|
}
|
|
49138
49324
|
async getInfo(app) {
|
|
@@ -50030,12 +50216,12 @@ var require_system = __commonJS({
|
|
|
50030
50216
|
const systems = {};
|
|
50031
50217
|
const destinations = await (0, connection_1.listDestinations)();
|
|
50032
50218
|
Object.values(destinations).sort((a, b) => a.Name.localeCompare(b.Name, void 0, { numeric: true, caseFirst: "lower" })).forEach((destination) => {
|
|
50033
|
-
var _a2
|
|
50219
|
+
var _a2;
|
|
50034
50220
|
systems[destination.Name] = new sapSystem_1.SapSystem(destination.Name, {
|
|
50035
50221
|
url: destination.Host,
|
|
50036
50222
|
destination: destination.Name,
|
|
50037
50223
|
destinationAuthType: destination.Authentication,
|
|
50038
|
-
scp: (
|
|
50224
|
+
scp: ((_a2 = destination.WebIDEUsage) == null ? void 0 : _a2.includes("abap_cloud")) ?? false,
|
|
50039
50225
|
destinationAttributes: Object.assign({}, destination),
|
|
50040
50226
|
client: destination["sap-client"]
|
|
50041
50227
|
});
|
|
@@ -50685,15 +50871,15 @@ var require_common7 = __commonJS({
|
|
|
50685
50871
|
};
|
|
50686
50872
|
var Je = (c, n, t, o) => {
|
|
50687
50873
|
if (n && typeof n == "object" || typeof n == "function")
|
|
50688
|
-
for (let
|
|
50689
|
-
!O.call(c,
|
|
50874
|
+
for (let s of Ne(n))
|
|
50875
|
+
!O.call(c, s) && (t || s !== "default") && P(c, s, { get: () => n[s], enumerable: !(o = Ye(n, s)) || o.enumerable });
|
|
50690
50876
|
return c;
|
|
50691
50877
|
};
|
|
50692
50878
|
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);
|
|
50693
50879
|
var Ht = {};
|
|
50694
50880
|
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: () => gt2, 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 });
|
|
50695
|
-
var T = ((
|
|
50696
|
-
var C = ((
|
|
50881
|
+
var T = ((r) => (r.ObjectPage = "ObjectPage", r.ListReport = "ListReport", r.OverviewPage = "OverviewPage", r.CustomPage = "CustomPage", r.AnalyticalListPage = "AnalyticalListPage", r))(T || {});
|
|
50882
|
+
var C = ((r) => (r.ObjectPage = "ObjectPage", r.ListReport = "ListReport", r.CustomPage = "CustomPage", r.FPMCustomPage = "FPMCustomPage", r.AnalyticalListPage = "AnalyticalListPage", r))(C || {});
|
|
50697
50883
|
var Ze = d(d({}, T), C);
|
|
50698
50884
|
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"]]);
|
|
50699
50885
|
var L = ((t) => (t.v2 = "v2", t.v4 = "v4", t))(L || {});
|
|
@@ -50704,20 +50890,20 @@ var require_common7 = __commonJS({
|
|
|
50704
50890
|
var v = ((t) => (t.flex = "flex", t.manifest = "manifest", t))(v || {});
|
|
50705
50891
|
var I = ((t) => (t.Primary = "primary", t.Secondary = "secondary", t))(I || {});
|
|
50706
50892
|
var U = ((o) => (o.Section = "Section", o.SubSection = "SubSection", o.HeaderSection = "HeaderSection", o))(U || {});
|
|
50707
|
-
var w = ((
|
|
50893
|
+
var w = ((s) => (s.Manifest = "Manifest", s.FlexChange = "FlexChange", s.Annotation = "Annotation", s.XMLProperty = "XMLProperty", s))(w || {});
|
|
50708
50894
|
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 || {});
|
|
50709
50895
|
var _45 = ((t) => (t.LineItem = "LineItem", t.Chart = "Chart", t))(_45 || {});
|
|
50710
|
-
var k = ((
|
|
50896
|
+
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 || {});
|
|
50711
50897
|
var B = ((n) => (n.App = "app.json", n))(B || {});
|
|
50712
50898
|
var et = "Facet ID: ";
|
|
50713
50899
|
var tt = "Action ID: ";
|
|
50714
50900
|
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 || {});
|
|
50715
50901
|
var ot = "^{[A-Za-z0-9{}&$!@#%? _|,<>'()[\\]\\/:=.]+}$";
|
|
50716
|
-
var H = ((
|
|
50902
|
+
var H = ((r) => (r.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", r.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", r.TreeTableColumnsExtension = "TreeTableColumnsExtension", r.GridTableColumnsExtension = "GridTableColumnsExtension", r.ResponsiveTableCellsExtension = "ResponsiveTableCellsExtension", r))(H || {});
|
|
50717
50903
|
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 || {});
|
|
50718
|
-
var X = ((
|
|
50719
|
-
var Q = ((
|
|
50720
|
-
var K = ((
|
|
50904
|
+
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 || {});
|
|
50905
|
+
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 || {});
|
|
50906
|
+
var K = ((r) => (r.id = "ID", r.value = "Value", r.action = "Action", r.target = "Target", r.key = "Key", r))(K || {});
|
|
50721
50907
|
var at = "webapp/localService/metadata.xml";
|
|
50722
50908
|
var nt = "webapp/manifest.json";
|
|
50723
50909
|
var it = "/@com.sap.vocabularies";
|
|
@@ -50729,13 +50915,13 @@ var require_common7 = __commonJS({
|
|
|
50729
50915
|
var gt2 = "/quickVariantSelectionX";
|
|
50730
50916
|
var mt = "/filterSettings/dateSettings";
|
|
50731
50917
|
var bt = ".fragment.";
|
|
50732
|
-
var Y = ((
|
|
50918
|
+
var Y = ((s) => (s.Control = "Control", s.Property = "Property", s.Aggregation = "Aggregation", s.Event = "Event", s))(Y || {});
|
|
50733
50919
|
var N = ((n) => (n.restricted = "restricted", n))(N || {});
|
|
50734
50920
|
var z = ((o) => (o.Top = "Top", o.Middle = "Middle", o.Bottom = "Bottom", o))(z || {});
|
|
50735
50921
|
var q = ((t) => (t.persistence = "persistence", t.discovery = "discovery", t))(q || {});
|
|
50736
50922
|
var J = ((o) => (o.BeginColumnPages = "beginColumnPages", o.MidColumnPages = "midColumnPages", o.EndColumnPages = "endColumnPages", o))(J || {});
|
|
50737
50923
|
var $ = ((t) => (t.OData = "OData", t.ODataAnnotation = "ODataAnnotation", t))($ || {});
|
|
50738
|
-
var Z = ((
|
|
50924
|
+
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 || {});
|
|
50739
50925
|
var St = `${"sap.ui.generic.app"}/settings`;
|
|
50740
50926
|
var xt = "sap.fe.templates.RootContainer.view.Fcl";
|
|
50741
50927
|
var ut = "appRootView";
|
|
@@ -50753,7 +50939,7 @@ var require_common7 = __commonJS({
|
|
|
50753
50939
|
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 || {});
|
|
50754
50940
|
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" };
|
|
50755
50941
|
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 || {});
|
|
50756
|
-
var se = ((
|
|
50942
|
+
var se = ((r) => (r.average = "average", r.max = "max", r.min = "min", r.sum = "sum", r.count = "$count", r))(se || {});
|
|
50757
50943
|
var pe = ((o) => (o.standard = "standard", o.bar = "bar", o.carousel = "carousel", o))(pe || {});
|
|
50758
50944
|
var ce = ((t) => (t.extended = "extended", t.condensed = "condensed", t))(ce || {});
|
|
50759
50945
|
var le = ((t) => (t.ascending = "ascending", t.descending = "descending", t))(le || {});
|
|
@@ -50761,17 +50947,17 @@ var require_common7 = __commonJS({
|
|
|
50761
50947
|
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 || {});
|
|
50762
50948
|
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 || {});
|
|
50763
50949
|
var Se = ((n) => (n.XML = "XML", n))(Se || {});
|
|
50764
|
-
var xe = ((
|
|
50765
|
-
var ue = ((
|
|
50950
|
+
var xe = ((s) => (s.ResponsiveTable = "ResponsiveTable", s.GridTable = "GridTable", s.AnalyticalTable = "AnalyticalTable", s.TreeTable = "TreeTable", s))(xe || {});
|
|
50951
|
+
var ue = ((s) => (s.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", s.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", s.TreeTableColumnsExtension = "TreeTableColumnsExtension", s.GridTableColumnsExtension = "GridTableColumnsExtension", s))(ue || {});
|
|
50766
50952
|
var Pe = ((n) => (n.extension = "extension", n))(Pe || {});
|
|
50767
50953
|
var de = ((n) => (n.GENERICPROPERTY = "GENERICPROPERTY", n))(de || {});
|
|
50768
50954
|
var Ae = ((o) => (o.charttable = "charttable", o.chart = "chart", o.table = "table", o))(Ae || {});
|
|
50769
50955
|
var Te = ((t) => (t.visual = "visual", t.compact = "compact", t))(Te || {});
|
|
50770
50956
|
var Ce = ((o) => (o.always = "always", o.never = "never", o.ifAnyFilterExist = "ifAnyFilterExist", o))(Ce || {});
|
|
50771
|
-
var fe = ((
|
|
50957
|
+
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 || {});
|
|
50772
50958
|
var Ee = ((o) => (o.AfterFacet = "AfterFacet", o.BeforeFacet = "BeforeFacet", o.ReplaceFacet = "ReplaceFacet", o))(Ee || {});
|
|
50773
50959
|
var ye = ((n) => (n.XML = "XML", n))(ye || {});
|
|
50774
|
-
var Ve = ((
|
|
50960
|
+
var Ve = ((o) => (o.inline = "inline", o.creationRows = "creationRows", o.creationRowsHiddenInEditMode = "creationRowsHiddenInEditMode", o))(Ve || {});
|
|
50775
50961
|
var Ct = "sap.suite.ui.generic.template";
|
|
50776
50962
|
var ft = "sap.suite.ui.generic.template.ObjectPage";
|
|
50777
50963
|
var Et = "sap.suite.ui.generic.template.ListReport";
|
|
@@ -50785,7 +50971,7 @@ var require_common7 = __commonJS({
|
|
|
50785
50971
|
var E = {};
|
|
50786
50972
|
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 });
|
|
50787
50973
|
var Le = ((t) => (t.After = "After", t.Before = "Before", t))(Le || {});
|
|
50788
|
-
var je = ((
|
|
50974
|
+
var je = ((s) => (s.Multi = "Multi", s.None = "None", s.Single = "Single", s.Auto = "Auto", s))(je || {});
|
|
50789
50975
|
var Fe = ((o) => (o.ResponsiveTable = "ResponsiveTable", o.GridTable = "GridTable", o.AnalyticalTable = "AnalyticalTable", o))(Fe || {});
|
|
50790
50976
|
var he = ((o) => (o.NewPage = "NewPage", o.Inline = "Inline", o.CreationRow = "CreationRow", o))(he || {});
|
|
50791
50977
|
var Re = ((o) => (o.Disabled = "Disabled", o.Enabled = "Enabled", o.Auto = "Auto", o))(Re || {});
|
|
@@ -50869,46 +51055,46 @@ var require_v2 = __commonJS({
|
|
|
50869
51055
|
var F = Object.getOwnPropertyNames;
|
|
50870
51056
|
var j = Object.prototype.hasOwnProperty;
|
|
50871
51057
|
var W = (s) => p(s, "__esModule", { value: true });
|
|
50872
|
-
var w = (s,
|
|
50873
|
-
for (var a in
|
|
50874
|
-
p(s, a, { get:
|
|
50875
|
-
};
|
|
50876
|
-
var M = (s,
|
|
50877
|
-
if (
|
|
50878
|
-
for (let r of F(
|
|
50879
|
-
!j.call(s, r) && (a || r !== "default") && p(s, r, { get: () =>
|
|
51058
|
+
var w = (s, i) => {
|
|
51059
|
+
for (var a in i)
|
|
51060
|
+
p(s, a, { get: i[a], enumerable: true });
|
|
51061
|
+
};
|
|
51062
|
+
var M = (s, i, a, n) => {
|
|
51063
|
+
if (i && typeof i == "object" || typeof i == "function")
|
|
51064
|
+
for (let r of F(i))
|
|
51065
|
+
!j.call(s, r) && (a || r !== "default") && p(s, r, { get: () => i[r], enumerable: !(n = h(i, r)) || n.enumerable });
|
|
50880
51066
|
return s;
|
|
50881
51067
|
};
|
|
50882
|
-
var B = ((s) => (
|
|
51068
|
+
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);
|
|
50883
51069
|
var Z = {};
|
|
50884
|
-
w(Z, { CardSettingsType: () =>
|
|
50885
|
-
var b = ((
|
|
50886
|
-
var
|
|
51070
|
+
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 });
|
|
51071
|
+
var b = ((n) => (n.cardBubble = "cardBubble", n.cardchartsline = "cardchartsline", n.cardchartsdonut = "cardchartsdonut", n))(b || {});
|
|
51072
|
+
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 || {});
|
|
50887
51073
|
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" };
|
|
50888
|
-
var
|
|
51074
|
+
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 || {});
|
|
50889
51075
|
var g = ((S) => (S.average = "average", S.max = "max", S.min = "min", S.sum = "sum", S.count = "$count", S))(g || {});
|
|
50890
|
-
var T = ((
|
|
51076
|
+
var T = ((n) => (n.standard = "standard", n.bar = "bar", n.carousel = "carousel", n))(T || {});
|
|
50891
51077
|
var x = ((a) => (a.extended = "extended", a.condensed = "condensed", a))(x || {});
|
|
50892
51078
|
var E = ((a) => (a.ascending = "ascending", a.descending = "descending", a))(E || {});
|
|
50893
51079
|
var A = ((a) => (a.standard = "standard", a.carousel = "carousel", a))(A || {});
|
|
50894
51080
|
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 || {});
|
|
50895
51081
|
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 || {});
|
|
50896
|
-
var f = ((
|
|
51082
|
+
var f = ((i) => (i.XML = "XML", i))(f || {});
|
|
50897
51083
|
var C = ((r) => (r.ResponsiveTable = "ResponsiveTable", r.GridTable = "GridTable", r.AnalyticalTable = "AnalyticalTable", r.TreeTable = "TreeTable", r))(C || {});
|
|
50898
51084
|
var O = ((r) => (r.ResponsiveTableColumnsExtension = "ResponsiveTableColumnsExtension", r.AnalyticalTableColumnsExtension = "AnalyticalTableColumnsExtension", r.TreeTableColumnsExtension = "TreeTableColumnsExtension", r.GridTableColumnsExtension = "GridTableColumnsExtension", r))(O || {});
|
|
50899
|
-
var
|
|
50900
|
-
var
|
|
50901
|
-
var y = ((
|
|
51085
|
+
var R = ((i) => (i.extension = "extension", i))(R || {});
|
|
51086
|
+
var L = ((i) => (i.GENERICPROPERTY = "GENERICPROPERTY", i))(L || {});
|
|
51087
|
+
var y = ((n) => (n.charttable = "charttable", n.chart = "chart", n.table = "table", n))(y || {});
|
|
50902
51088
|
var v = ((a) => (a.visual = "visual", a.compact = "compact", a))(v || {});
|
|
50903
|
-
var U = ((
|
|
50904
|
-
var
|
|
50905
|
-
var
|
|
50906
|
-
var _45 = ((
|
|
50907
|
-
var N = ((n) => (n.inline = "inline", n))(N || {});
|
|
51089
|
+
var U = ((n) => (n.always = "always", n.never = "never", n.ifAnyFilterExist = "ifAnyFilterExist", n))(U || {});
|
|
51090
|
+
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 || {});
|
|
51091
|
+
var V = ((n) => (n.AfterFacet = "AfterFacet", n.BeforeFacet = "BeforeFacet", n.ReplaceFacet = "ReplaceFacet", n))(V || {});
|
|
51092
|
+
var _45 = ((i) => (i.XML = "XML", i))(_45 || {});
|
|
51093
|
+
var N = ((n) => (n.inline = "inline", n.creationRows = "creationRows", n.creationRowsHiddenInEditMode = "creationRowsHiddenInEditMode", n))(N || {});
|
|
50908
51094
|
var X = "sap.suite.ui.generic.template";
|
|
50909
|
-
var
|
|
50910
|
-
var
|
|
50911
|
-
var
|
|
51095
|
+
var H = "sap.suite.ui.generic.template.ObjectPage";
|
|
51096
|
+
var K = "sap.suite.ui.generic.template.ListReport";
|
|
51097
|
+
var G = "sap.suite.ui.generic.template.AnalyticalListPage";
|
|
50912
51098
|
var Y = "sap.ui.viewExtensions";
|
|
50913
51099
|
var z = "sap.ui.controllerExtensions";
|
|
50914
51100
|
var q = "sap.suite.ui.generic.template.ObjectPage.view.Details";
|
|
@@ -50981,9 +51167,13 @@ var require_dist6 = __commonJS({
|
|
|
50981
51167
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
50982
51168
|
if (k2 === void 0)
|
|
50983
51169
|
k2 = k;
|
|
50984
|
-
Object.
|
|
50985
|
-
|
|
50986
|
-
|
|
51170
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
51171
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
51172
|
+
desc = { enumerable: true, get: function() {
|
|
51173
|
+
return m[k];
|
|
51174
|
+
} };
|
|
51175
|
+
}
|
|
51176
|
+
Object.defineProperty(o, k2, desc);
|
|
50987
51177
|
} : function(o, m, k, k2) {
|
|
50988
51178
|
if (k2 === void 0)
|
|
50989
51179
|
k2 = k;
|
|
@@ -51412,13 +51602,8 @@ var require_EventName = __commonJS({
|
|
|
51412
51602
|
EventName3["APP_INFO_COMMAND_STARTED"] = "APP_INFO_COMMAND_STARTED";
|
|
51413
51603
|
EventName3["APP_INFO_LINK_CLICKED"] = "APP_INFO_LINK_CLICKED";
|
|
51414
51604
|
EventName3["APP_INFO_STARTUP_TIME"] = "APP_INFO_STARTUP_TIME";
|
|
51415
|
-
EventName3["
|
|
51416
|
-
EventName3["
|
|
51417
|
-
EventName3["SRV_MODELER_PANEL_LOAD"] = "SRV_MODELER_PANEL_LOAD";
|
|
51418
|
-
EventName3["SRV_MODELER_BACKEND_LOAD"] = "SRV_MODELER_BACKEND_LOAD";
|
|
51419
|
-
EventName3["SRV_MODELER_ODATA_VERSION"] = "SRV_MODELER_ODATA_VERSION";
|
|
51420
|
-
EventName3["ANNOTATION_FILE_PANEL_LOAD"] = "ANNOTATION_FILE_PANEL_LOAD";
|
|
51421
|
-
EventName3["ANNOTATION_FILE_BACKEND_LOAD"] = "ANNOTATION_FILE_BACKEND_LOAD";
|
|
51605
|
+
EventName3["SERVICE_MODELER_EVENT"] = "SERVICE_MODELER_EVENT";
|
|
51606
|
+
EventName3["ANNOTATION_FILE_MANAGER_EVENT"] = "ANNOTATION_FILE_MANAGER_EVENT";
|
|
51422
51607
|
EventName3["ANNOTATION_LSP_XML_LOAD"] = "ANNOTATION_LSP_XML_LOAD";
|
|
51423
51608
|
EventName3["ANNOTATION_LSP_USAGE_TERM"] = "ANNOTATION_LSP_USAGE_TERM";
|
|
51424
51609
|
EventName3["ANNOTATION_LSP_CODE_COMPLETION"] = "ANNOTATION_LSP_CODE_COMPLETION";
|
|
@@ -63085,7 +63270,7 @@ var require_package5 = __commonJS({
|
|
|
63085
63270
|
"../lib/telemetry/dist/package.json"(exports2, module2) {
|
|
63086
63271
|
module2.exports = {
|
|
63087
63272
|
name: "@sap/ux-telemetry",
|
|
63088
|
-
version: "1.9.
|
|
63273
|
+
version: "1.9.5",
|
|
63089
63274
|
description: "SAP Fiori tools telemetry library",
|
|
63090
63275
|
main: "dist/src/index.js",
|
|
63091
63276
|
author: "SAP SE",
|
|
@@ -63110,14 +63295,14 @@ var require_package5 = __commonJS({
|
|
|
63110
63295
|
},
|
|
63111
63296
|
dependencies: {
|
|
63112
63297
|
"@sap-ux/store": "0.3.8",
|
|
63113
|
-
"@sap/ux-cds": "1.9.
|
|
63114
|
-
"@sap/ux-common-utils": "1.9.
|
|
63115
|
-
"@sap/ux-feature-toggle": "1.9.
|
|
63116
|
-
"@sap/ux-project-access": "1.9.
|
|
63298
|
+
"@sap/ux-cds": "1.9.5",
|
|
63299
|
+
"@sap/ux-common-utils": "1.9.5",
|
|
63300
|
+
"@sap/ux-feature-toggle": "1.9.5",
|
|
63301
|
+
"@sap/ux-project-access": "1.9.5",
|
|
63117
63302
|
applicationinsights: "1.4.1",
|
|
63118
63303
|
axios: "0.26.0",
|
|
63119
63304
|
"performance-now": "2.1.0",
|
|
63120
|
-
yaml: "2.
|
|
63305
|
+
yaml: "2.2.2"
|
|
63121
63306
|
},
|
|
63122
63307
|
devDependencies: {
|
|
63123
63308
|
memfs: "3.4.13",
|
|
@@ -66653,11 +66838,11 @@ var require_webapp2 = __commonJS({
|
|
|
66653
66838
|
var yaml = __importStar(require_Yaml());
|
|
66654
66839
|
var project_spec_1 = require_dist7();
|
|
66655
66840
|
async function getUi5CustomWebappPath(root) {
|
|
66656
|
-
var _a2, _b, _c, _d
|
|
66841
|
+
var _a2, _b, _c, _d;
|
|
66657
66842
|
let webappPath = project_spec_1.DirName.Webapp;
|
|
66658
66843
|
try {
|
|
66659
66844
|
const yamlContent = await (0, file_1.readFile)((0, path_1.join)(root, project_spec_1.FileName.Ui5Yaml));
|
|
66660
|
-
webappPath = (
|
|
66845
|
+
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;
|
|
66661
66846
|
} catch {
|
|
66662
66847
|
}
|
|
66663
66848
|
return webappPath;
|
|
@@ -70357,7 +70542,8 @@ var require_constants5 = __commonJS({
|
|
|
70357
70542
|
Tsconfig: "tsconfig.json",
|
|
70358
70543
|
Ui5Yaml: "ui5.yaml",
|
|
70359
70544
|
Ui5LocalYaml: "ui5-local.yaml",
|
|
70360
|
-
Ui5MockYaml: "ui5-mock.yaml"
|
|
70545
|
+
Ui5MockYaml: "ui5-mock.yaml",
|
|
70546
|
+
UI5DeployYaml: "ui5-deploy.yaml"
|
|
70361
70547
|
};
|
|
70362
70548
|
}
|
|
70363
70549
|
});
|
|
@@ -72330,9 +72516,9 @@ var require_merge = __commonJS({
|
|
|
72330
72516
|
}
|
|
72331
72517
|
});
|
|
72332
72518
|
|
|
72333
|
-
// ../../node_modules/@sap-ux/
|
|
72519
|
+
// ../../node_modules/@sap-ux/yaml/dist/errors/yaml-error.js
|
|
72334
72520
|
var require_yaml_error = __commonJS({
|
|
72335
|
-
"../../node_modules/@sap-ux/
|
|
72521
|
+
"../../node_modules/@sap-ux/yaml/dist/errors/yaml-error.js"(exports2) {
|
|
72336
72522
|
"use strict";
|
|
72337
72523
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
72338
72524
|
exports2.YAMLError = void 0;
|
|
@@ -72347,9 +72533,9 @@ var require_yaml_error = __commonJS({
|
|
|
72347
72533
|
}
|
|
72348
72534
|
});
|
|
72349
72535
|
|
|
72350
|
-
// ../../node_modules/@sap-ux/
|
|
72536
|
+
// ../../node_modules/@sap-ux/yaml/dist/errors/index.js
|
|
72351
72537
|
var require_errors2 = __commonJS({
|
|
72352
|
-
"../../node_modules/@sap-ux/
|
|
72538
|
+
"../../node_modules/@sap-ux/yaml/dist/errors/index.js"(exports2) {
|
|
72353
72539
|
"use strict";
|
|
72354
72540
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
72355
72541
|
exports2.YAMLError = exports2.errorTemplate = exports2.errorCode = void 0;
|
|
@@ -72386,9 +72572,9 @@ var require_errors2 = __commonJS({
|
|
|
72386
72572
|
}
|
|
72387
72573
|
});
|
|
72388
72574
|
|
|
72389
|
-
// ../../node_modules/@sap-ux/
|
|
72575
|
+
// ../../node_modules/@sap-ux/yaml/dist/texts/index.js
|
|
72390
72576
|
var require_texts = __commonJS({
|
|
72391
|
-
"../../node_modules/@sap-ux/
|
|
72577
|
+
"../../node_modules/@sap-ux/yaml/dist/texts/index.js"(exports2) {
|
|
72392
72578
|
"use strict";
|
|
72393
72579
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
72394
72580
|
exports2.interpolate = void 0;
|
|
@@ -72407,9 +72593,9 @@ var require_texts = __commonJS({
|
|
|
72407
72593
|
}
|
|
72408
72594
|
});
|
|
72409
72595
|
|
|
72410
|
-
// ../../node_modules/@sap-ux/
|
|
72596
|
+
// ../../node_modules/@sap-ux/yaml/dist/yaml-document.js
|
|
72411
72597
|
var require_yaml_document = __commonJS({
|
|
72412
|
-
"../../node_modules/@sap-ux/
|
|
72598
|
+
"../../node_modules/@sap-ux/yaml/dist/yaml-document.js"(exports2) {
|
|
72413
72599
|
"use strict";
|
|
72414
72600
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
72415
72601
|
if (k2 === void 0)
|
|
@@ -72643,9 +72829,9 @@ var require_yaml_document = __commonJS({
|
|
|
72643
72829
|
}
|
|
72644
72830
|
});
|
|
72645
72831
|
|
|
72646
|
-
// ../../node_modules/@sap-ux/
|
|
72832
|
+
// ../../node_modules/@sap-ux/yaml/dist/index.js
|
|
72647
72833
|
var require_dist9 = __commonJS({
|
|
72648
|
-
"../../node_modules/@sap-ux/
|
|
72834
|
+
"../../node_modules/@sap-ux/yaml/dist/index.js"(exports2) {
|
|
72649
72835
|
"use strict";
|
|
72650
72836
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
72651
72837
|
exports2.YAMLError = exports2.errorCode = exports2.YAMLMap = exports2.YAMLSeq = exports2.YamlDocument = void 0;
|
|
@@ -72670,9 +72856,9 @@ var require_dist9 = __commonJS({
|
|
|
72670
72856
|
}
|
|
72671
72857
|
});
|
|
72672
72858
|
|
|
72673
|
-
// ../../node_modules/@sap-ux/
|
|
72859
|
+
// ../../node_modules/@sap-ux/ui5-config/dist/middlewares.js
|
|
72674
72860
|
var require_middlewares = __commonJS({
|
|
72675
|
-
"../../node_modules/@sap-ux/
|
|
72861
|
+
"../../node_modules/@sap-ux/ui5-config/dist/middlewares.js"(exports2) {
|
|
72676
72862
|
"use strict";
|
|
72677
72863
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
72678
72864
|
exports2.getMockServerMiddlewareConfig = exports2.getFioriToolsProxyMiddlewareConfig = exports2.getAppReloadMiddlewareConfig = void 0;
|
|
@@ -72746,9 +72932,9 @@ var require_middlewares = __commonJS({
|
|
|
72746
72932
|
}
|
|
72747
72933
|
});
|
|
72748
72934
|
|
|
72749
|
-
// ../../node_modules/@sap-ux/
|
|
72935
|
+
// ../../node_modules/@sap-ux/ui5-config/dist/ui5config.js
|
|
72750
72936
|
var require_ui5config = __commonJS({
|
|
72751
|
-
"../../node_modules/@sap-ux/
|
|
72937
|
+
"../../node_modules/@sap-ux/ui5-config/dist/ui5config.js"(exports2) {
|
|
72752
72938
|
"use strict";
|
|
72753
72939
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
72754
72940
|
function adopt(value) {
|
|
@@ -72950,9 +73136,9 @@ var require_ui5config = __commonJS({
|
|
|
72950
73136
|
}
|
|
72951
73137
|
});
|
|
72952
73138
|
|
|
72953
|
-
// ../../node_modules/@sap-ux/
|
|
73139
|
+
// ../../node_modules/@sap-ux/ui5-config/dist/index.js
|
|
72954
73140
|
var require_dist10 = __commonJS({
|
|
72955
|
-
"../../node_modules/@sap-ux/
|
|
73141
|
+
"../../node_modules/@sap-ux/ui5-config/dist/index.js"(exports2) {
|
|
72956
73142
|
"use strict";
|
|
72957
73143
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
72958
73144
|
exports2.YAMLError = exports2.yamlErrorCode = exports2.UI5Config = void 0;
|
|
@@ -73002,7 +73188,7 @@ var require_ui5_config = __commonJS({
|
|
|
73002
73188
|
});
|
|
73003
73189
|
};
|
|
73004
73190
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
73005
|
-
exports2.getWebappPath = void 0;
|
|
73191
|
+
exports2.readUi5Yaml = exports2.getWebappPath = void 0;
|
|
73006
73192
|
var path_1 = require("path");
|
|
73007
73193
|
var ui5_config_1 = require_dist10();
|
|
73008
73194
|
var constants_1 = require_constants5();
|
|
@@ -73024,6 +73210,17 @@ var require_ui5_config = __commonJS({
|
|
|
73024
73210
|
});
|
|
73025
73211
|
}
|
|
73026
73212
|
exports2.getWebappPath = getWebappPath;
|
|
73213
|
+
function readUi5Yaml(basePath, fileName) {
|
|
73214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73215
|
+
const ui5YamlPath = (0, path_1.join)(basePath, fileName);
|
|
73216
|
+
if (yield (0, file_1.fileExists)(ui5YamlPath)) {
|
|
73217
|
+
const yamlString = yield (0, file_1.readFile)(ui5YamlPath);
|
|
73218
|
+
return yield ui5_config_1.UI5Config.newInstance(yamlString);
|
|
73219
|
+
}
|
|
73220
|
+
throw Error(`File '${fileName}' not found in project '${basePath}'`);
|
|
73221
|
+
});
|
|
73222
|
+
}
|
|
73223
|
+
exports2.readUi5Yaml = readUi5Yaml;
|
|
73027
73224
|
}
|
|
73028
73225
|
});
|
|
73029
73226
|
|
|
@@ -73287,7 +73484,7 @@ var require_project2 = __commonJS({
|
|
|
73287
73484
|
"../../node_modules/@sap-ux/project-access/dist/project/index.js"(exports2) {
|
|
73288
73485
|
"use strict";
|
|
73289
73486
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
73290
|
-
exports2.getWebappPath = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getAppProgrammingLanguage = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getCapProjectType = exports2.getCapModelAndServices = void 0;
|
|
73487
|
+
exports2.readUi5Yaml = exports2.getWebappPath = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findAllApps = exports2.loadModuleFromProject = exports2.getAppProgrammingLanguage = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getCapProjectType = exports2.getCapModelAndServices = void 0;
|
|
73291
73488
|
var cap_1 = require_cap();
|
|
73292
73489
|
Object.defineProperty(exports2, "getCapModelAndServices", { enumerable: true, get: function() {
|
|
73293
73490
|
return cap_1.getCapModelAndServices;
|
|
@@ -73323,6 +73520,9 @@ var require_project2 = __commonJS({
|
|
|
73323
73520
|
Object.defineProperty(exports2, "getWebappPath", { enumerable: true, get: function() {
|
|
73324
73521
|
return ui5_config_1.getWebappPath;
|
|
73325
73522
|
} });
|
|
73523
|
+
Object.defineProperty(exports2, "readUi5Yaml", { enumerable: true, get: function() {
|
|
73524
|
+
return ui5_config_1.readUi5Yaml;
|
|
73525
|
+
} });
|
|
73326
73526
|
}
|
|
73327
73527
|
});
|
|
73328
73528
|
|
|
@@ -73433,7 +73633,7 @@ var require_dist11 = __commonJS({
|
|
|
73433
73633
|
__createBinding(exports3, m, p);
|
|
73434
73634
|
};
|
|
73435
73635
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
73436
|
-
exports2.loadModuleFromProject = exports2.isCapNodeJsProject = exports2.isCapJavaProject = exports2.getWebappPath = exports2.getCapProjectType = exports2.getCapModelAndServices = exports2.getAppProgrammingLanguage = exports2.getAppRootFromWebappPath = exports2.findProjectRoot = exports2.findAllApps = exports2.FileName = void 0;
|
|
73636
|
+
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;
|
|
73437
73637
|
var constants_1 = require_constants5();
|
|
73438
73638
|
Object.defineProperty(exports2, "FileName", { enumerable: true, get: function() {
|
|
73439
73639
|
return constants_1.FileName;
|
|
@@ -73469,6 +73669,9 @@ var require_dist11 = __commonJS({
|
|
|
73469
73669
|
Object.defineProperty(exports2, "loadModuleFromProject", { enumerable: true, get: function() {
|
|
73470
73670
|
return project_1.loadModuleFromProject;
|
|
73471
73671
|
} });
|
|
73672
|
+
Object.defineProperty(exports2, "readUi5Yaml", { enumerable: true, get: function() {
|
|
73673
|
+
return project_1.readUi5Yaml;
|
|
73674
|
+
} });
|
|
73472
73675
|
__exportStar(require_types5(), exports2);
|
|
73473
73676
|
}
|
|
73474
73677
|
});
|
|
@@ -74682,7 +74885,7 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
74682
74885
|
return (0, ux_feature_toggle_1.isInternalFeaturesSettingEnabled)() ? "internal" : "external";
|
|
74683
74886
|
}
|
|
74684
74887
|
async function getManifestSourceTemplate(appPath) {
|
|
74685
|
-
var _a2
|
|
74888
|
+
var _a2;
|
|
74686
74889
|
let sourceTemplate;
|
|
74687
74890
|
try {
|
|
74688
74891
|
const manifestPath = path_1.default.join(appPath, "webapp", "manifest.json");
|
|
@@ -74693,10 +74896,10 @@ var require_toolsSuiteTelemetryDataProcessor = __commonJS({
|
|
|
74693
74896
|
} catch (err) {
|
|
74694
74897
|
console.log(`[Telemetry]: ${err.message}`);
|
|
74695
74898
|
}
|
|
74696
|
-
sourceTemplate = sourceTemplate
|
|
74697
|
-
sourceTemplate.id =
|
|
74698
|
-
sourceTemplate.version =
|
|
74699
|
-
sourceTemplate.toolsId =
|
|
74899
|
+
sourceTemplate = sourceTemplate ?? {};
|
|
74900
|
+
sourceTemplate.id = sourceTemplate.id ?? "";
|
|
74901
|
+
sourceTemplate.version = sourceTemplate.version ?? "";
|
|
74902
|
+
sourceTemplate.toolsId = sourceTemplate.toolsId ?? types_1.ToolsId.NO_TOOLS_ID;
|
|
74700
74903
|
return sourceTemplate;
|
|
74701
74904
|
}
|
|
74702
74905
|
async function getProcessVersions() {
|
|
@@ -92618,10 +92821,7 @@ var require_toolsSuiteTelemetrySettings = __commonJS({
|
|
|
92618
92821
|
try {
|
|
92619
92822
|
content = await fs_1.default.promises.readFile(deprecatedSettingPath, "utf-8");
|
|
92620
92823
|
const deprecatedSetting = JSON.parse(content);
|
|
92621
|
-
const propValues = deprecatedExtensionPropKeys.map((propKey) =>
|
|
92622
|
-
var _a2;
|
|
92623
|
-
return (_a2 = deprecatedSetting[propKey]) != null ? _a2 : true;
|
|
92624
|
-
});
|
|
92824
|
+
const propValues = deprecatedExtensionPropKeys.map((propKey) => deprecatedSetting[propKey] ?? true);
|
|
92625
92825
|
const deprecatedEnableTelemetrySetting = propValues.reduce((prevValue, currentValue) => prevValue && currentValue);
|
|
92626
92826
|
(0, exports2.setEnableTelemetry)(deprecatedEnableTelemetrySetting);
|
|
92627
92827
|
} catch {
|
|
@@ -96377,14 +96577,13 @@ async function getUrlArchive(archiveUrl, strictSsl) {
|
|
|
96377
96577
|
return archivePath;
|
|
96378
96578
|
}
|
|
96379
96579
|
async function confirmDeploy(config2) {
|
|
96380
|
-
var _a2, _b, _c, _d, _e, _f;
|
|
96381
96580
|
let abort = false;
|
|
96382
96581
|
let target;
|
|
96383
96582
|
if ((0, import_ux_common_utils3.isAppStudio)()) {
|
|
96384
|
-
target = `${chalk.blue(i18next_default.t("DESTINATION"))}: ${
|
|
96583
|
+
target = `${chalk.blue(i18next_default.t("DESTINATION"))}: ${config2.target.destination ?? ""}`;
|
|
96385
96584
|
} else {
|
|
96386
|
-
target = `${chalk.blue(i18next_default.t("TARGET"))}: ${
|
|
96387
|
-
${chalk.blue(i18next_default.t("CLIENT"))}: ${
|
|
96585
|
+
target = `${chalk.blue(i18next_default.t("TARGET"))}: ${config2.target.url ?? ""}
|
|
96586
|
+
${chalk.blue(i18next_default.t("CLIENT"))}: ${config2.target.client ?? ""}`;
|
|
96388
96587
|
}
|
|
96389
96588
|
let targetSystemUI5Version = "";
|
|
96390
96589
|
if (config2.targetSystemUI5Version) {
|
|
@@ -96397,10 +96596,10 @@ async function confirmDeploy(config2) {
|
|
|
96397
96596
|
}
|
|
96398
96597
|
console.log(`
|
|
96399
96598
|
${chalk.blue(i18next_default.t("APPLICATION_NAME"))}: ${config2.app.name}
|
|
96400
|
-
${chalk.blue(i18next_default.t("PACKAGE"))}: ${
|
|
96401
|
-
${chalk.blue(i18next_default.t("TRANSPORT_REQUEST"))}: ${
|
|
96599
|
+
${chalk.blue(i18next_default.t("PACKAGE"))}: ${config2.app.package ?? ""}
|
|
96600
|
+
${chalk.blue(i18next_default.t("TRANSPORT_REQUEST"))}: ${config2.app.transport ?? ""}
|
|
96402
96601
|
${target}
|
|
96403
|
-
${chalk.blue("SCP")}: ${
|
|
96602
|
+
${chalk.blue("SCP")}: ${config2.target.scp ?? "false"}
|
|
96404
96603
|
${targetSystemUI5Version}
|
|
96405
96604
|
`);
|
|
96406
96605
|
if (config2.targetSystemUI5Version) {
|