@storm-software/tsdown 0.45.15 → 0.45.18
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/README.md +1 -2
- package/bin/tsdown.cjs +3317 -895
- package/package.json +12 -12
package/bin/tsdown.cjs
CHANGED
|
@@ -102653,9 +102653,9 @@ var require_prettier = __commonJS({
|
|
|
102653
102653
|
}
|
|
102654
102654
|
});
|
|
102655
102655
|
|
|
102656
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
102656
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/generators/format-files.js
|
|
102657
102657
|
var require_format_files = __commonJS({
|
|
102658
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
102658
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/generators/format-files.js"(exports2) {
|
|
102659
102659
|
"use strict";
|
|
102660
102660
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
102661
102661
|
exports2.formatFiles = formatFiles;
|
|
@@ -102671,7 +102671,7 @@ var require_format_files = __commonJS({
|
|
|
102671
102671
|
}
|
|
102672
102672
|
} catch {
|
|
102673
102673
|
}
|
|
102674
|
-
options8.sortRootTsconfigPaths ??= process.env.NX_FORMAT_SORT_TSCONFIG_PATHS
|
|
102674
|
+
options8.sortRootTsconfigPaths ??= process.env.NX_FORMAT_SORT_TSCONFIG_PATHS === "true";
|
|
102675
102675
|
if (options8.sortRootTsconfigPaths) {
|
|
102676
102676
|
sortTsConfig(tree);
|
|
102677
102677
|
}
|
|
@@ -102749,9 +102749,9 @@ var require_format_files = __commonJS({
|
|
|
102749
102749
|
}
|
|
102750
102750
|
});
|
|
102751
102751
|
|
|
102752
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
102752
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/binary-extensions.js
|
|
102753
102753
|
var require_binary_extensions = __commonJS({
|
|
102754
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
102754
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/binary-extensions.js"(exports2) {
|
|
102755
102755
|
"use strict";
|
|
102756
102756
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
102757
102757
|
exports2.isBinaryPath = isBinaryPath;
|
|
@@ -103766,9 +103766,9 @@ var require_ejs = __commonJS({
|
|
|
103766
103766
|
}
|
|
103767
103767
|
});
|
|
103768
103768
|
|
|
103769
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
103769
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/generators/generate-files.js
|
|
103770
103770
|
var require_generate_files = __commonJS({
|
|
103771
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
103771
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/generators/generate-files.js"(exports2) {
|
|
103772
103772
|
"use strict";
|
|
103773
103773
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
103774
103774
|
exports2.OverwriteStrategy = void 0;
|
|
@@ -103853,9 +103853,9 @@ var require_generate_files = __commonJS({
|
|
|
103853
103853
|
}
|
|
103854
103854
|
});
|
|
103855
103855
|
|
|
103856
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
103856
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/versions.js
|
|
103857
103857
|
var require_versions = __commonJS({
|
|
103858
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
103858
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/versions.js"(exports2) {
|
|
103859
103859
|
"use strict";
|
|
103860
103860
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
103861
103861
|
exports2.typescriptVersion = void 0;
|
|
@@ -105793,9 +105793,9 @@ var require_semver3 = __commonJS({
|
|
|
105793
105793
|
}
|
|
105794
105794
|
});
|
|
105795
105795
|
|
|
105796
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
105796
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/tasks/install-packages-task.js
|
|
105797
105797
|
var require_install_packages_task = __commonJS({
|
|
105798
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
105798
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/tasks/install-packages-task.js"(exports2) {
|
|
105799
105799
|
"use strict";
|
|
105800
105800
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
105801
105801
|
exports2.installPackagesTask = installPackagesTask;
|
|
@@ -105825,382 +105825,3101 @@ var require_install_packages_task = __commonJS({
|
|
|
105825
105825
|
}
|
|
105826
105826
|
});
|
|
105827
105827
|
|
|
105828
|
-
// ../../node_modules/.pnpm
|
|
105829
|
-
var
|
|
105830
|
-
"../../node_modules/.pnpm
|
|
105831
|
-
|
|
105832
|
-
|
|
105833
|
-
|
|
105834
|
-
|
|
105835
|
-
|
|
105836
|
-
|
|
105837
|
-
|
|
105838
|
-
|
|
105839
|
-
|
|
105840
|
-
|
|
105841
|
-
|
|
105842
|
-
|
|
105843
|
-
|
|
105844
|
-
|
|
105845
|
-
|
|
105846
|
-
|
|
105847
|
-
|
|
105848
|
-
|
|
105849
|
-
|
|
105850
|
-
|
|
105851
|
-
|
|
105852
|
-
|
|
105853
|
-
|
|
105854
|
-
|
|
105855
|
-
|
|
105856
|
-
|
|
105857
|
-
|
|
105858
|
-
|
|
105859
|
-
|
|
105860
|
-
|
|
105861
|
-
|
|
105862
|
-
|
|
105863
|
-
|
|
105864
|
-
|
|
105865
|
-
|
|
105866
|
-
|
|
105828
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/common.js
|
|
105829
|
+
var require_common3 = __commonJS({
|
|
105830
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/common.js"(exports2, module2) {
|
|
105831
|
+
"use strict";
|
|
105832
|
+
function isNothing(subject) {
|
|
105833
|
+
return typeof subject === "undefined" || subject === null;
|
|
105834
|
+
}
|
|
105835
|
+
function isObject2(subject) {
|
|
105836
|
+
return typeof subject === "object" && subject !== null;
|
|
105837
|
+
}
|
|
105838
|
+
function toArray(sequence) {
|
|
105839
|
+
if (Array.isArray(sequence)) return sequence;
|
|
105840
|
+
else if (isNothing(sequence)) return [];
|
|
105841
|
+
return [sequence];
|
|
105842
|
+
}
|
|
105843
|
+
function extend(target, source2) {
|
|
105844
|
+
var index, length, key2, sourceKeys;
|
|
105845
|
+
if (source2) {
|
|
105846
|
+
sourceKeys = Object.keys(source2);
|
|
105847
|
+
for (index = 0, length = sourceKeys.length; index < length; index += 1) {
|
|
105848
|
+
key2 = sourceKeys[index];
|
|
105849
|
+
target[key2] = source2[key2];
|
|
105850
|
+
}
|
|
105851
|
+
}
|
|
105852
|
+
return target;
|
|
105853
|
+
}
|
|
105854
|
+
function repeat2(string, count) {
|
|
105855
|
+
var result = "", cycle;
|
|
105856
|
+
for (cycle = 0; cycle < count; cycle += 1) {
|
|
105857
|
+
result += string;
|
|
105858
|
+
}
|
|
105859
|
+
return result;
|
|
105860
|
+
}
|
|
105861
|
+
function isNegativeZero(number) {
|
|
105862
|
+
return number === 0 && Number.NEGATIVE_INFINITY === 1 / number;
|
|
105863
|
+
}
|
|
105864
|
+
module2.exports.isNothing = isNothing;
|
|
105865
|
+
module2.exports.isObject = isObject2;
|
|
105866
|
+
module2.exports.toArray = toArray;
|
|
105867
|
+
module2.exports.repeat = repeat2;
|
|
105868
|
+
module2.exports.isNegativeZero = isNegativeZero;
|
|
105869
|
+
module2.exports.extend = extend;
|
|
105870
|
+
}
|
|
105871
|
+
});
|
|
105872
|
+
|
|
105873
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/exception.js
|
|
105874
|
+
var require_exception = __commonJS({
|
|
105875
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/exception.js"(exports2, module2) {
|
|
105876
|
+
"use strict";
|
|
105877
|
+
function formatError(exception, compact) {
|
|
105878
|
+
var where = "", message = exception.reason || "(unknown reason)";
|
|
105879
|
+
if (!exception.mark) return message;
|
|
105880
|
+
if (exception.mark.name) {
|
|
105881
|
+
where += 'in "' + exception.mark.name + '" ';
|
|
105882
|
+
}
|
|
105883
|
+
where += "(" + (exception.mark.line + 1) + ":" + (exception.mark.column + 1) + ")";
|
|
105884
|
+
if (!compact && exception.mark.snippet) {
|
|
105885
|
+
where += "\n\n" + exception.mark.snippet;
|
|
105886
|
+
}
|
|
105887
|
+
return message + " " + where;
|
|
105888
|
+
}
|
|
105889
|
+
function YAMLException(reason, mark) {
|
|
105890
|
+
Error.call(this);
|
|
105891
|
+
this.name = "YAMLException";
|
|
105892
|
+
this.reason = reason;
|
|
105893
|
+
this.mark = mark;
|
|
105894
|
+
this.message = formatError(this, false);
|
|
105895
|
+
if (Error.captureStackTrace) {
|
|
105896
|
+
Error.captureStackTrace(this, this.constructor);
|
|
105897
|
+
} else {
|
|
105898
|
+
this.stack = new Error().stack || "";
|
|
105899
|
+
}
|
|
105900
|
+
}
|
|
105901
|
+
YAMLException.prototype = Object.create(Error.prototype);
|
|
105902
|
+
YAMLException.prototype.constructor = YAMLException;
|
|
105903
|
+
YAMLException.prototype.toString = function toString(compact) {
|
|
105904
|
+
return this.name + ": " + formatError(this, compact);
|
|
105905
|
+
};
|
|
105906
|
+
module2.exports = YAMLException;
|
|
105907
|
+
}
|
|
105908
|
+
});
|
|
105909
|
+
|
|
105910
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/snippet.js
|
|
105911
|
+
var require_snippet = __commonJS({
|
|
105912
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/snippet.js"(exports2, module2) {
|
|
105913
|
+
"use strict";
|
|
105914
|
+
var common = require_common3();
|
|
105915
|
+
function getLine(buffer2, lineStart, lineEnd, position, maxLineLength) {
|
|
105916
|
+
var head = "";
|
|
105917
|
+
var tail = "";
|
|
105918
|
+
var maxHalfLength = Math.floor(maxLineLength / 2) - 1;
|
|
105919
|
+
if (position - lineStart > maxHalfLength) {
|
|
105920
|
+
head = " ... ";
|
|
105921
|
+
lineStart = position - maxHalfLength + head.length;
|
|
105922
|
+
}
|
|
105923
|
+
if (lineEnd - position > maxHalfLength) {
|
|
105924
|
+
tail = " ...";
|
|
105925
|
+
lineEnd = position + maxHalfLength - tail.length;
|
|
105926
|
+
}
|
|
105927
|
+
return {
|
|
105928
|
+
str: head + buffer2.slice(lineStart, lineEnd).replace(/\t/g, "\u2192") + tail,
|
|
105929
|
+
pos: position - lineStart + head.length
|
|
105930
|
+
// relative position
|
|
105931
|
+
};
|
|
105932
|
+
}
|
|
105933
|
+
function padStart(string, max) {
|
|
105934
|
+
return common.repeat(" ", max - string.length) + string;
|
|
105935
|
+
}
|
|
105936
|
+
function makeSnippet(mark, options8) {
|
|
105937
|
+
options8 = Object.create(options8 || null);
|
|
105938
|
+
if (!mark.buffer) return null;
|
|
105939
|
+
if (!options8.maxLength) options8.maxLength = 79;
|
|
105940
|
+
if (typeof options8.indent !== "number") options8.indent = 1;
|
|
105941
|
+
if (typeof options8.linesBefore !== "number") options8.linesBefore = 3;
|
|
105942
|
+
if (typeof options8.linesAfter !== "number") options8.linesAfter = 2;
|
|
105943
|
+
var re10 = /\r?\n|\r|\0/g;
|
|
105944
|
+
var lineStarts = [0];
|
|
105945
|
+
var lineEnds = [];
|
|
105946
|
+
var match;
|
|
105947
|
+
var foundLineNo = -1;
|
|
105948
|
+
while (match = re10.exec(mark.buffer)) {
|
|
105949
|
+
lineEnds.push(match.index);
|
|
105950
|
+
lineStarts.push(match.index + match[0].length);
|
|
105951
|
+
if (mark.position <= match.index && foundLineNo < 0) {
|
|
105952
|
+
foundLineNo = lineStarts.length - 2;
|
|
105953
|
+
}
|
|
105954
|
+
}
|
|
105955
|
+
if (foundLineNo < 0) foundLineNo = lineStarts.length - 1;
|
|
105956
|
+
var result = "", i, line3;
|
|
105957
|
+
var lineNoLength = Math.min(mark.line + options8.linesAfter, lineEnds.length).toString().length;
|
|
105958
|
+
var maxLineLength = options8.maxLength - (options8.indent + lineNoLength + 3);
|
|
105959
|
+
for (i = 1; i <= options8.linesBefore; i++) {
|
|
105960
|
+
if (foundLineNo - i < 0) break;
|
|
105961
|
+
line3 = getLine(
|
|
105962
|
+
mark.buffer,
|
|
105963
|
+
lineStarts[foundLineNo - i],
|
|
105964
|
+
lineEnds[foundLineNo - i],
|
|
105965
|
+
mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo - i]),
|
|
105966
|
+
maxLineLength
|
|
105967
|
+
);
|
|
105968
|
+
result = common.repeat(" ", options8.indent) + padStart((mark.line - i + 1).toString(), lineNoLength) + " | " + line3.str + "\n" + result;
|
|
105969
|
+
}
|
|
105970
|
+
line3 = getLine(mark.buffer, lineStarts[foundLineNo], lineEnds[foundLineNo], mark.position, maxLineLength);
|
|
105971
|
+
result += common.repeat(" ", options8.indent) + padStart((mark.line + 1).toString(), lineNoLength) + " | " + line3.str + "\n";
|
|
105972
|
+
result += common.repeat("-", options8.indent + lineNoLength + 3 + line3.pos) + "^\n";
|
|
105973
|
+
for (i = 1; i <= options8.linesAfter; i++) {
|
|
105974
|
+
if (foundLineNo + i >= lineEnds.length) break;
|
|
105975
|
+
line3 = getLine(
|
|
105976
|
+
mark.buffer,
|
|
105977
|
+
lineStarts[foundLineNo + i],
|
|
105978
|
+
lineEnds[foundLineNo + i],
|
|
105979
|
+
mark.position - (lineStarts[foundLineNo] - lineStarts[foundLineNo + i]),
|
|
105980
|
+
maxLineLength
|
|
105981
|
+
);
|
|
105982
|
+
result += common.repeat(" ", options8.indent) + padStart((mark.line + i + 1).toString(), lineNoLength) + " | " + line3.str + "\n";
|
|
105983
|
+
}
|
|
105984
|
+
return result.replace(/\n$/, "");
|
|
105985
|
+
}
|
|
105986
|
+
module2.exports = makeSnippet;
|
|
105987
|
+
}
|
|
105988
|
+
});
|
|
105989
|
+
|
|
105990
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type.js
|
|
105991
|
+
var require_type = __commonJS({
|
|
105992
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type.js"(exports2, module2) {
|
|
105993
|
+
"use strict";
|
|
105994
|
+
var YAMLException = require_exception();
|
|
105995
|
+
var TYPE_CONSTRUCTOR_OPTIONS = [
|
|
105996
|
+
"kind",
|
|
105997
|
+
"multi",
|
|
105998
|
+
"resolve",
|
|
105999
|
+
"construct",
|
|
106000
|
+
"instanceOf",
|
|
106001
|
+
"predicate",
|
|
106002
|
+
"represent",
|
|
106003
|
+
"representName",
|
|
106004
|
+
"defaultStyle",
|
|
106005
|
+
"styleAliases"
|
|
106006
|
+
];
|
|
106007
|
+
var YAML_NODE_KINDS = [
|
|
106008
|
+
"scalar",
|
|
106009
|
+
"sequence",
|
|
106010
|
+
"mapping"
|
|
106011
|
+
];
|
|
106012
|
+
function compileStyleAliases(map) {
|
|
106013
|
+
var result = {};
|
|
106014
|
+
if (map !== null) {
|
|
106015
|
+
Object.keys(map).forEach(function(style) {
|
|
106016
|
+
map[style].forEach(function(alias) {
|
|
106017
|
+
result[String(alias)] = style;
|
|
106018
|
+
});
|
|
106019
|
+
});
|
|
106020
|
+
}
|
|
106021
|
+
return result;
|
|
106022
|
+
}
|
|
106023
|
+
function Type(tag, options8) {
|
|
106024
|
+
options8 = options8 || {};
|
|
106025
|
+
Object.keys(options8).forEach(function(name) {
|
|
106026
|
+
if (TYPE_CONSTRUCTOR_OPTIONS.indexOf(name) === -1) {
|
|
106027
|
+
throw new YAMLException('Unknown option "' + name + '" is met in definition of "' + tag + '" YAML type.');
|
|
106028
|
+
}
|
|
106029
|
+
});
|
|
106030
|
+
this.tag = tag;
|
|
106031
|
+
this.kind = options8["kind"] || null;
|
|
106032
|
+
this.resolve = options8["resolve"] || function() {
|
|
106033
|
+
return true;
|
|
106034
|
+
};
|
|
106035
|
+
this.construct = options8["construct"] || function(data) {
|
|
106036
|
+
return data;
|
|
106037
|
+
};
|
|
106038
|
+
this.instanceOf = options8["instanceOf"] || null;
|
|
106039
|
+
this.predicate = options8["predicate"] || null;
|
|
106040
|
+
this.represent = options8["represent"] || null;
|
|
106041
|
+
this.representName = options8["representName"] || null;
|
|
106042
|
+
this.defaultStyle = options8["defaultStyle"] || null;
|
|
106043
|
+
this.multi = options8["multi"] || false;
|
|
106044
|
+
this.styleAliases = compileStyleAliases(options8["styleAliases"] || null);
|
|
106045
|
+
if (YAML_NODE_KINDS.indexOf(this.kind) === -1) {
|
|
106046
|
+
throw new YAMLException('Unknown kind "' + this.kind + '" is specified for "' + tag + '" YAML type.');
|
|
106047
|
+
}
|
|
106048
|
+
}
|
|
106049
|
+
module2.exports = Type;
|
|
106050
|
+
}
|
|
106051
|
+
});
|
|
106052
|
+
|
|
106053
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/schema.js
|
|
106054
|
+
var require_schema = __commonJS({
|
|
106055
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/schema.js"(exports2, module2) {
|
|
106056
|
+
"use strict";
|
|
106057
|
+
var YAMLException = require_exception();
|
|
106058
|
+
var Type = require_type();
|
|
106059
|
+
function compileList(schema, name, result) {
|
|
106060
|
+
var exclude = [];
|
|
106061
|
+
schema[name].forEach(function(currentType) {
|
|
106062
|
+
result.forEach(function(previousType, previousIndex) {
|
|
106063
|
+
if (previousType.tag === currentType.tag && previousType.kind === currentType.kind && previousType.multi === currentType.multi) {
|
|
106064
|
+
exclude.push(previousIndex);
|
|
106065
|
+
}
|
|
106066
|
+
});
|
|
106067
|
+
result.push(currentType);
|
|
106068
|
+
});
|
|
106069
|
+
return result.filter(function(type, index) {
|
|
106070
|
+
return exclude.indexOf(index) === -1;
|
|
106071
|
+
});
|
|
106072
|
+
}
|
|
106073
|
+
function compileMap() {
|
|
106074
|
+
var result = {
|
|
106075
|
+
scalar: {},
|
|
106076
|
+
sequence: {},
|
|
106077
|
+
mapping: {},
|
|
106078
|
+
fallback: {},
|
|
106079
|
+
multi: {
|
|
106080
|
+
scalar: [],
|
|
106081
|
+
sequence: [],
|
|
106082
|
+
mapping: [],
|
|
106083
|
+
fallback: []
|
|
106084
|
+
}
|
|
106085
|
+
}, index, length;
|
|
106086
|
+
function collectType(type) {
|
|
106087
|
+
if (type.multi) {
|
|
106088
|
+
result.multi[type.kind].push(type);
|
|
106089
|
+
result.multi["fallback"].push(type);
|
|
106090
|
+
} else {
|
|
106091
|
+
result[type.kind][type.tag] = result["fallback"][type.tag] = type;
|
|
106092
|
+
}
|
|
106093
|
+
}
|
|
106094
|
+
for (index = 0, length = arguments.length; index < length; index += 1) {
|
|
106095
|
+
arguments[index].forEach(collectType);
|
|
106096
|
+
}
|
|
106097
|
+
return result;
|
|
106098
|
+
}
|
|
106099
|
+
function Schema2(definition) {
|
|
106100
|
+
return this.extend(definition);
|
|
106101
|
+
}
|
|
106102
|
+
Schema2.prototype.extend = function extend(definition) {
|
|
106103
|
+
var implicit = [];
|
|
106104
|
+
var explicit = [];
|
|
106105
|
+
if (definition instanceof Type) {
|
|
106106
|
+
explicit.push(definition);
|
|
106107
|
+
} else if (Array.isArray(definition)) {
|
|
106108
|
+
explicit = explicit.concat(definition);
|
|
106109
|
+
} else if (definition && (Array.isArray(definition.implicit) || Array.isArray(definition.explicit))) {
|
|
106110
|
+
if (definition.implicit) implicit = implicit.concat(definition.implicit);
|
|
106111
|
+
if (definition.explicit) explicit = explicit.concat(definition.explicit);
|
|
106112
|
+
} else {
|
|
106113
|
+
throw new YAMLException("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
106114
|
+
}
|
|
106115
|
+
implicit.forEach(function(type) {
|
|
106116
|
+
if (!(type instanceof Type)) {
|
|
106117
|
+
throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
106118
|
+
}
|
|
106119
|
+
if (type.loadKind && type.loadKind !== "scalar") {
|
|
106120
|
+
throw new YAMLException("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
106121
|
+
}
|
|
106122
|
+
if (type.multi) {
|
|
106123
|
+
throw new YAMLException("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
106124
|
+
}
|
|
106125
|
+
});
|
|
106126
|
+
explicit.forEach(function(type) {
|
|
106127
|
+
if (!(type instanceof Type)) {
|
|
106128
|
+
throw new YAMLException("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
106129
|
+
}
|
|
106130
|
+
});
|
|
106131
|
+
var result = Object.create(Schema2.prototype);
|
|
106132
|
+
result.implicit = (this.implicit || []).concat(implicit);
|
|
106133
|
+
result.explicit = (this.explicit || []).concat(explicit);
|
|
106134
|
+
result.compiledImplicit = compileList(result, "implicit", []);
|
|
106135
|
+
result.compiledExplicit = compileList(result, "explicit", []);
|
|
106136
|
+
result.compiledTypeMap = compileMap(result.compiledImplicit, result.compiledExplicit);
|
|
106137
|
+
return result;
|
|
106138
|
+
};
|
|
106139
|
+
module2.exports = Schema2;
|
|
106140
|
+
}
|
|
106141
|
+
});
|
|
106142
|
+
|
|
106143
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/str.js
|
|
106144
|
+
var require_str = __commonJS({
|
|
106145
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/str.js"(exports2, module2) {
|
|
106146
|
+
"use strict";
|
|
106147
|
+
var Type = require_type();
|
|
106148
|
+
module2.exports = new Type("tag:yaml.org,2002:str", {
|
|
106149
|
+
kind: "scalar",
|
|
106150
|
+
construct: function(data) {
|
|
106151
|
+
return data !== null ? data : "";
|
|
106152
|
+
}
|
|
106153
|
+
});
|
|
106154
|
+
}
|
|
106155
|
+
});
|
|
106156
|
+
|
|
106157
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/seq.js
|
|
106158
|
+
var require_seq = __commonJS({
|
|
106159
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/seq.js"(exports2, module2) {
|
|
106160
|
+
"use strict";
|
|
106161
|
+
var Type = require_type();
|
|
106162
|
+
module2.exports = new Type("tag:yaml.org,2002:seq", {
|
|
106163
|
+
kind: "sequence",
|
|
106164
|
+
construct: function(data) {
|
|
106165
|
+
return data !== null ? data : [];
|
|
106166
|
+
}
|
|
106167
|
+
});
|
|
106168
|
+
}
|
|
106169
|
+
});
|
|
106170
|
+
|
|
106171
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/map.js
|
|
106172
|
+
var require_map2 = __commonJS({
|
|
106173
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/map.js"(exports2, module2) {
|
|
106174
|
+
"use strict";
|
|
106175
|
+
var Type = require_type();
|
|
106176
|
+
module2.exports = new Type("tag:yaml.org,2002:map", {
|
|
106177
|
+
kind: "mapping",
|
|
106178
|
+
construct: function(data) {
|
|
106179
|
+
return data !== null ? data : {};
|
|
106180
|
+
}
|
|
106181
|
+
});
|
|
106182
|
+
}
|
|
106183
|
+
});
|
|
106184
|
+
|
|
106185
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/schema/failsafe.js
|
|
106186
|
+
var require_failsafe = __commonJS({
|
|
106187
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/schema/failsafe.js"(exports2, module2) {
|
|
106188
|
+
"use strict";
|
|
106189
|
+
var Schema2 = require_schema();
|
|
106190
|
+
module2.exports = new Schema2({
|
|
106191
|
+
explicit: [
|
|
106192
|
+
require_str(),
|
|
106193
|
+
require_seq(),
|
|
106194
|
+
require_map2()
|
|
106195
|
+
]
|
|
106196
|
+
});
|
|
106197
|
+
}
|
|
106198
|
+
});
|
|
106199
|
+
|
|
106200
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/null.js
|
|
106201
|
+
var require_null = __commonJS({
|
|
106202
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/null.js"(exports2, module2) {
|
|
106203
|
+
"use strict";
|
|
106204
|
+
var Type = require_type();
|
|
106205
|
+
function resolveYamlNull(data) {
|
|
106206
|
+
if (data === null) return true;
|
|
106207
|
+
var max = data.length;
|
|
106208
|
+
return max === 1 && data === "~" || max === 4 && (data === "null" || data === "Null" || data === "NULL");
|
|
106209
|
+
}
|
|
106210
|
+
function constructYamlNull() {
|
|
106211
|
+
return null;
|
|
106212
|
+
}
|
|
106213
|
+
function isNull(object) {
|
|
106214
|
+
return object === null;
|
|
106215
|
+
}
|
|
106216
|
+
module2.exports = new Type("tag:yaml.org,2002:null", {
|
|
106217
|
+
kind: "scalar",
|
|
106218
|
+
resolve: resolveYamlNull,
|
|
106219
|
+
construct: constructYamlNull,
|
|
106220
|
+
predicate: isNull,
|
|
106221
|
+
represent: {
|
|
106222
|
+
canonical: function() {
|
|
106223
|
+
return "~";
|
|
106224
|
+
},
|
|
106225
|
+
lowercase: function() {
|
|
106226
|
+
return "null";
|
|
106227
|
+
},
|
|
106228
|
+
uppercase: function() {
|
|
106229
|
+
return "NULL";
|
|
106230
|
+
},
|
|
106231
|
+
camelcase: function() {
|
|
106232
|
+
return "Null";
|
|
106233
|
+
},
|
|
106234
|
+
empty: function() {
|
|
106235
|
+
return "";
|
|
106236
|
+
}
|
|
106237
|
+
},
|
|
106238
|
+
defaultStyle: "lowercase"
|
|
106239
|
+
});
|
|
106240
|
+
}
|
|
106241
|
+
});
|
|
106242
|
+
|
|
106243
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/bool.js
|
|
106244
|
+
var require_bool = __commonJS({
|
|
106245
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/bool.js"(exports2, module2) {
|
|
106246
|
+
"use strict";
|
|
106247
|
+
var Type = require_type();
|
|
106248
|
+
function resolveYamlBoolean(data) {
|
|
106249
|
+
if (data === null) return false;
|
|
106250
|
+
var max = data.length;
|
|
106251
|
+
return max === 4 && (data === "true" || data === "True" || data === "TRUE") || max === 5 && (data === "false" || data === "False" || data === "FALSE");
|
|
106252
|
+
}
|
|
106253
|
+
function constructYamlBoolean(data) {
|
|
106254
|
+
return data === "true" || data === "True" || data === "TRUE";
|
|
106255
|
+
}
|
|
106256
|
+
function isBoolean(object) {
|
|
106257
|
+
return Object.prototype.toString.call(object) === "[object Boolean]";
|
|
106258
|
+
}
|
|
106259
|
+
module2.exports = new Type("tag:yaml.org,2002:bool", {
|
|
106260
|
+
kind: "scalar",
|
|
106261
|
+
resolve: resolveYamlBoolean,
|
|
106262
|
+
construct: constructYamlBoolean,
|
|
106263
|
+
predicate: isBoolean,
|
|
106264
|
+
represent: {
|
|
106265
|
+
lowercase: function(object) {
|
|
106266
|
+
return object ? "true" : "false";
|
|
106267
|
+
},
|
|
106268
|
+
uppercase: function(object) {
|
|
106269
|
+
return object ? "TRUE" : "FALSE";
|
|
106270
|
+
},
|
|
106271
|
+
camelcase: function(object) {
|
|
106272
|
+
return object ? "True" : "False";
|
|
106273
|
+
}
|
|
106274
|
+
},
|
|
106275
|
+
defaultStyle: "lowercase"
|
|
106276
|
+
});
|
|
106277
|
+
}
|
|
106278
|
+
});
|
|
106279
|
+
|
|
106280
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/int.js
|
|
106281
|
+
var require_int = __commonJS({
|
|
106282
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/int.js"(exports2, module2) {
|
|
106283
|
+
"use strict";
|
|
106284
|
+
var common = require_common3();
|
|
106285
|
+
var Type = require_type();
|
|
106286
|
+
function isHexCode(c5) {
|
|
106287
|
+
return 48 <= c5 && c5 <= 57 || 65 <= c5 && c5 <= 70 || 97 <= c5 && c5 <= 102;
|
|
106288
|
+
}
|
|
106289
|
+
function isOctCode(c5) {
|
|
106290
|
+
return 48 <= c5 && c5 <= 55;
|
|
106291
|
+
}
|
|
106292
|
+
function isDecCode(c5) {
|
|
106293
|
+
return 48 <= c5 && c5 <= 57;
|
|
106294
|
+
}
|
|
106295
|
+
function resolveYamlInteger(data) {
|
|
106296
|
+
if (data === null) return false;
|
|
106297
|
+
var max = data.length, index = 0, hasDigits = false, ch2;
|
|
106298
|
+
if (!max) return false;
|
|
106299
|
+
ch2 = data[index];
|
|
106300
|
+
if (ch2 === "-" || ch2 === "+") {
|
|
106301
|
+
ch2 = data[++index];
|
|
106302
|
+
}
|
|
106303
|
+
if (ch2 === "0") {
|
|
106304
|
+
if (index + 1 === max) return true;
|
|
106305
|
+
ch2 = data[++index];
|
|
106306
|
+
if (ch2 === "b") {
|
|
106307
|
+
index++;
|
|
106308
|
+
for (; index < max; index++) {
|
|
106309
|
+
ch2 = data[index];
|
|
106310
|
+
if (ch2 === "_") continue;
|
|
106311
|
+
if (ch2 !== "0" && ch2 !== "1") return false;
|
|
106312
|
+
hasDigits = true;
|
|
106313
|
+
}
|
|
106314
|
+
return hasDigits && ch2 !== "_";
|
|
106315
|
+
}
|
|
106316
|
+
if (ch2 === "x") {
|
|
106317
|
+
index++;
|
|
106318
|
+
for (; index < max; index++) {
|
|
106319
|
+
ch2 = data[index];
|
|
106320
|
+
if (ch2 === "_") continue;
|
|
106321
|
+
if (!isHexCode(data.charCodeAt(index))) return false;
|
|
106322
|
+
hasDigits = true;
|
|
106323
|
+
}
|
|
106324
|
+
return hasDigits && ch2 !== "_";
|
|
106325
|
+
}
|
|
106326
|
+
if (ch2 === "o") {
|
|
106327
|
+
index++;
|
|
106328
|
+
for (; index < max; index++) {
|
|
106329
|
+
ch2 = data[index];
|
|
106330
|
+
if (ch2 === "_") continue;
|
|
106331
|
+
if (!isOctCode(data.charCodeAt(index))) return false;
|
|
106332
|
+
hasDigits = true;
|
|
106333
|
+
}
|
|
106334
|
+
return hasDigits && ch2 !== "_";
|
|
106335
|
+
}
|
|
106336
|
+
}
|
|
106337
|
+
if (ch2 === "_") return false;
|
|
106338
|
+
for (; index < max; index++) {
|
|
106339
|
+
ch2 = data[index];
|
|
106340
|
+
if (ch2 === "_") continue;
|
|
106341
|
+
if (!isDecCode(data.charCodeAt(index))) {
|
|
106342
|
+
return false;
|
|
106343
|
+
}
|
|
106344
|
+
hasDigits = true;
|
|
106345
|
+
}
|
|
106346
|
+
if (!hasDigits || ch2 === "_") return false;
|
|
106347
|
+
return true;
|
|
106348
|
+
}
|
|
106349
|
+
function constructYamlInteger(data) {
|
|
106350
|
+
var value = data, sign2 = 1, ch2;
|
|
106351
|
+
if (value.indexOf("_") !== -1) {
|
|
106352
|
+
value = value.replace(/_/g, "");
|
|
106353
|
+
}
|
|
106354
|
+
ch2 = value[0];
|
|
106355
|
+
if (ch2 === "-" || ch2 === "+") {
|
|
106356
|
+
if (ch2 === "-") sign2 = -1;
|
|
106357
|
+
value = value.slice(1);
|
|
106358
|
+
ch2 = value[0];
|
|
106359
|
+
}
|
|
106360
|
+
if (value === "0") return 0;
|
|
106361
|
+
if (ch2 === "0") {
|
|
106362
|
+
if (value[1] === "b") return sign2 * parseInt(value.slice(2), 2);
|
|
106363
|
+
if (value[1] === "x") return sign2 * parseInt(value.slice(2), 16);
|
|
106364
|
+
if (value[1] === "o") return sign2 * parseInt(value.slice(2), 8);
|
|
106365
|
+
}
|
|
106366
|
+
return sign2 * parseInt(value, 10);
|
|
106367
|
+
}
|
|
106368
|
+
function isInteger(object) {
|
|
106369
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 === 0 && !common.isNegativeZero(object));
|
|
106370
|
+
}
|
|
106371
|
+
module2.exports = new Type("tag:yaml.org,2002:int", {
|
|
106372
|
+
kind: "scalar",
|
|
106373
|
+
resolve: resolveYamlInteger,
|
|
106374
|
+
construct: constructYamlInteger,
|
|
106375
|
+
predicate: isInteger,
|
|
106376
|
+
represent: {
|
|
106377
|
+
binary: function(obj) {
|
|
106378
|
+
return obj >= 0 ? "0b" + obj.toString(2) : "-0b" + obj.toString(2).slice(1);
|
|
106379
|
+
},
|
|
106380
|
+
octal: function(obj) {
|
|
106381
|
+
return obj >= 0 ? "0o" + obj.toString(8) : "-0o" + obj.toString(8).slice(1);
|
|
106382
|
+
},
|
|
106383
|
+
decimal: function(obj) {
|
|
106384
|
+
return obj.toString(10);
|
|
106385
|
+
},
|
|
106386
|
+
/* eslint-disable max-len */
|
|
106387
|
+
hexadecimal: function(obj) {
|
|
106388
|
+
return obj >= 0 ? "0x" + obj.toString(16).toUpperCase() : "-0x" + obj.toString(16).toUpperCase().slice(1);
|
|
106389
|
+
}
|
|
106390
|
+
},
|
|
106391
|
+
defaultStyle: "decimal",
|
|
106392
|
+
styleAliases: {
|
|
106393
|
+
binary: [2, "bin"],
|
|
106394
|
+
octal: [8, "oct"],
|
|
106395
|
+
decimal: [10, "dec"],
|
|
106396
|
+
hexadecimal: [16, "hex"]
|
|
106397
|
+
}
|
|
106398
|
+
});
|
|
106399
|
+
}
|
|
106400
|
+
});
|
|
106401
|
+
|
|
106402
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/float.js
|
|
106403
|
+
var require_float = __commonJS({
|
|
106404
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/float.js"(exports2, module2) {
|
|
106405
|
+
"use strict";
|
|
106406
|
+
var common = require_common3();
|
|
106407
|
+
var Type = require_type();
|
|
106408
|
+
var YAML_FLOAT_PATTERN = new RegExp(
|
|
106409
|
+
// 2.5e4, 2.5 and integers
|
|
106410
|
+
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
106411
|
+
);
|
|
106412
|
+
function resolveYamlFloat(data) {
|
|
106413
|
+
if (data === null) return false;
|
|
106414
|
+
if (!YAML_FLOAT_PATTERN.test(data) || // Quick hack to not allow integers end with `_`
|
|
106415
|
+
// Probably should update regexp & check speed
|
|
106416
|
+
data[data.length - 1] === "_") {
|
|
106417
|
+
return false;
|
|
106418
|
+
}
|
|
106419
|
+
return true;
|
|
106420
|
+
}
|
|
106421
|
+
function constructYamlFloat(data) {
|
|
106422
|
+
var value, sign2;
|
|
106423
|
+
value = data.replace(/_/g, "").toLowerCase();
|
|
106424
|
+
sign2 = value[0] === "-" ? -1 : 1;
|
|
106425
|
+
if ("+-".indexOf(value[0]) >= 0) {
|
|
106426
|
+
value = value.slice(1);
|
|
106427
|
+
}
|
|
106428
|
+
if (value === ".inf") {
|
|
106429
|
+
return sign2 === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY;
|
|
106430
|
+
} else if (value === ".nan") {
|
|
106431
|
+
return NaN;
|
|
106432
|
+
}
|
|
106433
|
+
return sign2 * parseFloat(value, 10);
|
|
106434
|
+
}
|
|
106435
|
+
var SCIENTIFIC_WITHOUT_DOT = /^[-+]?[0-9]+e/;
|
|
106436
|
+
function representYamlFloat(object, style) {
|
|
106437
|
+
var res;
|
|
106438
|
+
if (isNaN(object)) {
|
|
106439
|
+
switch (style) {
|
|
106440
|
+
case "lowercase":
|
|
106441
|
+
return ".nan";
|
|
106442
|
+
case "uppercase":
|
|
106443
|
+
return ".NAN";
|
|
106444
|
+
case "camelcase":
|
|
106445
|
+
return ".NaN";
|
|
106446
|
+
}
|
|
106447
|
+
} else if (Number.POSITIVE_INFINITY === object) {
|
|
106448
|
+
switch (style) {
|
|
106449
|
+
case "lowercase":
|
|
106450
|
+
return ".inf";
|
|
106451
|
+
case "uppercase":
|
|
106452
|
+
return ".INF";
|
|
106453
|
+
case "camelcase":
|
|
106454
|
+
return ".Inf";
|
|
106455
|
+
}
|
|
106456
|
+
} else if (Number.NEGATIVE_INFINITY === object) {
|
|
106457
|
+
switch (style) {
|
|
106458
|
+
case "lowercase":
|
|
106459
|
+
return "-.inf";
|
|
106460
|
+
case "uppercase":
|
|
106461
|
+
return "-.INF";
|
|
106462
|
+
case "camelcase":
|
|
106463
|
+
return "-.Inf";
|
|
106464
|
+
}
|
|
106465
|
+
} else if (common.isNegativeZero(object)) {
|
|
106466
|
+
return "-0.0";
|
|
106467
|
+
}
|
|
106468
|
+
res = object.toString(10);
|
|
106469
|
+
return SCIENTIFIC_WITHOUT_DOT.test(res) ? res.replace("e", ".e") : res;
|
|
106470
|
+
}
|
|
106471
|
+
function isFloat(object) {
|
|
106472
|
+
return Object.prototype.toString.call(object) === "[object Number]" && (object % 1 !== 0 || common.isNegativeZero(object));
|
|
106473
|
+
}
|
|
106474
|
+
module2.exports = new Type("tag:yaml.org,2002:float", {
|
|
106475
|
+
kind: "scalar",
|
|
106476
|
+
resolve: resolveYamlFloat,
|
|
106477
|
+
construct: constructYamlFloat,
|
|
106478
|
+
predicate: isFloat,
|
|
106479
|
+
represent: representYamlFloat,
|
|
106480
|
+
defaultStyle: "lowercase"
|
|
106481
|
+
});
|
|
106482
|
+
}
|
|
106483
|
+
});
|
|
106484
|
+
|
|
106485
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/schema/json.js
|
|
106486
|
+
var require_json = __commonJS({
|
|
106487
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/schema/json.js"(exports2, module2) {
|
|
106488
|
+
"use strict";
|
|
106489
|
+
module2.exports = require_failsafe().extend({
|
|
106490
|
+
implicit: [
|
|
106491
|
+
require_null(),
|
|
106492
|
+
require_bool(),
|
|
106493
|
+
require_int(),
|
|
106494
|
+
require_float()
|
|
106495
|
+
]
|
|
106496
|
+
});
|
|
106497
|
+
}
|
|
106498
|
+
});
|
|
106499
|
+
|
|
106500
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/schema/core.js
|
|
106501
|
+
var require_core = __commonJS({
|
|
106502
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/schema/core.js"(exports2, module2) {
|
|
106503
|
+
"use strict";
|
|
106504
|
+
module2.exports = require_json();
|
|
106505
|
+
}
|
|
106506
|
+
});
|
|
106507
|
+
|
|
106508
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/timestamp.js
|
|
106509
|
+
var require_timestamp = __commonJS({
|
|
106510
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/timestamp.js"(exports2, module2) {
|
|
106511
|
+
"use strict";
|
|
106512
|
+
var Type = require_type();
|
|
106513
|
+
var YAML_DATE_REGEXP = new RegExp(
|
|
106514
|
+
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
106515
|
+
);
|
|
106516
|
+
var YAML_TIMESTAMP_REGEXP = new RegExp(
|
|
106517
|
+
"^([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]))?))?$"
|
|
106518
|
+
);
|
|
106519
|
+
function resolveYamlTimestamp(data) {
|
|
106520
|
+
if (data === null) return false;
|
|
106521
|
+
if (YAML_DATE_REGEXP.exec(data) !== null) return true;
|
|
106522
|
+
if (YAML_TIMESTAMP_REGEXP.exec(data) !== null) return true;
|
|
106523
|
+
return false;
|
|
106524
|
+
}
|
|
106525
|
+
function constructYamlTimestamp(data) {
|
|
106526
|
+
var match, year, month, day, hour, minute, second, fraction = 0, delta = null, tz_hour, tz_minute, date;
|
|
106527
|
+
match = YAML_DATE_REGEXP.exec(data);
|
|
106528
|
+
if (match === null) match = YAML_TIMESTAMP_REGEXP.exec(data);
|
|
106529
|
+
if (match === null) throw new Error("Date resolve error");
|
|
106530
|
+
year = +match[1];
|
|
106531
|
+
month = +match[2] - 1;
|
|
106532
|
+
day = +match[3];
|
|
106533
|
+
if (!match[4]) {
|
|
106534
|
+
return new Date(Date.UTC(year, month, day));
|
|
106535
|
+
}
|
|
106536
|
+
hour = +match[4];
|
|
106537
|
+
minute = +match[5];
|
|
106538
|
+
second = +match[6];
|
|
106539
|
+
if (match[7]) {
|
|
106540
|
+
fraction = match[7].slice(0, 3);
|
|
106541
|
+
while (fraction.length < 3) {
|
|
106542
|
+
fraction += "0";
|
|
106543
|
+
}
|
|
106544
|
+
fraction = +fraction;
|
|
106545
|
+
}
|
|
106546
|
+
if (match[9]) {
|
|
106547
|
+
tz_hour = +match[10];
|
|
106548
|
+
tz_minute = +(match[11] || 0);
|
|
106549
|
+
delta = (tz_hour * 60 + tz_minute) * 6e4;
|
|
106550
|
+
if (match[9] === "-") delta = -delta;
|
|
106551
|
+
}
|
|
106552
|
+
date = new Date(Date.UTC(year, month, day, hour, minute, second, fraction));
|
|
106553
|
+
if (delta) date.setTime(date.getTime() - delta);
|
|
106554
|
+
return date;
|
|
106555
|
+
}
|
|
106556
|
+
function representYamlTimestamp(object) {
|
|
106557
|
+
return object.toISOString();
|
|
106558
|
+
}
|
|
106559
|
+
module2.exports = new Type("tag:yaml.org,2002:timestamp", {
|
|
106560
|
+
kind: "scalar",
|
|
106561
|
+
resolve: resolveYamlTimestamp,
|
|
106562
|
+
construct: constructYamlTimestamp,
|
|
106563
|
+
instanceOf: Date,
|
|
106564
|
+
represent: representYamlTimestamp
|
|
106565
|
+
});
|
|
106566
|
+
}
|
|
106567
|
+
});
|
|
106568
|
+
|
|
106569
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/merge.js
|
|
106570
|
+
var require_merge = __commonJS({
|
|
106571
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/merge.js"(exports2, module2) {
|
|
106572
|
+
"use strict";
|
|
106573
|
+
var Type = require_type();
|
|
106574
|
+
function resolveYamlMerge(data) {
|
|
106575
|
+
return data === "<<" || data === null;
|
|
106576
|
+
}
|
|
106577
|
+
module2.exports = new Type("tag:yaml.org,2002:merge", {
|
|
106578
|
+
kind: "scalar",
|
|
106579
|
+
resolve: resolveYamlMerge
|
|
106580
|
+
});
|
|
106581
|
+
}
|
|
106582
|
+
});
|
|
106583
|
+
|
|
106584
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/binary.js
|
|
106585
|
+
var require_binary = __commonJS({
|
|
106586
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/binary.js"(exports2, module2) {
|
|
106587
|
+
"use strict";
|
|
106588
|
+
var Type = require_type();
|
|
106589
|
+
var BASE64_MAP = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";
|
|
106590
|
+
function resolveYamlBinary(data) {
|
|
106591
|
+
if (data === null) return false;
|
|
106592
|
+
var code, idx, bitlen = 0, max = data.length, map = BASE64_MAP;
|
|
106593
|
+
for (idx = 0; idx < max; idx++) {
|
|
106594
|
+
code = map.indexOf(data.charAt(idx));
|
|
106595
|
+
if (code > 64) continue;
|
|
106596
|
+
if (code < 0) return false;
|
|
106597
|
+
bitlen += 6;
|
|
106598
|
+
}
|
|
106599
|
+
return bitlen % 8 === 0;
|
|
106600
|
+
}
|
|
106601
|
+
function constructYamlBinary(data) {
|
|
106602
|
+
var idx, tailbits, input = data.replace(/[\r\n=]/g, ""), max = input.length, map = BASE64_MAP, bits = 0, result = [];
|
|
106603
|
+
for (idx = 0; idx < max; idx++) {
|
|
106604
|
+
if (idx % 4 === 0 && idx) {
|
|
106605
|
+
result.push(bits >> 16 & 255);
|
|
106606
|
+
result.push(bits >> 8 & 255);
|
|
106607
|
+
result.push(bits & 255);
|
|
106608
|
+
}
|
|
106609
|
+
bits = bits << 6 | map.indexOf(input.charAt(idx));
|
|
106610
|
+
}
|
|
106611
|
+
tailbits = max % 4 * 6;
|
|
106612
|
+
if (tailbits === 0) {
|
|
106613
|
+
result.push(bits >> 16 & 255);
|
|
106614
|
+
result.push(bits >> 8 & 255);
|
|
106615
|
+
result.push(bits & 255);
|
|
106616
|
+
} else if (tailbits === 18) {
|
|
106617
|
+
result.push(bits >> 10 & 255);
|
|
106618
|
+
result.push(bits >> 2 & 255);
|
|
106619
|
+
} else if (tailbits === 12) {
|
|
106620
|
+
result.push(bits >> 4 & 255);
|
|
106621
|
+
}
|
|
106622
|
+
return new Uint8Array(result);
|
|
106623
|
+
}
|
|
106624
|
+
function representYamlBinary(object) {
|
|
106625
|
+
var result = "", bits = 0, idx, tail, max = object.length, map = BASE64_MAP;
|
|
106626
|
+
for (idx = 0; idx < max; idx++) {
|
|
106627
|
+
if (idx % 3 === 0 && idx) {
|
|
106628
|
+
result += map[bits >> 18 & 63];
|
|
106629
|
+
result += map[bits >> 12 & 63];
|
|
106630
|
+
result += map[bits >> 6 & 63];
|
|
106631
|
+
result += map[bits & 63];
|
|
106632
|
+
}
|
|
106633
|
+
bits = (bits << 8) + object[idx];
|
|
106634
|
+
}
|
|
106635
|
+
tail = max % 3;
|
|
106636
|
+
if (tail === 0) {
|
|
106637
|
+
result += map[bits >> 18 & 63];
|
|
106638
|
+
result += map[bits >> 12 & 63];
|
|
106639
|
+
result += map[bits >> 6 & 63];
|
|
106640
|
+
result += map[bits & 63];
|
|
106641
|
+
} else if (tail === 2) {
|
|
106642
|
+
result += map[bits >> 10 & 63];
|
|
106643
|
+
result += map[bits >> 4 & 63];
|
|
106644
|
+
result += map[bits << 2 & 63];
|
|
106645
|
+
result += map[64];
|
|
106646
|
+
} else if (tail === 1) {
|
|
106647
|
+
result += map[bits >> 2 & 63];
|
|
106648
|
+
result += map[bits << 4 & 63];
|
|
106649
|
+
result += map[64];
|
|
106650
|
+
result += map[64];
|
|
106651
|
+
}
|
|
106652
|
+
return result;
|
|
106653
|
+
}
|
|
106654
|
+
function isBinary(obj) {
|
|
106655
|
+
return Object.prototype.toString.call(obj) === "[object Uint8Array]";
|
|
106656
|
+
}
|
|
106657
|
+
module2.exports = new Type("tag:yaml.org,2002:binary", {
|
|
106658
|
+
kind: "scalar",
|
|
106659
|
+
resolve: resolveYamlBinary,
|
|
106660
|
+
construct: constructYamlBinary,
|
|
106661
|
+
predicate: isBinary,
|
|
106662
|
+
represent: representYamlBinary
|
|
106663
|
+
});
|
|
106664
|
+
}
|
|
106665
|
+
});
|
|
106666
|
+
|
|
106667
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/omap.js
|
|
106668
|
+
var require_omap = __commonJS({
|
|
106669
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/omap.js"(exports2, module2) {
|
|
106670
|
+
"use strict";
|
|
106671
|
+
var Type = require_type();
|
|
106672
|
+
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
106673
|
+
var _toString = Object.prototype.toString;
|
|
106674
|
+
function resolveYamlOmap(data) {
|
|
106675
|
+
if (data === null) return true;
|
|
106676
|
+
var objectKeys = [], index, length, pair, pairKey, pairHasKey, object = data;
|
|
106677
|
+
for (index = 0, length = object.length; index < length; index += 1) {
|
|
106678
|
+
pair = object[index];
|
|
106679
|
+
pairHasKey = false;
|
|
106680
|
+
if (_toString.call(pair) !== "[object Object]") return false;
|
|
106681
|
+
for (pairKey in pair) {
|
|
106682
|
+
if (_hasOwnProperty.call(pair, pairKey)) {
|
|
106683
|
+
if (!pairHasKey) pairHasKey = true;
|
|
106684
|
+
else return false;
|
|
106685
|
+
}
|
|
106686
|
+
}
|
|
106687
|
+
if (!pairHasKey) return false;
|
|
106688
|
+
if (objectKeys.indexOf(pairKey) === -1) objectKeys.push(pairKey);
|
|
106689
|
+
else return false;
|
|
106690
|
+
}
|
|
106691
|
+
return true;
|
|
106692
|
+
}
|
|
106693
|
+
function constructYamlOmap(data) {
|
|
106694
|
+
return data !== null ? data : [];
|
|
106695
|
+
}
|
|
106696
|
+
module2.exports = new Type("tag:yaml.org,2002:omap", {
|
|
106697
|
+
kind: "sequence",
|
|
106698
|
+
resolve: resolveYamlOmap,
|
|
106699
|
+
construct: constructYamlOmap
|
|
106700
|
+
});
|
|
106701
|
+
}
|
|
106702
|
+
});
|
|
106703
|
+
|
|
106704
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/pairs.js
|
|
106705
|
+
var require_pairs = __commonJS({
|
|
106706
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/pairs.js"(exports2, module2) {
|
|
106707
|
+
"use strict";
|
|
106708
|
+
var Type = require_type();
|
|
106709
|
+
var _toString = Object.prototype.toString;
|
|
106710
|
+
function resolveYamlPairs(data) {
|
|
106711
|
+
if (data === null) return true;
|
|
106712
|
+
var index, length, pair, keys, result, object = data;
|
|
106713
|
+
result = new Array(object.length);
|
|
106714
|
+
for (index = 0, length = object.length; index < length; index += 1) {
|
|
106715
|
+
pair = object[index];
|
|
106716
|
+
if (_toString.call(pair) !== "[object Object]") return false;
|
|
106717
|
+
keys = Object.keys(pair);
|
|
106718
|
+
if (keys.length !== 1) return false;
|
|
106719
|
+
result[index] = [keys[0], pair[keys[0]]];
|
|
106720
|
+
}
|
|
106721
|
+
return true;
|
|
106722
|
+
}
|
|
106723
|
+
function constructYamlPairs(data) {
|
|
106724
|
+
if (data === null) return [];
|
|
106725
|
+
var index, length, pair, keys, result, object = data;
|
|
106726
|
+
result = new Array(object.length);
|
|
106727
|
+
for (index = 0, length = object.length; index < length; index += 1) {
|
|
106728
|
+
pair = object[index];
|
|
106729
|
+
keys = Object.keys(pair);
|
|
106730
|
+
result[index] = [keys[0], pair[keys[0]]];
|
|
106731
|
+
}
|
|
106732
|
+
return result;
|
|
106733
|
+
}
|
|
106734
|
+
module2.exports = new Type("tag:yaml.org,2002:pairs", {
|
|
106735
|
+
kind: "sequence",
|
|
106736
|
+
resolve: resolveYamlPairs,
|
|
106737
|
+
construct: constructYamlPairs
|
|
106738
|
+
});
|
|
106739
|
+
}
|
|
106740
|
+
});
|
|
106741
|
+
|
|
106742
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/set.js
|
|
106743
|
+
var require_set = __commonJS({
|
|
106744
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/type/set.js"(exports2, module2) {
|
|
106745
|
+
"use strict";
|
|
106746
|
+
var Type = require_type();
|
|
106747
|
+
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
106748
|
+
function resolveYamlSet(data) {
|
|
106749
|
+
if (data === null) return true;
|
|
106750
|
+
var key2, object = data;
|
|
106751
|
+
for (key2 in object) {
|
|
106752
|
+
if (_hasOwnProperty.call(object, key2)) {
|
|
106753
|
+
if (object[key2] !== null) return false;
|
|
106754
|
+
}
|
|
106755
|
+
}
|
|
106756
|
+
return true;
|
|
106757
|
+
}
|
|
106758
|
+
function constructYamlSet(data) {
|
|
106759
|
+
return data !== null ? data : {};
|
|
106760
|
+
}
|
|
106761
|
+
module2.exports = new Type("tag:yaml.org,2002:set", {
|
|
106762
|
+
kind: "mapping",
|
|
106763
|
+
resolve: resolveYamlSet,
|
|
106764
|
+
construct: constructYamlSet
|
|
106765
|
+
});
|
|
106766
|
+
}
|
|
106767
|
+
});
|
|
106768
|
+
|
|
106769
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/schema/default.js
|
|
106770
|
+
var require_default = __commonJS({
|
|
106771
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/schema/default.js"(exports2, module2) {
|
|
106772
|
+
"use strict";
|
|
106773
|
+
module2.exports = require_core().extend({
|
|
106774
|
+
implicit: [
|
|
106775
|
+
require_timestamp(),
|
|
106776
|
+
require_merge()
|
|
106777
|
+
],
|
|
106778
|
+
explicit: [
|
|
106779
|
+
require_binary(),
|
|
106780
|
+
require_omap(),
|
|
106781
|
+
require_pairs(),
|
|
106782
|
+
require_set()
|
|
106783
|
+
]
|
|
106784
|
+
});
|
|
106785
|
+
}
|
|
106786
|
+
});
|
|
106787
|
+
|
|
106788
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/loader.js
|
|
106789
|
+
var require_loader = __commonJS({
|
|
106790
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/loader.js"(exports2, module2) {
|
|
106791
|
+
"use strict";
|
|
106792
|
+
var common = require_common3();
|
|
106793
|
+
var YAMLException = require_exception();
|
|
106794
|
+
var makeSnippet = require_snippet();
|
|
106795
|
+
var DEFAULT_SCHEMA = require_default();
|
|
106796
|
+
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
106797
|
+
var CONTEXT_FLOW_IN = 1;
|
|
106798
|
+
var CONTEXT_FLOW_OUT = 2;
|
|
106799
|
+
var CONTEXT_BLOCK_IN = 3;
|
|
106800
|
+
var CONTEXT_BLOCK_OUT = 4;
|
|
106801
|
+
var CHOMPING_CLIP = 1;
|
|
106802
|
+
var CHOMPING_STRIP = 2;
|
|
106803
|
+
var CHOMPING_KEEP = 3;
|
|
106804
|
+
var PATTERN_NON_PRINTABLE = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/;
|
|
106805
|
+
var PATTERN_NON_ASCII_LINE_BREAKS = /[\x85\u2028\u2029]/;
|
|
106806
|
+
var PATTERN_FLOW_INDICATORS = /[,\[\]\{\}]/;
|
|
106807
|
+
var PATTERN_TAG_HANDLE = /^(?:!|!!|![a-z\-]+!)$/i;
|
|
106808
|
+
var PATTERN_TAG_URI = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
106809
|
+
function _class(obj) {
|
|
106810
|
+
return Object.prototype.toString.call(obj);
|
|
106811
|
+
}
|
|
106812
|
+
function is_EOL(c5) {
|
|
106813
|
+
return c5 === 10 || c5 === 13;
|
|
106814
|
+
}
|
|
106815
|
+
function is_WHITE_SPACE(c5) {
|
|
106816
|
+
return c5 === 9 || c5 === 32;
|
|
106817
|
+
}
|
|
106818
|
+
function is_WS_OR_EOL(c5) {
|
|
106819
|
+
return c5 === 9 || c5 === 32 || c5 === 10 || c5 === 13;
|
|
106820
|
+
}
|
|
106821
|
+
function is_FLOW_INDICATOR(c5) {
|
|
106822
|
+
return c5 === 44 || c5 === 91 || c5 === 93 || c5 === 123 || c5 === 125;
|
|
106823
|
+
}
|
|
106824
|
+
function fromHexCode(c5) {
|
|
106825
|
+
var lc3;
|
|
106826
|
+
if (48 <= c5 && c5 <= 57) {
|
|
106827
|
+
return c5 - 48;
|
|
106828
|
+
}
|
|
106829
|
+
lc3 = c5 | 32;
|
|
106830
|
+
if (97 <= lc3 && lc3 <= 102) {
|
|
106831
|
+
return lc3 - 97 + 10;
|
|
106832
|
+
}
|
|
106833
|
+
return -1;
|
|
106834
|
+
}
|
|
106835
|
+
function escapedHexLen(c5) {
|
|
106836
|
+
if (c5 === 120) {
|
|
106837
|
+
return 2;
|
|
106838
|
+
}
|
|
106839
|
+
if (c5 === 117) {
|
|
106840
|
+
return 4;
|
|
106841
|
+
}
|
|
106842
|
+
if (c5 === 85) {
|
|
106843
|
+
return 8;
|
|
106844
|
+
}
|
|
106845
|
+
return 0;
|
|
106846
|
+
}
|
|
106847
|
+
function fromDecimalCode(c5) {
|
|
106848
|
+
if (48 <= c5 && c5 <= 57) {
|
|
106849
|
+
return c5 - 48;
|
|
106850
|
+
}
|
|
106851
|
+
return -1;
|
|
106852
|
+
}
|
|
106853
|
+
function simpleEscapeSequence(c5) {
|
|
106854
|
+
return c5 === 48 ? "\0" : c5 === 97 ? "\x07" : c5 === 98 ? "\b" : c5 === 116 ? " " : c5 === 9 ? " " : c5 === 110 ? "\n" : c5 === 118 ? "\v" : c5 === 102 ? "\f" : c5 === 114 ? "\r" : c5 === 101 ? "\x1B" : c5 === 32 ? " " : c5 === 34 ? '"' : c5 === 47 ? "/" : c5 === 92 ? "\\" : c5 === 78 ? "\x85" : c5 === 95 ? "\xA0" : c5 === 76 ? "\u2028" : c5 === 80 ? "\u2029" : "";
|
|
106855
|
+
}
|
|
106856
|
+
function charFromCodepoint(c5) {
|
|
106857
|
+
if (c5 <= 65535) {
|
|
106858
|
+
return String.fromCharCode(c5);
|
|
106859
|
+
}
|
|
106860
|
+
return String.fromCharCode(
|
|
106861
|
+
(c5 - 65536 >> 10) + 55296,
|
|
106862
|
+
(c5 - 65536 & 1023) + 56320
|
|
106863
|
+
);
|
|
106864
|
+
}
|
|
106865
|
+
var simpleEscapeCheck = new Array(256);
|
|
106866
|
+
var simpleEscapeMap = new Array(256);
|
|
106867
|
+
for (i = 0; i < 256; i++) {
|
|
106868
|
+
simpleEscapeCheck[i] = simpleEscapeSequence(i) ? 1 : 0;
|
|
106869
|
+
simpleEscapeMap[i] = simpleEscapeSequence(i);
|
|
106870
|
+
}
|
|
106871
|
+
var i;
|
|
106872
|
+
function State(input, options8) {
|
|
106873
|
+
this.input = input;
|
|
106874
|
+
this.filename = options8["filename"] || null;
|
|
106875
|
+
this.schema = options8["schema"] || DEFAULT_SCHEMA;
|
|
106876
|
+
this.onWarning = options8["onWarning"] || null;
|
|
106877
|
+
this.legacy = options8["legacy"] || false;
|
|
106878
|
+
this.json = options8["json"] || false;
|
|
106879
|
+
this.listener = options8["listener"] || null;
|
|
106880
|
+
this.implicitTypes = this.schema.compiledImplicit;
|
|
106881
|
+
this.typeMap = this.schema.compiledTypeMap;
|
|
106882
|
+
this.length = input.length;
|
|
106883
|
+
this.position = 0;
|
|
106884
|
+
this.line = 0;
|
|
106885
|
+
this.lineStart = 0;
|
|
106886
|
+
this.lineIndent = 0;
|
|
106887
|
+
this.firstTabInLine = -1;
|
|
106888
|
+
this.documents = [];
|
|
106889
|
+
}
|
|
106890
|
+
function generateError(state, message) {
|
|
106891
|
+
var mark = {
|
|
106892
|
+
name: state.filename,
|
|
106893
|
+
buffer: state.input.slice(0, -1),
|
|
106894
|
+
// omit trailing \0
|
|
106895
|
+
position: state.position,
|
|
106896
|
+
line: state.line,
|
|
106897
|
+
column: state.position - state.lineStart
|
|
106898
|
+
};
|
|
106899
|
+
mark.snippet = makeSnippet(mark);
|
|
106900
|
+
return new YAMLException(message, mark);
|
|
106901
|
+
}
|
|
106902
|
+
function throwError(state, message) {
|
|
106903
|
+
throw generateError(state, message);
|
|
106904
|
+
}
|
|
106905
|
+
function throwWarning(state, message) {
|
|
106906
|
+
if (state.onWarning) {
|
|
106907
|
+
state.onWarning.call(null, generateError(state, message));
|
|
106908
|
+
}
|
|
106909
|
+
}
|
|
106910
|
+
var directiveHandlers = {
|
|
106911
|
+
YAML: function handleYamlDirective(state, name, args) {
|
|
106912
|
+
var match, major, minor;
|
|
106913
|
+
if (state.version !== null) {
|
|
106914
|
+
throwError(state, "duplication of %YAML directive");
|
|
106915
|
+
}
|
|
106916
|
+
if (args.length !== 1) {
|
|
106917
|
+
throwError(state, "YAML directive accepts exactly one argument");
|
|
106918
|
+
}
|
|
106919
|
+
match = /^([0-9]+)\.([0-9]+)$/.exec(args[0]);
|
|
106920
|
+
if (match === null) {
|
|
106921
|
+
throwError(state, "ill-formed argument of the YAML directive");
|
|
106922
|
+
}
|
|
106923
|
+
major = parseInt(match[1], 10);
|
|
106924
|
+
minor = parseInt(match[2], 10);
|
|
106925
|
+
if (major !== 1) {
|
|
106926
|
+
throwError(state, "unacceptable YAML version of the document");
|
|
106927
|
+
}
|
|
106928
|
+
state.version = args[0];
|
|
106929
|
+
state.checkLineBreaks = minor < 2;
|
|
106930
|
+
if (minor !== 1 && minor !== 2) {
|
|
106931
|
+
throwWarning(state, "unsupported YAML version of the document");
|
|
106932
|
+
}
|
|
106933
|
+
},
|
|
106934
|
+
TAG: function handleTagDirective(state, name, args) {
|
|
106935
|
+
var handle, prefix;
|
|
106936
|
+
if (args.length !== 2) {
|
|
106937
|
+
throwError(state, "TAG directive accepts exactly two arguments");
|
|
106938
|
+
}
|
|
106939
|
+
handle = args[0];
|
|
106940
|
+
prefix = args[1];
|
|
106941
|
+
if (!PATTERN_TAG_HANDLE.test(handle)) {
|
|
106942
|
+
throwError(state, "ill-formed tag handle (first argument) of the TAG directive");
|
|
106943
|
+
}
|
|
106944
|
+
if (_hasOwnProperty.call(state.tagMap, handle)) {
|
|
106945
|
+
throwError(state, 'there is a previously declared suffix for "' + handle + '" tag handle');
|
|
106946
|
+
}
|
|
106947
|
+
if (!PATTERN_TAG_URI.test(prefix)) {
|
|
106948
|
+
throwError(state, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
106949
|
+
}
|
|
106950
|
+
try {
|
|
106951
|
+
prefix = decodeURIComponent(prefix);
|
|
106952
|
+
} catch (err) {
|
|
106953
|
+
throwError(state, "tag prefix is malformed: " + prefix);
|
|
106954
|
+
}
|
|
106955
|
+
state.tagMap[handle] = prefix;
|
|
106956
|
+
}
|
|
106957
|
+
};
|
|
106958
|
+
function captureSegment(state, start, end, checkJson) {
|
|
106959
|
+
var _position, _length, _character, _result;
|
|
106960
|
+
if (start < end) {
|
|
106961
|
+
_result = state.input.slice(start, end);
|
|
106962
|
+
if (checkJson) {
|
|
106963
|
+
for (_position = 0, _length = _result.length; _position < _length; _position += 1) {
|
|
106964
|
+
_character = _result.charCodeAt(_position);
|
|
106965
|
+
if (!(_character === 9 || 32 <= _character && _character <= 1114111)) {
|
|
106966
|
+
throwError(state, "expected valid JSON character");
|
|
106967
|
+
}
|
|
106968
|
+
}
|
|
106969
|
+
} else if (PATTERN_NON_PRINTABLE.test(_result)) {
|
|
106970
|
+
throwError(state, "the stream contains non-printable characters");
|
|
106971
|
+
}
|
|
106972
|
+
state.result += _result;
|
|
106973
|
+
}
|
|
106974
|
+
}
|
|
106975
|
+
function mergeMappings(state, destination, source2, overridableKeys) {
|
|
106976
|
+
var sourceKeys, key2, index, quantity;
|
|
106977
|
+
if (!common.isObject(source2)) {
|
|
106978
|
+
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
106979
|
+
}
|
|
106980
|
+
sourceKeys = Object.keys(source2);
|
|
106981
|
+
for (index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
106982
|
+
key2 = sourceKeys[index];
|
|
106983
|
+
if (!_hasOwnProperty.call(destination, key2)) {
|
|
106984
|
+
destination[key2] = source2[key2];
|
|
106985
|
+
overridableKeys[key2] = true;
|
|
106986
|
+
}
|
|
106987
|
+
}
|
|
106988
|
+
}
|
|
106989
|
+
function storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, startLine, startLineStart, startPos) {
|
|
106990
|
+
var index, quantity;
|
|
106991
|
+
if (Array.isArray(keyNode)) {
|
|
106992
|
+
keyNode = Array.prototype.slice.call(keyNode);
|
|
106993
|
+
for (index = 0, quantity = keyNode.length; index < quantity; index += 1) {
|
|
106994
|
+
if (Array.isArray(keyNode[index])) {
|
|
106995
|
+
throwError(state, "nested arrays are not supported inside keys");
|
|
106996
|
+
}
|
|
106997
|
+
if (typeof keyNode === "object" && _class(keyNode[index]) === "[object Object]") {
|
|
106998
|
+
keyNode[index] = "[object Object]";
|
|
106999
|
+
}
|
|
107000
|
+
}
|
|
107001
|
+
}
|
|
107002
|
+
if (typeof keyNode === "object" && _class(keyNode) === "[object Object]") {
|
|
107003
|
+
keyNode = "[object Object]";
|
|
107004
|
+
}
|
|
107005
|
+
keyNode = String(keyNode);
|
|
107006
|
+
if (_result === null) {
|
|
107007
|
+
_result = {};
|
|
107008
|
+
}
|
|
107009
|
+
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
107010
|
+
if (Array.isArray(valueNode)) {
|
|
107011
|
+
for (index = 0, quantity = valueNode.length; index < quantity; index += 1) {
|
|
107012
|
+
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
107013
|
+
}
|
|
107014
|
+
} else {
|
|
107015
|
+
mergeMappings(state, _result, valueNode, overridableKeys);
|
|
107016
|
+
}
|
|
107017
|
+
} else {
|
|
107018
|
+
if (!state.json && !_hasOwnProperty.call(overridableKeys, keyNode) && _hasOwnProperty.call(_result, keyNode)) {
|
|
107019
|
+
state.line = startLine || state.line;
|
|
107020
|
+
state.lineStart = startLineStart || state.lineStart;
|
|
107021
|
+
state.position = startPos || state.position;
|
|
107022
|
+
throwError(state, "duplicated mapping key");
|
|
107023
|
+
}
|
|
107024
|
+
if (keyNode === "__proto__") {
|
|
107025
|
+
Object.defineProperty(_result, keyNode, {
|
|
107026
|
+
configurable: true,
|
|
107027
|
+
enumerable: true,
|
|
107028
|
+
writable: true,
|
|
107029
|
+
value: valueNode
|
|
107030
|
+
});
|
|
107031
|
+
} else {
|
|
107032
|
+
_result[keyNode] = valueNode;
|
|
107033
|
+
}
|
|
107034
|
+
delete overridableKeys[keyNode];
|
|
107035
|
+
}
|
|
107036
|
+
return _result;
|
|
107037
|
+
}
|
|
107038
|
+
function readLineBreak(state) {
|
|
107039
|
+
var ch2;
|
|
107040
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107041
|
+
if (ch2 === 10) {
|
|
107042
|
+
state.position++;
|
|
107043
|
+
} else if (ch2 === 13) {
|
|
107044
|
+
state.position++;
|
|
107045
|
+
if (state.input.charCodeAt(state.position) === 10) {
|
|
107046
|
+
state.position++;
|
|
107047
|
+
}
|
|
107048
|
+
} else {
|
|
107049
|
+
throwError(state, "a line break is expected");
|
|
107050
|
+
}
|
|
107051
|
+
state.line += 1;
|
|
107052
|
+
state.lineStart = state.position;
|
|
107053
|
+
state.firstTabInLine = -1;
|
|
107054
|
+
}
|
|
107055
|
+
function skipSeparationSpace(state, allowComments, checkIndent) {
|
|
107056
|
+
var lineBreaks = 0, ch2 = state.input.charCodeAt(state.position);
|
|
107057
|
+
while (ch2 !== 0) {
|
|
107058
|
+
while (is_WHITE_SPACE(ch2)) {
|
|
107059
|
+
if (ch2 === 9 && state.firstTabInLine === -1) {
|
|
107060
|
+
state.firstTabInLine = state.position;
|
|
107061
|
+
}
|
|
107062
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107063
|
+
}
|
|
107064
|
+
if (allowComments && ch2 === 35) {
|
|
107065
|
+
do {
|
|
107066
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107067
|
+
} while (ch2 !== 10 && ch2 !== 13 && ch2 !== 0);
|
|
107068
|
+
}
|
|
107069
|
+
if (is_EOL(ch2)) {
|
|
107070
|
+
readLineBreak(state);
|
|
107071
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107072
|
+
lineBreaks++;
|
|
107073
|
+
state.lineIndent = 0;
|
|
107074
|
+
while (ch2 === 32) {
|
|
107075
|
+
state.lineIndent++;
|
|
107076
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107077
|
+
}
|
|
107078
|
+
} else {
|
|
107079
|
+
break;
|
|
107080
|
+
}
|
|
107081
|
+
}
|
|
107082
|
+
if (checkIndent !== -1 && lineBreaks !== 0 && state.lineIndent < checkIndent) {
|
|
107083
|
+
throwWarning(state, "deficient indentation");
|
|
107084
|
+
}
|
|
107085
|
+
return lineBreaks;
|
|
107086
|
+
}
|
|
107087
|
+
function testDocumentSeparator(state) {
|
|
107088
|
+
var _position = state.position, ch2;
|
|
107089
|
+
ch2 = state.input.charCodeAt(_position);
|
|
107090
|
+
if ((ch2 === 45 || ch2 === 46) && ch2 === state.input.charCodeAt(_position + 1) && ch2 === state.input.charCodeAt(_position + 2)) {
|
|
107091
|
+
_position += 3;
|
|
107092
|
+
ch2 = state.input.charCodeAt(_position);
|
|
107093
|
+
if (ch2 === 0 || is_WS_OR_EOL(ch2)) {
|
|
107094
|
+
return true;
|
|
107095
|
+
}
|
|
107096
|
+
}
|
|
107097
|
+
return false;
|
|
107098
|
+
}
|
|
107099
|
+
function writeFoldedLines(state, count) {
|
|
107100
|
+
if (count === 1) {
|
|
107101
|
+
state.result += " ";
|
|
107102
|
+
} else if (count > 1) {
|
|
107103
|
+
state.result += common.repeat("\n", count - 1);
|
|
107104
|
+
}
|
|
107105
|
+
}
|
|
107106
|
+
function readPlainScalar(state, nodeIndent, withinFlowCollection) {
|
|
107107
|
+
var preceding, following, captureStart, captureEnd, hasPendingContent, _line, _lineStart, _lineIndent, _kind = state.kind, _result = state.result, ch2;
|
|
107108
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107109
|
+
if (is_WS_OR_EOL(ch2) || is_FLOW_INDICATOR(ch2) || ch2 === 35 || ch2 === 38 || ch2 === 42 || ch2 === 33 || ch2 === 124 || ch2 === 62 || ch2 === 39 || ch2 === 34 || ch2 === 37 || ch2 === 64 || ch2 === 96) {
|
|
107110
|
+
return false;
|
|
107111
|
+
}
|
|
107112
|
+
if (ch2 === 63 || ch2 === 45) {
|
|
107113
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
107114
|
+
if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
|
|
107115
|
+
return false;
|
|
107116
|
+
}
|
|
107117
|
+
}
|
|
107118
|
+
state.kind = "scalar";
|
|
107119
|
+
state.result = "";
|
|
107120
|
+
captureStart = captureEnd = state.position;
|
|
107121
|
+
hasPendingContent = false;
|
|
107122
|
+
while (ch2 !== 0) {
|
|
107123
|
+
if (ch2 === 58) {
|
|
107124
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
107125
|
+
if (is_WS_OR_EOL(following) || withinFlowCollection && is_FLOW_INDICATOR(following)) {
|
|
107126
|
+
break;
|
|
107127
|
+
}
|
|
107128
|
+
} else if (ch2 === 35) {
|
|
107129
|
+
preceding = state.input.charCodeAt(state.position - 1);
|
|
107130
|
+
if (is_WS_OR_EOL(preceding)) {
|
|
107131
|
+
break;
|
|
107132
|
+
}
|
|
107133
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state) || withinFlowCollection && is_FLOW_INDICATOR(ch2)) {
|
|
107134
|
+
break;
|
|
107135
|
+
} else if (is_EOL(ch2)) {
|
|
107136
|
+
_line = state.line;
|
|
107137
|
+
_lineStart = state.lineStart;
|
|
107138
|
+
_lineIndent = state.lineIndent;
|
|
107139
|
+
skipSeparationSpace(state, false, -1);
|
|
107140
|
+
if (state.lineIndent >= nodeIndent) {
|
|
107141
|
+
hasPendingContent = true;
|
|
107142
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107143
|
+
continue;
|
|
107144
|
+
} else {
|
|
107145
|
+
state.position = captureEnd;
|
|
107146
|
+
state.line = _line;
|
|
107147
|
+
state.lineStart = _lineStart;
|
|
107148
|
+
state.lineIndent = _lineIndent;
|
|
107149
|
+
break;
|
|
107150
|
+
}
|
|
107151
|
+
}
|
|
107152
|
+
if (hasPendingContent) {
|
|
107153
|
+
captureSegment(state, captureStart, captureEnd, false);
|
|
107154
|
+
writeFoldedLines(state, state.line - _line);
|
|
107155
|
+
captureStart = captureEnd = state.position;
|
|
107156
|
+
hasPendingContent = false;
|
|
107157
|
+
}
|
|
107158
|
+
if (!is_WHITE_SPACE(ch2)) {
|
|
107159
|
+
captureEnd = state.position + 1;
|
|
107160
|
+
}
|
|
107161
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107162
|
+
}
|
|
107163
|
+
captureSegment(state, captureStart, captureEnd, false);
|
|
107164
|
+
if (state.result) {
|
|
107165
|
+
return true;
|
|
107166
|
+
}
|
|
107167
|
+
state.kind = _kind;
|
|
107168
|
+
state.result = _result;
|
|
107169
|
+
return false;
|
|
107170
|
+
}
|
|
107171
|
+
function readSingleQuotedScalar(state, nodeIndent) {
|
|
107172
|
+
var ch2, captureStart, captureEnd;
|
|
107173
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107174
|
+
if (ch2 !== 39) {
|
|
107175
|
+
return false;
|
|
107176
|
+
}
|
|
107177
|
+
state.kind = "scalar";
|
|
107178
|
+
state.result = "";
|
|
107179
|
+
state.position++;
|
|
107180
|
+
captureStart = captureEnd = state.position;
|
|
107181
|
+
while ((ch2 = state.input.charCodeAt(state.position)) !== 0) {
|
|
107182
|
+
if (ch2 === 39) {
|
|
107183
|
+
captureSegment(state, captureStart, state.position, true);
|
|
107184
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107185
|
+
if (ch2 === 39) {
|
|
107186
|
+
captureStart = state.position;
|
|
107187
|
+
state.position++;
|
|
107188
|
+
captureEnd = state.position;
|
|
107189
|
+
} else {
|
|
107190
|
+
return true;
|
|
107191
|
+
}
|
|
107192
|
+
} else if (is_EOL(ch2)) {
|
|
107193
|
+
captureSegment(state, captureStart, captureEnd, true);
|
|
107194
|
+
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
107195
|
+
captureStart = captureEnd = state.position;
|
|
107196
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
107197
|
+
throwError(state, "unexpected end of the document within a single quoted scalar");
|
|
107198
|
+
} else {
|
|
107199
|
+
state.position++;
|
|
107200
|
+
captureEnd = state.position;
|
|
107201
|
+
}
|
|
107202
|
+
}
|
|
107203
|
+
throwError(state, "unexpected end of the stream within a single quoted scalar");
|
|
107204
|
+
}
|
|
107205
|
+
function readDoubleQuotedScalar(state, nodeIndent) {
|
|
107206
|
+
var captureStart, captureEnd, hexLength, hexResult, tmp, ch2;
|
|
107207
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107208
|
+
if (ch2 !== 34) {
|
|
107209
|
+
return false;
|
|
107210
|
+
}
|
|
107211
|
+
state.kind = "scalar";
|
|
107212
|
+
state.result = "";
|
|
107213
|
+
state.position++;
|
|
107214
|
+
captureStart = captureEnd = state.position;
|
|
107215
|
+
while ((ch2 = state.input.charCodeAt(state.position)) !== 0) {
|
|
107216
|
+
if (ch2 === 34) {
|
|
107217
|
+
captureSegment(state, captureStart, state.position, true);
|
|
107218
|
+
state.position++;
|
|
107219
|
+
return true;
|
|
107220
|
+
} else if (ch2 === 92) {
|
|
107221
|
+
captureSegment(state, captureStart, state.position, true);
|
|
107222
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107223
|
+
if (is_EOL(ch2)) {
|
|
107224
|
+
skipSeparationSpace(state, false, nodeIndent);
|
|
107225
|
+
} else if (ch2 < 256 && simpleEscapeCheck[ch2]) {
|
|
107226
|
+
state.result += simpleEscapeMap[ch2];
|
|
107227
|
+
state.position++;
|
|
107228
|
+
} else if ((tmp = escapedHexLen(ch2)) > 0) {
|
|
107229
|
+
hexLength = tmp;
|
|
107230
|
+
hexResult = 0;
|
|
107231
|
+
for (; hexLength > 0; hexLength--) {
|
|
107232
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107233
|
+
if ((tmp = fromHexCode(ch2)) >= 0) {
|
|
107234
|
+
hexResult = (hexResult << 4) + tmp;
|
|
107235
|
+
} else {
|
|
107236
|
+
throwError(state, "expected hexadecimal character");
|
|
107237
|
+
}
|
|
107238
|
+
}
|
|
107239
|
+
state.result += charFromCodepoint(hexResult);
|
|
107240
|
+
state.position++;
|
|
107241
|
+
} else {
|
|
107242
|
+
throwError(state, "unknown escape sequence");
|
|
107243
|
+
}
|
|
107244
|
+
captureStart = captureEnd = state.position;
|
|
107245
|
+
} else if (is_EOL(ch2)) {
|
|
107246
|
+
captureSegment(state, captureStart, captureEnd, true);
|
|
107247
|
+
writeFoldedLines(state, skipSeparationSpace(state, false, nodeIndent));
|
|
107248
|
+
captureStart = captureEnd = state.position;
|
|
107249
|
+
} else if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
107250
|
+
throwError(state, "unexpected end of the document within a double quoted scalar");
|
|
107251
|
+
} else {
|
|
107252
|
+
state.position++;
|
|
107253
|
+
captureEnd = state.position;
|
|
107254
|
+
}
|
|
107255
|
+
}
|
|
107256
|
+
throwError(state, "unexpected end of the stream within a double quoted scalar");
|
|
107257
|
+
}
|
|
107258
|
+
function readFlowCollection(state, nodeIndent) {
|
|
107259
|
+
var readNext = true, _line, _lineStart, _pos, _tag = state.tag, _result, _anchor = state.anchor, following, terminator, isPair, isExplicitPair, isMapping, overridableKeys = /* @__PURE__ */ Object.create(null), keyNode, keyTag, valueNode, ch2;
|
|
107260
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107261
|
+
if (ch2 === 91) {
|
|
107262
|
+
terminator = 93;
|
|
107263
|
+
isMapping = false;
|
|
107264
|
+
_result = [];
|
|
107265
|
+
} else if (ch2 === 123) {
|
|
107266
|
+
terminator = 125;
|
|
107267
|
+
isMapping = true;
|
|
107268
|
+
_result = {};
|
|
107269
|
+
} else {
|
|
107270
|
+
return false;
|
|
107271
|
+
}
|
|
107272
|
+
if (state.anchor !== null) {
|
|
107273
|
+
state.anchorMap[state.anchor] = _result;
|
|
107274
|
+
}
|
|
107275
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107276
|
+
while (ch2 !== 0) {
|
|
107277
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
107278
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107279
|
+
if (ch2 === terminator) {
|
|
107280
|
+
state.position++;
|
|
107281
|
+
state.tag = _tag;
|
|
107282
|
+
state.anchor = _anchor;
|
|
107283
|
+
state.kind = isMapping ? "mapping" : "sequence";
|
|
107284
|
+
state.result = _result;
|
|
107285
|
+
return true;
|
|
107286
|
+
} else if (!readNext) {
|
|
107287
|
+
throwError(state, "missed comma between flow collection entries");
|
|
107288
|
+
} else if (ch2 === 44) {
|
|
107289
|
+
throwError(state, "expected the node content, but found ','");
|
|
107290
|
+
}
|
|
107291
|
+
keyTag = keyNode = valueNode = null;
|
|
107292
|
+
isPair = isExplicitPair = false;
|
|
107293
|
+
if (ch2 === 63) {
|
|
107294
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
107295
|
+
if (is_WS_OR_EOL(following)) {
|
|
107296
|
+
isPair = isExplicitPair = true;
|
|
107297
|
+
state.position++;
|
|
107298
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
107299
|
+
}
|
|
107300
|
+
}
|
|
107301
|
+
_line = state.line;
|
|
107302
|
+
_lineStart = state.lineStart;
|
|
107303
|
+
_pos = state.position;
|
|
107304
|
+
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
107305
|
+
keyTag = state.tag;
|
|
107306
|
+
keyNode = state.result;
|
|
107307
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
107308
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107309
|
+
if ((isExplicitPair || state.line === _line) && ch2 === 58) {
|
|
107310
|
+
isPair = true;
|
|
107311
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107312
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
107313
|
+
composeNode(state, nodeIndent, CONTEXT_FLOW_IN, false, true);
|
|
107314
|
+
valueNode = state.result;
|
|
107315
|
+
}
|
|
107316
|
+
if (isMapping) {
|
|
107317
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos);
|
|
107318
|
+
} else if (isPair) {
|
|
107319
|
+
_result.push(storeMappingPair(state, null, overridableKeys, keyTag, keyNode, valueNode, _line, _lineStart, _pos));
|
|
107320
|
+
} else {
|
|
107321
|
+
_result.push(keyNode);
|
|
107322
|
+
}
|
|
107323
|
+
skipSeparationSpace(state, true, nodeIndent);
|
|
107324
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107325
|
+
if (ch2 === 44) {
|
|
107326
|
+
readNext = true;
|
|
107327
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107328
|
+
} else {
|
|
107329
|
+
readNext = false;
|
|
107330
|
+
}
|
|
107331
|
+
}
|
|
107332
|
+
throwError(state, "unexpected end of the stream within a flow collection");
|
|
107333
|
+
}
|
|
107334
|
+
function readBlockScalar(state, nodeIndent) {
|
|
107335
|
+
var captureStart, folding, chomping = CHOMPING_CLIP, didReadContent = false, detectedIndent = false, textIndent = nodeIndent, emptyLines = 0, atMoreIndented = false, tmp, ch2;
|
|
107336
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107337
|
+
if (ch2 === 124) {
|
|
107338
|
+
folding = false;
|
|
107339
|
+
} else if (ch2 === 62) {
|
|
107340
|
+
folding = true;
|
|
107341
|
+
} else {
|
|
107342
|
+
return false;
|
|
107343
|
+
}
|
|
107344
|
+
state.kind = "scalar";
|
|
107345
|
+
state.result = "";
|
|
107346
|
+
while (ch2 !== 0) {
|
|
107347
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107348
|
+
if (ch2 === 43 || ch2 === 45) {
|
|
107349
|
+
if (CHOMPING_CLIP === chomping) {
|
|
107350
|
+
chomping = ch2 === 43 ? CHOMPING_KEEP : CHOMPING_STRIP;
|
|
107351
|
+
} else {
|
|
107352
|
+
throwError(state, "repeat of a chomping mode identifier");
|
|
107353
|
+
}
|
|
107354
|
+
} else if ((tmp = fromDecimalCode(ch2)) >= 0) {
|
|
107355
|
+
if (tmp === 0) {
|
|
107356
|
+
throwError(state, "bad explicit indentation width of a block scalar; it cannot be less than one");
|
|
107357
|
+
} else if (!detectedIndent) {
|
|
107358
|
+
textIndent = nodeIndent + tmp - 1;
|
|
107359
|
+
detectedIndent = true;
|
|
107360
|
+
} else {
|
|
107361
|
+
throwError(state, "repeat of an indentation width identifier");
|
|
107362
|
+
}
|
|
107363
|
+
} else {
|
|
107364
|
+
break;
|
|
107365
|
+
}
|
|
107366
|
+
}
|
|
107367
|
+
if (is_WHITE_SPACE(ch2)) {
|
|
107368
|
+
do {
|
|
107369
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107370
|
+
} while (is_WHITE_SPACE(ch2));
|
|
107371
|
+
if (ch2 === 35) {
|
|
107372
|
+
do {
|
|
107373
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107374
|
+
} while (!is_EOL(ch2) && ch2 !== 0);
|
|
107375
|
+
}
|
|
107376
|
+
}
|
|
107377
|
+
while (ch2 !== 0) {
|
|
107378
|
+
readLineBreak(state);
|
|
107379
|
+
state.lineIndent = 0;
|
|
107380
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107381
|
+
while ((!detectedIndent || state.lineIndent < textIndent) && ch2 === 32) {
|
|
107382
|
+
state.lineIndent++;
|
|
107383
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107384
|
+
}
|
|
107385
|
+
if (!detectedIndent && state.lineIndent > textIndent) {
|
|
107386
|
+
textIndent = state.lineIndent;
|
|
107387
|
+
}
|
|
107388
|
+
if (is_EOL(ch2)) {
|
|
107389
|
+
emptyLines++;
|
|
107390
|
+
continue;
|
|
107391
|
+
}
|
|
107392
|
+
if (state.lineIndent < textIndent) {
|
|
107393
|
+
if (chomping === CHOMPING_KEEP) {
|
|
107394
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
107395
|
+
} else if (chomping === CHOMPING_CLIP) {
|
|
107396
|
+
if (didReadContent) {
|
|
107397
|
+
state.result += "\n";
|
|
107398
|
+
}
|
|
107399
|
+
}
|
|
107400
|
+
break;
|
|
107401
|
+
}
|
|
107402
|
+
if (folding) {
|
|
107403
|
+
if (is_WHITE_SPACE(ch2)) {
|
|
107404
|
+
atMoreIndented = true;
|
|
107405
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
107406
|
+
} else if (atMoreIndented) {
|
|
107407
|
+
atMoreIndented = false;
|
|
107408
|
+
state.result += common.repeat("\n", emptyLines + 1);
|
|
107409
|
+
} else if (emptyLines === 0) {
|
|
107410
|
+
if (didReadContent) {
|
|
107411
|
+
state.result += " ";
|
|
107412
|
+
}
|
|
107413
|
+
} else {
|
|
107414
|
+
state.result += common.repeat("\n", emptyLines);
|
|
107415
|
+
}
|
|
107416
|
+
} else {
|
|
107417
|
+
state.result += common.repeat("\n", didReadContent ? 1 + emptyLines : emptyLines);
|
|
107418
|
+
}
|
|
107419
|
+
didReadContent = true;
|
|
107420
|
+
detectedIndent = true;
|
|
107421
|
+
emptyLines = 0;
|
|
107422
|
+
captureStart = state.position;
|
|
107423
|
+
while (!is_EOL(ch2) && ch2 !== 0) {
|
|
107424
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107425
|
+
}
|
|
107426
|
+
captureSegment(state, captureStart, state.position, false);
|
|
107427
|
+
}
|
|
107428
|
+
return true;
|
|
107429
|
+
}
|
|
107430
|
+
function readBlockSequence(state, nodeIndent) {
|
|
107431
|
+
var _line, _tag = state.tag, _anchor = state.anchor, _result = [], following, detected = false, ch2;
|
|
107432
|
+
if (state.firstTabInLine !== -1) return false;
|
|
107433
|
+
if (state.anchor !== null) {
|
|
107434
|
+
state.anchorMap[state.anchor] = _result;
|
|
107435
|
+
}
|
|
107436
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107437
|
+
while (ch2 !== 0) {
|
|
107438
|
+
if (state.firstTabInLine !== -1) {
|
|
107439
|
+
state.position = state.firstTabInLine;
|
|
107440
|
+
throwError(state, "tab characters must not be used in indentation");
|
|
107441
|
+
}
|
|
107442
|
+
if (ch2 !== 45) {
|
|
107443
|
+
break;
|
|
107444
|
+
}
|
|
107445
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
107446
|
+
if (!is_WS_OR_EOL(following)) {
|
|
107447
|
+
break;
|
|
107448
|
+
}
|
|
107449
|
+
detected = true;
|
|
107450
|
+
state.position++;
|
|
107451
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
107452
|
+
if (state.lineIndent <= nodeIndent) {
|
|
107453
|
+
_result.push(null);
|
|
107454
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107455
|
+
continue;
|
|
107456
|
+
}
|
|
107457
|
+
}
|
|
107458
|
+
_line = state.line;
|
|
107459
|
+
composeNode(state, nodeIndent, CONTEXT_BLOCK_IN, false, true);
|
|
107460
|
+
_result.push(state.result);
|
|
107461
|
+
skipSeparationSpace(state, true, -1);
|
|
107462
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107463
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch2 !== 0) {
|
|
107464
|
+
throwError(state, "bad indentation of a sequence entry");
|
|
107465
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
107466
|
+
break;
|
|
107467
|
+
}
|
|
107468
|
+
}
|
|
107469
|
+
if (detected) {
|
|
107470
|
+
state.tag = _tag;
|
|
107471
|
+
state.anchor = _anchor;
|
|
107472
|
+
state.kind = "sequence";
|
|
107473
|
+
state.result = _result;
|
|
107474
|
+
return true;
|
|
107475
|
+
}
|
|
107476
|
+
return false;
|
|
107477
|
+
}
|
|
107478
|
+
function readBlockMapping(state, nodeIndent, flowIndent) {
|
|
107479
|
+
var following, allowCompact, _line, _keyLine, _keyLineStart, _keyPos, _tag = state.tag, _anchor = state.anchor, _result = {}, overridableKeys = /* @__PURE__ */ Object.create(null), keyTag = null, keyNode = null, valueNode = null, atExplicitKey = false, detected = false, ch2;
|
|
107480
|
+
if (state.firstTabInLine !== -1) return false;
|
|
107481
|
+
if (state.anchor !== null) {
|
|
107482
|
+
state.anchorMap[state.anchor] = _result;
|
|
107483
|
+
}
|
|
107484
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107485
|
+
while (ch2 !== 0) {
|
|
107486
|
+
if (!atExplicitKey && state.firstTabInLine !== -1) {
|
|
107487
|
+
state.position = state.firstTabInLine;
|
|
107488
|
+
throwError(state, "tab characters must not be used in indentation");
|
|
107489
|
+
}
|
|
107490
|
+
following = state.input.charCodeAt(state.position + 1);
|
|
107491
|
+
_line = state.line;
|
|
107492
|
+
if ((ch2 === 63 || ch2 === 58) && is_WS_OR_EOL(following)) {
|
|
107493
|
+
if (ch2 === 63) {
|
|
107494
|
+
if (atExplicitKey) {
|
|
107495
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
107496
|
+
keyTag = keyNode = valueNode = null;
|
|
107497
|
+
}
|
|
107498
|
+
detected = true;
|
|
107499
|
+
atExplicitKey = true;
|
|
107500
|
+
allowCompact = true;
|
|
107501
|
+
} else if (atExplicitKey) {
|
|
107502
|
+
atExplicitKey = false;
|
|
107503
|
+
allowCompact = true;
|
|
107504
|
+
} else {
|
|
107505
|
+
throwError(state, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line");
|
|
107506
|
+
}
|
|
107507
|
+
state.position += 1;
|
|
107508
|
+
ch2 = following;
|
|
107509
|
+
} else {
|
|
107510
|
+
_keyLine = state.line;
|
|
107511
|
+
_keyLineStart = state.lineStart;
|
|
107512
|
+
_keyPos = state.position;
|
|
107513
|
+
if (!composeNode(state, flowIndent, CONTEXT_FLOW_OUT, false, true)) {
|
|
107514
|
+
break;
|
|
107515
|
+
}
|
|
107516
|
+
if (state.line === _line) {
|
|
107517
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107518
|
+
while (is_WHITE_SPACE(ch2)) {
|
|
107519
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107520
|
+
}
|
|
107521
|
+
if (ch2 === 58) {
|
|
107522
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107523
|
+
if (!is_WS_OR_EOL(ch2)) {
|
|
107524
|
+
throwError(state, "a whitespace character is expected after the key-value separator within a block mapping");
|
|
107525
|
+
}
|
|
107526
|
+
if (atExplicitKey) {
|
|
107527
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
107528
|
+
keyTag = keyNode = valueNode = null;
|
|
107529
|
+
}
|
|
107530
|
+
detected = true;
|
|
107531
|
+
atExplicitKey = false;
|
|
107532
|
+
allowCompact = false;
|
|
107533
|
+
keyTag = state.tag;
|
|
107534
|
+
keyNode = state.result;
|
|
107535
|
+
} else if (detected) {
|
|
107536
|
+
throwError(state, "can not read an implicit mapping pair; a colon is missed");
|
|
107537
|
+
} else {
|
|
107538
|
+
state.tag = _tag;
|
|
107539
|
+
state.anchor = _anchor;
|
|
107540
|
+
return true;
|
|
107541
|
+
}
|
|
107542
|
+
} else if (detected) {
|
|
107543
|
+
throwError(state, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
107544
|
+
} else {
|
|
107545
|
+
state.tag = _tag;
|
|
107546
|
+
state.anchor = _anchor;
|
|
107547
|
+
return true;
|
|
107548
|
+
}
|
|
107549
|
+
}
|
|
107550
|
+
if (state.line === _line || state.lineIndent > nodeIndent) {
|
|
107551
|
+
if (atExplicitKey) {
|
|
107552
|
+
_keyLine = state.line;
|
|
107553
|
+
_keyLineStart = state.lineStart;
|
|
107554
|
+
_keyPos = state.position;
|
|
107555
|
+
}
|
|
107556
|
+
if (composeNode(state, nodeIndent, CONTEXT_BLOCK_OUT, true, allowCompact)) {
|
|
107557
|
+
if (atExplicitKey) {
|
|
107558
|
+
keyNode = state.result;
|
|
107559
|
+
} else {
|
|
107560
|
+
valueNode = state.result;
|
|
107561
|
+
}
|
|
107562
|
+
}
|
|
107563
|
+
if (!atExplicitKey) {
|
|
107564
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, valueNode, _keyLine, _keyLineStart, _keyPos);
|
|
107565
|
+
keyTag = keyNode = valueNode = null;
|
|
107566
|
+
}
|
|
107567
|
+
skipSeparationSpace(state, true, -1);
|
|
107568
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107569
|
+
}
|
|
107570
|
+
if ((state.line === _line || state.lineIndent > nodeIndent) && ch2 !== 0) {
|
|
107571
|
+
throwError(state, "bad indentation of a mapping entry");
|
|
107572
|
+
} else if (state.lineIndent < nodeIndent) {
|
|
107573
|
+
break;
|
|
107574
|
+
}
|
|
107575
|
+
}
|
|
107576
|
+
if (atExplicitKey) {
|
|
107577
|
+
storeMappingPair(state, _result, overridableKeys, keyTag, keyNode, null, _keyLine, _keyLineStart, _keyPos);
|
|
107578
|
+
}
|
|
107579
|
+
if (detected) {
|
|
107580
|
+
state.tag = _tag;
|
|
107581
|
+
state.anchor = _anchor;
|
|
107582
|
+
state.kind = "mapping";
|
|
107583
|
+
state.result = _result;
|
|
107584
|
+
}
|
|
107585
|
+
return detected;
|
|
107586
|
+
}
|
|
107587
|
+
function readTagProperty(state) {
|
|
107588
|
+
var _position, isVerbatim = false, isNamed = false, tagHandle, tagName, ch2;
|
|
107589
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107590
|
+
if (ch2 !== 33) return false;
|
|
107591
|
+
if (state.tag !== null) {
|
|
107592
|
+
throwError(state, "duplication of a tag property");
|
|
107593
|
+
}
|
|
107594
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107595
|
+
if (ch2 === 60) {
|
|
107596
|
+
isVerbatim = true;
|
|
107597
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107598
|
+
} else if (ch2 === 33) {
|
|
107599
|
+
isNamed = true;
|
|
107600
|
+
tagHandle = "!!";
|
|
107601
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107602
|
+
} else {
|
|
107603
|
+
tagHandle = "!";
|
|
107604
|
+
}
|
|
107605
|
+
_position = state.position;
|
|
107606
|
+
if (isVerbatim) {
|
|
107607
|
+
do {
|
|
107608
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107609
|
+
} while (ch2 !== 0 && ch2 !== 62);
|
|
107610
|
+
if (state.position < state.length) {
|
|
107611
|
+
tagName = state.input.slice(_position, state.position);
|
|
107612
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107613
|
+
} else {
|
|
107614
|
+
throwError(state, "unexpected end of the stream within a verbatim tag");
|
|
107615
|
+
}
|
|
107616
|
+
} else {
|
|
107617
|
+
while (ch2 !== 0 && !is_WS_OR_EOL(ch2)) {
|
|
107618
|
+
if (ch2 === 33) {
|
|
107619
|
+
if (!isNamed) {
|
|
107620
|
+
tagHandle = state.input.slice(_position - 1, state.position + 1);
|
|
107621
|
+
if (!PATTERN_TAG_HANDLE.test(tagHandle)) {
|
|
107622
|
+
throwError(state, "named tag handle cannot contain such characters");
|
|
107623
|
+
}
|
|
107624
|
+
isNamed = true;
|
|
107625
|
+
_position = state.position + 1;
|
|
107626
|
+
} else {
|
|
107627
|
+
throwError(state, "tag suffix cannot contain exclamation marks");
|
|
107628
|
+
}
|
|
107629
|
+
}
|
|
107630
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107631
|
+
}
|
|
107632
|
+
tagName = state.input.slice(_position, state.position);
|
|
107633
|
+
if (PATTERN_FLOW_INDICATORS.test(tagName)) {
|
|
107634
|
+
throwError(state, "tag suffix cannot contain flow indicator characters");
|
|
107635
|
+
}
|
|
107636
|
+
}
|
|
107637
|
+
if (tagName && !PATTERN_TAG_URI.test(tagName)) {
|
|
107638
|
+
throwError(state, "tag name cannot contain such characters: " + tagName);
|
|
107639
|
+
}
|
|
107640
|
+
try {
|
|
107641
|
+
tagName = decodeURIComponent(tagName);
|
|
107642
|
+
} catch (err) {
|
|
107643
|
+
throwError(state, "tag name is malformed: " + tagName);
|
|
107644
|
+
}
|
|
107645
|
+
if (isVerbatim) {
|
|
107646
|
+
state.tag = tagName;
|
|
107647
|
+
} else if (_hasOwnProperty.call(state.tagMap, tagHandle)) {
|
|
107648
|
+
state.tag = state.tagMap[tagHandle] + tagName;
|
|
107649
|
+
} else if (tagHandle === "!") {
|
|
107650
|
+
state.tag = "!" + tagName;
|
|
107651
|
+
} else if (tagHandle === "!!") {
|
|
107652
|
+
state.tag = "tag:yaml.org,2002:" + tagName;
|
|
107653
|
+
} else {
|
|
107654
|
+
throwError(state, 'undeclared tag handle "' + tagHandle + '"');
|
|
107655
|
+
}
|
|
107656
|
+
return true;
|
|
107657
|
+
}
|
|
107658
|
+
function readAnchorProperty(state) {
|
|
107659
|
+
var _position, ch2;
|
|
107660
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107661
|
+
if (ch2 !== 38) return false;
|
|
107662
|
+
if (state.anchor !== null) {
|
|
107663
|
+
throwError(state, "duplication of an anchor property");
|
|
107664
|
+
}
|
|
107665
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107666
|
+
_position = state.position;
|
|
107667
|
+
while (ch2 !== 0 && !is_WS_OR_EOL(ch2) && !is_FLOW_INDICATOR(ch2)) {
|
|
107668
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107669
|
+
}
|
|
107670
|
+
if (state.position === _position) {
|
|
107671
|
+
throwError(state, "name of an anchor node must contain at least one character");
|
|
107672
|
+
}
|
|
107673
|
+
state.anchor = state.input.slice(_position, state.position);
|
|
107674
|
+
return true;
|
|
107675
|
+
}
|
|
107676
|
+
function readAlias(state) {
|
|
107677
|
+
var _position, alias, ch2;
|
|
107678
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107679
|
+
if (ch2 !== 42) return false;
|
|
107680
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107681
|
+
_position = state.position;
|
|
107682
|
+
while (ch2 !== 0 && !is_WS_OR_EOL(ch2) && !is_FLOW_INDICATOR(ch2)) {
|
|
107683
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107684
|
+
}
|
|
107685
|
+
if (state.position === _position) {
|
|
107686
|
+
throwError(state, "name of an alias node must contain at least one character");
|
|
107687
|
+
}
|
|
107688
|
+
alias = state.input.slice(_position, state.position);
|
|
107689
|
+
if (!_hasOwnProperty.call(state.anchorMap, alias)) {
|
|
107690
|
+
throwError(state, 'unidentified alias "' + alias + '"');
|
|
107691
|
+
}
|
|
107692
|
+
state.result = state.anchorMap[alias];
|
|
107693
|
+
skipSeparationSpace(state, true, -1);
|
|
107694
|
+
return true;
|
|
107695
|
+
}
|
|
107696
|
+
function composeNode(state, parentIndent, nodeContext, allowToSeek, allowCompact) {
|
|
107697
|
+
var allowBlockStyles, allowBlockScalars, allowBlockCollections, indentStatus = 1, atNewLine = false, hasContent = false, typeIndex, typeQuantity, typeList, type, flowIndent, blockIndent;
|
|
107698
|
+
if (state.listener !== null) {
|
|
107699
|
+
state.listener("open", state);
|
|
107700
|
+
}
|
|
107701
|
+
state.tag = null;
|
|
107702
|
+
state.anchor = null;
|
|
107703
|
+
state.kind = null;
|
|
107704
|
+
state.result = null;
|
|
107705
|
+
allowBlockStyles = allowBlockScalars = allowBlockCollections = CONTEXT_BLOCK_OUT === nodeContext || CONTEXT_BLOCK_IN === nodeContext;
|
|
107706
|
+
if (allowToSeek) {
|
|
107707
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
107708
|
+
atNewLine = true;
|
|
107709
|
+
if (state.lineIndent > parentIndent) {
|
|
107710
|
+
indentStatus = 1;
|
|
107711
|
+
} else if (state.lineIndent === parentIndent) {
|
|
107712
|
+
indentStatus = 0;
|
|
107713
|
+
} else if (state.lineIndent < parentIndent) {
|
|
107714
|
+
indentStatus = -1;
|
|
107715
|
+
}
|
|
107716
|
+
}
|
|
107717
|
+
}
|
|
107718
|
+
if (indentStatus === 1) {
|
|
107719
|
+
while (readTagProperty(state) || readAnchorProperty(state)) {
|
|
107720
|
+
if (skipSeparationSpace(state, true, -1)) {
|
|
107721
|
+
atNewLine = true;
|
|
107722
|
+
allowBlockCollections = allowBlockStyles;
|
|
107723
|
+
if (state.lineIndent > parentIndent) {
|
|
107724
|
+
indentStatus = 1;
|
|
107725
|
+
} else if (state.lineIndent === parentIndent) {
|
|
107726
|
+
indentStatus = 0;
|
|
107727
|
+
} else if (state.lineIndent < parentIndent) {
|
|
107728
|
+
indentStatus = -1;
|
|
107729
|
+
}
|
|
107730
|
+
} else {
|
|
107731
|
+
allowBlockCollections = false;
|
|
107732
|
+
}
|
|
107733
|
+
}
|
|
107734
|
+
}
|
|
107735
|
+
if (allowBlockCollections) {
|
|
107736
|
+
allowBlockCollections = atNewLine || allowCompact;
|
|
107737
|
+
}
|
|
107738
|
+
if (indentStatus === 1 || CONTEXT_BLOCK_OUT === nodeContext) {
|
|
107739
|
+
if (CONTEXT_FLOW_IN === nodeContext || CONTEXT_FLOW_OUT === nodeContext) {
|
|
107740
|
+
flowIndent = parentIndent;
|
|
107741
|
+
} else {
|
|
107742
|
+
flowIndent = parentIndent + 1;
|
|
107743
|
+
}
|
|
107744
|
+
blockIndent = state.position - state.lineStart;
|
|
107745
|
+
if (indentStatus === 1) {
|
|
107746
|
+
if (allowBlockCollections && (readBlockSequence(state, blockIndent) || readBlockMapping(state, blockIndent, flowIndent)) || readFlowCollection(state, flowIndent)) {
|
|
107747
|
+
hasContent = true;
|
|
107748
|
+
} else {
|
|
107749
|
+
if (allowBlockScalars && readBlockScalar(state, flowIndent) || readSingleQuotedScalar(state, flowIndent) || readDoubleQuotedScalar(state, flowIndent)) {
|
|
107750
|
+
hasContent = true;
|
|
107751
|
+
} else if (readAlias(state)) {
|
|
107752
|
+
hasContent = true;
|
|
107753
|
+
if (state.tag !== null || state.anchor !== null) {
|
|
107754
|
+
throwError(state, "alias node should not have any properties");
|
|
105867
107755
|
}
|
|
105868
|
-
|
|
105869
|
-
|
|
105870
|
-
|
|
105871
|
-
|
|
107756
|
+
} else if (readPlainScalar(state, flowIndent, CONTEXT_FLOW_IN === nodeContext)) {
|
|
107757
|
+
hasContent = true;
|
|
107758
|
+
if (state.tag === null) {
|
|
107759
|
+
state.tag = "?";
|
|
107760
|
+
}
|
|
107761
|
+
}
|
|
107762
|
+
if (state.anchor !== null) {
|
|
107763
|
+
state.anchorMap[state.anchor] = state.result;
|
|
107764
|
+
}
|
|
105872
107765
|
}
|
|
105873
|
-
}
|
|
105874
|
-
|
|
107766
|
+
} else if (indentStatus === 0) {
|
|
107767
|
+
hasContent = allowBlockCollections && readBlockSequence(state, blockIndent);
|
|
107768
|
+
}
|
|
107769
|
+
}
|
|
107770
|
+
if (state.tag === null) {
|
|
107771
|
+
if (state.anchor !== null) {
|
|
107772
|
+
state.anchorMap[state.anchor] = state.result;
|
|
107773
|
+
}
|
|
107774
|
+
} else if (state.tag === "?") {
|
|
107775
|
+
if (state.result !== null && state.kind !== "scalar") {
|
|
107776
|
+
throwError(state, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + state.kind + '"');
|
|
107777
|
+
}
|
|
107778
|
+
for (typeIndex = 0, typeQuantity = state.implicitTypes.length; typeIndex < typeQuantity; typeIndex += 1) {
|
|
107779
|
+
type = state.implicitTypes[typeIndex];
|
|
107780
|
+
if (type.resolve(state.result)) {
|
|
107781
|
+
state.result = type.construct(state.result);
|
|
107782
|
+
state.tag = type.tag;
|
|
107783
|
+
if (state.anchor !== null) {
|
|
107784
|
+
state.anchorMap[state.anchor] = state.result;
|
|
107785
|
+
}
|
|
107786
|
+
break;
|
|
107787
|
+
}
|
|
107788
|
+
}
|
|
107789
|
+
} else if (state.tag !== "!") {
|
|
107790
|
+
if (_hasOwnProperty.call(state.typeMap[state.kind || "fallback"], state.tag)) {
|
|
107791
|
+
type = state.typeMap[state.kind || "fallback"][state.tag];
|
|
107792
|
+
} else {
|
|
107793
|
+
type = null;
|
|
107794
|
+
typeList = state.typeMap.multi[state.kind || "fallback"];
|
|
107795
|
+
for (typeIndex = 0, typeQuantity = typeList.length; typeIndex < typeQuantity; typeIndex += 1) {
|
|
107796
|
+
if (state.tag.slice(0, typeList[typeIndex].tag.length) === typeList[typeIndex].tag) {
|
|
107797
|
+
type = typeList[typeIndex];
|
|
107798
|
+
break;
|
|
107799
|
+
}
|
|
107800
|
+
}
|
|
107801
|
+
}
|
|
107802
|
+
if (!type) {
|
|
107803
|
+
throwError(state, "unknown tag !<" + state.tag + ">");
|
|
107804
|
+
}
|
|
107805
|
+
if (state.result !== null && type.kind !== state.kind) {
|
|
107806
|
+
throwError(state, "unacceptable node kind for !<" + state.tag + '> tag; it should be "' + type.kind + '", not "' + state.kind + '"');
|
|
107807
|
+
}
|
|
107808
|
+
if (!type.resolve(state.result, state.tag)) {
|
|
107809
|
+
throwError(state, "cannot resolve a node with !<" + state.tag + "> explicit tag");
|
|
107810
|
+
} else {
|
|
107811
|
+
state.result = type.construct(state.result, state.tag);
|
|
107812
|
+
if (state.anchor !== null) {
|
|
107813
|
+
state.anchorMap[state.anchor] = state.result;
|
|
107814
|
+
}
|
|
107815
|
+
}
|
|
107816
|
+
}
|
|
107817
|
+
if (state.listener !== null) {
|
|
107818
|
+
state.listener("close", state);
|
|
107819
|
+
}
|
|
107820
|
+
return state.tag !== null || state.anchor !== null || hasContent;
|
|
105875
107821
|
}
|
|
105876
|
-
function
|
|
105877
|
-
|
|
105878
|
-
|
|
105879
|
-
|
|
105880
|
-
|
|
105881
|
-
|
|
105882
|
-
|
|
105883
|
-
|
|
105884
|
-
|
|
105885
|
-
|
|
105886
|
-
|
|
105887
|
-
|
|
105888
|
-
|
|
105889
|
-
|
|
105890
|
-
|
|
105891
|
-
|
|
105892
|
-
|
|
105893
|
-
|
|
105894
|
-
|
|
105895
|
-
|
|
105896
|
-
|
|
105897
|
-
|
|
105898
|
-
|
|
105899
|
-
|
|
105900
|
-
|
|
105901
|
-
|
|
105902
|
-
cb2(null, name, fd2, _prepareTmpFileRemoveCallback(name, discardOrDetachDescriptor ? -1 : fd2, opts, false));
|
|
107822
|
+
function readDocument(state) {
|
|
107823
|
+
var documentStart = state.position, _position, directiveName, directiveArgs, hasDirectives = false, ch2;
|
|
107824
|
+
state.version = null;
|
|
107825
|
+
state.checkLineBreaks = state.legacy;
|
|
107826
|
+
state.tagMap = /* @__PURE__ */ Object.create(null);
|
|
107827
|
+
state.anchorMap = /* @__PURE__ */ Object.create(null);
|
|
107828
|
+
while ((ch2 = state.input.charCodeAt(state.position)) !== 0) {
|
|
107829
|
+
skipSeparationSpace(state, true, -1);
|
|
107830
|
+
ch2 = state.input.charCodeAt(state.position);
|
|
107831
|
+
if (state.lineIndent > 0 || ch2 !== 37) {
|
|
107832
|
+
break;
|
|
107833
|
+
}
|
|
107834
|
+
hasDirectives = true;
|
|
107835
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107836
|
+
_position = state.position;
|
|
107837
|
+
while (ch2 !== 0 && !is_WS_OR_EOL(ch2)) {
|
|
107838
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107839
|
+
}
|
|
107840
|
+
directiveName = state.input.slice(_position, state.position);
|
|
107841
|
+
directiveArgs = [];
|
|
107842
|
+
if (directiveName.length < 1) {
|
|
107843
|
+
throwError(state, "directive name must not be less than one character in length");
|
|
107844
|
+
}
|
|
107845
|
+
while (ch2 !== 0) {
|
|
107846
|
+
while (is_WHITE_SPACE(ch2)) {
|
|
107847
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
105903
107848
|
}
|
|
105904
|
-
|
|
105905
|
-
|
|
107849
|
+
if (ch2 === 35) {
|
|
107850
|
+
do {
|
|
107851
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107852
|
+
} while (ch2 !== 0 && !is_EOL(ch2));
|
|
107853
|
+
break;
|
|
107854
|
+
}
|
|
107855
|
+
if (is_EOL(ch2)) break;
|
|
107856
|
+
_position = state.position;
|
|
107857
|
+
while (ch2 !== 0 && !is_WS_OR_EOL(ch2)) {
|
|
107858
|
+
ch2 = state.input.charCodeAt(++state.position);
|
|
107859
|
+
}
|
|
107860
|
+
directiveArgs.push(state.input.slice(_position, state.position));
|
|
107861
|
+
}
|
|
107862
|
+
if (ch2 !== 0) readLineBreak(state);
|
|
107863
|
+
if (_hasOwnProperty.call(directiveHandlers, directiveName)) {
|
|
107864
|
+
directiveHandlers[directiveName](state, directiveName, directiveArgs);
|
|
107865
|
+
} else {
|
|
107866
|
+
throwWarning(state, 'unknown document directive "' + directiveName + '"');
|
|
107867
|
+
}
|
|
107868
|
+
}
|
|
107869
|
+
skipSeparationSpace(state, true, -1);
|
|
107870
|
+
if (state.lineIndent === 0 && state.input.charCodeAt(state.position) === 45 && state.input.charCodeAt(state.position + 1) === 45 && state.input.charCodeAt(state.position + 2) === 45) {
|
|
107871
|
+
state.position += 3;
|
|
107872
|
+
skipSeparationSpace(state, true, -1);
|
|
107873
|
+
} else if (hasDirectives) {
|
|
107874
|
+
throwError(state, "directives end mark is expected");
|
|
107875
|
+
}
|
|
107876
|
+
composeNode(state, state.lineIndent - 1, CONTEXT_BLOCK_OUT, false, true);
|
|
107877
|
+
skipSeparationSpace(state, true, -1);
|
|
107878
|
+
if (state.checkLineBreaks && PATTERN_NON_ASCII_LINE_BREAKS.test(state.input.slice(documentStart, state.position))) {
|
|
107879
|
+
throwWarning(state, "non-ASCII line breaks are interpreted as content");
|
|
107880
|
+
}
|
|
107881
|
+
state.documents.push(state.result);
|
|
107882
|
+
if (state.position === state.lineStart && testDocumentSeparator(state)) {
|
|
107883
|
+
if (state.input.charCodeAt(state.position) === 46) {
|
|
107884
|
+
state.position += 3;
|
|
107885
|
+
skipSeparationSpace(state, true, -1);
|
|
107886
|
+
}
|
|
107887
|
+
return;
|
|
107888
|
+
}
|
|
107889
|
+
if (state.position < state.length - 1) {
|
|
107890
|
+
throwError(state, "end of the stream or a document separator is expected");
|
|
107891
|
+
} else {
|
|
107892
|
+
return;
|
|
107893
|
+
}
|
|
105906
107894
|
}
|
|
105907
|
-
function
|
|
105908
|
-
|
|
105909
|
-
|
|
105910
|
-
|
|
105911
|
-
|
|
105912
|
-
|
|
105913
|
-
|
|
105914
|
-
|
|
107895
|
+
function loadDocuments(input, options8) {
|
|
107896
|
+
input = String(input);
|
|
107897
|
+
options8 = options8 || {};
|
|
107898
|
+
if (input.length !== 0) {
|
|
107899
|
+
if (input.charCodeAt(input.length - 1) !== 10 && input.charCodeAt(input.length - 1) !== 13) {
|
|
107900
|
+
input += "\n";
|
|
107901
|
+
}
|
|
107902
|
+
if (input.charCodeAt(0) === 65279) {
|
|
107903
|
+
input = input.slice(1);
|
|
107904
|
+
}
|
|
105915
107905
|
}
|
|
105916
|
-
|
|
105917
|
-
|
|
105918
|
-
|
|
105919
|
-
|
|
105920
|
-
|
|
107906
|
+
var state = new State(input, options8);
|
|
107907
|
+
var nullpos = input.indexOf("\0");
|
|
107908
|
+
if (nullpos !== -1) {
|
|
107909
|
+
state.position = nullpos;
|
|
107910
|
+
throwError(state, "null byte is not allowed in input");
|
|
107911
|
+
}
|
|
107912
|
+
state.input += "\0";
|
|
107913
|
+
while (state.input.charCodeAt(state.position) === 32) {
|
|
107914
|
+
state.lineIndent += 1;
|
|
107915
|
+
state.position += 1;
|
|
107916
|
+
}
|
|
107917
|
+
while (state.position < state.length - 1) {
|
|
107918
|
+
readDocument(state);
|
|
107919
|
+
}
|
|
107920
|
+
return state.documents;
|
|
105921
107921
|
}
|
|
105922
|
-
function
|
|
105923
|
-
|
|
105924
|
-
|
|
105925
|
-
|
|
105926
|
-
|
|
105927
|
-
|
|
105928
|
-
|
|
105929
|
-
|
|
105930
|
-
}
|
|
107922
|
+
function loadAll(input, iterator, options8) {
|
|
107923
|
+
if (iterator !== null && typeof iterator === "object" && typeof options8 === "undefined") {
|
|
107924
|
+
options8 = iterator;
|
|
107925
|
+
iterator = null;
|
|
107926
|
+
}
|
|
107927
|
+
var documents = loadDocuments(input, options8);
|
|
107928
|
+
if (typeof iterator !== "function") {
|
|
107929
|
+
return documents;
|
|
107930
|
+
}
|
|
107931
|
+
for (var index = 0, length = documents.length; index < length; index += 1) {
|
|
107932
|
+
iterator(documents[index]);
|
|
107933
|
+
}
|
|
105931
107934
|
}
|
|
105932
|
-
function
|
|
105933
|
-
|
|
105934
|
-
|
|
105935
|
-
|
|
105936
|
-
|
|
105937
|
-
|
|
105938
|
-
|
|
105939
|
-
|
|
107935
|
+
function load(input, options8) {
|
|
107936
|
+
var documents = loadDocuments(input, options8);
|
|
107937
|
+
if (documents.length === 0) {
|
|
107938
|
+
return void 0;
|
|
107939
|
+
} else if (documents.length === 1) {
|
|
107940
|
+
return documents[0];
|
|
107941
|
+
}
|
|
107942
|
+
throw new YAMLException("expected a single document in the stream, but found more");
|
|
107943
|
+
}
|
|
107944
|
+
module2.exports.loadAll = loadAll;
|
|
107945
|
+
module2.exports.load = load;
|
|
107946
|
+
}
|
|
107947
|
+
});
|
|
107948
|
+
|
|
107949
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/dumper.js
|
|
107950
|
+
var require_dumper = __commonJS({
|
|
107951
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/lib/dumper.js"(exports2, module2) {
|
|
107952
|
+
"use strict";
|
|
107953
|
+
var common = require_common3();
|
|
107954
|
+
var YAMLException = require_exception();
|
|
107955
|
+
var DEFAULT_SCHEMA = require_default();
|
|
107956
|
+
var _toString = Object.prototype.toString;
|
|
107957
|
+
var _hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
107958
|
+
var CHAR_BOM = 65279;
|
|
107959
|
+
var CHAR_TAB = 9;
|
|
107960
|
+
var CHAR_LINE_FEED = 10;
|
|
107961
|
+
var CHAR_CARRIAGE_RETURN = 13;
|
|
107962
|
+
var CHAR_SPACE = 32;
|
|
107963
|
+
var CHAR_EXCLAMATION = 33;
|
|
107964
|
+
var CHAR_DOUBLE_QUOTE = 34;
|
|
107965
|
+
var CHAR_SHARP = 35;
|
|
107966
|
+
var CHAR_PERCENT = 37;
|
|
107967
|
+
var CHAR_AMPERSAND = 38;
|
|
107968
|
+
var CHAR_SINGLE_QUOTE = 39;
|
|
107969
|
+
var CHAR_ASTERISK = 42;
|
|
107970
|
+
var CHAR_COMMA = 44;
|
|
107971
|
+
var CHAR_MINUS = 45;
|
|
107972
|
+
var CHAR_COLON = 58;
|
|
107973
|
+
var CHAR_EQUALS = 61;
|
|
107974
|
+
var CHAR_GREATER_THAN = 62;
|
|
107975
|
+
var CHAR_QUESTION = 63;
|
|
107976
|
+
var CHAR_COMMERCIAL_AT = 64;
|
|
107977
|
+
var CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
107978
|
+
var CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
107979
|
+
var CHAR_GRAVE_ACCENT = 96;
|
|
107980
|
+
var CHAR_LEFT_CURLY_BRACKET = 123;
|
|
107981
|
+
var CHAR_VERTICAL_LINE = 124;
|
|
107982
|
+
var CHAR_RIGHT_CURLY_BRACKET = 125;
|
|
107983
|
+
var ESCAPE_SEQUENCES = {};
|
|
107984
|
+
ESCAPE_SEQUENCES[0] = "\\0";
|
|
107985
|
+
ESCAPE_SEQUENCES[7] = "\\a";
|
|
107986
|
+
ESCAPE_SEQUENCES[8] = "\\b";
|
|
107987
|
+
ESCAPE_SEQUENCES[9] = "\\t";
|
|
107988
|
+
ESCAPE_SEQUENCES[10] = "\\n";
|
|
107989
|
+
ESCAPE_SEQUENCES[11] = "\\v";
|
|
107990
|
+
ESCAPE_SEQUENCES[12] = "\\f";
|
|
107991
|
+
ESCAPE_SEQUENCES[13] = "\\r";
|
|
107992
|
+
ESCAPE_SEQUENCES[27] = "\\e";
|
|
107993
|
+
ESCAPE_SEQUENCES[34] = '\\"';
|
|
107994
|
+
ESCAPE_SEQUENCES[92] = "\\\\";
|
|
107995
|
+
ESCAPE_SEQUENCES[133] = "\\N";
|
|
107996
|
+
ESCAPE_SEQUENCES[160] = "\\_";
|
|
107997
|
+
ESCAPE_SEQUENCES[8232] = "\\L";
|
|
107998
|
+
ESCAPE_SEQUENCES[8233] = "\\P";
|
|
107999
|
+
var DEPRECATED_BOOLEANS_SYNTAX = [
|
|
108000
|
+
"y",
|
|
108001
|
+
"Y",
|
|
108002
|
+
"yes",
|
|
108003
|
+
"Yes",
|
|
108004
|
+
"YES",
|
|
108005
|
+
"on",
|
|
108006
|
+
"On",
|
|
108007
|
+
"ON",
|
|
108008
|
+
"n",
|
|
108009
|
+
"N",
|
|
108010
|
+
"no",
|
|
108011
|
+
"No",
|
|
108012
|
+
"NO",
|
|
108013
|
+
"off",
|
|
108014
|
+
"Off",
|
|
108015
|
+
"OFF"
|
|
108016
|
+
];
|
|
108017
|
+
var DEPRECATED_BASE60_SYNTAX = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
108018
|
+
var SINGLE_LINE_KEYS = {
|
|
108019
|
+
cpu: true,
|
|
108020
|
+
engines: true,
|
|
108021
|
+
os: true,
|
|
108022
|
+
resolution: true,
|
|
108023
|
+
libc: true
|
|
108024
|
+
};
|
|
108025
|
+
function compileStyleMap(schema, map) {
|
|
108026
|
+
var result, keys, index, length, tag, style, type;
|
|
108027
|
+
if (map === null) return {};
|
|
108028
|
+
result = {};
|
|
108029
|
+
keys = Object.keys(map);
|
|
108030
|
+
for (index = 0, length = keys.length; index < length; index += 1) {
|
|
108031
|
+
tag = keys[index];
|
|
108032
|
+
style = String(map[tag]);
|
|
108033
|
+
if (tag.slice(0, 2) === "!!") {
|
|
108034
|
+
tag = "tag:yaml.org,2002:" + tag.slice(2);
|
|
108035
|
+
}
|
|
108036
|
+
type = schema.compiledTypeMap["fallback"][tag];
|
|
108037
|
+
if (type && _hasOwnProperty.call(type.styleAliases, style)) {
|
|
108038
|
+
style = type.styleAliases[style];
|
|
108039
|
+
}
|
|
108040
|
+
result[tag] = style;
|
|
108041
|
+
}
|
|
108042
|
+
return result;
|
|
105940
108043
|
}
|
|
105941
|
-
function
|
|
105942
|
-
|
|
105943
|
-
|
|
105944
|
-
|
|
108044
|
+
function encodeHex(character) {
|
|
108045
|
+
var string, handle, length;
|
|
108046
|
+
string = character.toString(16).toUpperCase();
|
|
108047
|
+
if (character <= 255) {
|
|
108048
|
+
handle = "x";
|
|
108049
|
+
length = 2;
|
|
108050
|
+
} else if (character <= 65535) {
|
|
108051
|
+
handle = "u";
|
|
108052
|
+
length = 4;
|
|
108053
|
+
} else if (character <= 4294967295) {
|
|
108054
|
+
handle = "U";
|
|
108055
|
+
length = 8;
|
|
108056
|
+
} else {
|
|
108057
|
+
throw new YAMLException("code point within a string may not be greater than 0xFFFFFFFF");
|
|
108058
|
+
}
|
|
108059
|
+
return "\\" + handle + common.repeat("0", length - string.length) + string;
|
|
108060
|
+
}
|
|
108061
|
+
var QUOTING_TYPE_SINGLE = 1;
|
|
108062
|
+
var QUOTING_TYPE_DOUBLE = 2;
|
|
108063
|
+
function State(options8) {
|
|
108064
|
+
this.blankLines = options8["blankLines"] || false;
|
|
108065
|
+
this.schema = options8["schema"] || DEFAULT_SCHEMA;
|
|
108066
|
+
this.indent = Math.max(1, options8["indent"] || 2);
|
|
108067
|
+
this.noArrayIndent = options8["noArrayIndent"] || false;
|
|
108068
|
+
this.skipInvalid = options8["skipInvalid"] || false;
|
|
108069
|
+
this.flowLevel = common.isNothing(options8["flowLevel"]) ? -1 : options8["flowLevel"];
|
|
108070
|
+
this.styleMap = compileStyleMap(this.schema, options8["styles"] || null);
|
|
108071
|
+
this.sortKeys = options8["sortKeys"] || false;
|
|
108072
|
+
this.lineWidth = options8["lineWidth"] || 80;
|
|
108073
|
+
this.noRefs = options8["noRefs"] || false;
|
|
108074
|
+
this.noCompatMode = options8["noCompatMode"] || false;
|
|
108075
|
+
this.condenseFlow = options8["condenseFlow"] || false;
|
|
108076
|
+
this.quotingType = options8["quotingType"] === '"' ? QUOTING_TYPE_DOUBLE : QUOTING_TYPE_SINGLE;
|
|
108077
|
+
this.forceQuotes = options8["forceQuotes"] || false;
|
|
108078
|
+
this.replacer = typeof options8["replacer"] === "function" ? options8["replacer"] : null;
|
|
108079
|
+
this.implicitTypes = this.schema.compiledImplicit;
|
|
108080
|
+
this.explicitTypes = this.schema.compiledExplicit;
|
|
108081
|
+
this.tag = null;
|
|
108082
|
+
this.result = "";
|
|
108083
|
+
this.duplicates = [];
|
|
108084
|
+
this.usedDuplicates = null;
|
|
108085
|
+
}
|
|
108086
|
+
function indentString(string, spaces) {
|
|
108087
|
+
var ind = common.repeat(" ", spaces), position = 0, next = -1, result = "", line3, length = string.length;
|
|
108088
|
+
while (position < length) {
|
|
108089
|
+
next = string.indexOf("\n", position);
|
|
108090
|
+
if (next === -1) {
|
|
108091
|
+
line3 = string.slice(position);
|
|
108092
|
+
position = length;
|
|
108093
|
+
} else {
|
|
108094
|
+
line3 = string.slice(position, next + 1);
|
|
108095
|
+
position = next + 1;
|
|
105945
108096
|
}
|
|
105946
|
-
|
|
105947
|
-
|
|
105948
|
-
|
|
105949
|
-
|
|
105950
|
-
fs8.unlink(fdPath[1], _handler);
|
|
105951
|
-
});
|
|
105952
|
-
else fs8.unlink(fdPath[1], _handler);
|
|
108097
|
+
if (line3.length && line3 !== "\n") result += ind;
|
|
108098
|
+
result += line3;
|
|
108099
|
+
}
|
|
108100
|
+
return result;
|
|
105953
108101
|
}
|
|
105954
|
-
function
|
|
105955
|
-
|
|
105956
|
-
|
|
105957
|
-
|
|
105958
|
-
|
|
105959
|
-
|
|
105960
|
-
|
|
105961
|
-
|
|
105962
|
-
|
|
105963
|
-
}
|
|
105964
|
-
|
|
105965
|
-
|
|
105966
|
-
|
|
105967
|
-
|
|
105968
|
-
|
|
105969
|
-
|
|
105970
|
-
|
|
105971
|
-
|
|
105972
|
-
|
|
105973
|
-
|
|
105974
|
-
|
|
105975
|
-
|
|
105976
|
-
|
|
105977
|
-
|
|
105978
|
-
|
|
105979
|
-
|
|
105980
|
-
|
|
105981
|
-
|
|
105982
|
-
|
|
105983
|
-
|
|
105984
|
-
|
|
105985
|
-
|
|
105986
|
-
|
|
105987
|
-
|
|
105988
|
-
|
|
105989
|
-
|
|
105990
|
-
|
|
105991
|
-
|
|
105992
|
-
|
|
105993
|
-
|
|
105994
|
-
|
|
108102
|
+
function generateNextLine(state, level, doubleLine) {
|
|
108103
|
+
return "\n" + (doubleLine ? "\n" : "") + common.repeat(" ", state.indent * level);
|
|
108104
|
+
}
|
|
108105
|
+
function testImplicitResolving(state, str) {
|
|
108106
|
+
var index, length, type;
|
|
108107
|
+
for (index = 0, length = state.implicitTypes.length; index < length; index += 1) {
|
|
108108
|
+
type = state.implicitTypes[index];
|
|
108109
|
+
if (type.resolve(str)) {
|
|
108110
|
+
return true;
|
|
108111
|
+
}
|
|
108112
|
+
}
|
|
108113
|
+
return false;
|
|
108114
|
+
}
|
|
108115
|
+
function isWhitespace(c5) {
|
|
108116
|
+
return c5 === CHAR_SPACE || c5 === CHAR_TAB;
|
|
108117
|
+
}
|
|
108118
|
+
function isPrintable(c5) {
|
|
108119
|
+
return 32 <= c5 && c5 <= 126 || 161 <= c5 && c5 <= 55295 && c5 !== 8232 && c5 !== 8233 || 57344 <= c5 && c5 <= 65533 && c5 !== CHAR_BOM || 65536 <= c5 && c5 <= 1114111;
|
|
108120
|
+
}
|
|
108121
|
+
function isNsCharOrWhitespace(c5) {
|
|
108122
|
+
return isPrintable(c5) && c5 !== CHAR_BOM && c5 !== CHAR_CARRIAGE_RETURN && c5 !== CHAR_LINE_FEED;
|
|
108123
|
+
}
|
|
108124
|
+
function isPlainSafe(c5, prev, inblock) {
|
|
108125
|
+
var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c5);
|
|
108126
|
+
var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c5);
|
|
108127
|
+
return (
|
|
108128
|
+
// ns-plain-safe
|
|
108129
|
+
(inblock ? (
|
|
108130
|
+
// c = flow-in
|
|
108131
|
+
cIsNsCharOrWhitespace
|
|
108132
|
+
) : cIsNsCharOrWhitespace && c5 !== CHAR_COMMA && c5 !== CHAR_LEFT_SQUARE_BRACKET && c5 !== CHAR_RIGHT_SQUARE_BRACKET && c5 !== CHAR_LEFT_CURLY_BRACKET && c5 !== CHAR_RIGHT_CURLY_BRACKET) && c5 !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c5 === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar
|
|
108133
|
+
);
|
|
108134
|
+
}
|
|
108135
|
+
function isPlainSafeFirst(c5) {
|
|
108136
|
+
return isPrintable(c5) && c5 !== CHAR_BOM && !isWhitespace(c5) && c5 !== CHAR_MINUS && c5 !== CHAR_QUESTION && c5 !== CHAR_COLON && c5 !== CHAR_COMMA && c5 !== CHAR_LEFT_SQUARE_BRACKET && c5 !== CHAR_RIGHT_SQUARE_BRACKET && c5 !== CHAR_LEFT_CURLY_BRACKET && c5 !== CHAR_RIGHT_CURLY_BRACKET && c5 !== CHAR_SHARP && c5 !== CHAR_AMPERSAND && c5 !== CHAR_ASTERISK && c5 !== CHAR_EXCLAMATION && c5 !== CHAR_VERTICAL_LINE && c5 !== CHAR_EQUALS && c5 !== CHAR_GREATER_THAN && c5 !== CHAR_SINGLE_QUOTE && c5 !== CHAR_DOUBLE_QUOTE && c5 !== CHAR_PERCENT && c5 !== CHAR_COMMERCIAL_AT && c5 !== CHAR_GRAVE_ACCENT;
|
|
108137
|
+
}
|
|
108138
|
+
function isPlainSafeLast(c5) {
|
|
108139
|
+
return !isWhitespace(c5) && c5 !== CHAR_COLON;
|
|
108140
|
+
}
|
|
108141
|
+
function codePointAt(string, pos2) {
|
|
108142
|
+
var first = string.charCodeAt(pos2), second;
|
|
108143
|
+
if (first >= 55296 && first <= 56319 && pos2 + 1 < string.length) {
|
|
108144
|
+
second = string.charCodeAt(pos2 + 1);
|
|
108145
|
+
if (second >= 56320 && second <= 57343) {
|
|
108146
|
+
return (first - 55296) * 1024 + second - 56320 + 65536;
|
|
108147
|
+
}
|
|
108148
|
+
}
|
|
108149
|
+
return first;
|
|
108150
|
+
}
|
|
108151
|
+
function needIndentIndicator(string) {
|
|
108152
|
+
var leadingSpaceRe = /^\n* /;
|
|
108153
|
+
return leadingSpaceRe.test(string);
|
|
108154
|
+
}
|
|
108155
|
+
var STYLE_PLAIN = 1;
|
|
108156
|
+
var STYLE_SINGLE = 2;
|
|
108157
|
+
var STYLE_LITERAL = 3;
|
|
108158
|
+
var STYLE_FOLDED = 4;
|
|
108159
|
+
var STYLE_DOUBLE = 5;
|
|
108160
|
+
function chooseScalarStyle(string, singleLineOnly, indentPerLevel, lineWidth, testAmbiguousType, quotingType, forceQuotes, inblock) {
|
|
108161
|
+
var i;
|
|
108162
|
+
var char = 0;
|
|
108163
|
+
var prevChar = null;
|
|
108164
|
+
var hasLineBreak = false;
|
|
108165
|
+
var hasFoldableLine = false;
|
|
108166
|
+
var shouldTrackWidth = lineWidth !== -1;
|
|
108167
|
+
var previousLineBreak = -1;
|
|
108168
|
+
var plain = isPlainSafeFirst(codePointAt(string, 0)) && isPlainSafeLast(codePointAt(string, string.length - 1));
|
|
108169
|
+
if (singleLineOnly || forceQuotes) {
|
|
108170
|
+
for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
108171
|
+
char = codePointAt(string, i);
|
|
108172
|
+
if (!isPrintable(char)) {
|
|
108173
|
+
return STYLE_DOUBLE;
|
|
108174
|
+
}
|
|
108175
|
+
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
108176
|
+
prevChar = char;
|
|
108177
|
+
}
|
|
108178
|
+
} else {
|
|
108179
|
+
for (i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
108180
|
+
char = codePointAt(string, i);
|
|
108181
|
+
if (char === CHAR_LINE_FEED) {
|
|
108182
|
+
hasLineBreak = true;
|
|
108183
|
+
if (shouldTrackWidth) {
|
|
108184
|
+
hasFoldableLine = hasFoldableLine || // Foldable line = too long, and not more-indented.
|
|
108185
|
+
i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ";
|
|
108186
|
+
previousLineBreak = i;
|
|
108187
|
+
}
|
|
108188
|
+
} else if (!isPrintable(char)) {
|
|
108189
|
+
return STYLE_DOUBLE;
|
|
108190
|
+
}
|
|
108191
|
+
plain = plain && isPlainSafe(char, prevChar, inblock);
|
|
108192
|
+
prevChar = char;
|
|
108193
|
+
}
|
|
108194
|
+
hasFoldableLine = hasFoldableLine || shouldTrackWidth && (i - previousLineBreak - 1 > lineWidth && string[previousLineBreak + 1] !== " ");
|
|
108195
|
+
}
|
|
108196
|
+
if (!hasLineBreak && !hasFoldableLine) {
|
|
108197
|
+
if (plain && !forceQuotes && !testAmbiguousType(string)) {
|
|
108198
|
+
return STYLE_PLAIN;
|
|
108199
|
+
}
|
|
108200
|
+
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
108201
|
+
}
|
|
108202
|
+
if (indentPerLevel > 9 && needIndentIndicator(string)) {
|
|
108203
|
+
return STYLE_DOUBLE;
|
|
108204
|
+
}
|
|
108205
|
+
if (!forceQuotes) {
|
|
108206
|
+
return hasFoldableLine ? STYLE_FOLDED : STYLE_LITERAL;
|
|
108207
|
+
}
|
|
108208
|
+
return quotingType === QUOTING_TYPE_DOUBLE ? STYLE_DOUBLE : STYLE_SINGLE;
|
|
108209
|
+
}
|
|
108210
|
+
function writeScalar(state, string, level, iskey, inblock, singleLO) {
|
|
108211
|
+
state.dump = (function() {
|
|
108212
|
+
if (string.length === 0) {
|
|
108213
|
+
return state.quotingType === QUOTING_TYPE_DOUBLE ? '""' : "''";
|
|
108214
|
+
}
|
|
108215
|
+
if (!state.noCompatMode) {
|
|
108216
|
+
if (DEPRECATED_BOOLEANS_SYNTAX.indexOf(string) !== -1 || DEPRECATED_BASE60_SYNTAX.test(string)) {
|
|
108217
|
+
return state.quotingType === QUOTING_TYPE_DOUBLE ? '"' + string + '"' : "'" + string + "'";
|
|
108218
|
+
}
|
|
108219
|
+
}
|
|
108220
|
+
var indent3 = state.indent * Math.max(1, level);
|
|
108221
|
+
var lineWidth = state.lineWidth === -1 ? -1 : Math.max(Math.min(state.lineWidth, 40), state.lineWidth - indent3);
|
|
108222
|
+
var singleLineOnly = iskey || singleLO || state.flowLevel > -1 && level >= state.flowLevel;
|
|
108223
|
+
function testAmbiguity(string2) {
|
|
108224
|
+
return testImplicitResolving(state, string2);
|
|
108225
|
+
}
|
|
108226
|
+
switch (chooseScalarStyle(
|
|
108227
|
+
string,
|
|
108228
|
+
singleLineOnly,
|
|
108229
|
+
state.indent,
|
|
108230
|
+
lineWidth,
|
|
108231
|
+
testAmbiguity,
|
|
108232
|
+
state.quotingType,
|
|
108233
|
+
state.forceQuotes && !iskey,
|
|
108234
|
+
inblock
|
|
108235
|
+
)) {
|
|
108236
|
+
case STYLE_PLAIN:
|
|
108237
|
+
return string;
|
|
108238
|
+
case STYLE_SINGLE:
|
|
108239
|
+
return "'" + string.replace(/'/g, "''") + "'";
|
|
108240
|
+
case STYLE_LITERAL:
|
|
108241
|
+
return "|" + blockHeader(string, state.indent) + dropEndingNewline(indentString(string, indent3));
|
|
108242
|
+
case STYLE_FOLDED:
|
|
108243
|
+
return ">" + blockHeader(string, state.indent) + dropEndingNewline(indentString(foldString(string, lineWidth), indent3));
|
|
108244
|
+
case STYLE_DOUBLE:
|
|
108245
|
+
return '"' + escapeString(string, lineWidth) + '"';
|
|
108246
|
+
default:
|
|
108247
|
+
throw new YAMLException("impossible error: invalid scalar style");
|
|
108248
|
+
}
|
|
108249
|
+
})();
|
|
108250
|
+
}
|
|
108251
|
+
function blockHeader(string, indentPerLevel) {
|
|
108252
|
+
var indentIndicator = needIndentIndicator(string) ? String(indentPerLevel) : "";
|
|
108253
|
+
var clip = string[string.length - 1] === "\n";
|
|
108254
|
+
var keep = clip && (string[string.length - 2] === "\n" || string === "\n");
|
|
108255
|
+
var chomp = keep ? "+" : clip ? "" : "-";
|
|
108256
|
+
return indentIndicator + chomp + "\n";
|
|
108257
|
+
}
|
|
108258
|
+
function dropEndingNewline(string) {
|
|
108259
|
+
return string[string.length - 1] === "\n" ? string.slice(0, -1) : string;
|
|
108260
|
+
}
|
|
108261
|
+
function foldString(string, width) {
|
|
108262
|
+
var lineRe = /(\n+)([^\n]*)/g;
|
|
108263
|
+
var result = (function() {
|
|
108264
|
+
var nextLF = string.indexOf("\n");
|
|
108265
|
+
nextLF = nextLF !== -1 ? nextLF : string.length;
|
|
108266
|
+
lineRe.lastIndex = nextLF;
|
|
108267
|
+
return foldLine(string.slice(0, nextLF), width);
|
|
108268
|
+
})();
|
|
108269
|
+
var prevMoreIndented = string[0] === "\n" || string[0] === " ";
|
|
108270
|
+
var moreIndented;
|
|
108271
|
+
var match;
|
|
108272
|
+
while (match = lineRe.exec(string)) {
|
|
108273
|
+
var prefix = match[1], line3 = match[2];
|
|
108274
|
+
moreIndented = line3[0] === " ";
|
|
108275
|
+
result += prefix + (!prevMoreIndented && !moreIndented && line3 !== "" ? "\n" : "") + foldLine(line3, width);
|
|
108276
|
+
prevMoreIndented = moreIndented;
|
|
108277
|
+
}
|
|
108278
|
+
return result;
|
|
108279
|
+
}
|
|
108280
|
+
function foldLine(line3, width) {
|
|
108281
|
+
if (line3 === "" || line3[0] === " ") return line3;
|
|
108282
|
+
var breakRe = / [^ ]/g;
|
|
108283
|
+
var match;
|
|
108284
|
+
var start = 0, end, curr = 0, next = 0;
|
|
108285
|
+
var result = "";
|
|
108286
|
+
while (match = breakRe.exec(line3)) {
|
|
108287
|
+
next = match.index;
|
|
108288
|
+
if (next - start > width) {
|
|
108289
|
+
end = curr > start ? curr : next;
|
|
108290
|
+
result += "\n" + line3.slice(start, end);
|
|
108291
|
+
start = end + 1;
|
|
108292
|
+
}
|
|
108293
|
+
curr = next;
|
|
108294
|
+
}
|
|
108295
|
+
result += "\n";
|
|
108296
|
+
if (line3.length - start > width && curr > start) {
|
|
108297
|
+
result += line3.slice(start, curr) + "\n" + line3.slice(curr + 1);
|
|
108298
|
+
} else {
|
|
108299
|
+
result += line3.slice(start);
|
|
108300
|
+
}
|
|
108301
|
+
return result.slice(1);
|
|
108302
|
+
}
|
|
108303
|
+
function escapeString(string) {
|
|
108304
|
+
var result = "";
|
|
108305
|
+
var char = 0;
|
|
108306
|
+
var escapeSeq;
|
|
108307
|
+
for (var i = 0; i < string.length; char >= 65536 ? i += 2 : i++) {
|
|
108308
|
+
char = codePointAt(string, i);
|
|
108309
|
+
escapeSeq = ESCAPE_SEQUENCES[char];
|
|
108310
|
+
if (!escapeSeq && isPrintable(char)) {
|
|
108311
|
+
result += string[i];
|
|
108312
|
+
if (char >= 65536) result += string[i + 1];
|
|
108313
|
+
} else {
|
|
108314
|
+
result += escapeSeq || encodeHex(char);
|
|
108315
|
+
}
|
|
108316
|
+
}
|
|
108317
|
+
return result;
|
|
108318
|
+
}
|
|
108319
|
+
function writeFlowSequence(state, level, object) {
|
|
108320
|
+
var _result = "", _tag = state.tag, index, length, value;
|
|
108321
|
+
for (index = 0, length = object.length; index < length; index += 1) {
|
|
108322
|
+
value = object[index];
|
|
108323
|
+
if (state.replacer) {
|
|
108324
|
+
value = state.replacer.call(object, String(index), value);
|
|
108325
|
+
}
|
|
108326
|
+
if (writeNode(state, level, value, false, false) || typeof value === "undefined" && writeNode(state, level, null, false, false)) {
|
|
108327
|
+
if (_result !== "") _result += "," + (!state.condenseFlow ? " " : "");
|
|
108328
|
+
_result += state.dump;
|
|
108329
|
+
}
|
|
108330
|
+
}
|
|
108331
|
+
state.tag = _tag;
|
|
108332
|
+
state.dump = "[" + _result + "]";
|
|
108333
|
+
}
|
|
108334
|
+
function writeBlockSequence(state, level, object, compact) {
|
|
108335
|
+
var _result = "", _tag = state.tag, index, length, value;
|
|
108336
|
+
for (index = 0, length = object.length; index < length; index += 1) {
|
|
108337
|
+
value = object[index];
|
|
108338
|
+
if (state.replacer) {
|
|
108339
|
+
value = state.replacer.call(object, String(index), value);
|
|
108340
|
+
}
|
|
108341
|
+
if (writeNode(state, level + 1, value, true, true, false, true) || typeof value === "undefined" && writeNode(state, level + 1, null, true, true, false, true)) {
|
|
108342
|
+
if (!compact || _result !== "") {
|
|
108343
|
+
_result += generateNextLine(state, level);
|
|
108344
|
+
}
|
|
108345
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
108346
|
+
_result += "-";
|
|
105995
108347
|
} else {
|
|
105996
|
-
|
|
105997
|
-
});
|
|
108348
|
+
_result += "- ";
|
|
105998
108349
|
}
|
|
108350
|
+
_result += state.dump;
|
|
105999
108351
|
}
|
|
106000
|
-
}
|
|
108352
|
+
}
|
|
108353
|
+
state.tag = _tag;
|
|
108354
|
+
state.dump = _result || "[]";
|
|
106001
108355
|
}
|
|
106002
|
-
function
|
|
106003
|
-
|
|
106004
|
-
|
|
106005
|
-
|
|
106006
|
-
|
|
106007
|
-
|
|
108356
|
+
function writeFlowMapping(state, level, object, singleLineOnly) {
|
|
108357
|
+
var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, pairBuffer;
|
|
108358
|
+
for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
108359
|
+
pairBuffer = "";
|
|
108360
|
+
if (_result !== "") pairBuffer += ", ";
|
|
108361
|
+
if (state.condenseFlow) pairBuffer += '"';
|
|
108362
|
+
objectKey = objectKeyList[index];
|
|
108363
|
+
objectValue = object[objectKey];
|
|
108364
|
+
if (state.replacer) {
|
|
108365
|
+
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
108366
|
+
}
|
|
108367
|
+
if (!writeNode(state, level, objectKey, false, false, singleLineOnly)) {
|
|
108368
|
+
continue;
|
|
106008
108369
|
}
|
|
108370
|
+
if (state.dump.length > 1024) pairBuffer += "? ";
|
|
108371
|
+
pairBuffer += state.dump + (state.condenseFlow ? '"' : "") + ":" + (state.condenseFlow ? "" : " ");
|
|
108372
|
+
if (!writeNode(state, level, objectValue, false, false, singleLineOnly)) {
|
|
108373
|
+
continue;
|
|
108374
|
+
}
|
|
108375
|
+
pairBuffer += state.dump;
|
|
108376
|
+
_result += pairBuffer;
|
|
106009
108377
|
}
|
|
108378
|
+
state.tag = _tag;
|
|
108379
|
+
state.dump = "{" + _result + "}";
|
|
106010
108380
|
}
|
|
106011
|
-
function
|
|
106012
|
-
|
|
106013
|
-
|
|
106014
|
-
|
|
106015
|
-
}
|
|
106016
|
-
|
|
108381
|
+
function writeBlockMapping(state, level, object, compact, doubleLine) {
|
|
108382
|
+
var _result = "", _tag = state.tag, objectKeyList = Object.keys(object), index, length, objectKey, objectValue, explicitPair, pairBuffer;
|
|
108383
|
+
if (state.sortKeys === true) {
|
|
108384
|
+
objectKeyList.sort();
|
|
108385
|
+
} else if (typeof state.sortKeys === "function") {
|
|
108386
|
+
objectKeyList.sort(state.sortKeys);
|
|
108387
|
+
} else if (state.sortKeys) {
|
|
108388
|
+
throw new YAMLException("sortKeys must be a boolean or a function");
|
|
106017
108389
|
}
|
|
106018
|
-
for (
|
|
106019
|
-
|
|
108390
|
+
for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
108391
|
+
pairBuffer = "";
|
|
108392
|
+
if (!compact || _result !== "") {
|
|
108393
|
+
pairBuffer += generateNextLine(state, level, doubleLine);
|
|
108394
|
+
}
|
|
108395
|
+
objectKey = objectKeyList[index];
|
|
108396
|
+
objectValue = object[objectKey];
|
|
108397
|
+
if (state.replacer) {
|
|
108398
|
+
objectValue = state.replacer.call(object, objectKey, objectValue);
|
|
108399
|
+
}
|
|
108400
|
+
if (!writeNode(state, level + 1, objectKey, true, true, true)) {
|
|
108401
|
+
continue;
|
|
108402
|
+
}
|
|
108403
|
+
explicitPair = state.tag !== null && state.tag !== "?" || state.dump && state.dump.length > 1024;
|
|
108404
|
+
if (explicitPair) {
|
|
108405
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
108406
|
+
pairBuffer += "?";
|
|
108407
|
+
} else {
|
|
108408
|
+
pairBuffer += "? ";
|
|
108409
|
+
}
|
|
108410
|
+
}
|
|
108411
|
+
pairBuffer += state.dump;
|
|
108412
|
+
if (explicitPair) {
|
|
108413
|
+
pairBuffer += generateNextLine(state, level);
|
|
108414
|
+
}
|
|
108415
|
+
if (!writeNode(state, level + 1, objectValue, true, explicitPair, null, null, objectKey)) {
|
|
108416
|
+
continue;
|
|
108417
|
+
}
|
|
108418
|
+
if (state.dump && CHAR_LINE_FEED === state.dump.charCodeAt(0)) {
|
|
108419
|
+
pairBuffer += ":";
|
|
108420
|
+
} else {
|
|
108421
|
+
pairBuffer += ": ";
|
|
108422
|
+
}
|
|
108423
|
+
pairBuffer += state.dump;
|
|
108424
|
+
_result += pairBuffer;
|
|
108425
|
+
}
|
|
108426
|
+
state.tag = _tag;
|
|
108427
|
+
state.dump = _result || "{}";
|
|
108428
|
+
}
|
|
108429
|
+
function detectType(state, object, explicit) {
|
|
108430
|
+
var _result, typeList, index, length, type, style;
|
|
108431
|
+
typeList = explicit ? state.explicitTypes : state.implicitTypes;
|
|
108432
|
+
for (index = 0, length = typeList.length; index < length; index += 1) {
|
|
108433
|
+
type = typeList[index];
|
|
108434
|
+
if ((type.instanceOf || type.predicate) && (!type.instanceOf || typeof object === "object" && object instanceof type.instanceOf) && (!type.predicate || type.predicate(object))) {
|
|
108435
|
+
if (explicit) {
|
|
108436
|
+
if (type.multi && type.representName) {
|
|
108437
|
+
state.tag = type.representName(object);
|
|
108438
|
+
} else {
|
|
108439
|
+
state.tag = type.tag;
|
|
108440
|
+
}
|
|
108441
|
+
} else {
|
|
108442
|
+
state.tag = "?";
|
|
108443
|
+
}
|
|
108444
|
+
if (type.represent) {
|
|
108445
|
+
style = state.styleMap[type.tag] || type.defaultStyle;
|
|
108446
|
+
if (_toString.call(type.represent) === "[object Function]") {
|
|
108447
|
+
_result = type.represent(object, style);
|
|
108448
|
+
} else if (_hasOwnProperty.call(type.represent, style)) {
|
|
108449
|
+
_result = type.represent[style](object, style);
|
|
108450
|
+
} else {
|
|
108451
|
+
throw new YAMLException("!<" + type.tag + '> tag resolver accepts not "' + style + '" style');
|
|
108452
|
+
}
|
|
108453
|
+
state.dump = _result;
|
|
108454
|
+
}
|
|
108455
|
+
return true;
|
|
108456
|
+
}
|
|
106020
108457
|
}
|
|
106021
|
-
return
|
|
108458
|
+
return false;
|
|
106022
108459
|
}
|
|
106023
|
-
function
|
|
106024
|
-
|
|
108460
|
+
function writeNode(state, level, object, block, compact, iskey, isblockseq, objectKey, singleLineOnly) {
|
|
108461
|
+
state.tag = null;
|
|
108462
|
+
state.dump = object;
|
|
108463
|
+
if (!detectType(state, object, false)) {
|
|
108464
|
+
detectType(state, object, true);
|
|
108465
|
+
}
|
|
108466
|
+
var type = _toString.call(state.dump);
|
|
108467
|
+
var inblock = block;
|
|
108468
|
+
var tagStr;
|
|
108469
|
+
if (block) {
|
|
108470
|
+
block = state.flowLevel < 0 || state.flowLevel > level;
|
|
108471
|
+
}
|
|
108472
|
+
var objectOrArray = type === "[object Object]" || type === "[object Array]", duplicateIndex, duplicate;
|
|
108473
|
+
if (objectOrArray) {
|
|
108474
|
+
duplicateIndex = state.duplicates.indexOf(object);
|
|
108475
|
+
duplicate = duplicateIndex !== -1;
|
|
108476
|
+
}
|
|
108477
|
+
if (state.tag !== null && state.tag !== "?" || duplicate || state.indent !== 2 && level > 0) {
|
|
108478
|
+
compact = false;
|
|
108479
|
+
}
|
|
108480
|
+
if (duplicate && state.usedDuplicates[duplicateIndex]) {
|
|
108481
|
+
state.dump = "*ref_" + duplicateIndex;
|
|
108482
|
+
} else {
|
|
108483
|
+
if (objectOrArray && duplicate && !state.usedDuplicates[duplicateIndex]) {
|
|
108484
|
+
state.usedDuplicates[duplicateIndex] = true;
|
|
108485
|
+
}
|
|
108486
|
+
if (type === "[object Object]") {
|
|
108487
|
+
singleLineOnly = SINGLE_LINE_KEYS[objectKey];
|
|
108488
|
+
if (block && Object.keys(state.dump).length !== 0 && !singleLineOnly) {
|
|
108489
|
+
var doubleLine = state.blankLines ? objectKey === "packages" || objectKey === "importers" || objectKey === "snapshots" || level === 0 : false;
|
|
108490
|
+
writeBlockMapping(state, level, state.dump, compact, doubleLine);
|
|
108491
|
+
if (duplicate) {
|
|
108492
|
+
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
108493
|
+
}
|
|
108494
|
+
} else {
|
|
108495
|
+
writeFlowMapping(state, level, state.dump, singleLineOnly);
|
|
108496
|
+
if (duplicate) {
|
|
108497
|
+
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
108498
|
+
}
|
|
108499
|
+
}
|
|
108500
|
+
} else if (type === "[object Array]") {
|
|
108501
|
+
singleLineOnly = SINGLE_LINE_KEYS[objectKey];
|
|
108502
|
+
if (block && state.dump.length !== 0 && !singleLineOnly) {
|
|
108503
|
+
if (state.noArrayIndent && !isblockseq && level > 0) {
|
|
108504
|
+
writeBlockSequence(state, level - 1, state.dump, compact);
|
|
108505
|
+
} else {
|
|
108506
|
+
writeBlockSequence(state, level, state.dump, compact);
|
|
108507
|
+
}
|
|
108508
|
+
if (duplicate) {
|
|
108509
|
+
state.dump = "&ref_" + duplicateIndex + state.dump;
|
|
108510
|
+
}
|
|
108511
|
+
} else {
|
|
108512
|
+
writeFlowSequence(state, level, state.dump, singleLineOnly);
|
|
108513
|
+
if (duplicate) {
|
|
108514
|
+
state.dump = "&ref_" + duplicateIndex + " " + state.dump;
|
|
108515
|
+
}
|
|
108516
|
+
}
|
|
108517
|
+
} else if (type === "[object String]") {
|
|
108518
|
+
if (state.tag !== "?") {
|
|
108519
|
+
writeScalar(state, state.dump, level, iskey, inblock, singleLineOnly);
|
|
108520
|
+
}
|
|
108521
|
+
} else if (type === "[object Undefined]") {
|
|
108522
|
+
return false;
|
|
108523
|
+
} else {
|
|
108524
|
+
if (state.skipInvalid) return false;
|
|
108525
|
+
throw new YAMLException("unacceptable kind of an object to dump " + type);
|
|
108526
|
+
}
|
|
108527
|
+
if (state.tag !== null && state.tag !== "?") {
|
|
108528
|
+
tagStr = encodeURI(
|
|
108529
|
+
state.tag[0] === "!" ? state.tag.slice(1) : state.tag
|
|
108530
|
+
).replace(/!/g, "%21");
|
|
108531
|
+
if (state.tag[0] === "!") {
|
|
108532
|
+
tagStr = "!" + tagStr;
|
|
108533
|
+
} else if (tagStr.slice(0, 18) === "tag:yaml.org,2002:") {
|
|
108534
|
+
tagStr = "!!" + tagStr.slice(18);
|
|
108535
|
+
} else {
|
|
108536
|
+
tagStr = "!<" + tagStr + ">";
|
|
108537
|
+
}
|
|
108538
|
+
state.dump = tagStr + " " + state.dump;
|
|
108539
|
+
}
|
|
108540
|
+
}
|
|
108541
|
+
return true;
|
|
106025
108542
|
}
|
|
106026
|
-
function
|
|
106027
|
-
|
|
106028
|
-
|
|
108543
|
+
function getDuplicateReferences(object, state) {
|
|
108544
|
+
var objects = [], duplicatesIndexes = [], index, length;
|
|
108545
|
+
inspectNode(object, objects, duplicatesIndexes);
|
|
108546
|
+
for (index = 0, length = duplicatesIndexes.length; index < length; index += 1) {
|
|
108547
|
+
state.duplicates.push(objects[duplicatesIndexes[index]]);
|
|
106029
108548
|
}
|
|
106030
|
-
|
|
106031
|
-
|
|
108549
|
+
state.usedDuplicates = new Array(length);
|
|
108550
|
+
}
|
|
108551
|
+
function inspectNode(object, objects, duplicatesIndexes) {
|
|
108552
|
+
var objectKeyList, index, length;
|
|
108553
|
+
if (object !== null && typeof object === "object") {
|
|
108554
|
+
index = objects.indexOf(object);
|
|
108555
|
+
if (index !== -1) {
|
|
108556
|
+
if (duplicatesIndexes.indexOf(index) === -1) {
|
|
108557
|
+
duplicatesIndexes.push(index);
|
|
108558
|
+
}
|
|
108559
|
+
} else {
|
|
108560
|
+
objects.push(object);
|
|
108561
|
+
if (Array.isArray(object)) {
|
|
108562
|
+
for (index = 0, length = object.length; index < length; index += 1) {
|
|
108563
|
+
inspectNode(object[index], objects, duplicatesIndexes);
|
|
108564
|
+
}
|
|
108565
|
+
} else {
|
|
108566
|
+
objectKeyList = Object.keys(object);
|
|
108567
|
+
for (index = 0, length = objectKeyList.length; index < length; index += 1) {
|
|
108568
|
+
inspectNode(object[objectKeyList[index]], objects, duplicatesIndexes);
|
|
108569
|
+
}
|
|
108570
|
+
}
|
|
108571
|
+
}
|
|
106032
108572
|
}
|
|
106033
|
-
|
|
106034
|
-
|
|
106035
|
-
|
|
108573
|
+
}
|
|
108574
|
+
function dump(input, options8) {
|
|
108575
|
+
options8 = options8 || {};
|
|
108576
|
+
var state = new State(options8);
|
|
108577
|
+
if (!state.noRefs) getDuplicateReferences(input, state);
|
|
108578
|
+
var value = input;
|
|
108579
|
+
if (state.replacer) {
|
|
108580
|
+
value = state.replacer.call({ "": value }, "", value);
|
|
106036
108581
|
}
|
|
106037
|
-
|
|
108582
|
+
if (writeNode(state, 0, value, true, true)) return state.dump + "\n";
|
|
108583
|
+
return "";
|
|
106038
108584
|
}
|
|
106039
|
-
|
|
106040
|
-
|
|
106041
|
-
|
|
106042
|
-
|
|
106043
|
-
|
|
106044
|
-
|
|
106045
|
-
|
|
106046
|
-
|
|
108585
|
+
module2.exports.dump = dump;
|
|
108586
|
+
}
|
|
108587
|
+
});
|
|
108588
|
+
|
|
108589
|
+
// ../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/index.js
|
|
108590
|
+
var require_js_yaml = __commonJS({
|
|
108591
|
+
"../../node_modules/.pnpm/@zkochan+js-yaml@0.0.7/node_modules/@zkochan/js-yaml/index.js"(exports2, module2) {
|
|
108592
|
+
"use strict";
|
|
108593
|
+
var loader = require_loader();
|
|
108594
|
+
var dumper = require_dumper();
|
|
108595
|
+
function renamed(from, to4) {
|
|
108596
|
+
return function() {
|
|
108597
|
+
throw new Error("Function yaml." + from + " is removed in js-yaml 4. Use yaml." + to4 + " instead, which is now safe by default.");
|
|
108598
|
+
};
|
|
108599
|
+
}
|
|
108600
|
+
module2.exports.Type = require_type();
|
|
108601
|
+
module2.exports.Schema = require_schema();
|
|
108602
|
+
module2.exports.FAILSAFE_SCHEMA = require_failsafe();
|
|
108603
|
+
module2.exports.JSON_SCHEMA = require_json();
|
|
108604
|
+
module2.exports.CORE_SCHEMA = require_core();
|
|
108605
|
+
module2.exports.DEFAULT_SCHEMA = require_default();
|
|
108606
|
+
module2.exports.load = loader.load;
|
|
108607
|
+
module2.exports.loadAll = loader.loadAll;
|
|
108608
|
+
module2.exports.dump = dumper.dump;
|
|
108609
|
+
module2.exports.YAMLException = require_exception();
|
|
108610
|
+
module2.exports.safeLoad = renamed("safeLoad", "load");
|
|
108611
|
+
module2.exports.safeLoadAll = renamed("safeLoadAll", "loadAll");
|
|
108612
|
+
module2.exports.safeDump = renamed("safeDump", "dump");
|
|
108613
|
+
}
|
|
108614
|
+
});
|
|
108615
|
+
|
|
108616
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/catalog/pnpm-manager.js
|
|
108617
|
+
var require_pnpm_manager = __commonJS({
|
|
108618
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/catalog/pnpm-manager.js"(exports2) {
|
|
108619
|
+
"use strict";
|
|
108620
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
108621
|
+
exports2.PnpmCatalogManager = void 0;
|
|
108622
|
+
var js_yaml_1 = require_js_yaml();
|
|
108623
|
+
var node_fs_1 = require("fs");
|
|
108624
|
+
var node_path_1 = require("path");
|
|
108625
|
+
var devkit_exports_1 = require("nx/src/devkit-exports");
|
|
108626
|
+
var devkit_internals_1 = require("nx/src/devkit-internals");
|
|
108627
|
+
var PnpmCatalogManager = class {
|
|
108628
|
+
constructor() {
|
|
108629
|
+
this.name = "pnpm";
|
|
108630
|
+
this.catalogProtocol = "catalog:";
|
|
108631
|
+
}
|
|
108632
|
+
isCatalogReference(version) {
|
|
108633
|
+
return version.startsWith(this.catalogProtocol);
|
|
108634
|
+
}
|
|
108635
|
+
parseCatalogReference(version) {
|
|
108636
|
+
if (!this.isCatalogReference(version)) {
|
|
108637
|
+
return null;
|
|
108638
|
+
}
|
|
108639
|
+
const catalogName = version.substring(this.catalogProtocol.length);
|
|
108640
|
+
const isDefault = !catalogName || catalogName === "default";
|
|
108641
|
+
return {
|
|
108642
|
+
catalogName: isDefault ? void 0 : catalogName,
|
|
108643
|
+
isDefaultCatalog: isDefault
|
|
108644
|
+
};
|
|
108645
|
+
}
|
|
108646
|
+
getCatalogDefinitions(treeOrRoot) {
|
|
108647
|
+
if (typeof treeOrRoot === "string") {
|
|
108648
|
+
const pnpmWorkspacePath = (0, node_path_1.join)(treeOrRoot, "pnpm-workspace.yaml");
|
|
108649
|
+
if (!(0, node_fs_1.existsSync)(pnpmWorkspacePath)) {
|
|
108650
|
+
return null;
|
|
108651
|
+
}
|
|
108652
|
+
return readYamlFileFromFs(pnpmWorkspacePath);
|
|
108653
|
+
} else {
|
|
108654
|
+
if (!treeOrRoot.exists("pnpm-workspace.yaml")) {
|
|
108655
|
+
return null;
|
|
108656
|
+
}
|
|
108657
|
+
return readYamlFileFromTree(treeOrRoot, "pnpm-workspace.yaml");
|
|
108658
|
+
}
|
|
108659
|
+
}
|
|
108660
|
+
resolveCatalogReference(treeOrRoot, packageName, version) {
|
|
108661
|
+
const catalogRef = this.parseCatalogReference(version);
|
|
108662
|
+
if (!catalogRef) {
|
|
108663
|
+
return null;
|
|
108664
|
+
}
|
|
108665
|
+
const workspaceConfig = this.getCatalogDefinitions(treeOrRoot);
|
|
108666
|
+
if (!workspaceConfig) {
|
|
108667
|
+
return null;
|
|
108668
|
+
}
|
|
108669
|
+
let catalogToUse;
|
|
108670
|
+
if (catalogRef.isDefaultCatalog) {
|
|
108671
|
+
catalogToUse = workspaceConfig.catalog ?? workspaceConfig.catalogs?.default;
|
|
108672
|
+
} else if (catalogRef.catalogName) {
|
|
108673
|
+
catalogToUse = workspaceConfig.catalogs?.[catalogRef.catalogName];
|
|
108674
|
+
}
|
|
108675
|
+
return catalogToUse?.[packageName] || null;
|
|
108676
|
+
}
|
|
108677
|
+
validateCatalogReference(treeOrRoot, packageName, version) {
|
|
108678
|
+
const catalogRef = this.parseCatalogReference(version);
|
|
108679
|
+
if (!catalogRef) {
|
|
108680
|
+
throw new Error(`Invalid catalog reference syntax: "${version}". Expected format: "catalog:" or "catalog:name"`);
|
|
108681
|
+
}
|
|
108682
|
+
const workspaceConfig = this.getCatalogDefinitions(treeOrRoot);
|
|
108683
|
+
if (!workspaceConfig) {
|
|
108684
|
+
throw new Error(formatCatalogError("Cannot get Pnpm Catalog definitions. No pnpm-workspace.yaml found in workspace root.", ["Create a pnpm-workspace.yaml file in your workspace root"]));
|
|
108685
|
+
}
|
|
108686
|
+
let catalogToUse;
|
|
108687
|
+
if (catalogRef.isDefaultCatalog) {
|
|
108688
|
+
const hasCatalog = !!workspaceConfig.catalog;
|
|
108689
|
+
const hasCatalogsDefault = !!workspaceConfig.catalogs?.default;
|
|
108690
|
+
if (hasCatalog && hasCatalogsDefault) {
|
|
108691
|
+
throw new Error("The 'default' catalog was defined multiple times. Use the 'catalog' field or 'catalogs.default', but not both.");
|
|
108692
|
+
}
|
|
108693
|
+
catalogToUse = workspaceConfig.catalog ?? workspaceConfig.catalogs?.default;
|
|
108694
|
+
if (!catalogToUse) {
|
|
108695
|
+
const availableCatalogs = Object.keys(workspaceConfig.catalogs || {});
|
|
108696
|
+
const suggestions = [
|
|
108697
|
+
'Define a default catalog in pnpm-workspace.yaml under the "catalog" key'
|
|
108698
|
+
];
|
|
108699
|
+
if (availableCatalogs.length > 0) {
|
|
108700
|
+
suggestions.push(`Or select from the available named catalogs: ${availableCatalogs.map((c5) => `"catalog:${c5}"`).join(", ")}`);
|
|
108701
|
+
}
|
|
108702
|
+
throw new Error(formatCatalogError("No default catalog defined in pnpm-workspace.yaml", suggestions));
|
|
108703
|
+
}
|
|
108704
|
+
} else if (catalogRef.catalogName) {
|
|
108705
|
+
catalogToUse = workspaceConfig.catalogs?.[catalogRef.catalogName];
|
|
108706
|
+
if (!catalogToUse) {
|
|
108707
|
+
const availableCatalogs = Object.keys(workspaceConfig.catalogs || {}).filter((c5) => c5 !== "default");
|
|
108708
|
+
const defaultCatalog = !!workspaceConfig.catalog ? "catalog" : !workspaceConfig.catalogs?.default ? "catalogs.default" : null;
|
|
108709
|
+
const suggestions = [
|
|
108710
|
+
'Define the catalog in pnpm-workspace.yaml under the "catalogs" key'
|
|
108711
|
+
];
|
|
108712
|
+
if (availableCatalogs.length > 0) {
|
|
108713
|
+
suggestions.push(`Or select from the available named catalogs: ${availableCatalogs.map((c5) => `"catalog:${c5}"`).join(", ")}`);
|
|
108714
|
+
}
|
|
108715
|
+
if (defaultCatalog) {
|
|
108716
|
+
suggestions.push(`Or use the default catalog ("${defaultCatalog}")`);
|
|
108717
|
+
}
|
|
108718
|
+
throw new Error(formatCatalogError(`Catalog "${catalogRef.catalogName}" not found in pnpm-workspace.yaml`, suggestions));
|
|
108719
|
+
}
|
|
108720
|
+
}
|
|
108721
|
+
if (!catalogToUse[packageName]) {
|
|
108722
|
+
let catalogName;
|
|
108723
|
+
if (catalogRef.isDefaultCatalog) {
|
|
108724
|
+
const hasCatalog = !!workspaceConfig.catalog;
|
|
108725
|
+
catalogName = hasCatalog ? 'default catalog ("catalog")' : 'default catalog ("catalogs.default")';
|
|
108726
|
+
} else {
|
|
108727
|
+
catalogName = `catalog '${catalogRef.catalogName}'`;
|
|
108728
|
+
}
|
|
108729
|
+
const availablePackages = Object.keys(catalogToUse);
|
|
108730
|
+
const suggestions = [
|
|
108731
|
+
`Add "${packageName}" to ${catalogName} in pnpm-workspace.yaml`
|
|
108732
|
+
];
|
|
108733
|
+
if (availablePackages.length > 0) {
|
|
108734
|
+
suggestions.push(`Or select from the available packages in ${catalogName}: ${availablePackages.map((p5) => `"${p5}"`).join(", ")}`);
|
|
108735
|
+
}
|
|
108736
|
+
throw new Error(formatCatalogError(`Package "${packageName}" not found in ${catalogName}`, suggestions));
|
|
108737
|
+
}
|
|
108738
|
+
}
|
|
108739
|
+
updateCatalogVersions(treeOrRoot, updates) {
|
|
108740
|
+
let checkExists;
|
|
108741
|
+
let readYaml;
|
|
108742
|
+
let writeYaml;
|
|
108743
|
+
if (typeof treeOrRoot === "string") {
|
|
108744
|
+
const workspaceYamlPath = (0, node_path_1.join)(treeOrRoot, "pnpm-workspace.yaml");
|
|
108745
|
+
checkExists = () => (0, node_fs_1.existsSync)(workspaceYamlPath);
|
|
108746
|
+
readYaml = () => (0, node_fs_1.readFileSync)(workspaceYamlPath, "utf-8");
|
|
108747
|
+
writeYaml = (content) => (0, node_fs_1.writeFileSync)(workspaceYamlPath, content, "utf-8");
|
|
106047
108748
|
} else {
|
|
106048
|
-
|
|
108749
|
+
checkExists = () => treeOrRoot.exists("pnpm-workspace.yaml");
|
|
108750
|
+
readYaml = () => treeOrRoot.read("pnpm-workspace.yaml", "utf-8");
|
|
108751
|
+
writeYaml = (content) => treeOrRoot.write("pnpm-workspace.yaml", content);
|
|
108752
|
+
}
|
|
108753
|
+
if (!checkExists()) {
|
|
108754
|
+
devkit_exports_1.output.warn({
|
|
108755
|
+
title: "No pnpm-workspace.yaml found",
|
|
108756
|
+
bodyLines: [
|
|
108757
|
+
"Cannot update catalog versions without a pnpm-workspace.yaml file.",
|
|
108758
|
+
"Create a pnpm-workspace.yaml file to use catalogs."
|
|
108759
|
+
]
|
|
108760
|
+
});
|
|
108761
|
+
return;
|
|
108762
|
+
}
|
|
108763
|
+
try {
|
|
108764
|
+
const workspaceContent = readYaml();
|
|
108765
|
+
const workspaceData = (0, js_yaml_1.load)(workspaceContent) || {};
|
|
108766
|
+
let hasChanges = false;
|
|
108767
|
+
for (const update of updates) {
|
|
108768
|
+
const { packageName, version, catalogName } = update;
|
|
108769
|
+
const normalizedCatalogName = catalogName === "default" ? void 0 : catalogName;
|
|
108770
|
+
let targetCatalog;
|
|
108771
|
+
if (!normalizedCatalogName) {
|
|
108772
|
+
if (workspaceData.catalog) {
|
|
108773
|
+
targetCatalog = workspaceData.catalog;
|
|
108774
|
+
} else if (workspaceData.catalogs?.default) {
|
|
108775
|
+
targetCatalog = workspaceData.catalogs.default;
|
|
108776
|
+
} else {
|
|
108777
|
+
workspaceData.catalog ??= {};
|
|
108778
|
+
targetCatalog = workspaceData.catalog;
|
|
108779
|
+
}
|
|
108780
|
+
} else {
|
|
108781
|
+
workspaceData.catalogs ??= {};
|
|
108782
|
+
workspaceData.catalogs[normalizedCatalogName] ??= {};
|
|
108783
|
+
targetCatalog = workspaceData.catalogs[normalizedCatalogName];
|
|
108784
|
+
}
|
|
108785
|
+
if (targetCatalog[packageName] !== version) {
|
|
108786
|
+
targetCatalog[packageName] = version;
|
|
108787
|
+
hasChanges = true;
|
|
108788
|
+
}
|
|
108789
|
+
}
|
|
108790
|
+
if (hasChanges) {
|
|
108791
|
+
writeYaml((0, js_yaml_1.dump)(workspaceData, {
|
|
108792
|
+
indent: 2,
|
|
108793
|
+
quotingType: '"',
|
|
108794
|
+
forceQuotes: true
|
|
108795
|
+
}));
|
|
108796
|
+
}
|
|
108797
|
+
} catch (error) {
|
|
108798
|
+
devkit_exports_1.output.error({
|
|
108799
|
+
title: "Failed to update catalog versions",
|
|
108800
|
+
bodyLines: [error instanceof Error ? error.message : String(error)]
|
|
108801
|
+
});
|
|
108802
|
+
throw error;
|
|
106049
108803
|
}
|
|
106050
|
-
}
|
|
106051
|
-
}
|
|
106052
|
-
|
|
106053
|
-
|
|
108804
|
+
}
|
|
108805
|
+
};
|
|
108806
|
+
exports2.PnpmCatalogManager = PnpmCatalogManager;
|
|
108807
|
+
function readYamlFileFromFs(path14) {
|
|
106054
108808
|
try {
|
|
106055
|
-
|
|
106056
|
-
|
|
106057
|
-
|
|
106058
|
-
|
|
106059
|
-
|
|
106060
|
-
|
|
106061
|
-
|
|
106062
|
-
function _generateTmpName(opts) {
|
|
106063
|
-
const tmpDir = opts.tmpdir;
|
|
106064
|
-
if (!_isUndefined(opts.name)) {
|
|
106065
|
-
return path14.join(tmpDir, opts.dir, opts.name);
|
|
106066
|
-
}
|
|
106067
|
-
if (!_isUndefined(opts.template)) {
|
|
106068
|
-
return path14.join(tmpDir, opts.dir, opts.template).replace(TEMPLATE_PATTERN, _randomChars(6));
|
|
106069
|
-
}
|
|
106070
|
-
const name = [
|
|
106071
|
-
opts.prefix ? opts.prefix : "tmp",
|
|
106072
|
-
"-",
|
|
106073
|
-
process.pid,
|
|
106074
|
-
"-",
|
|
106075
|
-
_randomChars(12),
|
|
106076
|
-
opts.postfix ? "-" + opts.postfix : ""
|
|
106077
|
-
].join("");
|
|
106078
|
-
return path14.join(tmpDir, opts.dir, name);
|
|
106079
|
-
}
|
|
106080
|
-
function _assertOptionsBase(options8) {
|
|
106081
|
-
if (!_isUndefined(options8.name)) {
|
|
106082
|
-
const name = options8.name;
|
|
106083
|
-
if (path14.isAbsolute(name)) throw new Error(`name option must not contain an absolute path, found "${name}".`);
|
|
106084
|
-
const basename = path14.basename(name);
|
|
106085
|
-
if (basename === ".." || basename === "." || basename !== name)
|
|
106086
|
-
throw new Error(`name option must not contain a path, found "${name}".`);
|
|
106087
|
-
}
|
|
106088
|
-
if (!_isUndefined(options8.template) && !options8.template.match(TEMPLATE_PATTERN)) {
|
|
106089
|
-
throw new Error(`Invalid template, found "${options8.template}".`);
|
|
106090
|
-
}
|
|
106091
|
-
if (!_isUndefined(options8.tries) && isNaN(options8.tries) || options8.tries < 0) {
|
|
106092
|
-
throw new Error(`Invalid tries, found "${options8.tries}".`);
|
|
106093
|
-
}
|
|
106094
|
-
options8.tries = _isUndefined(options8.name) ? options8.tries || DEFAULT_TRIES : 1;
|
|
106095
|
-
options8.keep = !!options8.keep;
|
|
106096
|
-
options8.detachDescriptor = !!options8.detachDescriptor;
|
|
106097
|
-
options8.discardDescriptor = !!options8.discardDescriptor;
|
|
106098
|
-
options8.unsafeCleanup = !!options8.unsafeCleanup;
|
|
106099
|
-
options8.prefix = _isUndefined(options8.prefix) ? "" : options8.prefix;
|
|
106100
|
-
options8.postfix = _isUndefined(options8.postfix) ? "" : options8.postfix;
|
|
106101
|
-
}
|
|
106102
|
-
function _getRelativePath(option, name, tmpDir, cb2) {
|
|
106103
|
-
if (_isUndefined(name)) return cb2(null);
|
|
106104
|
-
_resolvePath(name, tmpDir, function(err, resolvedPath) {
|
|
106105
|
-
if (err) return cb2(err);
|
|
106106
|
-
const relativePath = path14.relative(tmpDir, resolvedPath);
|
|
106107
|
-
if (!resolvedPath.startsWith(tmpDir)) {
|
|
106108
|
-
return cb2(new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`));
|
|
106109
|
-
}
|
|
106110
|
-
cb2(null, relativePath);
|
|
106111
|
-
});
|
|
106112
|
-
}
|
|
106113
|
-
function _getRelativePathSync(option, name, tmpDir) {
|
|
106114
|
-
if (_isUndefined(name)) return;
|
|
106115
|
-
const resolvedPath = _resolvePathSync(name, tmpDir);
|
|
106116
|
-
const relativePath = path14.relative(tmpDir, resolvedPath);
|
|
106117
|
-
if (!resolvedPath.startsWith(tmpDir)) {
|
|
106118
|
-
throw new Error(`${option} option must be relative to "${tmpDir}", found "${relativePath}".`);
|
|
108809
|
+
return (0, devkit_internals_1.readYamlFile)(path14);
|
|
108810
|
+
} catch (error) {
|
|
108811
|
+
devkit_exports_1.output.warn({
|
|
108812
|
+
title: "Unable to parse pnpm-workspace.yaml",
|
|
108813
|
+
bodyLines: [error.toString()]
|
|
108814
|
+
});
|
|
108815
|
+
return null;
|
|
106119
108816
|
}
|
|
106120
|
-
return relativePath;
|
|
106121
108817
|
}
|
|
106122
|
-
function
|
|
106123
|
-
|
|
106124
|
-
|
|
106125
|
-
|
|
106126
|
-
|
|
106127
|
-
|
|
106128
|
-
|
|
106129
|
-
|
|
106130
|
-
|
|
106131
|
-
_getRelativePath("dir", options8.dir, tmpDir, function(err2, dir2) {
|
|
106132
|
-
if (err2) return cb2(err2);
|
|
106133
|
-
options8.dir = _isUndefined(dir2) ? "" : dir2;
|
|
106134
|
-
_getRelativePath("template", options8.template, tmpDir, function(err3, template) {
|
|
106135
|
-
if (err3) return cb2(err3);
|
|
106136
|
-
options8.template = template;
|
|
106137
|
-
cb2(null, options8);
|
|
106138
|
-
});
|
|
108818
|
+
function readYamlFileFromTree(tree, path14) {
|
|
108819
|
+
const content = tree.read(path14, "utf-8");
|
|
108820
|
+
const { load } = require_js_yaml();
|
|
108821
|
+
try {
|
|
108822
|
+
return load(content, { filename: path14 });
|
|
108823
|
+
} catch (error) {
|
|
108824
|
+
devkit_exports_1.output.warn({
|
|
108825
|
+
title: "Unable to parse pnpm-workspace.yaml",
|
|
108826
|
+
bodyLines: [error.toString()]
|
|
106139
108827
|
});
|
|
106140
|
-
|
|
106141
|
-
|
|
106142
|
-
function _assertAndSanitizeOptionsSync(options8) {
|
|
106143
|
-
const tmpDir = options8.tmpdir = _getTmpDirSync(options8);
|
|
106144
|
-
_assertOptionsBase(options8, tmpDir);
|
|
106145
|
-
const dir2 = _getRelativePathSync("dir", options8.dir, tmpDir);
|
|
106146
|
-
options8.dir = _isUndefined(dir2) ? "" : dir2;
|
|
106147
|
-
options8.template = _getRelativePathSync("template", options8.template, tmpDir);
|
|
106148
|
-
return options8;
|
|
106149
|
-
}
|
|
106150
|
-
function _isEBADF(error) {
|
|
106151
|
-
return _isExpectedError(error, -EBADF, "EBADF");
|
|
106152
|
-
}
|
|
106153
|
-
function _isENOENT(error) {
|
|
106154
|
-
return _isExpectedError(error, -ENOENT, "ENOENT");
|
|
106155
|
-
}
|
|
106156
|
-
function _isExpectedError(error, errno, code) {
|
|
106157
|
-
return IS_WIN32 ? error.code === code : error.code === code && error.errno === errno;
|
|
106158
|
-
}
|
|
106159
|
-
function setGracefulCleanup() {
|
|
106160
|
-
_gracefulCleanup = true;
|
|
108828
|
+
return null;
|
|
108829
|
+
}
|
|
106161
108830
|
}
|
|
106162
|
-
function
|
|
106163
|
-
|
|
108831
|
+
function formatCatalogError(error, suggestions) {
|
|
108832
|
+
let message = error;
|
|
108833
|
+
if (suggestions && suggestions.length > 0) {
|
|
108834
|
+
message += "\n\nSuggestions:";
|
|
108835
|
+
suggestions.forEach((suggestion) => {
|
|
108836
|
+
message += `
|
|
108837
|
+
\u2022 ${suggestion}`;
|
|
108838
|
+
});
|
|
108839
|
+
}
|
|
108840
|
+
return message;
|
|
106164
108841
|
}
|
|
106165
|
-
|
|
106166
|
-
|
|
108842
|
+
}
|
|
108843
|
+
});
|
|
108844
|
+
|
|
108845
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/catalog/manager-factory.js
|
|
108846
|
+
var require_manager_factory = __commonJS({
|
|
108847
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/catalog/manager-factory.js"(exports2) {
|
|
108848
|
+
"use strict";
|
|
108849
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
108850
|
+
exports2.getCatalogManager = getCatalogManager;
|
|
108851
|
+
var devkit_exports_1 = require("nx/src/devkit-exports");
|
|
108852
|
+
var pnpm_manager_1 = require_pnpm_manager();
|
|
108853
|
+
function getCatalogManager(workspaceRoot) {
|
|
108854
|
+
const packageManager = (0, devkit_exports_1.detectPackageManager)(workspaceRoot);
|
|
108855
|
+
switch (packageManager) {
|
|
108856
|
+
case "pnpm":
|
|
108857
|
+
return new pnpm_manager_1.PnpmCatalogManager();
|
|
108858
|
+
default:
|
|
108859
|
+
return null;
|
|
108860
|
+
}
|
|
106167
108861
|
}
|
|
106168
|
-
|
|
106169
|
-
|
|
106170
|
-
|
|
106171
|
-
|
|
106172
|
-
|
|
106173
|
-
|
|
108862
|
+
}
|
|
108863
|
+
});
|
|
108864
|
+
|
|
108865
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/catalog/index.js
|
|
108866
|
+
var require_catalog = __commonJS({
|
|
108867
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/catalog/index.js"(exports2) {
|
|
108868
|
+
"use strict";
|
|
108869
|
+
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
108870
|
+
exports2.getCatalogManager = void 0;
|
|
108871
|
+
exports2.getCatalogDependenciesFromPackageJson = getCatalogDependenciesFromPackageJson;
|
|
108872
|
+
var devkit_exports_1 = require("nx/src/devkit-exports");
|
|
108873
|
+
var manager_factory_1 = require_manager_factory();
|
|
108874
|
+
Object.defineProperty(exports2, "getCatalogManager", { enumerable: true, get: function() {
|
|
108875
|
+
return manager_factory_1.getCatalogManager;
|
|
108876
|
+
} });
|
|
108877
|
+
function getCatalogDependenciesFromPackageJson(tree, packageJsonPath, manager) {
|
|
108878
|
+
const catalogDeps = /* @__PURE__ */ new Map();
|
|
108879
|
+
if (!tree.exists(packageJsonPath)) {
|
|
108880
|
+
return catalogDeps;
|
|
106174
108881
|
}
|
|
106175
|
-
|
|
106176
|
-
|
|
106177
|
-
|
|
106178
|
-
|
|
106179
|
-
|
|
106180
|
-
|
|
106181
|
-
|
|
106182
|
-
|
|
108882
|
+
try {
|
|
108883
|
+
const packageJson = (0, devkit_exports_1.readJson)(tree, packageJsonPath);
|
|
108884
|
+
const allDependencies = {
|
|
108885
|
+
...packageJson.dependencies,
|
|
108886
|
+
...packageJson.devDependencies,
|
|
108887
|
+
...packageJson.peerDependencies,
|
|
108888
|
+
...packageJson.optionalDependencies
|
|
108889
|
+
};
|
|
108890
|
+
for (const [packageName, version] of Object.entries(allDependencies || {})) {
|
|
108891
|
+
if (manager.isCatalogReference(version)) {
|
|
108892
|
+
const catalogRef = manager.parseCatalogReference(version);
|
|
108893
|
+
if (catalogRef) {
|
|
108894
|
+
catalogDeps.set(packageName, catalogRef.catalogName);
|
|
108895
|
+
}
|
|
108896
|
+
}
|
|
108897
|
+
}
|
|
108898
|
+
} catch (error) {
|
|
108899
|
+
}
|
|
108900
|
+
return catalogDeps;
|
|
108901
|
+
}
|
|
106183
108902
|
}
|
|
106184
108903
|
});
|
|
106185
108904
|
|
|
106186
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
108905
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/package-json.js
|
|
106187
108906
|
var require_package_json = __commonJS({
|
|
106188
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
108907
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/package-json.js"(exports2) {
|
|
106189
108908
|
"use strict";
|
|
106190
108909
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
106191
108910
|
exports2.NX_VERSION = void 0;
|
|
108911
|
+
exports2.getDependencyVersionFromPackageJson = getDependencyVersionFromPackageJson;
|
|
106192
108912
|
exports2.addDependenciesToPackageJson = addDependenciesToPackageJson;
|
|
106193
108913
|
exports2.removeDependenciesFromPackageJson = removeDependenciesFromPackageJson;
|
|
106194
108914
|
exports2.ensurePackage = ensurePackage;
|
|
106195
|
-
var
|
|
108915
|
+
var fs_1 = require("fs");
|
|
106196
108916
|
var module_1 = require("module");
|
|
106197
|
-
var semver_1 = require_semver3();
|
|
106198
|
-
var install_packages_task_1 = require_install_packages_task();
|
|
106199
|
-
var tmp_1 = require_tmp();
|
|
106200
|
-
var path_1 = require("path");
|
|
106201
108917
|
var devkit_exports_1 = require("nx/src/devkit-exports");
|
|
106202
108918
|
var devkit_internals_1 = require("nx/src/devkit-internals");
|
|
106203
|
-
var
|
|
108919
|
+
var path_1 = require("path");
|
|
108920
|
+
var semver_1 = require_semver3();
|
|
108921
|
+
var install_packages_task_1 = require_install_packages_task();
|
|
108922
|
+
var catalog_1 = require_catalog();
|
|
106204
108923
|
var UNIDENTIFIED_VERSION = "UNIDENTIFIED_VERSION";
|
|
106205
108924
|
var NON_SEMVER_TAGS = {
|
|
106206
108925
|
"*": 2,
|
|
@@ -106210,44 +108929,123 @@ var require_package_json = __commonJS({
|
|
|
106210
108929
|
previous: -1,
|
|
106211
108930
|
legacy: -2
|
|
106212
108931
|
};
|
|
108932
|
+
function getDependencyVersionFromPackageJson(treeOrPackageName, packageNameOrRoot, packageJsonPathOrObjectOrRoot, dependencyLookup) {
|
|
108933
|
+
if (typeof treeOrPackageName !== "string") {
|
|
108934
|
+
return getDependencyVersionFromPackageJsonFromTree(treeOrPackageName, packageNameOrRoot, packageJsonPathOrObjectOrRoot, dependencyLookup);
|
|
108935
|
+
} else {
|
|
108936
|
+
return getDependencyVersionFromPackageJsonFromFileSystem(treeOrPackageName, packageNameOrRoot, packageJsonPathOrObjectOrRoot, dependencyLookup);
|
|
108937
|
+
}
|
|
108938
|
+
}
|
|
108939
|
+
function getDependencyVersionFromPackageJsonFromTree(tree, packageName, packageJsonPathOrObject = "package.json", dependencyLookup = [
|
|
108940
|
+
"dependencies",
|
|
108941
|
+
"devDependencies"
|
|
108942
|
+
]) {
|
|
108943
|
+
let packageJson;
|
|
108944
|
+
if (typeof packageJsonPathOrObject === "object") {
|
|
108945
|
+
packageJson = packageJsonPathOrObject;
|
|
108946
|
+
} else if (tree.exists(packageJsonPathOrObject)) {
|
|
108947
|
+
packageJson = (0, devkit_exports_1.readJson)(tree, packageJsonPathOrObject);
|
|
108948
|
+
} else {
|
|
108949
|
+
return null;
|
|
108950
|
+
}
|
|
108951
|
+
let version = null;
|
|
108952
|
+
for (const section of dependencyLookup) {
|
|
108953
|
+
const foundVersion = packageJson[section]?.[packageName];
|
|
108954
|
+
if (foundVersion) {
|
|
108955
|
+
version = foundVersion;
|
|
108956
|
+
break;
|
|
108957
|
+
}
|
|
108958
|
+
}
|
|
108959
|
+
const manager = (0, catalog_1.getCatalogManager)(tree.root);
|
|
108960
|
+
if (version && manager?.isCatalogReference(version)) {
|
|
108961
|
+
version = manager.resolveCatalogReference(tree, packageName, version);
|
|
108962
|
+
}
|
|
108963
|
+
return version;
|
|
108964
|
+
}
|
|
108965
|
+
function getDependencyVersionFromPackageJsonFromFileSystem(packageName, root2 = devkit_exports_1.workspaceRoot, packageJsonPathOrObject = "package.json", dependencyLookup = [
|
|
108966
|
+
"dependencies",
|
|
108967
|
+
"devDependencies"
|
|
108968
|
+
]) {
|
|
108969
|
+
let packageJson;
|
|
108970
|
+
if (typeof packageJsonPathOrObject === "object") {
|
|
108971
|
+
packageJson = packageJsonPathOrObject;
|
|
108972
|
+
} else {
|
|
108973
|
+
const packageJsonPath = (0, path_1.resolve)(root2, packageJsonPathOrObject);
|
|
108974
|
+
if ((0, fs_1.existsSync)(packageJsonPath)) {
|
|
108975
|
+
packageJson = (0, devkit_exports_1.readJsonFile)(packageJsonPath);
|
|
108976
|
+
} else {
|
|
108977
|
+
return null;
|
|
108978
|
+
}
|
|
108979
|
+
}
|
|
108980
|
+
let version = null;
|
|
108981
|
+
for (const section of dependencyLookup) {
|
|
108982
|
+
const foundVersion = packageJson[section]?.[packageName];
|
|
108983
|
+
if (foundVersion) {
|
|
108984
|
+
version = foundVersion;
|
|
108985
|
+
break;
|
|
108986
|
+
}
|
|
108987
|
+
}
|
|
108988
|
+
const manager = (0, catalog_1.getCatalogManager)(root2);
|
|
108989
|
+
if (version && manager?.isCatalogReference(version)) {
|
|
108990
|
+
version = manager.resolveCatalogReference(root2, packageName, version);
|
|
108991
|
+
}
|
|
108992
|
+
return version;
|
|
108993
|
+
}
|
|
106213
108994
|
function filterExistingDependencies(dependencies, existingAltDependencies) {
|
|
106214
108995
|
if (!existingAltDependencies) {
|
|
106215
108996
|
return dependencies;
|
|
106216
108997
|
}
|
|
106217
108998
|
return Object.keys(dependencies ?? {}).filter((d7) => !existingAltDependencies[d7]).reduce((acc, d7) => ({ ...acc, [d7]: dependencies[d7] }), {});
|
|
106218
108999
|
}
|
|
106219
|
-
function cleanSemver(version) {
|
|
109000
|
+
function cleanSemver(tree, version, packageName) {
|
|
109001
|
+
const manager = (0, catalog_1.getCatalogManager)(tree.root);
|
|
109002
|
+
if (manager?.isCatalogReference(version)) {
|
|
109003
|
+
const resolvedVersion = manager.resolveCatalogReference(tree, packageName, version);
|
|
109004
|
+
if (!resolvedVersion) {
|
|
109005
|
+
throw new Error(`Failed to resolve catalog reference '${version}' for package '${packageName}'`);
|
|
109006
|
+
}
|
|
109007
|
+
return (0, semver_1.clean)(resolvedVersion) ?? (0, semver_1.coerce)(resolvedVersion);
|
|
109008
|
+
}
|
|
106220
109009
|
return (0, semver_1.clean)(version) ?? (0, semver_1.coerce)(version);
|
|
106221
109010
|
}
|
|
106222
|
-
function isIncomingVersionGreater(incomingVersion, existingVersion) {
|
|
106223
|
-
|
|
106224
|
-
const
|
|
109011
|
+
function isIncomingVersionGreater(tree, incomingVersion, existingVersion, packageName) {
|
|
109012
|
+
let resolvedExistingVersion = existingVersion;
|
|
109013
|
+
const manager = (0, catalog_1.getCatalogManager)(tree.root);
|
|
109014
|
+
if (manager?.isCatalogReference(existingVersion)) {
|
|
109015
|
+
const resolved = manager.resolveCatalogReference(tree, packageName, existingVersion);
|
|
109016
|
+
if (!resolved) {
|
|
109017
|
+
throw new Error(`Failed to resolve catalog reference '${existingVersion}' for package '${packageName}'`);
|
|
109018
|
+
}
|
|
109019
|
+
resolvedExistingVersion = resolved;
|
|
109020
|
+
}
|
|
109021
|
+
const incomingVersionCompareBy = incomingVersion in NON_SEMVER_TAGS ? incomingVersion : cleanSemver(tree, incomingVersion, packageName)?.toString() ?? UNIDENTIFIED_VERSION;
|
|
109022
|
+
const existingVersionCompareBy = resolvedExistingVersion in NON_SEMVER_TAGS ? resolvedExistingVersion : cleanSemver(tree, resolvedExistingVersion, packageName)?.toString() ?? UNIDENTIFIED_VERSION;
|
|
106225
109023
|
if (incomingVersionCompareBy in NON_SEMVER_TAGS && existingVersionCompareBy in NON_SEMVER_TAGS) {
|
|
106226
109024
|
return NON_SEMVER_TAGS[incomingVersionCompareBy] > NON_SEMVER_TAGS[existingVersionCompareBy];
|
|
106227
109025
|
}
|
|
106228
109026
|
if (incomingVersionCompareBy in NON_SEMVER_TAGS || existingVersionCompareBy in NON_SEMVER_TAGS) {
|
|
106229
109027
|
return true;
|
|
106230
109028
|
}
|
|
106231
|
-
return (0, semver_1.gt)(cleanSemver(incomingVersion), cleanSemver(
|
|
109029
|
+
return (0, semver_1.gt)(cleanSemver(tree, incomingVersion, packageName), cleanSemver(tree, resolvedExistingVersion, packageName));
|
|
106232
109030
|
}
|
|
106233
|
-
function updateExistingAltDependenciesVersion(dependencies, existingAltDependencies) {
|
|
109031
|
+
function updateExistingAltDependenciesVersion(tree, dependencies, existingAltDependencies, workspaceRootPath) {
|
|
106234
109032
|
return Object.keys(existingAltDependencies || {}).filter((d7) => {
|
|
106235
109033
|
if (!dependencies[d7]) {
|
|
106236
109034
|
return false;
|
|
106237
109035
|
}
|
|
106238
109036
|
const incomingVersion = dependencies[d7];
|
|
106239
109037
|
const existingVersion = existingAltDependencies[d7];
|
|
106240
|
-
return isIncomingVersionGreater(incomingVersion, existingVersion);
|
|
109038
|
+
return isIncomingVersionGreater(tree, incomingVersion, existingVersion, d7);
|
|
106241
109039
|
}).reduce((acc, d7) => ({ ...acc, [d7]: dependencies[d7] }), {});
|
|
106242
109040
|
}
|
|
106243
|
-
function updateExistingDependenciesVersion(dependencies, existingDependencies = {}) {
|
|
109041
|
+
function updateExistingDependenciesVersion(tree, dependencies, existingDependencies = {}, workspaceRootPath) {
|
|
106244
109042
|
return Object.keys(dependencies).filter((d7) => {
|
|
106245
109043
|
if (!existingDependencies[d7]) {
|
|
106246
109044
|
return true;
|
|
106247
109045
|
}
|
|
106248
109046
|
const incomingVersion = dependencies[d7];
|
|
106249
109047
|
const existingVersion = existingDependencies[d7];
|
|
106250
|
-
return isIncomingVersionGreater(incomingVersion, existingVersion);
|
|
109048
|
+
return isIncomingVersionGreater(tree, incomingVersion, existingVersion, d7);
|
|
106251
109049
|
}).reduce((acc, d7) => ({ ...acc, [d7]: dependencies[d7] }), {});
|
|
106252
109050
|
}
|
|
106253
109051
|
function addDependenciesToPackageJson(tree, dependencies, devDependencies, packageJsonPath = "package.json", keepExistingVersions) {
|
|
@@ -106255,34 +109053,24 @@ var require_package_json = __commonJS({
|
|
|
106255
109053
|
let filteredDependencies = filterExistingDependencies(dependencies, currentPackageJson.devDependencies);
|
|
106256
109054
|
let filteredDevDependencies = filterExistingDependencies(devDependencies, currentPackageJson.dependencies);
|
|
106257
109055
|
filteredDependencies = {
|
|
106258
|
-
...updateExistingDependenciesVersion(filteredDependencies, currentPackageJson.dependencies),
|
|
106259
|
-
...updateExistingAltDependenciesVersion(devDependencies, currentPackageJson.dependencies)
|
|
109056
|
+
...updateExistingDependenciesVersion(tree, filteredDependencies, currentPackageJson.dependencies, tree.root),
|
|
109057
|
+
...updateExistingAltDependenciesVersion(tree, devDependencies, currentPackageJson.dependencies, tree.root)
|
|
106260
109058
|
};
|
|
106261
109059
|
filteredDevDependencies = {
|
|
106262
|
-
...updateExistingDependenciesVersion(filteredDevDependencies, currentPackageJson.devDependencies),
|
|
106263
|
-
...updateExistingAltDependenciesVersion(dependencies, currentPackageJson.devDependencies)
|
|
109060
|
+
...updateExistingDependenciesVersion(tree, filteredDevDependencies, currentPackageJson.devDependencies, tree.root),
|
|
109061
|
+
...updateExistingAltDependenciesVersion(tree, dependencies, currentPackageJson.devDependencies, tree.root)
|
|
106264
109062
|
};
|
|
106265
109063
|
if (keepExistingVersions) {
|
|
106266
109064
|
filteredDependencies = removeExistingDependencies(filteredDependencies, currentPackageJson.dependencies);
|
|
106267
109065
|
filteredDevDependencies = removeExistingDependencies(filteredDevDependencies, currentPackageJson.devDependencies);
|
|
106268
109066
|
} else {
|
|
106269
|
-
filteredDependencies = removeLowerVersions(filteredDependencies, currentPackageJson.dependencies);
|
|
106270
|
-
filteredDevDependencies = removeLowerVersions(filteredDevDependencies, currentPackageJson.devDependencies);
|
|
109067
|
+
filteredDependencies = removeLowerVersions(tree, filteredDependencies, currentPackageJson.dependencies, tree.root);
|
|
109068
|
+
filteredDevDependencies = removeLowerVersions(tree, filteredDevDependencies, currentPackageJson.devDependencies, tree.root);
|
|
106271
109069
|
}
|
|
106272
|
-
if (requiresAddingOfPackages(currentPackageJson, filteredDependencies, filteredDevDependencies)) {
|
|
106273
|
-
|
|
106274
|
-
|
|
106275
|
-
|
|
106276
|
-
...filteredDependencies
|
|
106277
|
-
};
|
|
106278
|
-
json.devDependencies = {
|
|
106279
|
-
...json.devDependencies || {},
|
|
106280
|
-
...filteredDevDependencies
|
|
106281
|
-
};
|
|
106282
|
-
json.dependencies = sortObjectByKeys(json.dependencies);
|
|
106283
|
-
json.devDependencies = sortObjectByKeys(json.devDependencies);
|
|
106284
|
-
return json;
|
|
106285
|
-
});
|
|
109070
|
+
if (requiresAddingOfPackages(tree, currentPackageJson, filteredDependencies, filteredDevDependencies, tree.root)) {
|
|
109071
|
+
const { catalogUpdates, directDependencies, directDevDependencies } = splitDependenciesByCatalogType(tree, filteredDependencies, filteredDevDependencies, packageJsonPath);
|
|
109072
|
+
writeCatalogDependencies(tree, catalogUpdates);
|
|
109073
|
+
writeDirectDependencies(tree, packageJsonPath, directDependencies, directDevDependencies);
|
|
106286
109074
|
return () => {
|
|
106287
109075
|
(0, install_packages_task_1.installPackagesTask)(tree);
|
|
106288
109076
|
};
|
|
@@ -106290,9 +109078,79 @@ var require_package_json = __commonJS({
|
|
|
106290
109078
|
return () => {
|
|
106291
109079
|
};
|
|
106292
109080
|
}
|
|
106293
|
-
function
|
|
109081
|
+
function splitDependenciesByCatalogType(tree, filteredDependencies, filteredDevDependencies, packageJsonPath) {
|
|
109082
|
+
const allFilteredUpdates = {
|
|
109083
|
+
...filteredDependencies,
|
|
109084
|
+
...filteredDevDependencies
|
|
109085
|
+
};
|
|
109086
|
+
const catalogUpdates = [];
|
|
109087
|
+
let directDependencies = { ...filteredDependencies };
|
|
109088
|
+
let directDevDependencies = { ...filteredDevDependencies };
|
|
109089
|
+
const manager = (0, catalog_1.getCatalogManager)(tree.root);
|
|
109090
|
+
if (!manager) {
|
|
109091
|
+
return {
|
|
109092
|
+
catalogUpdates: [],
|
|
109093
|
+
directDependencies: filteredDependencies,
|
|
109094
|
+
directDevDependencies: filteredDevDependencies
|
|
109095
|
+
};
|
|
109096
|
+
}
|
|
109097
|
+
const existingCatalogDeps = (0, catalog_1.getCatalogDependenciesFromPackageJson)(tree, packageJsonPath, manager);
|
|
109098
|
+
if (!existingCatalogDeps.size) {
|
|
109099
|
+
return {
|
|
109100
|
+
catalogUpdates: [],
|
|
109101
|
+
directDependencies: filteredDependencies,
|
|
109102
|
+
directDevDependencies: filteredDevDependencies
|
|
109103
|
+
};
|
|
109104
|
+
}
|
|
109105
|
+
for (const [packageName, version] of Object.entries(allFilteredUpdates)) {
|
|
109106
|
+
if (!existingCatalogDeps.has(packageName)) {
|
|
109107
|
+
continue;
|
|
109108
|
+
}
|
|
109109
|
+
let catalogName = existingCatalogDeps.get(packageName);
|
|
109110
|
+
const catalogRef = catalogName ? `catalog:${catalogName}` : "catalog:";
|
|
109111
|
+
try {
|
|
109112
|
+
manager.validateCatalogReference(tree, packageName, catalogRef);
|
|
109113
|
+
catalogUpdates.push({ packageName, version, catalogName });
|
|
109114
|
+
delete directDependencies[packageName];
|
|
109115
|
+
delete directDevDependencies[packageName];
|
|
109116
|
+
} catch (error) {
|
|
109117
|
+
devkit_exports_1.output.error({
|
|
109118
|
+
title: "Invalid catalog reference",
|
|
109119
|
+
bodyLines: [
|
|
109120
|
+
`Invalid catalog reference "${catalogRef}" for package "${packageName}".`,
|
|
109121
|
+
error.message
|
|
109122
|
+
]
|
|
109123
|
+
});
|
|
109124
|
+
throw new Error(`Could not update "${packageName}" to version "${version}". See above for more details.`);
|
|
109125
|
+
}
|
|
109126
|
+
}
|
|
109127
|
+
return { catalogUpdates, directDependencies, directDevDependencies };
|
|
109128
|
+
}
|
|
109129
|
+
function writeCatalogDependencies(tree, catalogUpdates) {
|
|
109130
|
+
if (!catalogUpdates.length) {
|
|
109131
|
+
return;
|
|
109132
|
+
}
|
|
109133
|
+
const manager = (0, catalog_1.getCatalogManager)(tree.root);
|
|
109134
|
+
manager.updateCatalogVersions(tree, catalogUpdates);
|
|
109135
|
+
}
|
|
109136
|
+
function writeDirectDependencies(tree, packageJsonPath, dependencies, devDependencies) {
|
|
109137
|
+
(0, devkit_exports_1.updateJson)(tree, packageJsonPath, (json) => {
|
|
109138
|
+
json.dependencies = {
|
|
109139
|
+
...json.dependencies || {},
|
|
109140
|
+
...dependencies
|
|
109141
|
+
};
|
|
109142
|
+
json.devDependencies = {
|
|
109143
|
+
...json.devDependencies || {},
|
|
109144
|
+
...devDependencies
|
|
109145
|
+
};
|
|
109146
|
+
json.dependencies = sortObjectByKeys(json.dependencies);
|
|
109147
|
+
json.devDependencies = sortObjectByKeys(json.devDependencies);
|
|
109148
|
+
return json;
|
|
109149
|
+
});
|
|
109150
|
+
}
|
|
109151
|
+
function removeLowerVersions(tree, incomingDeps, existingDeps, workspaceRootPath) {
|
|
106294
109152
|
return Object.keys(incomingDeps).reduce((acc, d7) => {
|
|
106295
|
-
if (!existingDeps?.[d7] || isIncomingVersionGreater(incomingDeps[d7], existingDeps[d7])) {
|
|
109153
|
+
if (!existingDeps?.[d7] || isIncomingVersionGreater(tree, incomingDeps[d7], existingDeps[d7], d7)) {
|
|
106296
109154
|
acc[d7] = incomingDeps[d7];
|
|
106297
109155
|
}
|
|
106298
109156
|
return acc;
|
|
@@ -106340,7 +109198,7 @@ var require_package_json = __commonJS({
|
|
|
106340
109198
|
};
|
|
106341
109199
|
}, {});
|
|
106342
109200
|
}
|
|
106343
|
-
function requiresAddingOfPackages(packageJsonFile, deps, devDeps) {
|
|
109201
|
+
function requiresAddingOfPackages(tree, packageJsonFile, deps, devDeps, workspaceRootPath) {
|
|
106344
109202
|
let needsDepsUpdate = false;
|
|
106345
109203
|
let needsDevDepsUpdate = false;
|
|
106346
109204
|
packageJsonFile.dependencies = packageJsonFile.dependencies || {};
|
|
@@ -106350,11 +109208,11 @@ var require_package_json = __commonJS({
|
|
|
106350
109208
|
const incomingVersion = deps[entry];
|
|
106351
109209
|
if (packageJsonFile.dependencies[entry]) {
|
|
106352
109210
|
const existingVersion = packageJsonFile.dependencies[entry];
|
|
106353
|
-
return isIncomingVersionGreater(incomingVersion, existingVersion);
|
|
109211
|
+
return isIncomingVersionGreater(tree, incomingVersion, existingVersion, entry);
|
|
106354
109212
|
}
|
|
106355
109213
|
if (packageJsonFile.devDependencies[entry]) {
|
|
106356
109214
|
const existingVersion = packageJsonFile.devDependencies[entry];
|
|
106357
|
-
return isIncomingVersionGreater(incomingVersion, existingVersion);
|
|
109215
|
+
return isIncomingVersionGreater(tree, incomingVersion, existingVersion, entry);
|
|
106358
109216
|
}
|
|
106359
109217
|
return true;
|
|
106360
109218
|
});
|
|
@@ -106364,11 +109222,11 @@ var require_package_json = __commonJS({
|
|
|
106364
109222
|
const incomingVersion = devDeps[entry];
|
|
106365
109223
|
if (packageJsonFile.devDependencies[entry]) {
|
|
106366
109224
|
const existingVersion = packageJsonFile.devDependencies[entry];
|
|
106367
|
-
return isIncomingVersionGreater(incomingVersion, existingVersion);
|
|
109225
|
+
return isIncomingVersionGreater(tree, incomingVersion, existingVersion, entry);
|
|
106368
109226
|
}
|
|
106369
109227
|
if (packageJsonFile.dependencies[entry]) {
|
|
106370
109228
|
const existingVersion = packageJsonFile.dependencies[entry];
|
|
106371
|
-
return isIncomingVersionGreater(incomingVersion, existingVersion);
|
|
109229
|
+
return isIncomingVersionGreater(tree, incomingVersion, existingVersion, entry);
|
|
106372
109230
|
}
|
|
106373
109231
|
return true;
|
|
106374
109232
|
});
|
|
@@ -106414,31 +109272,7 @@ var require_package_json = __commonJS({
|
|
|
106414
109272
|
if (process.env.NX_DRY_RUN && process.env.NX_DRY_RUN !== "false") {
|
|
106415
109273
|
throw new Error('NOTE: This generator does not support --dry-run. If you are running this in Nx Console, it should execute fine once you hit the "Generate" button.\n');
|
|
106416
109274
|
}
|
|
106417
|
-
const {
|
|
106418
|
-
dir: (0, tmp_1.dirSync)().name
|
|
106419
|
-
};
|
|
106420
|
-
console.log(`Fetching ${pkg}...`);
|
|
106421
|
-
const packageManager = (0, devkit_exports_1.detectPackageManager)();
|
|
106422
|
-
const isVerbose = process.env.NX_VERBOSE_LOGGING === "true";
|
|
106423
|
-
generatePackageManagerFiles(tempDir, packageManager);
|
|
106424
|
-
const preInstallCommand = (0, devkit_exports_1.getPackageManagerCommand)(packageManager).preInstall;
|
|
106425
|
-
if (preInstallCommand) {
|
|
106426
|
-
(0, child_process_1.execSync)(preInstallCommand, {
|
|
106427
|
-
cwd: tempDir,
|
|
106428
|
-
stdio: isVerbose ? "inherit" : "ignore",
|
|
106429
|
-
windowsHide: false
|
|
106430
|
-
});
|
|
106431
|
-
}
|
|
106432
|
-
const pmCommands = (0, devkit_exports_1.getPackageManagerCommand)(packageManager);
|
|
106433
|
-
let addCommand = pmCommands.addDev;
|
|
106434
|
-
if (packageManager === "pnpm") {
|
|
106435
|
-
addCommand = "pnpm add -D";
|
|
106436
|
-
}
|
|
106437
|
-
(0, child_process_1.execSync)(`${addCommand} ${pkg}@${requiredVersion} ${pmCommands.ignoreScriptsFlag ?? ""}`, {
|
|
106438
|
-
cwd: tempDir,
|
|
106439
|
-
stdio: isVerbose ? "inherit" : "ignore",
|
|
106440
|
-
windowsHide: false
|
|
106441
|
-
});
|
|
109275
|
+
const { tempDir } = (0, devkit_internals_1.installPackageToTmp)(pkg, requiredVersion);
|
|
106442
109276
|
addToNodePath((0, path_1.join)(devkit_exports_1.workspaceRoot, "node_modules"));
|
|
106443
109277
|
addToNodePath((0, path_1.join)(tempDir, "node_modules"));
|
|
106444
109278
|
module_1.Module._initPaths();
|
|
@@ -106456,16 +109290,6 @@ var require_package_json = __commonJS({
|
|
|
106456
109290
|
throw e7;
|
|
106457
109291
|
}
|
|
106458
109292
|
}
|
|
106459
|
-
function generatePackageManagerFiles(root2, packageManager = (0, devkit_exports_1.detectPackageManager)()) {
|
|
106460
|
-
const [pmMajor] = (0, devkit_exports_1.getPackageManagerVersion)(packageManager).split(".");
|
|
106461
|
-
switch (packageManager) {
|
|
106462
|
-
case "yarn":
|
|
106463
|
-
if (+pmMajor >= 2) {
|
|
106464
|
-
(0, fs_1.writeFileSync)((0, path_1.join)(root2, ".yarnrc.yml"), "nodeLinker: node-modules\nenableScripts: false");
|
|
106465
|
-
}
|
|
106466
|
-
break;
|
|
106467
|
-
}
|
|
106468
|
-
}
|
|
106469
109293
|
function addToNodePath(dir) {
|
|
106470
109294
|
const delimiter = require("os").platform() === "win32" ? ";" : ":";
|
|
106471
109295
|
const paths = process.env.NODE_PATH ? process.env.NODE_PATH.split(delimiter) : [];
|
|
@@ -106475,16 +109299,16 @@ var require_package_json = __commonJS({
|
|
|
106475
109299
|
paths.push(dir);
|
|
106476
109300
|
process.env.NODE_PATH = paths.join(delimiter);
|
|
106477
109301
|
}
|
|
106478
|
-
function
|
|
109302
|
+
function getInstalledPackageModuleVersion(pkg) {
|
|
106479
109303
|
return require((0, path_1.join)(pkg, "package.json")).version;
|
|
106480
109304
|
}
|
|
106481
|
-
exports2.NX_VERSION =
|
|
109305
|
+
exports2.NX_VERSION = getInstalledPackageModuleVersion("nx");
|
|
106482
109306
|
}
|
|
106483
109307
|
});
|
|
106484
109308
|
|
|
106485
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
109309
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/generators/to-js.js
|
|
106486
109310
|
var require_to_js = __commonJS({
|
|
106487
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
109311
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/generators/to-js.js"(exports2) {
|
|
106488
109312
|
"use strict";
|
|
106489
109313
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
106490
109314
|
exports2.toJS = toJS;
|
|
@@ -106512,9 +109336,9 @@ var require_to_js = __commonJS({
|
|
|
106512
109336
|
}
|
|
106513
109337
|
});
|
|
106514
109338
|
|
|
106515
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
109339
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js
|
|
106516
109340
|
var require_update_ts_configs_to_js = __commonJS({
|
|
106517
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
109341
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/generators/update-ts-configs-to-js.js"(exports2) {
|
|
106518
109342
|
"use strict";
|
|
106519
109343
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
106520
109344
|
exports2.updateTsConfigsToJs = updateTsConfigsToJs;
|
|
@@ -106558,9 +109382,9 @@ var require_update_ts_configs_to_js = __commonJS({
|
|
|
106558
109382
|
}
|
|
106559
109383
|
});
|
|
106560
109384
|
|
|
106561
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
109385
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/generators/run-tasks-in-serial.js
|
|
106562
109386
|
var require_run_tasks_in_serial = __commonJS({
|
|
106563
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
109387
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/generators/run-tasks-in-serial.js"(exports2) {
|
|
106564
109388
|
"use strict";
|
|
106565
109389
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
106566
109390
|
exports2.runTasksInSerial = runTasksInSerial;
|
|
@@ -106574,412 +109398,16 @@ var require_run_tasks_in_serial = __commonJS({
|
|
|
106574
109398
|
}
|
|
106575
109399
|
});
|
|
106576
109400
|
|
|
106577
|
-
// ../../node_modules/.pnpm
|
|
106578
|
-
var require_ignore2 = __commonJS({
|
|
106579
|
-
"../../node_modules/.pnpm/ignore@5.3.2/node_modules/ignore/index.js"(exports2, module2) {
|
|
106580
|
-
function makeArray(subject) {
|
|
106581
|
-
return Array.isArray(subject) ? subject : [subject];
|
|
106582
|
-
}
|
|
106583
|
-
var EMPTY = "";
|
|
106584
|
-
var SPACE = " ";
|
|
106585
|
-
var ESCAPE = "\\";
|
|
106586
|
-
var REGEX_TEST_BLANK_LINE = /^\s+$/;
|
|
106587
|
-
var REGEX_INVALID_TRAILING_BACKSLASH = /(?:[^\\]|^)\\$/;
|
|
106588
|
-
var REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION = /^\\!/;
|
|
106589
|
-
var REGEX_REPLACE_LEADING_EXCAPED_HASH = /^\\#/;
|
|
106590
|
-
var REGEX_SPLITALL_CRLF = /\r?\n/g;
|
|
106591
|
-
var REGEX_TEST_INVALID_PATH = /^\.*\/|^\.+$/;
|
|
106592
|
-
var SLASH = "/";
|
|
106593
|
-
var TMP_KEY_IGNORE = "node-ignore";
|
|
106594
|
-
if (typeof Symbol !== "undefined") {
|
|
106595
|
-
TMP_KEY_IGNORE = Symbol.for("node-ignore");
|
|
106596
|
-
}
|
|
106597
|
-
var KEY_IGNORE = TMP_KEY_IGNORE;
|
|
106598
|
-
var define2 = (object, key2, value) => Object.defineProperty(object, key2, { value });
|
|
106599
|
-
var REGEX_REGEXP_RANGE = /([0-z])-([0-z])/g;
|
|
106600
|
-
var RETURN_FALSE = () => false;
|
|
106601
|
-
var sanitizeRange = (range) => range.replace(
|
|
106602
|
-
REGEX_REGEXP_RANGE,
|
|
106603
|
-
(match, from, to4) => from.charCodeAt(0) <= to4.charCodeAt(0) ? match : EMPTY
|
|
106604
|
-
);
|
|
106605
|
-
var cleanRangeBackSlash = (slashes) => {
|
|
106606
|
-
const { length } = slashes;
|
|
106607
|
-
return slashes.slice(0, length - length % 2);
|
|
106608
|
-
};
|
|
106609
|
-
var REPLACERS = [
|
|
106610
|
-
[
|
|
106611
|
-
// remove BOM
|
|
106612
|
-
// TODO:
|
|
106613
|
-
// Other similar zero-width characters?
|
|
106614
|
-
/^\uFEFF/,
|
|
106615
|
-
() => EMPTY
|
|
106616
|
-
],
|
|
106617
|
-
// > Trailing spaces are ignored unless they are quoted with backslash ("\")
|
|
106618
|
-
[
|
|
106619
|
-
// (a\ ) -> (a )
|
|
106620
|
-
// (a ) -> (a)
|
|
106621
|
-
// (a ) -> (a)
|
|
106622
|
-
// (a \ ) -> (a )
|
|
106623
|
-
/((?:\\\\)*?)(\\?\s+)$/,
|
|
106624
|
-
(_7, m12, m24) => m12 + (m24.indexOf("\\") === 0 ? SPACE : EMPTY)
|
|
106625
|
-
],
|
|
106626
|
-
// replace (\ ) with ' '
|
|
106627
|
-
// (\ ) -> ' '
|
|
106628
|
-
// (\\ ) -> '\\ '
|
|
106629
|
-
// (\\\ ) -> '\\ '
|
|
106630
|
-
[
|
|
106631
|
-
/(\\+?)\s/g,
|
|
106632
|
-
(_7, m12) => {
|
|
106633
|
-
const { length } = m12;
|
|
106634
|
-
return m12.slice(0, length - length % 2) + SPACE;
|
|
106635
|
-
}
|
|
106636
|
-
],
|
|
106637
|
-
// Escape metacharacters
|
|
106638
|
-
// which is written down by users but means special for regular expressions.
|
|
106639
|
-
// > There are 12 characters with special meanings:
|
|
106640
|
-
// > - the backslash \,
|
|
106641
|
-
// > - the caret ^,
|
|
106642
|
-
// > - the dollar sign $,
|
|
106643
|
-
// > - the period or dot .,
|
|
106644
|
-
// > - the vertical bar or pipe symbol |,
|
|
106645
|
-
// > - the question mark ?,
|
|
106646
|
-
// > - the asterisk or star *,
|
|
106647
|
-
// > - the plus sign +,
|
|
106648
|
-
// > - the opening parenthesis (,
|
|
106649
|
-
// > - the closing parenthesis ),
|
|
106650
|
-
// > - and the opening square bracket [,
|
|
106651
|
-
// > - the opening curly brace {,
|
|
106652
|
-
// > These special characters are often called "metacharacters".
|
|
106653
|
-
[
|
|
106654
|
-
/[\\$.|*+(){^]/g,
|
|
106655
|
-
(match) => `\\${match}`
|
|
106656
|
-
],
|
|
106657
|
-
[
|
|
106658
|
-
// > a question mark (?) matches a single character
|
|
106659
|
-
/(?!\\)\?/g,
|
|
106660
|
-
() => "[^/]"
|
|
106661
|
-
],
|
|
106662
|
-
// leading slash
|
|
106663
|
-
[
|
|
106664
|
-
// > A leading slash matches the beginning of the pathname.
|
|
106665
|
-
// > For example, "/*.c" matches "cat-file.c" but not "mozilla-sha1/sha1.c".
|
|
106666
|
-
// A leading slash matches the beginning of the pathname
|
|
106667
|
-
/^\//,
|
|
106668
|
-
() => "^"
|
|
106669
|
-
],
|
|
106670
|
-
// replace special metacharacter slash after the leading slash
|
|
106671
|
-
[
|
|
106672
|
-
/\//g,
|
|
106673
|
-
() => "\\/"
|
|
106674
|
-
],
|
|
106675
|
-
[
|
|
106676
|
-
// > A leading "**" followed by a slash means match in all directories.
|
|
106677
|
-
// > For example, "**/foo" matches file or directory "foo" anywhere,
|
|
106678
|
-
// > the same as pattern "foo".
|
|
106679
|
-
// > "**/foo/bar" matches file or directory "bar" anywhere that is directly
|
|
106680
|
-
// > under directory "foo".
|
|
106681
|
-
// Notice that the '*'s have been replaced as '\\*'
|
|
106682
|
-
/^\^*\\\*\\\*\\\//,
|
|
106683
|
-
// '**/foo' <-> 'foo'
|
|
106684
|
-
() => "^(?:.*\\/)?"
|
|
106685
|
-
],
|
|
106686
|
-
// starting
|
|
106687
|
-
[
|
|
106688
|
-
// there will be no leading '/'
|
|
106689
|
-
// (which has been replaced by section "leading slash")
|
|
106690
|
-
// If starts with '**', adding a '^' to the regular expression also works
|
|
106691
|
-
/^(?=[^^])/,
|
|
106692
|
-
function startingReplacer() {
|
|
106693
|
-
return !/\/(?!$)/.test(this) ? "(?:^|\\/)" : "^";
|
|
106694
|
-
}
|
|
106695
|
-
],
|
|
106696
|
-
// two globstars
|
|
106697
|
-
[
|
|
106698
|
-
// Use lookahead assertions so that we could match more than one `'/**'`
|
|
106699
|
-
/\\\/\\\*\\\*(?=\\\/|$)/g,
|
|
106700
|
-
// Zero, one or several directories
|
|
106701
|
-
// should not use '*', or it will be replaced by the next replacer
|
|
106702
|
-
// Check if it is not the last `'/**'`
|
|
106703
|
-
(_7, index, str) => index + 6 < str.length ? "(?:\\/[^\\/]+)*" : "\\/.+"
|
|
106704
|
-
],
|
|
106705
|
-
// normal intermediate wildcards
|
|
106706
|
-
[
|
|
106707
|
-
// Never replace escaped '*'
|
|
106708
|
-
// ignore rule '\*' will match the path '*'
|
|
106709
|
-
// 'abc.*/' -> go
|
|
106710
|
-
// 'abc.*' -> skip this rule,
|
|
106711
|
-
// coz trailing single wildcard will be handed by [trailing wildcard]
|
|
106712
|
-
/(^|[^\\]+)(\\\*)+(?=.+)/g,
|
|
106713
|
-
// '*.js' matches '.js'
|
|
106714
|
-
// '*.js' doesn't match 'abc'
|
|
106715
|
-
(_7, p12, p25) => {
|
|
106716
|
-
const unescaped = p25.replace(/\\\*/g, "[^\\/]*");
|
|
106717
|
-
return p12 + unescaped;
|
|
106718
|
-
}
|
|
106719
|
-
],
|
|
106720
|
-
[
|
|
106721
|
-
// unescape, revert step 3 except for back slash
|
|
106722
|
-
// For example, if a user escape a '\\*',
|
|
106723
|
-
// after step 3, the result will be '\\\\\\*'
|
|
106724
|
-
/\\\\\\(?=[$.|*+(){^])/g,
|
|
106725
|
-
() => ESCAPE
|
|
106726
|
-
],
|
|
106727
|
-
[
|
|
106728
|
-
// '\\\\' -> '\\'
|
|
106729
|
-
/\\\\/g,
|
|
106730
|
-
() => ESCAPE
|
|
106731
|
-
],
|
|
106732
|
-
[
|
|
106733
|
-
// > The range notation, e.g. [a-zA-Z],
|
|
106734
|
-
// > can be used to match one of the characters in a range.
|
|
106735
|
-
// `\` is escaped by step 3
|
|
106736
|
-
/(\\)?\[([^\]/]*?)(\\*)($|\])/g,
|
|
106737
|
-
(match, leadEscape, range, endEscape, close) => leadEscape === ESCAPE ? `\\[${range}${cleanRangeBackSlash(endEscape)}${close}` : close === "]" ? endEscape.length % 2 === 0 ? `[${sanitizeRange(range)}${endEscape}]` : "[]" : "[]"
|
|
106738
|
-
],
|
|
106739
|
-
// ending
|
|
106740
|
-
[
|
|
106741
|
-
// 'js' will not match 'js.'
|
|
106742
|
-
// 'ab' will not match 'abc'
|
|
106743
|
-
/(?:[^*])$/,
|
|
106744
|
-
// WTF!
|
|
106745
|
-
// https://git-scm.com/docs/gitignore
|
|
106746
|
-
// changes in [2.22.1](https://git-scm.com/docs/gitignore/2.22.1)
|
|
106747
|
-
// which re-fixes #24, #38
|
|
106748
|
-
// > If there is a separator at the end of the pattern then the pattern
|
|
106749
|
-
// > will only match directories, otherwise the pattern can match both
|
|
106750
|
-
// > files and directories.
|
|
106751
|
-
// 'js*' will not match 'a.js'
|
|
106752
|
-
// 'js/' will not match 'a.js'
|
|
106753
|
-
// 'js' will match 'a.js' and 'a.js/'
|
|
106754
|
-
(match) => /\/$/.test(match) ? `${match}$` : `${match}(?=$|\\/$)`
|
|
106755
|
-
],
|
|
106756
|
-
// trailing wildcard
|
|
106757
|
-
[
|
|
106758
|
-
/(\^|\\\/)?\\\*$/,
|
|
106759
|
-
(_7, p12) => {
|
|
106760
|
-
const prefix = p12 ? `${p12}[^/]+` : "[^/]*";
|
|
106761
|
-
return `${prefix}(?=$|\\/$)`;
|
|
106762
|
-
}
|
|
106763
|
-
]
|
|
106764
|
-
];
|
|
106765
|
-
var regexCache = /* @__PURE__ */ Object.create(null);
|
|
106766
|
-
var makeRegex = (pattern, ignoreCase) => {
|
|
106767
|
-
let source2 = regexCache[pattern];
|
|
106768
|
-
if (!source2) {
|
|
106769
|
-
source2 = REPLACERS.reduce(
|
|
106770
|
-
(prev, [matcher, replacer]) => prev.replace(matcher, replacer.bind(pattern)),
|
|
106771
|
-
pattern
|
|
106772
|
-
);
|
|
106773
|
-
regexCache[pattern] = source2;
|
|
106774
|
-
}
|
|
106775
|
-
return ignoreCase ? new RegExp(source2, "i") : new RegExp(source2);
|
|
106776
|
-
};
|
|
106777
|
-
var isString = (subject) => typeof subject === "string";
|
|
106778
|
-
var checkPattern = (pattern) => pattern && isString(pattern) && !REGEX_TEST_BLANK_LINE.test(pattern) && !REGEX_INVALID_TRAILING_BACKSLASH.test(pattern) && pattern.indexOf("#") !== 0;
|
|
106779
|
-
var splitPattern = (pattern) => pattern.split(REGEX_SPLITALL_CRLF);
|
|
106780
|
-
var IgnoreRule = class {
|
|
106781
|
-
constructor(origin, pattern, negative, regex) {
|
|
106782
|
-
this.origin = origin;
|
|
106783
|
-
this.pattern = pattern;
|
|
106784
|
-
this.negative = negative;
|
|
106785
|
-
this.regex = regex;
|
|
106786
|
-
}
|
|
106787
|
-
};
|
|
106788
|
-
var createRule = (pattern, ignoreCase) => {
|
|
106789
|
-
const origin = pattern;
|
|
106790
|
-
let negative = false;
|
|
106791
|
-
if (pattern.indexOf("!") === 0) {
|
|
106792
|
-
negative = true;
|
|
106793
|
-
pattern = pattern.substr(1);
|
|
106794
|
-
}
|
|
106795
|
-
pattern = pattern.replace(REGEX_REPLACE_LEADING_EXCAPED_EXCLAMATION, "!").replace(REGEX_REPLACE_LEADING_EXCAPED_HASH, "#");
|
|
106796
|
-
const regex = makeRegex(pattern, ignoreCase);
|
|
106797
|
-
return new IgnoreRule(
|
|
106798
|
-
origin,
|
|
106799
|
-
pattern,
|
|
106800
|
-
negative,
|
|
106801
|
-
regex
|
|
106802
|
-
);
|
|
106803
|
-
};
|
|
106804
|
-
var throwError = (message, Ctor) => {
|
|
106805
|
-
throw new Ctor(message);
|
|
106806
|
-
};
|
|
106807
|
-
var checkPath = (path14, originalPath, doThrow) => {
|
|
106808
|
-
if (!isString(path14)) {
|
|
106809
|
-
return doThrow(
|
|
106810
|
-
`path must be a string, but got \`${originalPath}\``,
|
|
106811
|
-
TypeError
|
|
106812
|
-
);
|
|
106813
|
-
}
|
|
106814
|
-
if (!path14) {
|
|
106815
|
-
return doThrow(`path must not be empty`, TypeError);
|
|
106816
|
-
}
|
|
106817
|
-
if (checkPath.isNotRelative(path14)) {
|
|
106818
|
-
const r4 = "`path.relative()`d";
|
|
106819
|
-
return doThrow(
|
|
106820
|
-
`path should be a ${r4} string, but got "${originalPath}"`,
|
|
106821
|
-
RangeError
|
|
106822
|
-
);
|
|
106823
|
-
}
|
|
106824
|
-
return true;
|
|
106825
|
-
};
|
|
106826
|
-
var isNotRelative = (path14) => REGEX_TEST_INVALID_PATH.test(path14);
|
|
106827
|
-
checkPath.isNotRelative = isNotRelative;
|
|
106828
|
-
checkPath.convert = (p5) => p5;
|
|
106829
|
-
var Ignore = class {
|
|
106830
|
-
constructor({
|
|
106831
|
-
ignorecase = true,
|
|
106832
|
-
ignoreCase = ignorecase,
|
|
106833
|
-
allowRelativePaths = false
|
|
106834
|
-
} = {}) {
|
|
106835
|
-
define2(this, KEY_IGNORE, true);
|
|
106836
|
-
this._rules = [];
|
|
106837
|
-
this._ignoreCase = ignoreCase;
|
|
106838
|
-
this._allowRelativePaths = allowRelativePaths;
|
|
106839
|
-
this._initCache();
|
|
106840
|
-
}
|
|
106841
|
-
_initCache() {
|
|
106842
|
-
this._ignoreCache = /* @__PURE__ */ Object.create(null);
|
|
106843
|
-
this._testCache = /* @__PURE__ */ Object.create(null);
|
|
106844
|
-
}
|
|
106845
|
-
_addPattern(pattern) {
|
|
106846
|
-
if (pattern && pattern[KEY_IGNORE]) {
|
|
106847
|
-
this._rules = this._rules.concat(pattern._rules);
|
|
106848
|
-
this._added = true;
|
|
106849
|
-
return;
|
|
106850
|
-
}
|
|
106851
|
-
if (checkPattern(pattern)) {
|
|
106852
|
-
const rule = createRule(pattern, this._ignoreCase);
|
|
106853
|
-
this._added = true;
|
|
106854
|
-
this._rules.push(rule);
|
|
106855
|
-
}
|
|
106856
|
-
}
|
|
106857
|
-
// @param {Array<string> | string | Ignore} pattern
|
|
106858
|
-
add(pattern) {
|
|
106859
|
-
this._added = false;
|
|
106860
|
-
makeArray(
|
|
106861
|
-
isString(pattern) ? splitPattern(pattern) : pattern
|
|
106862
|
-
).forEach(this._addPattern, this);
|
|
106863
|
-
if (this._added) {
|
|
106864
|
-
this._initCache();
|
|
106865
|
-
}
|
|
106866
|
-
return this;
|
|
106867
|
-
}
|
|
106868
|
-
// legacy
|
|
106869
|
-
addPattern(pattern) {
|
|
106870
|
-
return this.add(pattern);
|
|
106871
|
-
}
|
|
106872
|
-
// | ignored : unignored
|
|
106873
|
-
// negative | 0:0 | 0:1 | 1:0 | 1:1
|
|
106874
|
-
// -------- | ------- | ------- | ------- | --------
|
|
106875
|
-
// 0 | TEST | TEST | SKIP | X
|
|
106876
|
-
// 1 | TESTIF | SKIP | TEST | X
|
|
106877
|
-
// - SKIP: always skip
|
|
106878
|
-
// - TEST: always test
|
|
106879
|
-
// - TESTIF: only test if checkUnignored
|
|
106880
|
-
// - X: that never happen
|
|
106881
|
-
// @param {boolean} whether should check if the path is unignored,
|
|
106882
|
-
// setting `checkUnignored` to `false` could reduce additional
|
|
106883
|
-
// path matching.
|
|
106884
|
-
// @returns {TestResult} true if a file is ignored
|
|
106885
|
-
_testOne(path14, checkUnignored) {
|
|
106886
|
-
let ignored = false;
|
|
106887
|
-
let unignored = false;
|
|
106888
|
-
this._rules.forEach((rule) => {
|
|
106889
|
-
const { negative } = rule;
|
|
106890
|
-
if (unignored === negative && ignored !== unignored || negative && !ignored && !unignored && !checkUnignored) {
|
|
106891
|
-
return;
|
|
106892
|
-
}
|
|
106893
|
-
const matched = rule.regex.test(path14);
|
|
106894
|
-
if (matched) {
|
|
106895
|
-
ignored = !negative;
|
|
106896
|
-
unignored = negative;
|
|
106897
|
-
}
|
|
106898
|
-
});
|
|
106899
|
-
return {
|
|
106900
|
-
ignored,
|
|
106901
|
-
unignored
|
|
106902
|
-
};
|
|
106903
|
-
}
|
|
106904
|
-
// @returns {TestResult}
|
|
106905
|
-
_test(originalPath, cache3, checkUnignored, slices) {
|
|
106906
|
-
const path14 = originalPath && checkPath.convert(originalPath);
|
|
106907
|
-
checkPath(
|
|
106908
|
-
path14,
|
|
106909
|
-
originalPath,
|
|
106910
|
-
this._allowRelativePaths ? RETURN_FALSE : throwError
|
|
106911
|
-
);
|
|
106912
|
-
return this._t(path14, cache3, checkUnignored, slices);
|
|
106913
|
-
}
|
|
106914
|
-
_t(path14, cache3, checkUnignored, slices) {
|
|
106915
|
-
if (path14 in cache3) {
|
|
106916
|
-
return cache3[path14];
|
|
106917
|
-
}
|
|
106918
|
-
if (!slices) {
|
|
106919
|
-
slices = path14.split(SLASH);
|
|
106920
|
-
}
|
|
106921
|
-
slices.pop();
|
|
106922
|
-
if (!slices.length) {
|
|
106923
|
-
return cache3[path14] = this._testOne(path14, checkUnignored);
|
|
106924
|
-
}
|
|
106925
|
-
const parent = this._t(
|
|
106926
|
-
slices.join(SLASH) + SLASH,
|
|
106927
|
-
cache3,
|
|
106928
|
-
checkUnignored,
|
|
106929
|
-
slices
|
|
106930
|
-
);
|
|
106931
|
-
return cache3[path14] = parent.ignored ? parent : this._testOne(path14, checkUnignored);
|
|
106932
|
-
}
|
|
106933
|
-
ignores(path14) {
|
|
106934
|
-
return this._test(path14, this._ignoreCache, false).ignored;
|
|
106935
|
-
}
|
|
106936
|
-
createFilter() {
|
|
106937
|
-
return (path14) => !this.ignores(path14);
|
|
106938
|
-
}
|
|
106939
|
-
filter(paths) {
|
|
106940
|
-
return makeArray(paths).filter(this.createFilter());
|
|
106941
|
-
}
|
|
106942
|
-
// @returns {TestResult}
|
|
106943
|
-
test(path14) {
|
|
106944
|
-
return this._test(path14, this._testCache, true);
|
|
106945
|
-
}
|
|
106946
|
-
};
|
|
106947
|
-
var factory = (options8) => new Ignore(options8);
|
|
106948
|
-
var isPathValid = (path14) => checkPath(path14 && checkPath.convert(path14), path14, RETURN_FALSE);
|
|
106949
|
-
factory.isPathValid = isPathValid;
|
|
106950
|
-
factory.default = factory;
|
|
106951
|
-
module2.exports = factory;
|
|
106952
|
-
if (
|
|
106953
|
-
// Detect `process` so that it can run in browsers.
|
|
106954
|
-
typeof process !== "undefined" && (process.env && process.env.IGNORE_TEST_WIN32 || process.platform === "win32")
|
|
106955
|
-
) {
|
|
106956
|
-
const makePosix = (str) => /^\\\\\?\\/.test(str) || /["<>|\u0000-\u001F]+/u.test(str) ? str : str.replace(/\\/g, "/");
|
|
106957
|
-
checkPath.convert = makePosix;
|
|
106958
|
-
const REGIX_IS_WINDOWS_PATH_ABSOLUTE = /^[a-z]:\//i;
|
|
106959
|
-
checkPath.isNotRelative = (path14) => REGIX_IS_WINDOWS_PATH_ABSOLUTE.test(path14) || isNotRelative(path14);
|
|
106960
|
-
}
|
|
106961
|
-
}
|
|
106962
|
-
});
|
|
106963
|
-
|
|
106964
|
-
// ../../node_modules/.pnpm/@nx+devkit@21.5.2_nx@21.5.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_c4b3329f377a274c25d9c6b2b666ae22/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js
|
|
109401
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js
|
|
106965
109402
|
var require_visit_not_ignored_files = __commonJS({
|
|
106966
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
109403
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/generators/visit-not-ignored-files.js"(exports2) {
|
|
106967
109404
|
"use strict";
|
|
106968
109405
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
106969
109406
|
exports2.visitNotIgnoredFiles = visitNotIgnoredFiles;
|
|
106970
|
-
var
|
|
109407
|
+
var devkit_internals_1 = require("nx/src/devkit-internals");
|
|
106971
109408
|
var path_1 = require("path");
|
|
106972
109409
|
function visitNotIgnoredFiles(tree, dirPath = tree.root, visitor) {
|
|
106973
|
-
|
|
106974
|
-
if (tree.exists(".gitignore")) {
|
|
106975
|
-
ig2 = (0, ignore_1.default)();
|
|
106976
|
-
ig2.add(".git");
|
|
106977
|
-
ig2.add(tree.read(".gitignore", "utf-8"));
|
|
106978
|
-
}
|
|
106979
|
-
if (tree.exists(".nxignore")) {
|
|
106980
|
-
ig2 ??= (0, ignore_1.default)();
|
|
106981
|
-
ig2.add(tree.read(".nxignore", "utf-8"));
|
|
106982
|
-
}
|
|
109410
|
+
const ig2 = (0, devkit_internals_1.getIgnoreObjectForTree)(tree);
|
|
106983
109411
|
dirPath = normalizePathRelativeToRoot(dirPath, tree.root);
|
|
106984
109412
|
if (dirPath !== "" && ig2?.ignores(dirPath)) {
|
|
106985
109413
|
return;
|
|
@@ -107002,9 +109430,9 @@ var require_visit_not_ignored_files = __commonJS({
|
|
|
107002
109430
|
}
|
|
107003
109431
|
});
|
|
107004
109432
|
|
|
107005
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
109433
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/executors/parse-target-string.js
|
|
107006
109434
|
var require_parse_target_string = __commonJS({
|
|
107007
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
109435
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/executors/parse-target-string.js"(exports2) {
|
|
107008
109436
|
"use strict";
|
|
107009
109437
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
107010
109438
|
exports2.parseTargetString = parseTargetString;
|
|
@@ -107040,9 +109468,9 @@ var require_parse_target_string = __commonJS({
|
|
|
107040
109468
|
}
|
|
107041
109469
|
});
|
|
107042
109470
|
|
|
107043
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
109471
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/executors/read-target-options.js
|
|
107044
109472
|
var require_read_target_options = __commonJS({
|
|
107045
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
109473
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/executors/read-target-options.js"(exports2) {
|
|
107046
109474
|
"use strict";
|
|
107047
109475
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
107048
109476
|
exports2.readTargetOptions = readTargetOptions;
|
|
@@ -107065,9 +109493,9 @@ var require_read_target_options = __commonJS({
|
|
|
107065
109493
|
}
|
|
107066
109494
|
});
|
|
107067
109495
|
|
|
107068
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
109496
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/names.js
|
|
107069
109497
|
var require_names = __commonJS({
|
|
107070
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
109498
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/names.js"(exports2) {
|
|
107071
109499
|
"use strict";
|
|
107072
109500
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
107073
109501
|
exports2.names = names;
|
|
@@ -107099,9 +109527,9 @@ var require_names = __commonJS({
|
|
|
107099
109527
|
}
|
|
107100
109528
|
});
|
|
107101
109529
|
|
|
107102
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
109530
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/get-workspace-layout.js
|
|
107103
109531
|
var require_get_workspace_layout = __commonJS({
|
|
107104
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
109532
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/get-workspace-layout.js"(exports2) {
|
|
107105
109533
|
"use strict";
|
|
107106
109534
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
107107
109535
|
exports2.getWorkspaceLayout = getWorkspaceLayout;
|
|
@@ -107139,9 +109567,9 @@ var require_get_workspace_layout = __commonJS({
|
|
|
107139
109567
|
}
|
|
107140
109568
|
});
|
|
107141
109569
|
|
|
107142
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
109570
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/string-change.js
|
|
107143
109571
|
var require_string_change = __commonJS({
|
|
107144
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
109572
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/string-change.js"(exports2) {
|
|
107145
109573
|
"use strict";
|
|
107146
109574
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
107147
109575
|
exports2.ChangeType = void 0;
|
|
@@ -107218,9 +109646,9 @@ var require_string_change = __commonJS({
|
|
|
107218
109646
|
}
|
|
107219
109647
|
});
|
|
107220
109648
|
|
|
107221
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
109649
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/offset-from-root.js
|
|
107222
109650
|
var require_offset_from_root = __commonJS({
|
|
107223
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
109651
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/offset-from-root.js"(exports2) {
|
|
107224
109652
|
"use strict";
|
|
107225
109653
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
107226
109654
|
exports2.offsetFromRoot = offsetFromRoot;
|
|
@@ -107240,9 +109668,9 @@ var require_offset_from_root = __commonJS({
|
|
|
107240
109668
|
}
|
|
107241
109669
|
});
|
|
107242
109670
|
|
|
107243
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
109671
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js
|
|
107244
109672
|
var require_invoke_nx_generator = __commonJS({
|
|
107245
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
109673
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/invoke-nx-generator.js"(exports2) {
|
|
107246
109674
|
"use strict";
|
|
107247
109675
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
107248
109676
|
exports2.convertNxGenerator = convertNxGenerator;
|
|
@@ -111407,7 +113835,7 @@ var require_uri = __commonJS({
|
|
|
111407
113835
|
});
|
|
111408
113836
|
|
|
111409
113837
|
// ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js
|
|
111410
|
-
var
|
|
113838
|
+
var require_core2 = __commonJS({
|
|
111411
113839
|
"../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/core.js"(exports2) {
|
|
111412
113840
|
"use strict";
|
|
111413
113841
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -112155,7 +114583,7 @@ var require_ref = __commonJS({
|
|
|
112155
114583
|
});
|
|
112156
114584
|
|
|
112157
114585
|
// ../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js
|
|
112158
|
-
var
|
|
114586
|
+
var require_core3 = __commonJS({
|
|
112159
114587
|
"../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/core/index.js"(exports2) {
|
|
112160
114588
|
"use strict";
|
|
112161
114589
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -113683,7 +116111,7 @@ var require_draft7 = __commonJS({
|
|
|
113683
116111
|
"../../node_modules/.pnpm/ajv@8.17.1/node_modules/ajv/dist/vocabularies/draft7.js"(exports2) {
|
|
113684
116112
|
"use strict";
|
|
113685
116113
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
113686
|
-
var core_1 =
|
|
116114
|
+
var core_1 = require_core3();
|
|
113687
116115
|
var validation_1 = require_validation();
|
|
113688
116116
|
var applicator_1 = require_applicator();
|
|
113689
116117
|
var format_1 = require_format2();
|
|
@@ -113982,7 +116410,7 @@ var require_ajv = __commonJS({
|
|
|
113982
116410
|
"use strict";
|
|
113983
116411
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
113984
116412
|
exports2.MissingRefError = exports2.ValidationError = exports2.CodeGen = exports2.Name = exports2.nil = exports2.stringify = exports2.str = exports2._ = exports2.KeywordCxt = exports2.Ajv = void 0;
|
|
113985
|
-
var core_1 =
|
|
116413
|
+
var core_1 = require_core2();
|
|
113986
116414
|
var draft7_1 = require_draft7();
|
|
113987
116415
|
var discriminator_1 = require_discriminator();
|
|
113988
116416
|
var draft7MetaSchema = require_json_schema_draft_07();
|
|
@@ -118126,7 +120554,7 @@ var require_timeout = __commonJS({
|
|
|
118126
120554
|
});
|
|
118127
120555
|
|
|
118128
120556
|
// ../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/map.js
|
|
118129
|
-
var
|
|
120557
|
+
var require_map3 = __commonJS({
|
|
118130
120558
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/map.js"(exports2) {
|
|
118131
120559
|
"use strict";
|
|
118132
120560
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -118173,7 +120601,7 @@ var require_mapOneOrManyArgs = __commonJS({
|
|
|
118173
120601
|
};
|
|
118174
120602
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
118175
120603
|
exports2.mapOneOrManyArgs = void 0;
|
|
118176
|
-
var map_1 =
|
|
120604
|
+
var map_1 = require_map3();
|
|
118177
120605
|
var isArray = Array.isArray;
|
|
118178
120606
|
function callOrApply(fn9, args) {
|
|
118179
120607
|
return isArray(args) ? fn9.apply(void 0, __spreadArray2([], __read2(args))) : fn9(args);
|
|
@@ -118525,7 +120953,7 @@ var require_mergeMap = __commonJS({
|
|
|
118525
120953
|
"use strict";
|
|
118526
120954
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
118527
120955
|
exports2.mergeMap = void 0;
|
|
118528
|
-
var map_1 =
|
|
120956
|
+
var map_1 = require_map3();
|
|
118529
120957
|
var innerFrom_1 = require_innerFrom();
|
|
118530
120958
|
var lift_1 = require_lift();
|
|
118531
120959
|
var mergeInternals_1 = require_mergeInternals();
|
|
@@ -119053,7 +121481,7 @@ var require_interval = __commonJS({
|
|
|
119053
121481
|
});
|
|
119054
121482
|
|
|
119055
121483
|
// ../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/observable/merge.js
|
|
119056
|
-
var
|
|
121484
|
+
var require_merge3 = __commonJS({
|
|
119057
121485
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/observable/merge.js"(exports2) {
|
|
119058
121486
|
"use strict";
|
|
119059
121487
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -119150,7 +121578,7 @@ var require_onErrorResumeNext = __commonJS({
|
|
|
119150
121578
|
});
|
|
119151
121579
|
|
|
119152
121580
|
// ../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/observable/pairs.js
|
|
119153
|
-
var
|
|
121581
|
+
var require_pairs2 = __commonJS({
|
|
119154
121582
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/observable/pairs.js"(exports2) {
|
|
119155
121583
|
"use strict";
|
|
119156
121584
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -120397,7 +122825,7 @@ var require_mapTo = __commonJS({
|
|
|
120397
122825
|
"use strict";
|
|
120398
122826
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
120399
122827
|
exports2.mapTo = void 0;
|
|
120400
|
-
var map_1 =
|
|
122828
|
+
var map_1 = require_map3();
|
|
120401
122829
|
function mapTo(value) {
|
|
120402
122830
|
return map_1.map(function() {
|
|
120403
122831
|
return value;
|
|
@@ -120687,7 +123115,7 @@ var require_exhaustMap = __commonJS({
|
|
|
120687
123115
|
"use strict";
|
|
120688
123116
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
120689
123117
|
exports2.exhaustMap = void 0;
|
|
120690
|
-
var map_1 =
|
|
123118
|
+
var map_1 = require_map3();
|
|
120691
123119
|
var innerFrom_1 = require_innerFrom();
|
|
120692
123120
|
var lift_1 = require_lift();
|
|
120693
123121
|
var OperatorSubscriber_1 = require_OperatorSubscriber();
|
|
@@ -121160,7 +123588,7 @@ var require_mergeScan = __commonJS({
|
|
|
121160
123588
|
});
|
|
121161
123589
|
|
|
121162
123590
|
// ../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/merge.js
|
|
121163
|
-
var
|
|
123591
|
+
var require_merge4 = __commonJS({
|
|
121164
123592
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/merge.js"(exports2) {
|
|
121165
123593
|
"use strict";
|
|
121166
123594
|
var __read2 = exports2 && exports2.__read || function(o4, n27) {
|
|
@@ -121236,7 +123664,7 @@ var require_mergeWith = __commonJS({
|
|
|
121236
123664
|
};
|
|
121237
123665
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
121238
123666
|
exports2.mergeWith = void 0;
|
|
121239
|
-
var merge_1 =
|
|
123667
|
+
var merge_1 = require_merge4();
|
|
121240
123668
|
function mergeWith() {
|
|
121241
123669
|
var otherSources = [];
|
|
121242
123670
|
for (var _i8 = 0; _i8 < arguments.length; _i8++) {
|
|
@@ -121368,7 +123796,7 @@ var require_pluck = __commonJS({
|
|
|
121368
123796
|
"use strict";
|
|
121369
123797
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
121370
123798
|
exports2.pluck = void 0;
|
|
121371
|
-
var map_1 =
|
|
123799
|
+
var map_1 = require_map3();
|
|
121372
123800
|
function pluck() {
|
|
121373
123801
|
var properties = [];
|
|
121374
123802
|
for (var _i8 = 0; _i8 < arguments.length; _i8++) {
|
|
@@ -122521,13 +124949,13 @@ var require_timeoutWith = __commonJS({
|
|
|
122521
124949
|
});
|
|
122522
124950
|
|
|
122523
124951
|
// ../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js
|
|
122524
|
-
var
|
|
124952
|
+
var require_timestamp2 = __commonJS({
|
|
122525
124953
|
"../../node_modules/.pnpm/rxjs@7.8.1/node_modules/rxjs/dist/cjs/internal/operators/timestamp.js"(exports2) {
|
|
122526
124954
|
"use strict";
|
|
122527
124955
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
122528
124956
|
exports2.timestamp = void 0;
|
|
122529
124957
|
var dateTimestampProvider_1 = require_dateTimestampProvider();
|
|
122530
|
-
var map_1 =
|
|
124958
|
+
var map_1 = require_map3();
|
|
122531
124959
|
function timestamp(timestampProvider) {
|
|
122532
124960
|
if (timestampProvider === void 0) {
|
|
122533
124961
|
timestampProvider = dateTimestampProvider_1.dateTimestampProvider;
|
|
@@ -123261,7 +125689,7 @@ var require_cjs = __commonJS({
|
|
|
123261
125689
|
Object.defineProperty(exports2, "interval", { enumerable: true, get: function() {
|
|
123262
125690
|
return interval_1.interval;
|
|
123263
125691
|
} });
|
|
123264
|
-
var merge_1 =
|
|
125692
|
+
var merge_1 = require_merge3();
|
|
123265
125693
|
Object.defineProperty(exports2, "merge", { enumerable: true, get: function() {
|
|
123266
125694
|
return merge_1.merge;
|
|
123267
125695
|
} });
|
|
@@ -123277,7 +125705,7 @@ var require_cjs = __commonJS({
|
|
|
123277
125705
|
Object.defineProperty(exports2, "onErrorResumeNext", { enumerable: true, get: function() {
|
|
123278
125706
|
return onErrorResumeNext_1.onErrorResumeNext;
|
|
123279
125707
|
} });
|
|
123280
|
-
var pairs_1 =
|
|
125708
|
+
var pairs_1 = require_pairs2();
|
|
123281
125709
|
Object.defineProperty(exports2, "pairs", { enumerable: true, get: function() {
|
|
123282
125710
|
return pairs_1.pairs;
|
|
123283
125711
|
} });
|
|
@@ -123494,7 +125922,7 @@ var require_cjs = __commonJS({
|
|
|
123494
125922
|
Object.defineProperty(exports2, "last", { enumerable: true, get: function() {
|
|
123495
125923
|
return last_1.last;
|
|
123496
125924
|
} });
|
|
123497
|
-
var map_1 =
|
|
125925
|
+
var map_1 = require_map3();
|
|
123498
125926
|
Object.defineProperty(exports2, "map", { enumerable: true, get: function() {
|
|
123499
125927
|
return map_1.map;
|
|
123500
125928
|
} });
|
|
@@ -123714,7 +126142,7 @@ var require_cjs = __commonJS({
|
|
|
123714
126142
|
Object.defineProperty(exports2, "timeoutWith", { enumerable: true, get: function() {
|
|
123715
126143
|
return timeoutWith_1.timeoutWith;
|
|
123716
126144
|
} });
|
|
123717
|
-
var timestamp_1 =
|
|
126145
|
+
var timestamp_1 = require_timestamp2();
|
|
123718
126146
|
Object.defineProperty(exports2, "timestamp", { enumerable: true, get: function() {
|
|
123719
126147
|
return timestamp_1.timestamp;
|
|
123720
126148
|
} });
|
|
@@ -123758,7 +126186,7 @@ var require_cjs = __commonJS({
|
|
|
123758
126186
|
});
|
|
123759
126187
|
|
|
123760
126188
|
// ../../node_modules/.pnpm/@angular-devkit+core@19.0.6_chokidar@4.0.3/node_modules/@angular-devkit/core/src/exception.js
|
|
123761
|
-
var
|
|
126189
|
+
var require_exception2 = __commonJS({
|
|
123762
126190
|
"../../node_modules/.pnpm/@angular-devkit+core@19.0.6_chokidar@4.0.3/node_modules/@angular-devkit/core/src/exception.js"(exports2) {
|
|
123763
126191
|
"use strict";
|
|
123764
126192
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -124167,7 +126595,7 @@ var require_partially_ordered_set = __commonJS({
|
|
|
124167
126595
|
"use strict";
|
|
124168
126596
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
124169
126597
|
exports2.PartiallyOrderedSet = exports2.CircularDependencyFoundException = exports2.DependencyNotFoundException = void 0;
|
|
124170
|
-
var exception_1 =
|
|
126598
|
+
var exception_1 = require_exception2();
|
|
124171
126599
|
var DependencyNotFoundException = class extends exception_1.BaseException {
|
|
124172
126600
|
constructor() {
|
|
124173
126601
|
super("One of the dependencies is not part of the set.");
|
|
@@ -124563,7 +126991,7 @@ var require_registry = __commonJS({
|
|
|
124563
126991
|
var https = __importStar2(require("https"));
|
|
124564
126992
|
var rxjs_1 = require_cjs();
|
|
124565
126993
|
var Url = __importStar2(require("url"));
|
|
124566
|
-
var exception_1 =
|
|
126994
|
+
var exception_1 = require_exception2();
|
|
124567
126995
|
var utils_1 = require_utils8();
|
|
124568
126996
|
var utils_2 = require_utils6();
|
|
124569
126997
|
var utility_1 = require_utility();
|
|
@@ -125023,7 +127451,7 @@ var require_registry = __commonJS({
|
|
|
125023
127451
|
});
|
|
125024
127452
|
|
|
125025
127453
|
// ../../node_modules/.pnpm/@angular-devkit+core@19.0.6_chokidar@4.0.3/node_modules/@angular-devkit/core/src/json/schema/schema.js
|
|
125026
|
-
var
|
|
127454
|
+
var require_schema2 = __commonJS({
|
|
125027
127455
|
"../../node_modules/.pnpm/@angular-devkit+core@19.0.6_chokidar@4.0.3/node_modules/@angular-devkit/core/src/json/schema/schema.js"(exports2) {
|
|
125028
127456
|
"use strict";
|
|
125029
127457
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -125061,7 +127489,7 @@ var require_schema = __commonJS({
|
|
|
125061
127489
|
});
|
|
125062
127490
|
|
|
125063
127491
|
// ../../node_modules/.pnpm/@angular-devkit+core@19.0.6_chokidar@4.0.3/node_modules/@angular-devkit/core/src/json/schema/index.js
|
|
125064
|
-
var
|
|
127492
|
+
var require_schema3 = __commonJS({
|
|
125065
127493
|
"../../node_modules/.pnpm/@angular-devkit+core@19.0.6_chokidar@4.0.3/node_modules/@angular-devkit/core/src/json/schema/index.js"(exports2) {
|
|
125066
127494
|
"use strict";
|
|
125067
127495
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o4, m5, k8, k23) {
|
|
@@ -125101,14 +127529,14 @@ var require_schema2 = __commonJS({
|
|
|
125101
127529
|
__exportStar2(require_interface(), exports2);
|
|
125102
127530
|
__exportStar2(require_pointer(), exports2);
|
|
125103
127531
|
__exportStar2(require_registry(), exports2);
|
|
125104
|
-
__exportStar2(
|
|
127532
|
+
__exportStar2(require_schema2(), exports2);
|
|
125105
127533
|
__exportStar2(require_visitor(), exports2);
|
|
125106
127534
|
__exportStar2(require_utility(), exports2);
|
|
125107
127535
|
}
|
|
125108
127536
|
});
|
|
125109
127537
|
|
|
125110
127538
|
// ../../node_modules/.pnpm/@angular-devkit+core@19.0.6_chokidar@4.0.3/node_modules/@angular-devkit/core/src/json/index.js
|
|
125111
|
-
var
|
|
127539
|
+
var require_json2 = __commonJS({
|
|
125112
127540
|
"../../node_modules/.pnpm/@angular-devkit+core@19.0.6_chokidar@4.0.3/node_modules/@angular-devkit/core/src/json/index.js"(exports2) {
|
|
125113
127541
|
"use strict";
|
|
125114
127542
|
var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o4, m5, k8, k23) {
|
|
@@ -125143,7 +127571,7 @@ var require_json = __commonJS({
|
|
|
125143
127571
|
};
|
|
125144
127572
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
125145
127573
|
exports2.schema = void 0;
|
|
125146
|
-
var schema = __importStar2(
|
|
127574
|
+
var schema = __importStar2(require_schema3());
|
|
125147
127575
|
exports2.schema = schema;
|
|
125148
127576
|
__exportStar2(require_utils6(), exports2);
|
|
125149
127577
|
}
|
|
@@ -125619,7 +128047,7 @@ var require_path2 = __commonJS({
|
|
|
125619
128047
|
exports2.asWindowsPath = asWindowsPath;
|
|
125620
128048
|
exports2.asPosixPath = asPosixPath;
|
|
125621
128049
|
exports2.getSystemPath = getSystemPath;
|
|
125622
|
-
var exception_1 =
|
|
128050
|
+
var exception_1 = require_exception2();
|
|
125623
128051
|
var InvalidPathException = class extends exception_1.BaseException {
|
|
125624
128052
|
constructor(path15) {
|
|
125625
128053
|
super(`Path ${JSON.stringify(path15)} is invalid.`);
|
|
@@ -125844,7 +128272,7 @@ var require_memory = __commonJS({
|
|
|
125844
128272
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
125845
128273
|
exports2.SimpleMemoryHost = void 0;
|
|
125846
128274
|
var rxjs_1 = require_cjs();
|
|
125847
|
-
var exception_1 =
|
|
128275
|
+
var exception_1 = require_exception2();
|
|
125848
128276
|
var path_1 = require_path2();
|
|
125849
128277
|
var interface_1 = require_interface2();
|
|
125850
128278
|
var SimpleMemoryHost = class {
|
|
@@ -126159,7 +128587,7 @@ var require_sync7 = __commonJS({
|
|
|
126159
128587
|
"use strict";
|
|
126160
128588
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
126161
128589
|
exports2.SyncDelegateHost = exports2.SynchronousDelegateExpectedException = void 0;
|
|
126162
|
-
var exception_1 =
|
|
128590
|
+
var exception_1 = require_exception2();
|
|
126163
128591
|
var SynchronousDelegateExpectedException = class extends exception_1.BaseException {
|
|
126164
128592
|
constructor() {
|
|
126165
128593
|
super(`Expected a synchronous delegate but got an asynchronous one.`);
|
|
@@ -126490,7 +128918,7 @@ var require_empty2 = __commonJS({
|
|
|
126490
128918
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
126491
128919
|
exports2.Empty = void 0;
|
|
126492
128920
|
var rxjs_1 = require_cjs();
|
|
126493
|
-
var exception_1 =
|
|
128921
|
+
var exception_1 = require_exception2();
|
|
126494
128922
|
var Empty = class {
|
|
126495
128923
|
capabilities = {
|
|
126496
128924
|
synchronous: true
|
|
@@ -128073,7 +130501,7 @@ var require_record = __commonJS({
|
|
|
128073
130501
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
128074
130502
|
exports2.CordHost = void 0;
|
|
128075
130503
|
var rxjs_1 = require_cjs();
|
|
128076
|
-
var exception_1 =
|
|
130504
|
+
var exception_1 = require_exception2();
|
|
128077
130505
|
var memory_1 = require_memory();
|
|
128078
130506
|
var CordHost = class _CordHost extends memory_1.SimpleMemoryHost {
|
|
128079
130507
|
_back;
|
|
@@ -130258,7 +132686,7 @@ var require_utilities = __commonJS({
|
|
|
130258
132686
|
"use strict";
|
|
130259
132687
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
130260
132688
|
exports2.createVirtualAstObject = createVirtualAstObject;
|
|
130261
|
-
var json_1 =
|
|
132689
|
+
var json_1 = require_json2();
|
|
130262
132690
|
function createVirtualAstObject(root2, options8 = {}) {
|
|
130263
132691
|
const reporter = (path14, target, oldValue, newValue) => {
|
|
130264
132692
|
if (!options8.listener) {
|
|
@@ -130702,7 +133130,7 @@ var require_writer = __commonJS({
|
|
|
130702
133130
|
});
|
|
130703
133131
|
|
|
130704
133132
|
// ../../node_modules/.pnpm/@angular-devkit+core@19.0.6_chokidar@4.0.3/node_modules/@angular-devkit/core/src/workspace/core.js
|
|
130705
|
-
var
|
|
133133
|
+
var require_core4 = __commonJS({
|
|
130706
133134
|
"../../node_modules/.pnpm/@angular-devkit+core@19.0.6_chokidar@4.0.3/node_modules/@angular-devkit/core/src/workspace/core.js"(exports2) {
|
|
130707
133135
|
"use strict";
|
|
130708
133136
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -130812,7 +133240,7 @@ var require_workspace = __commonJS({
|
|
|
130812
133240
|
Object.defineProperty(exports2, "createWorkspaceHost", { enumerable: true, get: function() {
|
|
130813
133241
|
return host_1.createWorkspaceHost;
|
|
130814
133242
|
} });
|
|
130815
|
-
var core_1 =
|
|
133243
|
+
var core_1 = require_core4();
|
|
130816
133244
|
Object.defineProperty(exports2, "WorkspaceFormat", { enumerable: true, get: function() {
|
|
130817
133245
|
return core_1.WorkspaceFormat;
|
|
130818
133246
|
} });
|
|
@@ -130861,14 +133289,14 @@ var require_src2 = __commonJS({
|
|
|
130861
133289
|
};
|
|
130862
133290
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
130863
133291
|
exports2.workspaces = exports2.logging = exports2.json = void 0;
|
|
130864
|
-
var json = __importStar2(
|
|
133292
|
+
var json = __importStar2(require_json2());
|
|
130865
133293
|
exports2.json = json;
|
|
130866
133294
|
var logging = __importStar2(require_logger2());
|
|
130867
133295
|
exports2.logging = logging;
|
|
130868
133296
|
var workspaces = __importStar2(require_workspace());
|
|
130869
133297
|
exports2.workspaces = workspaces;
|
|
130870
|
-
__exportStar2(
|
|
130871
|
-
__exportStar2(
|
|
133298
|
+
__exportStar2(require_exception2(), exports2);
|
|
133299
|
+
__exportStar2(require_json2(), exports2);
|
|
130872
133300
|
__exportStar2(require_utils8(), exports2);
|
|
130873
133301
|
__exportStar2(require_virtual_fs(), exports2);
|
|
130874
133302
|
}
|
|
@@ -131107,7 +133535,7 @@ var require_create_job_handler = __commonJS({
|
|
|
131107
133535
|
});
|
|
131108
133536
|
|
|
131109
133537
|
// ../../node_modules/.pnpm/@angular-devkit+architect@0.1900.6_chokidar@4.0.3/node_modules/@angular-devkit/architect/src/jobs/exception.js
|
|
131110
|
-
var
|
|
133538
|
+
var require_exception3 = __commonJS({
|
|
131111
133539
|
"../../node_modules/.pnpm/@angular-devkit+architect@0.1900.6_chokidar@4.0.3/node_modules/@angular-devkit/architect/src/jobs/exception.js"(exports2) {
|
|
131112
133540
|
"use strict";
|
|
131113
133541
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -131135,7 +133563,7 @@ var require_dispatcher = __commonJS({
|
|
|
131135
133563
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
131136
133564
|
exports2.createDispatcher = createDispatcher;
|
|
131137
133565
|
var api_1 = require_api();
|
|
131138
|
-
var exception_1 =
|
|
133566
|
+
var exception_1 = require_exception3();
|
|
131139
133567
|
function createDispatcher(options8 = {}) {
|
|
131140
133568
|
let defaultDelegate = null;
|
|
131141
133569
|
const conditionalDelegateList = [];
|
|
@@ -131202,7 +133630,7 @@ var require_simple_registry = __commonJS({
|
|
|
131202
133630
|
var core_1 = require_src2();
|
|
131203
133631
|
var rxjs_1 = require_cjs();
|
|
131204
133632
|
var api_1 = require_api();
|
|
131205
|
-
var exception_1 =
|
|
133633
|
+
var exception_1 = require_exception3();
|
|
131206
133634
|
var SimpleJobRegistry = class {
|
|
131207
133635
|
_jobNames = /* @__PURE__ */ new Map();
|
|
131208
133636
|
get(name) {
|
|
@@ -131265,7 +133693,7 @@ var require_simple_scheduler = __commonJS({
|
|
|
131265
133693
|
var core_1 = require_src2();
|
|
131266
133694
|
var rxjs_1 = require_cjs();
|
|
131267
133695
|
var api_1 = require_api();
|
|
131268
|
-
var exception_1 =
|
|
133696
|
+
var exception_1 = require_exception3();
|
|
131269
133697
|
var JobArgumentSchemaValidationError = class extends core_1.schema.SchemaValidationException {
|
|
131270
133698
|
constructor(errors) {
|
|
131271
133699
|
super(errors, "Job Argument failed to validate. Errors: ");
|
|
@@ -131665,7 +134093,7 @@ var require_jobs = __commonJS({
|
|
|
131665
134093
|
exports2.strategy = strategy;
|
|
131666
134094
|
__exportStar2(require_api(), exports2);
|
|
131667
134095
|
__exportStar2(require_create_job_handler(), exports2);
|
|
131668
|
-
__exportStar2(
|
|
134096
|
+
__exportStar2(require_exception3(), exports2);
|
|
131669
134097
|
__exportStar2(require_dispatcher(), exports2);
|
|
131670
134098
|
__exportStar2(require_fallback_registry(), exports2);
|
|
131671
134099
|
__exportStar2(require_simple_registry(), exports2);
|
|
@@ -132600,9 +135028,9 @@ var require_src3 = __commonJS({
|
|
|
132600
135028
|
}
|
|
132601
135029
|
});
|
|
132602
135030
|
|
|
132603
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
135031
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/convert-nx-executor.js
|
|
132604
135032
|
var require_convert_nx_executor = __commonJS({
|
|
132605
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
135033
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/convert-nx-executor.js"(exports2) {
|
|
132606
135034
|
"use strict";
|
|
132607
135035
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
132608
135036
|
exports2.convertNxExecutor = convertNxExecutor;
|
|
@@ -132683,9 +135111,9 @@ var require_convert_nx_executor = __commonJS({
|
|
|
132683
135111
|
}
|
|
132684
135112
|
});
|
|
132685
135113
|
|
|
132686
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
135114
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/move-dir.js
|
|
132687
135115
|
var require_move_dir = __commonJS({
|
|
132688
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
135116
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/src/utils/move-dir.js"(exports2) {
|
|
132689
135117
|
"use strict";
|
|
132690
135118
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
132691
135119
|
exports2.moveFilesToNewDirectory = moveFilesToNewDirectory;
|
|
@@ -132710,12 +135138,12 @@ var require_move_dir = __commonJS({
|
|
|
132710
135138
|
}
|
|
132711
135139
|
});
|
|
132712
135140
|
|
|
132713
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
135141
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/public-api.js
|
|
132714
135142
|
var require_public_api = __commonJS({
|
|
132715
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
135143
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/public-api.js"(exports2) {
|
|
132716
135144
|
"use strict";
|
|
132717
135145
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
132718
|
-
exports2.moveFilesToNewDirectory = exports2.convertNxExecutor = exports2.convertNxGenerator = exports2.offsetFromRoot = exports2.ChangeType = exports2.applyChangesToString = exports2.extractLayoutDirectory = exports2.getWorkspaceLayout = exports2.names = exports2.installPackagesTask = exports2.NX_VERSION = exports2.
|
|
135146
|
+
exports2.moveFilesToNewDirectory = exports2.convertNxExecutor = exports2.convertNxGenerator = exports2.offsetFromRoot = exports2.ChangeType = exports2.applyChangesToString = exports2.extractLayoutDirectory = exports2.getWorkspaceLayout = exports2.names = exports2.installPackagesTask = exports2.NX_VERSION = exports2.getDependencyVersionFromPackageJson = exports2.ensurePackage = exports2.removeDependenciesFromPackageJson = exports2.addDependenciesToPackageJson = exports2.readTargetOptions = exports2.targetToTargetString = exports2.parseTargetString = exports2.visitNotIgnoredFiles = exports2.runTasksInSerial = exports2.updateTsConfigsToJs = exports2.toJS = exports2.OverwriteStrategy = exports2.generateFiles = exports2.formatFiles = void 0;
|
|
132719
135147
|
var format_files_1 = require_format_files();
|
|
132720
135148
|
Object.defineProperty(exports2, "formatFiles", { enumerable: true, get: function() {
|
|
132721
135149
|
return format_files_1.formatFiles;
|
|
@@ -132758,11 +135186,14 @@ var require_public_api = __commonJS({
|
|
|
132758
135186
|
Object.defineProperty(exports2, "addDependenciesToPackageJson", { enumerable: true, get: function() {
|
|
132759
135187
|
return package_json_1.addDependenciesToPackageJson;
|
|
132760
135188
|
} });
|
|
135189
|
+
Object.defineProperty(exports2, "removeDependenciesFromPackageJson", { enumerable: true, get: function() {
|
|
135190
|
+
return package_json_1.removeDependenciesFromPackageJson;
|
|
135191
|
+
} });
|
|
132761
135192
|
Object.defineProperty(exports2, "ensurePackage", { enumerable: true, get: function() {
|
|
132762
135193
|
return package_json_1.ensurePackage;
|
|
132763
135194
|
} });
|
|
132764
|
-
Object.defineProperty(exports2, "
|
|
132765
|
-
return package_json_1.
|
|
135195
|
+
Object.defineProperty(exports2, "getDependencyVersionFromPackageJson", { enumerable: true, get: function() {
|
|
135196
|
+
return package_json_1.getDependencyVersionFromPackageJson;
|
|
132766
135197
|
} });
|
|
132767
135198
|
Object.defineProperty(exports2, "NX_VERSION", { enumerable: true, get: function() {
|
|
132768
135199
|
return package_json_1.NX_VERSION;
|
|
@@ -132808,9 +135239,9 @@ var require_public_api = __commonJS({
|
|
|
132808
135239
|
}
|
|
132809
135240
|
});
|
|
132810
135241
|
|
|
132811
|
-
// ../../node_modules/.pnpm/@nx+devkit@
|
|
135242
|
+
// ../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/index.js
|
|
132812
135243
|
var require_devkit = __commonJS({
|
|
132813
|
-
"../../node_modules/.pnpm/@nx+devkit@
|
|
135244
|
+
"../../node_modules/.pnpm/@nx+devkit@22.0.2_nx@22.0.2_@swc-node+register@1.10.9_@swc+core@1.7.26_@swc+helpers@0.5_188a134d6040c08c47ecd871e86bfd2b/node_modules/@nx/devkit/index.js"(exports2) {
|
|
132814
135245
|
"use strict";
|
|
132815
135246
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
132816
135247
|
var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
|
|
@@ -133345,15 +135776,6 @@ ejs/lib/ejs.js:
|
|
|
133345
135776
|
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
133346
135777
|
*)
|
|
133347
135778
|
|
|
133348
|
-
tmp/lib/tmp.js:
|
|
133349
|
-
(*!
|
|
133350
|
-
* Tmp
|
|
133351
|
-
*
|
|
133352
|
-
* Copyright (c) 2011-2017 KARASZI Istvan <github@spam.raszi.hu>
|
|
133353
|
-
*
|
|
133354
|
-
* MIT Licensed
|
|
133355
|
-
*)
|
|
133356
|
-
|
|
133357
135779
|
@angular-devkit/core/src/json/utils.js:
|
|
133358
135780
|
@angular-devkit/core/src/json/schema/utility.js:
|
|
133359
135781
|
@angular-devkit/core/src/json/schema/transforms.js:
|