sentinello 3.4.0 → 3.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.cjs +14 -6
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -29311,7 +29311,7 @@ function nameFromNodePath(nodePath) {
|
|
|
29311
29311
|
return slash < 0 ? tail : tail.slice(0, slash);
|
|
29312
29312
|
}
|
|
29313
29313
|
|
|
29314
|
-
// ../../node_modules/.pnpm/js-yaml@4.3.
|
|
29314
|
+
// ../../node_modules/.pnpm/js-yaml@4.3.2/node_modules/js-yaml/dist/js-yaml.mjs
|
|
29315
29315
|
function getDefaultExportFromCjs(x) {
|
|
29316
29316
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
29317
29317
|
}
|
|
@@ -30589,16 +30589,21 @@ function requireLoader() {
|
|
|
30589
30589
|
state.result += _result;
|
|
30590
30590
|
}
|
|
30591
30591
|
}
|
|
30592
|
+
function chargeMergeWork(state) {
|
|
30593
|
+
state.totalMergeKeys++;
|
|
30594
|
+
if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
30595
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
30596
|
+
}
|
|
30597
|
+
}
|
|
30592
30598
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
30593
30599
|
if (!common2.isObject(source)) {
|
|
30594
30600
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
30595
30601
|
}
|
|
30602
|
+
chargeMergeWork(state);
|
|
30596
30603
|
const sourceKeys = Object.keys(source);
|
|
30597
30604
|
for (let index = 0, quantity = sourceKeys.length; index < quantity; index += 1) {
|
|
30598
30605
|
const key = sourceKeys[index];
|
|
30599
|
-
|
|
30600
|
-
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
30601
|
-
}
|
|
30606
|
+
chargeMergeWork(state);
|
|
30602
30607
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
30603
30608
|
setProperty(destination, key, source[key]);
|
|
30604
30609
|
overridableKeys[key] = true;
|
|
@@ -30626,6 +30631,9 @@ function requireLoader() {
|
|
|
30626
30631
|
}
|
|
30627
30632
|
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
30628
30633
|
if (Array.isArray(valueNode)) {
|
|
30634
|
+
if (valueNode.length > 100) {
|
|
30635
|
+
throwError(state, "abnormal merge sequence size");
|
|
30636
|
+
}
|
|
30629
30637
|
for (let index = 0, quantity = valueNode.length; index < quantity; index += 1) {
|
|
30630
30638
|
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
30631
30639
|
}
|
|
@@ -35618,8 +35626,8 @@ function createUi(options) {
|
|
|
35618
35626
|
|
|
35619
35627
|
// src/help.ts
|
|
35620
35628
|
var CLI_VERSION = (function resolveVersion() {
|
|
35621
|
-
if ("3.
|
|
35622
|
-
return "3.
|
|
35629
|
+
if ("3.5.1".length > 0) {
|
|
35630
|
+
return "3.5.1";
|
|
35623
35631
|
}
|
|
35624
35632
|
const fromEnv = process.env.SENTINELLO_VERSION;
|
|
35625
35633
|
if (fromEnv && fromEnv.trim().length > 0) return fromEnv.trim();
|