@uipath/solution-tool 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/deploy.js +2571 -2197
- package/dist/init.js +1075 -701
- package/dist/pack.js +3083 -2335
- package/dist/publish.js +1556 -1182
- package/dist/resource.js +1623 -1249
- package/dist/tool.js +5098 -4350
- package/package.json +2 -2
package/dist/publish.js
CHANGED
|
@@ -16177,7 +16177,7 @@ var require_TimeoutError = __commonJS((exports) => {
|
|
|
16177
16177
|
});
|
|
16178
16178
|
|
|
16179
16179
|
// ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/operators/map.js
|
|
16180
|
-
var
|
|
16180
|
+
var require_map = __commonJS((exports) => {
|
|
16181
16181
|
var __extends = exports && exports.__extends || function() {
|
|
16182
16182
|
var extendStatics = function(d, b) {
|
|
16183
16183
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
@@ -16199,7 +16199,7 @@ var require_map2 = __commonJS((exports) => {
|
|
|
16199
16199
|
}();
|
|
16200
16200
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16201
16201
|
var Subscriber_1 = require_Subscriber();
|
|
16202
|
-
function
|
|
16202
|
+
function map2(project, thisArg) {
|
|
16203
16203
|
return function mapOperation(source) {
|
|
16204
16204
|
if (typeof project !== "function") {
|
|
16205
16205
|
throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");
|
|
@@ -16207,7 +16207,7 @@ var require_map2 = __commonJS((exports) => {
|
|
|
16207
16207
|
return source.lift(new MapOperator(project, thisArg));
|
|
16208
16208
|
};
|
|
16209
16209
|
}
|
|
16210
|
-
exports.map =
|
|
16210
|
+
exports.map = map2;
|
|
16211
16211
|
var MapOperator = function() {
|
|
16212
16212
|
function MapOperator2(project, thisArg) {
|
|
16213
16213
|
this.project = project;
|
|
@@ -16247,7 +16247,7 @@ var require_bindCallback = __commonJS((exports) => {
|
|
|
16247
16247
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16248
16248
|
var Observable_1 = require_Observable();
|
|
16249
16249
|
var AsyncSubject_1 = require_AsyncSubject();
|
|
16250
|
-
var map_1 =
|
|
16250
|
+
var map_1 = require_map();
|
|
16251
16251
|
var canReportError_1 = require_canReportError();
|
|
16252
16252
|
var isArray_1 = require_isArray();
|
|
16253
16253
|
var isScheduler_1 = require_isScheduler();
|
|
@@ -16351,7 +16351,7 @@ var require_bindNodeCallback = __commonJS((exports) => {
|
|
|
16351
16351
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16352
16352
|
var Observable_1 = require_Observable();
|
|
16353
16353
|
var AsyncSubject_1 = require_AsyncSubject();
|
|
16354
|
-
var map_1 =
|
|
16354
|
+
var map_1 = require_map();
|
|
16355
16355
|
var canReportError_1 = require_canReportError();
|
|
16356
16356
|
var isScheduler_1 = require_isScheduler();
|
|
16357
16357
|
var isArray_1 = require_isArray();
|
|
@@ -17141,7 +17141,7 @@ var require_mergeMap = __commonJS((exports) => {
|
|
|
17141
17141
|
};
|
|
17142
17142
|
}();
|
|
17143
17143
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17144
|
-
var map_1 =
|
|
17144
|
+
var map_1 = require_map();
|
|
17145
17145
|
var from_1 = require_from();
|
|
17146
17146
|
var innerSubscribe_1 = require_innerSubscribe();
|
|
17147
17147
|
function mergeMap(project, resultSelector, concurrent) {
|
|
@@ -17312,7 +17312,7 @@ var require_forkJoin = __commonJS((exports) => {
|
|
|
17312
17312
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17313
17313
|
var Observable_1 = require_Observable();
|
|
17314
17314
|
var isArray_1 = require_isArray();
|
|
17315
|
-
var map_1 =
|
|
17315
|
+
var map_1 = require_map();
|
|
17316
17316
|
var isObject_1 = require_isObject();
|
|
17317
17317
|
var from_1 = require_from();
|
|
17318
17318
|
function forkJoin() {
|
|
@@ -17392,7 +17392,7 @@ var require_fromEvent = __commonJS((exports) => {
|
|
|
17392
17392
|
var Observable_1 = require_Observable();
|
|
17393
17393
|
var isArray_1 = require_isArray();
|
|
17394
17394
|
var isFunction_1 = require_isFunction();
|
|
17395
|
-
var map_1 =
|
|
17395
|
+
var map_1 = require_map();
|
|
17396
17396
|
var toString = function() {
|
|
17397
17397
|
return Object.prototype.toString;
|
|
17398
17398
|
}();
|
|
@@ -17464,7 +17464,7 @@ var require_fromEventPattern = __commonJS((exports) => {
|
|
|
17464
17464
|
var Observable_1 = require_Observable();
|
|
17465
17465
|
var isArray_1 = require_isArray();
|
|
17466
17466
|
var isFunction_1 = require_isFunction();
|
|
17467
|
-
var map_1 =
|
|
17467
|
+
var map_1 = require_map();
|
|
17468
17468
|
function fromEventPattern(addHandler, removeHandler, resultSelector) {
|
|
17469
17469
|
if (resultSelector) {
|
|
17470
17470
|
return fromEventPattern(addHandler, removeHandler).pipe(map_1.map(function(args) {
|
|
@@ -17679,13 +17679,13 @@ var require_interval = __commonJS((exports) => {
|
|
|
17679
17679
|
});
|
|
17680
17680
|
|
|
17681
17681
|
// ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/merge.js
|
|
17682
|
-
var
|
|
17682
|
+
var require_merge = __commonJS((exports) => {
|
|
17683
17683
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17684
17684
|
var Observable_1 = require_Observable();
|
|
17685
17685
|
var isScheduler_1 = require_isScheduler();
|
|
17686
17686
|
var mergeAll_1 = require_mergeAll();
|
|
17687
17687
|
var fromArray_1 = require_fromArray();
|
|
17688
|
-
function
|
|
17688
|
+
function merge2() {
|
|
17689
17689
|
var observables = [];
|
|
17690
17690
|
for (var _i = 0;_i < arguments.length; _i++) {
|
|
17691
17691
|
observables[_i] = arguments[_i];
|
|
@@ -17706,7 +17706,7 @@ var require_merge2 = __commonJS((exports) => {
|
|
|
17706
17706
|
}
|
|
17707
17707
|
return mergeAll_1.mergeAll(concurrent)(fromArray_1.fromArray(observables, scheduler));
|
|
17708
17708
|
}
|
|
17709
|
-
exports.merge =
|
|
17709
|
+
exports.merge = merge2;
|
|
17710
17710
|
});
|
|
17711
17711
|
|
|
17712
17712
|
// ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/never.js
|
|
@@ -17757,11 +17757,11 @@ var require_onErrorResumeNext = __commonJS((exports) => {
|
|
|
17757
17757
|
});
|
|
17758
17758
|
|
|
17759
17759
|
// ../../node_modules/@uipath/robot-client/node_modules/rxjs/internal/observable/pairs.js
|
|
17760
|
-
var
|
|
17760
|
+
var require_pairs = __commonJS((exports) => {
|
|
17761
17761
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17762
17762
|
var Observable_1 = require_Observable();
|
|
17763
17763
|
var Subscription_1 = require_Subscription();
|
|
17764
|
-
function
|
|
17764
|
+
function pairs2(obj, scheduler) {
|
|
17765
17765
|
if (!scheduler) {
|
|
17766
17766
|
return new Observable_1.Observable(function(subscriber) {
|
|
17767
17767
|
var keys = Object.keys(obj);
|
|
@@ -17782,7 +17782,7 @@ var require_pairs2 = __commonJS((exports) => {
|
|
|
17782
17782
|
});
|
|
17783
17783
|
}
|
|
17784
17784
|
}
|
|
17785
|
-
exports.pairs =
|
|
17785
|
+
exports.pairs = pairs2;
|
|
17786
17786
|
function dispatch(state) {
|
|
17787
17787
|
var { keys, index, subscriber, subscription, obj } = state;
|
|
17788
17788
|
if (!subscriber.closed) {
|
|
@@ -18441,7 +18441,7 @@ var require_rxjs = __commonJS((exports) => {
|
|
|
18441
18441
|
exports.iif = iif_1.iif;
|
|
18442
18442
|
var interval_1 = require_interval();
|
|
18443
18443
|
exports.interval = interval_1.interval;
|
|
18444
|
-
var merge_1 =
|
|
18444
|
+
var merge_1 = require_merge();
|
|
18445
18445
|
exports.merge = merge_1.merge;
|
|
18446
18446
|
var never_1 = require_never();
|
|
18447
18447
|
exports.never = never_1.never;
|
|
@@ -18449,7 +18449,7 @@ var require_rxjs = __commonJS((exports) => {
|
|
|
18449
18449
|
exports.of = of_1.of;
|
|
18450
18450
|
var onErrorResumeNext_1 = require_onErrorResumeNext();
|
|
18451
18451
|
exports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;
|
|
18452
|
-
var pairs_1 =
|
|
18452
|
+
var pairs_1 = require_pairs();
|
|
18453
18453
|
exports.pairs = pairs_1.pairs;
|
|
18454
18454
|
var partition_1 = require_partition();
|
|
18455
18455
|
exports.partition = partition_1.partition;
|
|
@@ -23603,31 +23603,17 @@ function search(data, expression, options) {
|
|
|
23603
23603
|
}
|
|
23604
23604
|
|
|
23605
23605
|
// ../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
23606
|
-
|
|
23607
|
-
|
|
23608
|
-
|
|
23609
|
-
var
|
|
23610
|
-
var
|
|
23611
|
-
var
|
|
23612
|
-
var
|
|
23613
|
-
|
|
23614
|
-
|
|
23615
|
-
|
|
23616
|
-
|
|
23617
|
-
key = keys[i];
|
|
23618
|
-
if (!__hasOwnProp2.call(to, key) && key !== except)
|
|
23619
|
-
__defProp2(to, key, {
|
|
23620
|
-
get: ((k) => from[k]).bind(null, key),
|
|
23621
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
23622
|
-
});
|
|
23623
|
-
}
|
|
23624
|
-
return to;
|
|
23625
|
-
};
|
|
23626
|
-
var __toESM2 = (mod2, isNodeMode, target) => (target = mod2 != null ? __create2(__getProtoOf2(mod2)) : {}, __copyProps(isNodeMode || !mod2 || !mod2.__esModule ? __defProp2(target, "default", {
|
|
23627
|
-
value: mod2,
|
|
23628
|
-
enumerable: true
|
|
23629
|
-
}) : target, mod2));
|
|
23630
|
-
var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
23606
|
+
function getDefaultExportFromCjs(x) {
|
|
23607
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
23608
|
+
}
|
|
23609
|
+
var jsYaml = {};
|
|
23610
|
+
var loader = {};
|
|
23611
|
+
var common = {};
|
|
23612
|
+
var hasRequiredCommon;
|
|
23613
|
+
function requireCommon() {
|
|
23614
|
+
if (hasRequiredCommon)
|
|
23615
|
+
return common;
|
|
23616
|
+
hasRequiredCommon = 1;
|
|
23631
23617
|
function isNothing(subject) {
|
|
23632
23618
|
return typeof subject === "undefined" || subject === null;
|
|
23633
23619
|
}
|
|
@@ -23653,55 +23639,71 @@ var require_common = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23653
23639
|
}
|
|
23654
23640
|
function repeat(string, count) {
|
|
23655
23641
|
let result = "";
|
|
23656
|
-
for (let cycle = 0;cycle < count; cycle += 1)
|
|
23642
|
+
for (let cycle = 0;cycle < count; cycle += 1) {
|
|
23657
23643
|
result += string;
|
|
23644
|
+
}
|
|
23658
23645
|
return result;
|
|
23659
23646
|
}
|
|
23660
23647
|
function isNegativeZero(number) {
|
|
23661
23648
|
return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
|
|
23662
23649
|
}
|
|
23663
|
-
|
|
23664
|
-
|
|
23665
|
-
|
|
23666
|
-
|
|
23667
|
-
|
|
23668
|
-
|
|
23669
|
-
|
|
23670
|
-
|
|
23671
|
-
|
|
23650
|
+
common.isNothing = isNothing;
|
|
23651
|
+
common.isObject = isObject2;
|
|
23652
|
+
common.toArray = toArray;
|
|
23653
|
+
common.repeat = repeat;
|
|
23654
|
+
common.isNegativeZero = isNegativeZero;
|
|
23655
|
+
common.extend = extend;
|
|
23656
|
+
return common;
|
|
23657
|
+
}
|
|
23658
|
+
var exception;
|
|
23659
|
+
var hasRequiredException;
|
|
23660
|
+
function requireException() {
|
|
23661
|
+
if (hasRequiredException)
|
|
23662
|
+
return exception;
|
|
23663
|
+
hasRequiredException = 1;
|
|
23664
|
+
function formatError(exception2, compact) {
|
|
23672
23665
|
let where = "";
|
|
23673
|
-
const message =
|
|
23674
|
-
if (!
|
|
23666
|
+
const message = exception2.reason || "(unknown reason)";
|
|
23667
|
+
if (!exception2.mark)
|
|
23675
23668
|
return message;
|
|
23676
|
-
if (
|
|
23677
|
-
where += 'in "' +
|
|
23678
|
-
|
|
23679
|
-
|
|
23669
|
+
if (exception2.mark.name) {
|
|
23670
|
+
where += 'in "' + exception2.mark.name + '" ';
|
|
23671
|
+
}
|
|
23672
|
+
where += "(" + (exception2.mark.line + 1) + ":" + (exception2.mark.column + 1) + ")";
|
|
23673
|
+
if (!compact && exception2.mark.snippet) {
|
|
23680
23674
|
where += `
|
|
23681
23675
|
|
|
23682
|
-
` +
|
|
23676
|
+
` + exception2.mark.snippet;
|
|
23677
|
+
}
|
|
23683
23678
|
return message + " " + where;
|
|
23684
23679
|
}
|
|
23685
|
-
function
|
|
23680
|
+
function YAMLException2(reason, mark) {
|
|
23686
23681
|
Error.call(this);
|
|
23687
23682
|
this.name = "YAMLException";
|
|
23688
23683
|
this.reason = reason;
|
|
23689
23684
|
this.mark = mark;
|
|
23690
23685
|
this.message = formatError(this, false);
|
|
23691
|
-
if (Error.captureStackTrace)
|
|
23686
|
+
if (Error.captureStackTrace) {
|
|
23692
23687
|
Error.captureStackTrace(this, this.constructor);
|
|
23693
|
-
else
|
|
23694
|
-
this.stack =
|
|
23688
|
+
} else {
|
|
23689
|
+
this.stack = new Error().stack || "";
|
|
23690
|
+
}
|
|
23695
23691
|
}
|
|
23696
|
-
|
|
23697
|
-
|
|
23698
|
-
|
|
23692
|
+
YAMLException2.prototype = Object.create(Error.prototype);
|
|
23693
|
+
YAMLException2.prototype.constructor = YAMLException2;
|
|
23694
|
+
YAMLException2.prototype.toString = function toString(compact) {
|
|
23699
23695
|
return this.name + ": " + formatError(this, compact);
|
|
23700
23696
|
};
|
|
23701
|
-
|
|
23702
|
-
|
|
23703
|
-
|
|
23704
|
-
|
|
23697
|
+
exception = YAMLException2;
|
|
23698
|
+
return exception;
|
|
23699
|
+
}
|
|
23700
|
+
var snippet;
|
|
23701
|
+
var hasRequiredSnippet;
|
|
23702
|
+
function requireSnippet() {
|
|
23703
|
+
if (hasRequiredSnippet)
|
|
23704
|
+
return snippet;
|
|
23705
|
+
hasRequiredSnippet = 1;
|
|
23706
|
+
const common2 = requireCommon();
|
|
23705
23707
|
function getLine(buffer, lineStart, lineEnd, position, maxLineLength) {
|
|
23706
23708
|
let head = "";
|
|
23707
23709
|
let tail = "";
|
|
@@ -23720,7 +23722,7 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23720
23722
|
};
|
|
23721
23723
|
}
|
|
23722
23724
|
function padStart(string, max) {
|
|
23723
|
-
return
|
|
23725
|
+
return common2.repeat(" ", max - string.length) + string;
|
|
23724
23726
|
}
|
|
23725
23727
|
function makeSnippet(mark, options) {
|
|
23726
23728
|
options = Object.create(options || null);
|
|
@@ -23742,8 +23744,9 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23742
23744
|
while (match = re.exec(mark.buffer)) {
|
|
23743
23745
|
lineEnds.push(match.index);
|
|
23744
23746
|
lineStarts.push(match.index + match[0].length);
|
|
23745
|
-
if (mark.position <= match.index && foundLineNo < 0)
|
|
23747
|
+
if (mark.position <= match.index && foundLineNo < 0) {
|
|
23746
23748
|
foundLineNo = lineStarts.length - 2;
|
|
23749
|
+
}
|
|
23747
23750
|
}
|
|
23748
23751
|
if (foundLineNo < 0)
|
|
23749
23752
|
foundLineNo = lineStarts.length - 1;
|
|
@@ -23754,28 +23757,34 @@ var require_snippet = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23754
23757
|
if (foundLineNo - i < 0)
|
|
23755
23758
|
break;
|
|
23756
23759
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo - i], lineEnds[foundLineNo - i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]), maxLineLength);
|
|
23757
|
-
result =
|
|
23760
|
+
result = common2.repeat(" ", options.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
23758
23761
|
` + result;
|
|
23759
23762
|
}
|
|
23760
23763
|
const line = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
23761
|
-
result +=
|
|
23764
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line.str + `
|
|
23762
23765
|
`;
|
|
23763
|
-
result +=
|
|
23766
|
+
result += common2.repeat("-", options.indent + lineNoLength + 3 + line.pos) + `^
|
|
23764
23767
|
`;
|
|
23765
23768
|
for (let i = 1;i <= options.linesAfter; i++) {
|
|
23766
23769
|
if (foundLineNo + i >= lineEnds.length)
|
|
23767
23770
|
break;
|
|
23768
23771
|
const line2 = getLine(mark.buffer, lineStarts[foundLineNo + i], lineEnds[foundLineNo + i], mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]), maxLineLength);
|
|
23769
|
-
result +=
|
|
23772
|
+
result += common2.repeat(" ", options.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line2.str + `
|
|
23770
23773
|
`;
|
|
23771
23774
|
}
|
|
23772
23775
|
return result.replace(/\n$/, "");
|
|
23773
23776
|
}
|
|
23774
|
-
|
|
23775
|
-
|
|
23776
|
-
|
|
23777
|
-
|
|
23778
|
-
|
|
23777
|
+
snippet = makeSnippet;
|
|
23778
|
+
return snippet;
|
|
23779
|
+
}
|
|
23780
|
+
var type;
|
|
23781
|
+
var hasRequiredType;
|
|
23782
|
+
function requireType() {
|
|
23783
|
+
if (hasRequiredType)
|
|
23784
|
+
return type;
|
|
23785
|
+
hasRequiredType = 1;
|
|
23786
|
+
const YAMLException2 = requireException();
|
|
23787
|
+
const TYPE_CONSTRUCTOR_OPTIONS = [
|
|
23779
23788
|
"kind",
|
|
23780
23789
|
"multi",
|
|
23781
23790
|
"resolve",
|
|
@@ -23787,26 +23796,28 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23787
23796
|
"defaultStyle",
|
|
23788
23797
|
"styleAliases"
|
|
23789
23798
|
];
|
|
23790
|
-
|
|
23799
|
+
const YAML_NODE_KINDS = [
|
|
23791
23800
|
"scalar",
|
|
23792
23801
|
"sequence",
|
|
23793
23802
|
"mapping"
|
|
23794
23803
|
];
|
|
23795
|
-
function compileStyleAliases(
|
|
23804
|
+
function compileStyleAliases(map2) {
|
|
23796
23805
|
const result = {};
|
|
23797
|
-
if (
|
|
23798
|
-
Object.keys(
|
|
23799
|
-
|
|
23806
|
+
if (map2 !== null) {
|
|
23807
|
+
Object.keys(map2).forEach(function(style) {
|
|
23808
|
+
map2[style].forEach(function(alias) {
|
|
23800
23809
|
result[String(alias)] = style;
|
|
23801
23810
|
});
|
|
23802
23811
|
});
|
|
23812
|
+
}
|
|
23803
23813
|
return result;
|
|
23804
23814
|
}
|
|
23805
|
-
function
|
|
23815
|
+
function Type2(tag, options) {
|
|
23806
23816
|
options = options || {};
|
|
23807
23817
|
Object.keys(options).forEach(function(name) {
|
|
23808
|
-
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1)
|
|
23809
|
-
throw new
|
|
23818
|
+
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
|
|
23819
|
+
throw new YAMLException2('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
|
23820
|
+
}
|
|
23810
23821
|
});
|
|
23811
23822
|
this.options = options;
|
|
23812
23823
|
this.tag = tag;
|
|
@@ -23824,21 +23835,29 @@ var require_type = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23824
23835
|
this.defaultStyle = options["defaultStyle"] || null;
|
|
23825
23836
|
this.multi = options["multi"] || false;
|
|
23826
23837
|
this.styleAliases = compileStyleAliases(options["styleAliases"] || null);
|
|
23827
|
-
if (YAML_NODE_KINDS.indexOf(this.kind) === -1)
|
|
23828
|
-
throw new
|
|
23829
|
-
|
|
23830
|
-
|
|
23831
|
-
|
|
23832
|
-
|
|
23833
|
-
|
|
23834
|
-
|
|
23835
|
-
|
|
23838
|
+
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
|
23839
|
+
throw new YAMLException2('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
23840
|
+
}
|
|
23841
|
+
}
|
|
23842
|
+
type = Type2;
|
|
23843
|
+
return type;
|
|
23844
|
+
}
|
|
23845
|
+
var schema;
|
|
23846
|
+
var hasRequiredSchema;
|
|
23847
|
+
function requireSchema() {
|
|
23848
|
+
if (hasRequiredSchema)
|
|
23849
|
+
return schema;
|
|
23850
|
+
hasRequiredSchema = 1;
|
|
23851
|
+
const YAMLException2 = requireException();
|
|
23852
|
+
const Type2 = requireType();
|
|
23853
|
+
function compileList(schema2, name) {
|
|
23836
23854
|
const result = [];
|
|
23837
|
-
|
|
23855
|
+
schema2[name].forEach(function(currentType) {
|
|
23838
23856
|
let newIndex = result.length;
|
|
23839
23857
|
result.forEach(function(previousType, previousIndex) {
|
|
23840
|
-
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi)
|
|
23858
|
+
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
|
|
23841
23859
|
newIndex = previousIndex;
|
|
23860
|
+
}
|
|
23842
23861
|
});
|
|
23843
23862
|
result[newIndex] = currentType;
|
|
23844
23863
|
});
|
|
@@ -23857,47 +23876,54 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23857
23876
|
fallback: []
|
|
23858
23877
|
}
|
|
23859
23878
|
};
|
|
23860
|
-
function collectType(
|
|
23861
|
-
if (
|
|
23862
|
-
result.multi[
|
|
23863
|
-
result.multi["fallback"].push(
|
|
23864
|
-
} else
|
|
23865
|
-
result[
|
|
23879
|
+
function collectType(type2) {
|
|
23880
|
+
if (type2.multi) {
|
|
23881
|
+
result.multi[type2.kind].push(type2);
|
|
23882
|
+
result.multi["fallback"].push(type2);
|
|
23883
|
+
} else {
|
|
23884
|
+
result[type2.kind][type2.tag] = result["fallback"][type2.tag] = type2;
|
|
23885
|
+
}
|
|
23866
23886
|
}
|
|
23867
|
-
for (let index = 0, length = arguments.length;index < length; index += 1)
|
|
23887
|
+
for (let index = 0, length = arguments.length;index < length; index += 1) {
|
|
23868
23888
|
arguments[index].forEach(collectType);
|
|
23889
|
+
}
|
|
23869
23890
|
return result;
|
|
23870
23891
|
}
|
|
23871
|
-
function
|
|
23892
|
+
function Schema2(definition) {
|
|
23872
23893
|
return this.extend(definition);
|
|
23873
23894
|
}
|
|
23874
|
-
|
|
23895
|
+
Schema2.prototype.extend = function extend(definition) {
|
|
23875
23896
|
let implicit = [];
|
|
23876
23897
|
let explicit = [];
|
|
23877
|
-
if (definition instanceof
|
|
23898
|
+
if (definition instanceof Type2) {
|
|
23878
23899
|
explicit.push(definition);
|
|
23879
|
-
else if (Array.isArray(definition))
|
|
23900
|
+
} else if (Array.isArray(definition)) {
|
|
23880
23901
|
explicit = explicit.concat(definition);
|
|
23881
|
-
else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
23902
|
+
} else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
23882
23903
|
if (definition.implicit)
|
|
23883
23904
|
implicit = implicit.concat(definition.implicit);
|
|
23884
23905
|
if (definition.explicit)
|
|
23885
23906
|
explicit = explicit.concat(definition.explicit);
|
|
23886
|
-
} else
|
|
23887
|
-
throw new
|
|
23888
|
-
|
|
23889
|
-
|
|
23890
|
-
|
|
23891
|
-
|
|
23892
|
-
|
|
23893
|
-
if (
|
|
23894
|
-
throw new
|
|
23907
|
+
} else {
|
|
23908
|
+
throw new YAMLException2("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
23909
|
+
}
|
|
23910
|
+
implicit.forEach(function(type2) {
|
|
23911
|
+
if (!(type2 instanceof Type2)) {
|
|
23912
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
23913
|
+
}
|
|
23914
|
+
if (type2.loadKind && type2.loadKind !== "scalar") {
|
|
23915
|
+
throw new YAMLException2("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
23916
|
+
}
|
|
23917
|
+
if (type2.multi) {
|
|
23918
|
+
throw new YAMLException2("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
23919
|
+
}
|
|
23895
23920
|
});
|
|
23896
|
-
explicit.forEach(function(
|
|
23897
|
-
if (!(
|
|
23898
|
-
throw new
|
|
23921
|
+
explicit.forEach(function(type2) {
|
|
23922
|
+
if (!(type2 instanceof Type2)) {
|
|
23923
|
+
throw new YAMLException2("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
23924
|
+
}
|
|
23899
23925
|
});
|
|
23900
|
-
const result = Object.create(
|
|
23926
|
+
const result = Object.create(Schema2.prototype);
|
|
23901
23927
|
result.implicit = (this.implicit || []).concat(implicit);
|
|
23902
23928
|
result.explicit = (this.explicit || []).concat(explicit);
|
|
23903
23929
|
result.compiledImplicit = compileList(result, "implicit");
|
|
@@ -23905,41 +23931,77 @@ var require_schema = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23905
23931
|
result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
|
|
23906
23932
|
return result;
|
|
23907
23933
|
};
|
|
23908
|
-
|
|
23909
|
-
|
|
23910
|
-
|
|
23911
|
-
|
|
23934
|
+
schema = Schema2;
|
|
23935
|
+
return schema;
|
|
23936
|
+
}
|
|
23937
|
+
var str;
|
|
23938
|
+
var hasRequiredStr;
|
|
23939
|
+
function requireStr() {
|
|
23940
|
+
if (hasRequiredStr)
|
|
23941
|
+
return str;
|
|
23942
|
+
hasRequiredStr = 1;
|
|
23943
|
+
const Type2 = requireType();
|
|
23944
|
+
str = new Type2("tag:yaml.org,2002:str", {
|
|
23912
23945
|
kind: "scalar",
|
|
23913
23946
|
construct: function(data) {
|
|
23914
23947
|
return data !== null ? data : "";
|
|
23915
23948
|
}
|
|
23916
23949
|
});
|
|
23917
|
-
|
|
23918
|
-
|
|
23919
|
-
|
|
23950
|
+
return str;
|
|
23951
|
+
}
|
|
23952
|
+
var seq;
|
|
23953
|
+
var hasRequiredSeq;
|
|
23954
|
+
function requireSeq() {
|
|
23955
|
+
if (hasRequiredSeq)
|
|
23956
|
+
return seq;
|
|
23957
|
+
hasRequiredSeq = 1;
|
|
23958
|
+
const Type2 = requireType();
|
|
23959
|
+
seq = new Type2("tag:yaml.org,2002:seq", {
|
|
23920
23960
|
kind: "sequence",
|
|
23921
23961
|
construct: function(data) {
|
|
23922
23962
|
return data !== null ? data : [];
|
|
23923
23963
|
}
|
|
23924
23964
|
});
|
|
23925
|
-
|
|
23926
|
-
|
|
23927
|
-
|
|
23965
|
+
return seq;
|
|
23966
|
+
}
|
|
23967
|
+
var map;
|
|
23968
|
+
var hasRequiredMap;
|
|
23969
|
+
function requireMap() {
|
|
23970
|
+
if (hasRequiredMap)
|
|
23971
|
+
return map;
|
|
23972
|
+
hasRequiredMap = 1;
|
|
23973
|
+
const Type2 = requireType();
|
|
23974
|
+
map = new Type2("tag:yaml.org,2002:map", {
|
|
23928
23975
|
kind: "mapping",
|
|
23929
23976
|
construct: function(data) {
|
|
23930
23977
|
return data !== null ? data : {};
|
|
23931
23978
|
}
|
|
23932
23979
|
});
|
|
23933
|
-
|
|
23934
|
-
|
|
23935
|
-
|
|
23936
|
-
|
|
23937
|
-
|
|
23938
|
-
|
|
23939
|
-
|
|
23940
|
-
|
|
23941
|
-
|
|
23942
|
-
|
|
23980
|
+
return map;
|
|
23981
|
+
}
|
|
23982
|
+
var failsafe;
|
|
23983
|
+
var hasRequiredFailsafe;
|
|
23984
|
+
function requireFailsafe() {
|
|
23985
|
+
if (hasRequiredFailsafe)
|
|
23986
|
+
return failsafe;
|
|
23987
|
+
hasRequiredFailsafe = 1;
|
|
23988
|
+
const Schema2 = requireSchema();
|
|
23989
|
+
failsafe = new Schema2({
|
|
23990
|
+
explicit: [
|
|
23991
|
+
requireStr(),
|
|
23992
|
+
requireSeq(),
|
|
23993
|
+
requireMap()
|
|
23994
|
+
]
|
|
23995
|
+
});
|
|
23996
|
+
return failsafe;
|
|
23997
|
+
}
|
|
23998
|
+
var _null;
|
|
23999
|
+
var hasRequired_null;
|
|
24000
|
+
function require_null() {
|
|
24001
|
+
if (hasRequired_null)
|
|
24002
|
+
return _null;
|
|
24003
|
+
hasRequired_null = 1;
|
|
24004
|
+
const Type2 = requireType();
|
|
23943
24005
|
function resolveYamlNull(data) {
|
|
23944
24006
|
if (data === null)
|
|
23945
24007
|
return true;
|
|
@@ -23952,7 +24014,7 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23952
24014
|
function isNull(object) {
|
|
23953
24015
|
return object === null;
|
|
23954
24016
|
}
|
|
23955
|
-
|
|
24017
|
+
_null = new Type2("tag:yaml.org,2002:null", {
|
|
23956
24018
|
kind: "scalar",
|
|
23957
24019
|
resolve: resolveYamlNull,
|
|
23958
24020
|
construct: constructYamlNull,
|
|
@@ -23976,9 +24038,15 @@ var require_null = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23976
24038
|
},
|
|
23977
24039
|
defaultStyle: "lowercase"
|
|
23978
24040
|
});
|
|
23979
|
-
|
|
23980
|
-
|
|
23981
|
-
|
|
24041
|
+
return _null;
|
|
24042
|
+
}
|
|
24043
|
+
var bool;
|
|
24044
|
+
var hasRequiredBool;
|
|
24045
|
+
function requireBool() {
|
|
24046
|
+
if (hasRequiredBool)
|
|
24047
|
+
return bool;
|
|
24048
|
+
hasRequiredBool = 1;
|
|
24049
|
+
const Type2 = requireType();
|
|
23982
24050
|
function resolveYamlBoolean(data) {
|
|
23983
24051
|
if (data === null)
|
|
23984
24052
|
return false;
|
|
@@ -23991,7 +24059,7 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
23991
24059
|
function isBoolean(object) {
|
|
23992
24060
|
return Object.prototype.toString.call(object) === "[object Boolean]";
|
|
23993
24061
|
}
|
|
23994
|
-
|
|
24062
|
+
bool = new Type2("tag:yaml.org,2002:bool", {
|
|
23995
24063
|
kind: "scalar",
|
|
23996
24064
|
resolve: resolveYamlBoolean,
|
|
23997
24065
|
construct: constructYamlBoolean,
|
|
@@ -24009,10 +24077,16 @@ var require_bool = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24009
24077
|
},
|
|
24010
24078
|
defaultStyle: "lowercase"
|
|
24011
24079
|
});
|
|
24012
|
-
|
|
24013
|
-
|
|
24014
|
-
|
|
24015
|
-
|
|
24080
|
+
return bool;
|
|
24081
|
+
}
|
|
24082
|
+
var int;
|
|
24083
|
+
var hasRequiredInt;
|
|
24084
|
+
function requireInt() {
|
|
24085
|
+
if (hasRequiredInt)
|
|
24086
|
+
return int;
|
|
24087
|
+
hasRequiredInt = 1;
|
|
24088
|
+
const common2 = requireCommon();
|
|
24089
|
+
const Type2 = requireType();
|
|
24016
24090
|
function isHexCode(c) {
|
|
24017
24091
|
return c >= 48 && c <= 57 || c >= 65 && c <= 70 || c >= 97 && c <= 102;
|
|
24018
24092
|
}
|
|
@@ -24031,8 +24105,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24031
24105
|
if (!max)
|
|
24032
24106
|
return false;
|
|
24033
24107
|
let ch = data[index];
|
|
24034
|
-
if (ch === "-" || ch === "+")
|
|
24108
|
+
if (ch === "-" || ch === "+") {
|
|
24035
24109
|
ch = data[++index];
|
|
24110
|
+
}
|
|
24036
24111
|
if (ch === "0") {
|
|
24037
24112
|
if (index + 1 === max)
|
|
24038
24113
|
return true;
|
|
@@ -24045,7 +24120,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24045
24120
|
return false;
|
|
24046
24121
|
hasDigits = true;
|
|
24047
24122
|
}
|
|
24048
|
-
return hasDigits &&
|
|
24123
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
24049
24124
|
}
|
|
24050
24125
|
if (ch === "x") {
|
|
24051
24126
|
index++;
|
|
@@ -24054,7 +24129,7 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24054
24129
|
return false;
|
|
24055
24130
|
hasDigits = true;
|
|
24056
24131
|
}
|
|
24057
|
-
return hasDigits &&
|
|
24132
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
24058
24133
|
}
|
|
24059
24134
|
if (ch === "o") {
|
|
24060
24135
|
index++;
|
|
@@ -24063,17 +24138,18 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24063
24138
|
return false;
|
|
24064
24139
|
hasDigits = true;
|
|
24065
24140
|
}
|
|
24066
|
-
return hasDigits &&
|
|
24141
|
+
return hasDigits && isFinite(parseYamlInteger(data));
|
|
24067
24142
|
}
|
|
24068
24143
|
}
|
|
24069
24144
|
for (;index < max; index++) {
|
|
24070
|
-
if (!isDecCode(data.charCodeAt(index)))
|
|
24145
|
+
if (!isDecCode(data.charCodeAt(index))) {
|
|
24071
24146
|
return false;
|
|
24147
|
+
}
|
|
24072
24148
|
hasDigits = true;
|
|
24073
24149
|
}
|
|
24074
24150
|
if (!hasDigits)
|
|
24075
24151
|
return false;
|
|
24076
|
-
return
|
|
24152
|
+
return isFinite(parseYamlInteger(data));
|
|
24077
24153
|
}
|
|
24078
24154
|
function parseYamlInteger(data) {
|
|
24079
24155
|
let value = data;
|
|
@@ -24101,9 +24177,9 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24101
24177
|
return parseYamlInteger(data);
|
|
24102
24178
|
}
|
|
24103
24179
|
function isInteger(object) {
|
|
24104
|
-
return Object.prototype.toString.call(object) === "[object Number]" && object % 1 === 0 && !
|
|
24180
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common2.isNegativeZero(object));
|
|
24105
24181
|
}
|
|
24106
|
-
|
|
24182
|
+
int = new Type2("tag:yaml.org,2002:int", {
|
|
24107
24183
|
kind: "scalar",
|
|
24108
24184
|
resolve: resolveYamlInteger,
|
|
24109
24185
|
construct: constructYamlInteger,
|
|
@@ -24130,35 +24206,45 @@ var require_int = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24130
24206
|
hexadecimal: [16, "hex"]
|
|
24131
24207
|
}
|
|
24132
24208
|
});
|
|
24133
|
-
|
|
24134
|
-
|
|
24135
|
-
|
|
24136
|
-
|
|
24137
|
-
|
|
24138
|
-
|
|
24209
|
+
return int;
|
|
24210
|
+
}
|
|
24211
|
+
var float;
|
|
24212
|
+
var hasRequiredFloat;
|
|
24213
|
+
function requireFloat() {
|
|
24214
|
+
if (hasRequiredFloat)
|
|
24215
|
+
return float;
|
|
24216
|
+
hasRequiredFloat = 1;
|
|
24217
|
+
const common2 = requireCommon();
|
|
24218
|
+
const Type2 = requireType();
|
|
24219
|
+
const YAML_FLOAT_PATTERN = new RegExp("^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
24220
|
+
const YAML_FLOAT_SPECIAL_PATTERN = new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");
|
|
24139
24221
|
function resolveYamlFloat(data) {
|
|
24140
24222
|
if (data === null)
|
|
24141
24223
|
return false;
|
|
24142
|
-
if (!YAML_FLOAT_PATTERN.test(data))
|
|
24224
|
+
if (!YAML_FLOAT_PATTERN.test(data)) {
|
|
24143
24225
|
return false;
|
|
24144
|
-
|
|
24226
|
+
}
|
|
24227
|
+
if (isFinite(parseFloat(data, 10))) {
|
|
24145
24228
|
return true;
|
|
24229
|
+
}
|
|
24146
24230
|
return YAML_FLOAT_SPECIAL_PATTERN.test(data);
|
|
24147
24231
|
}
|
|
24148
24232
|
function constructYamlFloat(data) {
|
|
24149
24233
|
let value = data.toLowerCase();
|
|
24150
24234
|
const sign = value[0] === "-" ? -1 : 1;
|
|
24151
|
-
if ("+-".indexOf(value[0]) >= 0)
|
|
24235
|
+
if ("+-".indexOf(value[0]) >= 0) {
|
|
24152
24236
|
value = value.slice(1);
|
|
24153
|
-
|
|
24237
|
+
}
|
|
24238
|
+
if (value === ".inf") {
|
|
24154
24239
|
return sign === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
24155
|
-
else if (value === ".nan")
|
|
24240
|
+
} else if (value === ".nan") {
|
|
24156
24241
|
return NaN;
|
|
24242
|
+
}
|
|
24157
24243
|
return sign * parseFloat(value, 10);
|
|
24158
24244
|
}
|
|
24159
|
-
|
|
24245
|
+
const SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
24160
24246
|
function representYamlFloat(object, style) {
|
|
24161
|
-
if (isNaN(object))
|
|
24247
|
+
if (isNaN(object)) {
|
|
24162
24248
|
switch (style) {
|
|
24163
24249
|
case "lowercase":
|
|
24164
24250
|
return ".nan";
|
|
@@ -24167,7 +24253,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24167
24253
|
case "camelcase":
|
|
24168
24254
|
return ".NaN";
|
|
24169
24255
|
}
|
|
24170
|
-
else if (Number.POSITIVE_INFINITY === object)
|
|
24256
|
+
} else if (Number.POSITIVE_INFINITY === object) {
|
|
24171
24257
|
switch (style) {
|
|
24172
24258
|
case "lowercase":
|
|
24173
24259
|
return ".inf";
|
|
@@ -24176,7 +24262,7 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24176
24262
|
case "camelcase":
|
|
24177
24263
|
return ".Inf";
|
|
24178
24264
|
}
|
|
24179
|
-
else if (Number.NEGATIVE_INFINITY === object)
|
|
24265
|
+
} else if (Number.NEGATIVE_INFINITY === object) {
|
|
24180
24266
|
switch (style) {
|
|
24181
24267
|
case "lowercase":
|
|
24182
24268
|
return "-.inf";
|
|
@@ -24185,15 +24271,16 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24185
24271
|
case "camelcase":
|
|
24186
24272
|
return "-.Inf";
|
|
24187
24273
|
}
|
|
24188
|
-
else if (
|
|
24274
|
+
} else if (common2.isNegativeZero(object)) {
|
|
24189
24275
|
return "-0.0";
|
|
24276
|
+
}
|
|
24190
24277
|
const res = object.toString(10);
|
|
24191
24278
|
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
24192
24279
|
}
|
|
24193
24280
|
function isFloat(object) {
|
|
24194
|
-
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 ||
|
|
24281
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common2.isNegativeZero(object));
|
|
24195
24282
|
}
|
|
24196
|
-
|
|
24283
|
+
float = new Type2("tag:yaml.org,2002:float", {
|
|
24197
24284
|
kind: "scalar",
|
|
24198
24285
|
resolve: resolveYamlFloat,
|
|
24199
24286
|
construct: constructYamlFloat,
|
|
@@ -24201,22 +24288,42 @@ var require_float = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24201
24288
|
represent: representYamlFloat,
|
|
24202
24289
|
defaultStyle: "lowercase"
|
|
24203
24290
|
});
|
|
24204
|
-
|
|
24205
|
-
|
|
24206
|
-
|
|
24207
|
-
|
|
24208
|
-
|
|
24209
|
-
|
|
24210
|
-
|
|
24211
|
-
|
|
24212
|
-
|
|
24213
|
-
|
|
24214
|
-
|
|
24215
|
-
|
|
24216
|
-
|
|
24217
|
-
|
|
24218
|
-
|
|
24219
|
-
|
|
24291
|
+
return float;
|
|
24292
|
+
}
|
|
24293
|
+
var json;
|
|
24294
|
+
var hasRequiredJson;
|
|
24295
|
+
function requireJson() {
|
|
24296
|
+
if (hasRequiredJson)
|
|
24297
|
+
return json;
|
|
24298
|
+
hasRequiredJson = 1;
|
|
24299
|
+
json = requireFailsafe().extend({
|
|
24300
|
+
implicit: [
|
|
24301
|
+
require_null(),
|
|
24302
|
+
requireBool(),
|
|
24303
|
+
requireInt(),
|
|
24304
|
+
requireFloat()
|
|
24305
|
+
]
|
|
24306
|
+
});
|
|
24307
|
+
return json;
|
|
24308
|
+
}
|
|
24309
|
+
var core;
|
|
24310
|
+
var hasRequiredCore;
|
|
24311
|
+
function requireCore() {
|
|
24312
|
+
if (hasRequiredCore)
|
|
24313
|
+
return core;
|
|
24314
|
+
hasRequiredCore = 1;
|
|
24315
|
+
core = requireJson();
|
|
24316
|
+
return core;
|
|
24317
|
+
}
|
|
24318
|
+
var timestamp;
|
|
24319
|
+
var hasRequiredTimestamp;
|
|
24320
|
+
function requireTimestamp() {
|
|
24321
|
+
if (hasRequiredTimestamp)
|
|
24322
|
+
return timestamp;
|
|
24323
|
+
hasRequiredTimestamp = 1;
|
|
24324
|
+
const Type2 = requireType();
|
|
24325
|
+
const YAML_DATE_REGEXP = new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$");
|
|
24326
|
+
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]))?))?$");
|
|
24220
24327
|
function resolveYamlTimestamp(data) {
|
|
24221
24328
|
if (data === null)
|
|
24222
24329
|
return false;
|
|
@@ -24237,15 +24344,17 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24237
24344
|
const year = +match[1];
|
|
24238
24345
|
const month = +match[2] - 1;
|
|
24239
24346
|
const day = +match[3];
|
|
24240
|
-
if (!match[4])
|
|
24347
|
+
if (!match[4]) {
|
|
24241
24348
|
return new Date(Date.UTC(year, month, day));
|
|
24349
|
+
}
|
|
24242
24350
|
const hour = +match[4];
|
|
24243
24351
|
const minute = +match[5];
|
|
24244
24352
|
const second = +match[6];
|
|
24245
24353
|
if (match[7]) {
|
|
24246
24354
|
fraction = match[7].slice(0, 3);
|
|
24247
|
-
while (fraction.length < 3)
|
|
24355
|
+
while (fraction.length < 3) {
|
|
24248
24356
|
fraction += "0";
|
|
24357
|
+
}
|
|
24249
24358
|
fraction = +fraction;
|
|
24250
24359
|
}
|
|
24251
24360
|
if (match[9]) {
|
|
@@ -24263,36 +24372,48 @@ var require_timestamp = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24263
24372
|
function representYamlTimestamp(object) {
|
|
24264
24373
|
return object.toISOString();
|
|
24265
24374
|
}
|
|
24266
|
-
|
|
24375
|
+
timestamp = new Type2("tag:yaml.org,2002:timestamp", {
|
|
24267
24376
|
kind: "scalar",
|
|
24268
24377
|
resolve: resolveYamlTimestamp,
|
|
24269
24378
|
construct: constructYamlTimestamp,
|
|
24270
24379
|
instanceOf: Date,
|
|
24271
24380
|
represent: representYamlTimestamp
|
|
24272
24381
|
});
|
|
24273
|
-
|
|
24274
|
-
|
|
24275
|
-
|
|
24382
|
+
return timestamp;
|
|
24383
|
+
}
|
|
24384
|
+
var merge;
|
|
24385
|
+
var hasRequiredMerge;
|
|
24386
|
+
function requireMerge() {
|
|
24387
|
+
if (hasRequiredMerge)
|
|
24388
|
+
return merge;
|
|
24389
|
+
hasRequiredMerge = 1;
|
|
24390
|
+
const Type2 = requireType();
|
|
24276
24391
|
function resolveYamlMerge(data) {
|
|
24277
24392
|
return data === "<<" || data === null;
|
|
24278
24393
|
}
|
|
24279
|
-
|
|
24394
|
+
merge = new Type2("tag:yaml.org,2002:merge", {
|
|
24280
24395
|
kind: "scalar",
|
|
24281
24396
|
resolve: resolveYamlMerge
|
|
24282
24397
|
});
|
|
24283
|
-
|
|
24284
|
-
|
|
24285
|
-
|
|
24286
|
-
|
|
24398
|
+
return merge;
|
|
24399
|
+
}
|
|
24400
|
+
var binary;
|
|
24401
|
+
var hasRequiredBinary;
|
|
24402
|
+
function requireBinary() {
|
|
24403
|
+
if (hasRequiredBinary)
|
|
24404
|
+
return binary;
|
|
24405
|
+
hasRequiredBinary = 1;
|
|
24406
|
+
const Type2 = requireType();
|
|
24407
|
+
const BASE64_MAP = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
24287
24408
|
\r`;
|
|
24288
24409
|
function resolveYamlBinary(data) {
|
|
24289
24410
|
if (data === null)
|
|
24290
24411
|
return false;
|
|
24291
24412
|
let bitlen = 0;
|
|
24292
24413
|
const max = data.length;
|
|
24293
|
-
const
|
|
24414
|
+
const map2 = BASE64_MAP;
|
|
24294
24415
|
for (let idx = 0;idx < max; idx++) {
|
|
24295
|
-
const code =
|
|
24416
|
+
const code = map2.indexOf(data.charAt(idx));
|
|
24296
24417
|
if (code > 64)
|
|
24297
24418
|
continue;
|
|
24298
24419
|
if (code < 0)
|
|
@@ -24304,7 +24425,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24304
24425
|
function constructYamlBinary(data) {
|
|
24305
24426
|
const input = data.replace(/[\r\n=]/g, "");
|
|
24306
24427
|
const max = input.length;
|
|
24307
|
-
const
|
|
24428
|
+
const map2 = BASE64_MAP;
|
|
24308
24429
|
let bits = 0;
|
|
24309
24430
|
const result = [];
|
|
24310
24431
|
for (let idx = 0;idx < max; idx++) {
|
|
@@ -24313,7 +24434,7 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24313
24434
|
result.push(bits >> 8 & 255);
|
|
24314
24435
|
result.push(bits & 255);
|
|
24315
24436
|
}
|
|
24316
|
-
bits = bits << 6 |
|
|
24437
|
+
bits = bits << 6 | map2.indexOf(input.charAt(idx));
|
|
24317
24438
|
}
|
|
24318
24439
|
const tailbits = max % 4 * 6;
|
|
24319
24440
|
if (tailbits === 0) {
|
|
@@ -24323,58 +24444,65 @@ var require_binary = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24323
24444
|
} else if (tailbits === 18) {
|
|
24324
24445
|
result.push(bits >> 10 & 255);
|
|
24325
24446
|
result.push(bits >> 2 & 255);
|
|
24326
|
-
} else if (tailbits === 12)
|
|
24447
|
+
} else if (tailbits === 12) {
|
|
24327
24448
|
result.push(bits >> 4 & 255);
|
|
24449
|
+
}
|
|
24328
24450
|
return new Uint8Array(result);
|
|
24329
24451
|
}
|
|
24330
24452
|
function representYamlBinary(object) {
|
|
24331
24453
|
let result = "";
|
|
24332
24454
|
let bits = 0;
|
|
24333
24455
|
const max = object.length;
|
|
24334
|
-
const
|
|
24456
|
+
const map2 = BASE64_MAP;
|
|
24335
24457
|
for (let idx = 0;idx < max; idx++) {
|
|
24336
24458
|
if (idx % 3 === 0 && idx) {
|
|
24337
|
-
result +=
|
|
24338
|
-
result +=
|
|
24339
|
-
result +=
|
|
24340
|
-
result +=
|
|
24459
|
+
result += map2[bits >> 18 & 63];
|
|
24460
|
+
result += map2[bits >> 12 & 63];
|
|
24461
|
+
result += map2[bits >> 6 & 63];
|
|
24462
|
+
result += map2[bits & 63];
|
|
24341
24463
|
}
|
|
24342
24464
|
bits = (bits << 8) + object[idx];
|
|
24343
24465
|
}
|
|
24344
24466
|
const tail = max % 3;
|
|
24345
24467
|
if (tail === 0) {
|
|
24346
|
-
result +=
|
|
24347
|
-
result +=
|
|
24348
|
-
result +=
|
|
24349
|
-
result +=
|
|
24468
|
+
result += map2[bits >> 18 & 63];
|
|
24469
|
+
result += map2[bits >> 12 & 63];
|
|
24470
|
+
result += map2[bits >> 6 & 63];
|
|
24471
|
+
result += map2[bits & 63];
|
|
24350
24472
|
} else if (tail === 2) {
|
|
24351
|
-
result +=
|
|
24352
|
-
result +=
|
|
24353
|
-
result +=
|
|
24354
|
-
result +=
|
|
24473
|
+
result += map2[bits >> 10 & 63];
|
|
24474
|
+
result += map2[bits >> 4 & 63];
|
|
24475
|
+
result += map2[bits << 2 & 63];
|
|
24476
|
+
result += map2[64];
|
|
24355
24477
|
} else if (tail === 1) {
|
|
24356
|
-
result +=
|
|
24357
|
-
result +=
|
|
24358
|
-
result +=
|
|
24359
|
-
result +=
|
|
24478
|
+
result += map2[bits >> 2 & 63];
|
|
24479
|
+
result += map2[bits << 4 & 63];
|
|
24480
|
+
result += map2[64];
|
|
24481
|
+
result += map2[64];
|
|
24360
24482
|
}
|
|
24361
24483
|
return result;
|
|
24362
24484
|
}
|
|
24363
24485
|
function isBinary(obj) {
|
|
24364
24486
|
return Object.prototype.toString.call(obj) === "[object Uint8Array]";
|
|
24365
24487
|
}
|
|
24366
|
-
|
|
24488
|
+
binary = new Type2("tag:yaml.org,2002:binary", {
|
|
24367
24489
|
kind: "scalar",
|
|
24368
24490
|
resolve: resolveYamlBinary,
|
|
24369
24491
|
construct: constructYamlBinary,
|
|
24370
24492
|
predicate: isBinary,
|
|
24371
24493
|
represent: representYamlBinary
|
|
24372
24494
|
});
|
|
24373
|
-
|
|
24374
|
-
|
|
24375
|
-
|
|
24376
|
-
|
|
24377
|
-
|
|
24495
|
+
return binary;
|
|
24496
|
+
}
|
|
24497
|
+
var omap;
|
|
24498
|
+
var hasRequiredOmap;
|
|
24499
|
+
function requireOmap() {
|
|
24500
|
+
if (hasRequiredOmap)
|
|
24501
|
+
return omap;
|
|
24502
|
+
hasRequiredOmap = 1;
|
|
24503
|
+
const Type2 = requireType();
|
|
24504
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
24505
|
+
const _toString = Object.prototype.toString;
|
|
24378
24506
|
function resolveYamlOmap(data) {
|
|
24379
24507
|
if (data === null)
|
|
24380
24508
|
return true;
|
|
@@ -24386,12 +24514,14 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24386
24514
|
if (_toString.call(pair) !== "[object Object]")
|
|
24387
24515
|
return false;
|
|
24388
24516
|
let pairKey;
|
|
24389
|
-
for (pairKey in pair)
|
|
24390
|
-
if (_hasOwnProperty.call(pair, pairKey))
|
|
24517
|
+
for (pairKey in pair) {
|
|
24518
|
+
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
24391
24519
|
if (!pairHasKey)
|
|
24392
24520
|
pairHasKey = true;
|
|
24393
24521
|
else
|
|
24394
24522
|
return false;
|
|
24523
|
+
}
|
|
24524
|
+
}
|
|
24395
24525
|
if (!pairHasKey)
|
|
24396
24526
|
return false;
|
|
24397
24527
|
if (objectKeys.indexOf(pairKey) === -1)
|
|
@@ -24404,15 +24534,21 @@ var require_omap = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24404
24534
|
function constructYamlOmap(data) {
|
|
24405
24535
|
return data !== null ? data : [];
|
|
24406
24536
|
}
|
|
24407
|
-
|
|
24537
|
+
omap = new Type2("tag:yaml.org,2002:omap", {
|
|
24408
24538
|
kind: "sequence",
|
|
24409
24539
|
resolve: resolveYamlOmap,
|
|
24410
24540
|
construct: constructYamlOmap
|
|
24411
24541
|
});
|
|
24412
|
-
|
|
24413
|
-
|
|
24414
|
-
|
|
24415
|
-
|
|
24542
|
+
return omap;
|
|
24543
|
+
}
|
|
24544
|
+
var pairs;
|
|
24545
|
+
var hasRequiredPairs;
|
|
24546
|
+
function requirePairs() {
|
|
24547
|
+
if (hasRequiredPairs)
|
|
24548
|
+
return pairs;
|
|
24549
|
+
hasRequiredPairs = 1;
|
|
24550
|
+
const Type2 = requireType();
|
|
24551
|
+
const _toString = Object.prototype.toString;
|
|
24416
24552
|
function resolveYamlPairs(data) {
|
|
24417
24553
|
if (data === null)
|
|
24418
24554
|
return true;
|
|
@@ -24441,64 +24577,85 @@ var require_pairs = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24441
24577
|
}
|
|
24442
24578
|
return result;
|
|
24443
24579
|
}
|
|
24444
|
-
|
|
24580
|
+
pairs = new Type2("tag:yaml.org,2002:pairs", {
|
|
24445
24581
|
kind: "sequence",
|
|
24446
24582
|
resolve: resolveYamlPairs,
|
|
24447
24583
|
construct: constructYamlPairs
|
|
24448
24584
|
});
|
|
24449
|
-
|
|
24450
|
-
|
|
24451
|
-
|
|
24452
|
-
|
|
24585
|
+
return pairs;
|
|
24586
|
+
}
|
|
24587
|
+
var set;
|
|
24588
|
+
var hasRequiredSet;
|
|
24589
|
+
function requireSet() {
|
|
24590
|
+
if (hasRequiredSet)
|
|
24591
|
+
return set;
|
|
24592
|
+
hasRequiredSet = 1;
|
|
24593
|
+
const Type2 = requireType();
|
|
24594
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
24453
24595
|
function resolveYamlSet(data) {
|
|
24454
24596
|
if (data === null)
|
|
24455
24597
|
return true;
|
|
24456
24598
|
const object = data;
|
|
24457
|
-
for (const key in object)
|
|
24599
|
+
for (const key in object) {
|
|
24458
24600
|
if (_hasOwnProperty.call(object, key)) {
|
|
24459
24601
|
if (object[key] !== null)
|
|
24460
24602
|
return false;
|
|
24461
24603
|
}
|
|
24604
|
+
}
|
|
24462
24605
|
return true;
|
|
24463
24606
|
}
|
|
24464
24607
|
function constructYamlSet(data) {
|
|
24465
24608
|
return data !== null ? data : {};
|
|
24466
24609
|
}
|
|
24467
|
-
|
|
24610
|
+
set = new Type2("tag:yaml.org,2002:set", {
|
|
24468
24611
|
kind: "mapping",
|
|
24469
24612
|
resolve: resolveYamlSet,
|
|
24470
24613
|
construct: constructYamlSet
|
|
24471
24614
|
});
|
|
24472
|
-
|
|
24473
|
-
|
|
24474
|
-
|
|
24475
|
-
|
|
24615
|
+
return set;
|
|
24616
|
+
}
|
|
24617
|
+
var _default;
|
|
24618
|
+
var hasRequired_default;
|
|
24619
|
+
function require_default() {
|
|
24620
|
+
if (hasRequired_default)
|
|
24621
|
+
return _default;
|
|
24622
|
+
hasRequired_default = 1;
|
|
24623
|
+
_default = requireCore().extend({
|
|
24624
|
+
implicit: [
|
|
24625
|
+
requireTimestamp(),
|
|
24626
|
+
requireMerge()
|
|
24627
|
+
],
|
|
24476
24628
|
explicit: [
|
|
24477
|
-
|
|
24478
|
-
|
|
24479
|
-
|
|
24480
|
-
|
|
24629
|
+
requireBinary(),
|
|
24630
|
+
requireOmap(),
|
|
24631
|
+
requirePairs(),
|
|
24632
|
+
requireSet()
|
|
24481
24633
|
]
|
|
24482
24634
|
});
|
|
24483
|
-
|
|
24484
|
-
|
|
24485
|
-
|
|
24486
|
-
|
|
24487
|
-
|
|
24488
|
-
|
|
24489
|
-
|
|
24490
|
-
|
|
24491
|
-
|
|
24492
|
-
|
|
24493
|
-
|
|
24494
|
-
|
|
24495
|
-
|
|
24496
|
-
|
|
24497
|
-
|
|
24498
|
-
|
|
24499
|
-
|
|
24500
|
-
|
|
24501
|
-
|
|
24635
|
+
return _default;
|
|
24636
|
+
}
|
|
24637
|
+
var hasRequiredLoader;
|
|
24638
|
+
function requireLoader() {
|
|
24639
|
+
if (hasRequiredLoader)
|
|
24640
|
+
return loader;
|
|
24641
|
+
hasRequiredLoader = 1;
|
|
24642
|
+
const common2 = requireCommon();
|
|
24643
|
+
const YAMLException2 = requireException();
|
|
24644
|
+
const makeSnippet = requireSnippet();
|
|
24645
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
24646
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
24647
|
+
const CONTEXT_FLOW_IN = 1;
|
|
24648
|
+
const CONTEXT_FLOW_OUT = 2;
|
|
24649
|
+
const CONTEXT_BLOCK_IN = 3;
|
|
24650
|
+
const CONTEXT_BLOCK_OUT = 4;
|
|
24651
|
+
const CHOMPING_CLIP = 1;
|
|
24652
|
+
const CHOMPING_STRIP = 2;
|
|
24653
|
+
const CHOMPING_KEEP = 3;
|
|
24654
|
+
const PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
24655
|
+
const PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
24656
|
+
const PATTERN_FLOW_INDICATORS = /[,\[\]{}]/;
|
|
24657
|
+
const PATTERN_TAG_HANDLE = /^(?:!|!!|![0-9A-Za-z-]+!)$/;
|
|
24658
|
+
const PATTERN_TAG_URI = /^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;
|
|
24502
24659
|
function _class(obj) {
|
|
24503
24660
|
return Object.prototype.toString.call(obj);
|
|
24504
24661
|
}
|
|
@@ -24515,25 +24672,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24515
24672
|
return c === 44 || c === 91 || c === 93 || c === 123 || c === 125;
|
|
24516
24673
|
}
|
|
24517
24674
|
function fromHexCode(c) {
|
|
24518
|
-
if (c >= 48 && c <= 57)
|
|
24675
|
+
if (c >= 48 && c <= 57) {
|
|
24519
24676
|
return c - 48;
|
|
24677
|
+
}
|
|
24520
24678
|
const lc = c | 32;
|
|
24521
|
-
if (lc >= 97 && lc <= 102)
|
|
24679
|
+
if (lc >= 97 && lc <= 102) {
|
|
24522
24680
|
return lc - 97 + 10;
|
|
24681
|
+
}
|
|
24523
24682
|
return -1;
|
|
24524
24683
|
}
|
|
24525
24684
|
function escapedHexLen(c) {
|
|
24526
|
-
if (c === 120)
|
|
24685
|
+
if (c === 120) {
|
|
24527
24686
|
return 2;
|
|
24528
|
-
|
|
24687
|
+
}
|
|
24688
|
+
if (c === 117) {
|
|
24529
24689
|
return 4;
|
|
24530
|
-
|
|
24690
|
+
}
|
|
24691
|
+
if (c === 85) {
|
|
24531
24692
|
return 8;
|
|
24693
|
+
}
|
|
24532
24694
|
return 0;
|
|
24533
24695
|
}
|
|
24534
24696
|
function fromDecimalCode(c) {
|
|
24535
|
-
if (c >= 48 && c <= 57)
|
|
24697
|
+
if (c >= 48 && c <= 57) {
|
|
24536
24698
|
return c - 48;
|
|
24699
|
+
}
|
|
24537
24700
|
return -1;
|
|
24538
24701
|
}
|
|
24539
24702
|
function simpleEscapeSequence(c) {
|
|
@@ -24580,23 +24743,25 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24580
24743
|
}
|
|
24581
24744
|
}
|
|
24582
24745
|
function charFromCodepoint(c) {
|
|
24583
|
-
if (c <= 65535)
|
|
24746
|
+
if (c <= 65535) {
|
|
24584
24747
|
return String.fromCharCode(c);
|
|
24748
|
+
}
|
|
24585
24749
|
return String.fromCharCode((c - 65536 >> 10) + 55296, (c - 65536 & 1023) + 56320);
|
|
24586
24750
|
}
|
|
24587
24751
|
function setProperty(object, key, value) {
|
|
24588
|
-
if (key === "__proto__")
|
|
24752
|
+
if (key === "__proto__") {
|
|
24589
24753
|
Object.defineProperty(object, key, {
|
|
24590
24754
|
configurable: true,
|
|
24591
24755
|
enumerable: true,
|
|
24592
24756
|
writable: true,
|
|
24593
24757
|
value
|
|
24594
24758
|
});
|
|
24595
|
-
else
|
|
24759
|
+
} else {
|
|
24596
24760
|
object[key] = value;
|
|
24761
|
+
}
|
|
24597
24762
|
}
|
|
24598
|
-
|
|
24599
|
-
|
|
24763
|
+
const simpleEscapeCheck = new Array(256);
|
|
24764
|
+
const simpleEscapeMap = new Array(256);
|
|
24600
24765
|
for (let i = 0;i < 256; i++) {
|
|
24601
24766
|
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
24602
24767
|
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
@@ -24604,13 +24769,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24604
24769
|
function State(input, options) {
|
|
24605
24770
|
this.input = input;
|
|
24606
24771
|
this.filename = options["filename"] || null;
|
|
24607
|
-
this.schema = options["schema"] ||
|
|
24772
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
24608
24773
|
this.onWarning = options["onWarning"] || null;
|
|
24609
24774
|
this.legacy = options["legacy"] || false;
|
|
24610
24775
|
this.json = options["json"] || false;
|
|
24611
24776
|
this.listener = options["listener"] || null;
|
|
24612
24777
|
this.maxDepth = typeof options["maxDepth"] === "number" ? options["maxDepth"] : 100;
|
|
24613
|
-
this.
|
|
24778
|
+
this.maxTotalMergeKeys = typeof options["maxTotalMergeKeys"] === "number" ? options["maxTotalMergeKeys"] : 1e4;
|
|
24614
24779
|
this.implicitTypes = this.schema.compiledImplicit;
|
|
24615
24780
|
this.typeMap = this.schema.compiledTypeMap;
|
|
24616
24781
|
this.length = input.length;
|
|
@@ -24619,6 +24784,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24619
24784
|
this.lineStart = 0;
|
|
24620
24785
|
this.lineIndent = 0;
|
|
24621
24786
|
this.depth = 0;
|
|
24787
|
+
this.totalMergeKeys = 0;
|
|
24622
24788
|
this.firstTabInLine = -1;
|
|
24623
24789
|
this.documents = [];
|
|
24624
24790
|
this.anchorMapTransactions = [];
|
|
@@ -24632,29 +24798,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24632
24798
|
column: state.position - state.lineStart
|
|
24633
24799
|
};
|
|
24634
24800
|
mark.snippet = makeSnippet(mark);
|
|
24635
|
-
return new
|
|
24801
|
+
return new YAMLException2(message, mark);
|
|
24636
24802
|
}
|
|
24637
24803
|
function throwError(state, message) {
|
|
24638
24804
|
throw generateError(state, message);
|
|
24639
24805
|
}
|
|
24640
24806
|
function throwWarning(state, message) {
|
|
24641
|
-
if (state.onWarning)
|
|
24807
|
+
if (state.onWarning) {
|
|
24642
24808
|
state.onWarning.call(null, generateError(state, message));
|
|
24809
|
+
}
|
|
24643
24810
|
}
|
|
24644
24811
|
function storeAnchor(state, name, value) {
|
|
24645
24812
|
const transactions = state.anchorMapTransactions;
|
|
24646
24813
|
if (transactions.length !== 0) {
|
|
24647
24814
|
const transaction = transactions[transactions.length - 1];
|
|
24648
|
-
if (!_hasOwnProperty.call(transaction, name))
|
|
24815
|
+
if (!_hasOwnProperty.call(transaction, name)) {
|
|
24649
24816
|
transaction[name] = {
|
|
24650
24817
|
existed: _hasOwnProperty.call(state.anchorMap, name),
|
|
24651
24818
|
value: state.anchorMap[name]
|
|
24652
24819
|
};
|
|
24820
|
+
}
|
|
24653
24821
|
}
|
|
24654
24822
|
state.anchorMap[name] = value;
|
|
24655
24823
|
}
|
|
24656
24824
|
function beginAnchorTransaction(state) {
|
|
24657
|
-
state.anchorMapTransactions.push(Object.create(null));
|
|
24825
|
+
state.anchorMapTransactions.push(/* @__PURE__ */ Object.create(null));
|
|
24658
24826
|
}
|
|
24659
24827
|
function commitAnchorTransaction(state) {
|
|
24660
24828
|
const transaction = state.anchorMapTransactions.pop();
|
|
@@ -24665,8 +24833,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24665
24833
|
const names = Object.keys(transaction);
|
|
24666
24834
|
for (let index = 0, length = names.length;index < length; index += 1) {
|
|
24667
24835
|
const name = names[index];
|
|
24668
|
-
if (!_hasOwnProperty.call(parent, name))
|
|
24836
|
+
if (!_hasOwnProperty.call(parent, name)) {
|
|
24669
24837
|
parent[name] = transaction[name];
|
|
24838
|
+
}
|
|
24670
24839
|
}
|
|
24671
24840
|
}
|
|
24672
24841
|
function rollbackAnchorTransaction(state) {
|
|
@@ -24674,10 +24843,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24674
24843
|
const names = Object.keys(transaction);
|
|
24675
24844
|
for (let index = names.length - 1;index >= 0; index -= 1) {
|
|
24676
24845
|
const entry = transaction[names[index]];
|
|
24677
|
-
if (entry.existed)
|
|
24846
|
+
if (entry.existed) {
|
|
24678
24847
|
state.anchorMap[names[index]] = entry.value;
|
|
24679
|
-
else
|
|
24848
|
+
} else {
|
|
24680
24849
|
delete state.anchorMap[names[index]];
|
|
24850
|
+
}
|
|
24681
24851
|
}
|
|
24682
24852
|
}
|
|
24683
24853
|
function snapshotState(state) {
|
|
@@ -24704,36 +24874,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24704
24874
|
state.kind = snapshot.kind;
|
|
24705
24875
|
state.result = snapshot.result;
|
|
24706
24876
|
}
|
|
24707
|
-
|
|
24877
|
+
const directiveHandlers = {
|
|
24708
24878
|
YAML: function handleYamlDirective(state, name, args) {
|
|
24709
|
-
if (state.version !== null)
|
|
24879
|
+
if (state.version !== null) {
|
|
24710
24880
|
throwError(state, "duplication of %YAML directive");
|
|
24711
|
-
|
|
24881
|
+
}
|
|
24882
|
+
if (args.length !== 1) {
|
|
24712
24883
|
throwError(state, "YAML directive accepts exactly one argument");
|
|
24884
|
+
}
|
|
24713
24885
|
const match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
24714
|
-
if (match === null)
|
|
24886
|
+
if (match === null) {
|
|
24715
24887
|
throwError(state, "ill-formed argument of the YAML directive");
|
|
24888
|
+
}
|
|
24716
24889
|
const major = parseInt(match[1], 10);
|
|
24717
24890
|
const minor = parseInt(match[2], 10);
|
|
24718
|
-
if (major !== 1)
|
|
24891
|
+
if (major !== 1) {
|
|
24719
24892
|
throwError(state, "unacceptable YAML version of the document");
|
|
24893
|
+
}
|
|
24720
24894
|
state.version = args[0];
|
|
24721
24895
|
state.checkLineBreaks = minor < 2;
|
|
24722
|
-
if (minor !== 1 && minor !== 2)
|
|
24896
|
+
if (minor !== 1 && minor !== 2) {
|
|
24723
24897
|
throwWarning(state, "unsupported YAML version of the document");
|
|
24898
|
+
}
|
|
24724
24899
|
},
|
|
24725
24900
|
TAG: function handleTagDirective(state, name, args) {
|
|
24726
24901
|
let prefix;
|
|
24727
|
-
if (args.length !== 2)
|
|
24902
|
+
if (args.length !== 2) {
|
|
24728
24903
|
throwError(state, "TAG directive accepts exactly two arguments");
|
|
24904
|
+
}
|
|
24729
24905
|
const handle = args[0];
|
|
24730
24906
|
prefix = args[1];
|
|
24731
|
-
if (!PATTERN_TAG_HANDLE.test(handle))
|
|
24907
|
+
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
24732
24908
|
throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
24733
|
-
|
|
24909
|
+
}
|
|
24910
|
+
if (_hasOwnProperty.call(state.tagMap, handle)) {
|
|
24734
24911
|
throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
|
|
24735
|
-
|
|
24912
|
+
}
|
|
24913
|
+
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
24736
24914
|
throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
24915
|
+
}
|
|
24737
24916
|
try {
|
|
24738
24917
|
prefix = decodeURIComponent(prefix);
|
|
24739
24918
|
} catch (err) {
|
|
@@ -24745,23 +24924,29 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24745
24924
|
function captureSegment(state, start, end, checkJson) {
|
|
24746
24925
|
if (start < end) {
|
|
24747
24926
|
const _result = state.input.slice(start, end);
|
|
24748
|
-
if (checkJson)
|
|
24927
|
+
if (checkJson) {
|
|
24749
24928
|
for (let _position = 0, _length = _result.length;_position < _length; _position += 1) {
|
|
24750
24929
|
const _character = _result.charCodeAt(_position);
|
|
24751
|
-
if (!(_character === 9 || _character >= 32 && _character <= 1114111))
|
|
24930
|
+
if (!(_character === 9 || _character >= 32 && _character <= 1114111)) {
|
|
24752
24931
|
throwError(state, "expected valid JSON character");
|
|
24932
|
+
}
|
|
24753
24933
|
}
|
|
24754
|
-
else if (PATTERN_NON_PRINTABLE.test(_result))
|
|
24934
|
+
} else if (PATTERN_NON_PRINTABLE.test(_result)) {
|
|
24755
24935
|
throwError(state, "the stream contains non-printable characters");
|
|
24936
|
+
}
|
|
24756
24937
|
state.result += _result;
|
|
24757
24938
|
}
|
|
24758
24939
|
}
|
|
24759
24940
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
24760
|
-
if (!
|
|
24941
|
+
if (!common2.isObject(source)) {
|
|
24761
24942
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
24943
|
+
}
|
|
24762
24944
|
const sourceKeys = Object.keys(source);
|
|
24763
24945
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
24764
24946
|
const key = sourceKeys[index];
|
|
24947
|
+
if (state.maxTotalMergeKeys !== -1 && ++state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
24948
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
24949
|
+
}
|
|
24765
24950
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
24766
24951
|
setProperty(destination, key, source[key]);
|
|
24767
24952
|
overridableKeys[key] = true;
|
|
@@ -24772,32 +24957,30 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24772
24957
|
if (Array.isArray(keyNode)) {
|
|
24773
24958
|
keyNode = Array.prototype.slice.call(keyNode);
|
|
24774
24959
|
for (let index = 0, quantity = keyNode.length;index < quantity; index += 1) {
|
|
24775
|
-
if (Array.isArray(keyNode[index]))
|
|
24960
|
+
if (Array.isArray(keyNode[index])) {
|
|
24776
24961
|
throwError(state, "nested arrays are not supported inside keys");
|
|
24777
|
-
|
|
24962
|
+
}
|
|
24963
|
+
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
|
|
24778
24964
|
keyNode[index] = "[object Object]";
|
|
24965
|
+
}
|
|
24779
24966
|
}
|
|
24780
24967
|
}
|
|
24781
|
-
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]")
|
|
24968
|
+
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
|
|
24782
24969
|
keyNode = "[object Object]";
|
|
24970
|
+
}
|
|
24783
24971
|
keyNode = String(keyNode);
|
|
24784
|
-
if (_result === null)
|
|
24972
|
+
if (_result === null) {
|
|
24785
24973
|
_result = {};
|
|
24786
|
-
|
|
24974
|
+
}
|
|
24975
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
24787
24976
|
if (Array.isArray(valueNode)) {
|
|
24788
|
-
if (valueNode.length > state.maxMergeSeqLength)
|
|
24789
|
-
throwError(state, "merge sequence length exceeded maxMergeSeqLength (" + state.maxMergeSeqLength + ")");
|
|
24790
|
-
const seen = /* @__PURE__ */ new Set;
|
|
24791
24977
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
24792
|
-
|
|
24793
|
-
if (seen.has(src))
|
|
24794
|
-
continue;
|
|
24795
|
-
seen.add(src);
|
|
24796
|
-
mergeMappings(state, _result, src, overridableKeys);
|
|
24978
|
+
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
24797
24979
|
}
|
|
24798
|
-
} else
|
|
24980
|
+
} else {
|
|
24799
24981
|
mergeMappings(state, _result, valueNode, overridableKeys);
|
|
24800
|
-
|
|
24982
|
+
}
|
|
24983
|
+
} else {
|
|
24801
24984
|
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
24802
24985
|
state.line = startLine || state.line;
|
|
24803
24986
|
state.lineStart = startLineStart || state.lineStart;
|
|
@@ -24811,14 +24994,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24811
24994
|
}
|
|
24812
24995
|
function readLineBreak(state) {
|
|
24813
24996
|
const ch = state.input.charCodeAt(state.position);
|
|
24814
|
-
if (ch === 10)
|
|
24997
|
+
if (ch === 10) {
|
|
24815
24998
|
state.position++;
|
|
24816
|
-
else if (ch === 13) {
|
|
24999
|
+
} else if (ch === 13) {
|
|
24817
25000
|
state.position++;
|
|
24818
|
-
if (state.input.charCodeAt(state.position) === 10)
|
|
25001
|
+
if (state.input.charCodeAt(state.position) === 10) {
|
|
24819
25002
|
state.position++;
|
|
24820
|
-
|
|
25003
|
+
}
|
|
25004
|
+
} else {
|
|
24821
25005
|
throwError(state, "a line break is expected");
|
|
25006
|
+
}
|
|
24822
25007
|
state.line += 1;
|
|
24823
25008
|
state.lineStart = state.position;
|
|
24824
25009
|
state.firstTabInLine = -1;
|
|
@@ -24828,14 +25013,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24828
25013
|
let ch = state.input.charCodeAt(state.position);
|
|
24829
25014
|
while (ch !== 0) {
|
|
24830
25015
|
while (isWhiteSpace(ch)) {
|
|
24831
|
-
if (ch === 9 && state.firstTabInLine === -1)
|
|
25016
|
+
if (ch === 9 && state.firstTabInLine === -1) {
|
|
24832
25017
|
state.firstTabInLine = state.position;
|
|
25018
|
+
}
|
|
24833
25019
|
ch = state.input.charCodeAt(++state.position);
|
|
24834
25020
|
}
|
|
24835
|
-
if (allowComments && ch === 35)
|
|
24836
|
-
do
|
|
25021
|
+
if (allowComments && ch === 35) {
|
|
25022
|
+
do {
|
|
24837
25023
|
ch = state.input.charCodeAt(++state.position);
|
|
24838
|
-
while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
25024
|
+
} while (ch !== 10 && ch !== 13 && ch !== 0);
|
|
25025
|
+
}
|
|
24839
25026
|
if (isEol(ch)) {
|
|
24840
25027
|
readLineBreak(state);
|
|
24841
25028
|
ch = state.input.charCodeAt(state.position);
|
|
@@ -24845,11 +25032,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24845
25032
|
state.lineIndent++;
|
|
24846
25033
|
ch = state.input.charCodeAt(++state.position);
|
|
24847
25034
|
}
|
|
24848
|
-
} else
|
|
25035
|
+
} else {
|
|
24849
25036
|
break;
|
|
25037
|
+
}
|
|
24850
25038
|
}
|
|
24851
|
-
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent)
|
|
25039
|
+
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
|
|
24852
25040
|
throwWarning(state, "deficient indentation");
|
|
25041
|
+
}
|
|
24853
25042
|
return lineBreaks;
|
|
24854
25043
|
}
|
|
24855
25044
|
function testDocumentSeparator(state) {
|
|
@@ -24858,17 +25047,19 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24858
25047
|
if ((ch === 45 || ch === 46) && ch === state.input.charCodeAt(_position + 1) && ch === state.input.charCodeAt(_position + 2)) {
|
|
24859
25048
|
_position += 3;
|
|
24860
25049
|
ch = state.input.charCodeAt(_position);
|
|
24861
|
-
if (ch === 0 || isWsOrEol(ch))
|
|
25050
|
+
if (ch === 0 || isWsOrEol(ch)) {
|
|
24862
25051
|
return true;
|
|
25052
|
+
}
|
|
24863
25053
|
}
|
|
24864
25054
|
return false;
|
|
24865
25055
|
}
|
|
24866
25056
|
function writeFoldedLines(state, count) {
|
|
24867
|
-
if (count === 1)
|
|
25057
|
+
if (count === 1) {
|
|
24868
25058
|
state.result += " ";
|
|
24869
|
-
else if (count > 1)
|
|
24870
|
-
state.result +=
|
|
25059
|
+
} else if (count > 1) {
|
|
25060
|
+
state.result += common2.repeat(`
|
|
24871
25061
|
`, count - 1);
|
|
25062
|
+
}
|
|
24872
25063
|
}
|
|
24873
25064
|
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
24874
25065
|
let captureStart;
|
|
@@ -24880,12 +25071,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24880
25071
|
const _kind = state.kind;
|
|
24881
25072
|
const _result = state.result;
|
|
24882
25073
|
let ch = state.input.charCodeAt(state.position);
|
|
24883
|
-
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)
|
|
25074
|
+
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) {
|
|
24884
25075
|
return false;
|
|
25076
|
+
}
|
|
24885
25077
|
if (ch === 63 || ch === 45) {
|
|
24886
25078
|
const following = state.input.charCodeAt(state.position + 1);
|
|
24887
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
25079
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
24888
25080
|
return false;
|
|
25081
|
+
}
|
|
24889
25082
|
}
|
|
24890
25083
|
state.kind = "scalar";
|
|
24891
25084
|
state.result = "";
|
|
@@ -24894,14 +25087,17 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24894
25087
|
while (ch !== 0) {
|
|
24895
25088
|
if (ch === 58) {
|
|
24896
25089
|
const following = state.input.charCodeAt(state.position + 1);
|
|
24897
|
-
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following))
|
|
25090
|
+
if (isWsOrEol(following) || withinFlowCollection && isFlowIndicator(following)) {
|
|
24898
25091
|
break;
|
|
25092
|
+
}
|
|
24899
25093
|
} else if (ch === 35) {
|
|
24900
|
-
|
|
25094
|
+
const preceding = state.input.charCodeAt(state.position - 1);
|
|
25095
|
+
if (isWsOrEol(preceding)) {
|
|
24901
25096
|
break;
|
|
24902
|
-
|
|
25097
|
+
}
|
|
25098
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && isFlowIndicator(ch)) {
|
|
24903
25099
|
break;
|
|
24904
|
-
else if (isEol(ch)) {
|
|
25100
|
+
} else if (isEol(ch)) {
|
|
24905
25101
|
_line = state.line;
|
|
24906
25102
|
_lineStart = state.lineStart;
|
|
24907
25103
|
_lineIndent = state.lineIndent;
|
|
@@ -24924,13 +25120,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24924
25120
|
captureStart = captureEnd = state.position;
|
|
24925
25121
|
hasPendingContent = false;
|
|
24926
25122
|
}
|
|
24927
|
-
if (!isWhiteSpace(ch))
|
|
25123
|
+
if (!isWhiteSpace(ch)) {
|
|
24928
25124
|
captureEnd = state.position + 1;
|
|
25125
|
+
}
|
|
24929
25126
|
ch = state.input.charCodeAt(++state.position);
|
|
24930
25127
|
}
|
|
24931
25128
|
captureSegment(state, captureStart, captureEnd, false);
|
|
24932
|
-
if (state.result)
|
|
25129
|
+
if (state.result) {
|
|
24933
25130
|
return true;
|
|
25131
|
+
}
|
|
24934
25132
|
state.kind = _kind;
|
|
24935
25133
|
state.result = _result;
|
|
24936
25134
|
return false;
|
|
@@ -24939,13 +25137,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24939
25137
|
let captureStart;
|
|
24940
25138
|
let captureEnd;
|
|
24941
25139
|
let ch = state.input.charCodeAt(state.position);
|
|
24942
|
-
if (ch !== 39)
|
|
25140
|
+
if (ch !== 39) {
|
|
24943
25141
|
return false;
|
|
25142
|
+
}
|
|
24944
25143
|
state.kind = "scalar";
|
|
24945
25144
|
state.result = "";
|
|
24946
25145
|
state.position++;
|
|
24947
25146
|
captureStart = captureEnd = state.position;
|
|
24948
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
25147
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
24949
25148
|
if (ch === 39) {
|
|
24950
25149
|
captureSegment(state, captureStart, state.position, true);
|
|
24951
25150
|
ch = state.input.charCodeAt(++state.position);
|
|
@@ -24953,19 +25152,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24953
25152
|
captureStart = state.position;
|
|
24954
25153
|
state.position++;
|
|
24955
25154
|
captureEnd = state.position;
|
|
24956
|
-
} else
|
|
25155
|
+
} else {
|
|
24957
25156
|
return true;
|
|
25157
|
+
}
|
|
24958
25158
|
} else if (isEol(ch)) {
|
|
24959
25159
|
captureSegment(state, captureStart, captureEnd, true);
|
|
24960
25160
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
24961
25161
|
captureStart = captureEnd = state.position;
|
|
24962
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
25162
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
24963
25163
|
throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
24964
|
-
else {
|
|
25164
|
+
} else {
|
|
24965
25165
|
state.position++;
|
|
24966
|
-
if (!isWhiteSpace(ch))
|
|
25166
|
+
if (!isWhiteSpace(ch)) {
|
|
24967
25167
|
captureEnd = state.position;
|
|
25168
|
+
}
|
|
24968
25169
|
}
|
|
25170
|
+
}
|
|
24969
25171
|
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
24970
25172
|
}
|
|
24971
25173
|
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
@@ -24973,13 +25175,14 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24973
25175
|
let captureEnd;
|
|
24974
25176
|
let tmp;
|
|
24975
25177
|
let ch = state.input.charCodeAt(state.position);
|
|
24976
|
-
if (ch !== 34)
|
|
25178
|
+
if (ch !== 34) {
|
|
24977
25179
|
return false;
|
|
25180
|
+
}
|
|
24978
25181
|
state.kind = "scalar";
|
|
24979
25182
|
state.result = "";
|
|
24980
25183
|
state.position++;
|
|
24981
25184
|
captureStart = captureEnd = state.position;
|
|
24982
|
-
while ((ch = state.input.charCodeAt(state.position)) !== 0)
|
|
25185
|
+
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
24983
25186
|
if (ch === 34) {
|
|
24984
25187
|
captureSegment(state, captureStart, state.position, true);
|
|
24985
25188
|
state.position++;
|
|
@@ -24987,9 +25190,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24987
25190
|
} else if (ch === 92) {
|
|
24988
25191
|
captureSegment(state, captureStart, state.position, true);
|
|
24989
25192
|
ch = state.input.charCodeAt(++state.position);
|
|
24990
|
-
if (isEol(ch))
|
|
25193
|
+
if (isEol(ch)) {
|
|
24991
25194
|
skipSeparationSpace(state, false, nodeIndent);
|
|
24992
|
-
else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
25195
|
+
} else if (ch < 256 && simpleEscapeCheck[ch]) {
|
|
24993
25196
|
state.result += simpleEscapeMap[ch];
|
|
24994
25197
|
state.position++;
|
|
24995
25198
|
} else if ((tmp = escapedHexLen(ch)) > 0) {
|
|
@@ -24997,27 +25200,31 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
24997
25200
|
let hexResult = 0;
|
|
24998
25201
|
for (;hexLength > 0; hexLength--) {
|
|
24999
25202
|
ch = state.input.charCodeAt(++state.position);
|
|
25000
|
-
if ((tmp = fromHexCode(ch)) >= 0)
|
|
25203
|
+
if ((tmp = fromHexCode(ch)) >= 0) {
|
|
25001
25204
|
hexResult = (hexResult << 4) + tmp;
|
|
25002
|
-
else
|
|
25205
|
+
} else {
|
|
25003
25206
|
throwError(state, "expected hexadecimal character");
|
|
25207
|
+
}
|
|
25004
25208
|
}
|
|
25005
25209
|
state.result += charFromCodepoint(hexResult);
|
|
25006
25210
|
state.position++;
|
|
25007
|
-
} else
|
|
25211
|
+
} else {
|
|
25008
25212
|
throwError(state, "unknown escape sequence");
|
|
25213
|
+
}
|
|
25009
25214
|
captureStart = captureEnd = state.position;
|
|
25010
25215
|
} else if (isEol(ch)) {
|
|
25011
25216
|
captureSegment(state, captureStart, captureEnd, true);
|
|
25012
25217
|
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
25013
25218
|
captureStart = captureEnd = state.position;
|
|
25014
|
-
} else if (state.position === state.lineStart && testDocumentSeparator(state))
|
|
25219
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
25015
25220
|
throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
25016
|
-
else {
|
|
25221
|
+
} else {
|
|
25017
25222
|
state.position++;
|
|
25018
|
-
if (!isWhiteSpace(ch))
|
|
25223
|
+
if (!isWhiteSpace(ch)) {
|
|
25019
25224
|
captureEnd = state.position;
|
|
25225
|
+
}
|
|
25020
25226
|
}
|
|
25227
|
+
}
|
|
25021
25228
|
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
25022
25229
|
}
|
|
25023
25230
|
function readFlowCollection(state, nodeIndent) {
|
|
@@ -25032,7 +25239,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25032
25239
|
let isPair;
|
|
25033
25240
|
let isExplicitPair;
|
|
25034
25241
|
let isMapping;
|
|
25035
|
-
const overridableKeys = Object.create(null);
|
|
25242
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
25036
25243
|
let keyNode;
|
|
25037
25244
|
let keyTag;
|
|
25038
25245
|
let valueNode;
|
|
@@ -25045,10 +25252,12 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25045
25252
|
terminator = 125;
|
|
25046
25253
|
isMapping = true;
|
|
25047
25254
|
_result = {};
|
|
25048
|
-
} else
|
|
25255
|
+
} else {
|
|
25049
25256
|
return false;
|
|
25050
|
-
|
|
25257
|
+
}
|
|
25258
|
+
if (state.anchor !== null) {
|
|
25051
25259
|
storeAnchor(state, state.anchor, _result);
|
|
25260
|
+
}
|
|
25052
25261
|
ch = state.input.charCodeAt(++state.position);
|
|
25053
25262
|
while (ch !== 0) {
|
|
25054
25263
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -25060,14 +25269,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25060
25269
|
state.kind = isMapping ? "mapping" : "sequence";
|
|
25061
25270
|
state.result = _result;
|
|
25062
25271
|
return true;
|
|
25063
|
-
} else if (!readNext)
|
|
25272
|
+
} else if (!readNext) {
|
|
25064
25273
|
throwError(state, "missed comma between flow collection entries");
|
|
25065
|
-
else if (ch === 44)
|
|
25274
|
+
} else if (ch === 44) {
|
|
25066
25275
|
throwError(state, "expected the node content, but found ','");
|
|
25276
|
+
}
|
|
25067
25277
|
keyTag = keyNode = valueNode = null;
|
|
25068
25278
|
isPair = isExplicitPair = false;
|
|
25069
25279
|
if (ch === 63) {
|
|
25070
|
-
|
|
25280
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
25281
|
+
if (isWsOrEol(following)) {
|
|
25071
25282
|
isPair = isExplicitPair = true;
|
|
25072
25283
|
state.position++;
|
|
25073
25284
|
skipSeparationSpace(state, true, nodeIndent);
|
|
@@ -25088,19 +25299,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25088
25299
|
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
25089
25300
|
valueNode = state.result;
|
|
25090
25301
|
}
|
|
25091
|
-
if (isMapping)
|
|
25302
|
+
if (isMapping) {
|
|
25092
25303
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
|
|
25093
|
-
else if (isPair)
|
|
25304
|
+
} else if (isPair) {
|
|
25094
25305
|
_result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
|
|
25095
|
-
else
|
|
25306
|
+
} else {
|
|
25096
25307
|
_result.push(keyNode);
|
|
25308
|
+
}
|
|
25097
25309
|
skipSeparationSpace(state, true, nodeIndent);
|
|
25098
25310
|
ch = state.input.charCodeAt(state.position);
|
|
25099
25311
|
if (ch === 44) {
|
|
25100
25312
|
readNext = true;
|
|
25101
25313
|
ch = state.input.charCodeAt(++state.position);
|
|
25102
|
-
} else
|
|
25314
|
+
} else {
|
|
25103
25315
|
readNext = false;
|
|
25316
|
+
}
|
|
25104
25317
|
}
|
|
25105
25318
|
throwError(state, "unexpected end of the stream within a flow collection");
|
|
25106
25319
|
}
|
|
@@ -25114,40 +25327,45 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25114
25327
|
let atMoreIndented = false;
|
|
25115
25328
|
let tmp;
|
|
25116
25329
|
let ch = state.input.charCodeAt(state.position);
|
|
25117
|
-
if (ch === 124)
|
|
25330
|
+
if (ch === 124) {
|
|
25118
25331
|
folding = false;
|
|
25119
|
-
else if (ch === 62)
|
|
25332
|
+
} else if (ch === 62) {
|
|
25120
25333
|
folding = true;
|
|
25121
|
-
else
|
|
25334
|
+
} else {
|
|
25122
25335
|
return false;
|
|
25336
|
+
}
|
|
25123
25337
|
state.kind = "scalar";
|
|
25124
25338
|
state.result = "";
|
|
25125
25339
|
while (ch !== 0) {
|
|
25126
25340
|
ch = state.input.charCodeAt(++state.position);
|
|
25127
|
-
if (ch === 43 || ch === 45)
|
|
25128
|
-
if (CHOMPING_CLIP === chomping)
|
|
25341
|
+
if (ch === 43 || ch === 45) {
|
|
25342
|
+
if (CHOMPING_CLIP === chomping) {
|
|
25129
25343
|
chomping = ch === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
25130
|
-
else
|
|
25344
|
+
} else {
|
|
25131
25345
|
throwError(state, "repeat of a chomping mode identifier");
|
|
25132
|
-
|
|
25133
|
-
|
|
25346
|
+
}
|
|
25347
|
+
} else if ((tmp = fromDecimalCode(ch)) >= 0) {
|
|
25348
|
+
if (tmp === 0) {
|
|
25134
25349
|
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
25135
|
-
else if (!detectedIndent) {
|
|
25350
|
+
} else if (!detectedIndent) {
|
|
25136
25351
|
textIndent = nodeIndent + tmp - 1;
|
|
25137
25352
|
detectedIndent = true;
|
|
25138
|
-
} else
|
|
25353
|
+
} else {
|
|
25139
25354
|
throwError(state, "repeat of an indentation width identifier");
|
|
25140
|
-
|
|
25355
|
+
}
|
|
25356
|
+
} else {
|
|
25141
25357
|
break;
|
|
25358
|
+
}
|
|
25142
25359
|
}
|
|
25143
25360
|
if (isWhiteSpace(ch)) {
|
|
25144
|
-
do
|
|
25361
|
+
do {
|
|
25145
25362
|
ch = state.input.charCodeAt(++state.position);
|
|
25146
|
-
while (isWhiteSpace(ch));
|
|
25147
|
-
if (ch === 35)
|
|
25148
|
-
do
|
|
25363
|
+
} while (isWhiteSpace(ch));
|
|
25364
|
+
if (ch === 35) {
|
|
25365
|
+
do {
|
|
25149
25366
|
ch = state.input.charCodeAt(++state.position);
|
|
25150
|
-
while (!isEol(ch) && ch !== 0);
|
|
25367
|
+
} while (!isEol(ch) && ch !== 0);
|
|
25368
|
+
}
|
|
25151
25369
|
}
|
|
25152
25370
|
while (ch !== 0) {
|
|
25153
25371
|
readLineBreak(state);
|
|
@@ -25157,49 +25375,56 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25157
25375
|
state.lineIndent++;
|
|
25158
25376
|
ch = state.input.charCodeAt(++state.position);
|
|
25159
25377
|
}
|
|
25160
|
-
if (!detectedIndent && state.lineIndent > textIndent)
|
|
25378
|
+
if (!detectedIndent && state.lineIndent > textIndent) {
|
|
25161
25379
|
textIndent = state.lineIndent;
|
|
25380
|
+
}
|
|
25162
25381
|
if (isEol(ch)) {
|
|
25163
25382
|
emptyLines++;
|
|
25164
25383
|
continue;
|
|
25165
25384
|
}
|
|
25166
|
-
if (!detectedIndent && textIndent === 0)
|
|
25385
|
+
if (!detectedIndent && textIndent === 0) {
|
|
25167
25386
|
throwError(state, "missing indentation for block scalar");
|
|
25387
|
+
}
|
|
25168
25388
|
if (state.lineIndent < textIndent) {
|
|
25169
|
-
if (chomping === CHOMPING_KEEP)
|
|
25170
|
-
state.result +=
|
|
25389
|
+
if (chomping === CHOMPING_KEEP) {
|
|
25390
|
+
state.result += common2.repeat(`
|
|
25171
25391
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
25172
|
-
else if (chomping === CHOMPING_CLIP) {
|
|
25173
|
-
if (didReadContent)
|
|
25392
|
+
} else if (chomping === CHOMPING_CLIP) {
|
|
25393
|
+
if (didReadContent) {
|
|
25174
25394
|
state.result += `
|
|
25175
25395
|
`;
|
|
25396
|
+
}
|
|
25176
25397
|
}
|
|
25177
25398
|
break;
|
|
25178
25399
|
}
|
|
25179
|
-
if (folding)
|
|
25400
|
+
if (folding) {
|
|
25180
25401
|
if (isWhiteSpace(ch)) {
|
|
25181
25402
|
atMoreIndented = true;
|
|
25182
|
-
state.result +=
|
|
25403
|
+
state.result += common2.repeat(`
|
|
25183
25404
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
25184
25405
|
} else if (atMoreIndented) {
|
|
25185
25406
|
atMoreIndented = false;
|
|
25186
|
-
state.result +=
|
|
25407
|
+
state.result += common2.repeat(`
|
|
25187
25408
|
`, emptyLines + 1);
|
|
25188
25409
|
} else if (emptyLines === 0) {
|
|
25189
|
-
if (didReadContent)
|
|
25410
|
+
if (didReadContent) {
|
|
25190
25411
|
state.result += " ";
|
|
25191
|
-
|
|
25192
|
-
|
|
25412
|
+
}
|
|
25413
|
+
} else {
|
|
25414
|
+
state.result += common2.repeat(`
|
|
25193
25415
|
`, emptyLines);
|
|
25194
|
-
|
|
25195
|
-
|
|
25416
|
+
}
|
|
25417
|
+
} else {
|
|
25418
|
+
state.result += common2.repeat(`
|
|
25196
25419
|
`, didReadContent ? 1 + emptyLines : emptyLines);
|
|
25420
|
+
}
|
|
25197
25421
|
didReadContent = true;
|
|
25198
25422
|
detectedIndent = true;
|
|
25199
25423
|
emptyLines = 0;
|
|
25200
25424
|
const captureStart = state.position;
|
|
25201
|
-
while (!isEol(ch) && ch !== 0)
|
|
25425
|
+
while (!isEol(ch) && ch !== 0) {
|
|
25202
25426
|
ch = state.input.charCodeAt(++state.position);
|
|
25427
|
+
}
|
|
25203
25428
|
captureSegment(state, captureStart, state.position, false);
|
|
25204
25429
|
}
|
|
25205
25430
|
return true;
|
|
@@ -25211,18 +25436,22 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25211
25436
|
let detected = false;
|
|
25212
25437
|
if (state.firstTabInLine !== -1)
|
|
25213
25438
|
return false;
|
|
25214
|
-
if (state.anchor !== null)
|
|
25439
|
+
if (state.anchor !== null) {
|
|
25215
25440
|
storeAnchor(state, state.anchor, _result);
|
|
25441
|
+
}
|
|
25216
25442
|
let ch = state.input.charCodeAt(state.position);
|
|
25217
25443
|
while (ch !== 0) {
|
|
25218
25444
|
if (state.firstTabInLine !== -1) {
|
|
25219
25445
|
state.position = state.firstTabInLine;
|
|
25220
25446
|
throwError(state, "tab characters must not be used in indentation");
|
|
25221
25447
|
}
|
|
25222
|
-
if (ch !== 45)
|
|
25448
|
+
if (ch !== 45) {
|
|
25223
25449
|
break;
|
|
25224
|
-
|
|
25450
|
+
}
|
|
25451
|
+
const following = state.input.charCodeAt(state.position + 1);
|
|
25452
|
+
if (!isWsOrEol(following)) {
|
|
25225
25453
|
break;
|
|
25454
|
+
}
|
|
25226
25455
|
detected = true;
|
|
25227
25456
|
state.position++;
|
|
25228
25457
|
if (skipSeparationSpace(state, true, -1)) {
|
|
@@ -25237,10 +25466,11 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25237
25466
|
_result.push(state.result);
|
|
25238
25467
|
skipSeparationSpace(state, true, -1);
|
|
25239
25468
|
ch = state.input.charCodeAt(state.position);
|
|
25240
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
25469
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
25241
25470
|
throwError(state, "bad indentation of a sequence entry");
|
|
25242
|
-
else if (state.lineIndent < nodeIndent)
|
|
25471
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
25243
25472
|
break;
|
|
25473
|
+
}
|
|
25244
25474
|
}
|
|
25245
25475
|
if (detected) {
|
|
25246
25476
|
state.tag = _tag;
|
|
@@ -25259,7 +25489,7 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25259
25489
|
const _tag = state.tag;
|
|
25260
25490
|
const _anchor = state.anchor;
|
|
25261
25491
|
const _result = {};
|
|
25262
|
-
const overridableKeys = Object.create(null);
|
|
25492
|
+
const overridableKeys = /* @__PURE__ */ Object.create(null);
|
|
25263
25493
|
let keyTag = null;
|
|
25264
25494
|
let keyNode = null;
|
|
25265
25495
|
let valueNode = null;
|
|
@@ -25267,8 +25497,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25267
25497
|
let detected = false;
|
|
25268
25498
|
if (state.firstTabInLine !== -1)
|
|
25269
25499
|
return false;
|
|
25270
|
-
if (state.anchor !== null)
|
|
25500
|
+
if (state.anchor !== null) {
|
|
25271
25501
|
storeAnchor(state, state.anchor, _result);
|
|
25502
|
+
}
|
|
25272
25503
|
let ch = state.input.charCodeAt(state.position);
|
|
25273
25504
|
while (ch !== 0) {
|
|
25274
25505
|
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
@@ -25289,24 +25520,28 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25289
25520
|
} else if (atExplicitKey) {
|
|
25290
25521
|
atExplicitKey = false;
|
|
25291
25522
|
allowCompact = true;
|
|
25292
|
-
} else
|
|
25523
|
+
} else {
|
|
25293
25524
|
throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
25525
|
+
}
|
|
25294
25526
|
state.position += 1;
|
|
25295
25527
|
ch = following;
|
|
25296
25528
|
} else {
|
|
25297
25529
|
_keyLine = state.line;
|
|
25298
25530
|
_keyLineStart = state.lineStart;
|
|
25299
25531
|
_keyPos = state.position;
|
|
25300
|
-
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true))
|
|
25532
|
+
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
25301
25533
|
break;
|
|
25534
|
+
}
|
|
25302
25535
|
if (state.line === _line) {
|
|
25303
25536
|
ch = state.input.charCodeAt(state.position);
|
|
25304
|
-
while (isWhiteSpace(ch))
|
|
25537
|
+
while (isWhiteSpace(ch)) {
|
|
25305
25538
|
ch = state.input.charCodeAt(++state.position);
|
|
25539
|
+
}
|
|
25306
25540
|
if (ch === 58) {
|
|
25307
25541
|
ch = state.input.charCodeAt(++state.position);
|
|
25308
|
-
if (!isWsOrEol(ch))
|
|
25542
|
+
if (!isWsOrEol(ch)) {
|
|
25309
25543
|
throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
25544
|
+
}
|
|
25310
25545
|
if (atExplicitKey) {
|
|
25311
25546
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
25312
25547
|
keyTag = keyNode = valueNode = null;
|
|
@@ -25316,16 +25551,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25316
25551
|
allowCompact = false;
|
|
25317
25552
|
keyTag = state.tag;
|
|
25318
25553
|
keyNode = state.result;
|
|
25319
|
-
} else if (detected)
|
|
25554
|
+
} else if (detected) {
|
|
25320
25555
|
throwError(state, "can not read an implicit mapping pair; a colon is missed");
|
|
25321
|
-
else {
|
|
25556
|
+
} else {
|
|
25322
25557
|
state.tag = _tag;
|
|
25323
25558
|
state.anchor = _anchor;
|
|
25324
25559
|
return true;
|
|
25325
25560
|
}
|
|
25326
|
-
} else if (detected)
|
|
25561
|
+
} else if (detected) {
|
|
25327
25562
|
throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
25328
|
-
else {
|
|
25563
|
+
} else {
|
|
25329
25564
|
state.tag = _tag;
|
|
25330
25565
|
state.anchor = _anchor;
|
|
25331
25566
|
return true;
|
|
@@ -25337,11 +25572,13 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25337
25572
|
_keyLineStart = state.lineStart;
|
|
25338
25573
|
_keyPos = state.position;
|
|
25339
25574
|
}
|
|
25340
|
-
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact))
|
|
25341
|
-
if (atExplicitKey)
|
|
25575
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
25576
|
+
if (atExplicitKey) {
|
|
25342
25577
|
keyNode = state.result;
|
|
25343
|
-
else
|
|
25578
|
+
} else {
|
|
25344
25579
|
valueNode = state.result;
|
|
25580
|
+
}
|
|
25581
|
+
}
|
|
25345
25582
|
if (!atExplicitKey) {
|
|
25346
25583
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
25347
25584
|
keyTag = keyNode = valueNode = null;
|
|
@@ -25349,13 +25586,15 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25349
25586
|
skipSeparationSpace(state, true, -1);
|
|
25350
25587
|
ch = state.input.charCodeAt(state.position);
|
|
25351
25588
|
}
|
|
25352
|
-
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0)
|
|
25589
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch !== 0) {
|
|
25353
25590
|
throwError(state, "bad indentation of a mapping entry");
|
|
25354
|
-
else if (state.lineIndent < nodeIndent)
|
|
25591
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
25355
25592
|
break;
|
|
25593
|
+
}
|
|
25356
25594
|
}
|
|
25357
|
-
if (atExplicitKey)
|
|
25595
|
+
if (atExplicitKey) {
|
|
25358
25596
|
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
25597
|
+
}
|
|
25359
25598
|
if (detected) {
|
|
25360
25599
|
state.tag = _tag;
|
|
25361
25600
|
state.anchor = _anchor;
|
|
@@ -25372,8 +25611,9 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25372
25611
|
let ch = state.input.charCodeAt(state.position);
|
|
25373
25612
|
if (ch !== 33)
|
|
25374
25613
|
return false;
|
|
25375
|
-
if (state.tag !== null)
|
|
25614
|
+
if (state.tag !== null) {
|
|
25376
25615
|
throwError(state, "duplication of a tag property");
|
|
25616
|
+
}
|
|
25377
25617
|
ch = state.input.charCodeAt(++state.position);
|
|
25378
25618
|
if (ch === 60) {
|
|
25379
25619
|
isVerbatim = true;
|
|
@@ -25382,66 +25622,77 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25382
25622
|
isNamed = true;
|
|
25383
25623
|
tagHandle = "!!";
|
|
25384
25624
|
ch = state.input.charCodeAt(++state.position);
|
|
25385
|
-
} else
|
|
25625
|
+
} else {
|
|
25386
25626
|
tagHandle = "!";
|
|
25627
|
+
}
|
|
25387
25628
|
let _position = state.position;
|
|
25388
25629
|
if (isVerbatim) {
|
|
25389
|
-
do
|
|
25630
|
+
do {
|
|
25390
25631
|
ch = state.input.charCodeAt(++state.position);
|
|
25391
|
-
while (ch !== 0 && ch !== 62);
|
|
25632
|
+
} while (ch !== 0 && ch !== 62);
|
|
25392
25633
|
if (state.position < state.length) {
|
|
25393
25634
|
tagName = state.input.slice(_position, state.position);
|
|
25394
25635
|
ch = state.input.charCodeAt(++state.position);
|
|
25395
|
-
} else
|
|
25636
|
+
} else {
|
|
25396
25637
|
throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
25638
|
+
}
|
|
25397
25639
|
} else {
|
|
25398
25640
|
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
25399
|
-
if (ch === 33)
|
|
25641
|
+
if (ch === 33) {
|
|
25400
25642
|
if (!isNamed) {
|
|
25401
25643
|
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
25402
|
-
if (!PATTERN_TAG_HANDLE.test(tagHandle))
|
|
25644
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
25403
25645
|
throwError(state, "named tag handle cannot contain such characters");
|
|
25646
|
+
}
|
|
25404
25647
|
isNamed = true;
|
|
25405
25648
|
_position = state.position + 1;
|
|
25406
|
-
} else
|
|
25649
|
+
} else {
|
|
25407
25650
|
throwError(state, "tag suffix cannot contain exclamation marks");
|
|
25651
|
+
}
|
|
25652
|
+
}
|
|
25408
25653
|
ch = state.input.charCodeAt(++state.position);
|
|
25409
25654
|
}
|
|
25410
25655
|
tagName = state.input.slice(_position, state.position);
|
|
25411
|
-
if (PATTERN_FLOW_INDICATORS.test(tagName))
|
|
25656
|
+
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
25412
25657
|
throwError(state, "tag suffix cannot contain flow indicator characters");
|
|
25658
|
+
}
|
|
25413
25659
|
}
|
|
25414
|
-
if (tagName && !PATTERN_TAG_URI.test(tagName))
|
|
25660
|
+
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
25415
25661
|
throwError(state, "tag name cannot contain such characters: " + tagName);
|
|
25662
|
+
}
|
|
25416
25663
|
try {
|
|
25417
25664
|
tagName = decodeURIComponent(tagName);
|
|
25418
25665
|
} catch (err) {
|
|
25419
25666
|
throwError(state, "tag name is malformed: " + tagName);
|
|
25420
25667
|
}
|
|
25421
|
-
if (isVerbatim)
|
|
25668
|
+
if (isVerbatim) {
|
|
25422
25669
|
state.tag = tagName;
|
|
25423
|
-
else if (_hasOwnProperty.call(state.tagMap, tagHandle))
|
|
25670
|
+
} else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
|
|
25424
25671
|
state.tag = state.tagMap[tagHandle] + tagName;
|
|
25425
|
-
else if (tagHandle === "!")
|
|
25672
|
+
} else if (tagHandle === "!") {
|
|
25426
25673
|
state.tag = "!" + tagName;
|
|
25427
|
-
else if (tagHandle === "!!")
|
|
25674
|
+
} else if (tagHandle === "!!") {
|
|
25428
25675
|
state.tag = "tag:yaml.org,2002:" + tagName;
|
|
25429
|
-
else
|
|
25676
|
+
} else {
|
|
25430
25677
|
throwError(state, 'undeclared tag handle "' + tagHandle + '"');
|
|
25678
|
+
}
|
|
25431
25679
|
return true;
|
|
25432
25680
|
}
|
|
25433
25681
|
function readAnchorProperty(state) {
|
|
25434
25682
|
let ch = state.input.charCodeAt(state.position);
|
|
25435
25683
|
if (ch !== 38)
|
|
25436
25684
|
return false;
|
|
25437
|
-
if (state.anchor !== null)
|
|
25685
|
+
if (state.anchor !== null) {
|
|
25438
25686
|
throwError(state, "duplication of an anchor property");
|
|
25687
|
+
}
|
|
25439
25688
|
ch = state.input.charCodeAt(++state.position);
|
|
25440
25689
|
const _position = state.position;
|
|
25441
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
25690
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
25442
25691
|
ch = state.input.charCodeAt(++state.position);
|
|
25443
|
-
|
|
25692
|
+
}
|
|
25693
|
+
if (state.position === _position) {
|
|
25444
25694
|
throwError(state, "name of an anchor node must contain at least one character");
|
|
25695
|
+
}
|
|
25445
25696
|
state.anchor = state.input.slice(_position, state.position);
|
|
25446
25697
|
return true;
|
|
25447
25698
|
}
|
|
@@ -25451,13 +25702,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25451
25702
|
return false;
|
|
25452
25703
|
ch = state.input.charCodeAt(++state.position);
|
|
25453
25704
|
const _position = state.position;
|
|
25454
|
-
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch))
|
|
25705
|
+
while (ch !== 0 && !isWsOrEol(ch) && !isFlowIndicator(ch)) {
|
|
25455
25706
|
ch = state.input.charCodeAt(++state.position);
|
|
25456
|
-
|
|
25707
|
+
}
|
|
25708
|
+
if (state.position === _position) {
|
|
25457
25709
|
throwError(state, "name of an alias node must contain at least one character");
|
|
25710
|
+
}
|
|
25458
25711
|
const alias = state.input.slice(_position, state.position);
|
|
25459
|
-
if (!_hasOwnProperty.call(state.anchorMap, alias))
|
|
25712
|
+
if (!_hasOwnProperty.call(state.anchorMap, alias)) {
|
|
25460
25713
|
throwError(state, 'unidentified alias "' + alias + '"');
|
|
25714
|
+
}
|
|
25461
25715
|
state.result = state.anchorMap[alias];
|
|
25462
25716
|
skipSeparationSpace(state, true, -1);
|
|
25463
25717
|
return true;
|
|
@@ -25485,14 +25739,16 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25485
25739
|
let atNewLine = false;
|
|
25486
25740
|
let hasContent = false;
|
|
25487
25741
|
let propertyStart = null;
|
|
25488
|
-
let
|
|
25742
|
+
let type2;
|
|
25489
25743
|
let flowIndent;
|
|
25490
25744
|
let blockIndent;
|
|
25491
|
-
if (state.depth >= state.maxDepth)
|
|
25745
|
+
if (state.depth >= state.maxDepth) {
|
|
25492
25746
|
throwError(state, "nesting exceeded maxDepth (" + state.maxDepth + ")");
|
|
25747
|
+
}
|
|
25493
25748
|
state.depth += 1;
|
|
25494
|
-
if (state.listener !== null)
|
|
25749
|
+
if (state.listener !== null) {
|
|
25495
25750
|
state.listener("open", state);
|
|
25751
|
+
}
|
|
25496
25752
|
state.tag = null;
|
|
25497
25753
|
state.anchor = null;
|
|
25498
25754
|
state.kind = null;
|
|
@@ -25501,110 +25757,131 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25501
25757
|
if (allowToSeek) {
|
|
25502
25758
|
if (skipSeparationSpace(state, true, -1)) {
|
|
25503
25759
|
atNewLine = true;
|
|
25504
|
-
if (state.lineIndent > parentIndent)
|
|
25760
|
+
if (state.lineIndent > parentIndent) {
|
|
25505
25761
|
indentStatus = 1;
|
|
25506
|
-
else if (state.lineIndent === parentIndent)
|
|
25762
|
+
} else if (state.lineIndent === parentIndent) {
|
|
25507
25763
|
indentStatus = 0;
|
|
25508
|
-
else if (state.lineIndent < parentIndent)
|
|
25764
|
+
} else if (state.lineIndent < parentIndent) {
|
|
25509
25765
|
indentStatus = -1;
|
|
25766
|
+
}
|
|
25510
25767
|
}
|
|
25511
25768
|
}
|
|
25512
|
-
if (indentStatus === 1)
|
|
25769
|
+
if (indentStatus === 1) {
|
|
25513
25770
|
while (true) {
|
|
25514
25771
|
const ch = state.input.charCodeAt(state.position);
|
|
25515
25772
|
const propertyState = snapshotState(state);
|
|
25516
|
-
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null))
|
|
25773
|
+
if (atNewLine && (ch === 33 && state.tag !== null || ch === 38 && state.anchor !== null)) {
|
|
25517
25774
|
break;
|
|
25518
|
-
|
|
25775
|
+
}
|
|
25776
|
+
if (!readTagProperty(state) && !readAnchorProperty(state)) {
|
|
25519
25777
|
break;
|
|
25520
|
-
|
|
25778
|
+
}
|
|
25779
|
+
if (propertyStart === null) {
|
|
25521
25780
|
propertyStart = propertyState;
|
|
25781
|
+
}
|
|
25522
25782
|
if (skipSeparationSpace(state, true, -1)) {
|
|
25523
25783
|
atNewLine = true;
|
|
25524
25784
|
allowBlockCollections = allowBlockStyles;
|
|
25525
|
-
if (state.lineIndent > parentIndent)
|
|
25785
|
+
if (state.lineIndent > parentIndent) {
|
|
25526
25786
|
indentStatus = 1;
|
|
25527
|
-
else if (state.lineIndent === parentIndent)
|
|
25787
|
+
} else if (state.lineIndent === parentIndent) {
|
|
25528
25788
|
indentStatus = 0;
|
|
25529
|
-
else if (state.lineIndent < parentIndent)
|
|
25789
|
+
} else if (state.lineIndent < parentIndent) {
|
|
25530
25790
|
indentStatus = -1;
|
|
25531
|
-
|
|
25791
|
+
}
|
|
25792
|
+
} else {
|
|
25532
25793
|
allowBlockCollections = false;
|
|
25794
|
+
}
|
|
25533
25795
|
}
|
|
25534
|
-
|
|
25796
|
+
}
|
|
25797
|
+
if (allowBlockCollections) {
|
|
25535
25798
|
allowBlockCollections = atNewLine || allowCompact;
|
|
25799
|
+
}
|
|
25536
25800
|
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
25537
|
-
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext)
|
|
25801
|
+
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
|
|
25538
25802
|
flowIndent = parentIndent;
|
|
25539
|
-
else
|
|
25803
|
+
} else {
|
|
25540
25804
|
flowIndent = parentIndent + 1;
|
|
25805
|
+
}
|
|
25541
25806
|
blockIndent = state.position - state.lineStart;
|
|
25542
|
-
if (indentStatus === 1)
|
|
25543
|
-
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent))
|
|
25807
|
+
if (indentStatus === 1) {
|
|
25808
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
|
|
25544
25809
|
hasContent = true;
|
|
25545
|
-
else {
|
|
25810
|
+
} else {
|
|
25546
25811
|
const ch = state.input.charCodeAt(state.position);
|
|
25547
|
-
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent))
|
|
25812
|
+
if (propertyStart !== null && allowBlockStyles && !allowBlockCollections && ch !== 124 && ch !== 62 && tryReadBlockMappingFromProperty(state, propertyStart, propertyStart.position - propertyStart.lineStart, flowIndent)) {
|
|
25548
25813
|
hasContent = true;
|
|
25549
|
-
else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent))
|
|
25814
|
+
} else if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
|
|
25550
25815
|
hasContent = true;
|
|
25551
|
-
else if (readAlias(state)) {
|
|
25816
|
+
} else if (readAlias(state)) {
|
|
25552
25817
|
hasContent = true;
|
|
25553
|
-
if (state.tag !== null || state.anchor !== null)
|
|
25818
|
+
if (state.tag !== null || state.anchor !== null) {
|
|
25554
25819
|
throwError(state, "alias node should not have any properties");
|
|
25820
|
+
}
|
|
25555
25821
|
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
25556
25822
|
hasContent = true;
|
|
25557
|
-
if (state.tag === null)
|
|
25823
|
+
if (state.tag === null) {
|
|
25558
25824
|
state.tag = "?";
|
|
25825
|
+
}
|
|
25559
25826
|
}
|
|
25560
|
-
if (state.anchor !== null)
|
|
25827
|
+
if (state.anchor !== null) {
|
|
25561
25828
|
storeAnchor(state, state.anchor, state.result);
|
|
25829
|
+
}
|
|
25562
25830
|
}
|
|
25563
|
-
else if (indentStatus === 0)
|
|
25831
|
+
} else if (indentStatus === 0) {
|
|
25564
25832
|
hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
25833
|
+
}
|
|
25565
25834
|
}
|
|
25566
25835
|
if (state.tag === null) {
|
|
25567
|
-
if (state.anchor !== null)
|
|
25836
|
+
if (state.anchor !== null) {
|
|
25568
25837
|
storeAnchor(state, state.anchor, state.result);
|
|
25838
|
+
}
|
|
25569
25839
|
} else if (state.tag === "?") {
|
|
25570
|
-
if (state.result !== null && state.kind !== "scalar")
|
|
25840
|
+
if (state.result !== null && state.kind !== "scalar") {
|
|
25571
25841
|
throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
|
|
25842
|
+
}
|
|
25572
25843
|
for (let typeIndex = 0, typeQuantity = state.implicitTypes.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
25573
|
-
|
|
25574
|
-
if (
|
|
25575
|
-
state.result =
|
|
25576
|
-
state.tag =
|
|
25577
|
-
if (state.anchor !== null)
|
|
25844
|
+
type2 = state.implicitTypes[typeIndex];
|
|
25845
|
+
if (type2.resolve(state.result)) {
|
|
25846
|
+
state.result = type2.construct(state.result);
|
|
25847
|
+
state.tag = type2.tag;
|
|
25848
|
+
if (state.anchor !== null) {
|
|
25578
25849
|
storeAnchor(state, state.anchor, state.result);
|
|
25850
|
+
}
|
|
25579
25851
|
break;
|
|
25580
25852
|
}
|
|
25581
25853
|
}
|
|
25582
25854
|
} else if (state.tag !== "!") {
|
|
25583
|
-
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag))
|
|
25584
|
-
|
|
25585
|
-
else {
|
|
25586
|
-
|
|
25855
|
+
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
|
|
25856
|
+
type2 = state.typeMap[state.kind || "fallback"][state.tag];
|
|
25857
|
+
} else {
|
|
25858
|
+
type2 = null;
|
|
25587
25859
|
const typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
25588
|
-
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1)
|
|
25860
|
+
for (let typeIndex = 0, typeQuantity = typeList.length;typeIndex < typeQuantity; typeIndex += 1) {
|
|
25589
25861
|
if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
25590
|
-
|
|
25862
|
+
type2 = typeList[typeIndex];
|
|
25591
25863
|
break;
|
|
25592
25864
|
}
|
|
25865
|
+
}
|
|
25593
25866
|
}
|
|
25594
|
-
if (!
|
|
25867
|
+
if (!type2) {
|
|
25595
25868
|
throwError(state, "unknown tag !<" + state.tag + ">");
|
|
25596
|
-
|
|
25597
|
-
|
|
25598
|
-
|
|
25869
|
+
}
|
|
25870
|
+
if (state.result !== null && type2.kind !== state.kind) {
|
|
25871
|
+
throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type2.kind + '", not "' + state.kind + '"');
|
|
25872
|
+
}
|
|
25873
|
+
if (!type2.resolve(state.result, state.tag)) {
|
|
25599
25874
|
throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
25600
|
-
else {
|
|
25601
|
-
state.result =
|
|
25602
|
-
if (state.anchor !== null)
|
|
25875
|
+
} else {
|
|
25876
|
+
state.result = type2.construct(state.result, state.tag);
|
|
25877
|
+
if (state.anchor !== null) {
|
|
25603
25878
|
storeAnchor(state, state.anchor, state.result);
|
|
25879
|
+
}
|
|
25604
25880
|
}
|
|
25605
25881
|
}
|
|
25606
|
-
if (state.listener !== null)
|
|
25882
|
+
if (state.listener !== null) {
|
|
25607
25883
|
state.listener("close", state);
|
|
25884
|
+
}
|
|
25608
25885
|
state.depth -= 1;
|
|
25609
25886
|
return state.tag !== null || state.anchor !== null || hasContent;
|
|
25610
25887
|
}
|
|
@@ -25614,55 +25891,63 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25614
25891
|
let ch;
|
|
25615
25892
|
state.version = null;
|
|
25616
25893
|
state.checkLineBreaks = state.legacy;
|
|
25617
|
-
state.tagMap = Object.create(null);
|
|
25618
|
-
state.anchorMap = Object.create(null);
|
|
25894
|
+
state.tagMap = /* @__PURE__ */ Object.create(null);
|
|
25895
|
+
state.anchorMap = /* @__PURE__ */ Object.create(null);
|
|
25619
25896
|
while ((ch = state.input.charCodeAt(state.position)) !== 0) {
|
|
25620
25897
|
skipSeparationSpace(state, true, -1);
|
|
25621
25898
|
ch = state.input.charCodeAt(state.position);
|
|
25622
|
-
if (state.lineIndent > 0 || ch !== 37)
|
|
25899
|
+
if (state.lineIndent > 0 || ch !== 37) {
|
|
25623
25900
|
break;
|
|
25901
|
+
}
|
|
25624
25902
|
hasDirectives = true;
|
|
25625
25903
|
ch = state.input.charCodeAt(++state.position);
|
|
25626
25904
|
let _position = state.position;
|
|
25627
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
25905
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
25628
25906
|
ch = state.input.charCodeAt(++state.position);
|
|
25907
|
+
}
|
|
25629
25908
|
const directiveName = state.input.slice(_position, state.position);
|
|
25630
25909
|
const directiveArgs = [];
|
|
25631
|
-
if (directiveName.length < 1)
|
|
25910
|
+
if (directiveName.length < 1) {
|
|
25632
25911
|
throwError(state, "directive name must not be less than one character in length");
|
|
25912
|
+
}
|
|
25633
25913
|
while (ch !== 0) {
|
|
25634
|
-
while (isWhiteSpace(ch))
|
|
25914
|
+
while (isWhiteSpace(ch)) {
|
|
25635
25915
|
ch = state.input.charCodeAt(++state.position);
|
|
25916
|
+
}
|
|
25636
25917
|
if (ch === 35) {
|
|
25637
|
-
do
|
|
25918
|
+
do {
|
|
25638
25919
|
ch = state.input.charCodeAt(++state.position);
|
|
25639
|
-
while (ch !== 0 && !isEol(ch));
|
|
25920
|
+
} while (ch !== 0 && !isEol(ch));
|
|
25640
25921
|
break;
|
|
25641
25922
|
}
|
|
25642
25923
|
if (isEol(ch))
|
|
25643
25924
|
break;
|
|
25644
25925
|
_position = state.position;
|
|
25645
|
-
while (ch !== 0 && !isWsOrEol(ch))
|
|
25926
|
+
while (ch !== 0 && !isWsOrEol(ch)) {
|
|
25646
25927
|
ch = state.input.charCodeAt(++state.position);
|
|
25928
|
+
}
|
|
25647
25929
|
directiveArgs.push(state.input.slice(_position, state.position));
|
|
25648
25930
|
}
|
|
25649
25931
|
if (ch !== 0)
|
|
25650
25932
|
readLineBreak(state);
|
|
25651
|
-
if (_hasOwnProperty.call(directiveHandlers, directiveName))
|
|
25933
|
+
if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
|
25652
25934
|
directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
|
25653
|
-
else
|
|
25935
|
+
} else {
|
|
25654
25936
|
throwWarning(state, 'unknown document directive "' + directiveName + '"');
|
|
25937
|
+
}
|
|
25655
25938
|
}
|
|
25656
25939
|
skipSeparationSpace(state, true, -1);
|
|
25657
25940
|
if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
|
|
25658
25941
|
state.position += 3;
|
|
25659
25942
|
skipSeparationSpace(state, true, -1);
|
|
25660
|
-
} else if (hasDirectives)
|
|
25943
|
+
} else if (hasDirectives) {
|
|
25661
25944
|
throwError(state, "directives end mark is expected");
|
|
25945
|
+
}
|
|
25662
25946
|
composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
25663
25947
|
skipSeparationSpace(state, true, -1);
|
|
25664
|
-
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position)))
|
|
25948
|
+
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
|
25665
25949
|
throwWarning(state, "non-ASCII line breaks are interpreted as content");
|
|
25950
|
+
}
|
|
25666
25951
|
state.documents.push(state.result);
|
|
25667
25952
|
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
25668
25953
|
if (state.input.charCodeAt(state.position) === 46) {
|
|
@@ -25671,18 +25956,21 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25671
25956
|
}
|
|
25672
25957
|
return;
|
|
25673
25958
|
}
|
|
25674
|
-
if (state.position < state.length - 1)
|
|
25959
|
+
if (state.position < state.length - 1) {
|
|
25675
25960
|
throwError(state, "end of the stream or a document separator is expected");
|
|
25961
|
+
}
|
|
25676
25962
|
}
|
|
25677
25963
|
function loadDocuments(input, options) {
|
|
25678
25964
|
input = String(input);
|
|
25679
25965
|
options = options || {};
|
|
25680
25966
|
if (input.length !== 0) {
|
|
25681
|
-
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13)
|
|
25967
|
+
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
|
|
25682
25968
|
input += `
|
|
25683
25969
|
`;
|
|
25684
|
-
|
|
25970
|
+
}
|
|
25971
|
+
if (input.charCodeAt(0) === 65279) {
|
|
25685
25972
|
input = input.slice(1);
|
|
25973
|
+
}
|
|
25686
25974
|
}
|
|
25687
25975
|
const state = new State(input, options);
|
|
25688
25976
|
const nullpos = input.indexOf("\x00");
|
|
@@ -25695,64 +25983,74 @@ var require_loader = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25695
25983
|
state.lineIndent += 1;
|
|
25696
25984
|
state.position += 1;
|
|
25697
25985
|
}
|
|
25698
|
-
while (state.position < state.length - 1)
|
|
25986
|
+
while (state.position < state.length - 1) {
|
|
25699
25987
|
readDocument(state);
|
|
25988
|
+
}
|
|
25700
25989
|
return state.documents;
|
|
25701
25990
|
}
|
|
25702
|
-
function
|
|
25991
|
+
function loadAll2(input, iterator, options) {
|
|
25703
25992
|
if (iterator !== null && typeof iterator === "object" && typeof options === "undefined") {
|
|
25704
25993
|
options = iterator;
|
|
25705
25994
|
iterator = null;
|
|
25706
25995
|
}
|
|
25707
25996
|
const documents = loadDocuments(input, options);
|
|
25708
|
-
if (typeof iterator !== "function")
|
|
25997
|
+
if (typeof iterator !== "function") {
|
|
25709
25998
|
return documents;
|
|
25710
|
-
|
|
25999
|
+
}
|
|
26000
|
+
for (let index = 0, length = documents.length;index < length; index += 1) {
|
|
25711
26001
|
iterator(documents[index]);
|
|
26002
|
+
}
|
|
25712
26003
|
}
|
|
25713
|
-
function
|
|
26004
|
+
function load2(input, options) {
|
|
25714
26005
|
const documents = loadDocuments(input, options);
|
|
25715
|
-
if (documents.length === 0)
|
|
26006
|
+
if (documents.length === 0) {
|
|
25716
26007
|
return;
|
|
25717
|
-
else if (documents.length === 1)
|
|
26008
|
+
} else if (documents.length === 1) {
|
|
25718
26009
|
return documents[0];
|
|
25719
|
-
|
|
25720
|
-
|
|
25721
|
-
|
|
25722
|
-
|
|
25723
|
-
|
|
25724
|
-
|
|
25725
|
-
|
|
25726
|
-
|
|
25727
|
-
|
|
25728
|
-
|
|
25729
|
-
|
|
25730
|
-
|
|
25731
|
-
|
|
25732
|
-
|
|
25733
|
-
|
|
25734
|
-
|
|
25735
|
-
|
|
25736
|
-
|
|
25737
|
-
|
|
25738
|
-
|
|
25739
|
-
|
|
25740
|
-
|
|
25741
|
-
|
|
25742
|
-
|
|
25743
|
-
|
|
25744
|
-
|
|
25745
|
-
|
|
25746
|
-
|
|
25747
|
-
|
|
25748
|
-
|
|
25749
|
-
|
|
25750
|
-
|
|
25751
|
-
|
|
25752
|
-
|
|
25753
|
-
|
|
25754
|
-
|
|
25755
|
-
|
|
26010
|
+
}
|
|
26011
|
+
throw new YAMLException2("expected a single document in the stream, but found more");
|
|
26012
|
+
}
|
|
26013
|
+
loader.loadAll = loadAll2;
|
|
26014
|
+
loader.load = load2;
|
|
26015
|
+
return loader;
|
|
26016
|
+
}
|
|
26017
|
+
var dumper = {};
|
|
26018
|
+
var hasRequiredDumper;
|
|
26019
|
+
function requireDumper() {
|
|
26020
|
+
if (hasRequiredDumper)
|
|
26021
|
+
return dumper;
|
|
26022
|
+
hasRequiredDumper = 1;
|
|
26023
|
+
const common2 = requireCommon();
|
|
26024
|
+
const YAMLException2 = requireException();
|
|
26025
|
+
const DEFAULT_SCHEMA2 = require_default();
|
|
26026
|
+
const _toString = Object.prototype.toString;
|
|
26027
|
+
const _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
26028
|
+
const CHAR_BOM = 65279;
|
|
26029
|
+
const CHAR_TAB = 9;
|
|
26030
|
+
const CHAR_LINE_FEED = 10;
|
|
26031
|
+
const CHAR_CARRIAGE_RETURN = 13;
|
|
26032
|
+
const CHAR_SPACE = 32;
|
|
26033
|
+
const CHAR_EXCLAMATION = 33;
|
|
26034
|
+
const CHAR_DOUBLE_QUOTE = 34;
|
|
26035
|
+
const CHAR_SHARP = 35;
|
|
26036
|
+
const CHAR_PERCENT = 37;
|
|
26037
|
+
const CHAR_AMPERSAND = 38;
|
|
26038
|
+
const CHAR_SINGLE_QUOTE = 39;
|
|
26039
|
+
const CHAR_ASTERISK = 42;
|
|
26040
|
+
const CHAR_COMMA = 44;
|
|
26041
|
+
const CHAR_MINUS = 45;
|
|
26042
|
+
const CHAR_COLON = 58;
|
|
26043
|
+
const CHAR_EQUALS = 61;
|
|
26044
|
+
const CHAR_GREATER_THAN = 62;
|
|
26045
|
+
const CHAR_QUESTION = 63;
|
|
26046
|
+
const CHAR_COMMERCIAL_AT = 64;
|
|
26047
|
+
const CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
26048
|
+
const CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
26049
|
+
const CHAR_GRAVE_ACCENT = 96;
|
|
26050
|
+
const CHAR_LEFT_CURLY_BRACKET = 123;
|
|
26051
|
+
const CHAR_VERTICAL_LINE = 124;
|
|
26052
|
+
const CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
26053
|
+
const ESCAPE_SEQUENCES = {};
|
|
25756
26054
|
ESCAPE_SEQUENCES[0] = "\\0";
|
|
25757
26055
|
ESCAPE_SEQUENCES[7] = "\\a";
|
|
25758
26056
|
ESCAPE_SEQUENCES[8] = "\\b";
|
|
@@ -25768,7 +26066,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25768
26066
|
ESCAPE_SEQUENCES[160] = "\\_";
|
|
25769
26067
|
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
25770
26068
|
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
25771
|
-
|
|
26069
|
+
const DEPRECATED_BOOLEANS_SYNTAX = [
|
|
25772
26070
|
"y",
|
|
25773
26071
|
"Y",
|
|
25774
26072
|
"yes",
|
|
@@ -25786,20 +26084,22 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25786
26084
|
"Off",
|
|
25787
26085
|
"OFF"
|
|
25788
26086
|
];
|
|
25789
|
-
|
|
25790
|
-
function compileStyleMap(
|
|
25791
|
-
if (
|
|
26087
|
+
const DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
26088
|
+
function compileStyleMap(schema2, map2) {
|
|
26089
|
+
if (map2 === null)
|
|
25792
26090
|
return {};
|
|
25793
26091
|
const result = {};
|
|
25794
|
-
const keys = Object.keys(
|
|
26092
|
+
const keys = Object.keys(map2);
|
|
25795
26093
|
for (let index = 0, length = keys.length;index < length; index += 1) {
|
|
25796
26094
|
let tag = keys[index];
|
|
25797
|
-
let style = String(
|
|
25798
|
-
if (tag.slice(0, 2) === "!!")
|
|
26095
|
+
let style = String(map2[tag]);
|
|
26096
|
+
if (tag.slice(0, 2) === "!!") {
|
|
25799
26097
|
tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
25800
|
-
|
|
25801
|
-
|
|
25802
|
-
|
|
26098
|
+
}
|
|
26099
|
+
const type2 = schema2.compiledTypeMap["fallback"][tag];
|
|
26100
|
+
if (type2 && _hasOwnProperty.call(type2.styleAliases, style)) {
|
|
26101
|
+
style = type2.styleAliases[style];
|
|
26102
|
+
}
|
|
25803
26103
|
result[tag] = style;
|
|
25804
26104
|
}
|
|
25805
26105
|
return result;
|
|
@@ -25817,18 +26117,19 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25817
26117
|
} else if (character <= 4294967295) {
|
|
25818
26118
|
handle = "U";
|
|
25819
26119
|
length = 8;
|
|
25820
|
-
} else
|
|
25821
|
-
throw new
|
|
25822
|
-
|
|
26120
|
+
} else {
|
|
26121
|
+
throw new YAMLException2("code point within a string may not be greater than 0xFFFFFFFF");
|
|
26122
|
+
}
|
|
26123
|
+
return "\\" + handle + common2.repeat("0", length - string.length) + string;
|
|
25823
26124
|
}
|
|
25824
|
-
|
|
25825
|
-
|
|
26125
|
+
const QUOTING_TYPE_SINGLE = 1;
|
|
26126
|
+
const QUOTING_TYPE_DOUBLE = 2;
|
|
25826
26127
|
function State(options) {
|
|
25827
|
-
this.schema = options["schema"] ||
|
|
26128
|
+
this.schema = options["schema"] || DEFAULT_SCHEMA2;
|
|
25828
26129
|
this.indent = Math.max(1, options["indent"] || 2);
|
|
25829
26130
|
this.noArrayIndent = options["noArrayIndent"] || false;
|
|
25830
26131
|
this.skipInvalid = options["skipInvalid"] || false;
|
|
25831
|
-
this.flowLevel =
|
|
26132
|
+
this.flowLevel = common2.isNothing(options["flowLevel"]) ? -1 : options["flowLevel"];
|
|
25832
26133
|
this.styleMap = compileStyleMap(this.schema, options["styles"] || null);
|
|
25833
26134
|
this.sortKeys = options["sortKeys"] || false;
|
|
25834
26135
|
this.lineWidth = options["lineWidth"] || 80;
|
|
@@ -25846,7 +26147,7 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25846
26147
|
this.usedDuplicates = null;
|
|
25847
26148
|
}
|
|
25848
26149
|
function indentString(string, spaces) {
|
|
25849
|
-
const ind =
|
|
26150
|
+
const ind = common2.repeat(" ", spaces);
|
|
25850
26151
|
let position = 0;
|
|
25851
26152
|
let result = "";
|
|
25852
26153
|
const length = string.length;
|
|
@@ -25870,12 +26171,15 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25870
26171
|
}
|
|
25871
26172
|
function generateNextLine(state, level) {
|
|
25872
26173
|
return `
|
|
25873
|
-
` +
|
|
26174
|
+
` + common2.repeat(" ", state.indent * level);
|
|
25874
26175
|
}
|
|
25875
|
-
function testImplicitResolving(state,
|
|
25876
|
-
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1)
|
|
25877
|
-
|
|
26176
|
+
function testImplicitResolving(state, str2) {
|
|
26177
|
+
for (let index = 0, length = state.implicitTypes.length;index < length; index += 1) {
|
|
26178
|
+
const type2 = state.implicitTypes[index];
|
|
26179
|
+
if (type2.resolve(str2)) {
|
|
25878
26180
|
return true;
|
|
26181
|
+
}
|
|
26182
|
+
}
|
|
25879
26183
|
return false;
|
|
25880
26184
|
}
|
|
25881
26185
|
function isWhitespace(c) {
|
|
@@ -25903,19 +26207,21 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25903
26207
|
let second;
|
|
25904
26208
|
if (first >= 55296 && first <= 56319 && pos + 1 < string.length) {
|
|
25905
26209
|
second = string.charCodeAt(pos + 1);
|
|
25906
|
-
if (second >= 56320 && second <= 57343)
|
|
26210
|
+
if (second >= 56320 && second <= 57343) {
|
|
25907
26211
|
return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
26212
|
+
}
|
|
25908
26213
|
}
|
|
25909
26214
|
return first;
|
|
25910
26215
|
}
|
|
25911
26216
|
function needIndentIndicator(string) {
|
|
25912
|
-
|
|
25913
|
-
|
|
25914
|
-
|
|
25915
|
-
|
|
25916
|
-
|
|
25917
|
-
|
|
25918
|
-
|
|
26217
|
+
const leadingSpaceRe = /^\n* /;
|
|
26218
|
+
return leadingSpaceRe.test(string);
|
|
26219
|
+
}
|
|
26220
|
+
const STYLE_PLAIN = 1;
|
|
26221
|
+
const STYLE_SINGLE = 2;
|
|
26222
|
+
const STYLE_LITERAL = 3;
|
|
26223
|
+
const STYLE_FOLDED = 4;
|
|
26224
|
+
const STYLE_DOUBLE = 5;
|
|
25919
26225
|
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
25920
26226
|
let i;
|
|
25921
26227
|
let char = 0;
|
|
@@ -25925,15 +26231,16 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25925
26231
|
const shouldTrackWidth = lineWidth !== -1;
|
|
25926
26232
|
let previousLineBreak = -1;
|
|
25927
26233
|
let plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
25928
|
-
if (singleLineOnly || forceQuotes)
|
|
26234
|
+
if (singleLineOnly || forceQuotes) {
|
|
25929
26235
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
25930
26236
|
char = codePointAt(string, i);
|
|
25931
|
-
if (!isPrintable(char))
|
|
26237
|
+
if (!isPrintable(char)) {
|
|
25932
26238
|
return STYLE_DOUBLE;
|
|
26239
|
+
}
|
|
25933
26240
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
25934
26241
|
prevChar = char;
|
|
25935
26242
|
}
|
|
25936
|
-
else {
|
|
26243
|
+
} else {
|
|
25937
26244
|
for (i = 0;i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
25938
26245
|
char = codePointAt(string, i);
|
|
25939
26246
|
if (char === CHAR_LINE_FEED) {
|
|
@@ -25942,31 +26249,37 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25942
26249
|
hasFoldableLine = hasFoldableLine || i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
25943
26250
|
previousLineBreak = i;
|
|
25944
26251
|
}
|
|
25945
|
-
} else if (!isPrintable(char))
|
|
26252
|
+
} else if (!isPrintable(char)) {
|
|
25946
26253
|
return STYLE_DOUBLE;
|
|
26254
|
+
}
|
|
25947
26255
|
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
25948
26256
|
prevChar = char;
|
|
25949
26257
|
}
|
|
25950
|
-
hasFoldableLine = hasFoldableLine || shouldTrackWidth && i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
26258
|
+
hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
|
|
25951
26259
|
}
|
|
25952
26260
|
if (!hasLineBreak && !hasFoldableLine) {
|
|
25953
|
-
if (plain && !forceQuotes && !testAmbiguousType(string))
|
|
26261
|
+
if (plain && !forceQuotes && !testAmbiguousType(string)) {
|
|
25954
26262
|
return STYLE_PLAIN;
|
|
26263
|
+
}
|
|
25955
26264
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
25956
26265
|
}
|
|
25957
|
-
if (indentPerLevel > 9 && needIndentIndicator(string))
|
|
26266
|
+
if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
|
25958
26267
|
return STYLE_DOUBLE;
|
|
25959
|
-
|
|
26268
|
+
}
|
|
26269
|
+
if (!forceQuotes) {
|
|
25960
26270
|
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
|
26271
|
+
}
|
|
25961
26272
|
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
25962
26273
|
}
|
|
25963
26274
|
function writeScalar(state, string, level, iskey, inblock) {
|
|
25964
26275
|
state.dump = function() {
|
|
25965
|
-
if (string.length === 0)
|
|
26276
|
+
if (string.length === 0) {
|
|
25966
26277
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
|
|
26278
|
+
}
|
|
25967
26279
|
if (!state.noCompatMode) {
|
|
25968
|
-
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string))
|
|
26280
|
+
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
|
|
25969
26281
|
return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
|
|
26282
|
+
}
|
|
25970
26283
|
}
|
|
25971
26284
|
const indent = state.indent * Math.max(1, level);
|
|
25972
26285
|
const lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent);
|
|
@@ -25984,9 +26297,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25984
26297
|
case STYLE_FOLDED:
|
|
25985
26298
|
return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent));
|
|
25986
26299
|
case STYLE_DOUBLE:
|
|
25987
|
-
return '"' + escapeString(string
|
|
26300
|
+
return '"' + escapeString(string) + '"';
|
|
25988
26301
|
default:
|
|
25989
|
-
throw new
|
|
26302
|
+
throw new YAMLException2("impossible error: invalid scalar style");
|
|
25990
26303
|
}
|
|
25991
26304
|
}();
|
|
25992
26305
|
}
|
|
@@ -25994,9 +26307,11 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
25994
26307
|
const indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
25995
26308
|
const clip = string[string.length - 1] === `
|
|
25996
26309
|
`;
|
|
25997
|
-
|
|
26310
|
+
const keep = clip && (string[string.length - 2] === `
|
|
25998
26311
|
` || string === `
|
|
25999
|
-
`)
|
|
26312
|
+
`);
|
|
26313
|
+
const chomp = keep ? "+" : clip ? "" : "-";
|
|
26314
|
+
return indentIndicator + chomp + `
|
|
26000
26315
|
`;
|
|
26001
26316
|
}
|
|
26002
26317
|
function dropEndingNewline(string) {
|
|
@@ -26048,11 +26363,12 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26048
26363
|
}
|
|
26049
26364
|
result += `
|
|
26050
26365
|
`;
|
|
26051
|
-
if (line.length - start > width && curr > start)
|
|
26366
|
+
if (line.length - start > width && curr > start) {
|
|
26052
26367
|
result += line.slice(start, curr) + `
|
|
26053
26368
|
` + line.slice(curr + 1);
|
|
26054
|
-
else
|
|
26369
|
+
} else {
|
|
26055
26370
|
result += line.slice(start);
|
|
26371
|
+
}
|
|
26056
26372
|
return result.slice(1);
|
|
26057
26373
|
}
|
|
26058
26374
|
function escapeString(string) {
|
|
@@ -26065,8 +26381,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26065
26381
|
result += string[i];
|
|
26066
26382
|
if (char >= 65536)
|
|
26067
26383
|
result += string[i + 1];
|
|
26068
|
-
} else
|
|
26384
|
+
} else {
|
|
26069
26385
|
result += escapeSeq || encodeHex(char);
|
|
26386
|
+
}
|
|
26070
26387
|
}
|
|
26071
26388
|
return result;
|
|
26072
26389
|
}
|
|
@@ -26075,8 +26392,9 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26075
26392
|
const _tag = state.tag;
|
|
26076
26393
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
26077
26394
|
let value = object[index];
|
|
26078
|
-
if (state.replacer)
|
|
26395
|
+
if (state.replacer) {
|
|
26079
26396
|
value = state.replacer.call(object, String(index), value);
|
|
26397
|
+
}
|
|
26080
26398
|
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
26081
26399
|
if (_result !== "")
|
|
26082
26400
|
_result += "," + (!state.condenseFlow ? " " : "");
|
|
@@ -26091,15 +26409,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26091
26409
|
const _tag = state.tag;
|
|
26092
26410
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
26093
26411
|
let value = object[index];
|
|
26094
|
-
if (state.replacer)
|
|
26412
|
+
if (state.replacer) {
|
|
26095
26413
|
value = state.replacer.call(object, String(index), value);
|
|
26414
|
+
}
|
|
26096
26415
|
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
26097
|
-
if (!compact || _result !== "")
|
|
26416
|
+
if (!compact || _result !== "") {
|
|
26098
26417
|
_result += generateNextLine(state, level);
|
|
26099
|
-
|
|
26418
|
+
}
|
|
26419
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
26100
26420
|
_result += "-";
|
|
26101
|
-
else
|
|
26421
|
+
} else {
|
|
26102
26422
|
_result += "- ";
|
|
26423
|
+
}
|
|
26103
26424
|
_result += state.dump;
|
|
26104
26425
|
}
|
|
26105
26426
|
}
|
|
@@ -26118,15 +26439,18 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26118
26439
|
pairBuffer += '"';
|
|
26119
26440
|
const objectKey = objectKeyList[index];
|
|
26120
26441
|
let objectValue = object[objectKey];
|
|
26121
|
-
if (state.replacer)
|
|
26442
|
+
if (state.replacer) {
|
|
26122
26443
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
26123
|
-
|
|
26444
|
+
}
|
|
26445
|
+
if (!writeNode(state, level, objectKey, false, false)) {
|
|
26124
26446
|
continue;
|
|
26447
|
+
}
|
|
26125
26448
|
if (state.dump.length > 1024)
|
|
26126
26449
|
pairBuffer += "? ";
|
|
26127
26450
|
pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
|
|
26128
|
-
if (!writeNode(state, level, objectValue, false, false))
|
|
26451
|
+
if (!writeNode(state, level, objectValue, false, false)) {
|
|
26129
26452
|
continue;
|
|
26453
|
+
}
|
|
26130
26454
|
pairBuffer += state.dump;
|
|
26131
26455
|
_result += pairBuffer;
|
|
26132
26456
|
}
|
|
@@ -26137,37 +26461,46 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26137
26461
|
let _result = "";
|
|
26138
26462
|
const _tag = state.tag;
|
|
26139
26463
|
const objectKeyList = Object.keys(object);
|
|
26140
|
-
if (state.sortKeys === true)
|
|
26464
|
+
if (state.sortKeys === true) {
|
|
26141
26465
|
objectKeyList.sort();
|
|
26142
|
-
else if (typeof state.sortKeys === "function")
|
|
26466
|
+
} else if (typeof state.sortKeys === "function") {
|
|
26143
26467
|
objectKeyList.sort(state.sortKeys);
|
|
26144
|
-
else if (state.sortKeys)
|
|
26145
|
-
throw new
|
|
26468
|
+
} else if (state.sortKeys) {
|
|
26469
|
+
throw new YAMLException2("sortKeys must be a boolean or a function");
|
|
26470
|
+
}
|
|
26146
26471
|
for (let index = 0, length = objectKeyList.length;index < length; index += 1) {
|
|
26147
26472
|
let pairBuffer = "";
|
|
26148
|
-
if (!compact || _result !== "")
|
|
26473
|
+
if (!compact || _result !== "") {
|
|
26149
26474
|
pairBuffer += generateNextLine(state, level);
|
|
26475
|
+
}
|
|
26150
26476
|
const objectKey = objectKeyList[index];
|
|
26151
26477
|
let objectValue = object[objectKey];
|
|
26152
|
-
if (state.replacer)
|
|
26478
|
+
if (state.replacer) {
|
|
26153
26479
|
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
26154
|
-
|
|
26480
|
+
}
|
|
26481
|
+
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
26155
26482
|
continue;
|
|
26483
|
+
}
|
|
26156
26484
|
const explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
26157
|
-
if (explicitPair)
|
|
26158
|
-
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0))
|
|
26485
|
+
if (explicitPair) {
|
|
26486
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
26159
26487
|
pairBuffer += "?";
|
|
26160
|
-
else
|
|
26488
|
+
} else {
|
|
26161
26489
|
pairBuffer += "? ";
|
|
26490
|
+
}
|
|
26491
|
+
}
|
|
26162
26492
|
pairBuffer += state.dump;
|
|
26163
|
-
if (explicitPair)
|
|
26493
|
+
if (explicitPair) {
|
|
26164
26494
|
pairBuffer += generateNextLine(state, level);
|
|
26165
|
-
|
|
26495
|
+
}
|
|
26496
|
+
if (!writeNode(state, level + 1, objectValue, true, explicitPair)) {
|
|
26166
26497
|
continue;
|
|
26167
|
-
|
|
26498
|
+
}
|
|
26499
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
26168
26500
|
pairBuffer += ":";
|
|
26169
|
-
else
|
|
26501
|
+
} else {
|
|
26170
26502
|
pairBuffer += ": ";
|
|
26503
|
+
}
|
|
26171
26504
|
pairBuffer += state.dump;
|
|
26172
26505
|
_result += pairBuffer;
|
|
26173
26506
|
}
|
|
@@ -26177,24 +26510,27 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26177
26510
|
function detectType(state, object, explicit) {
|
|
26178
26511
|
const typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
26179
26512
|
for (let index = 0, length = typeList.length;index < length; index += 1) {
|
|
26180
|
-
const
|
|
26181
|
-
if ((
|
|
26182
|
-
if (explicit)
|
|
26183
|
-
if (
|
|
26184
|
-
state.tag =
|
|
26185
|
-
else
|
|
26186
|
-
state.tag =
|
|
26187
|
-
|
|
26513
|
+
const type2 = typeList[index];
|
|
26514
|
+
if ((type2.instanceOf || type2.predicate) && (!type2.instanceOf || typeof object === "object" && object instanceof type2.instanceOf) && (!type2.predicate || type2.predicate(object))) {
|
|
26515
|
+
if (explicit) {
|
|
26516
|
+
if (type2.multi && type2.representName) {
|
|
26517
|
+
state.tag = type2.representName(object);
|
|
26518
|
+
} else {
|
|
26519
|
+
state.tag = type2.tag;
|
|
26520
|
+
}
|
|
26521
|
+
} else {
|
|
26188
26522
|
state.tag = "?";
|
|
26189
|
-
|
|
26190
|
-
|
|
26523
|
+
}
|
|
26524
|
+
if (type2.represent) {
|
|
26525
|
+
const style = state.styleMap[type2.tag] || type2.defaultStyle;
|
|
26191
26526
|
let _result;
|
|
26192
|
-
if (_toString.call(
|
|
26193
|
-
_result =
|
|
26194
|
-
else if (_hasOwnProperty.call(
|
|
26195
|
-
_result =
|
|
26196
|
-
else
|
|
26197
|
-
throw new
|
|
26527
|
+
if (_toString.call(type2.represent) === "[object Function]") {
|
|
26528
|
+
_result = type2.represent(object, style);
|
|
26529
|
+
} else if (_hasOwnProperty.call(type2.represent, style)) {
|
|
26530
|
+
_result = type2.represent[style](object, style);
|
|
26531
|
+
} else {
|
|
26532
|
+
throw new YAMLException2("!<" + type2.tag + '> tag resolver accepts not "' + style + '" style');
|
|
26533
|
+
}
|
|
26198
26534
|
state.dump = _result;
|
|
26199
26535
|
}
|
|
26200
26536
|
return true;
|
|
@@ -26205,67 +26541,78 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26205
26541
|
function writeNode(state, level, object, block, compact, iskey, isblockseq) {
|
|
26206
26542
|
state.tag = null;
|
|
26207
26543
|
state.dump = object;
|
|
26208
|
-
if (!detectType(state, object, false))
|
|
26544
|
+
if (!detectType(state, object, false)) {
|
|
26209
26545
|
detectType(state, object, true);
|
|
26210
|
-
|
|
26546
|
+
}
|
|
26547
|
+
const type2 = _toString.call(state.dump);
|
|
26211
26548
|
const inblock = block;
|
|
26212
|
-
if (block)
|
|
26549
|
+
if (block) {
|
|
26213
26550
|
block = state.flowLevel < 0 || state.flowLevel > level;
|
|
26214
|
-
|
|
26551
|
+
}
|
|
26552
|
+
const objectOrArray = type2 === "[object Object]" || type2 === "[object Array]";
|
|
26215
26553
|
let duplicateIndex;
|
|
26216
26554
|
let duplicate;
|
|
26217
26555
|
if (objectOrArray) {
|
|
26218
26556
|
duplicateIndex = state.duplicates.indexOf(object);
|
|
26219
26557
|
duplicate = duplicateIndex !== -1;
|
|
26220
26558
|
}
|
|
26221
|
-
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0)
|
|
26559
|
+
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
26222
26560
|
compact = false;
|
|
26223
|
-
|
|
26561
|
+
}
|
|
26562
|
+
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
26224
26563
|
state.dump = "*ref_" + duplicateIndex;
|
|
26225
|
-
else {
|
|
26226
|
-
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex])
|
|
26564
|
+
} else {
|
|
26565
|
+
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
26227
26566
|
state.usedDuplicates[duplicateIndex] = true;
|
|
26228
|
-
|
|
26567
|
+
}
|
|
26568
|
+
if (type2 === "[object Object]") {
|
|
26229
26569
|
if (block && Object.keys(state.dump).length !== 0) {
|
|
26230
26570
|
writeBlockMapping(state, level, state.dump, compact);
|
|
26231
|
-
if (duplicate)
|
|
26571
|
+
if (duplicate) {
|
|
26232
26572
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
26573
|
+
}
|
|
26233
26574
|
} else {
|
|
26234
26575
|
writeFlowMapping(state, level, state.dump);
|
|
26235
|
-
if (duplicate)
|
|
26576
|
+
if (duplicate) {
|
|
26236
26577
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
26578
|
+
}
|
|
26237
26579
|
}
|
|
26238
|
-
else if (
|
|
26580
|
+
} else if (type2 === "[object Array]") {
|
|
26239
26581
|
if (block && state.dump.length !== 0) {
|
|
26240
|
-
if (state.noArrayIndent && !isblockseq && level > 0)
|
|
26582
|
+
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
26241
26583
|
writeBlockSequence(state, level - 1, state.dump, compact);
|
|
26242
|
-
else
|
|
26584
|
+
} else {
|
|
26243
26585
|
writeBlockSequence(state, level, state.dump, compact);
|
|
26244
|
-
|
|
26586
|
+
}
|
|
26587
|
+
if (duplicate) {
|
|
26245
26588
|
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
26589
|
+
}
|
|
26246
26590
|
} else {
|
|
26247
26591
|
writeFlowSequence(state, level, state.dump);
|
|
26248
|
-
if (duplicate)
|
|
26592
|
+
if (duplicate) {
|
|
26249
26593
|
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
26594
|
+
}
|
|
26250
26595
|
}
|
|
26251
|
-
else if (
|
|
26252
|
-
if (state.tag !== "?")
|
|
26596
|
+
} else if (type2 === "[object String]") {
|
|
26597
|
+
if (state.tag !== "?") {
|
|
26253
26598
|
writeScalar(state, state.dump, level, iskey, inblock);
|
|
26254
|
-
|
|
26599
|
+
}
|
|
26600
|
+
} else if (type2 === "[object Undefined]") {
|
|
26255
26601
|
return false;
|
|
26256
|
-
else {
|
|
26602
|
+
} else {
|
|
26257
26603
|
if (state.skipInvalid)
|
|
26258
26604
|
return false;
|
|
26259
|
-
throw new
|
|
26605
|
+
throw new YAMLException2("unacceptable kind of an object to dump " + type2);
|
|
26260
26606
|
}
|
|
26261
26607
|
if (state.tag !== null && state.tag !== "?") {
|
|
26262
26608
|
let tagStr = encodeURI(state.tag[0] === "!" ? state.tag.slice(1) : state.tag).replace(/!/g, "%21");
|
|
26263
|
-
if (state.tag[0] === "!")
|
|
26609
|
+
if (state.tag[0] === "!") {
|
|
26264
26610
|
tagStr = "!" + tagStr;
|
|
26265
|
-
else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:")
|
|
26611
|
+
} else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
|
|
26266
26612
|
tagStr = "!!" + tagStr.slice(18);
|
|
26267
|
-
else
|
|
26613
|
+
} else {
|
|
26268
26614
|
tagStr = "!<" + tagStr + ">";
|
|
26615
|
+
}
|
|
26269
26616
|
state.dump = tagStr + " " + state.dump;
|
|
26270
26617
|
}
|
|
26271
26618
|
}
|
|
@@ -26276,83 +26623,110 @@ var require_dumper = /* @__PURE__ */ __commonJSMin((exports, module) => {
|
|
|
26276
26623
|
const duplicatesIndexes = [];
|
|
26277
26624
|
inspectNode(object, objects, duplicatesIndexes);
|
|
26278
26625
|
const length = duplicatesIndexes.length;
|
|
26279
|
-
for (let index = 0;index < length; index += 1)
|
|
26626
|
+
for (let index = 0;index < length; index += 1) {
|
|
26280
26627
|
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
26628
|
+
}
|
|
26281
26629
|
state.usedDuplicates = new Array(length);
|
|
26282
26630
|
}
|
|
26283
26631
|
function inspectNode(object, objects, duplicatesIndexes) {
|
|
26284
26632
|
if (object !== null && typeof object === "object") {
|
|
26285
26633
|
const index = objects.indexOf(object);
|
|
26286
26634
|
if (index !== -1) {
|
|
26287
|
-
if (duplicatesIndexes.indexOf(index) === -1)
|
|
26635
|
+
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
26288
26636
|
duplicatesIndexes.push(index);
|
|
26637
|
+
}
|
|
26289
26638
|
} else {
|
|
26290
26639
|
objects.push(object);
|
|
26291
|
-
if (Array.isArray(object))
|
|
26292
|
-
for (let i = 0, length = object.length;i < length; i += 1)
|
|
26640
|
+
if (Array.isArray(object)) {
|
|
26641
|
+
for (let i = 0, length = object.length;i < length; i += 1) {
|
|
26293
26642
|
inspectNode(object[i], objects, duplicatesIndexes);
|
|
26294
|
-
|
|
26643
|
+
}
|
|
26644
|
+
} else {
|
|
26295
26645
|
const objectKeyList = Object.keys(object);
|
|
26296
|
-
for (let i = 0, length = objectKeyList.length;i < length; i += 1)
|
|
26646
|
+
for (let i = 0, length = objectKeyList.length;i < length; i += 1) {
|
|
26297
26647
|
inspectNode(object[objectKeyList[i]], objects, duplicatesIndexes);
|
|
26648
|
+
}
|
|
26298
26649
|
}
|
|
26299
26650
|
}
|
|
26300
26651
|
}
|
|
26301
26652
|
}
|
|
26302
|
-
function
|
|
26653
|
+
function dump2(input, options) {
|
|
26303
26654
|
options = options || {};
|
|
26304
26655
|
const state = new State(options);
|
|
26305
26656
|
if (!state.noRefs)
|
|
26306
26657
|
getDuplicateReferences(input, state);
|
|
26307
26658
|
let value = input;
|
|
26308
|
-
if (state.replacer)
|
|
26659
|
+
if (state.replacer) {
|
|
26309
26660
|
value = state.replacer.call({ "": value }, "", value);
|
|
26661
|
+
}
|
|
26310
26662
|
if (writeNode(state, 0, value, true, true))
|
|
26311
26663
|
return state.dump + `
|
|
26312
26664
|
`;
|
|
26313
26665
|
return "";
|
|
26314
26666
|
}
|
|
26315
|
-
|
|
26316
|
-
|
|
26317
|
-
|
|
26318
|
-
|
|
26319
|
-
|
|
26667
|
+
dumper.dump = dump2;
|
|
26668
|
+
return dumper;
|
|
26669
|
+
}
|
|
26670
|
+
var hasRequiredJsYaml;
|
|
26671
|
+
function requireJsYaml() {
|
|
26672
|
+
if (hasRequiredJsYaml)
|
|
26673
|
+
return jsYaml;
|
|
26674
|
+
hasRequiredJsYaml = 1;
|
|
26675
|
+
const loader2 = requireLoader();
|
|
26676
|
+
const dumper2 = requireDumper();
|
|
26320
26677
|
function renamed(from, to) {
|
|
26321
26678
|
return function() {
|
|
26322
26679
|
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to + " instead, which is now safe by default.");
|
|
26323
26680
|
};
|
|
26324
26681
|
}
|
|
26325
|
-
|
|
26326
|
-
|
|
26327
|
-
|
|
26328
|
-
|
|
26329
|
-
|
|
26330
|
-
|
|
26331
|
-
|
|
26332
|
-
|
|
26333
|
-
|
|
26334
|
-
|
|
26335
|
-
|
|
26336
|
-
binary:
|
|
26337
|
-
float:
|
|
26338
|
-
map:
|
|
26682
|
+
jsYaml.Type = requireType();
|
|
26683
|
+
jsYaml.Schema = requireSchema();
|
|
26684
|
+
jsYaml.FAILSAFE_SCHEMA = requireFailsafe();
|
|
26685
|
+
jsYaml.JSON_SCHEMA = requireJson();
|
|
26686
|
+
jsYaml.CORE_SCHEMA = requireCore();
|
|
26687
|
+
jsYaml.DEFAULT_SCHEMA = require_default();
|
|
26688
|
+
jsYaml.load = loader2.load;
|
|
26689
|
+
jsYaml.loadAll = loader2.loadAll;
|
|
26690
|
+
jsYaml.dump = dumper2.dump;
|
|
26691
|
+
jsYaml.YAMLException = requireException();
|
|
26692
|
+
jsYaml.types = {
|
|
26693
|
+
binary: requireBinary(),
|
|
26694
|
+
float: requireFloat(),
|
|
26695
|
+
map: requireMap(),
|
|
26339
26696
|
null: require_null(),
|
|
26340
|
-
pairs:
|
|
26341
|
-
set:
|
|
26342
|
-
timestamp:
|
|
26343
|
-
bool:
|
|
26344
|
-
int:
|
|
26345
|
-
merge:
|
|
26346
|
-
omap:
|
|
26347
|
-
seq:
|
|
26348
|
-
str:
|
|
26697
|
+
pairs: requirePairs(),
|
|
26698
|
+
set: requireSet(),
|
|
26699
|
+
timestamp: requireTimestamp(),
|
|
26700
|
+
bool: requireBool(),
|
|
26701
|
+
int: requireInt(),
|
|
26702
|
+
merge: requireMerge(),
|
|
26703
|
+
omap: requireOmap(),
|
|
26704
|
+
seq: requireSeq(),
|
|
26705
|
+
str: requireStr()
|
|
26349
26706
|
};
|
|
26350
|
-
|
|
26351
|
-
|
|
26352
|
-
|
|
26353
|
-
|
|
26354
|
-
|
|
26355
|
-
var
|
|
26707
|
+
jsYaml.safeLoad = renamed("safeLoad", "load");
|
|
26708
|
+
jsYaml.safeLoadAll = renamed("safeLoadAll", "loadAll");
|
|
26709
|
+
jsYaml.safeDump = renamed("safeDump", "dump");
|
|
26710
|
+
return jsYaml;
|
|
26711
|
+
}
|
|
26712
|
+
var jsYamlExports = requireJsYaml();
|
|
26713
|
+
var yaml = /* @__PURE__ */ getDefaultExportFromCjs(jsYamlExports);
|
|
26714
|
+
var {
|
|
26715
|
+
Type,
|
|
26716
|
+
Schema,
|
|
26717
|
+
FAILSAFE_SCHEMA,
|
|
26718
|
+
JSON_SCHEMA,
|
|
26719
|
+
CORE_SCHEMA,
|
|
26720
|
+
DEFAULT_SCHEMA,
|
|
26721
|
+
load,
|
|
26722
|
+
loadAll,
|
|
26723
|
+
dump,
|
|
26724
|
+
YAMLException,
|
|
26725
|
+
types,
|
|
26726
|
+
safeLoad,
|
|
26727
|
+
safeLoadAll,
|
|
26728
|
+
safeDump
|
|
26729
|
+
} = yaml;
|
|
26356
26730
|
|
|
26357
26731
|
// ../common/src/logger.ts
|
|
26358
26732
|
init_src();
|
|
@@ -26429,11 +26803,11 @@ class SimpleLogger {
|
|
|
26429
26803
|
const path3 = this.logFilePath || getGlobalLogFilePath();
|
|
26430
26804
|
if (!path3)
|
|
26431
26805
|
return;
|
|
26432
|
-
const
|
|
26806
|
+
const timestamp2 = new Date().toISOString();
|
|
26433
26807
|
this.pendingWrites = Promise.all([
|
|
26434
26808
|
this.pendingWrites,
|
|
26435
26809
|
this.pendingInit
|
|
26436
|
-
]).then(() => getFileSystem().appendFile(path3, `${
|
|
26810
|
+
]).then(() => getFileSystem().appendFile(path3, `${timestamp2} ${formatted}`).catch(() => {}));
|
|
26437
26811
|
}
|
|
26438
26812
|
debug(message, ...args) {
|
|
26439
26813
|
if (this.level > 0 /* DEBUG */)
|
|
@@ -26827,10 +27201,10 @@ class LoggerTelemetryProvider {
|
|
|
26827
27201
|
success
|
|
26828
27202
|
})));
|
|
26829
27203
|
}
|
|
26830
|
-
async trackDependency(name,
|
|
27204
|
+
async trackDependency(name, type2, duration, success, properties) {
|
|
26831
27205
|
logger.debug(formatMessage("Dependency", name, this.enrich({
|
|
26832
27206
|
...properties,
|
|
26833
|
-
type,
|
|
27207
|
+
type: type2,
|
|
26834
27208
|
duration: `${duration}ms`,
|
|
26835
27209
|
success
|
|
26836
27210
|
})));
|
|
@@ -27063,7 +27437,7 @@ class TelemetryService {
|
|
|
27063
27437
|
throw error;
|
|
27064
27438
|
}
|
|
27065
27439
|
}
|
|
27066
|
-
async trackDependencyOperation(name,
|
|
27440
|
+
async trackDependencyOperation(name, type2, fn, properties) {
|
|
27067
27441
|
const parentContext = this.getCurrentContext();
|
|
27068
27442
|
if (!parentContext) {
|
|
27069
27443
|
throw new Error("trackDependencyOperation must be called within a trackRequest block.");
|
|
@@ -27078,13 +27452,13 @@ class TelemetryService {
|
|
|
27078
27452
|
const result = await this.contextStorage.run(childContext, fn);
|
|
27079
27453
|
const durationMs = performance.now() - startTime;
|
|
27080
27454
|
const enrichedProperties = this.enrichPropertiesWithContext(properties, childContext);
|
|
27081
|
-
await this.telemetryProvider.trackDependency(name,
|
|
27455
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, true, enrichedProperties);
|
|
27082
27456
|
return result;
|
|
27083
27457
|
} catch (error) {
|
|
27084
27458
|
const durationMs = performance.now() - startTime;
|
|
27085
27459
|
const err = error instanceof Error ? error : new Error(String(error));
|
|
27086
27460
|
const enrichedProperties = this.enrichPropertiesWithContext({ ...properties, errorMessage: err.message }, childContext);
|
|
27087
|
-
await this.telemetryProvider.trackDependency(name,
|
|
27461
|
+
await this.telemetryProvider.trackDependency(name, type2, durationMs, false, enrichedProperties);
|
|
27088
27462
|
throw error;
|
|
27089
27463
|
}
|
|
27090
27464
|
}
|
|
@@ -27291,8 +27665,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false) {
|
|
|
27291
27665
|
}
|
|
27292
27666
|
switch (format) {
|
|
27293
27667
|
case "json": {
|
|
27294
|
-
const
|
|
27295
|
-
logFn(asciiSafe ? escapeNonAscii(
|
|
27668
|
+
const json2 = JSON.stringify(data, null, 2);
|
|
27669
|
+
logFn(asciiSafe ? escapeNonAscii(json2) : json2);
|
|
27296
27670
|
break;
|
|
27297
27671
|
}
|
|
27298
27672
|
case "yaml":
|
|
@@ -27628,8 +28002,8 @@ var OutputFormatter;
|
|
|
27628
28002
|
const sink = getOutputSink();
|
|
27629
28003
|
const normalized = toPascalCaseData(data);
|
|
27630
28004
|
if (format === "json") {
|
|
27631
|
-
const
|
|
27632
|
-
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(
|
|
28005
|
+
const json2 = JSON.stringify(normalized);
|
|
28006
|
+
const safe = needsAsciiSafeJson(sink) ? escapeNonAscii(json2) : json2;
|
|
27633
28007
|
sink.writeErr(`${safe}
|
|
27634
28008
|
`);
|
|
27635
28009
|
} else {
|
|
@@ -27879,8 +28253,8 @@ function redactValueDetectors(value) {
|
|
|
27879
28253
|
out = out.replace(JWT_PATTERN, () => REDACTED);
|
|
27880
28254
|
out = out.replace(URL_PATTERN, (match) => {
|
|
27881
28255
|
const trailing = match.match(URL_TRAILING_PUNCT)?.[0] ?? "";
|
|
27882
|
-
const
|
|
27883
|
-
return `${redactUrl(
|
|
28256
|
+
const core2 = trailing ? match.slice(0, -trailing.length) : match;
|
|
28257
|
+
return `${redactUrl(core2)}${trailing}`;
|
|
27884
28258
|
});
|
|
27885
28259
|
out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
|
|
27886
28260
|
out = out.replace(EMAIL_PATTERN, (match) => `email#${shortHash(match)}`);
|
|
@@ -28941,531 +29315,531 @@ var package_default = {
|
|
|
28941
29315
|
var SDK_USER_AGENT = getSdkUserAgentToken(package_default);
|
|
28942
29316
|
installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT);
|
|
28943
29317
|
// ../pipelines-sdk/generated/src/models/BaseResourceIdentifier.ts
|
|
28944
|
-
function BaseResourceIdentifierFromJSON(
|
|
28945
|
-
return BaseResourceIdentifierFromJSONTyped(
|
|
29318
|
+
function BaseResourceIdentifierFromJSON(json2) {
|
|
29319
|
+
return BaseResourceIdentifierFromJSONTyped(json2, false);
|
|
28946
29320
|
}
|
|
28947
|
-
function BaseResourceIdentifierFromJSONTyped(
|
|
28948
|
-
if (
|
|
28949
|
-
return
|
|
29321
|
+
function BaseResourceIdentifierFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29322
|
+
if (json2 == null) {
|
|
29323
|
+
return json2;
|
|
28950
29324
|
}
|
|
28951
29325
|
return {
|
|
28952
|
-
kind:
|
|
28953
|
-
key:
|
|
28954
|
-
type:
|
|
29326
|
+
kind: json2["kind"],
|
|
29327
|
+
key: json2["key"],
|
|
29328
|
+
type: json2["type"] == null ? undefined : json2["type"]
|
|
28955
29329
|
};
|
|
28956
29330
|
}
|
|
28957
29331
|
// ../pipelines-sdk/generated/src/models/ResponseDictionaryDto.ts
|
|
28958
|
-
function ResponseDictionaryDtoFromJSON(
|
|
28959
|
-
return ResponseDictionaryDtoFromJSONTyped(
|
|
29332
|
+
function ResponseDictionaryDtoFromJSON(json2) {
|
|
29333
|
+
return ResponseDictionaryDtoFromJSONTyped(json2, false);
|
|
28960
29334
|
}
|
|
28961
|
-
function ResponseDictionaryDtoFromJSONTyped(
|
|
28962
|
-
if (
|
|
28963
|
-
return
|
|
29335
|
+
function ResponseDictionaryDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29336
|
+
if (json2 == null) {
|
|
29337
|
+
return json2;
|
|
28964
29338
|
}
|
|
28965
29339
|
return {
|
|
28966
|
-
keys:
|
|
28967
|
-
values:
|
|
29340
|
+
keys: json2["keys"] == null ? undefined : json2["keys"],
|
|
29341
|
+
values: json2["values"] == null ? undefined : json2["values"]
|
|
28968
29342
|
};
|
|
28969
29343
|
}
|
|
28970
29344
|
|
|
28971
29345
|
// ../pipelines-sdk/generated/src/models/BlobFileAccessDto.ts
|
|
28972
|
-
function BlobFileAccessDtoFromJSON(
|
|
28973
|
-
return BlobFileAccessDtoFromJSONTyped(
|
|
29346
|
+
function BlobFileAccessDtoFromJSON(json2) {
|
|
29347
|
+
return BlobFileAccessDtoFromJSONTyped(json2, false);
|
|
28974
29348
|
}
|
|
28975
|
-
function BlobFileAccessDtoFromJSONTyped(
|
|
28976
|
-
if (
|
|
28977
|
-
return
|
|
29349
|
+
function BlobFileAccessDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29350
|
+
if (json2 == null) {
|
|
29351
|
+
return json2;
|
|
28978
29352
|
}
|
|
28979
29353
|
return {
|
|
28980
|
-
uri:
|
|
28981
|
-
verb:
|
|
28982
|
-
headers:
|
|
29354
|
+
uri: json2["uri"],
|
|
29355
|
+
verb: json2["verb"],
|
|
29356
|
+
headers: json2["headers"] == null ? undefined : ResponseDictionaryDtoFromJSON(json2["headers"])
|
|
28983
29357
|
};
|
|
28984
29358
|
}
|
|
28985
29359
|
// ../pipelines-sdk/generated/src/models/DeploymentActivateResponse.ts
|
|
28986
|
-
function DeploymentActivateResponseFromJSON(
|
|
28987
|
-
return DeploymentActivateResponseFromJSONTyped(
|
|
29360
|
+
function DeploymentActivateResponseFromJSON(json2) {
|
|
29361
|
+
return DeploymentActivateResponseFromJSONTyped(json2, false);
|
|
28988
29362
|
}
|
|
28989
|
-
function DeploymentActivateResponseFromJSONTyped(
|
|
28990
|
-
if (
|
|
28991
|
-
return
|
|
29363
|
+
function DeploymentActivateResponseFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29364
|
+
if (json2 == null) {
|
|
29365
|
+
return json2;
|
|
28992
29366
|
}
|
|
28993
29367
|
return {
|
|
28994
|
-
instanceId:
|
|
29368
|
+
instanceId: json2["instanceId"] == null ? undefined : json2["instanceId"]
|
|
28995
29369
|
};
|
|
28996
29370
|
}
|
|
28997
29371
|
// ../pipelines-sdk/generated/src/models/DeploymentOperation.ts
|
|
28998
|
-
function DeploymentOperationFromJSON(
|
|
28999
|
-
return DeploymentOperationFromJSONTyped(
|
|
29372
|
+
function DeploymentOperationFromJSON(json2) {
|
|
29373
|
+
return DeploymentOperationFromJSONTyped(json2, false);
|
|
29000
29374
|
}
|
|
29001
|
-
function DeploymentOperationFromJSONTyped(
|
|
29002
|
-
return
|
|
29375
|
+
function DeploymentOperationFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29376
|
+
return json2;
|
|
29003
29377
|
}
|
|
29004
29378
|
// ../pipelines-sdk/generated/src/models/DeploymentOperationStatus.ts
|
|
29005
|
-
function DeploymentOperationStatusFromJSON(
|
|
29006
|
-
return DeploymentOperationStatusFromJSONTyped(
|
|
29379
|
+
function DeploymentOperationStatusFromJSON(json2) {
|
|
29380
|
+
return DeploymentOperationStatusFromJSONTyped(json2, false);
|
|
29007
29381
|
}
|
|
29008
|
-
function DeploymentOperationStatusFromJSONTyped(
|
|
29009
|
-
return
|
|
29382
|
+
function DeploymentOperationStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29383
|
+
return json2;
|
|
29010
29384
|
}
|
|
29011
29385
|
// ../pipelines-sdk/generated/src/models/DeploymentPreActivateStepDto.ts
|
|
29012
|
-
function DeploymentPreActivateStepDtoFromJSON(
|
|
29013
|
-
return DeploymentPreActivateStepDtoFromJSONTyped(
|
|
29386
|
+
function DeploymentPreActivateStepDtoFromJSON(json2) {
|
|
29387
|
+
return DeploymentPreActivateStepDtoFromJSONTyped(json2, false);
|
|
29014
29388
|
}
|
|
29015
|
-
function DeploymentPreActivateStepDtoFromJSONTyped(
|
|
29016
|
-
if (
|
|
29017
|
-
return
|
|
29389
|
+
function DeploymentPreActivateStepDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29390
|
+
if (json2 == null) {
|
|
29391
|
+
return json2;
|
|
29018
29392
|
}
|
|
29019
29393
|
return {
|
|
29020
|
-
serviceName:
|
|
29021
|
-
step:
|
|
29022
|
-
description:
|
|
29023
|
-
link:
|
|
29394
|
+
serviceName: json2["serviceName"],
|
|
29395
|
+
step: json2["step"],
|
|
29396
|
+
description: json2["description"],
|
|
29397
|
+
link: json2["link"]
|
|
29024
29398
|
};
|
|
29025
29399
|
}
|
|
29026
29400
|
// ../pipelines-sdk/generated/src/models/DeploymentPreActivateStepsDto.ts
|
|
29027
|
-
function DeploymentPreActivateStepsDtoFromJSON(
|
|
29028
|
-
return DeploymentPreActivateStepsDtoFromJSONTyped(
|
|
29401
|
+
function DeploymentPreActivateStepsDtoFromJSON(json2) {
|
|
29402
|
+
return DeploymentPreActivateStepsDtoFromJSONTyped(json2, false);
|
|
29029
29403
|
}
|
|
29030
|
-
function DeploymentPreActivateStepsDtoFromJSONTyped(
|
|
29031
|
-
if (
|
|
29032
|
-
return
|
|
29404
|
+
function DeploymentPreActivateStepsDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29405
|
+
if (json2 == null) {
|
|
29406
|
+
return json2;
|
|
29033
29407
|
}
|
|
29034
29408
|
return {
|
|
29035
|
-
steps:
|
|
29409
|
+
steps: json2["steps"].map(DeploymentPreActivateStepDtoFromJSON)
|
|
29036
29410
|
};
|
|
29037
29411
|
}
|
|
29038
29412
|
// ../pipelines-sdk/generated/src/models/DeploymentResourceValidationAction.ts
|
|
29039
|
-
function DeploymentResourceValidationActionFromJSON(
|
|
29040
|
-
return DeploymentResourceValidationActionFromJSONTyped(
|
|
29413
|
+
function DeploymentResourceValidationActionFromJSON(json2) {
|
|
29414
|
+
return DeploymentResourceValidationActionFromJSONTyped(json2, false);
|
|
29041
29415
|
}
|
|
29042
|
-
function DeploymentResourceValidationActionFromJSONTyped(
|
|
29043
|
-
return
|
|
29416
|
+
function DeploymentResourceValidationActionFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29417
|
+
return json2;
|
|
29044
29418
|
}
|
|
29045
29419
|
// ../pipelines-sdk/generated/src/models/ServiceMessage.ts
|
|
29046
|
-
function ServiceMessageFromJSON(
|
|
29047
|
-
return ServiceMessageFromJSONTyped(
|
|
29420
|
+
function ServiceMessageFromJSON(json2) {
|
|
29421
|
+
return ServiceMessageFromJSONTyped(json2, false);
|
|
29048
29422
|
}
|
|
29049
|
-
function ServiceMessageFromJSONTyped(
|
|
29050
|
-
if (
|
|
29051
|
-
return
|
|
29423
|
+
function ServiceMessageFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29424
|
+
if (json2 == null) {
|
|
29425
|
+
return json2;
|
|
29052
29426
|
}
|
|
29053
29427
|
return {
|
|
29054
|
-
resource:
|
|
29055
|
-
text:
|
|
29056
|
-
parameters:
|
|
29057
|
-
errorCode:
|
|
29428
|
+
resource: json2["resource"],
|
|
29429
|
+
text: json2["text"],
|
|
29430
|
+
parameters: json2["parameters"],
|
|
29431
|
+
errorCode: json2["errorCode"] == null ? undefined : json2["errorCode"]
|
|
29058
29432
|
};
|
|
29059
29433
|
}
|
|
29060
29434
|
|
|
29061
29435
|
// ../pipelines-sdk/generated/src/models/DeploymentRunResponse.ts
|
|
29062
|
-
function DeploymentRunResponseFromJSON(
|
|
29063
|
-
return DeploymentRunResponseFromJSONTyped(
|
|
29436
|
+
function DeploymentRunResponseFromJSON(json2) {
|
|
29437
|
+
return DeploymentRunResponseFromJSONTyped(json2, false);
|
|
29064
29438
|
}
|
|
29065
|
-
function DeploymentRunResponseFromJSONTyped(
|
|
29066
|
-
if (
|
|
29067
|
-
return
|
|
29439
|
+
function DeploymentRunResponseFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29440
|
+
if (json2 == null) {
|
|
29441
|
+
return json2;
|
|
29068
29442
|
}
|
|
29069
29443
|
return {
|
|
29070
|
-
instanceId:
|
|
29071
|
-
scheduled:
|
|
29072
|
-
errors:
|
|
29073
|
-
complete:
|
|
29444
|
+
instanceId: json2["instanceId"] == null ? undefined : json2["instanceId"],
|
|
29445
|
+
scheduled: json2["scheduled"],
|
|
29446
|
+
errors: json2["errors"].map(ServiceMessageFromJSON),
|
|
29447
|
+
complete: json2["complete"]
|
|
29074
29448
|
};
|
|
29075
29449
|
}
|
|
29076
29450
|
// ../pipelines-sdk/generated/src/models/ResourceInstallError.ts
|
|
29077
|
-
function ResourceInstallErrorFromJSON(
|
|
29078
|
-
return ResourceInstallErrorFromJSONTyped(
|
|
29451
|
+
function ResourceInstallErrorFromJSON(json2) {
|
|
29452
|
+
return ResourceInstallErrorFromJSONTyped(json2, false);
|
|
29079
29453
|
}
|
|
29080
|
-
function ResourceInstallErrorFromJSONTyped(
|
|
29081
|
-
if (
|
|
29082
|
-
return
|
|
29454
|
+
function ResourceInstallErrorFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29455
|
+
if (json2 == null) {
|
|
29456
|
+
return json2;
|
|
29083
29457
|
}
|
|
29084
29458
|
return {
|
|
29085
|
-
kind:
|
|
29086
|
-
type:
|
|
29087
|
-
key:
|
|
29088
|
-
folderKey:
|
|
29089
|
-
name:
|
|
29090
|
-
text:
|
|
29459
|
+
kind: json2["kind"] == null ? undefined : json2["kind"],
|
|
29460
|
+
type: json2["type"] == null ? undefined : json2["type"],
|
|
29461
|
+
key: json2["key"] == null ? undefined : json2["key"],
|
|
29462
|
+
folderKey: json2["folderKey"] == null ? undefined : json2["folderKey"],
|
|
29463
|
+
name: json2["name"] == null ? undefined : json2["name"],
|
|
29464
|
+
text: json2["text"]
|
|
29091
29465
|
};
|
|
29092
29466
|
}
|
|
29093
29467
|
|
|
29094
29468
|
// ../pipelines-sdk/generated/src/models/DeploymentStatus.ts
|
|
29095
|
-
function DeploymentStatusFromJSON(
|
|
29096
|
-
return DeploymentStatusFromJSONTyped(
|
|
29469
|
+
function DeploymentStatusFromJSON(json2) {
|
|
29470
|
+
return DeploymentStatusFromJSONTyped(json2, false);
|
|
29097
29471
|
}
|
|
29098
|
-
function DeploymentStatusFromJSONTyped(
|
|
29099
|
-
return
|
|
29472
|
+
function DeploymentStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29473
|
+
return json2;
|
|
29100
29474
|
}
|
|
29101
29475
|
|
|
29102
29476
|
// ../pipelines-sdk/generated/src/models/DeploymentRunServiceStatus.ts
|
|
29103
|
-
function DeploymentRunServiceStatusFromJSON(
|
|
29104
|
-
return DeploymentRunServiceStatusFromJSONTyped(
|
|
29477
|
+
function DeploymentRunServiceStatusFromJSON(json2) {
|
|
29478
|
+
return DeploymentRunServiceStatusFromJSONTyped(json2, false);
|
|
29105
29479
|
}
|
|
29106
|
-
function DeploymentRunServiceStatusFromJSONTyped(
|
|
29107
|
-
if (
|
|
29108
|
-
return
|
|
29480
|
+
function DeploymentRunServiceStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29481
|
+
if (json2 == null) {
|
|
29482
|
+
return json2;
|
|
29109
29483
|
}
|
|
29110
29484
|
return {
|
|
29111
|
-
serviceName:
|
|
29112
|
-
status: DeploymentStatusFromJSON(
|
|
29113
|
-
updateDate:
|
|
29114
|
-
serviceErrorMessages:
|
|
29115
|
-
errorMessage:
|
|
29485
|
+
serviceName: json2["serviceName"],
|
|
29486
|
+
status: DeploymentStatusFromJSON(json2["status"]),
|
|
29487
|
+
updateDate: json2["updateDate"] == null ? undefined : new Date(json2["updateDate"]),
|
|
29488
|
+
serviceErrorMessages: json2["serviceErrorMessages"].map(ResourceInstallErrorFromJSON),
|
|
29489
|
+
errorMessage: json2["errorMessage"] == null ? undefined : json2["errorMessage"]
|
|
29116
29490
|
};
|
|
29117
29491
|
}
|
|
29118
29492
|
// ../pipelines-sdk/generated/src/models/WorkflowAction.ts
|
|
29119
|
-
function WorkflowActionFromJSON(
|
|
29120
|
-
return WorkflowActionFromJSONTyped(
|
|
29493
|
+
function WorkflowActionFromJSON(json2) {
|
|
29494
|
+
return WorkflowActionFromJSONTyped(json2, false);
|
|
29121
29495
|
}
|
|
29122
|
-
function WorkflowActionFromJSONTyped(
|
|
29123
|
-
return
|
|
29496
|
+
function WorkflowActionFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29497
|
+
return json2;
|
|
29124
29498
|
}
|
|
29125
29499
|
|
|
29126
29500
|
// ../pipelines-sdk/generated/src/models/WorkflowError.ts
|
|
29127
|
-
function WorkflowErrorFromJSON(
|
|
29128
|
-
return WorkflowErrorFromJSONTyped(
|
|
29501
|
+
function WorkflowErrorFromJSON(json2) {
|
|
29502
|
+
return WorkflowErrorFromJSONTyped(json2, false);
|
|
29129
29503
|
}
|
|
29130
|
-
function WorkflowErrorFromJSONTyped(
|
|
29131
|
-
if (
|
|
29132
|
-
return
|
|
29504
|
+
function WorkflowErrorFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29505
|
+
if (json2 == null) {
|
|
29506
|
+
return json2;
|
|
29133
29507
|
}
|
|
29134
29508
|
return {
|
|
29135
|
-
errorMessage:
|
|
29136
|
-
serviceMessage:
|
|
29137
|
-
exceptionTrace:
|
|
29138
|
-
serviceName:
|
|
29509
|
+
errorMessage: json2["errorMessage"],
|
|
29510
|
+
serviceMessage: json2["serviceMessage"] == null ? undefined : json2["serviceMessage"],
|
|
29511
|
+
exceptionTrace: json2["exceptionTrace"] == null ? undefined : json2["exceptionTrace"],
|
|
29512
|
+
serviceName: json2["serviceName"] == null ? undefined : json2["serviceName"]
|
|
29139
29513
|
};
|
|
29140
29514
|
}
|
|
29141
29515
|
|
|
29142
29516
|
// ../pipelines-sdk/generated/src/models/PackageVersionOrigin.ts
|
|
29143
|
-
function PackageVersionOriginFromJSON(
|
|
29144
|
-
return PackageVersionOriginFromJSONTyped(
|
|
29517
|
+
function PackageVersionOriginFromJSON(json2) {
|
|
29518
|
+
return PackageVersionOriginFromJSONTyped(json2, false);
|
|
29145
29519
|
}
|
|
29146
|
-
function PackageVersionOriginFromJSONTyped(
|
|
29147
|
-
return
|
|
29520
|
+
function PackageVersionOriginFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29521
|
+
return json2;
|
|
29148
29522
|
}
|
|
29149
29523
|
|
|
29150
29524
|
// ../pipelines-sdk/generated/src/models/DeploymentRunStatus.ts
|
|
29151
|
-
function DeploymentRunStatusFromJSON(
|
|
29152
|
-
return DeploymentRunStatusFromJSONTyped(
|
|
29525
|
+
function DeploymentRunStatusFromJSON(json2) {
|
|
29526
|
+
return DeploymentRunStatusFromJSONTyped(json2, false);
|
|
29153
29527
|
}
|
|
29154
|
-
function DeploymentRunStatusFromJSONTyped(
|
|
29155
|
-
if (
|
|
29156
|
-
return
|
|
29528
|
+
function DeploymentRunStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29529
|
+
if (json2 == null) {
|
|
29530
|
+
return json2;
|
|
29157
29531
|
}
|
|
29158
29532
|
return {
|
|
29159
|
-
deploymentKey:
|
|
29160
|
-
installDeploymentKey:
|
|
29161
|
-
deploymentName:
|
|
29162
|
-
configurationKey:
|
|
29163
|
-
installedRootFolderKey:
|
|
29164
|
-
packageName:
|
|
29165
|
-
packageVersion:
|
|
29166
|
-
packageVersionOrigin: PackageVersionOriginFromJSON(
|
|
29167
|
-
packageVersionKey:
|
|
29168
|
-
status: DeploymentStatusFromJSON(
|
|
29169
|
-
authorName:
|
|
29170
|
-
startDate: new Date(
|
|
29171
|
-
endDate:
|
|
29172
|
-
errorMessage:
|
|
29173
|
-
actions:
|
|
29174
|
-
operation: DeploymentOperationFromJSON(
|
|
29175
|
-
services:
|
|
29176
|
-
supportsAutomaticActivation:
|
|
29533
|
+
deploymentKey: json2["deploymentKey"],
|
|
29534
|
+
installDeploymentKey: json2["installDeploymentKey"],
|
|
29535
|
+
deploymentName: json2["deploymentName"],
|
|
29536
|
+
configurationKey: json2["configurationKey"],
|
|
29537
|
+
installedRootFolderKey: json2["installedRootFolderKey"] == null ? undefined : json2["installedRootFolderKey"],
|
|
29538
|
+
packageName: json2["packageName"],
|
|
29539
|
+
packageVersion: json2["packageVersion"],
|
|
29540
|
+
packageVersionOrigin: PackageVersionOriginFromJSON(json2["packageVersionOrigin"]),
|
|
29541
|
+
packageVersionKey: json2["packageVersionKey"],
|
|
29542
|
+
status: DeploymentStatusFromJSON(json2["status"]),
|
|
29543
|
+
authorName: json2["authorName"],
|
|
29544
|
+
startDate: new Date(json2["startDate"]),
|
|
29545
|
+
endDate: json2["endDate"] == null ? undefined : new Date(json2["endDate"]),
|
|
29546
|
+
errorMessage: json2["errorMessage"] == null ? undefined : json2["errorMessage"].map(WorkflowErrorFromJSON),
|
|
29547
|
+
actions: json2["actions"].map(WorkflowActionFromJSON),
|
|
29548
|
+
operation: DeploymentOperationFromJSON(json2["operation"]),
|
|
29549
|
+
services: json2["services"].map(DeploymentRunServiceStatusFromJSON),
|
|
29550
|
+
supportsAutomaticActivation: json2["supportsAutomaticActivation"]
|
|
29177
29551
|
};
|
|
29178
29552
|
}
|
|
29179
29553
|
// ../pipelines-sdk/generated/src/models/DeploymentScheduleErrorDto.ts
|
|
29180
|
-
function DeploymentScheduleErrorDtoFromJSON(
|
|
29181
|
-
return DeploymentScheduleErrorDtoFromJSONTyped(
|
|
29554
|
+
function DeploymentScheduleErrorDtoFromJSON(json2) {
|
|
29555
|
+
return DeploymentScheduleErrorDtoFromJSONTyped(json2, false);
|
|
29182
29556
|
}
|
|
29183
|
-
function DeploymentScheduleErrorDtoFromJSONTyped(
|
|
29184
|
-
if (
|
|
29185
|
-
return
|
|
29557
|
+
function DeploymentScheduleErrorDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29558
|
+
if (json2 == null) {
|
|
29559
|
+
return json2;
|
|
29186
29560
|
}
|
|
29187
29561
|
return {
|
|
29188
|
-
errorText:
|
|
29189
|
-
errorCode:
|
|
29562
|
+
errorText: json2["errorText"],
|
|
29563
|
+
errorCode: json2["errorCode"] == null ? undefined : json2["errorCode"]
|
|
29190
29564
|
};
|
|
29191
29565
|
}
|
|
29192
29566
|
// ../pipelines-sdk/generated/src/models/DeploymentValidationErrorType.ts
|
|
29193
|
-
function DeploymentValidationErrorTypeFromJSON(
|
|
29194
|
-
return DeploymentValidationErrorTypeFromJSONTyped(
|
|
29567
|
+
function DeploymentValidationErrorTypeFromJSON(json2) {
|
|
29568
|
+
return DeploymentValidationErrorTypeFromJSONTyped(json2, false);
|
|
29195
29569
|
}
|
|
29196
|
-
function DeploymentValidationErrorTypeFromJSONTyped(
|
|
29197
|
-
return
|
|
29570
|
+
function DeploymentValidationErrorTypeFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29571
|
+
return json2;
|
|
29198
29572
|
}
|
|
29199
29573
|
// ../pipelines-sdk/generated/src/models/ExtendedPackageVersionState.ts
|
|
29200
|
-
function ExtendedPackageVersionStateFromJSON(
|
|
29201
|
-
return ExtendedPackageVersionStateFromJSONTyped(
|
|
29574
|
+
function ExtendedPackageVersionStateFromJSON(json2) {
|
|
29575
|
+
return ExtendedPackageVersionStateFromJSONTyped(json2, false);
|
|
29202
29576
|
}
|
|
29203
|
-
function ExtendedPackageVersionStateFromJSONTyped(
|
|
29204
|
-
return
|
|
29577
|
+
function ExtendedPackageVersionStateFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29578
|
+
return json2;
|
|
29205
29579
|
}
|
|
29206
29580
|
// ../pipelines-sdk/generated/src/models/FolderInfo.ts
|
|
29207
|
-
function FolderInfoFromJSON(
|
|
29208
|
-
return FolderInfoFromJSONTyped(
|
|
29581
|
+
function FolderInfoFromJSON(json2) {
|
|
29582
|
+
return FolderInfoFromJSONTyped(json2, false);
|
|
29209
29583
|
}
|
|
29210
|
-
function FolderInfoFromJSONTyped(
|
|
29211
|
-
if (
|
|
29212
|
-
return
|
|
29584
|
+
function FolderInfoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29585
|
+
if (json2 == null) {
|
|
29586
|
+
return json2;
|
|
29213
29587
|
}
|
|
29214
29588
|
return {
|
|
29215
|
-
fullyQualifiedName:
|
|
29216
|
-
path:
|
|
29217
|
-
folderKey:
|
|
29218
|
-
serviceFolderKey:
|
|
29589
|
+
fullyQualifiedName: json2["fullyQualifiedName"],
|
|
29590
|
+
path: json2["path"] == null ? undefined : json2["path"],
|
|
29591
|
+
folderKey: json2["folderKey"] == null ? undefined : json2["folderKey"],
|
|
29592
|
+
serviceFolderKey: json2["serviceFolderKey"] == null ? undefined : json2["serviceFolderKey"]
|
|
29219
29593
|
};
|
|
29220
29594
|
}
|
|
29221
29595
|
// ../pipelines-sdk/generated/src/models/ResourceTaskStatus.ts
|
|
29222
|
-
function ResourceTaskStatusFromJSON(
|
|
29223
|
-
return ResourceTaskStatusFromJSONTyped(
|
|
29596
|
+
function ResourceTaskStatusFromJSON(json2) {
|
|
29597
|
+
return ResourceTaskStatusFromJSONTyped(json2, false);
|
|
29224
29598
|
}
|
|
29225
|
-
function ResourceTaskStatusFromJSONTyped(
|
|
29226
|
-
return
|
|
29599
|
+
function ResourceTaskStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29600
|
+
return json2;
|
|
29227
29601
|
}
|
|
29228
29602
|
|
|
29229
29603
|
// ../pipelines-sdk/generated/src/models/PackagePublishResult.ts
|
|
29230
|
-
function PackagePublishResultFromJSON(
|
|
29231
|
-
return PackagePublishResultFromJSONTyped(
|
|
29604
|
+
function PackagePublishResultFromJSON(json2) {
|
|
29605
|
+
return PackagePublishResultFromJSONTyped(json2, false);
|
|
29232
29606
|
}
|
|
29233
|
-
function PackagePublishResultFromJSONTyped(
|
|
29234
|
-
if (
|
|
29235
|
-
return
|
|
29607
|
+
function PackagePublishResultFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29608
|
+
if (json2 == null) {
|
|
29609
|
+
return json2;
|
|
29236
29610
|
}
|
|
29237
29611
|
return {
|
|
29238
|
-
status: ResourceTaskStatusFromJSON(
|
|
29239
|
-
packageName:
|
|
29240
|
-
packageVersionKey:
|
|
29612
|
+
status: ResourceTaskStatusFromJSON(json2["status"]),
|
|
29613
|
+
packageName: json2["packageName"],
|
|
29614
|
+
packageVersionKey: json2["packageVersionKey"] == null ? undefined : json2["packageVersionKey"]
|
|
29241
29615
|
};
|
|
29242
29616
|
}
|
|
29243
29617
|
// ../pipelines-sdk/generated/src/models/ResourceStats.ts
|
|
29244
|
-
function ResourceStatsFromJSON(
|
|
29245
|
-
return ResourceStatsFromJSONTyped(
|
|
29618
|
+
function ResourceStatsFromJSON(json2) {
|
|
29619
|
+
return ResourceStatsFromJSONTyped(json2, false);
|
|
29246
29620
|
}
|
|
29247
|
-
function ResourceStatsFromJSONTyped(
|
|
29248
|
-
if (
|
|
29249
|
-
return
|
|
29621
|
+
function ResourceStatsFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29622
|
+
if (json2 == null) {
|
|
29623
|
+
return json2;
|
|
29250
29624
|
}
|
|
29251
29625
|
return {
|
|
29252
|
-
count:
|
|
29253
|
-
kind:
|
|
29254
|
-
serviceName:
|
|
29626
|
+
count: json2["count"],
|
|
29627
|
+
kind: json2["kind"],
|
|
29628
|
+
serviceName: json2["serviceName"]
|
|
29255
29629
|
};
|
|
29256
29630
|
}
|
|
29257
29631
|
|
|
29258
29632
|
// ../pipelines-sdk/generated/src/models/PackageVersionResourceDto.ts
|
|
29259
|
-
function PackageVersionResourceDtoFromJSON(
|
|
29260
|
-
return PackageVersionResourceDtoFromJSONTyped(
|
|
29633
|
+
function PackageVersionResourceDtoFromJSON(json2) {
|
|
29634
|
+
return PackageVersionResourceDtoFromJSONTyped(json2, false);
|
|
29261
29635
|
}
|
|
29262
|
-
function PackageVersionResourceDtoFromJSONTyped(
|
|
29263
|
-
if (
|
|
29264
|
-
return
|
|
29636
|
+
function PackageVersionResourceDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29637
|
+
if (json2 == null) {
|
|
29638
|
+
return json2;
|
|
29265
29639
|
}
|
|
29266
29640
|
return {
|
|
29267
|
-
key:
|
|
29268
|
-
name:
|
|
29269
|
-
kind:
|
|
29270
|
-
type:
|
|
29271
|
-
apiVersion:
|
|
29272
|
-
folders:
|
|
29641
|
+
key: json2["key"],
|
|
29642
|
+
name: json2["name"],
|
|
29643
|
+
kind: json2["kind"],
|
|
29644
|
+
type: json2["type"] == null ? undefined : json2["type"],
|
|
29645
|
+
apiVersion: json2["apiVersion"],
|
|
29646
|
+
folders: json2["folders"].map(FolderInfoFromJSON)
|
|
29273
29647
|
};
|
|
29274
29648
|
}
|
|
29275
29649
|
|
|
29276
29650
|
// ../pipelines-sdk/generated/src/models/PackageVersionComponentsDto.ts
|
|
29277
|
-
function PackageVersionComponentsDtoFromJSON(
|
|
29278
|
-
return PackageVersionComponentsDtoFromJSONTyped(
|
|
29651
|
+
function PackageVersionComponentsDtoFromJSON(json2) {
|
|
29652
|
+
return PackageVersionComponentsDtoFromJSONTyped(json2, false);
|
|
29279
29653
|
}
|
|
29280
|
-
function PackageVersionComponentsDtoFromJSONTyped(
|
|
29281
|
-
if (
|
|
29282
|
-
return
|
|
29654
|
+
function PackageVersionComponentsDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29655
|
+
if (json2 == null) {
|
|
29656
|
+
return json2;
|
|
29283
29657
|
}
|
|
29284
29658
|
return {
|
|
29285
|
-
count:
|
|
29286
|
-
resources:
|
|
29287
|
-
stats:
|
|
29659
|
+
count: json2["count"],
|
|
29660
|
+
resources: json2["resources"].map(PackageVersionResourceDtoFromJSON),
|
|
29661
|
+
stats: json2["stats"].map(ResourceStatsFromJSON)
|
|
29288
29662
|
};
|
|
29289
29663
|
}
|
|
29290
29664
|
// ../pipelines-sdk/generated/src/models/PackageVersionInfoDto.ts
|
|
29291
|
-
function PackageVersionInfoDtoFromJSON(
|
|
29292
|
-
return PackageVersionInfoDtoFromJSONTyped(
|
|
29665
|
+
function PackageVersionInfoDtoFromJSON(json2) {
|
|
29666
|
+
return PackageVersionInfoDtoFromJSONTyped(json2, false);
|
|
29293
29667
|
}
|
|
29294
|
-
function PackageVersionInfoDtoFromJSONTyped(
|
|
29295
|
-
if (
|
|
29296
|
-
return
|
|
29668
|
+
function PackageVersionInfoDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29669
|
+
if (json2 == null) {
|
|
29670
|
+
return json2;
|
|
29297
29671
|
}
|
|
29298
29672
|
return {
|
|
29299
|
-
key:
|
|
29300
|
-
packageName:
|
|
29301
|
-
packageVersion:
|
|
29302
|
-
publishDate: new Date(
|
|
29303
|
-
authorName:
|
|
29304
|
-
authorEmail:
|
|
29305
|
-
description:
|
|
29306
|
-
releaseNotes:
|
|
29307
|
-
state: ExtendedPackageVersionStateFromJSON(
|
|
29308
|
-
solutionRootFolderName:
|
|
29309
|
-
locationKey:
|
|
29310
|
-
components:
|
|
29673
|
+
key: json2["key"],
|
|
29674
|
+
packageName: json2["packageName"],
|
|
29675
|
+
packageVersion: json2["packageVersion"],
|
|
29676
|
+
publishDate: new Date(json2["publishDate"]),
|
|
29677
|
+
authorName: json2["authorName"],
|
|
29678
|
+
authorEmail: json2["authorEmail"] == null ? undefined : json2["authorEmail"],
|
|
29679
|
+
description: json2["description"] == null ? undefined : json2["description"],
|
|
29680
|
+
releaseNotes: json2["releaseNotes"] == null ? undefined : json2["releaseNotes"],
|
|
29681
|
+
state: ExtendedPackageVersionStateFromJSON(json2["state"]),
|
|
29682
|
+
solutionRootFolderName: json2["solutionRootFolderName"],
|
|
29683
|
+
locationKey: json2["locationKey"] == null ? undefined : json2["locationKey"],
|
|
29684
|
+
components: json2["components"] == null ? undefined : PackageVersionComponentsDtoFromJSON(json2["components"])
|
|
29311
29685
|
};
|
|
29312
29686
|
}
|
|
29313
29687
|
// ../pipelines-sdk/generated/src/models/PackageVersionInfoExtendedDto.ts
|
|
29314
|
-
function PackageVersionInfoExtendedDtoFromJSON(
|
|
29315
|
-
return PackageVersionInfoExtendedDtoFromJSONTyped(
|
|
29688
|
+
function PackageVersionInfoExtendedDtoFromJSON(json2) {
|
|
29689
|
+
return PackageVersionInfoExtendedDtoFromJSONTyped(json2, false);
|
|
29316
29690
|
}
|
|
29317
|
-
function PackageVersionInfoExtendedDtoFromJSONTyped(
|
|
29318
|
-
if (
|
|
29319
|
-
return
|
|
29691
|
+
function PackageVersionInfoExtendedDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29692
|
+
if (json2 == null) {
|
|
29693
|
+
return json2;
|
|
29320
29694
|
}
|
|
29321
29695
|
return {
|
|
29322
|
-
key:
|
|
29323
|
-
packageName:
|
|
29324
|
-
packageVersion:
|
|
29325
|
-
publishDate: new Date(
|
|
29326
|
-
authorName:
|
|
29327
|
-
authorEmail:
|
|
29328
|
-
description:
|
|
29329
|
-
releaseNotes:
|
|
29330
|
-
state: ExtendedPackageVersionStateFromJSON(
|
|
29331
|
-
solutionRootFolderName:
|
|
29332
|
-
locationKey:
|
|
29333
|
-
components:
|
|
29334
|
-
lastOperation: DeploymentOperationFromJSON(
|
|
29335
|
-
lastOperationStatus: DeploymentOperationStatusFromJSON(
|
|
29336
|
-
lastOperationInstanceId:
|
|
29696
|
+
key: json2["key"],
|
|
29697
|
+
packageName: json2["packageName"],
|
|
29698
|
+
packageVersion: json2["packageVersion"],
|
|
29699
|
+
publishDate: new Date(json2["publishDate"]),
|
|
29700
|
+
authorName: json2["authorName"],
|
|
29701
|
+
authorEmail: json2["authorEmail"] == null ? undefined : json2["authorEmail"],
|
|
29702
|
+
description: json2["description"] == null ? undefined : json2["description"],
|
|
29703
|
+
releaseNotes: json2["releaseNotes"] == null ? undefined : json2["releaseNotes"],
|
|
29704
|
+
state: ExtendedPackageVersionStateFromJSON(json2["state"]),
|
|
29705
|
+
solutionRootFolderName: json2["solutionRootFolderName"],
|
|
29706
|
+
locationKey: json2["locationKey"] == null ? undefined : json2["locationKey"],
|
|
29707
|
+
components: json2["components"] == null ? undefined : PackageVersionComponentsDtoFromJSON(json2["components"]),
|
|
29708
|
+
lastOperation: DeploymentOperationFromJSON(json2["lastOperation"]),
|
|
29709
|
+
lastOperationStatus: DeploymentOperationStatusFromJSON(json2["lastOperationStatus"]),
|
|
29710
|
+
lastOperationInstanceId: json2["lastOperationInstanceId"] == null ? undefined : json2["lastOperationInstanceId"]
|
|
29337
29711
|
};
|
|
29338
29712
|
}
|
|
29339
29713
|
// ../pipelines-sdk/generated/src/models/PipelineDeploymentConflictErrorDto.ts
|
|
29340
|
-
function PipelineDeploymentConflictErrorDtoFromJSON(
|
|
29341
|
-
return PipelineDeploymentConflictErrorDtoFromJSONTyped(
|
|
29714
|
+
function PipelineDeploymentConflictErrorDtoFromJSON(json2) {
|
|
29715
|
+
return PipelineDeploymentConflictErrorDtoFromJSONTyped(json2, false);
|
|
29342
29716
|
}
|
|
29343
|
-
function PipelineDeploymentConflictErrorDtoFromJSONTyped(
|
|
29344
|
-
if (
|
|
29345
|
-
return
|
|
29717
|
+
function PipelineDeploymentConflictErrorDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29718
|
+
if (json2 == null) {
|
|
29719
|
+
return json2;
|
|
29346
29720
|
}
|
|
29347
29721
|
return {
|
|
29348
|
-
kind:
|
|
29349
|
-
name:
|
|
29350
|
-
resourceKey:
|
|
29351
|
-
errorType:
|
|
29352
|
-
errorText:
|
|
29353
|
-
errorCode:
|
|
29354
|
-
conflictFixingActions:
|
|
29722
|
+
kind: json2["kind"],
|
|
29723
|
+
name: json2["name"],
|
|
29724
|
+
resourceKey: json2["resourceKey"],
|
|
29725
|
+
errorType: json2["errorType"] == null ? undefined : DeploymentValidationErrorTypeFromJSON(json2["errorType"]),
|
|
29726
|
+
errorText: json2["errorText"],
|
|
29727
|
+
errorCode: json2["errorCode"] == null ? undefined : json2["errorCode"],
|
|
29728
|
+
conflictFixingActions: json2["conflictFixingActions"].map(DeploymentResourceValidationActionFromJSON)
|
|
29355
29729
|
};
|
|
29356
29730
|
}
|
|
29357
29731
|
// ../pipelines-sdk/generated/src/models/PipelineDeploymentValidationErrorDto.ts
|
|
29358
|
-
function PipelineDeploymentValidationErrorDtoFromJSON(
|
|
29359
|
-
return PipelineDeploymentValidationErrorDtoFromJSONTyped(
|
|
29732
|
+
function PipelineDeploymentValidationErrorDtoFromJSON(json2) {
|
|
29733
|
+
return PipelineDeploymentValidationErrorDtoFromJSONTyped(json2, false);
|
|
29360
29734
|
}
|
|
29361
|
-
function PipelineDeploymentValidationErrorDtoFromJSONTyped(
|
|
29362
|
-
if (
|
|
29363
|
-
return
|
|
29735
|
+
function PipelineDeploymentValidationErrorDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29736
|
+
if (json2 == null) {
|
|
29737
|
+
return json2;
|
|
29364
29738
|
}
|
|
29365
29739
|
return {
|
|
29366
|
-
kind:
|
|
29367
|
-
name:
|
|
29368
|
-
resourceKey:
|
|
29369
|
-
errorType:
|
|
29370
|
-
errorText:
|
|
29371
|
-
errorCode:
|
|
29740
|
+
kind: json2["kind"],
|
|
29741
|
+
name: json2["name"],
|
|
29742
|
+
resourceKey: json2["resourceKey"],
|
|
29743
|
+
errorType: json2["errorType"] == null ? undefined : DeploymentValidationErrorTypeFromJSON(json2["errorType"]),
|
|
29744
|
+
errorText: json2["errorText"],
|
|
29745
|
+
errorCode: json2["errorCode"] == null ? undefined : json2["errorCode"]
|
|
29372
29746
|
};
|
|
29373
29747
|
}
|
|
29374
29748
|
|
|
29375
29749
|
// ../pipelines-sdk/generated/src/models/PipelineDeploymentValidationResultDto.ts
|
|
29376
|
-
function PipelineDeploymentValidationResultDtoFromJSON(
|
|
29377
|
-
return PipelineDeploymentValidationResultDtoFromJSONTyped(
|
|
29750
|
+
function PipelineDeploymentValidationResultDtoFromJSON(json2) {
|
|
29751
|
+
return PipelineDeploymentValidationResultDtoFromJSONTyped(json2, false);
|
|
29378
29752
|
}
|
|
29379
|
-
function PipelineDeploymentValidationResultDtoFromJSONTyped(
|
|
29380
|
-
if (
|
|
29381
|
-
return
|
|
29753
|
+
function PipelineDeploymentValidationResultDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29754
|
+
if (json2 == null) {
|
|
29755
|
+
return json2;
|
|
29382
29756
|
}
|
|
29383
29757
|
return {
|
|
29384
|
-
success:
|
|
29385
|
-
validationErrors:
|
|
29386
|
-
conflictErrors:
|
|
29758
|
+
success: json2["success"] == null ? undefined : json2["success"],
|
|
29759
|
+
validationErrors: json2["validationErrors"].map(PipelineDeploymentValidationErrorDtoFromJSON),
|
|
29760
|
+
conflictErrors: json2["conflictErrors"].map(PipelineDeploymentConflictErrorDtoFromJSON)
|
|
29387
29761
|
};
|
|
29388
29762
|
}
|
|
29389
29763
|
|
|
29390
29764
|
// ../pipelines-sdk/generated/src/models/PipelineDeploymentStatus.ts
|
|
29391
|
-
function PipelineDeploymentStatusFromJSON(
|
|
29392
|
-
return PipelineDeploymentStatusFromJSONTyped(
|
|
29765
|
+
function PipelineDeploymentStatusFromJSON(json2) {
|
|
29766
|
+
return PipelineDeploymentStatusFromJSONTyped(json2, false);
|
|
29393
29767
|
}
|
|
29394
|
-
function PipelineDeploymentStatusFromJSONTyped(
|
|
29395
|
-
return
|
|
29768
|
+
function PipelineDeploymentStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29769
|
+
return json2;
|
|
29396
29770
|
}
|
|
29397
29771
|
|
|
29398
29772
|
// ../pipelines-sdk/generated/src/models/PipelineDeploymentResult.ts
|
|
29399
|
-
function PipelineDeploymentResultFromJSON(
|
|
29400
|
-
return PipelineDeploymentResultFromJSONTyped(
|
|
29773
|
+
function PipelineDeploymentResultFromJSON(json2) {
|
|
29774
|
+
return PipelineDeploymentResultFromJSONTyped(json2, false);
|
|
29401
29775
|
}
|
|
29402
|
-
function PipelineDeploymentResultFromJSONTyped(
|
|
29403
|
-
if (
|
|
29404
|
-
return
|
|
29776
|
+
function PipelineDeploymentResultFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29777
|
+
if (json2 == null) {
|
|
29778
|
+
return json2;
|
|
29405
29779
|
}
|
|
29406
29780
|
return {
|
|
29407
|
-
status: PipelineDeploymentStatusFromJSON(
|
|
29408
|
-
validationResult: PipelineDeploymentValidationResultDtoFromJSON(
|
|
29409
|
-
deploymentResult:
|
|
29410
|
-
deploymentKey:
|
|
29411
|
-
configurationKey:
|
|
29412
|
-
instanceId:
|
|
29413
|
-
conflictFixingErrors:
|
|
29414
|
-
deploymentScheduleErrors:
|
|
29781
|
+
status: PipelineDeploymentStatusFromJSON(json2["status"]),
|
|
29782
|
+
validationResult: PipelineDeploymentValidationResultDtoFromJSON(json2["validationResult"]),
|
|
29783
|
+
deploymentResult: json2["deploymentResult"] == null ? undefined : DeploymentRunStatusFromJSON(json2["deploymentResult"]),
|
|
29784
|
+
deploymentKey: json2["deploymentKey"],
|
|
29785
|
+
configurationKey: json2["configurationKey"],
|
|
29786
|
+
instanceId: json2["instanceId"] == null ? undefined : json2["instanceId"],
|
|
29787
|
+
conflictFixingErrors: json2["conflictFixingErrors"].map(PipelineDeploymentValidationErrorDtoFromJSON),
|
|
29788
|
+
deploymentScheduleErrors: json2["deploymentScheduleErrors"].map(DeploymentScheduleErrorDtoFromJSON)
|
|
29415
29789
|
};
|
|
29416
29790
|
}
|
|
29417
29791
|
// ../pipelines-sdk/generated/src/models/PipelineDeploymentResultRef.ts
|
|
29418
|
-
function PipelineDeploymentResultRefFromJSON(
|
|
29419
|
-
return PipelineDeploymentResultRefFromJSONTyped(
|
|
29792
|
+
function PipelineDeploymentResultRefFromJSON(json2) {
|
|
29793
|
+
return PipelineDeploymentResultRefFromJSONTyped(json2, false);
|
|
29420
29794
|
}
|
|
29421
|
-
function PipelineDeploymentResultRefFromJSONTyped(
|
|
29422
|
-
if (
|
|
29423
|
-
return
|
|
29795
|
+
function PipelineDeploymentResultRefFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29796
|
+
if (json2 == null) {
|
|
29797
|
+
return json2;
|
|
29424
29798
|
}
|
|
29425
29799
|
return {
|
|
29426
|
-
pipelineDeploymentId:
|
|
29800
|
+
pipelineDeploymentId: json2["pipelineDeploymentId"]
|
|
29427
29801
|
};
|
|
29428
29802
|
}
|
|
29429
29803
|
// ../pipelines-sdk/generated/src/models/SolutionProjectSyncStatus.ts
|
|
29430
|
-
function SolutionProjectSyncStatusFromJSON(
|
|
29431
|
-
return SolutionProjectSyncStatusFromJSONTyped(
|
|
29804
|
+
function SolutionProjectSyncStatusFromJSON(json2) {
|
|
29805
|
+
return SolutionProjectSyncStatusFromJSONTyped(json2, false);
|
|
29432
29806
|
}
|
|
29433
|
-
function SolutionProjectSyncStatusFromJSONTyped(
|
|
29434
|
-
return
|
|
29807
|
+
function SolutionProjectSyncStatusFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29808
|
+
return json2;
|
|
29435
29809
|
}
|
|
29436
29810
|
|
|
29437
29811
|
// ../pipelines-sdk/generated/src/models/SolutionProjectSyncErrorDto.ts
|
|
29438
|
-
function SolutionProjectSyncErrorDtoFromJSON(
|
|
29439
|
-
return SolutionProjectSyncErrorDtoFromJSONTyped(
|
|
29812
|
+
function SolutionProjectSyncErrorDtoFromJSON(json2) {
|
|
29813
|
+
return SolutionProjectSyncErrorDtoFromJSONTyped(json2, false);
|
|
29440
29814
|
}
|
|
29441
|
-
function SolutionProjectSyncErrorDtoFromJSONTyped(
|
|
29442
|
-
if (
|
|
29443
|
-
return
|
|
29815
|
+
function SolutionProjectSyncErrorDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29816
|
+
if (json2 == null) {
|
|
29817
|
+
return json2;
|
|
29444
29818
|
}
|
|
29445
29819
|
return {
|
|
29446
|
-
serviceName:
|
|
29447
|
-
resourceIdentifiers:
|
|
29448
|
-
errorMessage:
|
|
29820
|
+
serviceName: json2["serviceName"],
|
|
29821
|
+
resourceIdentifiers: json2["resourceIdentifiers"].map(BaseResourceIdentifierFromJSON),
|
|
29822
|
+
errorMessage: json2["errorMessage"]
|
|
29449
29823
|
};
|
|
29450
29824
|
}
|
|
29451
29825
|
|
|
29452
29826
|
// ../pipelines-sdk/generated/src/models/ProjectSynchronizationDto.ts
|
|
29453
|
-
function ProjectSynchronizationDtoFromJSON(
|
|
29454
|
-
return ProjectSynchronizationDtoFromJSONTyped(
|
|
29827
|
+
function ProjectSynchronizationDtoFromJSON(json2) {
|
|
29828
|
+
return ProjectSynchronizationDtoFromJSONTyped(json2, false);
|
|
29455
29829
|
}
|
|
29456
|
-
function ProjectSynchronizationDtoFromJSONTyped(
|
|
29457
|
-
if (
|
|
29458
|
-
return
|
|
29830
|
+
function ProjectSynchronizationDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
29831
|
+
if (json2 == null) {
|
|
29832
|
+
return json2;
|
|
29459
29833
|
}
|
|
29460
29834
|
return {
|
|
29461
|
-
projectName:
|
|
29462
|
-
syncErrors:
|
|
29463
|
-
status: SolutionProjectSyncStatusFromJSON(
|
|
29835
|
+
projectName: json2["projectName"],
|
|
29836
|
+
syncErrors: json2["syncErrors"].map(SolutionProjectSyncErrorDtoFromJSON),
|
|
29837
|
+
status: SolutionProjectSyncStatusFromJSON(json2["status"])
|
|
29464
29838
|
};
|
|
29465
29839
|
}
|
|
29466
29840
|
// ../pipelines-sdk/generated/src/models/PublishProjectRequest.ts
|
|
29467
|
-
function PublishProjectRequestToJSON(
|
|
29468
|
-
return PublishProjectRequestToJSONTyped(
|
|
29841
|
+
function PublishProjectRequestToJSON(json2) {
|
|
29842
|
+
return PublishProjectRequestToJSONTyped(json2, false);
|
|
29469
29843
|
}
|
|
29470
29844
|
function PublishProjectRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
29471
29845
|
if (value == null) {
|
|
@@ -29484,8 +29858,8 @@ function SyncOptionToJSON(value) {
|
|
|
29484
29858
|
return value;
|
|
29485
29859
|
}
|
|
29486
29860
|
// ../pipelines-sdk/generated/src/models/SyncProjectOptions.ts
|
|
29487
|
-
function SyncProjectOptionsToJSON(
|
|
29488
|
-
return SyncProjectOptionsToJSONTyped(
|
|
29861
|
+
function SyncProjectOptionsToJSON(json2) {
|
|
29862
|
+
return SyncProjectOptionsToJSONTyped(json2, false);
|
|
29489
29863
|
}
|
|
29490
29864
|
function SyncProjectOptionsToJSONTyped(value, ignoreDiscriminator = false) {
|
|
29491
29865
|
if (value == null) {
|
|
@@ -30215,7 +30589,7 @@ class TextApiResponse2 {
|
|
|
30215
30589
|
var package_default2 = {
|
|
30216
30590
|
name: "@uipath/solution-sdk",
|
|
30217
30591
|
license: "MIT",
|
|
30218
|
-
version: "1.198.0-preview.
|
|
30592
|
+
version: "1.198.0-preview.86",
|
|
30219
30593
|
repository: {
|
|
30220
30594
|
type: "git",
|
|
30221
30595
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -30267,159 +30641,159 @@ var package_default2 = {
|
|
|
30267
30641
|
var SDK_USER_AGENT2 = getSdkUserAgentToken(package_default2);
|
|
30268
30642
|
installSdkUserAgentHeader(BaseAPI2, SDK_USER_AGENT2);
|
|
30269
30643
|
// ../solution-sdk/generated/src/models/ResponseDictionaryDto.ts
|
|
30270
|
-
function ResponseDictionaryDtoFromJSON2(
|
|
30271
|
-
return ResponseDictionaryDtoFromJSONTyped3(
|
|
30644
|
+
function ResponseDictionaryDtoFromJSON2(json2) {
|
|
30645
|
+
return ResponseDictionaryDtoFromJSONTyped3(json2, false);
|
|
30272
30646
|
}
|
|
30273
|
-
function ResponseDictionaryDtoFromJSONTyped3(
|
|
30274
|
-
if (
|
|
30275
|
-
return
|
|
30647
|
+
function ResponseDictionaryDtoFromJSONTyped3(json2, ignoreDiscriminator) {
|
|
30648
|
+
if (json2 == null) {
|
|
30649
|
+
return json2;
|
|
30276
30650
|
}
|
|
30277
30651
|
return {
|
|
30278
|
-
keys:
|
|
30279
|
-
values:
|
|
30652
|
+
keys: json2["keys"] == null ? undefined : json2["keys"],
|
|
30653
|
+
values: json2["values"] == null ? undefined : json2["values"]
|
|
30280
30654
|
};
|
|
30281
30655
|
}
|
|
30282
30656
|
|
|
30283
30657
|
// ../solution-sdk/generated/src/models/BlobFileAccessDto.ts
|
|
30284
|
-
function BlobFileAccessDtoFromJSON2(
|
|
30285
|
-
return BlobFileAccessDtoFromJSONTyped2(
|
|
30658
|
+
function BlobFileAccessDtoFromJSON2(json2) {
|
|
30659
|
+
return BlobFileAccessDtoFromJSONTyped2(json2, false);
|
|
30286
30660
|
}
|
|
30287
|
-
function BlobFileAccessDtoFromJSONTyped2(
|
|
30288
|
-
if (
|
|
30289
|
-
return
|
|
30661
|
+
function BlobFileAccessDtoFromJSONTyped2(json2, ignoreDiscriminator) {
|
|
30662
|
+
if (json2 == null) {
|
|
30663
|
+
return json2;
|
|
30290
30664
|
}
|
|
30291
30665
|
return {
|
|
30292
|
-
uri:
|
|
30293
|
-
verb:
|
|
30294
|
-
headers:
|
|
30666
|
+
uri: json2["uri"],
|
|
30667
|
+
verb: json2["verb"],
|
|
30668
|
+
headers: json2["headers"] == null ? undefined : ResponseDictionaryDtoFromJSON2(json2["headers"])
|
|
30295
30669
|
};
|
|
30296
30670
|
}
|
|
30297
30671
|
// ../solution-sdk/generated/src/models/ExtendedPackageVersionState.ts
|
|
30298
|
-
function ExtendedPackageVersionStateFromJSON2(
|
|
30299
|
-
return ExtendedPackageVersionStateFromJSONTyped4(
|
|
30672
|
+
function ExtendedPackageVersionStateFromJSON2(json2) {
|
|
30673
|
+
return ExtendedPackageVersionStateFromJSONTyped4(json2, false);
|
|
30300
30674
|
}
|
|
30301
|
-
function ExtendedPackageVersionStateFromJSONTyped4(
|
|
30302
|
-
return
|
|
30675
|
+
function ExtendedPackageVersionStateFromJSONTyped4(json2, ignoreDiscriminator) {
|
|
30676
|
+
return json2;
|
|
30303
30677
|
}
|
|
30304
30678
|
// ../solution-sdk/generated/src/models/FolderInfo.ts
|
|
30305
|
-
function FolderInfoFromJSON2(
|
|
30306
|
-
return FolderInfoFromJSONTyped3(
|
|
30679
|
+
function FolderInfoFromJSON2(json2) {
|
|
30680
|
+
return FolderInfoFromJSONTyped3(json2, false);
|
|
30307
30681
|
}
|
|
30308
|
-
function FolderInfoFromJSONTyped3(
|
|
30309
|
-
if (
|
|
30310
|
-
return
|
|
30682
|
+
function FolderInfoFromJSONTyped3(json2, ignoreDiscriminator) {
|
|
30683
|
+
if (json2 == null) {
|
|
30684
|
+
return json2;
|
|
30311
30685
|
}
|
|
30312
30686
|
return {
|
|
30313
|
-
fullyQualifiedName:
|
|
30314
|
-
path:
|
|
30315
|
-
folderKey:
|
|
30687
|
+
fullyQualifiedName: json2["fullyQualifiedName"],
|
|
30688
|
+
path: json2["path"] == null ? undefined : json2["path"],
|
|
30689
|
+
folderKey: json2["folderKey"] == null ? undefined : json2["folderKey"]
|
|
30316
30690
|
};
|
|
30317
30691
|
}
|
|
30318
30692
|
// ../solution-sdk/generated/src/models/LocationDto.ts
|
|
30319
|
-
function LocationDtoFromJSON(
|
|
30320
|
-
return LocationDtoFromJSONTyped(
|
|
30693
|
+
function LocationDtoFromJSON(json2) {
|
|
30694
|
+
return LocationDtoFromJSONTyped(json2, false);
|
|
30321
30695
|
}
|
|
30322
|
-
function LocationDtoFromJSONTyped(
|
|
30323
|
-
if (
|
|
30324
|
-
return
|
|
30696
|
+
function LocationDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
30697
|
+
if (json2 == null) {
|
|
30698
|
+
return json2;
|
|
30325
30699
|
}
|
|
30326
30700
|
return {
|
|
30327
|
-
name:
|
|
30328
|
-
key:
|
|
30329
|
-
isPersonalWorkspace:
|
|
30701
|
+
name: json2["name"],
|
|
30702
|
+
key: json2["key"],
|
|
30703
|
+
isPersonalWorkspace: json2["isPersonalWorkspace"]
|
|
30330
30704
|
};
|
|
30331
30705
|
}
|
|
30332
30706
|
// ../solution-sdk/generated/src/models/PackageInfo.ts
|
|
30333
|
-
function PackageInfoFromJSON(
|
|
30334
|
-
return PackageInfoFromJSONTyped(
|
|
30707
|
+
function PackageInfoFromJSON(json2) {
|
|
30708
|
+
return PackageInfoFromJSONTyped(json2, false);
|
|
30335
30709
|
}
|
|
30336
|
-
function PackageInfoFromJSONTyped(
|
|
30337
|
-
if (
|
|
30338
|
-
return
|
|
30710
|
+
function PackageInfoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
30711
|
+
if (json2 == null) {
|
|
30712
|
+
return json2;
|
|
30339
30713
|
}
|
|
30340
30714
|
return {
|
|
30341
|
-
key:
|
|
30342
|
-
name:
|
|
30343
|
-
latestVersion:
|
|
30344
|
-
packageVersionKey:
|
|
30345
|
-
authorName:
|
|
30346
|
-
authorEmail:
|
|
30347
|
-
publishDate: new Date(
|
|
30348
|
-
description:
|
|
30349
|
-
releaseNotes:
|
|
30350
|
-
state: ExtendedPackageVersionStateFromJSON2(
|
|
30351
|
-
solutionRootFolderName:
|
|
30352
|
-
hasUpgradeableDeployments:
|
|
30715
|
+
key: json2["key"],
|
|
30716
|
+
name: json2["name"],
|
|
30717
|
+
latestVersion: json2["latestVersion"],
|
|
30718
|
+
packageVersionKey: json2["packageVersionKey"],
|
|
30719
|
+
authorName: json2["authorName"],
|
|
30720
|
+
authorEmail: json2["authorEmail"] == null ? undefined : json2["authorEmail"],
|
|
30721
|
+
publishDate: new Date(json2["publishDate"]),
|
|
30722
|
+
description: json2["description"] == null ? undefined : json2["description"],
|
|
30723
|
+
releaseNotes: json2["releaseNotes"] == null ? undefined : json2["releaseNotes"],
|
|
30724
|
+
state: ExtendedPackageVersionStateFromJSON2(json2["state"]),
|
|
30725
|
+
solutionRootFolderName: json2["solutionRootFolderName"],
|
|
30726
|
+
hasUpgradeableDeployments: json2["hasUpgradeableDeployments"]
|
|
30353
30727
|
};
|
|
30354
30728
|
}
|
|
30355
30729
|
// ../solution-sdk/generated/src/models/ResourceStats.ts
|
|
30356
|
-
function ResourceStatsFromJSON2(
|
|
30357
|
-
return ResourceStatsFromJSONTyped3(
|
|
30730
|
+
function ResourceStatsFromJSON2(json2) {
|
|
30731
|
+
return ResourceStatsFromJSONTyped3(json2, false);
|
|
30358
30732
|
}
|
|
30359
|
-
function ResourceStatsFromJSONTyped3(
|
|
30360
|
-
if (
|
|
30361
|
-
return
|
|
30733
|
+
function ResourceStatsFromJSONTyped3(json2, ignoreDiscriminator) {
|
|
30734
|
+
if (json2 == null) {
|
|
30735
|
+
return json2;
|
|
30362
30736
|
}
|
|
30363
30737
|
return {
|
|
30364
|
-
count:
|
|
30365
|
-
kind:
|
|
30366
|
-
serviceName:
|
|
30738
|
+
count: json2["count"],
|
|
30739
|
+
kind: json2["kind"],
|
|
30740
|
+
serviceName: json2["serviceName"]
|
|
30367
30741
|
};
|
|
30368
30742
|
}
|
|
30369
30743
|
|
|
30370
30744
|
// ../solution-sdk/generated/src/models/PackageVersionResourceDto.ts
|
|
30371
|
-
function PackageVersionResourceDtoFromJSON2(
|
|
30372
|
-
return PackageVersionResourceDtoFromJSONTyped3(
|
|
30745
|
+
function PackageVersionResourceDtoFromJSON2(json2) {
|
|
30746
|
+
return PackageVersionResourceDtoFromJSONTyped3(json2, false);
|
|
30373
30747
|
}
|
|
30374
|
-
function PackageVersionResourceDtoFromJSONTyped3(
|
|
30375
|
-
if (
|
|
30376
|
-
return
|
|
30748
|
+
function PackageVersionResourceDtoFromJSONTyped3(json2, ignoreDiscriminator) {
|
|
30749
|
+
if (json2 == null) {
|
|
30750
|
+
return json2;
|
|
30377
30751
|
}
|
|
30378
30752
|
return {
|
|
30379
|
-
key:
|
|
30380
|
-
name:
|
|
30381
|
-
kind:
|
|
30382
|
-
type:
|
|
30383
|
-
apiVersion:
|
|
30384
|
-
folders:
|
|
30753
|
+
key: json2["key"],
|
|
30754
|
+
name: json2["name"],
|
|
30755
|
+
kind: json2["kind"],
|
|
30756
|
+
type: json2["type"] == null ? undefined : json2["type"],
|
|
30757
|
+
apiVersion: json2["apiVersion"],
|
|
30758
|
+
folders: json2["folders"].map(FolderInfoFromJSON2)
|
|
30385
30759
|
};
|
|
30386
30760
|
}
|
|
30387
30761
|
|
|
30388
30762
|
// ../solution-sdk/generated/src/models/PackageVersionComponentsDto.ts
|
|
30389
|
-
function PackageVersionComponentsDtoFromJSON2(
|
|
30390
|
-
return PackageVersionComponentsDtoFromJSONTyped4(
|
|
30763
|
+
function PackageVersionComponentsDtoFromJSON2(json2) {
|
|
30764
|
+
return PackageVersionComponentsDtoFromJSONTyped4(json2, false);
|
|
30391
30765
|
}
|
|
30392
|
-
function PackageVersionComponentsDtoFromJSONTyped4(
|
|
30393
|
-
if (
|
|
30394
|
-
return
|
|
30766
|
+
function PackageVersionComponentsDtoFromJSONTyped4(json2, ignoreDiscriminator) {
|
|
30767
|
+
if (json2 == null) {
|
|
30768
|
+
return json2;
|
|
30395
30769
|
}
|
|
30396
30770
|
return {
|
|
30397
|
-
count:
|
|
30398
|
-
resources:
|
|
30399
|
-
stats:
|
|
30771
|
+
count: json2["count"],
|
|
30772
|
+
resources: json2["resources"].map(PackageVersionResourceDtoFromJSON2),
|
|
30773
|
+
stats: json2["stats"].map(ResourceStatsFromJSON2)
|
|
30400
30774
|
};
|
|
30401
30775
|
}
|
|
30402
30776
|
// ../solution-sdk/generated/src/models/PackageVersionInfoDto.ts
|
|
30403
|
-
function PackageVersionInfoDtoFromJSON2(
|
|
30404
|
-
return PackageVersionInfoDtoFromJSONTyped2(
|
|
30777
|
+
function PackageVersionInfoDtoFromJSON2(json2) {
|
|
30778
|
+
return PackageVersionInfoDtoFromJSONTyped2(json2, false);
|
|
30405
30779
|
}
|
|
30406
|
-
function PackageVersionInfoDtoFromJSONTyped2(
|
|
30407
|
-
if (
|
|
30408
|
-
return
|
|
30780
|
+
function PackageVersionInfoDtoFromJSONTyped2(json2, ignoreDiscriminator) {
|
|
30781
|
+
if (json2 == null) {
|
|
30782
|
+
return json2;
|
|
30409
30783
|
}
|
|
30410
30784
|
return {
|
|
30411
|
-
key:
|
|
30412
|
-
packageName:
|
|
30413
|
-
packageVersion:
|
|
30414
|
-
publishDate: new Date(
|
|
30415
|
-
authorName:
|
|
30416
|
-
authorEmail:
|
|
30417
|
-
description:
|
|
30418
|
-
releaseNotes:
|
|
30419
|
-
state: ExtendedPackageVersionStateFromJSON2(
|
|
30420
|
-
solutionRootFolderName:
|
|
30421
|
-
locationKey:
|
|
30422
|
-
components:
|
|
30785
|
+
key: json2["key"],
|
|
30786
|
+
packageName: json2["packageName"],
|
|
30787
|
+
packageVersion: json2["packageVersion"],
|
|
30788
|
+
publishDate: new Date(json2["publishDate"]),
|
|
30789
|
+
authorName: json2["authorName"],
|
|
30790
|
+
authorEmail: json2["authorEmail"] == null ? undefined : json2["authorEmail"],
|
|
30791
|
+
description: json2["description"] == null ? undefined : json2["description"],
|
|
30792
|
+
releaseNotes: json2["releaseNotes"] == null ? undefined : json2["releaseNotes"],
|
|
30793
|
+
state: ExtendedPackageVersionStateFromJSON2(json2["state"]),
|
|
30794
|
+
solutionRootFolderName: json2["solutionRootFolderName"],
|
|
30795
|
+
locationKey: json2["locationKey"] == null ? undefined : json2["locationKey"],
|
|
30796
|
+
components: json2["components"] == null ? undefined : PackageVersionComponentsDtoFromJSON2(json2["components"])
|
|
30423
30797
|
};
|
|
30424
30798
|
}
|
|
30425
30799
|
// ../solution-sdk/generated/src/apis/PackagesApi.ts
|
|
@@ -31530,12 +31904,12 @@ var loadEnvFileAsync = async ({ envPath }) => {
|
|
|
31530
31904
|
var saveEnvFileAsync = async ({
|
|
31531
31905
|
envPath,
|
|
31532
31906
|
data,
|
|
31533
|
-
merge = true
|
|
31907
|
+
merge: merge2 = true
|
|
31534
31908
|
}) => {
|
|
31535
31909
|
const fs7 = getFileSystem();
|
|
31536
31910
|
const absolutePath = fs7.path.isAbsolute(envPath) ? envPath : fs7.path.join(fs7.env.homedir(), envPath);
|
|
31537
31911
|
let existingData = {};
|
|
31538
|
-
if (
|
|
31912
|
+
if (merge2 && await fs7.exists(absolutePath)) {
|
|
31539
31913
|
try {
|
|
31540
31914
|
existingData = await loadEnvFileAsync({ envPath: absolutePath });
|
|
31541
31915
|
} catch {}
|
|
@@ -32404,8 +32778,8 @@ var package_default3 = {
|
|
|
32404
32778
|
var SDK_USER_AGENT3 = getSdkUserAgentToken(package_default3);
|
|
32405
32779
|
installSdkUserAgentHeader(BaseAPI4, SDK_USER_AGENT3);
|
|
32406
32780
|
// ../orchestrator-sdk/generated/src/models/BulkEnablePersonalWorkspacesDto.ts
|
|
32407
|
-
function BulkEnablePersonalWorkspacesDtoToJSON(
|
|
32408
|
-
return BulkEnablePersonalWorkspacesDtoToJSONTyped(
|
|
32781
|
+
function BulkEnablePersonalWorkspacesDtoToJSON(json2) {
|
|
32782
|
+
return BulkEnablePersonalWorkspacesDtoToJSONTyped(json2, false);
|
|
32409
32783
|
}
|
|
32410
32784
|
function BulkEnablePersonalWorkspacesDtoToJSONTyped(value, ignoreDiscriminator = false) {
|
|
32411
32785
|
if (value == null) {
|
|
@@ -32417,74 +32791,74 @@ function BulkEnablePersonalWorkspacesDtoToJSONTyped(value, ignoreDiscriminator =
|
|
|
32417
32791
|
};
|
|
32418
32792
|
}
|
|
32419
32793
|
// ../orchestrator-sdk/generated/src/models/ExtendedPersonalWorkspaceDto.ts
|
|
32420
|
-
function ExtendedPersonalWorkspaceDtoFromJSON(
|
|
32421
|
-
return ExtendedPersonalWorkspaceDtoFromJSONTyped(
|
|
32794
|
+
function ExtendedPersonalWorkspaceDtoFromJSON(json2) {
|
|
32795
|
+
return ExtendedPersonalWorkspaceDtoFromJSONTyped(json2, false);
|
|
32422
32796
|
}
|
|
32423
|
-
function ExtendedPersonalWorkspaceDtoFromJSONTyped(
|
|
32424
|
-
if (
|
|
32425
|
-
return
|
|
32797
|
+
function ExtendedPersonalWorkspaceDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
32798
|
+
if (json2 == null) {
|
|
32799
|
+
return json2;
|
|
32426
32800
|
}
|
|
32427
32801
|
return {
|
|
32428
|
-
folderType:
|
|
32429
|
-
key:
|
|
32430
|
-
name:
|
|
32431
|
-
isActive:
|
|
32432
|
-
ownerId:
|
|
32433
|
-
ownerKey:
|
|
32434
|
-
ownerName:
|
|
32435
|
-
lastLogin:
|
|
32436
|
-
exploringUserIds:
|
|
32437
|
-
id:
|
|
32802
|
+
folderType: json2["FolderType"] == null ? undefined : json2["FolderType"],
|
|
32803
|
+
key: json2["Key"] == null ? undefined : json2["Key"],
|
|
32804
|
+
name: json2["Name"] == null ? undefined : json2["Name"],
|
|
32805
|
+
isActive: json2["IsActive"] == null ? undefined : json2["IsActive"],
|
|
32806
|
+
ownerId: json2["OwnerId"] == null ? undefined : json2["OwnerId"],
|
|
32807
|
+
ownerKey: json2["OwnerKey"] == null ? undefined : json2["OwnerKey"],
|
|
32808
|
+
ownerName: json2["OwnerName"] == null ? undefined : json2["OwnerName"],
|
|
32809
|
+
lastLogin: json2["LastLogin"] == null ? undefined : new Date(json2["LastLogin"]),
|
|
32810
|
+
exploringUserIds: json2["ExploringUserIds"] == null ? undefined : json2["ExploringUserIds"],
|
|
32811
|
+
id: json2["Id"] == null ? undefined : json2["Id"]
|
|
32438
32812
|
};
|
|
32439
32813
|
}
|
|
32440
32814
|
// ../orchestrator-sdk/generated/src/models/PersonalWorkspaceDto.ts
|
|
32441
|
-
function PersonalWorkspaceDtoFromJSON(
|
|
32442
|
-
return PersonalWorkspaceDtoFromJSONTyped(
|
|
32815
|
+
function PersonalWorkspaceDtoFromJSON(json2) {
|
|
32816
|
+
return PersonalWorkspaceDtoFromJSONTyped(json2, false);
|
|
32443
32817
|
}
|
|
32444
|
-
function PersonalWorkspaceDtoFromJSONTyped(
|
|
32445
|
-
if (
|
|
32446
|
-
return
|
|
32818
|
+
function PersonalWorkspaceDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
32819
|
+
if (json2 == null) {
|
|
32820
|
+
return json2;
|
|
32447
32821
|
}
|
|
32448
32822
|
return {
|
|
32449
|
-
key:
|
|
32450
|
-
name:
|
|
32451
|
-
isActive:
|
|
32452
|
-
ownerId:
|
|
32453
|
-
ownerKey:
|
|
32454
|
-
ownerName:
|
|
32455
|
-
lastLogin:
|
|
32456
|
-
exploringUserIds:
|
|
32457
|
-
id:
|
|
32823
|
+
key: json2["Key"] == null ? undefined : json2["Key"],
|
|
32824
|
+
name: json2["Name"] == null ? undefined : json2["Name"],
|
|
32825
|
+
isActive: json2["IsActive"] == null ? undefined : json2["IsActive"],
|
|
32826
|
+
ownerId: json2["OwnerId"] == null ? undefined : json2["OwnerId"],
|
|
32827
|
+
ownerKey: json2["OwnerKey"] == null ? undefined : json2["OwnerKey"],
|
|
32828
|
+
ownerName: json2["OwnerName"] == null ? undefined : json2["OwnerName"],
|
|
32829
|
+
lastLogin: json2["LastLogin"] == null ? undefined : new Date(json2["LastLogin"]),
|
|
32830
|
+
exploringUserIds: json2["ExploringUserIds"] == null ? undefined : json2["ExploringUserIds"],
|
|
32831
|
+
id: json2["Id"] == null ? undefined : json2["Id"]
|
|
32458
32832
|
};
|
|
32459
32833
|
}
|
|
32460
32834
|
|
|
32461
32835
|
// ../orchestrator-sdk/generated/src/models/ODataValueOfIEnumerableOfPersonalWorkspaceDto.ts
|
|
32462
|
-
function ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSON(
|
|
32463
|
-
return ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSONTyped(
|
|
32836
|
+
function ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSON(json2) {
|
|
32837
|
+
return ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSONTyped(json2, false);
|
|
32464
32838
|
}
|
|
32465
|
-
function ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSONTyped(
|
|
32466
|
-
if (
|
|
32467
|
-
return
|
|
32839
|
+
function ODataValueOfIEnumerableOfPersonalWorkspaceDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
32840
|
+
if (json2 == null) {
|
|
32841
|
+
return json2;
|
|
32468
32842
|
}
|
|
32469
32843
|
return {
|
|
32470
|
-
value:
|
|
32844
|
+
value: json2["value"] == null ? undefined : json2["value"].map(PersonalWorkspaceDtoFromJSON)
|
|
32471
32845
|
};
|
|
32472
32846
|
}
|
|
32473
32847
|
// ../orchestrator-sdk/generated/src/models/ODataValueOfListOfPersonalWorkspaceDto.ts
|
|
32474
|
-
function ODataValueOfListOfPersonalWorkspaceDtoFromJSON(
|
|
32475
|
-
return ODataValueOfListOfPersonalWorkspaceDtoFromJSONTyped(
|
|
32848
|
+
function ODataValueOfListOfPersonalWorkspaceDtoFromJSON(json2) {
|
|
32849
|
+
return ODataValueOfListOfPersonalWorkspaceDtoFromJSONTyped(json2, false);
|
|
32476
32850
|
}
|
|
32477
|
-
function ODataValueOfListOfPersonalWorkspaceDtoFromJSONTyped(
|
|
32478
|
-
if (
|
|
32479
|
-
return
|
|
32851
|
+
function ODataValueOfListOfPersonalWorkspaceDtoFromJSONTyped(json2, ignoreDiscriminator) {
|
|
32852
|
+
if (json2 == null) {
|
|
32853
|
+
return json2;
|
|
32480
32854
|
}
|
|
32481
32855
|
return {
|
|
32482
|
-
value:
|
|
32856
|
+
value: json2["value"] == null ? undefined : json2["value"].map(PersonalWorkspaceDtoFromJSON)
|
|
32483
32857
|
};
|
|
32484
32858
|
}
|
|
32485
32859
|
// ../orchestrator-sdk/generated/src/models/PersonalWorkspaceCreateOrphanedRequest.ts
|
|
32486
|
-
function PersonalWorkspaceCreateOrphanedRequestToJSON(
|
|
32487
|
-
return PersonalWorkspaceCreateOrphanedRequestToJSONTyped(
|
|
32860
|
+
function PersonalWorkspaceCreateOrphanedRequestToJSON(json2) {
|
|
32861
|
+
return PersonalWorkspaceCreateOrphanedRequestToJSONTyped(json2, false);
|
|
32488
32862
|
}
|
|
32489
32863
|
function PersonalWorkspaceCreateOrphanedRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
32490
32864
|
if (value == null) {
|
|
@@ -32495,8 +32869,8 @@ function PersonalWorkspaceCreateOrphanedRequestToJSONTyped(value, ignoreDiscrimi
|
|
|
32495
32869
|
};
|
|
32496
32870
|
}
|
|
32497
32871
|
// ../orchestrator-sdk/generated/src/models/PersonalWorkspacesConvertToFolderRequest.ts
|
|
32498
|
-
function PersonalWorkspacesConvertToFolderRequestToJSON(
|
|
32499
|
-
return PersonalWorkspacesConvertToFolderRequestToJSONTyped(
|
|
32872
|
+
function PersonalWorkspacesConvertToFolderRequestToJSON(json2) {
|
|
32873
|
+
return PersonalWorkspacesConvertToFolderRequestToJSONTyped(json2, false);
|
|
32500
32874
|
}
|
|
32501
32875
|
function PersonalWorkspacesConvertToFolderRequestToJSONTyped(value, ignoreDiscriminator = false) {
|
|
32502
32876
|
if (value == null) {
|
|
@@ -32990,4 +33364,4 @@ export {
|
|
|
32990
33364
|
publishSolutionAsync
|
|
32991
33365
|
};
|
|
32992
33366
|
|
|
32993
|
-
//# debugId=
|
|
33367
|
+
//# debugId=1A69E616CB730C4764756E2164756E21
|