sim 2.2.7-preview.198.1 → 2.2.7-preview.199.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 CHANGED
@@ -7591,7 +7591,6 @@ async function installUpdate(options = {}) {
7591
7591
  }
7592
7592
  }
7593
7593
  // src/config/profile.ts
7594
- var import_proper_lockfile2 = __toESM(require_proper_lockfile(), 1);
7595
7594
  import { AsyncLocalStorage as AsyncLocalStorage2 } from "node:async_hooks";
7596
7595
  import { createHash } from "node:crypto";
7597
7596
  import {
@@ -7605,6 +7604,21 @@ import {
7605
7604
  } from "node:fs";
7606
7605
  import { dirname as dirname3 } from "node:path";
7607
7606
 
7607
+ // ../utils/src/string.ts
7608
+ function truncate(str, sliceLength, suffix = "...") {
7609
+ return str.length > sliceLength ? str.slice(0, sliceLength) + suffix : str;
7610
+ }
7611
+ var MARKDOWN_ESCAPABLE = new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");
7612
+ function stripTrailingSlashes(value) {
7613
+ let end = value.length;
7614
+ while (end > 0 && value.charCodeAt(end - 1) === 47)
7615
+ end--;
7616
+ return value.slice(0, end);
7617
+ }
7618
+
7619
+ // src/config/profile.ts
7620
+ var import_proper_lockfile2 = __toESM(require_proper_lockfile(), 1);
7621
+
7608
7622
  // src/config/ini.ts
7609
7623
  class ProfileConfigError extends Error {
7610
7624
  constructor(message) {
@@ -7994,12 +8008,6 @@ function deleteProfile(profile) {
7994
8008
  writeIni(configPath(), configDoc, false);
7995
8009
  return { config, credentials };
7996
8010
  }
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
8011
  function normalizeEndpoint(endpoint, source) {
8004
8012
  const trimmed = stripTrailingSlashes(endpoint.trim());
8005
8013
  if (FORBIDDEN_IN_VALUE.test(trimmed)) {
@@ -8107,12 +8115,6 @@ function resolveProfile(overrides = {}) {
8107
8115
  }
8108
8116
  };
8109
8117
  }
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
8118
  // src/output/io.ts
8117
8119
  import { format } from "node:util";
8118
8120
  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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sim",
3
- "version": "2.2.7-preview.198.1",
3
+ "version": "2.2.7-preview.199.1",
4
4
  "description": "Sim CLI - talk to the Sim API from your terminal",
5
5
  "type": "module",
6
6
  "imports": {