@uipath/solution-sdk 1.198.0-preview.85 → 1.198.0-preview.86
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1564 -1190
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2535,7 +2535,7 @@ class TextApiResponse {
|
|
|
2535
2535
|
var package_default = {
|
|
2536
2536
|
name: "@uipath/solution-sdk",
|
|
2537
2537
|
license: "MIT",
|
|
2538
|
-
version: "1.198.0-preview.
|
|
2538
|
+
version: "1.198.0-preview.86",
|
|
2539
2539
|
repository: {
|
|
2540
2540
|
type: "git",
|
|
2541
2541
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -7494,31 +7494,17 @@ function search(data, expression, options) {
|
|
|
7494
7494
|
}
|
|
7495
7495
|
|
|
7496
7496
|
// ../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
7497
|
-
|
|
7498
|
-
|
|
7499
|
-
|
|
7500
|
-
var
|
|
7501
|
-
var
|
|
7502
|
-
var
|
|
7503
|
-
var
|
|
7504
|
-
|
|
7505
|
-
|
|
7506
|
-
|
|
7507
|
-
|
|
7508
|
-
key = keys[i];
|
|
7509
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
7510
|
-
__defProp2(to, key, {
|
|
7511
|
-
get: ((k) => from[k]).bind(null, key),
|
|
7512
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
7513
|
-
});
|
|
7514
|
-
}
|
|
7515
|
-
return to;
|
|
7516
|
-
};
|
|
7517
|
-
var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
|
|
7518
|
-
value: mod2,
|
|
7519
|
-
enumerable: true
|
|
7520
|
-
}) : target, mod2));
|
|
7521
|
-
var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
7497
|
+
function getDefaultExportFromCjs(x) {
|
|
7498
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
7499
|
+
}
|
|
7500
|
+
var jsYaml = {};
|
|
7501
|
+
var loader = {};
|
|
7502
|
+
var common = {};
|
|
7503
|
+
var hasRequiredCommon;
|
|
7504
|
+
function requireCommon() {
|
|
7505
|
+
if (hasRequiredCommon)
|
|
7506
|
+
return common;
|
|
7507
|
+
hasRequiredCommon = 1;
|
|
7522
7508
|
function isNothing(subject) {
|
|
7523
7509
|
return typeof subject === "undefined" || subject === null;
|
|
7524
7510
|
}
|
|
@@ -7544,55 +7530,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7544
7530
|
}
|
|
7545
7531
|
function repeat(string, count) {
|
|
7546
7532
|
let result = "";
|
|
7547
|
-
for (let cycle = 0;cycle < count; cycle += 1)
|
|
7533
|
+
for (let cycle = 0;cycle < count; cycle += 1) {
|
|
7548
7534
|
result += string;
|
|
7535
|
+
}
|
|
7549
7536
|
return result;
|
|
7550
7537
|
}
|
|
7551
7538
|
function isNegativeZero(number) {
|
|
7552
7539
|
return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
|
|
7553
7540
|
}
|
|
7554
|
-
|
|
7555
|
-
|
|
7556
|
-
|
|
7557
|
-
|
|
7558
|
-
|
|
7559
|
-
|
|
7560
|
-
|
|
7561
|
-
|
|
7562
|
-
|
|
7541
|
+
common.isNothing = isNothing;
|
|
7542
|
+
common.isObject = isObject2;
|
|
7543
|
+
common.toArray = toArray;
|
|
7544
|
+
common.repeat = repeat;
|
|
7545
|
+
common.isNegativeZero = isNegativeZero;
|
|
7546
|
+
common.extend = extend;
|
|
7547
|
+
return common;
|
|
7548
|
+
}
|
|
7549
|
+
var exception;
|
|
7550
|
+
var hasRequiredException;
|
|
7551
|
+
function requireException() {
|
|
7552
|
+
if (hasRequiredException)
|
|
7553
|
+
return exception;
|
|
7554
|
+
hasRequiredException = 1;
|
|
7555
|
+
function formatError(exception2, compact) {
|
|
7563
7556
|
let where = "";
|
|
7564
|
-
const message =
|
|
7565
|
-
if (!
|
|
7557
|
+
const message = exception2.reason || "(unknown reason)";
|
|
7558
|
+
if (!exception2.mark)
|
|
7566
7559
|
return message;
|
|
7567
|
-
if (
|
|
7568
|
-
where += 'in "' +
|
|
7569
|
-
|
|
7570
|
-
|
|
7560
|
+
if (exception2.mark.name) {
|
|
7561
|
+
where += 'in "' + exception2.mark.name + '" ';
|
|
7562
|
+
}
|
|
7563
|
+
where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
|
|
7564
|
+
if (!compact && exception2.mark.snippet) {
|
|
7571
7565
|
where += `
|
|
7572
7566
|
|
|
7573
|
-
` +
|
|
7567
|
+
` + exception2.mark.snippet;
|
|
7568
|
+
}
|
|
7574
7569
|
return message + " " + where;
|
|
7575
7570
|
}
|
|
7576
|
-
function
|
|
7571
|
+
function YAMLException2(reason, mark) {
|
|
7577
7572
|
Error.call(this);
|
|
7578
7573
|
this.name = "YAMLException";
|
|
7579
7574
|
this.reason = reason;
|
|
7580
7575
|
this.mark = mark;
|
|
7581
7576
|
this.message = formatError(this, false);
|
|
7582
|
-
if (Error.captureStackTrace)
|
|
7577
|
+
if (Error.captureStackTrace) {
|
|
7583
7578
|
Error.captureStackTrace(this, this.constructor);
|
|
7584
|
-
else
|
|
7585
|
-
this.stack =
|
|
7579
|
+
} else {
|
|
7580
|
+
this.stack = new Error().stack || "";
|
|
7581
|
+
}
|
|
7586
7582
|
}
|
|
7587
|
-
|
|
7588
|
-
|
|
7589
|
-
|
|
7583
|
+
YAMLException2.prototype = Object.create(Error.prototype);
|
|
7584
|
+
YAMLException2.prototype.constructor = YAMLException2;
|
|
7585
|
+
YAMLException2.prototype.toString = function toString(compact) {
|
|
7590
7586
|
return this.name + ": " + formatError(this, compact);
|
|
7591
7587
|
};
|
|
7592
|
-
|
|
7593
|
-
|
|
7594
|
-
|
|
7595
|
-
|
|
7588
|
+
exception = YAMLException2;
|
|
7589
|
+
return exception;
|
|
7590
|
+
}
|
|
7591
|
+
var snippet;
|
|
7592
|
+
var hasRequiredSnippet;
|
|
7593
|
+
function requireSnippet() {
|
|
7594
|
+
if (hasRequiredSnippet)
|
|
7595
|
+
return snippet;
|
|
7596
|
+
hasRequiredSnippet = 1;
|
|
7597
|
+
const common2 = requireCommon();
|
|
7596
7598
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
7597
7599
|
let head = "";
|
|
7598
7600
|
let tail = "";
|
|
@@ -7611,7 +7613,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7611
7613
|
};
|
|
7612
7614
|
}
|
|
7613
7615
|
function padStart(string, max) {
|
|
7614
|
-
return
|
|
7616
|
+
return common2.repeat(" ", max - string.length) + string;
|
|
7615
7617
|
}
|
|
7616
7618
|
function makeSnippet(mark, options) {
|
|
7617
7619
|
options = Object.create(options || null);
|
|
@@ -7633,8 +7635,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7633
7635
|
while (match = re.exec(mark.buffer)) {
|
|
7634
7636
|
lineEnds.push(match.index);
|
|
7635
7637
|
lineStarts.push(match.index + match[0].length);
|
|
7636
|
-
if (mark.position <= match.index && foundLineNo < 0)
|
|
7638
|
+
if (mark.position <= match.index && foundLineNo < 0) {
|
|
7637
7639
|
foundLineNo = lineStarts.length - 2;
|
|
7640
|
+
}
|
|
7638
7641
|
}
|
|
7639
7642
|
if (foundLineNo < 0)
|
|
7640
7643
|
foundLineNo = lineStarts.length - 1;
|
|
@@ -7645,28 +7648,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7645
7648
|
if (foundLineNo - i < 0)
|
|
7646
7649
|
break;
|
|
7647
7650
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
7648
|
-
result =
|
|
7651
|
+
result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
7649
7652
|
` + result;
|
|
7650
7653
|
}
|
|
7651
7654
|
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
7652
|
-
result +=
|
|
7655
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
|
|
7653
7656
|
`;
|
|
7654
|
-
result +=
|
|
7657
|
+
result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
|
|
7655
7658
|
`;
|
|
7656
7659
|
for (let i = 1;i <= options.linesAfter; i++) {
|
|
7657
7660
|
if (foundLineNo + i >= lineEnds.length)
|
|
7658
7661
|
break;
|
|
7659
7662
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
7660
|
-
result +=
|
|
7663
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
7661
7664
|
`;
|
|
7662
7665
|
}
|
|
7663
7666
|
return result.replace(/\n$/, "");
|
|
7664
7667
|
}
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
|
|
7668
|
+
snippet = makeSnippet;
|
|
7669
|
+
return snippet;
|
|
7670
|
+
}
|
|
7671
|
+
var type;
|
|
7672
|
+
var hasRequiredType;
|
|
7673
|
+
function requireType() {
|
|
7674
|
+
if (hasRequiredType)
|
|
7675
|
+
return type;
|
|
7676
|
+
hasRequiredType = 1;
|
|
7677
|
+
const YAMLException2 = requireException();
|
|
7678
|
+
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
7670
7679
|
"kind",
|
|
7671
7680
|
"multi",
|
|
7672
7681
|
"resolve",
|
|
@@ -7678,26 +7687,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7678
7687
|
"defaultStyle",
|
|
7679
7688
|
"styleAliases"
|
|
7680
7689
|
];
|
|
7681
|
-
|
|
7690
|
+
const YAML_NODE_KINDS = [
|
|
7682
7691
|
"scalar",
|
|
7683
7692
|
"sequence",
|
|
7684
7693
|
"mapping"
|
|
7685
7694
|
];
|
|
7686
|
-
function compileStyleAliases(
|
|
7695
|
+
function compileStyleAliases(map2) {
|
|
7687
7696
|
const result = {};
|
|
7688
|
-
if (
|
|
7689
|
-
Object.keys(
|
|
7690
|
-
|
|
7697
|
+
if (map2 !== null) {
|
|
7698
|
+
Object.keys(map2).forEach(function(style) {
|
|
7699
|
+
map2[style].forEach(function(alias) {
|
|
7691
7700
|
result[String(alias)] = style;
|
|
7692
7701
|
});
|
|
7693
7702
|
});
|
|
7703
|
+
}
|
|
7694
7704
|
return result;
|
|
7695
7705
|
}
|
|
7696
|
-
function
|
|
7706
|
+
function Type2(tag, options) {
|
|
7697
7707
|
options = options || {};
|
|
7698
7708
|
Object.keys(options).forEach(function(name) {
|
|
7699
|
-
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
|
|
7700
|
-
throw new
|
|
7709
|
+
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
|
|
7710
|
+
throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
|
7711
|
+
}
|
|
7701
7712
|
});
|
|
7702
7713
|
this.options = options;
|
|
7703
7714
|
this.tag = tag;
|
|
@@ -7715,21 +7726,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7715
7726
|
this.defaultStyle = options["defaultStyle"] || null;
|
|
7716
7727
|
this.multi = options["multi"] || false;
|
|
7717
7728
|
this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
|
|
7718
|
-
if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
|
|
7719
|
-
throw new
|
|
7720
|
-
|
|
7721
|
-
|
|
7722
|
-
|
|
7723
|
-
|
|
7724
|
-
|
|
7725
|
-
|
|
7726
|
-
|
|
7729
|
+
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
|
7730
|
+
throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
7731
|
+
}
|
|
7732
|
+
}
|
|
7733
|
+
type = Type2;
|
|
7734
|
+
return type;
|
|
7735
|
+
}
|
|
7736
|
+
var schema;
|
|
7737
|
+
var hasRequiredSchema;
|
|
7738
|
+
function requireSchema() {
|
|
7739
|
+
if (hasRequiredSchema)
|
|
7740
|
+
return schema;
|
|
7741
|
+
hasRequiredSchema = 1;
|
|
7742
|
+
const YAMLException2 = requireException();
|
|
7743
|
+
const Type2 = requireType();
|
|
7744
|
+
function compileList(schema2, name) {
|
|
7727
7745
|
const result = [];
|
|
7728
|
-
|
|
7746
|
+
schema2[name].forEach(function(currentType) {
|
|
7729
7747
|
let newIndex = result.length;
|
|
7730
7748
|
result.forEach(function(previousType, previousIndex) {
|
|
7731
|
-
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
|
|
7749
|
+
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
|
|
7732
7750
|
newIndex = previousIndex;
|
|
7751
|
+
}
|
|
7733
7752
|
});
|
|
7734
7753
|
result[newIndex] = currentType;
|
|
7735
7754
|
});
|
|
@@ -7748,47 +7767,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7748
7767
|
fallback: []
|
|
7749
7768
|
}
|
|
7750
7769
|
};
|
|
7751
|
-
function collectType(
|
|
7752
|
-
if (
|
|
7753
|
-
result.multi[
|
|
7754
|
-
result.multi["fallback"].push(
|
|
7755
|
-
} else
|
|
7756
|
-
result[
|
|
7770
|
+
function collectType(type2) {
|
|
7771
|
+
if (type2.multi) {
|
|
7772
|
+
result.multi[type2.kind].push(type2);
|
|
7773
|
+
result.multi["fallback"].push(type2);
|
|
7774
|
+
} else {
|
|
7775
|
+
result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
|
|
7776
|
+
}
|
|
7757
7777
|
}
|
|
7758
|
-
for (let index = 0, length = arguments.length;index < length; index += 1)
|
|
7778
|
+
for (let index = 0, length = arguments.length;index < length; index += 1) {
|
|
7759
7779
|
arguments[index].forEach(collectType);
|
|
7780
|
+
}
|
|
7760
7781
|
return result;
|
|
7761
7782
|
}
|
|
7762
|
-
function
|
|
7783
|
+
function Schema2(definition) {
|
|
7763
7784
|
return this.extend(definition);
|
|
7764
7785
|
}
|
|
7765
|
-
|
|
7786
|
+
Schema2.prototype.extend = function extend(definition) {
|
|
7766
7787
|
let implicit = [];
|
|
7767
7788
|
let explicit = [];
|
|
7768
|
-
if (definition instanceof
|
|
7789
|
+
if (definition instanceof Type2) {
|
|
7769
7790
|
explicit.push(definition);
|
|
7770
|
-
else if (Array.isArray(definition))
|
|
7791
|
+
} else if (Array.isArray(definition)) {
|
|
7771
7792
|
explicit = explicit.concat(definition);
|
|
7772
|
-
else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
7793
|
+
} else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
7773
7794
|
if (definition.implicit)
|
|
7774
7795
|
implicit = implicit.concat(definition.implicit);
|
|
7775
7796
|
if (definition.explicit)
|
|
7776
7797
|
explicit = explicit.concat(definition.explicit);
|
|
7777
|
-
} else
|
|
7778
|
-
throw new
|
|
7779
|
-
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
if (
|
|
7785
|
-
throw new
|
|
7798
|
+
} else {
|
|
7799
|
+
throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
7800
|
+
}
|
|
7801
|
+
implicit.forEach(function(type2) {
|
|
7802
|
+
if (!(type2 instanceof Type2)) {
|
|
7803
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
7804
|
+
}
|
|
7805
|
+
if (type2.loadKind && type2.loadKind !== "scalar") {
|
|
7806
|
+
throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
7807
|
+
}
|
|
7808
|
+
if (type2.multi) {
|
|
7809
|
+
throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
7810
|
+
}
|
|
7786
7811
|
});
|
|
7787
|
-
explicit.forEach(function(
|
|
7788
|
-
if (!(
|
|
7789
|
-
throw new
|
|
7812
|
+
explicit.forEach(function(type2) {
|
|
7813
|
+
if (!(type2 instanceof Type2)) {
|
|
7814
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
7815
|
+
}
|
|
7790
7816
|
});
|
|
7791
|
-
const result = Object.create(
|
|
7817
|
+
const result = Object.create(Schema2.prototype);
|
|
7792
7818
|
result.implicit = (this.implicit || []).concat(implicit);
|
|
7793
7819
|
result.explicit = (this.explicit || []).concat(explicit);
|
|
7794
7820
|
result.compiledImplicit = compileList(result, "implicit");
|
|
@@ -7796,41 +7822,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7796
7822
|
result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
|
|
7797
7823
|
return result;
|
|
7798
7824
|
};
|
|
7799
|
-
|
|
7800
|
-
|
|
7801
|
-
|
|
7802
|
-
|
|
7825
|
+
schema = Schema2;
|
|
7826
|
+
return schema;
|
|
7827
|
+
}
|
|
7828
|
+
var str;
|
|
7829
|
+
var hasRequiredStr;
|
|
7830
|
+
function requireStr() {
|
|
7831
|
+
if (hasRequiredStr)
|
|
7832
|
+
return str;
|
|
7833
|
+
hasRequiredStr = 1;
|
|
7834
|
+
const Type2 = requireType();
|
|
7835
|
+
str = new Type2("tag:yaml.org,2002:str", {
|
|
7803
7836
|
kind: "scalar",
|
|
7804
7837
|
construct: function(data) {
|
|
7805
7838
|
return data !== null ? data : "";
|
|
7806
7839
|
}
|
|
7807
7840
|
});
|
|
7808
|
-
|
|
7809
|
-
|
|
7810
|
-
|
|
7841
|
+
return str;
|
|
7842
|
+
}
|
|
7843
|
+
var seq;
|
|
7844
|
+
var hasRequiredSeq;
|
|
7845
|
+
function requireSeq() {
|
|
7846
|
+
if (hasRequiredSeq)
|
|
7847
|
+
return seq;
|
|
7848
|
+
hasRequiredSeq = 1;
|
|
7849
|
+
const Type2 = requireType();
|
|
7850
|
+
seq = new Type2("tag:yaml.org,2002:seq", {
|
|
7811
7851
|
kind: "sequence",
|
|
7812
7852
|
construct: function(data) {
|
|
7813
7853
|
return data !== null ? data : [];
|
|
7814
7854
|
}
|
|
7815
7855
|
});
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7856
|
+
return seq;
|
|
7857
|
+
}
|
|
7858
|
+
var map;
|
|
7859
|
+
var hasRequiredMap;
|
|
7860
|
+
function requireMap() {
|
|
7861
|
+
if (hasRequiredMap)
|
|
7862
|
+
return map;
|
|
7863
|
+
hasRequiredMap = 1;
|
|
7864
|
+
const Type2 = requireType();
|
|
7865
|
+
map = new Type2("tag:yaml.org,2002:map", {
|
|
7819
7866
|
kind: "mapping",
|
|
7820
7867
|
construct: function(data) {
|
|
7821
7868
|
return data !== null ? data : {};
|
|
7822
7869
|
}
|
|
7823
7870
|
});
|
|
7824
|
-
|
|
7825
|
-
|
|
7826
|
-
|
|
7827
|
-
|
|
7828
|
-
|
|
7829
|
-
|
|
7830
|
-
|
|
7831
|
-
|
|
7832
|
-
|
|
7833
|
-
|
|
7871
|
+
return map;
|
|
7872
|
+
}
|
|
7873
|
+
var failsafe;
|
|
7874
|
+
var hasRequiredFailsafe;
|
|
7875
|
+
function requireFailsafe() {
|
|
7876
|
+
if (hasRequiredFailsafe)
|
|
7877
|
+
return failsafe;
|
|
7878
|
+
hasRequiredFailsafe = 1;
|
|
7879
|
+
const Schema2 = requireSchema();
|
|
7880
|
+
failsafe = new Schema2({
|
|
7881
|
+
explicit: [
|
|
7882
|
+
requireStr(),
|
|
7883
|
+
requireSeq(),
|
|
7884
|
+
requireMap()
|
|
7885
|
+
]
|
|
7886
|
+
});
|
|
7887
|
+
return failsafe;
|
|
7888
|
+
}
|
|
7889
|
+
var _null;
|
|
7890
|
+
var hasRequired_null;
|
|
7891
|
+
function require_null() {
|
|
7892
|
+
if (hasRequired_null)
|
|
7893
|
+
return _null;
|
|
7894
|
+
hasRequired_null = 1;
|
|
7895
|
+
const Type2 = requireType();
|
|
7834
7896
|
function resolveYamlNull(data) {
|
|
7835
7897
|
if (data === null)
|
|
7836
7898
|
return true;
|
|
@@ -7843,7 +7905,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7843
7905
|
function isNull(object) {
|
|
7844
7906
|
return object === null;
|
|
7845
7907
|
}
|
|
7846
|
-
|
|
7908
|
+
_null = new Type2("tag:yaml.org,2002:null", {
|
|
7847
7909
|
kind: "scalar",
|
|
7848
7910
|
resolve: resolveYamlNull,
|
|
7849
7911
|
construct: constructYamlNull,
|
|
@@ -7867,9 +7929,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7867
7929
|
},
|
|
7868
7930
|
defaultStyle: "lowercase"
|
|
7869
7931
|
});
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7932
|
+
return _null;
|
|
7933
|
+
}
|
|
7934
|
+
var bool;
|
|
7935
|
+
var hasRequiredBool;
|
|
7936
|
+
function requireBool() {
|
|
7937
|
+
if (hasRequiredBool)
|
|
7938
|
+
return bool;
|
|
7939
|
+
hasRequiredBool = 1;
|
|
7940
|
+
const Type2 = requireType();
|
|
7873
7941
|
function resolveYamlBoolean(data) {
|
|
7874
7942
|
if (data === null)
|
|
7875
7943
|
return false;
|
|
@@ -7882,7 +7950,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7882
7950
|
function isBoolean(object) {
|
|
7883
7951
|
return Object.prototype.toString.call(object) === "[object Boolean]";
|
|
7884
7952
|
}
|
|
7885
|
-
|
|
7953
|
+
bool = new Type2("tag:yaml.org,2002:bool", {
|
|
7886
7954
|
kind: "scalar",
|
|
7887
7955
|
resolve: resolveYamlBoolean,
|
|
7888
7956
|
construct: constructYamlBoolean,
|
|
@@ -7900,10 +7968,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7900
7968
|
},
|
|
7901
7969
|
defaultStyle: "lowercase"
|
|
7902
7970
|
});
|
|
7903
|
-
|
|
7904
|
-
|
|
7905
|
-
|
|
7906
|
-
|
|
7971
|
+
return bool;
|
|
7972
|
+
}
|
|
7973
|
+
var int;
|
|
7974
|
+
var hasRequiredInt;
|
|
7975
|
+
function requireInt() {
|
|
7976
|
+
if (hasRequiredInt)
|
|
7977
|
+
return int;
|
|
7978
|
+
hasRequiredInt = 1;
|
|
7979
|
+
const common2 = requireCommon();
|
|
7980
|
+
const Type2 = requireType();
|
|
7907
7981
|
function isHexCode(c) {
|
|
7908
7982
|
return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
7909
7983
|
}
|
|
@@ -7922,8 +7996,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7922
7996
|
if (!max)
|
|
7923
7997
|
return false;
|
|
7924
7998
|
let ch = data[index];
|
|
7925
|
-
if (ch === "-" || ch === "+")
|
|
7999
|
+
if (ch === "-" || ch === "+") {
|
|
7926
8000
|
ch = data[++index];
|
|
8001
|
+
}
|
|
7927
8002
|
if (ch === "0") {
|
|
7928
8003
|
if (index + 1 === max)
|
|
7929
8004
|
return true;
|
|
@@ -7936,7 +8011,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7936
8011
|
return false;
|
|
7937
8012
|
hasDigits = true;
|
|
7938
8013
|
}
|
|
7939
|
-
return hasDigits &&
|
|
8014
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
7940
8015
|
}
|
|
7941
8016
|
if (ch === "x") {
|
|
7942
8017
|
index++;
|
|
@@ -7945,7 +8020,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7945
8020
|
return false;
|
|
7946
8021
|
hasDigits = true;
|
|
7947
8022
|
}
|
|
7948
|
-
return hasDigits &&
|
|
8023
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
7949
8024
|
}
|
|
7950
8025
|
if (ch === "o") {
|
|
7951
8026
|
index++;
|
|
@@ -7954,17 +8029,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7954
8029
|
return false;
|
|
7955
8030
|
hasDigits = true;
|
|
7956
8031
|
}
|
|
7957
|
-
return hasDigits &&
|
|
8032
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
7958
8033
|
}
|
|
7959
8034
|
}
|
|
7960
8035
|
for (;index < max; index++) {
|
|
7961
|
-
if (!isDecCode(data.charCodeAt(index)))
|
|
8036
|
+
if (!isDecCode(data.charCodeAt(index))) {
|
|
7962
8037
|
return false;
|
|
8038
|
+
}
|
|
7963
8039
|
hasDigits = true;
|
|
7964
8040
|
}
|
|
7965
8041
|
if (!hasDigits)
|
|
7966
8042
|
return false;
|
|
7967
|
-
return
|
|
8043
|
+
return isFinite(parseYamlInteger(data));
|
|
7968
8044
|
}
|
|
7969
8045
|
function parseYamlInteger(data) {
|
|
7970
8046
|
let value = data;
|
|
@@ -7992,9 +8068,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
7992
8068
|
return parseYamlInteger(data);
|
|
7993
8069
|
}
|
|
7994
8070
|
function isInteger(object) {
|
|
7995
|
-
return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !
|
|
8071
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
|
|
7996
8072
|
}
|
|
7997
|
-
|
|
8073
|
+
int = new Type2("tag:yaml.org,2002:int", {
|
|
7998
8074
|
kind: "scalar",
|
|
7999
8075
|
resolve: resolveYamlInteger,
|
|
8000
8076
|
construct: constructYamlInteger,
|
|
@@ -8021,35 +8097,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8021
8097
|
hexadecimal: [16, "hex"]
|
|
8022
8098
|
}
|
|
8023
8099
|
});
|
|
8024
|
-
|
|
8025
|
-
|
|
8026
|
-
|
|
8027
|
-
|
|
8028
|
-
|
|
8029
|
-
|
|
8100
|
+
return int;
|
|
8101
|
+
}
|
|
8102
|
+
var float;
|
|
8103
|
+
var hasRequiredFloat;
|
|
8104
|
+
function requireFloat() {
|
|
8105
|
+
if (hasRequiredFloat)
|
|
8106
|
+
return float;
|
|
8107
|
+
hasRequiredFloat = 1;
|
|
8108
|
+
const common2 = requireCommon();
|
|
8109
|
+
const Type2 = requireType();
|
|
8110
|
+
const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
8111
|
+
const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
8030
8112
|
function resolveYamlFloat(data) {
|
|
8031
8113
|
if (data === null)
|
|
8032
8114
|
return false;
|
|
8033
|
-
if (!YAML_FLOAT_PATTERN.test(data))
|
|
8115
|
+
if (!YAML_FLOAT_PATTERN.test(data)) {
|
|
8034
8116
|
return false;
|
|
8035
|
-
|
|
8117
|
+
}
|
|
8118
|
+
if (isFinite(parseFloat(data, 10))) {
|
|
8036
8119
|
return true;
|
|
8120
|
+
}
|
|
8037
8121
|
return YAML_FLOAT_SPECIAL_PATTERN.test(data);
|
|
8038
8122
|
}
|
|
8039
8123
|
function constructYamlFloat(data) {
|
|
8040
8124
|
let value = data.toLowerCase();
|
|
8041
8125
|
const sign = value[0] === "-" ? -1 : 1;
|
|
8042
|
-
if ("+-".indexOf(value[0]) >= 0)
|
|
8126
|
+
if ("+-".indexOf(value[0]) >= 0) {
|
|
8043
8127
|
value = value.slice(1);
|
|
8044
|
-
|
|
8128
|
+
}
|
|
8129
|
+
if (value === ".inf") {
|
|
8045
8130
|
return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
8046
|
-
else if (value === ".nan")
|
|
8131
|
+
} else if (value === ".nan") {
|
|
8047
8132
|
return NaN;
|
|
8133
|
+
}
|
|
8048
8134
|
return sign * parseFloat(value, 10);
|
|
8049
8135
|
}
|
|
8050
|
-
|
|
8136
|
+
const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
8051
8137
|
function representYamlFloat(object, style) {
|
|
8052
|
-
if (isNaN(object))
|
|
8138
|
+
if (isNaN(object)) {
|
|
8053
8139
|
switch (style) {
|
|
8054
8140
|
case "lowercase":
|
|
8055
8141
|
return ".nan";
|
|
@@ -8058,7 +8144,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8058
8144
|
case "camelcase":
|
|
8059
8145
|
return ".NaN";
|
|
8060
8146
|
}
|
|
8061
|
-
else if (Number.POSITIVE_INFINITY === object)
|
|
8147
|
+
} else if (Number.POSITIVE_INFINITY === object) {
|
|
8062
8148
|
switch (style) {
|
|
8063
8149
|
case "lowercase":
|
|
8064
8150
|
return ".inf";
|
|
@@ -8067,7 +8153,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8067
8153
|
case "camelcase":
|
|
8068
8154
|
return ".Inf";
|
|
8069
8155
|
}
|
|
8070
|
-
else if (Number.NEGATIVE_INFINITY === object)
|
|
8156
|
+
} else if (Number.NEGATIVE_INFINITY === object) {
|
|
8071
8157
|
switch (style) {
|
|
8072
8158
|
case "lowercase":
|
|
8073
8159
|
return "-.inf";
|
|
@@ -8076,15 +8162,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8076
8162
|
case "camelcase":
|
|
8077
8163
|
return "-.Inf";
|
|
8078
8164
|
}
|
|
8079
|
-
else if (
|
|
8165
|
+
} else if (common2.isNegativeZero(object)) {
|
|
8080
8166
|
return "-0.0";
|
|
8167
|
+
}
|
|
8081
8168
|
const res = object.toString(10);
|
|
8082
8169
|
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
8083
8170
|
}
|
|
8084
8171
|
function isFloat(object) {
|
|
8085
|
-
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 ||
|
|
8172
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
|
|
8086
8173
|
}
|
|
8087
|
-
|
|
8174
|
+
float = new Type2("tag:yaml.org,2002:float", {
|
|
8088
8175
|
kind: "scalar",
|
|
8089
8176
|
resolve: resolveYamlFloat,
|
|
8090
8177
|
construct: constructYamlFloat,
|
|
@@ -8092,22 +8179,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8092
8179
|
represent: representYamlFloat,
|
|
8093
8180
|
defaultStyle: "lowercase"
|
|
8094
8181
|
});
|
|
8095
|
-
|
|
8096
|
-
|
|
8097
|
-
|
|
8098
|
-
|
|
8099
|
-
|
|
8100
|
-
|
|
8101
|
-
|
|
8102
|
-
|
|
8103
|
-
|
|
8104
|
-
|
|
8105
|
-
|
|
8106
|
-
|
|
8107
|
-
|
|
8108
|
-
|
|
8109
|
-
|
|
8110
|
-
|
|
8182
|
+
return float;
|
|
8183
|
+
}
|
|
8184
|
+
var json;
|
|
8185
|
+
var hasRequiredJson;
|
|
8186
|
+
function requireJson() {
|
|
8187
|
+
if (hasRequiredJson)
|
|
8188
|
+
return json;
|
|
8189
|
+
hasRequiredJson = 1;
|
|
8190
|
+
json = requireFailsafe().extend({
|
|
8191
|
+
implicit: [
|
|
8192
|
+
require_null(),
|
|
8193
|
+
requireBool(),
|
|
8194
|
+
requireInt(),
|
|
8195
|
+
requireFloat()
|
|
8196
|
+
]
|
|
8197
|
+
});
|
|
8198
|
+
return json;
|
|
8199
|
+
}
|
|
8200
|
+
var core;
|
|
8201
|
+
var hasRequiredCore;
|
|
8202
|
+
function requireCore() {
|
|
8203
|
+
if (hasRequiredCore)
|
|
8204
|
+
return core;
|
|
8205
|
+
hasRequiredCore = 1;
|
|
8206
|
+
core = requireJson();
|
|
8207
|
+
return core;
|
|
8208
|
+
}
|
|
8209
|
+
var timestamp;
|
|
8210
|
+
var hasRequiredTimestamp;
|
|
8211
|
+
function requireTimestamp() {
|
|
8212
|
+
if (hasRequiredTimestamp)
|
|
8213
|
+
return timestamp;
|
|
8214
|
+
hasRequiredTimestamp = 1;
|
|
8215
|
+
const Type2 = requireType();
|
|
8216
|
+
const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
8217
|
+
const YAML_TIMESTAMP_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");
|
|
8111
8218
|
function resolveYamlTimestamp(data) {
|
|
8112
8219
|
if (data === null)
|
|
8113
8220
|
return false;
|
|
@@ -8128,15 +8235,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8128
8235
|
const year = +match[1];
|
|
8129
8236
|
const month = +match[2] - 1;
|
|
8130
8237
|
const day = +match[3];
|
|
8131
|
-
if (!match[4])
|
|
8238
|
+
if (!match[4]) {
|
|
8132
8239
|
return new Date(Date.UTC(year, month, day));
|
|
8240
|
+
}
|
|
8133
8241
|
const hour = +match[4];
|
|
8134
8242
|
const minute = +match[5];
|
|
8135
8243
|
const second = +match[6];
|
|
8136
8244
|
if (match[7]) {
|
|
8137
8245
|
fraction = match[7].slice(0, 3);
|
|
8138
|
-
while (fraction.length < 3)
|
|
8246
|
+
while (fraction.length < 3) {
|
|
8139
8247
|
fraction += "0";
|
|
8248
|
+
}
|
|
8140
8249
|
fraction = +fraction;
|
|
8141
8250
|
}
|
|
8142
8251
|
if (match[9]) {
|
|
@@ -8154,36 +8263,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8154
8263
|
function representYamlTimestamp(object) {
|
|
8155
8264
|
return object.toISOString();
|
|
8156
8265
|
}
|
|
8157
|
-
|
|
8266
|
+
timestamp = new Type2("tag:yaml.org,2002:timestamp", {
|
|
8158
8267
|
kind: "scalar",
|
|
8159
8268
|
resolve: resolveYamlTimestamp,
|
|
8160
8269
|
construct: constructYamlTimestamp,
|
|
8161
8270
|
instanceOf: Date,
|
|
8162
8271
|
represent: representYamlTimestamp
|
|
8163
8272
|
});
|
|
8164
|
-
|
|
8165
|
-
|
|
8166
|
-
|
|
8273
|
+
return timestamp;
|
|
8274
|
+
}
|
|
8275
|
+
var merge;
|
|
8276
|
+
var hasRequiredMerge;
|
|
8277
|
+
function requireMerge() {
|
|
8278
|
+
if (hasRequiredMerge)
|
|
8279
|
+
return merge;
|
|
8280
|
+
hasRequiredMerge = 1;
|
|
8281
|
+
const Type2 = requireType();
|
|
8167
8282
|
function resolveYamlMerge(data) {
|
|
8168
8283
|
return data === "<<" || data === null;
|
|
8169
8284
|
}
|
|
8170
|
-
|
|
8285
|
+
merge = new Type2("tag:yaml.org,2002:merge", {
|
|
8171
8286
|
kind: "scalar",
|
|
8172
8287
|
resolve: resolveYamlMerge
|
|
8173
8288
|
});
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8289
|
+
return merge;
|
|
8290
|
+
}
|
|
8291
|
+
var binary;
|
|
8292
|
+
var hasRequiredBinary;
|
|
8293
|
+
function requireBinary() {
|
|
8294
|
+
if (hasRequiredBinary)
|
|
8295
|
+
return binary;
|
|
8296
|
+
hasRequiredBinary = 1;
|
|
8297
|
+
const Type2 = requireType();
|
|
8298
|
+
const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
8178
8299
|
\r`;
|
|
8179
8300
|
function resolveYamlBinary(data) {
|
|
8180
8301
|
if (data === null)
|
|
8181
8302
|
return false;
|
|
8182
8303
|
let bitlen = 0;
|
|
8183
8304
|
const max = data.length;
|
|
8184
|
-
const
|
|
8305
|
+
const map2 = BASE64_MAP;
|
|
8185
8306
|
for (let idx = 0;idx < max; idx++) {
|
|
8186
|
-
const code =
|
|
8307
|
+
const code = map2.indexOf(data.charAt(idx));
|
|
8187
8308
|
if (code > 64)
|
|
8188
8309
|
continue;
|
|
8189
8310
|
if (code < 0)
|
|
@@ -8195,7 +8316,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8195
8316
|
function constructYamlBinary(data) {
|
|
8196
8317
|
const input = data.replace(/[\r\n=]/g, "");
|
|
8197
8318
|
const max = input.length;
|
|
8198
|
-
const
|
|
8319
|
+
const map2 = BASE64_MAP;
|
|
8199
8320
|
let bits = 0;
|
|
8200
8321
|
const result = [];
|
|
8201
8322
|
for (let idx = 0;idx < max; idx++) {
|
|
@@ -8204,7 +8325,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8204
8325
|
result.push(bits >> 8 & 255);
|
|
8205
8326
|
result.push(bits & 255);
|
|
8206
8327
|
}
|
|
8207
|
-
bits = bits << 6 |
|
|
8328
|
+
bits = bits << 6 | map2.indexOf(input.charAt(idx));
|
|
8208
8329
|
}
|
|
8209
8330
|
const tailbits = max % 4 * 6;
|
|
8210
8331
|
if (tailbits === 0) {
|
|
@@ -8214,58 +8335,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8214
8335
|
} else if (tailbits === 18) {
|
|
8215
8336
|
result.push(bits >> 10 & 255);
|
|
8216
8337
|
result.push(bits >> 2 & 255);
|
|
8217
|
-
} else if (tailbits === 12)
|
|
8338
|
+
} else if (tailbits === 12) {
|
|
8218
8339
|
result.push(bits >> 4 & 255);
|
|
8340
|
+
}
|
|
8219
8341
|
return new Uint8Array(result);
|
|
8220
8342
|
}
|
|
8221
8343
|
function representYamlBinary(object) {
|
|
8222
8344
|
let result = "";
|
|
8223
8345
|
let bits = 0;
|
|
8224
8346
|
const max = object.length;
|
|
8225
|
-
const
|
|
8347
|
+
const map2 = BASE64_MAP;
|
|
8226
8348
|
for (let idx = 0;idx < max; idx++) {
|
|
8227
8349
|
if (idx % 3 === 0 && idx) {
|
|
8228
|
-
result +=
|
|
8229
|
-
result +=
|
|
8230
|
-
result +=
|
|
8231
|
-
result +=
|
|
8350
|
+
result += map2[bits >> 18 & 63];
|
|
8351
|
+
result += map2[bits >> 12 & 63];
|
|
8352
|
+
result += map2[bits >> 6 & 63];
|
|
8353
|
+
result += map2[bits & 63];
|
|
8232
8354
|
}
|
|
8233
8355
|
bits = (bits << 8) + object[idx];
|
|
8234
8356
|
}
|
|
8235
8357
|
const tail = max % 3;
|
|
8236
8358
|
if (tail === 0) {
|
|
8237
|
-
result +=
|
|
8238
|
-
result +=
|
|
8239
|
-
result +=
|
|
8240
|
-
result +=
|
|
8359
|
+
result += map2[bits >> 18 & 63];
|
|
8360
|
+
result += map2[bits >> 12 & 63];
|
|
8361
|
+
result += map2[bits >> 6 & 63];
|
|
8362
|
+
result += map2[bits & 63];
|
|
8241
8363
|
} else if (tail === 2) {
|
|
8242
|
-
result +=
|
|
8243
|
-
result +=
|
|
8244
|
-
result +=
|
|
8245
|
-
result +=
|
|
8364
|
+
result += map2[bits >> 10 & 63];
|
|
8365
|
+
result += map2[bits >> 4 & 63];
|
|
8366
|
+
result += map2[bits << 2 & 63];
|
|
8367
|
+
result += map2[64];
|
|
8246
8368
|
} else if (tail === 1) {
|
|
8247
|
-
result +=
|
|
8248
|
-
result +=
|
|
8249
|
-
result +=
|
|
8250
|
-
result +=
|
|
8369
|
+
result += map2[bits >> 2 & 63];
|
|
8370
|
+
result += map2[bits << 4 & 63];
|
|
8371
|
+
result += map2[64];
|
|
8372
|
+
result += map2[64];
|
|
8251
8373
|
}
|
|
8252
8374
|
return result;
|
|
8253
8375
|
}
|
|
8254
8376
|
function isBinary(obj) {
|
|
8255
8377
|
return Object.prototype.toString.call(obj) === "[object Uint8Array]";
|
|
8256
8378
|
}
|
|
8257
|
-
|
|
8379
|
+
binary = new Type2("tag:yaml.org,2002:binary", {
|
|
8258
8380
|
kind: "scalar",
|
|
8259
8381
|
resolve: resolveYamlBinary,
|
|
8260
8382
|
construct: constructYamlBinary,
|
|
8261
8383
|
predicate: isBinary,
|
|
8262
8384
|
represent: representYamlBinary
|
|
8263
8385
|
});
|
|
8264
|
-
|
|
8265
|
-
|
|
8266
|
-
|
|
8267
|
-
|
|
8268
|
-
|
|
8386
|
+
return binary;
|
|
8387
|
+
}
|
|
8388
|
+
var omap;
|
|
8389
|
+
var hasRequiredOmap;
|
|
8390
|
+
function requireOmap() {
|
|
8391
|
+
if (hasRequiredOmap)
|
|
8392
|
+
return omap;
|
|
8393
|
+
hasRequiredOmap = 1;
|
|
8394
|
+
const Type2 = requireType();
|
|
8395
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
8396
|
+
const _toString = Object.prototype.toString;
|
|
8269
8397
|
function resolveYamlOmap(data) {
|
|
8270
8398
|
if (data === null)
|
|
8271
8399
|
return true;
|
|
@@ -8277,12 +8405,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8277
8405
|
if (_toString.call(pair) !== "[object Object]")
|
|
8278
8406
|
return false;
|
|
8279
8407
|
let pairKey;
|
|
8280
|
-
for (pairKey in pair)
|
|
8281
|
-
if (_hasOwnProperty.call(pair, pairKey))
|
|
8408
|
+
for (pairKey in pair) {
|
|
8409
|
+
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
8282
8410
|
if (!pairHasKey)
|
|
8283
8411
|
pairHasKey = true;
|
|
8284
8412
|
else
|
|
8285
8413
|
return false;
|
|
8414
|
+
}
|
|
8415
|
+
}
|
|
8286
8416
|
if (!pairHasKey)
|
|
8287
8417
|
return false;
|
|
8288
8418
|
if (objectKeys.indexOf(pairKey) === -1)
|
|
@@ -8295,15 +8425,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8295
8425
|
function constructYamlOmap(data) {
|
|
8296
8426
|
return data !== null ? data : [];
|
|
8297
8427
|
}
|
|
8298
|
-
|
|
8428
|
+
omap = new Type2("tag:yaml.org,2002:omap", {
|
|
8299
8429
|
kind: "sequence",
|
|
8300
8430
|
resolve: resolveYamlOmap,
|
|
8301
8431
|
construct: constructYamlOmap
|
|
8302
8432
|
});
|
|
8303
|
-
|
|
8304
|
-
|
|
8305
|
-
|
|
8306
|
-
|
|
8433
|
+
return omap;
|
|
8434
|
+
}
|
|
8435
|
+
var pairs;
|
|
8436
|
+
var hasRequiredPairs;
|
|
8437
|
+
function requirePairs() {
|
|
8438
|
+
if (hasRequiredPairs)
|
|
8439
|
+
return pairs;
|
|
8440
|
+
hasRequiredPairs = 1;
|
|
8441
|
+
const Type2 = requireType();
|
|
8442
|
+
const _toString = Object.prototype.toString;
|
|
8307
8443
|
function resolveYamlPairs(data) {
|
|
8308
8444
|
if (data === null)
|
|
8309
8445
|
return true;
|
|
@@ -8332,64 +8468,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8332
8468
|
}
|
|
8333
8469
|
return result;
|
|
8334
8470
|
}
|
|
8335
|
-
|
|
8471
|
+
pairs = new Type2("tag:yaml.org,2002:pairs", {
|
|
8336
8472
|
kind: "sequence",
|
|
8337
8473
|
resolve: resolveYamlPairs,
|
|
8338
8474
|
construct: constructYamlPairs
|
|
8339
8475
|
});
|
|
8340
|
-
|
|
8341
|
-
|
|
8342
|
-
|
|
8343
|
-
|
|
8476
|
+
return pairs;
|
|
8477
|
+
}
|
|
8478
|
+
var set;
|
|
8479
|
+
var hasRequiredSet;
|
|
8480
|
+
function requireSet() {
|
|
8481
|
+
if (hasRequiredSet)
|
|
8482
|
+
return set;
|
|
8483
|
+
hasRequiredSet = 1;
|
|
8484
|
+
const Type2 = requireType();
|
|
8485
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
8344
8486
|
function resolveYamlSet(data) {
|
|
8345
8487
|
if (data === null)
|
|
8346
8488
|
return true;
|
|
8347
8489
|
const object = data;
|
|
8348
|
-
for (const key in object)
|
|
8490
|
+
for (const key in object) {
|
|
8349
8491
|
if (_hasOwnProperty.call(object, key)) {
|
|
8350
8492
|
if (object[key] !== null)
|
|
8351
8493
|
return false;
|
|
8352
8494
|
}
|
|
8495
|
+
}
|
|
8353
8496
|
return true;
|
|
8354
8497
|
}
|
|
8355
8498
|
function constructYamlSet(data) {
|
|
8356
8499
|
return data !== null ? data : {};
|
|
8357
8500
|
}
|
|
8358
|
-
|
|
8501
|
+
set = new Type2("tag:yaml.org,2002:set", {
|
|
8359
8502
|
kind: "mapping",
|
|
8360
8503
|
resolve: resolveYamlSet,
|
|
8361
8504
|
construct: constructYamlSet
|
|
8362
8505
|
});
|
|
8363
|
-
|
|
8364
|
-
|
|
8365
|
-
|
|
8366
|
-
|
|
8506
|
+
return set;
|
|
8507
|
+
}
|
|
8508
|
+
var _default;
|
|
8509
|
+
var hasRequired_default;
|
|
8510
|
+
function require_default() {
|
|
8511
|
+
if (hasRequired_default)
|
|
8512
|
+
return _default;
|
|
8513
|
+
hasRequired_default = 1;
|
|
8514
|
+
_default = requireCore().extend({
|
|
8515
|
+
implicit: [
|
|
8516
|
+
requireTimestamp(),
|
|
8517
|
+
requireMerge()
|
|
8518
|
+
],
|
|
8367
8519
|
explicit: [
|
|
8368
|
-
|
|
8369
|
-
|
|
8370
|
-
|
|
8371
|
-
|
|
8520
|
+
requireBinary(),
|
|
8521
|
+
requireOmap(),
|
|
8522
|
+
requirePairs(),
|
|
8523
|
+
requireSet()
|
|
8372
8524
|
]
|
|
8373
8525
|
});
|
|
8374
|
-
|
|
8375
|
-
|
|
8376
|
-
|
|
8377
|
-
|
|
8378
|
-
|
|
8379
|
-
|
|
8380
|
-
|
|
8381
|
-
|
|
8382
|
-
|
|
8383
|
-
|
|
8384
|
-
|
|
8385
|
-
|
|
8386
|
-
|
|
8387
|
-
|
|
8388
|
-
|
|
8389
|
-
|
|
8390
|
-
|
|
8391
|
-
|
|
8392
|
-
|
|
8526
|
+
return _default;
|
|
8527
|
+
}
|
|
8528
|
+
var hasRequiredLoader;
|
|
8529
|
+
function requireLoader() {
|
|
8530
|
+
if (hasRequiredLoader)
|
|
8531
|
+
return loader;
|
|
8532
|
+
hasRequiredLoader = 1;
|
|
8533
|
+
const common2 = requireCommon();
|
|
8534
|
+
const YAMLException2 = requireException();
|
|
8535
|
+
const makeSnippet = requireSnippet();
|
|
8536
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
8537
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
8538
|
+
const CONTEXT_FLOW_IN = 1;
|
|
8539
|
+
const CONTEXT_FLOW_OUT = 2;
|
|
8540
|
+
const CONTEXT_BLOCK_IN = 3;
|
|
8541
|
+
const CONTEXT_BLOCK_OUT = 4;
|
|
8542
|
+
const CHOMPING_CLIP = 1;
|
|
8543
|
+
const CHOMPING_STRIP = 2;
|
|
8544
|
+
const CHOMPING_KEEP = 3;
|
|
8545
|
+
const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
8546
|
+
const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
8547
|
+
const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
|
|
8548
|
+
const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
|
|
8549
|
+
const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
8393
8550
|
function _class(obj) {
|
|
8394
8551
|
return Object.prototype.toString.call(obj);
|
|
8395
8552
|
}
|
|
@@ -8406,25 +8563,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8406
8563
|
return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
|
|
8407
8564
|
}
|
|
8408
8565
|
function fromHexCode(c) {
|
|
8409
|
-
if (c >= 48 && c <= 57)
|
|
8566
|
+
if (c >= 48 && c <= 57) {
|
|
8410
8567
|
return c - 48;
|
|
8568
|
+
}
|
|
8411
8569
|
const lc = c | 32;
|
|
8412
|
-
if (lc >= 97 && lc <= 102)
|
|
8570
|
+
if (lc >= 97 && lc <= 102) {
|
|
8413
8571
|
return lc - 97 + 10;
|
|
8572
|
+
}
|
|
8414
8573
|
return -1;
|
|
8415
8574
|
}
|
|
8416
8575
|
function escapedHexLen(c) {
|
|
8417
|
-
if (c === 120)
|
|
8576
|
+
if (c === 120) {
|
|
8418
8577
|
return 2;
|
|
8419
|
-
|
|
8578
|
+
}
|
|
8579
|
+
if (c === 117) {
|
|
8420
8580
|
return 4;
|
|
8421
|
-
|
|
8581
|
+
}
|
|
8582
|
+
if (c === 85) {
|
|
8422
8583
|
return 8;
|
|
8584
|
+
}
|
|
8423
8585
|
return 0;
|
|
8424
8586
|
}
|
|
8425
8587
|
function fromDecimalCode(c) {
|
|
8426
|
-
if (c >= 48 && c <= 57)
|
|
8588
|
+
if (c >= 48 && c <= 57) {
|
|
8427
8589
|
return c - 48;
|
|
8590
|
+
}
|
|
8428
8591
|
return -1;
|
|
8429
8592
|
}
|
|
8430
8593
|
function simpleEscapeSequence(c) {
|
|
@@ -8471,23 +8634,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8471
8634
|
}
|
|
8472
8635
|
}
|
|
8473
8636
|
function charFromCodepoint(c) {
|
|
8474
|
-
if (c <= 65535)
|
|
8637
|
+
if (c <= 65535) {
|
|
8475
8638
|
return String.fromCharCode(c);
|
|
8639
|
+
}
|
|
8476
8640
|
return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
|
|
8477
8641
|
}
|
|
8478
8642
|
function setProperty(object, key, value) {
|
|
8479
|
-
if (key === "__proto__")
|
|
8643
|
+
if (key === "__proto__") {
|
|
8480
8644
|
Object.defineProperty(object, key, {
|
|
8481
8645
|
configurable: true,
|
|
8482
8646
|
enumerable: true,
|
|
8483
8647
|
writable: true,
|
|
8484
8648
|
value
|
|
8485
8649
|
});
|
|
8486
|
-
else
|
|
8650
|
+
} else {
|
|
8487
8651
|
object[key] = value;
|
|
8652
|
+
}
|
|
8488
8653
|
}
|
|
8489
|
-
|
|
8490
|
-
|
|
8654
|
+
const simpleEscapeCheck = new Array(256);
|
|
8655
|
+
const simpleEscapeMap = new Array(256);
|
|
8491
8656
|
for (let i = 0;i < 256; i++) {
|
|
8492
8657
|
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
8493
8658
|
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
@@ -8495,13 +8660,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8495
8660
|
function State(input, options) {
|
|
8496
8661
|
this.input = input;
|
|
8497
8662
|
this.filename = options["filename"] || null;
|
|
8498
|
-
this.schema = options["schema"] ||
|
|
8663
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
8499
8664
|
this.onWarning = options["onWarning"] || null;
|
|
8500
8665
|
this.legacy = options["legacy"] || false;
|
|
8501
8666
|
this.json = options["json"] || false;
|
|
8502
8667
|
this.listener = options["listener"] || null;
|
|
8503
8668
|
this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
|
|
8504
|
-
this.
|
|
8669
|
+
this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
|
|
8505
8670
|
this.implicitTypes = this.schema.compiledImplicit;
|
|
8506
8671
|
this.typeMap = this.schema.compiledTypeMap;
|
|
8507
8672
|
this.length = input.length;
|
|
@@ -8510,6 +8675,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8510
8675
|
this.lineStart = 0;
|
|
8511
8676
|
this.lineIndent = 0;
|
|
8512
8677
|
this.depth = 0;
|
|
8678
|
+
this.totalMergeKeys = 0;
|
|
8513
8679
|
this.firstTabInLine = -1;
|
|
8514
8680
|
this.documents = [];
|
|
8515
8681
|
this.anchorMapTransactions = [];
|
|
@@ -8523,29 +8689,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8523
8689
|
column: state.position - state.lineStart
|
|
8524
8690
|
};
|
|
8525
8691
|
mark.snippet = makeSnippet(mark);
|
|
8526
|
-
return new
|
|
8692
|
+
return new YAMLException2(message, mark);
|
|
8527
8693
|
}
|
|
8528
8694
|
function throwError(state, message) {
|
|
8529
8695
|
throw generateError(state, message);
|
|
8530
8696
|
}
|
|
8531
8697
|
function throwWarning(state, message) {
|
|
8532
|
-
if (state.onWarning)
|
|
8698
|
+
if (state.onWarning) {
|
|
8533
8699
|
state.onWarning.call(null, generateError(state, message));
|
|
8700
|
+
}
|
|
8534
8701
|
}
|
|
8535
8702
|
function storeAnchor(state, name, value) {
|
|
8536
8703
|
const transactions = state.anchorMapTransactions;
|
|
8537
8704
|
if (transactions.length !== 0) {
|
|
8538
8705
|
const transaction = transactions[transactions.length - 1];
|
|
8539
|
-
if (!_hasOwnProperty.call(transaction, name))
|
|
8706
|
+
if (!_hasOwnProperty.call(transaction, name)) {
|
|
8540
8707
|
transaction[name] = {
|
|
8541
8708
|
existed: _hasOwnProperty.call(state.anchorMap, name),
|
|
8542
8709
|
value: state.anchorMap[name]
|
|
8543
8710
|
};
|
|
8711
|
+
}
|
|
8544
8712
|
}
|
|
8545
8713
|
state.anchorMap[name] = value;
|
|
8546
8714
|
}
|
|
8547
8715
|
function beginAnchorTransaction(state) {
|
|
8548
|
-
state.anchorMapTransactions.push(Object.create(null));
|
|
8716
|
+
state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
8549
8717
|
}
|
|
8550
8718
|
function commitAnchorTransaction(state) {
|
|
8551
8719
|
const transaction = state.anchorMapTransactions.pop();
|
|
@@ -8556,8 +8724,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8556
8724
|
const names = Object.keys(transaction);
|
|
8557
8725
|
for (let index = 0, length = names.length;index < length; index += 1) {
|
|
8558
8726
|
const name = names[index];
|
|
8559
|
-
if (!_hasOwnProperty.call(parent, name))
|
|
8727
|
+
if (!_hasOwnProperty.call(parent, name)) {
|
|
8560
8728
|
parent[name] = transaction[name];
|
|
8729
|
+
}
|
|
8561
8730
|
}
|
|
8562
8731
|
}
|
|
8563
8732
|
function rollbackAnchorTransaction(state) {
|
|
@@ -8565,10 +8734,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8565
8734
|
const names = Object.keys(transaction);
|
|
8566
8735
|
for (let index = names.length - 1;index >= 0; index -= 1) {
|
|
8567
8736
|
const entry = transaction[names[index]];
|
|
8568
|
-
if (entry.existed)
|
|
8737
|
+
if (entry.existed) {
|
|
8569
8738
|
state.anchorMap[names[index]] = entry.value;
|
|
8570
|
-
else
|
|
8739
|
+
} else {
|
|
8571
8740
|
delete state.anchorMap[names[index]];
|
|
8741
|
+
}
|
|
8572
8742
|
}
|
|
8573
8743
|
}
|
|
8574
8744
|
function snapshotState(state) {
|
|
@@ -8595,36 +8765,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8595
8765
|
state.kind = snapshot.kind;
|
|
8596
8766
|
state.result = snapshot.result;
|
|
8597
8767
|
}
|
|
8598
|
-
|
|
8768
|
+
const directiveHandlers = {
|
|
8599
8769
|
YAML: function handleYamlDirective(state, name, args) {
|
|
8600
|
-
if (state.version !== null)
|
|
8770
|
+
if (state.version !== null) {
|
|
8601
8771
|
throwError(state, "duplication of %YAML directive");
|
|
8602
|
-
|
|
8772
|
+
}
|
|
8773
|
+
if (args.length !== 1) {
|
|
8603
8774
|
throwError(state, "YAML directive accepts exactly one argument");
|
|
8775
|
+
}
|
|
8604
8776
|
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
8605
|
-
if (match === null)
|
|
8777
|
+
if (match === null) {
|
|
8606
8778
|
throwError(state, "ill-formed argument of the YAML directive");
|
|
8779
|
+
}
|
|
8607
8780
|
const major = parseInt(match[1], 10);
|
|
8608
8781
|
const minor = parseInt(match[2], 10);
|
|
8609
|
-
if (major !== 1)
|
|
8782
|
+
if (major !== 1) {
|
|
8610
8783
|
throwError(state, "unacceptable YAML version of the document");
|
|
8784
|
+
}
|
|
8611
8785
|
state.version = args[0];
|
|
8612
8786
|
state.checkLineBreaks = minor < 2;
|
|
8613
|
-
if (minor !== 1 && minor !== 2)
|
|
8787
|
+
if (minor !== 1 && minor !== 2) {
|
|
8614
8788
|
throwWarning(state, "unsupported YAML version of the document");
|
|
8789
|
+
}
|
|
8615
8790
|
},
|
|
8616
8791
|
TAG: function handleTagDirective(state, name, args) {
|
|
8617
8792
|
let prefix;
|
|
8618
|
-
if (args.length !== 2)
|
|
8793
|
+
if (args.length !== 2) {
|
|
8619
8794
|
throwError(state, "TAG directive accepts exactly two arguments");
|
|
8795
|
+
}
|
|
8620
8796
|
const handle = args[0];
|
|
8621
8797
|
prefix = args[1];
|
|
8622
|
-
if (!PATTERN_TAG_HANDLE.test(handle))
|
|
8798
|
+
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
8623
8799
|
throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
8624
|
-
|
|
8800
|
+
}
|
|
8801
|
+
if (_hasOwnProperty.call(state.tagMap, handle)) {
|
|
8625
8802
|
throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
|
|
8626
|
-
|
|
8803
|
+
}
|
|
8804
|
+
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
8627
8805
|
throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
8806
|
+
}
|
|
8628
8807
|
try {
|
|
8629
8808
|
prefix = decodeURIComponent(prefix);
|
|
8630
8809
|
} catch (err) {
|
|
@@ -8636,23 +8815,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8636
8815
|
function captureSegment(state, start, end, checkJson) {
|
|
8637
8816
|
if (start < end) {
|
|
8638
8817
|
const _result = state.input.slice(start, end);
|
|
8639
|
-
if (checkJson)
|
|
8818
|
+
if (checkJson) {
|
|
8640
8819
|
for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
|
|
8641
8820
|
const _character = _result.charCodeAt(_position);
|
|
8642
|
-
if (!(_character === 9 || _character >= 32 && _character <= 1114111))
|
|
8821
|
+
if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
|
|
8643
8822
|
throwError(state, "expected valid JSON character");
|
|
8823
|
+
}
|
|
8644
8824
|
}
|
|
8645
|
-
else if (PATTERN_NON_PRINTABLE.test(_result))
|
|
8825
|
+
} else if (PATTERN_NON_PRINTABLE.test(_result)) {
|
|
8646
8826
|
throwError(state, "the stream contains non-printable characters");
|
|
8827
|
+
}
|
|
8647
8828
|
state.result += _result;
|
|
8648
8829
|
}
|
|
8649
8830
|
}
|
|
8650
8831
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
8651
|
-
if (!
|
|
8832
|
+
if (!common2.isObject(source)) {
|
|
8652
8833
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
8834
|
+
}
|
|
8653
8835
|
const sourceKeys = Object.keys(source);
|
|
8654
8836
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
8655
8837
|
const key = sourceKeys[index];
|
|
8838
|
+
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
8839
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
8840
|
+
}
|
|
8656
8841
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
8657
8842
|
setProperty(destination, key, source[key]);
|
|
8658
8843
|
overridableKeys[key] = true;
|
|
@@ -8663,32 +8848,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8663
8848
|
if (Array.isArray(keyNode)) {
|
|
8664
8849
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
8665
8850
|
for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
|
|
8666
|
-
if (Array.isArray(keyNode[index]))
|
|
8851
|
+
if (Array.isArray(keyNode[index])) {
|
|
8667
8852
|
throwError(state, "nested arrays are not supported inside keys");
|
|
8668
|
-
|
|
8853
|
+
}
|
|
8854
|
+
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
|
|
8669
8855
|
keyNode[index] = "[object Object]";
|
|
8856
|
+
}
|
|
8670
8857
|
}
|
|
8671
8858
|
}
|
|
8672
|
-
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
|
|
8859
|
+
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
|
|
8673
8860
|
keyNode = "[object Object]";
|
|
8861
|
+
}
|
|
8674
8862
|
keyNode = String(keyNode);
|
|
8675
|
-
if (_result === null)
|
|
8863
|
+
if (_result === null) {
|
|
8676
8864
|
_result = {};
|
|
8677
|
-
|
|
8865
|
+
}
|
|
8866
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
8678
8867
|
if (Array.isArray(valueNode)) {
|
|
8679
|
-
if (valueNode.length > state.maxMergeSeqLength)
|
|
8680
|
-
throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
|
|
8681
|
-
const seen = /* @__PURE__ */ new Set;
|
|
8682
8868
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
8683
|
-
|
|
8684
|
-
if (seen.has(src))
|
|
8685
|
-
continue;
|
|
8686
|
-
seen.add(src);
|
|
8687
|
-
mergeMappings(state, _result, src, overridableKeys);
|
|
8869
|
+
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
8688
8870
|
}
|
|
8689
|
-
} else
|
|
8871
|
+
} else {
|
|
8690
8872
|
mergeMappings(state, _result, valueNode, overridableKeys);
|
|
8691
|
-
|
|
8873
|
+
}
|
|
8874
|
+
} else {
|
|
8692
8875
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
8693
8876
|
state.line = startLine || state.line;
|
|
8694
8877
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -8702,14 +8885,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8702
8885
|
}
|
|
8703
8886
|
function readLineBreak(state) {
|
|
8704
8887
|
const ch = state.input.charCodeAt(state.position);
|
|
8705
|
-
if (ch === 10)
|
|
8888
|
+
if (ch === 10) {
|
|
8706
8889
|
state.position++;
|
|
8707
|
-
else if (ch === 13) {
|
|
8890
|
+
} else if (ch === 13) {
|
|
8708
8891
|
state.position++;
|
|
8709
|
-
if (state.input.charCodeAt(state.position) === 10)
|
|
8892
|
+
if (state.input.charCodeAt(state.position) === 10) {
|
|
8710
8893
|
state.position++;
|
|
8711
|
-
|
|
8894
|
+
}
|
|
8895
|
+
} else {
|
|
8712
8896
|
throwError(state, "a line break is expected");
|
|
8897
|
+
}
|
|
8713
8898
|
state.line += 1;
|
|
8714
8899
|
state.lineStart = state.position;
|
|
8715
8900
|
state.firstTabInLine = -1;
|
|
@@ -8719,14 +8904,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8719
8904
|
let ch = state.input.charCodeAt(state.position);
|
|
8720
8905
|
while (ch !== 0) {
|
|
8721
8906
|
while (isWhiteSpace(ch)) {
|
|
8722
|
-
if (ch === 9 && state.firstTabInLine === -1)
|
|
8907
|
+
if (ch === 9 && state.firstTabInLine === -1) {
|
|
8723
8908
|
state.firstTabInLine = state.position;
|
|
8909
|
+
}
|
|
8724
8910
|
ch = state.input.charCodeAt(++state.position);
|
|
8725
8911
|
}
|
|
8726
|
-
if (allowComments && ch === 35)
|
|
8727
|
-
do
|
|
8912
|
+
if (allowComments && ch === 35) {
|
|
8913
|
+
do {
|
|
8728
8914
|
ch = state.input.charCodeAt(++state.position);
|
|
8729
|
-
while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
8915
|
+
} while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
8916
|
+
}
|
|
8730
8917
|
if (isEol(ch)) {
|
|
8731
8918
|
readLineBreak(state);
|
|
8732
8919
|
ch = state.input.charCodeAt(state.position);
|
|
@@ -8736,11 +8923,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8736
8923
|
state.lineIndent++;
|
|
8737
8924
|
ch = state.input.charCodeAt(++state.position);
|
|
8738
8925
|
}
|
|
8739
|
-
} else
|
|
8926
|
+
} else {
|
|
8740
8927
|
break;
|
|
8928
|
+
}
|
|
8741
8929
|
}
|
|
8742
|
-
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
|
|
8930
|
+
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
|
|
8743
8931
|
throwWarning(state, "deficient indentation");
|
|
8932
|
+
}
|
|
8744
8933
|
return lineBreaks;
|
|
8745
8934
|
}
|
|
8746
8935
|
function testDocumentSeparator(state) {
|
|
@@ -8749,17 +8938,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8749
8938
|
if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
|
|
8750
8939
|
_position += 3;
|
|
8751
8940
|
ch = state.input.charCodeAt(_position);
|
|
8752
|
-
if (ch === 0 || isWsOrEol(ch))
|
|
8941
|
+
if (ch === 0 || isWsOrEol(ch)) {
|
|
8753
8942
|
return true;
|
|
8943
|
+
}
|
|
8754
8944
|
}
|
|
8755
8945
|
return false;
|
|
8756
8946
|
}
|
|
8757
8947
|
function writeFoldedLines(state, count) {
|
|
8758
|
-
if (count === 1)
|
|
8948
|
+
if (count === 1) {
|
|
8759
8949
|
state.result += " ";
|
|
8760
|
-
else if (count > 1)
|
|
8761
|
-
state.result +=
|
|
8950
|
+
} else if (count > 1) {
|
|
8951
|
+
state.result += common2.repeat(`
|
|
8762
8952
|
`, count - 1);
|
|
8953
|
+
}
|
|
8763
8954
|
}
|
|
8764
8955
|
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
8765
8956
|
let captureStart;
|
|
@@ -8771,12 +8962,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8771
8962
|
const _kind = state.kind;
|
|
8772
8963
|
const _result = state.result;
|
|
8773
8964
|
let ch = state.input.charCodeAt(state.position);
|
|
8774
|
-
if (isWsOrEol(ch) || isFlowIndicator(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96)
|
|
8965
|
+
if (isWsOrEol(ch) || isFlowIndicator(ch) || ch === 35 || ch === 38 || ch === 42 || ch === 33 || ch === 124 || ch === 62 || ch === 39 || ch === 34 || ch === 37 || ch === 64 || ch === 96) {
|
|
8775
8966
|
return false;
|
|
8967
|
+
}
|
|
8776
8968
|
if (ch === 63 || ch === 45) {
|
|
8777
8969
|
const following = state.input.charCodeAt(state.position + 1);
|
|
8778
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
8970
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
8779
8971
|
return false;
|
|
8972
|
+
}
|
|
8780
8973
|
}
|
|
8781
8974
|
state.kind = "scalar";
|
|
8782
8975
|
state.result = "";
|
|
@@ -8785,14 +8978,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8785
8978
|
while (ch !== 0) {
|
|
8786
8979
|
if (ch === 58) {
|
|
8787
8980
|
const following = state.input.charCodeAt(state.position + 1);
|
|
8788
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
8981
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
8789
8982
|
break;
|
|
8983
|
+
}
|
|
8790
8984
|
} else if (ch === 35) {
|
|
8791
|
-
|
|
8985
|
+
const preceding = state.input.charCodeAt(state.position - 1);
|
|
8986
|
+
if (isWsOrEol(preceding)) {
|
|
8792
8987
|
break;
|
|
8793
|
-
|
|
8988
|
+
}
|
|
8989
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
|
|
8794
8990
|
break;
|
|
8795
|
-
else if (isEol(ch)) {
|
|
8991
|
+
} else if (isEol(ch)) {
|
|
8796
8992
|
_line = state.line;
|
|
8797
8993
|
_lineStart = state.lineStart;
|
|
8798
8994
|
_lineIndent = state.lineIndent;
|
|
@@ -8815,13 +9011,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8815
9011
|
captureStart = captureEnd = state.position;
|
|
8816
9012
|
hasPendingContent = false;
|
|
8817
9013
|
}
|
|
8818
|
-
if (!isWhiteSpace(ch))
|
|
9014
|
+
if (!isWhiteSpace(ch)) {
|
|
8819
9015
|
captureEnd = state.position + 1;
|
|
9016
|
+
}
|
|
8820
9017
|
ch = state.input.charCodeAt(++state.position);
|
|
8821
9018
|
}
|
|
8822
9019
|
captureSegment(state, captureStart, captureEnd, false);
|
|
8823
|
-
if (state.result)
|
|
9020
|
+
if (state.result) {
|
|
8824
9021
|
return true;
|
|
9022
|
+
}
|
|
8825
9023
|
state.kind = _kind;
|
|
8826
9024
|
state.result = _result;
|
|
8827
9025
|
return false;
|
|
@@ -8830,13 +9028,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8830
9028
|
let captureStart;
|
|
8831
9029
|
let captureEnd;
|
|
8832
9030
|
let ch = state.input.charCodeAt(state.position);
|
|
8833
|
-
if (ch !== 39)
|
|
9031
|
+
if (ch !== 39) {
|
|
8834
9032
|
return false;
|
|
9033
|
+
}
|
|
8835
9034
|
state.kind = "scalar";
|
|
8836
9035
|
state.result = "";
|
|
8837
9036
|
state.position++;
|
|
8838
9037
|
captureStart = captureEnd = state.position;
|
|
8839
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
9038
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
8840
9039
|
if (ch === 39) {
|
|
8841
9040
|
captureSegment(state, captureStart, state.position, true);
|
|
8842
9041
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -8844,19 +9043,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8844
9043
|
captureStart = state.position;
|
|
8845
9044
|
state.position++;
|
|
8846
9045
|
captureEnd = state.position;
|
|
8847
|
-
} else
|
|
9046
|
+
} else {
|
|
8848
9047
|
return true;
|
|
9048
|
+
}
|
|
8849
9049
|
} else if (isEol(ch)) {
|
|
8850
9050
|
captureSegment(state, captureStart, captureEnd, true);
|
|
8851
9051
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
8852
9052
|
captureStart = captureEnd = state.position;
|
|
8853
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
9053
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
8854
9054
|
throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
8855
|
-
else {
|
|
9055
|
+
} else {
|
|
8856
9056
|
state.position++;
|
|
8857
|
-
if (!isWhiteSpace(ch))
|
|
9057
|
+
if (!isWhiteSpace(ch)) {
|
|
8858
9058
|
captureEnd = state.position;
|
|
9059
|
+
}
|
|
8859
9060
|
}
|
|
9061
|
+
}
|
|
8860
9062
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
8861
9063
|
}
|
|
8862
9064
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
@@ -8864,13 +9066,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8864
9066
|
let captureEnd;
|
|
8865
9067
|
let tmp;
|
|
8866
9068
|
let ch = state.input.charCodeAt(state.position);
|
|
8867
|
-
if (ch !== 34)
|
|
9069
|
+
if (ch !== 34) {
|
|
8868
9070
|
return false;
|
|
9071
|
+
}
|
|
8869
9072
|
state.kind = "scalar";
|
|
8870
9073
|
state.result = "";
|
|
8871
9074
|
state.position++;
|
|
8872
9075
|
captureStart = captureEnd = state.position;
|
|
8873
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
9076
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
8874
9077
|
if (ch === 34) {
|
|
8875
9078
|
captureSegment(state, captureStart, state.position, true);
|
|
8876
9079
|
state.position++;
|
|
@@ -8878,9 +9081,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8878
9081
|
} else if (ch === 92) {
|
|
8879
9082
|
captureSegment(state, captureStart, state.position, true);
|
|
8880
9083
|
ch = state.input.charCodeAt(++state.position);
|
|
8881
|
-
if (isEol(ch))
|
|
9084
|
+
if (isEol(ch)) {
|
|
8882
9085
|
skipSeparationSpace(state, false, nodeIndent);
|
|
8883
|
-
else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
9086
|
+
} else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
8884
9087
|
state.result += simpleEscapeMap[ch];
|
|
8885
9088
|
state.position++;
|
|
8886
9089
|
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
@@ -8888,27 +9091,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8888
9091
|
let hexResult = 0;
|
|
8889
9092
|
for (;hexLength > 0; hexLength--) {
|
|
8890
9093
|
ch = state.input.charCodeAt(++state.position);
|
|
8891
|
-
if ((tmp = fromHexCode(ch)) >= 0)
|
|
9094
|
+
if ((tmp = fromHexCode(ch)) >= 0) {
|
|
8892
9095
|
hexResult = (hexResult << 4) + tmp;
|
|
8893
|
-
else
|
|
9096
|
+
} else {
|
|
8894
9097
|
throwError(state, "expected hexadecimal character");
|
|
9098
|
+
}
|
|
8895
9099
|
}
|
|
8896
9100
|
state.result += charFromCodepoint(hexResult);
|
|
8897
9101
|
state.position++;
|
|
8898
|
-
} else
|
|
9102
|
+
} else {
|
|
8899
9103
|
throwError(state, "unknown escape sequence");
|
|
9104
|
+
}
|
|
8900
9105
|
captureStart = captureEnd = state.position;
|
|
8901
9106
|
} else if (isEol(ch)) {
|
|
8902
9107
|
captureSegment(state, captureStart, captureEnd, true);
|
|
8903
9108
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
8904
9109
|
captureStart = captureEnd = state.position;
|
|
8905
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
9110
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
8906
9111
|
throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
8907
|
-
else {
|
|
9112
|
+
} else {
|
|
8908
9113
|
state.position++;
|
|
8909
|
-
if (!isWhiteSpace(ch))
|
|
9114
|
+
if (!isWhiteSpace(ch)) {
|
|
8910
9115
|
captureEnd = state.position;
|
|
9116
|
+
}
|
|
8911
9117
|
}
|
|
9118
|
+
}
|
|
8912
9119
|
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
8913
9120
|
}
|
|
8914
9121
|
function readFlowCollection(state, nodeIndent) {
|
|
@@ -8923,7 +9130,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8923
9130
|
let isPair;
|
|
8924
9131
|
let isExplicitPair;
|
|
8925
9132
|
let isMapping;
|
|
8926
|
-
const overridableKeys = Object.create(null);
|
|
9133
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
8927
9134
|
let keyNode;
|
|
8928
9135
|
let keyTag;
|
|
8929
9136
|
let valueNode;
|
|
@@ -8936,10 +9143,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8936
9143
|
terminator = 125;
|
|
8937
9144
|
isMapping = true;
|
|
8938
9145
|
_result = {};
|
|
8939
|
-
} else
|
|
9146
|
+
} else {
|
|
8940
9147
|
return false;
|
|
8941
|
-
|
|
9148
|
+
}
|
|
9149
|
+
if (state.anchor !== null) {
|
|
8942
9150
|
storeAnchor(state, state.anchor, _result);
|
|
9151
|
+
}
|
|
8943
9152
|
ch = state.input.charCodeAt(++state.position);
|
|
8944
9153
|
while (ch !== 0) {
|
|
8945
9154
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -8951,14 +9160,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8951
9160
|
state.kind = isMapping ? "mapping" : "sequence";
|
|
8952
9161
|
state.result = _result;
|
|
8953
9162
|
return true;
|
|
8954
|
-
} else if (!readNext)
|
|
9163
|
+
} else if (!readNext) {
|
|
8955
9164
|
throwError(state, "missed comma between flow collection entries");
|
|
8956
|
-
else if (ch === 44)
|
|
9165
|
+
} else if (ch === 44) {
|
|
8957
9166
|
throwError(state, "expected the node content, but found ','");
|
|
9167
|
+
}
|
|
8958
9168
|
keyTag = keyNode = valueNode = null;
|
|
8959
9169
|
isPair = isExplicitPair = false;
|
|
8960
9170
|
if (ch === 63) {
|
|
8961
|
-
|
|
9171
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
9172
|
+
if (isWsOrEol(following)) {
|
|
8962
9173
|
isPair = isExplicitPair = true;
|
|
8963
9174
|
state.position++;
|
|
8964
9175
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -8979,19 +9190,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
8979
9190
|
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
8980
9191
|
valueNode = state.result;
|
|
8981
9192
|
}
|
|
8982
|
-
if (isMapping)
|
|
9193
|
+
if (isMapping) {
|
|
8983
9194
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
|
|
8984
|
-
else if (isPair)
|
|
9195
|
+
} else if (isPair) {
|
|
8985
9196
|
_result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
|
|
8986
|
-
else
|
|
9197
|
+
} else {
|
|
8987
9198
|
_result.push(keyNode);
|
|
9199
|
+
}
|
|
8988
9200
|
skipSeparationSpace(state, true, nodeIndent);
|
|
8989
9201
|
ch = state.input.charCodeAt(state.position);
|
|
8990
9202
|
if (ch === 44) {
|
|
8991
9203
|
readNext = true;
|
|
8992
9204
|
ch = state.input.charCodeAt(++state.position);
|
|
8993
|
-
} else
|
|
9205
|
+
} else {
|
|
8994
9206
|
readNext = false;
|
|
9207
|
+
}
|
|
8995
9208
|
}
|
|
8996
9209
|
throwError(state, "unexpected end of the stream within a flow collection");
|
|
8997
9210
|
}
|
|
@@ -9005,40 +9218,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9005
9218
|
let atMoreIndented = false;
|
|
9006
9219
|
let tmp;
|
|
9007
9220
|
let ch = state.input.charCodeAt(state.position);
|
|
9008
|
-
if (ch === 124)
|
|
9221
|
+
if (ch === 124) {
|
|
9009
9222
|
folding = false;
|
|
9010
|
-
else if (ch === 62)
|
|
9223
|
+
} else if (ch === 62) {
|
|
9011
9224
|
folding = true;
|
|
9012
|
-
else
|
|
9225
|
+
} else {
|
|
9013
9226
|
return false;
|
|
9227
|
+
}
|
|
9014
9228
|
state.kind = "scalar";
|
|
9015
9229
|
state.result = "";
|
|
9016
9230
|
while (ch !== 0) {
|
|
9017
9231
|
ch = state.input.charCodeAt(++state.position);
|
|
9018
|
-
if (ch === 43 || ch === 45)
|
|
9019
|
-
if (CHOMPING_CLIP === chomping)
|
|
9232
|
+
if (ch === 43 || ch === 45) {
|
|
9233
|
+
if (CHOMPING_CLIP === chomping) {
|
|
9020
9234
|
chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
9021
|
-
else
|
|
9235
|
+
} else {
|
|
9022
9236
|
throwError(state, "repeat of a chomping mode identifier");
|
|
9023
|
-
|
|
9024
|
-
|
|
9237
|
+
}
|
|
9238
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
9239
|
+
if (tmp === 0) {
|
|
9025
9240
|
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
9026
|
-
else if (!detectedIndent) {
|
|
9241
|
+
} else if (!detectedIndent) {
|
|
9027
9242
|
textIndent = nodeIndent + tmp - 1;
|
|
9028
9243
|
detectedIndent = true;
|
|
9029
|
-
} else
|
|
9244
|
+
} else {
|
|
9030
9245
|
throwError(state, "repeat of an indentation width identifier");
|
|
9031
|
-
|
|
9246
|
+
}
|
|
9247
|
+
} else {
|
|
9032
9248
|
break;
|
|
9249
|
+
}
|
|
9033
9250
|
}
|
|
9034
9251
|
if (isWhiteSpace(ch)) {
|
|
9035
|
-
do
|
|
9252
|
+
do {
|
|
9036
9253
|
ch = state.input.charCodeAt(++state.position);
|
|
9037
|
-
while (isWhiteSpace(ch));
|
|
9038
|
-
if (ch === 35)
|
|
9039
|
-
do
|
|
9254
|
+
} while (isWhiteSpace(ch));
|
|
9255
|
+
if (ch === 35) {
|
|
9256
|
+
do {
|
|
9040
9257
|
ch = state.input.charCodeAt(++state.position);
|
|
9041
|
-
while (!isEol(ch) && ch !== 0);
|
|
9258
|
+
} while (!isEol(ch) && ch !== 0);
|
|
9259
|
+
}
|
|
9042
9260
|
}
|
|
9043
9261
|
while (ch !== 0) {
|
|
9044
9262
|
readLineBreak(state);
|
|
@@ -9048,49 +9266,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9048
9266
|
state.lineIndent++;
|
|
9049
9267
|
ch = state.input.charCodeAt(++state.position);
|
|
9050
9268
|
}
|
|
9051
|
-
if (!detectedIndent && state.lineIndent > textIndent)
|
|
9269
|
+
if (!detectedIndent && state.lineIndent > textIndent) {
|
|
9052
9270
|
textIndent = state.lineIndent;
|
|
9271
|
+
}
|
|
9053
9272
|
if (isEol(ch)) {
|
|
9054
9273
|
emptyLines++;
|
|
9055
9274
|
continue;
|
|
9056
9275
|
}
|
|
9057
|
-
if (!detectedIndent && textIndent === 0)
|
|
9276
|
+
if (!detectedIndent && textIndent === 0) {
|
|
9058
9277
|
throwError(state, "missing indentation for block scalar");
|
|
9278
|
+
}
|
|
9059
9279
|
if (state.lineIndent < textIndent) {
|
|
9060
|
-
if (chomping === CHOMPING_KEEP)
|
|
9061
|
-
state.result +=
|
|
9280
|
+
if (chomping === CHOMPING_KEEP) {
|
|
9281
|
+
state.result += common2.repeat(`
|
|
9062
9282
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
9063
|
-
else if (chomping === CHOMPING_CLIP) {
|
|
9064
|
-
if (didReadContent)
|
|
9283
|
+
} else if (chomping === CHOMPING_CLIP) {
|
|
9284
|
+
if (didReadContent) {
|
|
9065
9285
|
state.result += `
|
|
9066
9286
|
`;
|
|
9287
|
+
}
|
|
9067
9288
|
}
|
|
9068
9289
|
break;
|
|
9069
9290
|
}
|
|
9070
|
-
if (folding)
|
|
9291
|
+
if (folding) {
|
|
9071
9292
|
if (isWhiteSpace(ch)) {
|
|
9072
9293
|
atMoreIndented = true;
|
|
9073
|
-
state.result +=
|
|
9294
|
+
state.result += common2.repeat(`
|
|
9074
9295
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
9075
9296
|
} else if (atMoreIndented) {
|
|
9076
9297
|
atMoreIndented = false;
|
|
9077
|
-
state.result +=
|
|
9298
|
+
state.result += common2.repeat(`
|
|
9078
9299
|
`, emptyLines + 1);
|
|
9079
9300
|
} else if (emptyLines === 0) {
|
|
9080
|
-
if (didReadContent)
|
|
9301
|
+
if (didReadContent) {
|
|
9081
9302
|
state.result += " ";
|
|
9082
|
-
|
|
9083
|
-
|
|
9303
|
+
}
|
|
9304
|
+
} else {
|
|
9305
|
+
state.result += common2.repeat(`
|
|
9084
9306
|
`, emptyLines);
|
|
9085
|
-
|
|
9086
|
-
|
|
9307
|
+
}
|
|
9308
|
+
} else {
|
|
9309
|
+
state.result += common2.repeat(`
|
|
9087
9310
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
9311
|
+
}
|
|
9088
9312
|
didReadContent = true;
|
|
9089
9313
|
detectedIndent = true;
|
|
9090
9314
|
emptyLines = 0;
|
|
9091
9315
|
const captureStart = state.position;
|
|
9092
|
-
while (!isEol(ch) && ch !== 0)
|
|
9316
|
+
while (!isEol(ch) && ch !== 0) {
|
|
9093
9317
|
ch = state.input.charCodeAt(++state.position);
|
|
9318
|
+
}
|
|
9094
9319
|
captureSegment(state, captureStart, state.position, false);
|
|
9095
9320
|
}
|
|
9096
9321
|
return true;
|
|
@@ -9102,18 +9327,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9102
9327
|
let detected = false;
|
|
9103
9328
|
if (state.firstTabInLine !== -1)
|
|
9104
9329
|
return false;
|
|
9105
|
-
if (state.anchor !== null)
|
|
9330
|
+
if (state.anchor !== null) {
|
|
9106
9331
|
storeAnchor(state, state.anchor, _result);
|
|
9332
|
+
}
|
|
9107
9333
|
let ch = state.input.charCodeAt(state.position);
|
|
9108
9334
|
while (ch !== 0) {
|
|
9109
9335
|
if (state.firstTabInLine !== -1) {
|
|
9110
9336
|
state.position = state.firstTabInLine;
|
|
9111
9337
|
throwError(state, "tab characters must not be used in indentation");
|
|
9112
9338
|
}
|
|
9113
|
-
if (ch !== 45)
|
|
9339
|
+
if (ch !== 45) {
|
|
9114
9340
|
break;
|
|
9115
|
-
|
|
9341
|
+
}
|
|
9342
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
9343
|
+
if (!isWsOrEol(following)) {
|
|
9116
9344
|
break;
|
|
9345
|
+
}
|
|
9117
9346
|
detected = true;
|
|
9118
9347
|
state.position++;
|
|
9119
9348
|
if (skipSeparationSpace(state, true, -1)) {
|
|
@@ -9128,10 +9357,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9128
9357
|
_result.push(state.result);
|
|
9129
9358
|
skipSeparationSpace(state, true, -1);
|
|
9130
9359
|
ch = state.input.charCodeAt(state.position);
|
|
9131
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
9360
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
9132
9361
|
throwError(state, "bad indentation of a sequence entry");
|
|
9133
|
-
else if (state.lineIndent < nodeIndent)
|
|
9362
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
9134
9363
|
break;
|
|
9364
|
+
}
|
|
9135
9365
|
}
|
|
9136
9366
|
if (detected) {
|
|
9137
9367
|
state.tag = _tag;
|
|
@@ -9150,7 +9380,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9150
9380
|
const _tag = state.tag;
|
|
9151
9381
|
const _anchor = state.anchor;
|
|
9152
9382
|
const _result = {};
|
|
9153
|
-
const overridableKeys = Object.create(null);
|
|
9383
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
9154
9384
|
let keyTag = null;
|
|
9155
9385
|
let keyNode = null;
|
|
9156
9386
|
let valueNode = null;
|
|
@@ -9158,8 +9388,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9158
9388
|
let detected = false;
|
|
9159
9389
|
if (state.firstTabInLine !== -1)
|
|
9160
9390
|
return false;
|
|
9161
|
-
if (state.anchor !== null)
|
|
9391
|
+
if (state.anchor !== null) {
|
|
9162
9392
|
storeAnchor(state, state.anchor, _result);
|
|
9393
|
+
}
|
|
9163
9394
|
let ch = state.input.charCodeAt(state.position);
|
|
9164
9395
|
while (ch !== 0) {
|
|
9165
9396
|
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
@@ -9180,24 +9411,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9180
9411
|
} else if (atExplicitKey) {
|
|
9181
9412
|
atExplicitKey = false;
|
|
9182
9413
|
allowCompact = true;
|
|
9183
|
-
} else
|
|
9414
|
+
} else {
|
|
9184
9415
|
throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
9416
|
+
}
|
|
9185
9417
|
state.position += 1;
|
|
9186
9418
|
ch = following;
|
|
9187
9419
|
} else {
|
|
9188
9420
|
_keyLine = state.line;
|
|
9189
9421
|
_keyLineStart = state.lineStart;
|
|
9190
9422
|
_keyPos = state.position;
|
|
9191
|
-
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
|
|
9423
|
+
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
9192
9424
|
break;
|
|
9425
|
+
}
|
|
9193
9426
|
if (state.line === _line) {
|
|
9194
9427
|
ch = state.input.charCodeAt(state.position);
|
|
9195
|
-
while (isWhiteSpace(ch))
|
|
9428
|
+
while (isWhiteSpace(ch)) {
|
|
9196
9429
|
ch = state.input.charCodeAt(++state.position);
|
|
9430
|
+
}
|
|
9197
9431
|
if (ch === 58) {
|
|
9198
9432
|
ch = state.input.charCodeAt(++state.position);
|
|
9199
|
-
if (!isWsOrEol(ch))
|
|
9433
|
+
if (!isWsOrEol(ch)) {
|
|
9200
9434
|
throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
9435
|
+
}
|
|
9201
9436
|
if (atExplicitKey) {
|
|
9202
9437
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
9203
9438
|
keyTag = keyNode = valueNode = null;
|
|
@@ -9207,16 +9442,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9207
9442
|
allowCompact = false;
|
|
9208
9443
|
keyTag = state.tag;
|
|
9209
9444
|
keyNode = state.result;
|
|
9210
|
-
} else if (detected)
|
|
9445
|
+
} else if (detected) {
|
|
9211
9446
|
throwError(state, "can not read an implicit mapping pair; a colon is missed");
|
|
9212
|
-
else {
|
|
9447
|
+
} else {
|
|
9213
9448
|
state.tag = _tag;
|
|
9214
9449
|
state.anchor = _anchor;
|
|
9215
9450
|
return true;
|
|
9216
9451
|
}
|
|
9217
|
-
} else if (detected)
|
|
9452
|
+
} else if (detected) {
|
|
9218
9453
|
throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
9219
|
-
else {
|
|
9454
|
+
} else {
|
|
9220
9455
|
state.tag = _tag;
|
|
9221
9456
|
state.anchor = _anchor;
|
|
9222
9457
|
return true;
|
|
@@ -9228,11 +9463,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9228
9463
|
_keyLineStart = state.lineStart;
|
|
9229
9464
|
_keyPos = state.position;
|
|
9230
9465
|
}
|
|
9231
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
9232
|
-
if (atExplicitKey)
|
|
9466
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
9467
|
+
if (atExplicitKey) {
|
|
9233
9468
|
keyNode = state.result;
|
|
9234
|
-
else
|
|
9469
|
+
} else {
|
|
9235
9470
|
valueNode = state.result;
|
|
9471
|
+
}
|
|
9472
|
+
}
|
|
9236
9473
|
if (!atExplicitKey) {
|
|
9237
9474
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
9238
9475
|
keyTag = keyNode = valueNode = null;
|
|
@@ -9240,13 +9477,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9240
9477
|
skipSeparationSpace(state, true, -1);
|
|
9241
9478
|
ch = state.input.charCodeAt(state.position);
|
|
9242
9479
|
}
|
|
9243
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
9480
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
9244
9481
|
throwError(state, "bad indentation of a mapping entry");
|
|
9245
|
-
else if (state.lineIndent < nodeIndent)
|
|
9482
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
9246
9483
|
break;
|
|
9484
|
+
}
|
|
9247
9485
|
}
|
|
9248
|
-
if (atExplicitKey)
|
|
9486
|
+
if (atExplicitKey) {
|
|
9249
9487
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
9488
|
+
}
|
|
9250
9489
|
if (detected) {
|
|
9251
9490
|
state.tag = _tag;
|
|
9252
9491
|
state.anchor = _anchor;
|
|
@@ -9263,8 +9502,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9263
9502
|
let ch = state.input.charCodeAt(state.position);
|
|
9264
9503
|
if (ch !== 33)
|
|
9265
9504
|
return false;
|
|
9266
|
-
if (state.tag !== null)
|
|
9505
|
+
if (state.tag !== null) {
|
|
9267
9506
|
throwError(state, "duplication of a tag property");
|
|
9507
|
+
}
|
|
9268
9508
|
ch = state.input.charCodeAt(++state.position);
|
|
9269
9509
|
if (ch === 60) {
|
|
9270
9510
|
isVerbatim = true;
|
|
@@ -9273,66 +9513,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9273
9513
|
isNamed = true;
|
|
9274
9514
|
tagHandle = "!!";
|
|
9275
9515
|
ch = state.input.charCodeAt(++state.position);
|
|
9276
|
-
} else
|
|
9516
|
+
} else {
|
|
9277
9517
|
tagHandle = "!";
|
|
9518
|
+
}
|
|
9278
9519
|
let _position = state.position;
|
|
9279
9520
|
if (isVerbatim) {
|
|
9280
|
-
do
|
|
9521
|
+
do {
|
|
9281
9522
|
ch = state.input.charCodeAt(++state.position);
|
|
9282
|
-
while (ch !== 0 && ch !== 62);
|
|
9523
|
+
} while (ch !== 0 && ch !== 62);
|
|
9283
9524
|
if (state.position < state.length) {
|
|
9284
9525
|
tagName = state.input.slice(_position, state.position);
|
|
9285
9526
|
ch = state.input.charCodeAt(++state.position);
|
|
9286
|
-
} else
|
|
9527
|
+
} else {
|
|
9287
9528
|
throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
9529
|
+
}
|
|
9288
9530
|
} else {
|
|
9289
9531
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
9290
|
-
if (ch === 33)
|
|
9532
|
+
if (ch === 33) {
|
|
9291
9533
|
if (!isNamed) {
|
|
9292
9534
|
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
9293
|
-
if (!PATTERN_TAG_HANDLE.test(tagHandle))
|
|
9535
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
9294
9536
|
throwError(state, "named tag handle cannot contain such characters");
|
|
9537
|
+
}
|
|
9295
9538
|
isNamed = true;
|
|
9296
9539
|
_position = state.position + 1;
|
|
9297
|
-
} else
|
|
9540
|
+
} else {
|
|
9298
9541
|
throwError(state, "tag suffix cannot contain exclamation marks");
|
|
9542
|
+
}
|
|
9543
|
+
}
|
|
9299
9544
|
ch = state.input.charCodeAt(++state.position);
|
|
9300
9545
|
}
|
|
9301
9546
|
tagName = state.input.slice(_position, state.position);
|
|
9302
|
-
if (PATTERN_FLOW_INDICATORS.test(tagName))
|
|
9547
|
+
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
9303
9548
|
throwError(state, "tag suffix cannot contain flow indicator characters");
|
|
9549
|
+
}
|
|
9304
9550
|
}
|
|
9305
|
-
if (tagName && !PATTERN_TAG_URI.test(tagName))
|
|
9551
|
+
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
9306
9552
|
throwError(state, "tag name cannot contain such characters: " + tagName);
|
|
9553
|
+
}
|
|
9307
9554
|
try {
|
|
9308
9555
|
tagName = decodeURIComponent(tagName);
|
|
9309
9556
|
} catch (err) {
|
|
9310
9557
|
throwError(state, "tag name is malformed: " + tagName);
|
|
9311
9558
|
}
|
|
9312
|
-
if (isVerbatim)
|
|
9559
|
+
if (isVerbatim) {
|
|
9313
9560
|
state.tag = tagName;
|
|
9314
|
-
else if (_hasOwnProperty.call(state.tagMap, tagHandle))
|
|
9561
|
+
} else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
|
|
9315
9562
|
state.tag = state.tagMap[tagHandle] + tagName;
|
|
9316
|
-
else if (tagHandle === "!")
|
|
9563
|
+
} else if (tagHandle === "!") {
|
|
9317
9564
|
state.tag = "!" + tagName;
|
|
9318
|
-
else if (tagHandle === "!!")
|
|
9565
|
+
} else if (tagHandle === "!!") {
|
|
9319
9566
|
state.tag = "tag:yaml.org,2002:" + tagName;
|
|
9320
|
-
else
|
|
9567
|
+
} else {
|
|
9321
9568
|
throwError(state, 'undeclared tag handle "' + tagHandle + '"');
|
|
9569
|
+
}
|
|
9322
9570
|
return true;
|
|
9323
9571
|
}
|
|
9324
9572
|
function readAnchorProperty(state) {
|
|
9325
9573
|
let ch = state.input.charCodeAt(state.position);
|
|
9326
9574
|
if (ch !== 38)
|
|
9327
9575
|
return false;
|
|
9328
|
-
if (state.anchor !== null)
|
|
9576
|
+
if (state.anchor !== null) {
|
|
9329
9577
|
throwError(state, "duplication of an anchor property");
|
|
9578
|
+
}
|
|
9330
9579
|
ch = state.input.charCodeAt(++state.position);
|
|
9331
9580
|
const _position = state.position;
|
|
9332
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
9581
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
9333
9582
|
ch = state.input.charCodeAt(++state.position);
|
|
9334
|
-
|
|
9583
|
+
}
|
|
9584
|
+
if (state.position === _position) {
|
|
9335
9585
|
throwError(state, "name of an anchor node must contain at least one character");
|
|
9586
|
+
}
|
|
9336
9587
|
state.anchor = state.input.slice(_position, state.position);
|
|
9337
9588
|
return true;
|
|
9338
9589
|
}
|
|
@@ -9342,13 +9593,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9342
9593
|
return false;
|
|
9343
9594
|
ch = state.input.charCodeAt(++state.position);
|
|
9344
9595
|
const _position = state.position;
|
|
9345
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
9596
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
9346
9597
|
ch = state.input.charCodeAt(++state.position);
|
|
9347
|
-
|
|
9598
|
+
}
|
|
9599
|
+
if (state.position === _position) {
|
|
9348
9600
|
throwError(state, "name of an alias node must contain at least one character");
|
|
9601
|
+
}
|
|
9349
9602
|
const alias = state.input.slice(_position, state.position);
|
|
9350
|
-
if (!_hasOwnProperty.call(state.anchorMap, alias))
|
|
9603
|
+
if (!_hasOwnProperty.call(state.anchorMap, alias)) {
|
|
9351
9604
|
throwError(state, 'unidentified alias "' + alias + '"');
|
|
9605
|
+
}
|
|
9352
9606
|
state.result = state.anchorMap[alias];
|
|
9353
9607
|
skipSeparationSpace(state, true, -1);
|
|
9354
9608
|
return true;
|
|
@@ -9376,14 +9630,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9376
9630
|
let atNewLine = false;
|
|
9377
9631
|
let hasContent = false;
|
|
9378
9632
|
let propertyStart = null;
|
|
9379
|
-
let
|
|
9633
|
+
let type2;
|
|
9380
9634
|
let flowIndent;
|
|
9381
9635
|
let blockIndent;
|
|
9382
|
-
if (state.depth >= state.maxDepth)
|
|
9636
|
+
if (state.depth >= state.maxDepth) {
|
|
9383
9637
|
throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
|
|
9638
|
+
}
|
|
9384
9639
|
state.depth += 1;
|
|
9385
|
-
if (state.listener !== null)
|
|
9640
|
+
if (state.listener !== null) {
|
|
9386
9641
|
state.listener("open", state);
|
|
9642
|
+
}
|
|
9387
9643
|
state.tag = null;
|
|
9388
9644
|
state.anchor = null;
|
|
9389
9645
|
state.kind = null;
|
|
@@ -9392,110 +9648,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9392
9648
|
if (allowToSeek) {
|
|
9393
9649
|
if (skipSeparationSpace(state, true, -1)) {
|
|
9394
9650
|
atNewLine = true;
|
|
9395
|
-
if (state.lineIndent > parentIndent)
|
|
9651
|
+
if (state.lineIndent > parentIndent) {
|
|
9396
9652
|
indentStatus = 1;
|
|
9397
|
-
else if (state.lineIndent === parentIndent)
|
|
9653
|
+
} else if (state.lineIndent === parentIndent) {
|
|
9398
9654
|
indentStatus = 0;
|
|
9399
|
-
else if (state.lineIndent < parentIndent)
|
|
9655
|
+
} else if (state.lineIndent < parentIndent) {
|
|
9400
9656
|
indentStatus = -1;
|
|
9657
|
+
}
|
|
9401
9658
|
}
|
|
9402
9659
|
}
|
|
9403
|
-
if (indentStatus === 1)
|
|
9660
|
+
if (indentStatus === 1) {
|
|
9404
9661
|
while (true) {
|
|
9405
9662
|
const ch = state.input.charCodeAt(state.position);
|
|
9406
9663
|
const propertyState = snapshotState(state);
|
|
9407
|
-
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
|
|
9664
|
+
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
|
|
9408
9665
|
break;
|
|
9409
|
-
|
|
9666
|
+
}
|
|
9667
|
+
if (!readTagProperty(state) && !readAnchorProperty(state)) {
|
|
9410
9668
|
break;
|
|
9411
|
-
|
|
9669
|
+
}
|
|
9670
|
+
if (propertyStart === null) {
|
|
9412
9671
|
propertyStart = propertyState;
|
|
9672
|
+
}
|
|
9413
9673
|
if (skipSeparationSpace(state, true, -1)) {
|
|
9414
9674
|
atNewLine = true;
|
|
9415
9675
|
allowBlockCollections = allowBlockStyles;
|
|
9416
|
-
if (state.lineIndent > parentIndent)
|
|
9676
|
+
if (state.lineIndent > parentIndent) {
|
|
9417
9677
|
indentStatus = 1;
|
|
9418
|
-
else if (state.lineIndent === parentIndent)
|
|
9678
|
+
} else if (state.lineIndent === parentIndent) {
|
|
9419
9679
|
indentStatus = 0;
|
|
9420
|
-
else if (state.lineIndent < parentIndent)
|
|
9680
|
+
} else if (state.lineIndent < parentIndent) {
|
|
9421
9681
|
indentStatus = -1;
|
|
9422
|
-
|
|
9682
|
+
}
|
|
9683
|
+
} else {
|
|
9423
9684
|
allowBlockCollections = false;
|
|
9685
|
+
}
|
|
9424
9686
|
}
|
|
9425
|
-
|
|
9687
|
+
}
|
|
9688
|
+
if (allowBlockCollections) {
|
|
9426
9689
|
allowBlockCollections = atNewLine || allowCompact;
|
|
9690
|
+
}
|
|
9427
9691
|
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
9428
|
-
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
|
|
9692
|
+
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
|
|
9429
9693
|
flowIndent = parentIndent;
|
|
9430
|
-
else
|
|
9694
|
+
} else {
|
|
9431
9695
|
flowIndent = parentIndent + 1;
|
|
9696
|
+
}
|
|
9432
9697
|
blockIndent = state.position - state.lineStart;
|
|
9433
|
-
if (indentStatus === 1)
|
|
9434
|
-
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
|
|
9698
|
+
if (indentStatus === 1) {
|
|
9699
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
|
|
9435
9700
|
hasContent = true;
|
|
9436
|
-
else {
|
|
9701
|
+
} else {
|
|
9437
9702
|
const ch = state.input.charCodeAt(state.position);
|
|
9438
|
-
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
|
|
9703
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
|
|
9439
9704
|
hasContent = true;
|
|
9440
|
-
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
|
|
9705
|
+
} else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
|
|
9441
9706
|
hasContent = true;
|
|
9442
|
-
else if (readAlias(state)) {
|
|
9707
|
+
} else if (readAlias(state)) {
|
|
9443
9708
|
hasContent = true;
|
|
9444
|
-
if (state.tag !== null || state.anchor !== null)
|
|
9709
|
+
if (state.tag !== null || state.anchor !== null) {
|
|
9445
9710
|
throwError(state, "alias node should not have any properties");
|
|
9711
|
+
}
|
|
9446
9712
|
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
9447
9713
|
hasContent = true;
|
|
9448
|
-
if (state.tag === null)
|
|
9714
|
+
if (state.tag === null) {
|
|
9449
9715
|
state.tag = "?";
|
|
9716
|
+
}
|
|
9450
9717
|
}
|
|
9451
|
-
if (state.anchor !== null)
|
|
9718
|
+
if (state.anchor !== null) {
|
|
9452
9719
|
storeAnchor(state, state.anchor, state.result);
|
|
9720
|
+
}
|
|
9453
9721
|
}
|
|
9454
|
-
else if (indentStatus === 0)
|
|
9722
|
+
} else if (indentStatus === 0) {
|
|
9455
9723
|
hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
9724
|
+
}
|
|
9456
9725
|
}
|
|
9457
9726
|
if (state.tag === null) {
|
|
9458
|
-
if (state.anchor !== null)
|
|
9727
|
+
if (state.anchor !== null) {
|
|
9459
9728
|
storeAnchor(state, state.anchor, state.result);
|
|
9729
|
+
}
|
|
9460
9730
|
} else if (state.tag === "?") {
|
|
9461
|
-
if (state.result !== null && state.kind !== "scalar")
|
|
9731
|
+
if (state.result !== null && state.kind !== "scalar") {
|
|
9462
9732
|
throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
|
|
9733
|
+
}
|
|
9463
9734
|
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
9464
|
-
|
|
9465
|
-
if (
|
|
9466
|
-
state.result =
|
|
9467
|
-
state.tag =
|
|
9468
|
-
if (state.anchor !== null)
|
|
9735
|
+
type2 = state.implicitTypes[typeIndex];
|
|
9736
|
+
if (type2.resolve(state.result)) {
|
|
9737
|
+
state.result = type2.construct(state.result);
|
|
9738
|
+
state.tag = type2.tag;
|
|
9739
|
+
if (state.anchor !== null) {
|
|
9469
9740
|
storeAnchor(state, state.anchor, state.result);
|
|
9741
|
+
}
|
|
9470
9742
|
break;
|
|
9471
9743
|
}
|
|
9472
9744
|
}
|
|
9473
9745
|
} else if (state.tag !== "!") {
|
|
9474
|
-
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
|
|
9475
|
-
|
|
9476
|
-
else {
|
|
9477
|
-
|
|
9746
|
+
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
|
|
9747
|
+
type2 = state.typeMap[state.kind || "fallback"][state.tag];
|
|
9748
|
+
} else {
|
|
9749
|
+
type2 = null;
|
|
9478
9750
|
const typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
9479
|
-
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
|
|
9751
|
+
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
9480
9752
|
if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
9481
|
-
|
|
9753
|
+
type2 = typeList[typeIndex];
|
|
9482
9754
|
break;
|
|
9483
9755
|
}
|
|
9756
|
+
}
|
|
9484
9757
|
}
|
|
9485
|
-
if (!
|
|
9758
|
+
if (!type2) {
|
|
9486
9759
|
throwError(state, "unknown tag !<" + state.tag + ">");
|
|
9487
|
-
|
|
9488
|
-
|
|
9489
|
-
|
|
9760
|
+
}
|
|
9761
|
+
if (state.result !== null && type2.kind !== state.kind) {
|
|
9762
|
+
throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
|
|
9763
|
+
}
|
|
9764
|
+
if (!type2.resolve(state.result, state.tag)) {
|
|
9490
9765
|
throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
9491
|
-
else {
|
|
9492
|
-
state.result =
|
|
9493
|
-
if (state.anchor !== null)
|
|
9766
|
+
} else {
|
|
9767
|
+
state.result = type2.construct(state.result, state.tag);
|
|
9768
|
+
if (state.anchor !== null) {
|
|
9494
9769
|
storeAnchor(state, state.anchor, state.result);
|
|
9770
|
+
}
|
|
9495
9771
|
}
|
|
9496
9772
|
}
|
|
9497
|
-
if (state.listener !== null)
|
|
9773
|
+
if (state.listener !== null) {
|
|
9498
9774
|
state.listener("close", state);
|
|
9775
|
+
}
|
|
9499
9776
|
state.depth -= 1;
|
|
9500
9777
|
return state.tag !== null || state.anchor !== null || hasContent;
|
|
9501
9778
|
}
|
|
@@ -9505,55 +9782,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9505
9782
|
let ch;
|
|
9506
9783
|
state.version = null;
|
|
9507
9784
|
state.checkLineBreaks = state.legacy;
|
|
9508
|
-
state.tagMap = Object.create(null);
|
|
9509
|
-
state.anchorMap = Object.create(null);
|
|
9785
|
+
state.tagMap = /* @__PURE__ */ Object.create(null);
|
|
9786
|
+
state.anchorMap = /* @__PURE__ */ Object.create(null);
|
|
9510
9787
|
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
9511
9788
|
skipSeparationSpace(state, true, -1);
|
|
9512
9789
|
ch = state.input.charCodeAt(state.position);
|
|
9513
|
-
if (state.lineIndent > 0 || ch !== 37)
|
|
9790
|
+
if (state.lineIndent > 0 || ch !== 37) {
|
|
9514
9791
|
break;
|
|
9792
|
+
}
|
|
9515
9793
|
hasDirectives = true;
|
|
9516
9794
|
ch = state.input.charCodeAt(++state.position);
|
|
9517
9795
|
let _position = state.position;
|
|
9518
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
9796
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
9519
9797
|
ch = state.input.charCodeAt(++state.position);
|
|
9798
|
+
}
|
|
9520
9799
|
const directiveName = state.input.slice(_position, state.position);
|
|
9521
9800
|
const directiveArgs = [];
|
|
9522
|
-
if (directiveName.length < 1)
|
|
9801
|
+
if (directiveName.length < 1) {
|
|
9523
9802
|
throwError(state, "directive name must not be less than one character in length");
|
|
9803
|
+
}
|
|
9524
9804
|
while (ch !== 0) {
|
|
9525
|
-
while (isWhiteSpace(ch))
|
|
9805
|
+
while (isWhiteSpace(ch)) {
|
|
9526
9806
|
ch = state.input.charCodeAt(++state.position);
|
|
9807
|
+
}
|
|
9527
9808
|
if (ch === 35) {
|
|
9528
|
-
do
|
|
9809
|
+
do {
|
|
9529
9810
|
ch = state.input.charCodeAt(++state.position);
|
|
9530
|
-
while (ch !== 0 && !isEol(ch));
|
|
9811
|
+
} while (ch !== 0 && !isEol(ch));
|
|
9531
9812
|
break;
|
|
9532
9813
|
}
|
|
9533
9814
|
if (isEol(ch))
|
|
9534
9815
|
break;
|
|
9535
9816
|
_position = state.position;
|
|
9536
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
9817
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
9537
9818
|
ch = state.input.charCodeAt(++state.position);
|
|
9819
|
+
}
|
|
9538
9820
|
directiveArgs.push(state.input.slice(_position, state.position));
|
|
9539
9821
|
}
|
|
9540
9822
|
if (ch !== 0)
|
|
9541
9823
|
readLineBreak(state);
|
|
9542
|
-
if (_hasOwnProperty.call(directiveHandlers, directiveName))
|
|
9824
|
+
if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
|
9543
9825
|
directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
|
9544
|
-
else
|
|
9826
|
+
} else {
|
|
9545
9827
|
throwWarning(state, 'unknown document directive "' + directiveName + '"');
|
|
9828
|
+
}
|
|
9546
9829
|
}
|
|
9547
9830
|
skipSeparationSpace(state, true, -1);
|
|
9548
9831
|
if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
|
|
9549
9832
|
state.position += 3;
|
|
9550
9833
|
skipSeparationSpace(state, true, -1);
|
|
9551
|
-
} else if (hasDirectives)
|
|
9834
|
+
} else if (hasDirectives) {
|
|
9552
9835
|
throwError(state, "directives end mark is expected");
|
|
9836
|
+
}
|
|
9553
9837
|
composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
9554
9838
|
skipSeparationSpace(state, true, -1);
|
|
9555
|
-
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
|
|
9839
|
+
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
|
9556
9840
|
throwWarning(state, "non-ASCII line breaks are interpreted as content");
|
|
9841
|
+
}
|
|
9557
9842
|
state.documents.push(state.result);
|
|
9558
9843
|
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
9559
9844
|
if (state.input.charCodeAt(state.position) === 46) {
|
|
@@ -9562,18 +9847,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9562
9847
|
}
|
|
9563
9848
|
return;
|
|
9564
9849
|
}
|
|
9565
|
-
if (state.position < state.length - 1)
|
|
9850
|
+
if (state.position < state.length - 1) {
|
|
9566
9851
|
throwError(state, "end of the stream or a document separator is expected");
|
|
9852
|
+
}
|
|
9567
9853
|
}
|
|
9568
9854
|
function loadDocuments(input, options) {
|
|
9569
9855
|
input = String(input);
|
|
9570
9856
|
options = options || {};
|
|
9571
9857
|
if (input.length !== 0) {
|
|
9572
|
-
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
|
|
9858
|
+
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
|
|
9573
9859
|
input += `
|
|
9574
9860
|
`;
|
|
9575
|
-
|
|
9861
|
+
}
|
|
9862
|
+
if (input.charCodeAt(0) === 65279) {
|
|
9576
9863
|
input = input.slice(1);
|
|
9864
|
+
}
|
|
9577
9865
|
}
|
|
9578
9866
|
const state = new State(input, options);
|
|
9579
9867
|
const nullpos = input.indexOf("\x00");
|
|
@@ -9586,64 +9874,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9586
9874
|
state.lineIndent += 1;
|
|
9587
9875
|
state.position += 1;
|
|
9588
9876
|
}
|
|
9589
|
-
while (state.position < state.length - 1)
|
|
9877
|
+
while (state.position < state.length - 1) {
|
|
9590
9878
|
readDocument(state);
|
|
9879
|
+
}
|
|
9591
9880
|
return state.documents;
|
|
9592
9881
|
}
|
|
9593
|
-
function
|
|
9882
|
+
function loadAll2(input, iterator, options) {
|
|
9594
9883
|
if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
|
|
9595
9884
|
options = iterator;
|
|
9596
9885
|
iterator = null;
|
|
9597
9886
|
}
|
|
9598
9887
|
const documents = loadDocuments(input, options);
|
|
9599
|
-
if (typeof iterator !== "function")
|
|
9888
|
+
if (typeof iterator !== "function") {
|
|
9600
9889
|
return documents;
|
|
9601
|
-
|
|
9890
|
+
}
|
|
9891
|
+
for (let index = 0, length = documents.length;index < length; index += 1) {
|
|
9602
9892
|
iterator(documents[index]);
|
|
9893
|
+
}
|
|
9603
9894
|
}
|
|
9604
|
-
function
|
|
9895
|
+
function load2(input, options) {
|
|
9605
9896
|
const documents = loadDocuments(input, options);
|
|
9606
|
-
if (documents.length === 0)
|
|
9897
|
+
if (documents.length === 0) {
|
|
9607
9898
|
return;
|
|
9608
|
-
else if (documents.length === 1)
|
|
9899
|
+
} else if (documents.length === 1) {
|
|
9609
9900
|
return documents[0];
|
|
9610
|
-
|
|
9611
|
-
|
|
9612
|
-
|
|
9613
|
-
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9618
|
-
|
|
9619
|
-
|
|
9620
|
-
|
|
9621
|
-
|
|
9622
|
-
|
|
9623
|
-
|
|
9624
|
-
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9631
|
-
|
|
9632
|
-
|
|
9633
|
-
|
|
9634
|
-
|
|
9635
|
-
|
|
9636
|
-
|
|
9637
|
-
|
|
9638
|
-
|
|
9639
|
-
|
|
9640
|
-
|
|
9641
|
-
|
|
9642
|
-
|
|
9643
|
-
|
|
9644
|
-
|
|
9645
|
-
|
|
9646
|
-
|
|
9901
|
+
}
|
|
9902
|
+
throw new YAMLException2("expected a single document in the stream, but found more");
|
|
9903
|
+
}
|
|
9904
|
+
loader.loadAll = loadAll2;
|
|
9905
|
+
loader.load = load2;
|
|
9906
|
+
return loader;
|
|
9907
|
+
}
|
|
9908
|
+
var dumper = {};
|
|
9909
|
+
var hasRequiredDumper;
|
|
9910
|
+
function requireDumper() {
|
|
9911
|
+
if (hasRequiredDumper)
|
|
9912
|
+
return dumper;
|
|
9913
|
+
hasRequiredDumper = 1;
|
|
9914
|
+
const common2 = requireCommon();
|
|
9915
|
+
const YAMLException2 = requireException();
|
|
9916
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
9917
|
+
const _toString = Object.prototype.toString;
|
|
9918
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
9919
|
+
const CHAR_BOM = 65279;
|
|
9920
|
+
const CHAR_TAB = 9;
|
|
9921
|
+
const CHAR_LINE_FEED = 10;
|
|
9922
|
+
const CHAR_CARRIAGE_RETURN = 13;
|
|
9923
|
+
const CHAR_SPACE = 32;
|
|
9924
|
+
const CHAR_EXCLAMATION = 33;
|
|
9925
|
+
const CHAR_DOUBLE_QUOTE = 34;
|
|
9926
|
+
const CHAR_SHARP = 35;
|
|
9927
|
+
const CHAR_PERCENT = 37;
|
|
9928
|
+
const CHAR_AMPERSAND = 38;
|
|
9929
|
+
const CHAR_SINGLE_QUOTE = 39;
|
|
9930
|
+
const CHAR_ASTERISK = 42;
|
|
9931
|
+
const CHAR_COMMA = 44;
|
|
9932
|
+
const CHAR_MINUS = 45;
|
|
9933
|
+
const CHAR_COLON = 58;
|
|
9934
|
+
const CHAR_EQUALS = 61;
|
|
9935
|
+
const CHAR_GREATER_THAN = 62;
|
|
9936
|
+
const CHAR_QUESTION = 63;
|
|
9937
|
+
const CHAR_COMMERCIAL_AT = 64;
|
|
9938
|
+
const CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
9939
|
+
const CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
9940
|
+
const CHAR_GRAVE_ACCENT = 96;
|
|
9941
|
+
const CHAR_LEFT_CURLY_BRACKET = 123;
|
|
9942
|
+
const CHAR_VERTICAL_LINE = 124;
|
|
9943
|
+
const CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
9944
|
+
const ESCAPE_SEQUENCES = {};
|
|
9647
9945
|
ESCAPE_SEQUENCES[0] = "\\0";
|
|
9648
9946
|
ESCAPE_SEQUENCES[7] = "\\a";
|
|
9649
9947
|
ESCAPE_SEQUENCES[8] = "\\b";
|
|
@@ -9659,7 +9957,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9659
9957
|
ESCAPE_SEQUENCES[160] = "\\_";
|
|
9660
9958
|
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
9661
9959
|
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
9662
|
-
|
|
9960
|
+
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
9663
9961
|
"y",
|
|
9664
9962
|
"Y",
|
|
9665
9963
|
"yes",
|
|
@@ -9677,20 +9975,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9677
9975
|
"Off",
|
|
9678
9976
|
"OFF"
|
|
9679
9977
|
];
|
|
9680
|
-
|
|
9681
|
-
function compileStyleMap(
|
|
9682
|
-
if (
|
|
9978
|
+
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
9979
|
+
function compileStyleMap(schema2, map2) {
|
|
9980
|
+
if (map2 === null)
|
|
9683
9981
|
return {};
|
|
9684
9982
|
const result = {};
|
|
9685
|
-
const keys = Object.keys(
|
|
9983
|
+
const keys = Object.keys(map2);
|
|
9686
9984
|
for (let index = 0, length = keys.length;index < length; index += 1) {
|
|
9687
9985
|
let tag = keys[index];
|
|
9688
|
-
let style = String(
|
|
9689
|
-
if (tag.slice(0, 2) === "!!")
|
|
9986
|
+
let style = String(map2[tag]);
|
|
9987
|
+
if (tag.slice(0, 2) === "!!") {
|
|
9690
9988
|
tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
9691
|
-
|
|
9692
|
-
|
|
9693
|
-
|
|
9989
|
+
}
|
|
9990
|
+
const type2 = schema2.compiledTypeMap["fallback"][tag];
|
|
9991
|
+
if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
|
|
9992
|
+
style = type2.styleAliases[style];
|
|
9993
|
+
}
|
|
9694
9994
|
result[tag] = style;
|
|
9695
9995
|
}
|
|
9696
9996
|
return result;
|
|
@@ -9708,18 +10008,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9708
10008
|
} else if (character <= 4294967295) {
|
|
9709
10009
|
handle = "U";
|
|
9710
10010
|
length = 8;
|
|
9711
|
-
} else
|
|
9712
|
-
throw new
|
|
9713
|
-
|
|
10011
|
+
} else {
|
|
10012
|
+
throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
|
|
10013
|
+
}
|
|
10014
|
+
return "\\" + handle + common2.repeat("0", length - string.length) + string;
|
|
9714
10015
|
}
|
|
9715
|
-
|
|
9716
|
-
|
|
10016
|
+
const QUOTING_TYPE_SINGLE = 1;
|
|
10017
|
+
const QUOTING_TYPE_DOUBLE = 2;
|
|
9717
10018
|
function State(options) {
|
|
9718
|
-
this.schema = options["schema"] ||
|
|
10019
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
9719
10020
|
this.indent = Math.max(1, options["indent"] || 2);
|
|
9720
10021
|
this.noArrayIndent = options["noArrayIndent"] || false;
|
|
9721
10022
|
this.skipInvalid = options["skipInvalid"] || false;
|
|
9722
|
-
this.flowLevel =
|
|
10023
|
+
this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
|
|
9723
10024
|
this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
|
|
9724
10025
|
this.sortKeys = options["sortKeys"] || false;
|
|
9725
10026
|
this.lineWidth = options["lineWidth"] || 80;
|
|
@@ -9737,7 +10038,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9737
10038
|
this.usedDuplicates = null;
|
|
9738
10039
|
}
|
|
9739
10040
|
function indentString(string, spaces) {
|
|
9740
|
-
const ind =
|
|
10041
|
+
const ind = common2.repeat(" ", spaces);
|
|
9741
10042
|
let position = 0;
|
|
9742
10043
|
let result = "";
|
|
9743
10044
|
const length = string.length;
|
|
@@ -9761,12 +10062,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9761
10062
|
}
|
|
9762
10063
|
function generateNextLine(state, level) {
|
|
9763
10064
|
return `
|
|
9764
|
-
` +
|
|
10065
|
+
` + common2.repeat(" ", state.indent * level);
|
|
9765
10066
|
}
|
|
9766
|
-
function testImplicitResolving(state,
|
|
9767
|
-
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
|
|
9768
|
-
|
|
10067
|
+
function testImplicitResolving(state, str2) {
|
|
10068
|
+
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
|
|
10069
|
+
const type2 = state.implicitTypes[index];
|
|
10070
|
+
if (type2.resolve(str2)) {
|
|
9769
10071
|
return true;
|
|
10072
|
+
}
|
|
10073
|
+
}
|
|
9770
10074
|
return false;
|
|
9771
10075
|
}
|
|
9772
10076
|
function isWhitespace(c) {
|
|
@@ -9794,19 +10098,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9794
10098
|
let second;
|
|
9795
10099
|
if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
|
|
9796
10100
|
second = string.charCodeAt(pos + 1);
|
|
9797
|
-
if (second >= 56320 && second <= 57343)
|
|
10101
|
+
if (second >= 56320 && second <= 57343) {
|
|
9798
10102
|
return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
10103
|
+
}
|
|
9799
10104
|
}
|
|
9800
10105
|
return first;
|
|
9801
10106
|
}
|
|
9802
10107
|
function needIndentIndicator(string) {
|
|
9803
|
-
|
|
9804
|
-
|
|
9805
|
-
|
|
9806
|
-
|
|
9807
|
-
|
|
9808
|
-
|
|
9809
|
-
|
|
10108
|
+
const leadingSpaceRe = /^\n* /;
|
|
10109
|
+
return leadingSpaceRe.test(string);
|
|
10110
|
+
}
|
|
10111
|
+
const STYLE_PLAIN = 1;
|
|
10112
|
+
const STYLE_SINGLE = 2;
|
|
10113
|
+
const STYLE_LITERAL = 3;
|
|
10114
|
+
const STYLE_FOLDED = 4;
|
|
10115
|
+
const STYLE_DOUBLE = 5;
|
|
9810
10116
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
9811
10117
|
let i;
|
|
9812
10118
|
let char = 0;
|
|
@@ -9816,15 +10122,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9816
10122
|
const shouldTrackWidth = lineWidth !== -1;
|
|
9817
10123
|
let previousLineBreak = -1;
|
|
9818
10124
|
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
9819
|
-
if (singleLineOnly || forceQuotes)
|
|
10125
|
+
if (singleLineOnly || forceQuotes) {
|
|
9820
10126
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
9821
10127
|
char = codePointAt(string, i);
|
|
9822
|
-
if (!isPrintable(char))
|
|
10128
|
+
if (!isPrintable(char)) {
|
|
9823
10129
|
return STYLE_DOUBLE;
|
|
10130
|
+
}
|
|
9824
10131
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
9825
10132
|
prevChar = char;
|
|
9826
10133
|
}
|
|
9827
|
-
else {
|
|
10134
|
+
} else {
|
|
9828
10135
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
9829
10136
|
char = codePointAt(string, i);
|
|
9830
10137
|
if (char === CHAR_LINE_FEED) {
|
|
@@ -9833,31 +10140,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9833
10140
|
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
9834
10141
|
previousLineBreak = i;
|
|
9835
10142
|
}
|
|
9836
|
-
} else if (!isPrintable(char))
|
|
10143
|
+
} else if (!isPrintable(char)) {
|
|
9837
10144
|
return STYLE_DOUBLE;
|
|
10145
|
+
}
|
|
9838
10146
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
9839
10147
|
prevChar = char;
|
|
9840
10148
|
}
|
|
9841
|
-
hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
10149
|
+
hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
|
|
9842
10150
|
}
|
|
9843
10151
|
if (!hasLineBreak && !hasFoldableLine) {
|
|
9844
|
-
if (plain && !forceQuotes && !testAmbiguousType(string))
|
|
10152
|
+
if (plain && !forceQuotes && !testAmbiguousType(string)) {
|
|
9845
10153
|
return STYLE_PLAIN;
|
|
10154
|
+
}
|
|
9846
10155
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
9847
10156
|
}
|
|
9848
|
-
if (indentPerLevel > 9 && needIndentIndicator(string))
|
|
10157
|
+
if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
|
9849
10158
|
return STYLE_DOUBLE;
|
|
9850
|
-
|
|
10159
|
+
}
|
|
10160
|
+
if (!forceQuotes) {
|
|
9851
10161
|
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
|
10162
|
+
}
|
|
9852
10163
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
9853
10164
|
}
|
|
9854
10165
|
function writeScalar(state, string, level, iskey, inblock) {
|
|
9855
10166
|
state.dump = function() {
|
|
9856
|
-
if (string.length === 0)
|
|
10167
|
+
if (string.length === 0) {
|
|
9857
10168
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
|
|
10169
|
+
}
|
|
9858
10170
|
if (!state.noCompatMode) {
|
|
9859
|
-
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
|
|
10171
|
+
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
|
|
9860
10172
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
|
|
10173
|
+
}
|
|
9861
10174
|
}
|
|
9862
10175
|
const indent = state.indent * Math.max(1, level);
|
|
9863
10176
|
const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
@@ -9875,9 +10188,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9875
10188
|
case STYLE_FOLDED:
|
|
9876
10189
|
return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
|
|
9877
10190
|
case STYLE_DOUBLE:
|
|
9878
|
-
return '"' + escapeString(string
|
|
10191
|
+
return '"' + escapeString(string) + '"';
|
|
9879
10192
|
default:
|
|
9880
|
-
throw new
|
|
10193
|
+
throw new YAMLException2("impossible error: invalid scalar style");
|
|
9881
10194
|
}
|
|
9882
10195
|
}();
|
|
9883
10196
|
}
|
|
@@ -9885,9 +10198,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9885
10198
|
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
9886
10199
|
const clip = string[string.length - 1] === `
|
|
9887
10200
|
`;
|
|
9888
|
-
|
|
10201
|
+
const keep = clip && (string[string.length - 2] === `
|
|
9889
10202
|
` || string === `
|
|
9890
|
-
`)
|
|
10203
|
+
`);
|
|
10204
|
+
const chomp = keep ? "+" : clip ? "" : "-";
|
|
10205
|
+
return indentIndicator + chomp + `
|
|
9891
10206
|
`;
|
|
9892
10207
|
}
|
|
9893
10208
|
function dropEndingNewline(string) {
|
|
@@ -9939,11 +10254,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9939
10254
|
}
|
|
9940
10255
|
result += `
|
|
9941
10256
|
`;
|
|
9942
|
-
if (line.length - start > width && curr > start)
|
|
10257
|
+
if (line.length - start > width && curr > start) {
|
|
9943
10258
|
result += line.slice(start, curr) + `
|
|
9944
10259
|
` + line.slice(curr + 1);
|
|
9945
|
-
else
|
|
10260
|
+
} else {
|
|
9946
10261
|
result += line.slice(start);
|
|
10262
|
+
}
|
|
9947
10263
|
return result.slice(1);
|
|
9948
10264
|
}
|
|
9949
10265
|
function escapeString(string) {
|
|
@@ -9956,8 +10272,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9956
10272
|
result += string[i];
|
|
9957
10273
|
if (char >= 65536)
|
|
9958
10274
|
result += string[i + 1];
|
|
9959
|
-
} else
|
|
10275
|
+
} else {
|
|
9960
10276
|
result += escapeSeq || encodeHex(char);
|
|
10277
|
+
}
|
|
9961
10278
|
}
|
|
9962
10279
|
return result;
|
|
9963
10280
|
}
|
|
@@ -9966,8 +10283,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9966
10283
|
const _tag = state.tag;
|
|
9967
10284
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
9968
10285
|
let value = object[index];
|
|
9969
|
-
if (state.replacer)
|
|
10286
|
+
if (state.replacer) {
|
|
9970
10287
|
value = state.replacer.call(object, String(index), value);
|
|
10288
|
+
}
|
|
9971
10289
|
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
9972
10290
|
if (_result !== "")
|
|
9973
10291
|
_result += "," + (!state.condenseFlow ? " " : "");
|
|
@@ -9982,15 +10300,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
9982
10300
|
const _tag = state.tag;
|
|
9983
10301
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
9984
10302
|
let value = object[index];
|
|
9985
|
-
if (state.replacer)
|
|
10303
|
+
if (state.replacer) {
|
|
9986
10304
|
value = state.replacer.call(object, String(index), value);
|
|
10305
|
+
}
|
|
9987
10306
|
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
9988
|
-
if (!compact || _result !== "")
|
|
10307
|
+
if (!compact || _result !== "") {
|
|
9989
10308
|
_result += generateNextLine(state, level);
|
|
9990
|
-
|
|
10309
|
+
}
|
|
10310
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
9991
10311
|
_result += "-";
|
|
9992
|
-
else
|
|
10312
|
+
} else {
|
|
9993
10313
|
_result += "- ";
|
|
10314
|
+
}
|
|
9994
10315
|
_result += state.dump;
|
|
9995
10316
|
}
|
|
9996
10317
|
}
|
|
@@ -10009,15 +10330,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
10009
10330
|
pairBuffer += '"';
|
|
10010
10331
|
const objectKey = objectKeyList[index];
|
|
10011
10332
|
let objectValue = object[objectKey];
|
|
10012
|
-
if (state.replacer)
|
|
10333
|
+
if (state.replacer) {
|
|
10013
10334
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
10014
|
-
|
|
10335
|
+
}
|
|
10336
|
+
if (!writeNode(state, level, objectKey, false, false)) {
|
|
10015
10337
|
continue;
|
|
10338
|
+
}
|
|
10016
10339
|
if (state.dump.length > 1024)
|
|
10017
10340
|
pairBuffer += "? ";
|
|
10018
10341
|
pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
|
|
10019
|
-
if (!writeNode(state, level, objectValue, false, false))
|
|
10342
|
+
if (!writeNode(state, level, objectValue, false, false)) {
|
|
10020
10343
|
continue;
|
|
10344
|
+
}
|
|
10021
10345
|
pairBuffer += state.dump;
|
|
10022
10346
|
_result += pairBuffer;
|
|
10023
10347
|
}
|
|
@@ -10028,37 +10352,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
10028
10352
|
let _result = "";
|
|
10029
10353
|
const _tag = state.tag;
|
|
10030
10354
|
const objectKeyList = Object.keys(object);
|
|
10031
|
-
if (state.sortKeys === true)
|
|
10355
|
+
if (state.sortKeys === true) {
|
|
10032
10356
|
objectKeyList.sort();
|
|
10033
|
-
else if (typeof state.sortKeys === "function")
|
|
10357
|
+
} else if (typeof state.sortKeys === "function") {
|
|
10034
10358
|
objectKeyList.sort(state.sortKeys);
|
|
10035
|
-
else if (state.sortKeys)
|
|
10036
|
-
throw new
|
|
10359
|
+
} else if (state.sortKeys) {
|
|
10360
|
+
throw new YAMLException2("sortKeys must be a boolean or a function");
|
|
10361
|
+
}
|
|
10037
10362
|
for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
|
|
10038
10363
|
let pairBuffer = "";
|
|
10039
|
-
if (!compact || _result !== "")
|
|
10364
|
+
if (!compact || _result !== "") {
|
|
10040
10365
|
pairBuffer += generateNextLine(state, level);
|
|
10366
|
+
}
|
|
10041
10367
|
const objectKey = objectKeyList[index];
|
|
10042
10368
|
let objectValue = object[objectKey];
|
|
10043
|
-
if (state.replacer)
|
|
10369
|
+
if (state.replacer) {
|
|
10044
10370
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
10045
|
-
|
|
10371
|
+
}
|
|
10372
|
+
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
10046
10373
|
continue;
|
|
10374
|
+
}
|
|
10047
10375
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
10048
|
-
if (explicitPair)
|
|
10049
|
-
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
|
|
10376
|
+
if (explicitPair) {
|
|
10377
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
10050
10378
|
pairBuffer += "?";
|
|
10051
|
-
else
|
|
10379
|
+
} else {
|
|
10052
10380
|
pairBuffer += "? ";
|
|
10381
|
+
}
|
|
10382
|
+
}
|
|
10053
10383
|
pairBuffer += state.dump;
|
|
10054
|
-
if (explicitPair)
|
|
10384
|
+
if (explicitPair) {
|
|
10055
10385
|
pairBuffer += generateNextLine(state, level);
|
|
10056
|
-
|
|
10386
|
+
}
|
|
10387
|
+
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
10057
10388
|
continue;
|
|
10058
|
-
|
|
10389
|
+
}
|
|
10390
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
10059
10391
|
pairBuffer += ":";
|
|
10060
|
-
else
|
|
10392
|
+
} else {
|
|
10061
10393
|
pairBuffer += ": ";
|
|
10394
|
+
}
|
|
10062
10395
|
pairBuffer += state.dump;
|
|
10063
10396
|
_result += pairBuffer;
|
|
10064
10397
|
}
|
|
@@ -10068,24 +10401,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
10068
10401
|
function detectType(state, object, explicit) {
|
|
10069
10402
|
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
10070
10403
|
for (let index = 0, length = typeList.length;index < length; index += 1) {
|
|
10071
|
-
const
|
|
10072
|
-
if ((
|
|
10073
|
-
if (explicit)
|
|
10074
|
-
if (
|
|
10075
|
-
state.tag =
|
|
10076
|
-
else
|
|
10077
|
-
state.tag =
|
|
10078
|
-
|
|
10404
|
+
const type2 = typeList[index];
|
|
10405
|
+
if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
|
|
10406
|
+
if (explicit) {
|
|
10407
|
+
if (type2.multi && type2.representName) {
|
|
10408
|
+
state.tag = type2.representName(object);
|
|
10409
|
+
} else {
|
|
10410
|
+
state.tag = type2.tag;
|
|
10411
|
+
}
|
|
10412
|
+
} else {
|
|
10079
10413
|
state.tag = "?";
|
|
10080
|
-
|
|
10081
|
-
|
|
10414
|
+
}
|
|
10415
|
+
if (type2.represent) {
|
|
10416
|
+
const style = state.styleMap[type2.tag] || type2.defaultStyle;
|
|
10082
10417
|
let _result;
|
|
10083
|
-
if (_toString.call(
|
|
10084
|
-
_result =
|
|
10085
|
-
else if (_hasOwnProperty.call(
|
|
10086
|
-
_result =
|
|
10087
|
-
else
|
|
10088
|
-
throw new
|
|
10418
|
+
if (_toString.call(type2.represent) === "[object Function]") {
|
|
10419
|
+
_result = type2.represent(object, style);
|
|
10420
|
+
} else if (_hasOwnProperty.call(type2.represent, style)) {
|
|
10421
|
+
_result = type2.represent[style](object, style);
|
|
10422
|
+
} else {
|
|
10423
|
+
throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
|
|
10424
|
+
}
|
|
10089
10425
|
state.dump = _result;
|
|
10090
10426
|
}
|
|
10091
10427
|
return true;
|
|
@@ -10096,67 +10432,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
10096
10432
|
function writeNode(state, level, object, block, compact, iskey, isblockseq) {
|
|
10097
10433
|
state.tag = null;
|
|
10098
10434
|
state.dump = object;
|
|
10099
|
-
if (!detectType(state, object, false))
|
|
10435
|
+
if (!detectType(state, object, false)) {
|
|
10100
10436
|
detectType(state, object, true);
|
|
10101
|
-
|
|
10437
|
+
}
|
|
10438
|
+
const type2 = _toString.call(state.dump);
|
|
10102
10439
|
const inblock = block;
|
|
10103
|
-
if (block)
|
|
10440
|
+
if (block) {
|
|
10104
10441
|
block = state.flowLevel < 0 || state.flowLevel > level;
|
|
10105
|
-
|
|
10442
|
+
}
|
|
10443
|
+
const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
|
|
10106
10444
|
let duplicateIndex;
|
|
10107
10445
|
let duplicate;
|
|
10108
10446
|
if (objectOrArray) {
|
|
10109
10447
|
duplicateIndex = state.duplicates.indexOf(object);
|
|
10110
10448
|
duplicate = duplicateIndex !== -1;
|
|
10111
10449
|
}
|
|
10112
|
-
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
|
|
10450
|
+
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
10113
10451
|
compact = false;
|
|
10114
|
-
|
|
10452
|
+
}
|
|
10453
|
+
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
10115
10454
|
state.dump = "*ref_" + duplicateIndex;
|
|
10116
|
-
else {
|
|
10117
|
-
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
|
|
10455
|
+
} else {
|
|
10456
|
+
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
10118
10457
|
state.usedDuplicates[duplicateIndex] = true;
|
|
10119
|
-
|
|
10458
|
+
}
|
|
10459
|
+
if (type2 === "[object Object]") {
|
|
10120
10460
|
if (block && Object.keys(state.dump).length !== 0) {
|
|
10121
10461
|
writeBlockMapping(state, level, state.dump, compact);
|
|
10122
|
-
if (duplicate)
|
|
10462
|
+
if (duplicate) {
|
|
10123
10463
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
10464
|
+
}
|
|
10124
10465
|
} else {
|
|
10125
10466
|
writeFlowMapping(state, level, state.dump);
|
|
10126
|
-
if (duplicate)
|
|
10467
|
+
if (duplicate) {
|
|
10127
10468
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
10469
|
+
}
|
|
10128
10470
|
}
|
|
10129
|
-
else if (
|
|
10471
|
+
} else if (type2 === "[object Array]") {
|
|
10130
10472
|
if (block && state.dump.length !== 0) {
|
|
10131
|
-
if (state.noArrayIndent && !isblockseq && level > 0)
|
|
10473
|
+
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
10132
10474
|
writeBlockSequence(state, level - 1, state.dump, compact);
|
|
10133
|
-
else
|
|
10475
|
+
} else {
|
|
10134
10476
|
writeBlockSequence(state, level, state.dump, compact);
|
|
10135
|
-
|
|
10477
|
+
}
|
|
10478
|
+
if (duplicate) {
|
|
10136
10479
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
10480
|
+
}
|
|
10137
10481
|
} else {
|
|
10138
10482
|
writeFlowSequence(state, level, state.dump);
|
|
10139
|
-
if (duplicate)
|
|
10483
|
+
if (duplicate) {
|
|
10140
10484
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
10485
|
+
}
|
|
10141
10486
|
}
|
|
10142
|
-
else if (
|
|
10143
|
-
if (state.tag !== "?")
|
|
10487
|
+
} else if (type2 === "[object String]") {
|
|
10488
|
+
if (state.tag !== "?") {
|
|
10144
10489
|
writeScalar(state, state.dump, level, iskey, inblock);
|
|
10145
|
-
|
|
10490
|
+
}
|
|
10491
|
+
} else if (type2 === "[object Undefined]") {
|
|
10146
10492
|
return false;
|
|
10147
|
-
else {
|
|
10493
|
+
} else {
|
|
10148
10494
|
if (state.skipInvalid)
|
|
10149
10495
|
return false;
|
|
10150
|
-
throw new
|
|
10496
|
+
throw new YAMLException2("unacceptable kind of an object to dump " + type2);
|
|
10151
10497
|
}
|
|
10152
10498
|
if (state.tag !== null && state.tag !== "?") {
|
|
10153
10499
|
let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
10154
|
-
if (state.tag[0] === "!")
|
|
10500
|
+
if (state.tag[0] === "!") {
|
|
10155
10501
|
tagStr = "!" + tagStr;
|
|
10156
|
-
else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
|
|
10502
|
+
} else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
|
|
10157
10503
|
tagStr = "!!" + tagStr.slice(18);
|
|
10158
|
-
else
|
|
10504
|
+
} else {
|
|
10159
10505
|
tagStr = "!<" + tagStr + ">";
|
|
10506
|
+
}
|
|
10160
10507
|
state.dump = tagStr + " " + state.dump;
|
|
10161
10508
|
}
|
|
10162
10509
|
}
|
|
@@ -10167,83 +10514,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
10167
10514
|
const duplicatesIndexes = [];
|
|
10168
10515
|
inspectNode(object, objects, duplicatesIndexes);
|
|
10169
10516
|
const length = duplicatesIndexes.length;
|
|
10170
|
-
for (let index = 0;index < length; index += 1)
|
|
10517
|
+
for (let index = 0;index < length; index += 1) {
|
|
10171
10518
|
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
10519
|
+
}
|
|
10172
10520
|
state.usedDuplicates = new Array(length);
|
|
10173
10521
|
}
|
|
10174
10522
|
function inspectNode(object, objects, duplicatesIndexes) {
|
|
10175
10523
|
if (object !== null && typeof object === "object") {
|
|
10176
10524
|
const index = objects.indexOf(object);
|
|
10177
10525
|
if (index !== -1) {
|
|
10178
|
-
if (duplicatesIndexes.indexOf(index) === -1)
|
|
10526
|
+
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
10179
10527
|
duplicatesIndexes.push(index);
|
|
10528
|
+
}
|
|
10180
10529
|
} else {
|
|
10181
10530
|
objects.push(object);
|
|
10182
|
-
if (Array.isArray(object))
|
|
10183
|
-
for (let i = 0, length = object.length;i < length; i += 1)
|
|
10531
|
+
if (Array.isArray(object)) {
|
|
10532
|
+
for (let i = 0, length = object.length;i < length; i += 1) {
|
|
10184
10533
|
inspectNode(object[i], objects, duplicatesIndexes);
|
|
10185
|
-
|
|
10534
|
+
}
|
|
10535
|
+
} else {
|
|
10186
10536
|
const objectKeyList = Object.keys(object);
|
|
10187
|
-
for (let i = 0, length = objectKeyList.length;i < length; i += 1)
|
|
10537
|
+
for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
|
|
10188
10538
|
inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
10539
|
+
}
|
|
10189
10540
|
}
|
|
10190
10541
|
}
|
|
10191
10542
|
}
|
|
10192
10543
|
}
|
|
10193
|
-
function
|
|
10544
|
+
function dump2(input, options) {
|
|
10194
10545
|
options = options || {};
|
|
10195
10546
|
const state = new State(options);
|
|
10196
10547
|
if (!state.noRefs)
|
|
10197
10548
|
getDuplicateReferences(input, state);
|
|
10198
10549
|
let value = input;
|
|
10199
|
-
if (state.replacer)
|
|
10550
|
+
if (state.replacer) {
|
|
10200
10551
|
value = state.replacer.call({ "": value }, "", value);
|
|
10552
|
+
}
|
|
10201
10553
|
if (writeNode(state, 0, value, true, true))
|
|
10202
10554
|
return state.dump + `
|
|
10203
10555
|
`;
|
|
10204
10556
|
return "";
|
|
10205
10557
|
}
|
|
10206
|
-
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10558
|
+
dumper.dump = dump2;
|
|
10559
|
+
return dumper;
|
|
10560
|
+
}
|
|
10561
|
+
var hasRequiredJsYaml;
|
|
10562
|
+
function requireJsYaml() {
|
|
10563
|
+
if (hasRequiredJsYaml)
|
|
10564
|
+
return jsYaml;
|
|
10565
|
+
hasRequiredJsYaml = 1;
|
|
10566
|
+
const loader2 = requireLoader();
|
|
10567
|
+
const dumper2 = requireDumper();
|
|
10211
10568
|
function renamed(from, to) {
|
|
10212
10569
|
return function() {
|
|
10213
10570
|
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
|
|
10214
10571
|
};
|
|
10215
10572
|
}
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
binary:
|
|
10228
|
-
float:
|
|
10229
|
-
map:
|
|
10573
|
+
jsYaml.Type = requireType();
|
|
10574
|
+
jsYaml.Schema = requireSchema();
|
|
10575
|
+
jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
|
|
10576
|
+
jsYaml.JSON_SCHEMA = requireJson();
|
|
10577
|
+
jsYaml.CORE_SCHEMA = requireCore();
|
|
10578
|
+
jsYaml.DEFAULT_SCHEMA = require_default();
|
|
10579
|
+
jsYaml.load = loader2.load;
|
|
10580
|
+
jsYaml.loadAll = loader2.loadAll;
|
|
10581
|
+
jsYaml.dump = dumper2.dump;
|
|
10582
|
+
jsYaml.YAMLException = requireException();
|
|
10583
|
+
jsYaml.types = {
|
|
10584
|
+
binary: requireBinary(),
|
|
10585
|
+
float: requireFloat(),
|
|
10586
|
+
map: requireMap(),
|
|
10230
10587
|
null: require_null(),
|
|
10231
|
-
pairs:
|
|
10232
|
-
set:
|
|
10233
|
-
timestamp:
|
|
10234
|
-
bool:
|
|
10235
|
-
int:
|
|
10236
|
-
merge:
|
|
10237
|
-
omap:
|
|
10238
|
-
seq:
|
|
10239
|
-
str:
|
|
10240
|
-
};
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
var
|
|
10588
|
+
pairs: requirePairs(),
|
|
10589
|
+
set: requireSet(),
|
|
10590
|
+
timestamp: requireTimestamp(),
|
|
10591
|
+
bool: requireBool(),
|
|
10592
|
+
int: requireInt(),
|
|
10593
|
+
merge: requireMerge(),
|
|
10594
|
+
omap: requireOmap(),
|
|
10595
|
+
seq: requireSeq(),
|
|
10596
|
+
str: requireStr()
|
|
10597
|
+
};
|
|
10598
|
+
jsYaml.safeLoad = renamed("safeLoad", "load");
|
|
10599
|
+
jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
|
|
10600
|
+
jsYaml.safeDump = renamed("safeDump", "dump");
|
|
10601
|
+
return jsYaml;
|
|
10602
|
+
}
|
|
10603
|
+
var jsYamlExports = requireJsYaml();
|
|
10604
|
+
var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
|
|
10605
|
+
var {
|
|
10606
|
+
Type,
|
|
10607
|
+
Schema,
|
|
10608
|
+
FAILSAFE_SCHEMA,
|
|
10609
|
+
JSON_SCHEMA,
|
|
10610
|
+
CORE_SCHEMA,
|
|
10611
|
+
DEFAULT_SCHEMA,
|
|
10612
|
+
load,
|
|
10613
|
+
loadAll,
|
|
10614
|
+
dump,
|
|
10615
|
+
YAMLException,
|
|
10616
|
+
types,
|
|
10617
|
+
safeLoad,
|
|
10618
|
+
safeLoadAll,
|
|
10619
|
+
safeDump
|
|
10620
|
+
} = yaml;
|
|
10247
10621
|
|
|
10248
10622
|
// ../common/src/logger.ts
|
|
10249
10623
|
var logFilePathSlot = singleton("logFilePath");
|
|
@@ -10319,11 +10693,11 @@ class SimpleLogger {
|
|
|
10319
10693
|
const path3 = this.logFilePath || getGlobalLogFilePath();
|
|
10320
10694
|
if (!path3)
|
|
10321
10695
|
return;
|
|
10322
|
-
const
|
|
10696
|
+
const timestamp2 = new Date().toISOString();
|
|
10323
10697
|
this.pendingWrites = Promise.all([
|
|
10324
10698
|
this.pendingWrites,
|
|
10325
10699
|
this.pendingInit
|
|
10326
|
-
]).then(() => getFileSystem().appendFile(path3, `${
|
|
10700
|
+
]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
|
|
10327
10701
|
}
|
|
10328
10702
|
debug(message, ...args) {
|
|
10329
10703
|
if (this.level > 0 /* DEBUG */)
|
|
@@ -10717,10 +11091,10 @@ class LoggerTelemetryProvider {
|
|
|
10717
11091
|
success
|
|
10718
11092
|
})));
|
|
10719
11093
|
}
|
|
10720
|
-
async trackDependency(name,
|
|
11094
|
+
async trackDependency(name, type2, duration, success, properties) {
|
|
10721
11095
|
logger.debug(formatMessage("Dependency", name, this.enrich({
|
|
10722
11096
|
...properties,
|
|
10723
|
-
type,
|
|
11097
|
+
type: type2,
|
|
10724
11098
|
duration: `${duration}ms`,
|
|
10725
11099
|
success
|
|
10726
11100
|
})));
|
|
@@ -10947,7 +11321,7 @@ class TelemetryService {
|
|
|
10947
11321
|
throw error;
|
|
10948
11322
|
}
|
|
10949
11323
|
}
|
|
10950
|
-
async trackDependencyOperation(name,
|
|
11324
|
+
async trackDependencyOperation(name, type2, fn, properties) {
|
|
10951
11325
|
const parentContext = this.getCurrentContext();
|
|
10952
11326
|
if (!parentContext) {
|
|
10953
11327
|
throw new Error("trackDependencyOperation must be called within a trackRequest block.");
|
|
@@ -10962,13 +11336,13 @@ class TelemetryService {
|
|
|
10962
11336
|
const result = await this.contextStorage.run(childContext, fn);
|
|
10963
11337
|
const durationMs = performance.now() - startTime;
|
|
10964
11338
|
const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
|
|
10965
|
-
await this.telemetryProvider.trackDependency(name,
|
|
11339
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
|
|
10966
11340
|
return result;
|
|
10967
11341
|
} catch (error) {
|
|
10968
11342
|
const durationMs = performance.now() - startTime;
|
|
10969
11343
|
const err = error instanceof Error ? error : new Error(String(error));
|
|
10970
11344
|
const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
|
|
10971
|
-
await this.telemetryProvider.trackDependency(name,
|
|
11345
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
|
|
10972
11346
|
throw error;
|
|
10973
11347
|
}
|
|
10974
11348
|
}
|
|
@@ -11175,8 +11549,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
|
|
|
11175
11549
|
}
|
|
11176
11550
|
switch (format) {
|
|
11177
11551
|
case "json": {
|
|
11178
|
-
const
|
|
11179
|
-
logFn(asciiSafe ? escapeNonAscii(
|
|
11552
|
+
const json2 = JSON.stringify(data, null, 2);
|
|
11553
|
+
logFn(asciiSafe ? escapeNonAscii(json2) : json2);
|
|
11180
11554
|
break;
|
|
11181
11555
|
}
|
|
11182
11556
|
case "yaml":
|
|
@@ -11512,8 +11886,8 @@ var OutputFormatter;
|
|
|
11512
11886
|
const sink = getOutputSink();
|
|
11513
11887
|
const normalized = toPascalCaseData(data);
|
|
11514
11888
|
if (format === "json") {
|
|
11515
|
-
const
|
|
11516
|
-
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(
|
|
11889
|
+
const json2 = JSON.stringify(normalized);
|
|
11890
|
+
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
|
|
11517
11891
|
sink.writeErr(`${safe}
|
|
11518
11892
|
`);
|
|
11519
11893
|
} else {
|
|
@@ -11763,8 +12137,8 @@ function redactValueDetectors(value) {
|
|
|
11763
12137
|
out = out.replace(JWT_PATTERN, () => REDACTED);
|
|
11764
12138
|
out = out.replace(URL_PATTERN, (match) => {
|
|
11765
12139
|
const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
|
|
11766
|
-
const
|
|
11767
|
-
return `${redactUrl(
|
|
12140
|
+
const core2 = trailing ? match.slice(0, -trailing.length) : match;
|
|
12141
|
+
return `${redactUrl(core2)}${trailing}`;
|
|
11768
12142
|
});
|
|
11769
12143
|
out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
|
|
11770
12144
|
out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
|
|
@@ -12948,17 +13322,17 @@ try {
|
|
|
12948
13322
|
td.decode(et, { stream: true });
|
|
12949
13323
|
tds = 1;
|
|
12950
13324
|
} catch (e) {}
|
|
12951
|
-
function strToU8(
|
|
13325
|
+
function strToU8(str2, latin1) {
|
|
12952
13326
|
if (latin1) {
|
|
12953
|
-
var ar_1 = new u8(
|
|
12954
|
-
for (var i2 = 0;i2 <
|
|
12955
|
-
ar_1[i2] =
|
|
13327
|
+
var ar_1 = new u8(str2.length);
|
|
13328
|
+
for (var i2 = 0;i2 < str2.length; ++i2)
|
|
13329
|
+
ar_1[i2] = str2.charCodeAt(i2);
|
|
12956
13330
|
return ar_1;
|
|
12957
13331
|
}
|
|
12958
13332
|
if (te)
|
|
12959
|
-
return te.encode(
|
|
12960
|
-
var l =
|
|
12961
|
-
var ar = new u8(
|
|
13333
|
+
return te.encode(str2);
|
|
13334
|
+
var l = str2.length;
|
|
13335
|
+
var ar = new u8(str2.length + (str2.length >> 1));
|
|
12962
13336
|
var ai = 0;
|
|
12963
13337
|
var w = function(v) {
|
|
12964
13338
|
ar[ai++] = v;
|
|
@@ -12969,13 +13343,13 @@ function strToU8(str, latin1) {
|
|
|
12969
13343
|
n.set(ar);
|
|
12970
13344
|
ar = n;
|
|
12971
13345
|
}
|
|
12972
|
-
var c =
|
|
13346
|
+
var c = str2.charCodeAt(i2);
|
|
12973
13347
|
if (c < 128 || latin1)
|
|
12974
13348
|
w(c);
|
|
12975
13349
|
else if (c < 2048)
|
|
12976
13350
|
w(192 | c >> 6), w(128 | c & 63);
|
|
12977
13351
|
else if (c > 55295 && c < 57344)
|
|
12978
|
-
c = 65536 + (c & 1023 << 10) |
|
|
13352
|
+
c = 65536 + (c & 1023 << 10) | str2.charCodeAt(++i2) & 1023, w(240 | c >> 18), w(128 | c >> 12 & 63), w(128 | c >> 6 & 63), w(128 | c & 63);
|
|
12979
13353
|
else
|
|
12980
13354
|
w(224 | c >> 12), w(128 | c >> 6 & 63), w(128 | c & 63);
|
|
12981
13355
|
}
|
|
@@ -13631,731 +14005,731 @@ class JSONApiResponse2 {
|
|
|
13631
14005
|
}
|
|
13632
14006
|
}
|
|
13633
14007
|
// ../studioweb-sdk/generated/src/models/AccessStatus.ts
|
|
13634
|
-
function AccessStatusFromJSON(
|
|
13635
|
-
return AccessStatusFromJSONTyped(
|
|
14008
|
+
function AccessStatusFromJSON(json2) {
|
|
14009
|
+
return AccessStatusFromJSONTyped(json2, false);
|
|
13636
14010
|
}
|
|
13637
|
-
function AccessStatusFromJSONTyped(
|
|
13638
|
-
return
|
|
14011
|
+
function AccessStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14012
|
+
return json2;
|
|
13639
14013
|
}
|
|
13640
14014
|
// ../studioweb-sdk/generated/src/models/PinnedProject.ts
|
|
13641
|
-
function PinnedProjectFromJSON(
|
|
13642
|
-
return PinnedProjectFromJSONTyped(
|
|
14015
|
+
function PinnedProjectFromJSON(json2) {
|
|
14016
|
+
return PinnedProjectFromJSONTyped(json2, false);
|
|
13643
14017
|
}
|
|
13644
|
-
function PinnedProjectFromJSONTyped(
|
|
13645
|
-
if (
|
|
13646
|
-
return
|
|
14018
|
+
function PinnedProjectFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14019
|
+
if (json2 == null) {
|
|
14020
|
+
return json2;
|
|
13647
14021
|
}
|
|
13648
14022
|
return {
|
|
13649
|
-
id:
|
|
13650
|
-
projectDbModelId:
|
|
13651
|
-
userId:
|
|
13652
|
-
creationTime:
|
|
13653
|
-
project:
|
|
14023
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14024
|
+
projectDbModelId: json2["projectDbModelId"] == null ? undefined : json2["projectDbModelId"],
|
|
14025
|
+
userId: json2["userId"] == null ? undefined : json2["userId"],
|
|
14026
|
+
creationTime: json2["creationTime"] == null ? undefined : new Date(json2["creationTime"]),
|
|
14027
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"])
|
|
13654
14028
|
};
|
|
13655
14029
|
}
|
|
13656
14030
|
|
|
13657
14031
|
// ../studioweb-sdk/generated/src/models/ProjectStructure.ts
|
|
13658
|
-
function ProjectStructureFromJSON(
|
|
13659
|
-
return ProjectStructureFromJSONTyped(
|
|
14032
|
+
function ProjectStructureFromJSON(json2) {
|
|
14033
|
+
return ProjectStructureFromJSONTyped(json2, false);
|
|
13660
14034
|
}
|
|
13661
|
-
function ProjectStructureFromJSONTyped(
|
|
13662
|
-
return
|
|
14035
|
+
function ProjectStructureFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14036
|
+
return json2;
|
|
13663
14037
|
}
|
|
13664
14038
|
|
|
13665
14039
|
// ../studioweb-sdk/generated/src/models/ProjectAppliedProfileModel.ts
|
|
13666
|
-
function ProjectAppliedProfileModelFromJSON(
|
|
13667
|
-
return ProjectAppliedProfileModelFromJSONTyped(
|
|
14040
|
+
function ProjectAppliedProfileModelFromJSON(json2) {
|
|
14041
|
+
return ProjectAppliedProfileModelFromJSONTyped(json2, false);
|
|
13668
14042
|
}
|
|
13669
|
-
function ProjectAppliedProfileModelFromJSONTyped(
|
|
13670
|
-
if (
|
|
13671
|
-
return
|
|
14043
|
+
function ProjectAppliedProfileModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14044
|
+
if (json2 == null) {
|
|
14045
|
+
return json2;
|
|
13672
14046
|
}
|
|
13673
14047
|
return {
|
|
13674
|
-
projectId:
|
|
13675
|
-
workflowId:
|
|
13676
|
-
userProfileId:
|
|
13677
|
-
project:
|
|
13678
|
-
profile:
|
|
14048
|
+
projectId: json2["projectId"] == null ? undefined : json2["projectId"],
|
|
14049
|
+
workflowId: json2["workflowId"] == null ? undefined : json2["workflowId"],
|
|
14050
|
+
userProfileId: json2["userProfileId"] == null ? undefined : json2["userProfileId"],
|
|
14051
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"]),
|
|
14052
|
+
profile: json2["profile"] == null ? undefined : UserBindingProfileModelFromJSON(json2["profile"])
|
|
13679
14053
|
};
|
|
13680
14054
|
}
|
|
13681
14055
|
|
|
13682
14056
|
// ../studioweb-sdk/generated/src/models/PropertyBindingModel.ts
|
|
13683
|
-
function PropertyBindingModelFromJSON(
|
|
13684
|
-
return PropertyBindingModelFromJSONTyped(
|
|
14057
|
+
function PropertyBindingModelFromJSON(json2) {
|
|
14058
|
+
return PropertyBindingModelFromJSONTyped(json2, false);
|
|
13685
14059
|
}
|
|
13686
|
-
function PropertyBindingModelFromJSONTyped(
|
|
13687
|
-
if (
|
|
13688
|
-
return
|
|
14060
|
+
function PropertyBindingModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14061
|
+
if (json2 == null) {
|
|
14062
|
+
return json2;
|
|
13689
14063
|
}
|
|
13690
14064
|
return {
|
|
13691
|
-
id:
|
|
13692
|
-
profileId:
|
|
13693
|
-
workflowId:
|
|
13694
|
-
activityIdRef:
|
|
13695
|
-
propertyName:
|
|
13696
|
-
contractName:
|
|
13697
|
-
resourceKey:
|
|
13698
|
-
propertyValue:
|
|
13699
|
-
profile:
|
|
14065
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14066
|
+
profileId: json2["profileId"] == null ? undefined : json2["profileId"],
|
|
14067
|
+
workflowId: json2["workflowId"] == null ? undefined : json2["workflowId"],
|
|
14068
|
+
activityIdRef: json2["activityIdRef"] == null ? undefined : json2["activityIdRef"],
|
|
14069
|
+
propertyName: json2["propertyName"] == null ? undefined : json2["propertyName"],
|
|
14070
|
+
contractName: json2["contractName"] == null ? undefined : json2["contractName"],
|
|
14071
|
+
resourceKey: json2["resourceKey"] == null ? undefined : json2["resourceKey"],
|
|
14072
|
+
propertyValue: json2["propertyValue"] == null ? undefined : json2["propertyValue"],
|
|
14073
|
+
profile: json2["profile"] == null ? undefined : UserBindingProfileModelFromJSON(json2["profile"])
|
|
13700
14074
|
};
|
|
13701
14075
|
}
|
|
13702
14076
|
|
|
13703
14077
|
// ../studioweb-sdk/generated/src/models/UserBindingProfileModel.ts
|
|
13704
|
-
function UserBindingProfileModelFromJSON(
|
|
13705
|
-
return UserBindingProfileModelFromJSONTyped3(
|
|
14078
|
+
function UserBindingProfileModelFromJSON(json2) {
|
|
14079
|
+
return UserBindingProfileModelFromJSONTyped3(json2, false);
|
|
13706
14080
|
}
|
|
13707
|
-
function UserBindingProfileModelFromJSONTyped3(
|
|
13708
|
-
if (
|
|
13709
|
-
return
|
|
14081
|
+
function UserBindingProfileModelFromJSONTyped3(json2, ignoreDiscriminator) {
|
|
14082
|
+
if (json2 == null) {
|
|
14083
|
+
return json2;
|
|
13710
14084
|
}
|
|
13711
14085
|
return {
|
|
13712
|
-
id:
|
|
13713
|
-
userId:
|
|
13714
|
-
tenantId:
|
|
13715
|
-
projectId:
|
|
13716
|
-
workflowId:
|
|
13717
|
-
bindingsJson:
|
|
13718
|
-
userPropertyBindings:
|
|
13719
|
-
project:
|
|
13720
|
-
appliedTo:
|
|
14086
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14087
|
+
userId: json2["userId"] == null ? undefined : json2["userId"],
|
|
14088
|
+
tenantId: json2["tenantId"] == null ? undefined : json2["tenantId"],
|
|
14089
|
+
projectId: json2["projectId"] == null ? undefined : json2["projectId"],
|
|
14090
|
+
workflowId: json2["workflowId"] == null ? undefined : json2["workflowId"],
|
|
14091
|
+
bindingsJson: json2["bindingsJson"] == null ? undefined : json2["bindingsJson"],
|
|
14092
|
+
userPropertyBindings: json2["userPropertyBindings"] == null ? undefined : json2["userPropertyBindings"].map(PropertyBindingModelFromJSON),
|
|
14093
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"]),
|
|
14094
|
+
appliedTo: json2["appliedTo"] == null ? undefined : ProjectAppliedProfileModelFromJSON(json2["appliedTo"])
|
|
13721
14095
|
};
|
|
13722
14096
|
}
|
|
13723
14097
|
|
|
13724
14098
|
// ../studioweb-sdk/generated/src/models/ProjectAppModel.ts
|
|
13725
|
-
function ProjectAppModelFromJSON(
|
|
13726
|
-
return ProjectAppModelFromJSONTyped(
|
|
14099
|
+
function ProjectAppModelFromJSON(json2) {
|
|
14100
|
+
return ProjectAppModelFromJSONTyped(json2, false);
|
|
13727
14101
|
}
|
|
13728
|
-
function ProjectAppModelFromJSONTyped(
|
|
13729
|
-
if (
|
|
13730
|
-
return
|
|
14102
|
+
function ProjectAppModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14103
|
+
if (json2 == null) {
|
|
14104
|
+
return json2;
|
|
13731
14105
|
}
|
|
13732
14106
|
return {
|
|
13733
|
-
id:
|
|
13734
|
-
projectId:
|
|
13735
|
-
appId:
|
|
13736
|
-
isFileSystemEnabled:
|
|
13737
|
-
project:
|
|
14107
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14108
|
+
projectId: json2["projectId"] == null ? undefined : json2["projectId"],
|
|
14109
|
+
appId: json2["appId"] == null ? undefined : json2["appId"],
|
|
14110
|
+
isFileSystemEnabled: json2["isFileSystemEnabled"] == null ? undefined : json2["isFileSystemEnabled"],
|
|
14111
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"])
|
|
13738
14112
|
};
|
|
13739
14113
|
}
|
|
13740
14114
|
|
|
13741
14115
|
// ../studioweb-sdk/generated/src/models/ProjectLockModel.ts
|
|
13742
|
-
function ProjectLockModelFromJSON(
|
|
13743
|
-
return ProjectLockModelFromJSONTyped(
|
|
14116
|
+
function ProjectLockModelFromJSON(json2) {
|
|
14117
|
+
return ProjectLockModelFromJSONTyped(json2, false);
|
|
13744
14118
|
}
|
|
13745
|
-
function ProjectLockModelFromJSONTyped(
|
|
13746
|
-
if (
|
|
13747
|
-
return
|
|
14119
|
+
function ProjectLockModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14120
|
+
if (json2 == null) {
|
|
14121
|
+
return json2;
|
|
13748
14122
|
}
|
|
13749
14123
|
return {
|
|
13750
|
-
projectId:
|
|
13751
|
-
key:
|
|
13752
|
-
userId:
|
|
13753
|
-
expirationDate:
|
|
13754
|
-
rowVersion:
|
|
13755
|
-
project:
|
|
13756
|
-
solutionId:
|
|
14124
|
+
projectId: json2["projectId"] == null ? undefined : json2["projectId"],
|
|
14125
|
+
key: json2["key"] == null ? undefined : json2["key"],
|
|
14126
|
+
userId: json2["userId"] == null ? undefined : json2["userId"],
|
|
14127
|
+
expirationDate: json2["expirationDate"] == null ? undefined : new Date(json2["expirationDate"]),
|
|
14128
|
+
rowVersion: json2["rowVersion"] == null ? undefined : json2["rowVersion"],
|
|
14129
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"]),
|
|
14130
|
+
solutionId: json2["solutionId"] == null ? undefined : json2["solutionId"]
|
|
13757
14131
|
};
|
|
13758
14132
|
}
|
|
13759
14133
|
|
|
13760
14134
|
// ../studioweb-sdk/generated/src/models/TestManagerMetadataModel.ts
|
|
13761
|
-
function TestManagerMetadataModelFromJSON(
|
|
13762
|
-
return TestManagerMetadataModelFromJSONTyped(
|
|
14135
|
+
function TestManagerMetadataModelFromJSON(json2) {
|
|
14136
|
+
return TestManagerMetadataModelFromJSONTyped(json2, false);
|
|
13763
14137
|
}
|
|
13764
|
-
function TestManagerMetadataModelFromJSONTyped(
|
|
13765
|
-
if (
|
|
13766
|
-
return
|
|
14138
|
+
function TestManagerMetadataModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14139
|
+
if (json2 == null) {
|
|
14140
|
+
return json2;
|
|
13767
14141
|
}
|
|
13768
14142
|
return {
|
|
13769
|
-
id:
|
|
13770
|
-
studioWebProjectId:
|
|
13771
|
-
project:
|
|
13772
|
-
testManagerProjectId:
|
|
13773
|
-
creationTime:
|
|
14143
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14144
|
+
studioWebProjectId: json2["studioWebProjectId"] == null ? undefined : json2["studioWebProjectId"],
|
|
14145
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"]),
|
|
14146
|
+
testManagerProjectId: json2["testManagerProjectId"] == null ? undefined : json2["testManagerProjectId"],
|
|
14147
|
+
creationTime: json2["creationTime"] == null ? undefined : new Date(json2["creationTime"])
|
|
13774
14148
|
};
|
|
13775
14149
|
}
|
|
13776
14150
|
|
|
13777
14151
|
// ../studioweb-sdk/generated/src/models/TargetFramework.ts
|
|
13778
|
-
function TargetFrameworkFromJSON(
|
|
13779
|
-
return TargetFrameworkFromJSONTyped(
|
|
14152
|
+
function TargetFrameworkFromJSON(json2) {
|
|
14153
|
+
return TargetFrameworkFromJSONTyped(json2, false);
|
|
13780
14154
|
}
|
|
13781
|
-
function TargetFrameworkFromJSONTyped(
|
|
13782
|
-
return
|
|
14155
|
+
function TargetFrameworkFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14156
|
+
return json2;
|
|
13783
14157
|
}
|
|
13784
14158
|
|
|
13785
14159
|
// ../studioweb-sdk/generated/src/models/ProjectStatus.ts
|
|
13786
|
-
function ProjectStatusFromJSON(
|
|
13787
|
-
return ProjectStatusFromJSONTyped(
|
|
14160
|
+
function ProjectStatusFromJSON(json2) {
|
|
14161
|
+
return ProjectStatusFromJSONTyped(json2, false);
|
|
13788
14162
|
}
|
|
13789
|
-
function ProjectStatusFromJSONTyped(
|
|
13790
|
-
return
|
|
14163
|
+
function ProjectStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14164
|
+
return json2;
|
|
13791
14165
|
}
|
|
13792
14166
|
|
|
13793
14167
|
// ../studioweb-sdk/generated/src/models/SharingPermissions.ts
|
|
13794
|
-
function SharingPermissionsFromJSON(
|
|
13795
|
-
return SharingPermissionsFromJSONTyped(
|
|
14168
|
+
function SharingPermissionsFromJSON(json2) {
|
|
14169
|
+
return SharingPermissionsFromJSONTyped(json2, false);
|
|
13796
14170
|
}
|
|
13797
|
-
function SharingPermissionsFromJSONTyped(
|
|
13798
|
-
return
|
|
14171
|
+
function SharingPermissionsFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14172
|
+
return json2;
|
|
13799
14173
|
}
|
|
13800
14174
|
|
|
13801
14175
|
// ../studioweb-sdk/generated/src/models/SharedProject.ts
|
|
13802
|
-
function SharedProjectFromJSON(
|
|
13803
|
-
return SharedProjectFromJSONTyped(
|
|
14176
|
+
function SharedProjectFromJSON(json2) {
|
|
14177
|
+
return SharedProjectFromJSONTyped(json2, false);
|
|
13804
14178
|
}
|
|
13805
|
-
function SharedProjectFromJSONTyped(
|
|
13806
|
-
if (
|
|
13807
|
-
return
|
|
14179
|
+
function SharedProjectFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14180
|
+
if (json2 == null) {
|
|
14181
|
+
return json2;
|
|
13808
14182
|
}
|
|
13809
14183
|
return {
|
|
13810
|
-
id:
|
|
13811
|
-
projectId:
|
|
13812
|
-
entityId:
|
|
13813
|
-
organizationId:
|
|
13814
|
-
isHidden:
|
|
13815
|
-
creationTime:
|
|
13816
|
-
isGroup:
|
|
13817
|
-
permissions:
|
|
13818
|
-
project:
|
|
14184
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14185
|
+
projectId: json2["projectId"] == null ? undefined : json2["projectId"],
|
|
14186
|
+
entityId: json2["entityId"] == null ? undefined : json2["entityId"],
|
|
14187
|
+
organizationId: json2["organizationId"] == null ? undefined : json2["organizationId"],
|
|
14188
|
+
isHidden: json2["isHidden"] == null ? undefined : json2["isHidden"],
|
|
14189
|
+
creationTime: json2["creationTime"] == null ? undefined : new Date(json2["creationTime"]),
|
|
14190
|
+
isGroup: json2["isGroup"] == null ? undefined : json2["isGroup"],
|
|
14191
|
+
permissions: json2["permissions"] == null ? undefined : SharingPermissionsFromJSON(json2["permissions"]),
|
|
14192
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"])
|
|
13819
14193
|
};
|
|
13820
14194
|
}
|
|
13821
14195
|
|
|
13822
14196
|
// ../studioweb-sdk/generated/src/models/UserMessageDbModel.ts
|
|
13823
|
-
function UserMessageDbModelFromJSON(
|
|
13824
|
-
return UserMessageDbModelFromJSONTyped(
|
|
14197
|
+
function UserMessageDbModelFromJSON(json2) {
|
|
14198
|
+
return UserMessageDbModelFromJSONTyped(json2, false);
|
|
13825
14199
|
}
|
|
13826
|
-
function UserMessageDbModelFromJSONTyped(
|
|
13827
|
-
if (
|
|
13828
|
-
return
|
|
14200
|
+
function UserMessageDbModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14201
|
+
if (json2 == null) {
|
|
14202
|
+
return json2;
|
|
13829
14203
|
}
|
|
13830
14204
|
return {
|
|
13831
|
-
id:
|
|
13832
|
-
message:
|
|
13833
|
-
creationTime:
|
|
13834
|
-
projectDbModelId:
|
|
13835
|
-
project:
|
|
14205
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14206
|
+
message: json2["message"] == null ? undefined : json2["message"],
|
|
14207
|
+
creationTime: json2["creationTime"] == null ? undefined : new Date(json2["creationTime"]),
|
|
14208
|
+
projectDbModelId: json2["projectDbModelId"] == null ? undefined : json2["projectDbModelId"],
|
|
14209
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"])
|
|
13836
14210
|
};
|
|
13837
14211
|
}
|
|
13838
14212
|
|
|
13839
14213
|
// ../studioweb-sdk/generated/src/models/ProjectConnectionModel.ts
|
|
13840
|
-
function ProjectConnectionModelFromJSON(
|
|
13841
|
-
return ProjectConnectionModelFromJSONTyped(
|
|
14214
|
+
function ProjectConnectionModelFromJSON(json2) {
|
|
14215
|
+
return ProjectConnectionModelFromJSONTyped(json2, false);
|
|
13842
14216
|
}
|
|
13843
|
-
function ProjectConnectionModelFromJSONTyped(
|
|
13844
|
-
if (
|
|
13845
|
-
return
|
|
14217
|
+
function ProjectConnectionModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14218
|
+
if (json2 == null) {
|
|
14219
|
+
return json2;
|
|
13846
14220
|
}
|
|
13847
14221
|
return {
|
|
13848
|
-
connectionId:
|
|
13849
|
-
connector:
|
|
13850
|
-
projectId:
|
|
13851
|
-
project:
|
|
13852
|
-
usedInWorkflow:
|
|
13853
|
-
usedInTrigger:
|
|
13854
|
-
workflowFileId:
|
|
14222
|
+
connectionId: json2["connectionId"] == null ? undefined : json2["connectionId"],
|
|
14223
|
+
connector: json2["connector"] == null ? undefined : json2["connector"],
|
|
14224
|
+
projectId: json2["projectId"] == null ? undefined : json2["projectId"],
|
|
14225
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"]),
|
|
14226
|
+
usedInWorkflow: json2["usedInWorkflow"] == null ? undefined : json2["usedInWorkflow"],
|
|
14227
|
+
usedInTrigger: json2["usedInTrigger"] == null ? undefined : json2["usedInTrigger"],
|
|
14228
|
+
workflowFileId: json2["workflowFileId"] == null ? undefined : json2["workflowFileId"]
|
|
13855
14229
|
};
|
|
13856
14230
|
}
|
|
13857
14231
|
|
|
13858
14232
|
// ../studioweb-sdk/generated/src/models/TriggerMetadataModel.ts
|
|
13859
|
-
function TriggerMetadataModelFromJSON(
|
|
13860
|
-
return TriggerMetadataModelFromJSONTyped(
|
|
14233
|
+
function TriggerMetadataModelFromJSON(json2) {
|
|
14234
|
+
return TriggerMetadataModelFromJSONTyped(json2, false);
|
|
13861
14235
|
}
|
|
13862
|
-
function TriggerMetadataModelFromJSONTyped(
|
|
13863
|
-
if (
|
|
13864
|
-
return
|
|
14236
|
+
function TriggerMetadataModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14237
|
+
if (json2 == null) {
|
|
14238
|
+
return json2;
|
|
13865
14239
|
}
|
|
13866
14240
|
return {
|
|
13867
|
-
projectId:
|
|
13868
|
-
connectionId:
|
|
13869
|
-
connection:
|
|
13870
|
-
projectConnection:
|
|
13871
|
-
operation:
|
|
13872
|
-
triggerId:
|
|
13873
|
-
defaultDisplayName:
|
|
13874
|
-
displayName:
|
|
13875
|
-
project:
|
|
14241
|
+
projectId: json2["projectId"] == null ? undefined : json2["projectId"],
|
|
14242
|
+
connectionId: json2["connectionId"] == null ? undefined : json2["connectionId"],
|
|
14243
|
+
connection: json2["connection"] == null ? undefined : ConnectionMetadataModelFromJSON(json2["connection"]),
|
|
14244
|
+
projectConnection: json2["projectConnection"] == null ? undefined : ProjectConnectionModelFromJSON(json2["projectConnection"]),
|
|
14245
|
+
operation: json2["operation"] == null ? undefined : json2["operation"],
|
|
14246
|
+
triggerId: json2["triggerId"] == null ? undefined : json2["triggerId"],
|
|
14247
|
+
defaultDisplayName: json2["defaultDisplayName"] == null ? undefined : json2["defaultDisplayName"],
|
|
14248
|
+
displayName: json2["displayName"] == null ? undefined : json2["displayName"],
|
|
14249
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"])
|
|
13876
14250
|
};
|
|
13877
14251
|
}
|
|
13878
14252
|
|
|
13879
14253
|
// ../studioweb-sdk/generated/src/models/ConnectionMetadataModel.ts
|
|
13880
|
-
function ConnectionMetadataModelFromJSON(
|
|
13881
|
-
return ConnectionMetadataModelFromJSONTyped2(
|
|
14254
|
+
function ConnectionMetadataModelFromJSON(json2) {
|
|
14255
|
+
return ConnectionMetadataModelFromJSONTyped2(json2, false);
|
|
13882
14256
|
}
|
|
13883
|
-
function ConnectionMetadataModelFromJSONTyped2(
|
|
13884
|
-
if (
|
|
13885
|
-
return
|
|
14257
|
+
function ConnectionMetadataModelFromJSONTyped2(json2, ignoreDiscriminator) {
|
|
14258
|
+
if (json2 == null) {
|
|
14259
|
+
return json2;
|
|
13886
14260
|
}
|
|
13887
14261
|
return {
|
|
13888
|
-
connectionId:
|
|
13889
|
-
connector:
|
|
13890
|
-
projects:
|
|
13891
|
-
triggers:
|
|
14262
|
+
connectionId: json2["connectionId"] == null ? undefined : json2["connectionId"],
|
|
14263
|
+
connector: json2["connector"] == null ? undefined : json2["connector"],
|
|
14264
|
+
projects: json2["projects"] == null ? undefined : json2["projects"].map(ProjectDbModelFromJSON),
|
|
14265
|
+
triggers: json2["triggers"] == null ? undefined : json2["triggers"].map(TriggerMetadataModelFromJSON)
|
|
13892
14266
|
};
|
|
13893
14267
|
}
|
|
13894
14268
|
|
|
13895
14269
|
// ../studioweb-sdk/generated/src/models/ProjectMetadataModel.ts
|
|
13896
|
-
function ProjectMetadataModelFromJSON(
|
|
13897
|
-
return ProjectMetadataModelFromJSONTyped(
|
|
14270
|
+
function ProjectMetadataModelFromJSON(json2) {
|
|
14271
|
+
return ProjectMetadataModelFromJSONTyped(json2, false);
|
|
13898
14272
|
}
|
|
13899
|
-
function ProjectMetadataModelFromJSONTyped(
|
|
13900
|
-
if (
|
|
13901
|
-
return
|
|
14273
|
+
function ProjectMetadataModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14274
|
+
if (json2 == null) {
|
|
14275
|
+
return json2;
|
|
13902
14276
|
}
|
|
13903
14277
|
return {
|
|
13904
|
-
projectId:
|
|
13905
|
-
hasTestCases:
|
|
13906
|
-
mcIgnorableApplied:
|
|
13907
|
-
lastScanDate:
|
|
13908
|
-
project:
|
|
14278
|
+
projectId: json2["projectId"] == null ? undefined : json2["projectId"],
|
|
14279
|
+
hasTestCases: json2["hasTestCases"] == null ? undefined : json2["hasTestCases"],
|
|
14280
|
+
mcIgnorableApplied: json2["mcIgnorableApplied"] == null ? undefined : new Date(json2["mcIgnorableApplied"]),
|
|
14281
|
+
lastScanDate: json2["lastScanDate"] == null ? undefined : new Date(json2["lastScanDate"]),
|
|
14282
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"])
|
|
13909
14283
|
};
|
|
13910
14284
|
}
|
|
13911
14285
|
|
|
13912
14286
|
// ../studioweb-sdk/generated/src/models/PublishStatus.ts
|
|
13913
|
-
function PublishStatusFromJSON(
|
|
13914
|
-
return PublishStatusFromJSONTyped(
|
|
14287
|
+
function PublishStatusFromJSON(json2) {
|
|
14288
|
+
return PublishStatusFromJSONTyped(json2, false);
|
|
13915
14289
|
}
|
|
13916
|
-
function PublishStatusFromJSONTyped(
|
|
13917
|
-
return
|
|
14290
|
+
function PublishStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14291
|
+
return json2;
|
|
13918
14292
|
}
|
|
13919
14293
|
|
|
13920
14294
|
// ../studioweb-sdk/generated/src/models/PublishResultModel.ts
|
|
13921
|
-
function PublishResultModelFromJSON(
|
|
13922
|
-
return PublishResultModelFromJSONTyped(
|
|
14295
|
+
function PublishResultModelFromJSON(json2) {
|
|
14296
|
+
return PublishResultModelFromJSONTyped(json2, false);
|
|
13923
14297
|
}
|
|
13924
|
-
function PublishResultModelFromJSONTyped(
|
|
13925
|
-
if (
|
|
13926
|
-
return
|
|
14298
|
+
function PublishResultModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14299
|
+
if (json2 == null) {
|
|
14300
|
+
return json2;
|
|
13927
14301
|
}
|
|
13928
14302
|
return {
|
|
13929
|
-
id:
|
|
13930
|
-
projectId:
|
|
13931
|
-
creationTime:
|
|
13932
|
-
status:
|
|
13933
|
-
message:
|
|
13934
|
-
tenantId:
|
|
13935
|
-
feedId:
|
|
13936
|
-
version:
|
|
13937
|
-
userId:
|
|
13938
|
-
project:
|
|
13939
|
-
iconUrl:
|
|
14303
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14304
|
+
projectId: json2["projectId"] == null ? undefined : json2["projectId"],
|
|
14305
|
+
creationTime: json2["creationTime"] == null ? undefined : new Date(json2["creationTime"]),
|
|
14306
|
+
status: json2["status"] == null ? undefined : PublishStatusFromJSON(json2["status"]),
|
|
14307
|
+
message: json2["message"] == null ? undefined : json2["message"],
|
|
14308
|
+
tenantId: json2["tenantId"] == null ? undefined : json2["tenantId"],
|
|
14309
|
+
feedId: json2["feedId"] == null ? undefined : json2["feedId"],
|
|
14310
|
+
version: json2["version"] == null ? undefined : json2["version"],
|
|
14311
|
+
userId: json2["userId"] == null ? undefined : json2["userId"],
|
|
14312
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"]),
|
|
14313
|
+
iconUrl: json2["iconUrl"] == null ? undefined : json2["iconUrl"]
|
|
13940
14314
|
};
|
|
13941
14315
|
}
|
|
13942
14316
|
|
|
13943
14317
|
// ../studioweb-sdk/generated/src/models/SapContext.ts
|
|
13944
|
-
function SapContextFromJSON(
|
|
13945
|
-
return SapContextFromJSONTyped(
|
|
14318
|
+
function SapContextFromJSON(json2) {
|
|
14319
|
+
return SapContextFromJSONTyped(json2, false);
|
|
13946
14320
|
}
|
|
13947
|
-
function SapContextFromJSONTyped(
|
|
13948
|
-
if (
|
|
13949
|
-
return
|
|
14321
|
+
function SapContextFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14322
|
+
if (json2 == null) {
|
|
14323
|
+
return json2;
|
|
13950
14324
|
}
|
|
13951
14325
|
return {
|
|
13952
|
-
id:
|
|
13953
|
-
projectId:
|
|
13954
|
-
tenantId:
|
|
13955
|
-
isPrimaryProject:
|
|
13956
|
-
externalProjectId:
|
|
13957
|
-
baseCallbackPath:
|
|
13958
|
-
project:
|
|
14326
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14327
|
+
projectId: json2["projectId"] == null ? undefined : json2["projectId"],
|
|
14328
|
+
tenantId: json2["tenantId"] == null ? undefined : json2["tenantId"],
|
|
14329
|
+
isPrimaryProject: json2["isPrimaryProject"] == null ? undefined : json2["isPrimaryProject"],
|
|
14330
|
+
externalProjectId: json2["externalProjectId"] == null ? undefined : json2["externalProjectId"],
|
|
14331
|
+
baseCallbackPath: json2["baseCallbackPath"] == null ? undefined : json2["baseCallbackPath"],
|
|
14332
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"])
|
|
13959
14333
|
};
|
|
13960
14334
|
}
|
|
13961
14335
|
|
|
13962
14336
|
// ../studioweb-sdk/generated/src/models/ProjectPackageModel.ts
|
|
13963
|
-
function ProjectPackageModelFromJSON(
|
|
13964
|
-
return ProjectPackageModelFromJSONTyped(
|
|
14337
|
+
function ProjectPackageModelFromJSON(json2) {
|
|
14338
|
+
return ProjectPackageModelFromJSONTyped(json2, false);
|
|
13965
14339
|
}
|
|
13966
|
-
function ProjectPackageModelFromJSONTyped(
|
|
13967
|
-
if (
|
|
13968
|
-
return
|
|
14340
|
+
function ProjectPackageModelFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14341
|
+
if (json2 == null) {
|
|
14342
|
+
return json2;
|
|
13969
14343
|
}
|
|
13970
14344
|
return {
|
|
13971
|
-
id:
|
|
13972
|
-
name:
|
|
13973
|
-
version:
|
|
13974
|
-
project:
|
|
14345
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14346
|
+
name: json2["name"] == null ? undefined : json2["name"],
|
|
14347
|
+
version: json2["version"] == null ? undefined : json2["version"],
|
|
14348
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"])
|
|
13975
14349
|
};
|
|
13976
14350
|
}
|
|
13977
14351
|
|
|
13978
14352
|
// ../studioweb-sdk/generated/src/models/ProjectDbModel.ts
|
|
13979
|
-
function ProjectDbModelFromJSON(
|
|
13980
|
-
return ProjectDbModelFromJSONTyped16(
|
|
14353
|
+
function ProjectDbModelFromJSON(json2) {
|
|
14354
|
+
return ProjectDbModelFromJSONTyped16(json2, false);
|
|
13981
14355
|
}
|
|
13982
|
-
function ProjectDbModelFromJSONTyped16(
|
|
13983
|
-
if (
|
|
13984
|
-
return
|
|
14356
|
+
function ProjectDbModelFromJSONTyped16(json2, ignoreDiscriminator) {
|
|
14357
|
+
if (json2 == null) {
|
|
14358
|
+
return json2;
|
|
13985
14359
|
}
|
|
13986
14360
|
return {
|
|
13987
|
-
id:
|
|
13988
|
-
designId:
|
|
13989
|
-
previousProjectId:
|
|
13990
|
-
userId:
|
|
13991
|
-
organisationId:
|
|
13992
|
-
name:
|
|
13993
|
-
solutionId:
|
|
13994
|
-
deletionDate:
|
|
13995
|
-
status:
|
|
13996
|
-
fakeProjectTemplateEdit:
|
|
13997
|
-
isHidden:
|
|
13998
|
-
targetFramework:
|
|
13999
|
-
projectType:
|
|
14000
|
-
creationTime:
|
|
14001
|
-
lastModifiedTime:
|
|
14002
|
-
expressionLanguage:
|
|
14003
|
-
nameLower:
|
|
14004
|
-
description:
|
|
14005
|
-
descriptionLower:
|
|
14006
|
-
jitVersion:
|
|
14007
|
-
dependencies:
|
|
14008
|
-
pinDate:
|
|
14009
|
-
lock:
|
|
14010
|
-
hasTrigger:
|
|
14011
|
-
tenantId:
|
|
14012
|
-
sapContext:
|
|
14013
|
-
rowVersion:
|
|
14014
|
-
disableAutoUpdateUntilDate:
|
|
14015
|
-
structure:
|
|
14016
|
-
userMessage:
|
|
14017
|
-
triggerType:
|
|
14018
|
-
trigger:
|
|
14019
|
-
connections:
|
|
14020
|
-
pins:
|
|
14021
|
-
bindingProfiles:
|
|
14022
|
-
lastAppliedProfileId:
|
|
14023
|
-
lastAppliedProfile:
|
|
14024
|
-
hasDefaultName:
|
|
14025
|
-
projectAppliedProfiles:
|
|
14026
|
-
projectConnections:
|
|
14027
|
-
additionalBindingProperties:
|
|
14028
|
-
publishHistory:
|
|
14029
|
-
projectAppMetadata:
|
|
14030
|
-
testManagerMetadata:
|
|
14031
|
-
shares:
|
|
14032
|
-
metadata:
|
|
14033
|
-
isPreview:
|
|
14034
|
-
errorList:
|
|
14035
|
-
requirePreprocessing:
|
|
14036
|
-
relativePath:
|
|
14361
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14362
|
+
designId: json2["designId"] == null ? undefined : json2["designId"],
|
|
14363
|
+
previousProjectId: json2["previousProjectId"] == null ? undefined : json2["previousProjectId"],
|
|
14364
|
+
userId: json2["userId"] == null ? undefined : json2["userId"],
|
|
14365
|
+
organisationId: json2["organisationId"] == null ? undefined : json2["organisationId"],
|
|
14366
|
+
name: json2["name"] == null ? undefined : json2["name"],
|
|
14367
|
+
solutionId: json2["solutionId"] == null ? undefined : json2["solutionId"],
|
|
14368
|
+
deletionDate: json2["deletionDate"] == null ? undefined : new Date(json2["deletionDate"]),
|
|
14369
|
+
status: json2["status"] == null ? undefined : ProjectStatusFromJSON(json2["status"]),
|
|
14370
|
+
fakeProjectTemplateEdit: json2["fakeProjectTemplateEdit"] == null ? undefined : json2["fakeProjectTemplateEdit"],
|
|
14371
|
+
isHidden: json2["isHidden"] == null ? undefined : json2["isHidden"],
|
|
14372
|
+
targetFramework: json2["targetFramework"] == null ? undefined : TargetFrameworkFromJSON(json2["targetFramework"]),
|
|
14373
|
+
projectType: json2["projectType"] == null ? undefined : json2["projectType"],
|
|
14374
|
+
creationTime: json2["creationTime"] == null ? undefined : new Date(json2["creationTime"]),
|
|
14375
|
+
lastModifiedTime: json2["lastModifiedTime"] == null ? undefined : new Date(json2["lastModifiedTime"]),
|
|
14376
|
+
expressionLanguage: json2["expressionLanguage"] == null ? undefined : json2["expressionLanguage"],
|
|
14377
|
+
nameLower: json2["nameLower"] == null ? undefined : json2["nameLower"],
|
|
14378
|
+
description: json2["description"] == null ? undefined : json2["description"],
|
|
14379
|
+
descriptionLower: json2["descriptionLower"] == null ? undefined : json2["descriptionLower"],
|
|
14380
|
+
jitVersion: json2["jitVersion"] == null ? undefined : json2["jitVersion"],
|
|
14381
|
+
dependencies: json2["dependencies"] == null ? undefined : json2["dependencies"].map(ProjectPackageModelFromJSON),
|
|
14382
|
+
pinDate: json2["pinDate"] == null ? undefined : new Date(json2["pinDate"]),
|
|
14383
|
+
lock: json2["lock"] == null ? undefined : ProjectLockModelFromJSON(json2["lock"]),
|
|
14384
|
+
hasTrigger: json2["hasTrigger"] == null ? undefined : json2["hasTrigger"],
|
|
14385
|
+
tenantId: json2["tenantId"] == null ? undefined : json2["tenantId"],
|
|
14386
|
+
sapContext: json2["sapContext"] == null ? undefined : SapContextFromJSON(json2["sapContext"]),
|
|
14387
|
+
rowVersion: json2["rowVersion"] == null ? undefined : json2["rowVersion"],
|
|
14388
|
+
disableAutoUpdateUntilDate: json2["disableAutoUpdateUntilDate"] == null ? undefined : new Date(json2["disableAutoUpdateUntilDate"]),
|
|
14389
|
+
structure: json2["structure"] == null ? undefined : ProjectStructureFromJSON(json2["structure"]),
|
|
14390
|
+
userMessage: json2["userMessage"] == null ? undefined : UserMessageDbModelFromJSON(json2["userMessage"]),
|
|
14391
|
+
triggerType: json2["triggerType"] == null ? undefined : json2["triggerType"],
|
|
14392
|
+
trigger: json2["trigger"] == null ? undefined : TriggerMetadataModelFromJSON(json2["trigger"]),
|
|
14393
|
+
connections: json2["connections"] == null ? undefined : json2["connections"].map(ConnectionMetadataModelFromJSON),
|
|
14394
|
+
pins: json2["pins"] == null ? undefined : json2["pins"].map(PinnedProjectFromJSON),
|
|
14395
|
+
bindingProfiles: json2["bindingProfiles"] == null ? undefined : json2["bindingProfiles"].map(UserBindingProfileModelFromJSON),
|
|
14396
|
+
lastAppliedProfileId: json2["lastAppliedProfileId"] == null ? undefined : json2["lastAppliedProfileId"],
|
|
14397
|
+
lastAppliedProfile: json2["lastAppliedProfile"] == null ? undefined : UserBindingProfileModelFromJSON(json2["lastAppliedProfile"]),
|
|
14398
|
+
hasDefaultName: json2["hasDefaultName"] == null ? undefined : json2["hasDefaultName"],
|
|
14399
|
+
projectAppliedProfiles: json2["projectAppliedProfiles"] == null ? undefined : json2["projectAppliedProfiles"].map(ProjectAppliedProfileModelFromJSON),
|
|
14400
|
+
projectConnections: json2["projectConnections"] == null ? undefined : json2["projectConnections"].map(ProjectConnectionModelFromJSON),
|
|
14401
|
+
additionalBindingProperties: json2["additionalBindingProperties"] == null ? undefined : json2["additionalBindingProperties"].map(AdditionalBindingPropertiesFromJSON),
|
|
14402
|
+
publishHistory: json2["publishHistory"] == null ? undefined : json2["publishHistory"].map(PublishResultModelFromJSON),
|
|
14403
|
+
projectAppMetadata: json2["projectAppMetadata"] == null ? undefined : ProjectAppModelFromJSON(json2["projectAppMetadata"]),
|
|
14404
|
+
testManagerMetadata: json2["testManagerMetadata"] == null ? undefined : TestManagerMetadataModelFromJSON(json2["testManagerMetadata"]),
|
|
14405
|
+
shares: json2["shares"] == null ? undefined : json2["shares"].map(SharedProjectFromJSON),
|
|
14406
|
+
metadata: json2["metadata"] == null ? undefined : ProjectMetadataModelFromJSON(json2["metadata"]),
|
|
14407
|
+
isPreview: json2["isPreview"] == null ? undefined : json2["isPreview"],
|
|
14408
|
+
errorList: json2["errorList"] == null ? undefined : json2["errorList"],
|
|
14409
|
+
requirePreprocessing: json2["requirePreprocessing"] == null ? undefined : json2["requirePreprocessing"],
|
|
14410
|
+
relativePath: json2["relativePath"] == null ? undefined : json2["relativePath"]
|
|
14037
14411
|
};
|
|
14038
14412
|
}
|
|
14039
14413
|
|
|
14040
14414
|
// ../studioweb-sdk/generated/src/models/AdditionalBindingProperties.ts
|
|
14041
|
-
function AdditionalBindingPropertiesFromJSON(
|
|
14042
|
-
return AdditionalBindingPropertiesFromJSONTyped2(
|
|
14415
|
+
function AdditionalBindingPropertiesFromJSON(json2) {
|
|
14416
|
+
return AdditionalBindingPropertiesFromJSONTyped2(json2, false);
|
|
14043
14417
|
}
|
|
14044
|
-
function AdditionalBindingPropertiesFromJSONTyped2(
|
|
14045
|
-
if (
|
|
14046
|
-
return
|
|
14418
|
+
function AdditionalBindingPropertiesFromJSONTyped2(json2, ignoreDiscriminator) {
|
|
14419
|
+
if (json2 == null) {
|
|
14420
|
+
return json2;
|
|
14047
14421
|
}
|
|
14048
14422
|
return {
|
|
14049
|
-
projectId:
|
|
14050
|
-
project:
|
|
14051
|
-
workflowFileId:
|
|
14052
|
-
resourceType:
|
|
14053
|
-
resourceKey:
|
|
14054
|
-
purpose:
|
|
14423
|
+
projectId: json2["projectId"] == null ? undefined : json2["projectId"],
|
|
14424
|
+
project: json2["project"] == null ? undefined : ProjectDbModelFromJSON(json2["project"]),
|
|
14425
|
+
workflowFileId: json2["workflowFileId"] == null ? undefined : json2["workflowFileId"],
|
|
14426
|
+
resourceType: json2["resourceType"] == null ? undefined : json2["resourceType"],
|
|
14427
|
+
resourceKey: json2["resourceKey"] == null ? undefined : json2["resourceKey"],
|
|
14428
|
+
purpose: json2["purpose"] == null ? undefined : json2["purpose"]
|
|
14055
14429
|
};
|
|
14056
14430
|
}
|
|
14057
14431
|
// ../studioweb-sdk/generated/src/models/AdditionalBindingPropertiesDto.ts
|
|
14058
|
-
function AdditionalBindingPropertiesDtoFromJSON(
|
|
14059
|
-
return AdditionalBindingPropertiesDtoFromJSONTyped(
|
|
14432
|
+
function AdditionalBindingPropertiesDtoFromJSON(json2) {
|
|
14433
|
+
return AdditionalBindingPropertiesDtoFromJSONTyped(json2, false);
|
|
14060
14434
|
}
|
|
14061
|
-
function AdditionalBindingPropertiesDtoFromJSONTyped(
|
|
14062
|
-
if (
|
|
14063
|
-
return
|
|
14435
|
+
function AdditionalBindingPropertiesDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14436
|
+
if (json2 == null) {
|
|
14437
|
+
return json2;
|
|
14064
14438
|
}
|
|
14065
14439
|
return {
|
|
14066
|
-
resourceType:
|
|
14067
|
-
resourceKey:
|
|
14068
|
-
purpose:
|
|
14069
|
-
workflowFileId:
|
|
14440
|
+
resourceType: json2["resourceType"] == null ? undefined : json2["resourceType"],
|
|
14441
|
+
resourceKey: json2["resourceKey"] == null ? undefined : json2["resourceKey"],
|
|
14442
|
+
purpose: json2["purpose"] == null ? undefined : json2["purpose"],
|
|
14443
|
+
workflowFileId: json2["workflowFileId"] == null ? undefined : json2["workflowFileId"]
|
|
14070
14444
|
};
|
|
14071
14445
|
}
|
|
14072
14446
|
// ../studioweb-sdk/generated/src/models/AppUsageType.ts
|
|
14073
|
-
function AppUsageTypeFromJSON(
|
|
14074
|
-
return AppUsageTypeFromJSONTyped(
|
|
14447
|
+
function AppUsageTypeFromJSON(json2) {
|
|
14448
|
+
return AppUsageTypeFromJSONTyped(json2, false);
|
|
14075
14449
|
}
|
|
14076
|
-
function AppUsageTypeFromJSONTyped(
|
|
14077
|
-
return
|
|
14450
|
+
function AppUsageTypeFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14451
|
+
return json2;
|
|
14078
14452
|
}
|
|
14079
14453
|
// ../studioweb-sdk/generated/src/models/FileType.ts
|
|
14080
|
-
function FileTypeFromJSON(
|
|
14081
|
-
return FileTypeFromJSONTyped(
|
|
14454
|
+
function FileTypeFromJSON(json2) {
|
|
14455
|
+
return FileTypeFromJSONTyped(json2, false);
|
|
14082
14456
|
}
|
|
14083
|
-
function FileTypeFromJSONTyped(
|
|
14084
|
-
return
|
|
14457
|
+
function FileTypeFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14458
|
+
return json2;
|
|
14085
14459
|
}
|
|
14086
14460
|
|
|
14087
14461
|
// ../studioweb-sdk/generated/src/models/FileDto.ts
|
|
14088
|
-
function FileDtoFromJSON(
|
|
14089
|
-
return FileDtoFromJSONTyped(
|
|
14462
|
+
function FileDtoFromJSON(json2) {
|
|
14463
|
+
return FileDtoFromJSONTyped(json2, false);
|
|
14090
14464
|
}
|
|
14091
|
-
function FileDtoFromJSONTyped(
|
|
14092
|
-
if (
|
|
14093
|
-
return
|
|
14465
|
+
function FileDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14466
|
+
if (json2 == null) {
|
|
14467
|
+
return json2;
|
|
14094
14468
|
}
|
|
14095
14469
|
return {
|
|
14096
|
-
id:
|
|
14097
|
-
name:
|
|
14098
|
-
isMain:
|
|
14099
|
-
fileType:
|
|
14100
|
-
isEntryPoint:
|
|
14101
|
-
ignoredFromPublish:
|
|
14102
|
-
appFormId:
|
|
14103
|
-
externalAutomationId:
|
|
14104
|
-
testCaseId:
|
|
14105
|
-
contentSignature:
|
|
14470
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14471
|
+
name: json2["name"] == null ? undefined : json2["name"],
|
|
14472
|
+
isMain: json2["isMain"] == null ? undefined : json2["isMain"],
|
|
14473
|
+
fileType: json2["fileType"] == null ? undefined : FileTypeFromJSON(json2["fileType"]),
|
|
14474
|
+
isEntryPoint: json2["isEntryPoint"] == null ? undefined : json2["isEntryPoint"],
|
|
14475
|
+
ignoredFromPublish: json2["ignoredFromPublish"] == null ? undefined : json2["ignoredFromPublish"],
|
|
14476
|
+
appFormId: json2["appFormId"] == null ? undefined : json2["appFormId"],
|
|
14477
|
+
externalAutomationId: json2["externalAutomationId"] == null ? undefined : json2["externalAutomationId"],
|
|
14478
|
+
testCaseId: json2["testCaseId"] == null ? undefined : json2["testCaseId"],
|
|
14479
|
+
contentSignature: json2["contentSignature"] == null ? undefined : json2["contentSignature"]
|
|
14106
14480
|
};
|
|
14107
14481
|
}
|
|
14108
14482
|
// ../studioweb-sdk/generated/src/models/SpecialFolderType.ts
|
|
14109
|
-
function SpecialFolderTypeFromJSON(
|
|
14110
|
-
return SpecialFolderTypeFromJSONTyped(
|
|
14483
|
+
function SpecialFolderTypeFromJSON(json2) {
|
|
14484
|
+
return SpecialFolderTypeFromJSONTyped(json2, false);
|
|
14111
14485
|
}
|
|
14112
|
-
function SpecialFolderTypeFromJSONTyped(
|
|
14113
|
-
return
|
|
14486
|
+
function SpecialFolderTypeFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14487
|
+
return json2;
|
|
14114
14488
|
}
|
|
14115
14489
|
|
|
14116
14490
|
// ../studioweb-sdk/generated/src/models/FolderDto.ts
|
|
14117
|
-
function FolderDtoFromJSON(
|
|
14118
|
-
return FolderDtoFromJSONTyped(
|
|
14491
|
+
function FolderDtoFromJSON(json2) {
|
|
14492
|
+
return FolderDtoFromJSONTyped(json2, false);
|
|
14119
14493
|
}
|
|
14120
|
-
function FolderDtoFromJSONTyped(
|
|
14121
|
-
if (
|
|
14122
|
-
return
|
|
14494
|
+
function FolderDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14495
|
+
if (json2 == null) {
|
|
14496
|
+
return json2;
|
|
14123
14497
|
}
|
|
14124
14498
|
return {
|
|
14125
|
-
id:
|
|
14126
|
-
name:
|
|
14127
|
-
folders:
|
|
14128
|
-
files:
|
|
14129
|
-
folderType:
|
|
14499
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14500
|
+
name: json2["name"] == null ? undefined : json2["name"],
|
|
14501
|
+
folders: json2["folders"] == null ? undefined : json2["folders"].map(FolderDtoFromJSON),
|
|
14502
|
+
files: json2["files"] == null ? undefined : json2["files"].map(FileDtoFromJSON),
|
|
14503
|
+
folderType: json2["folderType"] == null ? undefined : SpecialFolderTypeFromJSON(json2["folderType"])
|
|
14130
14504
|
};
|
|
14131
14505
|
}
|
|
14132
14506
|
// ../studioweb-sdk/generated/src/models/MetadataConnectionDto.ts
|
|
14133
|
-
function MetadataConnectionDtoFromJSON(
|
|
14134
|
-
return MetadataConnectionDtoFromJSONTyped(
|
|
14507
|
+
function MetadataConnectionDtoFromJSON(json2) {
|
|
14508
|
+
return MetadataConnectionDtoFromJSONTyped(json2, false);
|
|
14135
14509
|
}
|
|
14136
|
-
function MetadataConnectionDtoFromJSONTyped(
|
|
14137
|
-
if (
|
|
14138
|
-
return
|
|
14510
|
+
function MetadataConnectionDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14511
|
+
if (json2 == null) {
|
|
14512
|
+
return json2;
|
|
14139
14513
|
}
|
|
14140
14514
|
return {
|
|
14141
|
-
connectionId:
|
|
14142
|
-
connector:
|
|
14143
|
-
purpose:
|
|
14144
|
-
workflowFileId:
|
|
14515
|
+
connectionId: json2["connectionId"] == null ? undefined : json2["connectionId"],
|
|
14516
|
+
connector: json2["connector"] == null ? undefined : json2["connector"],
|
|
14517
|
+
purpose: json2["purpose"] == null ? undefined : json2["purpose"],
|
|
14518
|
+
workflowFileId: json2["workflowFileId"] == null ? undefined : json2["workflowFileId"]
|
|
14145
14519
|
};
|
|
14146
14520
|
}
|
|
14147
14521
|
// ../studioweb-sdk/generated/src/models/MetadataTriggerDto.ts
|
|
14148
|
-
function MetadataTriggerDtoFromJSON(
|
|
14149
|
-
return MetadataTriggerDtoFromJSONTyped(
|
|
14522
|
+
function MetadataTriggerDtoFromJSON(json2) {
|
|
14523
|
+
return MetadataTriggerDtoFromJSONTyped(json2, false);
|
|
14150
14524
|
}
|
|
14151
|
-
function MetadataTriggerDtoFromJSONTyped(
|
|
14152
|
-
if (
|
|
14153
|
-
return
|
|
14525
|
+
function MetadataTriggerDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14526
|
+
if (json2 == null) {
|
|
14527
|
+
return json2;
|
|
14154
14528
|
}
|
|
14155
14529
|
return {
|
|
14156
|
-
connection:
|
|
14157
|
-
operation:
|
|
14158
|
-
triggerId:
|
|
14159
|
-
defaultDisplayName:
|
|
14160
|
-
displayName:
|
|
14530
|
+
connection: json2["connection"] == null ? undefined : MetadataConnectionDtoFromJSON(json2["connection"]),
|
|
14531
|
+
operation: json2["operation"] == null ? undefined : json2["operation"],
|
|
14532
|
+
triggerId: json2["triggerId"] == null ? undefined : json2["triggerId"],
|
|
14533
|
+
defaultDisplayName: json2["defaultDisplayName"] == null ? undefined : json2["defaultDisplayName"],
|
|
14534
|
+
displayName: json2["displayName"] == null ? undefined : json2["displayName"]
|
|
14161
14535
|
};
|
|
14162
14536
|
}
|
|
14163
14537
|
// ../studioweb-sdk/generated/src/models/PackageDto.ts
|
|
14164
|
-
function PackageDtoFromJSON(
|
|
14165
|
-
return PackageDtoFromJSONTyped(
|
|
14538
|
+
function PackageDtoFromJSON(json2) {
|
|
14539
|
+
return PackageDtoFromJSONTyped(json2, false);
|
|
14166
14540
|
}
|
|
14167
|
-
function PackageDtoFromJSONTyped(
|
|
14168
|
-
if (
|
|
14169
|
-
return
|
|
14541
|
+
function PackageDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14542
|
+
if (json2 == null) {
|
|
14543
|
+
return json2;
|
|
14170
14544
|
}
|
|
14171
14545
|
return {
|
|
14172
|
-
name:
|
|
14173
|
-
version:
|
|
14174
|
-
isRestricted:
|
|
14546
|
+
name: json2["name"],
|
|
14547
|
+
version: json2["version"],
|
|
14548
|
+
isRestricted: json2["isRestricted"] == null ? undefined : json2["isRestricted"]
|
|
14175
14549
|
};
|
|
14176
14550
|
}
|
|
14177
14551
|
// ../studioweb-sdk/generated/src/models/TestManagerMetadataDto.ts
|
|
14178
|
-
function TestManagerMetadataDtoFromJSON(
|
|
14179
|
-
return TestManagerMetadataDtoFromJSONTyped(
|
|
14552
|
+
function TestManagerMetadataDtoFromJSON(json2) {
|
|
14553
|
+
return TestManagerMetadataDtoFromJSONTyped(json2, false);
|
|
14180
14554
|
}
|
|
14181
|
-
function TestManagerMetadataDtoFromJSONTyped(
|
|
14182
|
-
if (
|
|
14183
|
-
return
|
|
14555
|
+
function TestManagerMetadataDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14556
|
+
if (json2 == null) {
|
|
14557
|
+
return json2;
|
|
14184
14558
|
}
|
|
14185
14559
|
return {
|
|
14186
|
-
testManagerProjectId:
|
|
14187
|
-
creationTime:
|
|
14560
|
+
testManagerProjectId: json2["testManagerProjectId"] == null ? undefined : json2["testManagerProjectId"],
|
|
14561
|
+
creationTime: json2["creationTime"] == null ? undefined : new Date(json2["creationTime"])
|
|
14188
14562
|
};
|
|
14189
14563
|
}
|
|
14190
14564
|
|
|
14191
14565
|
// ../studioweb-sdk/generated/src/models/ProjectErrorCode.ts
|
|
14192
|
-
function ProjectErrorCodeFromJSON(
|
|
14193
|
-
return ProjectErrorCodeFromJSONTyped(
|
|
14566
|
+
function ProjectErrorCodeFromJSON(json2) {
|
|
14567
|
+
return ProjectErrorCodeFromJSONTyped(json2, false);
|
|
14194
14568
|
}
|
|
14195
|
-
function ProjectErrorCodeFromJSONTyped(
|
|
14196
|
-
return
|
|
14569
|
+
function ProjectErrorCodeFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14570
|
+
return json2;
|
|
14197
14571
|
}
|
|
14198
14572
|
|
|
14199
14573
|
// ../studioweb-sdk/generated/src/models/ProjectErrorInformation.ts
|
|
14200
|
-
function ProjectErrorInformationFromJSON(
|
|
14201
|
-
return ProjectErrorInformationFromJSONTyped(
|
|
14574
|
+
function ProjectErrorInformationFromJSON(json2) {
|
|
14575
|
+
return ProjectErrorInformationFromJSONTyped(json2, false);
|
|
14202
14576
|
}
|
|
14203
|
-
function ProjectErrorInformationFromJSONTyped(
|
|
14204
|
-
if (
|
|
14205
|
-
return
|
|
14577
|
+
function ProjectErrorInformationFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14578
|
+
if (json2 == null) {
|
|
14579
|
+
return json2;
|
|
14206
14580
|
}
|
|
14207
14581
|
return {
|
|
14208
|
-
errorCode:
|
|
14209
|
-
metadata:
|
|
14210
|
-
errorMessage:
|
|
14211
|
-
locationId:
|
|
14212
|
-
isSpecialLocation:
|
|
14582
|
+
errorCode: json2["errorCode"] == null ? undefined : ProjectErrorCodeFromJSON(json2["errorCode"]),
|
|
14583
|
+
metadata: json2["metadata"] == null ? undefined : json2["metadata"],
|
|
14584
|
+
errorMessage: json2["errorMessage"] == null ? undefined : json2["errorMessage"],
|
|
14585
|
+
locationId: json2["locationId"] == null ? undefined : json2["locationId"],
|
|
14586
|
+
isSpecialLocation: json2["isSpecialLocation"] == null ? undefined : json2["isSpecialLocation"]
|
|
14213
14587
|
};
|
|
14214
14588
|
}
|
|
14215
14589
|
|
|
14216
14590
|
// ../studioweb-sdk/generated/src/models/SapContextDto.ts
|
|
14217
|
-
function SapContextDtoFromJSON(
|
|
14218
|
-
return SapContextDtoFromJSONTyped(
|
|
14591
|
+
function SapContextDtoFromJSON(json2) {
|
|
14592
|
+
return SapContextDtoFromJSONTyped(json2, false);
|
|
14219
14593
|
}
|
|
14220
|
-
function SapContextDtoFromJSONTyped(
|
|
14221
|
-
if (
|
|
14222
|
-
return
|
|
14594
|
+
function SapContextDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14595
|
+
if (json2 == null) {
|
|
14596
|
+
return json2;
|
|
14223
14597
|
}
|
|
14224
14598
|
return {
|
|
14225
|
-
tenantId:
|
|
14226
|
-
isPrimaryProject:
|
|
14227
|
-
externalProjectId:
|
|
14599
|
+
tenantId: json2["tenantId"] == null ? undefined : json2["tenantId"],
|
|
14600
|
+
isPrimaryProject: json2["isPrimaryProject"] == null ? undefined : json2["isPrimaryProject"],
|
|
14601
|
+
externalProjectId: json2["externalProjectId"] == null ? undefined : json2["externalProjectId"]
|
|
14228
14602
|
};
|
|
14229
14603
|
}
|
|
14230
14604
|
|
|
14231
14605
|
// ../studioweb-sdk/generated/src/models/WorkflowUiState.ts
|
|
14232
|
-
function WorkflowUiStateFromJSON(
|
|
14233
|
-
return WorkflowUiStateFromJSONTyped(
|
|
14606
|
+
function WorkflowUiStateFromJSON(json2) {
|
|
14607
|
+
return WorkflowUiStateFromJSONTyped(json2, false);
|
|
14234
14608
|
}
|
|
14235
|
-
function WorkflowUiStateFromJSONTyped(
|
|
14236
|
-
if (
|
|
14237
|
-
return
|
|
14609
|
+
function WorkflowUiStateFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14610
|
+
if (json2 == null) {
|
|
14611
|
+
return json2;
|
|
14238
14612
|
}
|
|
14239
14613
|
return {
|
|
14240
|
-
id:
|
|
14241
|
-
workflowId:
|
|
14242
|
-
json:
|
|
14243
|
-
projectId:
|
|
14614
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14615
|
+
workflowId: json2["workflowId"] == null ? undefined : json2["workflowId"],
|
|
14616
|
+
json: json2["json"] == null ? undefined : json2["json"],
|
|
14617
|
+
projectId: json2["projectId"] == null ? undefined : json2["projectId"]
|
|
14244
14618
|
};
|
|
14245
14619
|
}
|
|
14246
14620
|
|
|
14247
14621
|
// ../studioweb-sdk/generated/src/models/TargetPlatform.ts
|
|
14248
|
-
function TargetPlatformFromJSON(
|
|
14249
|
-
return TargetPlatformFromJSONTyped(
|
|
14622
|
+
function TargetPlatformFromJSON(json2) {
|
|
14623
|
+
return TargetPlatformFromJSONTyped(json2, false);
|
|
14250
14624
|
}
|
|
14251
|
-
function TargetPlatformFromJSONTyped(
|
|
14252
|
-
return
|
|
14625
|
+
function TargetPlatformFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14626
|
+
return json2;
|
|
14253
14627
|
}
|
|
14254
14628
|
|
|
14255
14629
|
// ../studioweb-sdk/generated/src/models/ProjectDto.ts
|
|
14256
|
-
function ProjectDtoFromJSON2(
|
|
14257
|
-
return ProjectDtoFromJSONTyped2(
|
|
14630
|
+
function ProjectDtoFromJSON2(json2) {
|
|
14631
|
+
return ProjectDtoFromJSONTyped2(json2, false);
|
|
14258
14632
|
}
|
|
14259
|
-
function ProjectDtoFromJSONTyped2(
|
|
14260
|
-
if (
|
|
14261
|
-
return
|
|
14633
|
+
function ProjectDtoFromJSONTyped2(json2, ignoreDiscriminator) {
|
|
14634
|
+
if (json2 == null) {
|
|
14635
|
+
return json2;
|
|
14262
14636
|
}
|
|
14263
14637
|
return {
|
|
14264
|
-
id:
|
|
14265
|
-
designId:
|
|
14266
|
-
expressionLanguage:
|
|
14267
|
-
projectType:
|
|
14268
|
-
name:
|
|
14269
|
-
description:
|
|
14270
|
-
tenantId:
|
|
14271
|
-
status:
|
|
14272
|
-
message:
|
|
14273
|
-
lastModifiedTime:
|
|
14274
|
-
pinDate:
|
|
14275
|
-
triggerType:
|
|
14276
|
-
trigger:
|
|
14277
|
-
connections:
|
|
14278
|
-
lockedBy:
|
|
14279
|
-
isSharedByMe:
|
|
14280
|
-
isSharedWithMe:
|
|
14281
|
-
projectAppId:
|
|
14282
|
-
isSwFileSystemEnabledForApps:
|
|
14283
|
-
ownerId:
|
|
14284
|
-
sapContext:
|
|
14285
|
-
hasDefaultName:
|
|
14286
|
-
errorList:
|
|
14287
|
-
solutionId:
|
|
14288
|
-
testManagerMetadata:
|
|
14289
|
-
isPreview:
|
|
14290
|
-
lastPublishedVersion:
|
|
14291
|
-
publishedToFeeds:
|
|
14292
|
-
sortIndex:
|
|
14293
|
-
hasTestCases:
|
|
14294
|
-
isApp:
|
|
14295
|
-
targetPlatform:
|
|
14296
|
-
creationTime:
|
|
14297
|
-
userId:
|
|
14298
|
-
rootFolder:
|
|
14299
|
-
dependencies:
|
|
14300
|
-
uiStateWorkflows:
|
|
14301
|
-
hasTrigger:
|
|
14302
|
-
disableAutoUpdate:
|
|
14303
|
-
userAccessStatus:
|
|
14304
|
-
hasUnsavedEdits:
|
|
14305
|
-
projectJson:
|
|
14306
|
-
isReadOnly:
|
|
14307
|
-
version:
|
|
14308
|
-
additionalBindingProperties:
|
|
14309
|
-
workflowsWithErrors:
|
|
14310
|
-
requirePreprocessing:
|
|
14311
|
-
permissions:
|
|
14312
|
-
projectSubType:
|
|
14313
|
-
appUsageType:
|
|
14314
|
-
parentProjectId:
|
|
14315
|
-
jitVersion:
|
|
14638
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14639
|
+
designId: json2["designId"] == null ? undefined : json2["designId"],
|
|
14640
|
+
expressionLanguage: json2["expressionLanguage"] == null ? undefined : json2["expressionLanguage"],
|
|
14641
|
+
projectType: json2["projectType"] == null ? undefined : json2["projectType"],
|
|
14642
|
+
name: json2["name"] == null ? undefined : json2["name"],
|
|
14643
|
+
description: json2["description"] == null ? undefined : json2["description"],
|
|
14644
|
+
tenantId: json2["tenantId"] == null ? undefined : json2["tenantId"],
|
|
14645
|
+
status: json2["status"] == null ? undefined : ProjectStatusFromJSON(json2["status"]),
|
|
14646
|
+
message: json2["message"] == null ? undefined : json2["message"],
|
|
14647
|
+
lastModifiedTime: json2["lastModifiedTime"] == null ? undefined : new Date(json2["lastModifiedTime"]),
|
|
14648
|
+
pinDate: json2["pinDate"] == null ? undefined : new Date(json2["pinDate"]),
|
|
14649
|
+
triggerType: json2["triggerType"] == null ? undefined : json2["triggerType"],
|
|
14650
|
+
trigger: json2["trigger"] == null ? undefined : MetadataTriggerDtoFromJSON(json2["trigger"]),
|
|
14651
|
+
connections: json2["connections"] == null ? undefined : json2["connections"].map(MetadataConnectionDtoFromJSON),
|
|
14652
|
+
lockedBy: json2["lockedBy"] == null ? undefined : json2["lockedBy"],
|
|
14653
|
+
isSharedByMe: json2["isSharedByMe"] == null ? undefined : json2["isSharedByMe"],
|
|
14654
|
+
isSharedWithMe: json2["isSharedWithMe"] == null ? undefined : json2["isSharedWithMe"],
|
|
14655
|
+
projectAppId: json2["projectAppId"] == null ? undefined : json2["projectAppId"],
|
|
14656
|
+
isSwFileSystemEnabledForApps: json2["isSwFileSystemEnabledForApps"] == null ? undefined : json2["isSwFileSystemEnabledForApps"],
|
|
14657
|
+
ownerId: json2["ownerId"] == null ? undefined : json2["ownerId"],
|
|
14658
|
+
sapContext: json2["sapContext"] == null ? undefined : SapContextDtoFromJSON(json2["sapContext"]),
|
|
14659
|
+
hasDefaultName: json2["hasDefaultName"] == null ? undefined : json2["hasDefaultName"],
|
|
14660
|
+
errorList: json2["errorList"] == null ? undefined : json2["errorList"].map(ProjectErrorInformationFromJSON),
|
|
14661
|
+
solutionId: json2["solutionId"] == null ? undefined : json2["solutionId"],
|
|
14662
|
+
testManagerMetadata: json2["testManagerMetadata"] == null ? undefined : TestManagerMetadataDtoFromJSON(json2["testManagerMetadata"]),
|
|
14663
|
+
isPreview: json2["isPreview"] == null ? undefined : json2["isPreview"],
|
|
14664
|
+
lastPublishedVersion: json2["lastPublishedVersion"] == null ? undefined : PublishResultModelFromJSON(json2["lastPublishedVersion"]),
|
|
14665
|
+
publishedToFeeds: json2["publishedToFeeds"] == null ? undefined : json2["publishedToFeeds"],
|
|
14666
|
+
sortIndex: json2["sortIndex"] == null ? undefined : json2["sortIndex"],
|
|
14667
|
+
hasTestCases: json2["hasTestCases"] == null ? undefined : json2["hasTestCases"],
|
|
14668
|
+
isApp: json2["isApp"] == null ? undefined : json2["isApp"],
|
|
14669
|
+
targetPlatform: json2["targetPlatform"] == null ? undefined : TargetPlatformFromJSON(json2["targetPlatform"]),
|
|
14670
|
+
creationTime: json2["creationTime"] == null ? undefined : new Date(json2["creationTime"]),
|
|
14671
|
+
userId: json2["userId"] == null ? undefined : json2["userId"],
|
|
14672
|
+
rootFolder: json2["rootFolder"] == null ? undefined : FolderDtoFromJSON(json2["rootFolder"]),
|
|
14673
|
+
dependencies: json2["dependencies"] == null ? undefined : json2["dependencies"].map(PackageDtoFromJSON),
|
|
14674
|
+
uiStateWorkflows: json2["uiStateWorkflows"] == null ? undefined : json2["uiStateWorkflows"].map(WorkflowUiStateFromJSON),
|
|
14675
|
+
hasTrigger: json2["hasTrigger"] == null ? undefined : json2["hasTrigger"],
|
|
14676
|
+
disableAutoUpdate: json2["disableAutoUpdate"] == null ? undefined : json2["disableAutoUpdate"],
|
|
14677
|
+
userAccessStatus: json2["userAccessStatus"] == null ? undefined : AccessStatusFromJSON(json2["userAccessStatus"]),
|
|
14678
|
+
hasUnsavedEdits: json2["hasUnsavedEdits"] == null ? undefined : json2["hasUnsavedEdits"],
|
|
14679
|
+
projectJson: json2["projectJson"] == null ? undefined : json2["projectJson"],
|
|
14680
|
+
isReadOnly: json2["isReadOnly"] == null ? undefined : json2["isReadOnly"],
|
|
14681
|
+
version: json2["version"] == null ? undefined : json2["version"],
|
|
14682
|
+
additionalBindingProperties: json2["additionalBindingProperties"] == null ? undefined : json2["additionalBindingProperties"].map(AdditionalBindingPropertiesDtoFromJSON),
|
|
14683
|
+
workflowsWithErrors: json2["workflowsWithErrors"] == null ? undefined : json2["workflowsWithErrors"],
|
|
14684
|
+
requirePreprocessing: json2["requirePreprocessing"] == null ? undefined : json2["requirePreprocessing"],
|
|
14685
|
+
permissions: json2["permissions"] == null ? undefined : SharingPermissionsFromJSON(json2["permissions"]),
|
|
14686
|
+
projectSubType: json2["projectSubType"] == null ? undefined : json2["projectSubType"],
|
|
14687
|
+
appUsageType: json2["appUsageType"] == null ? undefined : AppUsageTypeFromJSON(json2["appUsageType"]),
|
|
14688
|
+
parentProjectId: json2["parentProjectId"] == null ? undefined : json2["parentProjectId"],
|
|
14689
|
+
jitVersion: json2["jitVersion"] == null ? undefined : json2["jitVersion"]
|
|
14316
14690
|
};
|
|
14317
14691
|
}
|
|
14318
14692
|
// ../studioweb-sdk/generated/src/models/SolutionStatus.ts
|
|
14319
|
-
function SolutionStatusFromJSON(
|
|
14320
|
-
return SolutionStatusFromJSONTyped(
|
|
14693
|
+
function SolutionStatusFromJSON(json2) {
|
|
14694
|
+
return SolutionStatusFromJSONTyped(json2, false);
|
|
14321
14695
|
}
|
|
14322
|
-
function SolutionStatusFromJSONTyped(
|
|
14323
|
-
return
|
|
14696
|
+
function SolutionStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14697
|
+
return json2;
|
|
14324
14698
|
}
|
|
14325
14699
|
|
|
14326
14700
|
// ../studioweb-sdk/generated/src/models/SolutionPublishStatus.ts
|
|
14327
|
-
function SolutionPublishStatusFromJSON(
|
|
14328
|
-
return SolutionPublishStatusFromJSONTyped(
|
|
14701
|
+
function SolutionPublishStatusFromJSON(json2) {
|
|
14702
|
+
return SolutionPublishStatusFromJSONTyped(json2, false);
|
|
14329
14703
|
}
|
|
14330
|
-
function SolutionPublishStatusFromJSONTyped(
|
|
14331
|
-
return
|
|
14704
|
+
function SolutionPublishStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14705
|
+
return json2;
|
|
14332
14706
|
}
|
|
14333
14707
|
|
|
14334
14708
|
// ../studioweb-sdk/generated/src/models/SolutionDto.ts
|
|
14335
|
-
function SolutionDtoFromJSON(
|
|
14336
|
-
return SolutionDtoFromJSONTyped(
|
|
14709
|
+
function SolutionDtoFromJSON(json2) {
|
|
14710
|
+
return SolutionDtoFromJSONTyped(json2, false);
|
|
14337
14711
|
}
|
|
14338
|
-
function SolutionDtoFromJSONTyped(
|
|
14339
|
-
if (
|
|
14340
|
-
return
|
|
14712
|
+
function SolutionDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
14713
|
+
if (json2 == null) {
|
|
14714
|
+
return json2;
|
|
14341
14715
|
}
|
|
14342
14716
|
return {
|
|
14343
|
-
id:
|
|
14344
|
-
name:
|
|
14345
|
-
description:
|
|
14346
|
-
userId:
|
|
14347
|
-
organizationId:
|
|
14348
|
-
status:
|
|
14349
|
-
projects:
|
|
14350
|
-
isSharedWithMe:
|
|
14351
|
-
isSharedByMe:
|
|
14352
|
-
permissions:
|
|
14353
|
-
lastModifiedTime:
|
|
14354
|
-
resourcesLastModifiedTime:
|
|
14355
|
-
hasDraftEdits:
|
|
14356
|
-
publishStatus:
|
|
14357
|
-
lastAccessedTenantId:
|
|
14358
|
-
automationHubIdeaUrl:
|
|
14717
|
+
id: json2["id"] == null ? undefined : json2["id"],
|
|
14718
|
+
name: json2["name"] == null ? undefined : json2["name"],
|
|
14719
|
+
description: json2["description"] == null ? undefined : json2["description"],
|
|
14720
|
+
userId: json2["userId"] == null ? undefined : json2["userId"],
|
|
14721
|
+
organizationId: json2["organizationId"] == null ? undefined : json2["organizationId"],
|
|
14722
|
+
status: json2["status"] == null ? undefined : SolutionStatusFromJSON(json2["status"]),
|
|
14723
|
+
projects: json2["projects"] == null ? undefined : json2["projects"].map(ProjectDtoFromJSON2),
|
|
14724
|
+
isSharedWithMe: json2["isSharedWithMe"] == null ? undefined : json2["isSharedWithMe"],
|
|
14725
|
+
isSharedByMe: json2["isSharedByMe"] == null ? undefined : json2["isSharedByMe"],
|
|
14726
|
+
permissions: json2["permissions"] == null ? undefined : SharingPermissionsFromJSON(json2["permissions"]),
|
|
14727
|
+
lastModifiedTime: json2["lastModifiedTime"] == null ? undefined : new Date(json2["lastModifiedTime"]),
|
|
14728
|
+
resourcesLastModifiedTime: json2["resourcesLastModifiedTime"] == null ? undefined : new Date(json2["resourcesLastModifiedTime"]),
|
|
14729
|
+
hasDraftEdits: json2["hasDraftEdits"] == null ? undefined : json2["hasDraftEdits"],
|
|
14730
|
+
publishStatus: json2["publishStatus"] == null ? undefined : SolutionPublishStatusFromJSON(json2["publishStatus"]),
|
|
14731
|
+
lastAccessedTenantId: json2["lastAccessedTenantId"] == null ? undefined : json2["lastAccessedTenantId"],
|
|
14732
|
+
automationHubIdeaUrl: json2["automationHubIdeaUrl"] == null ? undefined : json2["automationHubIdeaUrl"]
|
|
14359
14733
|
};
|
|
14360
14734
|
}
|
|
14361
14735
|
// ../studioweb-sdk/generated/src/apis/SolutionApi.ts
|
|
@@ -14894,4 +15268,4 @@ export {
|
|
|
14894
15268
|
BASE_PATH
|
|
14895
15269
|
};
|
|
14896
15270
|
|
|
14897
|
-
//# debugId=
|
|
15271
|
+
//# debugId=8F0D255CDD938BB064756E2164756E21
|