@settlemint/sdk-cli 2.6.2-main8dbf263c → 2.6.2-main90ae1f2c

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