@settlemint/sdk-cli 2.2.2-pr8fc22dc7 → 2.2.2-pr915f6bfb

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.js CHANGED
@@ -245345,7 +245345,7 @@ function pruneCurrentEnv(currentEnv, env2) {
245345
245345
  var package_default = {
245346
245346
  name: "@settlemint/sdk-cli",
245347
245347
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
245348
- version: "2.2.2-pr8fc22dc7",
245348
+ version: "2.2.2-pr915f6bfb",
245349
245349
  type: "module",
245350
245350
  private: false,
245351
245351
  license: "FSL-1.1-MIT",
@@ -245394,8 +245394,8 @@ var package_default = {
245394
245394
  "@inquirer/input": "4.1.9",
245395
245395
  "@inquirer/password": "4.0.12",
245396
245396
  "@inquirer/select": "4.2.0",
245397
- "@settlemint/sdk-js": "2.2.2-pr8fc22dc7",
245398
- "@settlemint/sdk-utils": "2.2.2-pr8fc22dc7",
245397
+ "@settlemint/sdk-js": "2.2.2-pr915f6bfb",
245398
+ "@settlemint/sdk-utils": "2.2.2-pr915f6bfb",
245399
245399
  "@types/node": "22.15.14",
245400
245400
  "@types/semver": "7.7.0",
245401
245401
  "@types/which": "3.0.4",
@@ -250368,17 +250368,6 @@ function missingApplication() {
250368
250368
  return cancel2("No application configured, please run `settlemint connect` to connect to your application");
250369
250369
  }
250370
250370
 
250371
- // src/utils/instance-url-utils.ts
250372
- function sanitizeInstanceUrl(url) {
250373
- const instanceUrl = new URL(url);
250374
- return instanceUrl.origin;
250375
- }
250376
- function sanitizeAndValidateInstanceUrl(url) {
250377
- const sanitizedUrl = sanitizeInstanceUrl(url);
250378
- validate2(UrlSchema2, sanitizedUrl);
250379
- return sanitizedUrl;
250380
- }
250381
-
250382
250371
  // src/utils/get-app-or-personal-token.ts
250383
250372
  var getApplicationOrPersonalAccessToken = async ({
250384
250373
  env: env2,
@@ -250386,8 +250375,7 @@ var getApplicationOrPersonalAccessToken = async ({
250386
250375
  prefer
250387
250376
  }) => {
250388
250377
  const applicationAccessToken = env2.SETTLEMINT_ACCESS_TOKEN;
250389
- const instanceUrl = sanitizeInstanceUrl(instance);
250390
- const personalAccessToken = (await getInstanceCredentials(instanceUrl))?.personalAccessToken;
250378
+ const personalAccessToken = (await getInstanceCredentials(instance))?.personalAccessToken;
250391
250379
  const preferredToken = prefer === "application" ? applicationAccessToken : personalAccessToken;
250392
250380
  const fallbackToken = prefer === "application" ? personalAccessToken : applicationAccessToken;
250393
250381
  const allowFallback = prefer === "application";
@@ -252904,6 +252892,17 @@ async function theGraphPrompt({
252904
252892
  });
252905
252893
  }
252906
252894
 
252895
+ // src/utils/instance-url-utils.ts
252896
+ function sanitizeInstanceUrl(url) {
252897
+ const instanceUrl = new URL(url);
252898
+ return instanceUrl.origin;
252899
+ }
252900
+ function sanitizeAndValidateInstanceUrl(url) {
252901
+ const sanitizedUrl = sanitizeInstanceUrl(url);
252902
+ validate2(UrlSchema2, sanitizedUrl);
252903
+ return sanitizedUrl;
252904
+ }
252905
+
252907
252906
  // src/prompts/instance.prompt.ts
252908
252907
  async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_ci_default) {
252909
252908
  const knownInstances = await getInstances();
@@ -253411,8 +253410,8 @@ function connectCommand() {
253411
253410
  SETTLEMINT_HASURA: hasura?.uniqueName,
253412
253411
  ...getHasuraEndpoints(hasura),
253413
253412
  SETTLEMINT_THEGRAPH: thegraph?.uniqueName,
253414
- ...graphEndpoints,
253415
253413
  SETTLEMINT_THEGRAPH_DEFAULT_SUBGRAPH: defaultSubgraph,
253414
+ ...graphEndpoints,
253416
253415
  SETTLEMINT_PORTAL: portal?.uniqueName,
253417
253416
  ...getPortalEndpoints(portal),
253418
253417
  SETTLEMINT_HD_PRIVATE_KEY: hdPrivateKey?.uniqueName,
@@ -260710,4 +260709,4 @@ async function sdkCliCommand(argv = process.argv) {
260710
260709
  // src/cli.ts
260711
260710
  sdkCliCommand();
260712
260711
 
260713
- //# debugId=014075F891155A7464756E2164756E21
260712
+ //# debugId=E96D41084B14468764756E2164756E21