@settlemint/sdk-cli 2.3.5-main67cf5bc3 → 2.3.5-main74714e37

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
@@ -263129,7 +263129,7 @@ function pruneCurrentEnv(currentEnv, env2) {
263129
263129
  var package_default = {
263130
263130
  name: "@settlemint/sdk-cli",
263131
263131
  description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
263132
- version: "2.3.5-main67cf5bc3",
263132
+ version: "2.3.5-main74714e37",
263133
263133
  type: "module",
263134
263134
  private: false,
263135
263135
  license: "FSL-1.1-MIT",
@@ -263178,8 +263178,8 @@ var package_default = {
263178
263178
  "@inquirer/input": "4.1.12",
263179
263179
  "@inquirer/password": "4.0.15",
263180
263180
  "@inquirer/select": "4.2.3",
263181
- "@settlemint/sdk-js": "2.3.5-main67cf5bc3",
263182
- "@settlemint/sdk-utils": "2.3.5-main67cf5bc3",
263181
+ "@settlemint/sdk-js": "2.3.5-main74714e37",
263182
+ "@settlemint/sdk-utils": "2.3.5-main74714e37",
263183
263183
  "@types/node": "24.0.0",
263184
263184
  "@types/semver": "7.7.0",
263185
263185
  "@types/which": "3.0.4",
@@ -318905,9 +318905,9 @@ function getUpdatedSubgraphEndpoints({
318905
318905
  if (!middlewareAdminUrl) {
318906
318906
  throw new Error("Middleware admin URL is required to add a new subgraph");
318907
318907
  }
318908
- const baseUrl = extractBaseUrlBeforeSegment2(middlewareAdminUrl, "/admin");
318908
+ const baseUrl = middlewareAdminUrl.replace(/\/admin\/?$/, "");
318909
318909
  if (baseUrl) {
318910
- const endpoint = `${getTheGraphSubgraphUrl(baseUrl, newSubgraphName)}`;
318910
+ const endpoint = getTheGraphSubgraphUrl(baseUrl, newSubgraphName);
318911
318911
  if (!existingEndpointsWithoutRemoved.includes(endpoint)) {
318912
318912
  existingEndpointsWithoutRemoved.push(endpoint);
318913
318913
  }
@@ -318928,7 +318928,12 @@ function getTheGraphSubgraphNames(subgraphUrls) {
318928
318928
  return [];
318929
318929
  }
318930
318930
  function getTheGraphSubgraphUrl(theGraphUrl, subgraphName) {
318931
- return `${theGraphUrl}/subgraphs/name/${subgraphName}`;
318931
+ const url5 = new URL(theGraphUrl);
318932
+ if (!url5.pathname.endsWith("/")) {
318933
+ url5.pathname += "/";
318934
+ }
318935
+ url5.pathname += `subgraphs/name/${subgraphName}`;
318936
+ return url5.toString();
318932
318937
  }
318933
318938
 
318934
318939
  // ../utils/dist/logging.js
@@ -327388,4 +327393,4 @@ async function sdkCliCommand(argv = process.argv) {
327388
327393
  // src/cli.ts
327389
327394
  sdkCliCommand();
327390
327395
 
327391
- //# debugId=E1FB4CD54F42EAB164756E2164756E21
327396
+ //# debugId=79AB43C79C3F792B64756E2164756E21