@settlemint/sdk-cli 2.2.2-prea2ebc99 → 2.2.2-prebe4b7bd
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 +17 -16
- package/dist/cli.js.map +5 -5
- package/package.json +3 -3
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-
|
245348
|
+
version: "2.2.2-prebe4b7bd",
|
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-
|
245398
|
-
"@settlemint/sdk-utils": "2.2.2-
|
245397
|
+
"@settlemint/sdk-js": "2.2.2-prebe4b7bd",
|
245398
|
+
"@settlemint/sdk-utils": "2.2.2-prebe4b7bd",
|
245399
245399
|
"@types/node": "22.15.14",
|
245400
245400
|
"@types/semver": "7.7.0",
|
245401
245401
|
"@types/which": "3.0.4",
|
@@ -250368,6 +250368,17 @@ 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
|
+
|
250371
250382
|
// src/utils/get-app-or-personal-token.ts
|
250372
250383
|
var getApplicationOrPersonalAccessToken = async ({
|
250373
250384
|
env: env2,
|
@@ -250375,7 +250386,8 @@ var getApplicationOrPersonalAccessToken = async ({
|
|
250375
250386
|
prefer
|
250376
250387
|
}) => {
|
250377
250388
|
const applicationAccessToken = env2.SETTLEMINT_ACCESS_TOKEN;
|
250378
|
-
const
|
250389
|
+
const instanceUrl = sanitizeInstanceUrl(instance);
|
250390
|
+
const personalAccessToken = (await getInstanceCredentials(instanceUrl))?.personalAccessToken;
|
250379
250391
|
const preferredToken = prefer === "application" ? applicationAccessToken : personalAccessToken;
|
250380
250392
|
const fallbackToken = prefer === "application" ? personalAccessToken : applicationAccessToken;
|
250381
250393
|
const allowFallback = prefer === "application";
|
@@ -252892,17 +252904,6 @@ async function theGraphPrompt({
|
|
252892
252904
|
});
|
252893
252905
|
}
|
252894
252906
|
|
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
|
-
|
252906
252907
|
// src/prompts/instance.prompt.ts
|
252907
252908
|
async function instancePrompt(env2, accept, freeTextInput = false, isCi = is_in_ci_default) {
|
252908
252909
|
const knownInstances = await getInstances();
|
@@ -260709,4 +260710,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
260709
260710
|
// src/cli.ts
|
260710
260711
|
sdkCliCommand();
|
260711
260712
|
|
260712
|
-
//# debugId=
|
260713
|
+
//# debugId=CB0647B536CDF8C964756E2164756E21
|