sim 2.2.7-preview.198.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 +30 -21
- package/dist/runtime.js +30 -21
- 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
|
}
|
|
@@ -7591,7 +7598,6 @@ async function installUpdate(options = {}) {
|
|
|
7591
7598
|
}
|
|
7592
7599
|
}
|
|
7593
7600
|
// src/config/profile.ts
|
|
7594
|
-
var import_proper_lockfile2 = __toESM(require_proper_lockfile(), 1);
|
|
7595
7601
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
7596
7602
|
import { createHash } from "node:crypto";
|
|
7597
7603
|
import {
|
|
@@ -7605,6 +7611,21 @@ import {
|
|
|
7605
7611
|
} from "node:fs";
|
|
7606
7612
|
import { dirname as dirname3 } from "node:path";
|
|
7607
7613
|
|
|
7614
|
+
// ../utils/src/string.ts
|
|
7615
|
+
function truncate(str, sliceLength, suffix = "...") {
|
|
7616
|
+
return str.length > sliceLength ? str.slice(0, sliceLength) + suffix : str;
|
|
7617
|
+
}
|
|
7618
|
+
var MARKDOWN_ESCAPABLE = new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");
|
|
7619
|
+
function stripTrailingSlashes(value) {
|
|
7620
|
+
let end = value.length;
|
|
7621
|
+
while (end > 0 && value.charCodeAt(end - 1) === 47)
|
|
7622
|
+
end--;
|
|
7623
|
+
return value.slice(0, end);
|
|
7624
|
+
}
|
|
7625
|
+
|
|
7626
|
+
// src/config/profile.ts
|
|
7627
|
+
var import_proper_lockfile2 = __toESM(require_proper_lockfile(), 1);
|
|
7628
|
+
|
|
7608
7629
|
// src/config/ini.ts
|
|
7609
7630
|
class ProfileConfigError extends Error {
|
|
7610
7631
|
constructor(message) {
|
|
@@ -7994,12 +8015,6 @@ function deleteProfile(profile) {
|
|
|
7994
8015
|
writeIni(configPath(), configDoc, false);
|
|
7995
8016
|
return { config, credentials };
|
|
7996
8017
|
}
|
|
7997
|
-
function stripTrailingSlashes(value) {
|
|
7998
|
-
let end = value.length;
|
|
7999
|
-
while (end > 0 && value.charCodeAt(end - 1) === 47)
|
|
8000
|
-
end--;
|
|
8001
|
-
return value.slice(0, end);
|
|
8002
|
-
}
|
|
8003
8018
|
function normalizeEndpoint(endpoint, source) {
|
|
8004
8019
|
const trimmed = stripTrailingSlashes(endpoint.trim());
|
|
8005
8020
|
if (FORBIDDEN_IN_VALUE.test(trimmed)) {
|
|
@@ -8107,12 +8122,6 @@ function resolveProfile(overrides = {}) {
|
|
|
8107
8122
|
}
|
|
8108
8123
|
};
|
|
8109
8124
|
}
|
|
8110
|
-
// ../utils/src/string.ts
|
|
8111
|
-
function truncate(str, sliceLength, suffix = "...") {
|
|
8112
|
-
return str.length > sliceLength ? str.slice(0, sliceLength) + suffix : str;
|
|
8113
|
-
}
|
|
8114
|
-
var MARKDOWN_ESCAPABLE = new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");
|
|
8115
|
-
|
|
8116
8125
|
// src/output/io.ts
|
|
8117
8126
|
import { format } from "node:util";
|
|
8118
8127
|
function printLine(...args) {
|
package/dist/runtime.js
CHANGED
|
@@ -3394,7 +3394,6 @@ function telemetryStatePath() {
|
|
|
3394
3394
|
return join(configDir(), "telemetry.json");
|
|
3395
3395
|
}
|
|
3396
3396
|
// src/config/profile.ts
|
|
3397
|
-
var import_proper_lockfile = __toESM(require_proper_lockfile(), 1);
|
|
3398
3397
|
import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
|
|
3399
3398
|
import { createHash } from "node:crypto";
|
|
3400
3399
|
import {
|
|
@@ -3408,6 +3407,21 @@ import {
|
|
|
3408
3407
|
} from "node:fs";
|
|
3409
3408
|
import { dirname } from "node:path";
|
|
3410
3409
|
|
|
3410
|
+
// ../utils/src/string.ts
|
|
3411
|
+
function truncate(str, sliceLength, suffix = "...") {
|
|
3412
|
+
return str.length > sliceLength ? str.slice(0, sliceLength) + suffix : str;
|
|
3413
|
+
}
|
|
3414
|
+
var MARKDOWN_ESCAPABLE = new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");
|
|
3415
|
+
function stripTrailingSlashes(value) {
|
|
3416
|
+
let end = value.length;
|
|
3417
|
+
while (end > 0 && value.charCodeAt(end - 1) === 47)
|
|
3418
|
+
end--;
|
|
3419
|
+
return value.slice(0, end);
|
|
3420
|
+
}
|
|
3421
|
+
|
|
3422
|
+
// src/config/profile.ts
|
|
3423
|
+
var import_proper_lockfile = __toESM(require_proper_lockfile(), 1);
|
|
3424
|
+
|
|
3411
3425
|
// src/embed-context.ts
|
|
3412
3426
|
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3413
3427
|
function setSoftExitCode(code) {
|
|
@@ -3838,12 +3852,6 @@ function deleteProfile(profile) {
|
|
|
3838
3852
|
writeIni(configPath(), configDoc, false);
|
|
3839
3853
|
return { config, credentials };
|
|
3840
3854
|
}
|
|
3841
|
-
function stripTrailingSlashes(value) {
|
|
3842
|
-
let end = value.length;
|
|
3843
|
-
while (end > 0 && value.charCodeAt(end - 1) === 47)
|
|
3844
|
-
end--;
|
|
3845
|
-
return value.slice(0, end);
|
|
3846
|
-
}
|
|
3847
3855
|
function normalizeEndpoint(endpoint, source) {
|
|
3848
3856
|
const trimmed = stripTrailingSlashes(endpoint.trim());
|
|
3849
3857
|
if (FORBIDDEN_IN_VALUE.test(trimmed)) {
|
|
@@ -4006,12 +4014,6 @@ class EmbeddedOutput {
|
|
|
4006
4014
|
}
|
|
4007
4015
|
}
|
|
4008
4016
|
|
|
4009
|
-
// ../utils/src/string.ts
|
|
4010
|
-
function truncate(str, sliceLength, suffix = "...") {
|
|
4011
|
-
return str.length > sliceLength ? str.slice(0, sliceLength) + suffix : str;
|
|
4012
|
-
}
|
|
4013
|
-
var MARKDOWN_ESCAPABLE = new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");
|
|
4014
|
-
|
|
4015
4017
|
// src/output/io.ts
|
|
4016
4018
|
import { format } from "node:util";
|
|
4017
4019
|
function printLine(...args) {
|
|
@@ -5325,7 +5327,7 @@ function resolvePath(template, params = {}) {
|
|
|
5325
5327
|
});
|
|
5326
5328
|
}
|
|
5327
5329
|
|
|
5328
|
-
// node_modules/js-yaml/dist/js-yaml.mjs
|
|
5330
|
+
// ../../node_modules/js-yaml/dist/js-yaml.mjs
|
|
5329
5331
|
function getDefaultExportFromCjs(x) {
|
|
5330
5332
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
5331
5333
|
}
|
|
@@ -6229,7 +6231,7 @@ function requireOmap() {
|
|
|
6229
6231
|
function resolveYamlOmap(data) {
|
|
6230
6232
|
if (data === null)
|
|
6231
6233
|
return true;
|
|
6232
|
-
const objectKeys =
|
|
6234
|
+
const objectKeys = {};
|
|
6233
6235
|
const object = data;
|
|
6234
6236
|
for (let index = 0, length = object.length;index < length; index += 1) {
|
|
6235
6237
|
const pair = object[index];
|
|
@@ -6247,10 +6249,9 @@ function requireOmap() {
|
|
|
6247
6249
|
}
|
|
6248
6250
|
if (!pairHasKey)
|
|
6249
6251
|
return false;
|
|
6250
|
-
if (
|
|
6251
|
-
objectKeys.push(pairKey);
|
|
6252
|
-
else
|
|
6252
|
+
if (_hasOwnProperty.call(objectKeys, pairKey))
|
|
6253
6253
|
return false;
|
|
6254
|
+
Object.defineProperty(objectKeys, pairKey, { value: true });
|
|
6254
6255
|
}
|
|
6255
6256
|
return true;
|
|
6256
6257
|
}
|
|
@@ -6660,16 +6661,21 @@ function requireLoader() {
|
|
|
6660
6661
|
state.result += _result;
|
|
6661
6662
|
}
|
|
6662
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
|
+
}
|
|
6663
6670
|
function mergeMappings(state, destination, source, overridableKeys) {
|
|
6664
6671
|
if (!common2.isObject(source)) {
|
|
6665
6672
|
throwError(state, "cannot merge mappings; the provided source object is unacceptable");
|
|
6666
6673
|
}
|
|
6674
|
+
chargeMergeWork(state);
|
|
6667
6675
|
const sourceKeys = Object.keys(source);
|
|
6668
6676
|
for (let index = 0, quantity = sourceKeys.length;index < quantity; index += 1) {
|
|
6669
6677
|
const key = sourceKeys[index];
|
|
6670
|
-
|
|
6671
|
-
throwError(state, "merge keys exceeded maxTotalMergeKeys (" + state.maxTotalMergeKeys + ")");
|
|
6672
|
-
}
|
|
6678
|
+
chargeMergeWork(state);
|
|
6673
6679
|
if (!_hasOwnProperty.call(destination, key)) {
|
|
6674
6680
|
setProperty(destination, key, source[key]);
|
|
6675
6681
|
overridableKeys[key] = true;
|
|
@@ -6697,6 +6703,9 @@ function requireLoader() {
|
|
|
6697
6703
|
}
|
|
6698
6704
|
if (keyTag === "tag:yaml.org,2002:merge") {
|
|
6699
6705
|
if (Array.isArray(valueNode)) {
|
|
6706
|
+
if (valueNode.length > 100) {
|
|
6707
|
+
throwError(state, "abnormal merge sequence size");
|
|
6708
|
+
}
|
|
6700
6709
|
for (let index = 0, quantity = valueNode.length;index < quantity; index += 1) {
|
|
6701
6710
|
mergeMappings(state, _result, valueNode[index], overridableKeys);
|
|
6702
6711
|
}
|