@settlemint/sdk-cli 2.6.2-main8c90069e → 2.6.2-main8dbf263c
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 +25 -21
- package/dist/cli.js.map +6 -6
- package/package.json +6 -6
package/dist/cli.js
CHANGED
|
@@ -260876,10 +260876,10 @@ config(en_default());
|
|
|
260876
260876
|
var import_dotenvx = __toESM(require_main2(), 1);
|
|
260877
260877
|
import { readFile, stat, writeFile } from "node:fs/promises";
|
|
260878
260878
|
|
|
260879
|
-
// ../../node_modules/.bun/find-up@
|
|
260879
|
+
// ../../node_modules/.bun/find-up@8.0.0/node_modules/find-up/index.js
|
|
260880
260880
|
import path2 from "node:path";
|
|
260881
260881
|
|
|
260882
|
-
// ../../node_modules/.bun/locate-path@
|
|
260882
|
+
// ../../node_modules/.bun/locate-path@8.0.0/node_modules/locate-path/index.js
|
|
260883
260883
|
import process5 from "node:process";
|
|
260884
260884
|
import path from "node:path";
|
|
260885
260885
|
import fs, { promises as fsPromises } from "node:fs";
|
|
@@ -261031,18 +261031,18 @@ async function pLocate(iterable, tester, {
|
|
|
261031
261031
|
}
|
|
261032
261032
|
}
|
|
261033
261033
|
|
|
261034
|
-
// ../../node_modules/.bun/locate-path@
|
|
261034
|
+
// ../../node_modules/.bun/locate-path@8.0.0/node_modules/locate-path/index.js
|
|
261035
261035
|
var typeMappings = {
|
|
261036
261036
|
directory: "isDirectory",
|
|
261037
261037
|
file: "isFile"
|
|
261038
261038
|
};
|
|
261039
261039
|
function checkType(type) {
|
|
261040
|
-
if (Object.
|
|
261040
|
+
if (type === "both" || Object.hasOwn(typeMappings, type)) {
|
|
261041
261041
|
return;
|
|
261042
261042
|
}
|
|
261043
261043
|
throw new Error(`Invalid type specified: ${type}`);
|
|
261044
261044
|
}
|
|
261045
|
-
var matchType = (type, stat) => stat[typeMappings[type]]();
|
|
261045
|
+
var matchType = (type, stat) => type === "both" ? stat.isFile() || stat.isDirectory() : stat[typeMappings[type]]();
|
|
261046
261046
|
var toPath = (urlOrPath) => urlOrPath instanceof URL ? fileURLToPath(urlOrPath) : urlOrPath;
|
|
261047
261047
|
async function locatePath(paths, {
|
|
261048
261048
|
cwd = process5.cwd(),
|
|
@@ -261064,18 +261064,22 @@ async function locatePath(paths, {
|
|
|
261064
261064
|
}, { concurrency, preserveOrder });
|
|
261065
261065
|
}
|
|
261066
261066
|
|
|
261067
|
-
// ../../node_modules/.bun/unicorn-magic@0.
|
|
261067
|
+
// ../../node_modules/.bun/unicorn-magic@0.3.0/node_modules/unicorn-magic/node.js
|
|
261068
|
+
import { promisify } from "node:util";
|
|
261069
|
+
import { execFile as execFileCallback, execFileSync as execFileSyncOriginal } from "node:child_process";
|
|
261068
261070
|
import { fileURLToPath as fileURLToPath2 } from "node:url";
|
|
261071
|
+
var execFileOriginal = promisify(execFileCallback);
|
|
261069
261072
|
function toPath2(urlOrPath) {
|
|
261070
261073
|
return urlOrPath instanceof URL ? fileURLToPath2(urlOrPath) : urlOrPath;
|
|
261071
261074
|
}
|
|
261075
|
+
var TEN_MEGABYTES_IN_BYTES = 10 * 1024 * 1024;
|
|
261072
261076
|
|
|
261073
|
-
// ../../node_modules/.bun/find-up@
|
|
261077
|
+
// ../../node_modules/.bun/find-up@8.0.0/node_modules/find-up/index.js
|
|
261074
261078
|
var findUpStop = Symbol("findUpStop");
|
|
261075
261079
|
async function findUpMultiple(name, options = {}) {
|
|
261076
261080
|
let directory = path2.resolve(toPath2(options.cwd) ?? "");
|
|
261077
261081
|
const { root } = path2.parse(directory);
|
|
261078
|
-
const stopAt = path2.resolve(directory, toPath2(options.stopAt ?? root)
|
|
261082
|
+
const stopAt = path2.resolve(directory, toPath2(options.stopAt) ?? root);
|
|
261079
261083
|
const limit = options.limit ?? Number.POSITIVE_INFINITY;
|
|
261080
261084
|
const paths = [name].flat();
|
|
261081
261085
|
const runMatcher = async (locateOptions) => {
|
|
@@ -267111,7 +267115,7 @@ function pruneCurrentEnv(currentEnv, env2) {
|
|
|
267111
267115
|
var package_default = {
|
|
267112
267116
|
name: "@settlemint/sdk-cli",
|
|
267113
267117
|
description: "Command-line interface for SettleMint SDK, providing development tools and project management capabilities",
|
|
267114
|
-
version: "2.6.2-
|
|
267118
|
+
version: "2.6.2-main8dbf263c",
|
|
267115
267119
|
type: "module",
|
|
267116
267120
|
private: false,
|
|
267117
267121
|
license: "FSL-1.1-MIT",
|
|
@@ -267165,10 +267169,10 @@ var package_default = {
|
|
|
267165
267169
|
"@inquirer/input": "4.2.4",
|
|
267166
267170
|
"@inquirer/password": "4.0.20",
|
|
267167
267171
|
"@inquirer/select": "4.3.4",
|
|
267168
|
-
"@settlemint/sdk-hasura": "2.6.2-
|
|
267169
|
-
"@settlemint/sdk-js": "2.6.2-
|
|
267170
|
-
"@settlemint/sdk-utils": "2.6.2-
|
|
267171
|
-
"@settlemint/sdk-viem": "2.6.2-
|
|
267172
|
+
"@settlemint/sdk-hasura": "2.6.2-main8dbf263c",
|
|
267173
|
+
"@settlemint/sdk-js": "2.6.2-main8dbf263c",
|
|
267174
|
+
"@settlemint/sdk-utils": "2.6.2-main8dbf263c",
|
|
267175
|
+
"@settlemint/sdk-viem": "2.6.2-main8dbf263c",
|
|
267172
267176
|
"@types/node": "24.5.2",
|
|
267173
267177
|
"@types/semver": "7.7.1",
|
|
267174
267178
|
"@types/which": "3.0.4",
|
|
@@ -267185,7 +267189,7 @@ var package_default = {
|
|
|
267185
267189
|
},
|
|
267186
267190
|
peerDependencies: {
|
|
267187
267191
|
hardhat: "<= 4",
|
|
267188
|
-
"@settlemint/sdk-js": "2.6.2-
|
|
267192
|
+
"@settlemint/sdk-js": "2.6.2-main8dbf263c"
|
|
267189
267193
|
},
|
|
267190
267194
|
peerDependenciesMeta: {
|
|
267191
267195
|
hardhat: {
|
|
@@ -270423,7 +270427,7 @@ var INSTALL_METADATA = {
|
|
|
270423
270427
|
};
|
|
270424
270428
|
|
|
270425
270429
|
// ../../node_modules/.bun/package-manager-detector@1.3.0/node_modules/package-manager-detector/dist/detect.mjs
|
|
270426
|
-
async function
|
|
270430
|
+
async function pathExists(path22, type2) {
|
|
270427
270431
|
try {
|
|
270428
270432
|
const stat2 = await fs2.stat(path22);
|
|
270429
270433
|
return type2 === "file" ? stat2.isFile() : stat2.isDirectory();
|
|
@@ -270440,7 +270444,7 @@ function* lookup(cwd = process6.cwd()) {
|
|
|
270440
270444
|
}
|
|
270441
270445
|
}
|
|
270442
270446
|
async function parsePackageJson(filepath, onUnknown) {
|
|
270443
|
-
return !filepath || !
|
|
270447
|
+
return !filepath || !pathExists(filepath, "file") ? null : await handlePackageManager(filepath, onUnknown);
|
|
270444
270448
|
}
|
|
270445
270449
|
async function detect(options = {}) {
|
|
270446
270450
|
const {
|
|
@@ -270460,7 +270464,7 @@ async function detect(options = {}) {
|
|
|
270460
270464
|
switch (strategy) {
|
|
270461
270465
|
case "lockfile": {
|
|
270462
270466
|
for (const lock of Object.keys(LOCKS)) {
|
|
270463
|
-
if (await
|
|
270467
|
+
if (await pathExists(path4.join(directory, lock), "file")) {
|
|
270464
270468
|
const name2 = LOCKS[lock];
|
|
270465
270469
|
const result = await parsePackageJson(path4.join(directory, "package.json"), onUnknown);
|
|
270466
270470
|
if (result)
|
|
@@ -270481,7 +270485,7 @@ async function detect(options = {}) {
|
|
|
270481
270485
|
case "install-metadata": {
|
|
270482
270486
|
for (const metadata of Object.keys(INSTALL_METADATA)) {
|
|
270483
270487
|
const fileOrDir = metadata.endsWith("/") ? "dir" : "file";
|
|
270484
|
-
if (await
|
|
270488
|
+
if (await pathExists(path4.join(directory, metadata), fileOrDir)) {
|
|
270485
270489
|
const name2 = INSTALL_METADATA[metadata];
|
|
270486
270490
|
const agent = name2 === "yarn" ? isMetadataYarnClassic(metadata) ? "yarn" : "yarn@berry" : name2;
|
|
270487
270491
|
return { name: name2, agent };
|
|
@@ -300856,7 +300860,7 @@ async function installDependencies2(options = {}) {
|
|
|
300856
300860
|
// ../../node_modules/.bun/giget@2.0.0/node_modules/giget/dist/shared/giget.OCaTp9b-.mjs
|
|
300857
300861
|
import { pipeline } from "node:stream";
|
|
300858
300862
|
import { homedir as homedir2, tmpdir } from "node:os";
|
|
300859
|
-
import { promisify } from "node:util";
|
|
300863
|
+
import { promisify as promisify2 } from "node:util";
|
|
300860
300864
|
import { fetch as fetch2 } from "node-fetch-native/proxy";
|
|
300861
300865
|
var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
|
|
300862
300866
|
function getDefaultExportFromCjs3(x6) {
|
|
@@ -303307,7 +303311,7 @@ async function download(url2, filePath, options = {}) {
|
|
|
303307
303311
|
throw new Error(`Failed to download ${url2}: ${response.status} ${response.statusText}`);
|
|
303308
303312
|
}
|
|
303309
303313
|
const stream2 = createWriteStream(filePath);
|
|
303310
|
-
await
|
|
303314
|
+
await promisify2(pipeline)(response.body, stream2);
|
|
303311
303315
|
await writeFile8(infoPath, JSON.stringify(info), "utf8");
|
|
303312
303316
|
}
|
|
303313
303317
|
var inputRegex = /^(?<repo>[\w.-]+\/[\w.-]+)(?<subdir>[^#]+)?(?<ref>#[\w./@-]+)?/;
|
|
@@ -308489,4 +308493,4 @@ async function sdkCliCommand(argv = process.argv) {
|
|
|
308489
308493
|
// src/cli.ts
|
|
308490
308494
|
sdkCliCommand();
|
|
308491
308495
|
|
|
308492
|
-
//# debugId=
|
|
308496
|
+
//# debugId=EE9BE03EC461E6E764756E2164756E21
|