sim 2.2.7-preview.199.1 → 2.2.7-preview.200.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/index.js +15 -8
- package/dist/runtime.js +15 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3331,7 +3331,7 @@ var require_commander = __commonJS(function(exports, module) {
|
|
|
3331
3331
|
exports.InvalidOptionArgumentError = InvalidArgumentError;
|
|
3332
3332
|
});
|
|
3333
3333
|
|
|
3334
|
-
// node_modules/js-yaml/dist/js-yaml.mjs
|
|
3334
|
+
// ../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
3335
3335
|
function getDefaultExportFromCjs(x) {
|
|
3336
3336
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
3337
3337
|
}
|
|
@@ -4235,7 +4235,7 @@ function requireOmap() {
|
|
|
4235
4235
|
function resolveYamlOmap(data) {
|
|
4236
4236
|
if (data === null)
|
|
4237
4237
|
return true;
|
|
4238
|
-
const objectKeys =
|
|
4238
|
+
const objectKeys = {};
|
|
4239
4239
|
const object = data;
|
|
4240
4240
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
4241
4241
|
const pair = object[index];
|
|
@@ -4253,10 +4253,9 @@ function requireOmap() {
|
|
|
4253
4253
|
}
|
|
4254
4254
|
if (!pairHasKey)
|
|
4255
4255
|
return false;
|
|
4256
|
-
if (
|
|
4257
|
-
objectKeys.push(pairKey);
|
|
4258
|
-
else
|
|
4256
|
+
if (_hasOwnProperty.call(objectKeys, pairKey))
|
|
4259
4257
|
return false;
|
|
4258
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
4260
4259
|
}
|
|
4261
4260
|
return true;
|
|
4262
4261
|
}
|
|
@@ -4666,16 +4665,21 @@ function requireLoader() {
|
|
|
4666
4665
|
state.result += _result;
|
|
4667
4666
|
}
|
|
4668
4667
|
}
|
|
4668
|
+
function chargeMergeWork(state) {
|
|
4669
|
+
state.totalMergeKeys++;
|
|
4670
|
+
if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
4671
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
4672
|
+
}
|
|
4673
|
+
}
|
|
4669
4674
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
4670
4675
|
if (!common2.isObject(source)) {
|
|
4671
4676
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
4672
4677
|
}
|
|
4678
|
+
chargeMergeWork(state);
|
|
4673
4679
|
const sourceKeys = Object.keys(source);
|
|
4674
4680
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
4675
4681
|
const key = sourceKeys[index];
|
|
4676
|
-
|
|
4677
|
-
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
4678
|
-
}
|
|
4682
|
+
chargeMergeWork(state);
|
|
4679
4683
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
4680
4684
|
setProperty(destination, key, source[key]);
|
|
4681
4685
|
overridableKeys[key] = true;
|
|
@@ -4703,6 +4707,9 @@ function requireLoader() {
|
|
|
4703
4707
|
}
|
|
4704
4708
|
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
4705
4709
|
if (Array.isArray(valueNode)) {
|
|
4710
|
+
if (valueNode.length > 100) {
|
|
4711
|
+
throwError(state, "abnormal merge sequence size");
|
|
4712
|
+
}
|
|
4706
4713
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
4707
4714
|
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
4708
4715
|
}
|
package/dist/runtime.js
CHANGED
|
@@ -5327,7 +5327,7 @@ function resolvePath(template, params = {}) {
|
|
|
5327
5327
|
});
|
|
5328
5328
|
}
|
|
5329
5329
|
|
|
5330
|
-
// node_modules/js-yaml/dist/js-yaml.mjs
|
|
5330
|
+
// ../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
5331
5331
|
function getDefaultExportFromCjs(x) {
|
|
5332
5332
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
5333
5333
|
}
|
|
@@ -6231,7 +6231,7 @@ function requireOmap() {
|
|
|
6231
6231
|
function resolveYamlOmap(data) {
|
|
6232
6232
|
if (data === null)
|
|
6233
6233
|
return true;
|
|
6234
|
-
const objectKeys =
|
|
6234
|
+
const objectKeys = {};
|
|
6235
6235
|
const object = data;
|
|
6236
6236
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
6237
6237
|
const pair = object[index];
|
|
@@ -6249,10 +6249,9 @@ function requireOmap() {
|
|
|
6249
6249
|
}
|
|
6250
6250
|
if (!pairHasKey)
|
|
6251
6251
|
return false;
|
|
6252
|
-
if (
|
|
6253
|
-
objectKeys.push(pairKey);
|
|
6254
|
-
else
|
|
6252
|
+
if (_hasOwnProperty.call(objectKeys, pairKey))
|
|
6255
6253
|
return false;
|
|
6254
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
6256
6255
|
}
|
|
6257
6256
|
return true;
|
|
6258
6257
|
}
|
|
@@ -6662,16 +6661,21 @@ function requireLoader() {
|
|
|
6662
6661
|
state.result += _result;
|
|
6663
6662
|
}
|
|
6664
6663
|
}
|
|
6664
|
+
function chargeMergeWork(state) {
|
|
6665
|
+
state.totalMergeKeys++;
|
|
6666
|
+
if (state.maxTotalMergeKeys !== -1 && state.totalMergeKeys > state.maxTotalMergeKeys) {
|
|
6667
|
+
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
6668
|
+
}
|
|
6669
|
+
}
|
|
6665
6670
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
6666
6671
|
if (!common2.isObject(source)) {
|
|
6667
6672
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
6668
6673
|
}
|
|
6674
|
+
chargeMergeWork(state);
|
|
6669
6675
|
const sourceKeys = Object.keys(source);
|
|
6670
6676
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
6671
6677
|
const key = sourceKeys[index];
|
|
6672
|
-
|
|
6673
|
-
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
6674
|
-
}
|
|
6678
|
+
chargeMergeWork(state);
|
|
6675
6679
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
6676
6680
|
setProperty(destination, key, source[key]);
|
|
6677
6681
|
overridableKeys[key] = true;
|
|
@@ -6699,6 +6703,9 @@ function requireLoader() {
|
|
|
6699
6703
|
}
|
|
6700
6704
|
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
6701
6705
|
if (Array.isArray(valueNode)) {
|
|
6706
|
+
if (valueNode.length > 100) {
|
|
6707
|
+
throwError(state, "abnormal merge sequence size");
|
|
6708
|
+
}
|
|
6702
6709
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
6703
6710
|
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
6704
6711
|
}
|