@caatinga/core 2.4.2 → 2.4.3

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/index.cjs CHANGED
@@ -195,7 +195,12 @@ function formatCause(cause) {
195
195
  }
196
196
 
197
197
  // src/version.ts
198
- var CAATINGA_CORE_VERSION = "2.4.1";
198
+ var import_node_module = require("module");
199
+ var import_meta = {};
200
+ var require2 = (0, import_node_module.createRequire)(
201
+ typeof __filename === "string" ? __filename : import_meta.url
202
+ );
203
+ var CAATINGA_CORE_VERSION = require2("../package.json").version;
199
204
 
200
205
  // src/config/config.schema.ts
201
206
  var import_zod = require("zod");
@@ -269,7 +274,7 @@ function isDependenciesNotInstalledError(error) {
269
274
  }
270
275
 
271
276
  // src/config/load-config.ts
272
- var import_meta = {};
277
+ var import_meta2 = {};
273
278
  async function loadConfig(options = {}) {
274
279
  const cwd = options.cwd ?? process.cwd();
275
280
  const configPath = import_node_path.default.resolve(cwd, options.configPath ?? "caatinga.config.ts");
@@ -283,7 +288,7 @@ async function loadConfig(options = {}) {
283
288
  );
284
289
  }
285
290
  try {
286
- const jiti = (0, import_jiti.createJiti)(import_meta.url);
291
+ const jiti = (0, import_jiti.createJiti)(import_meta2.url);
287
292
  const loaded = await jiti.import(configPath, { default: true });
288
293
  return CaatingaConfigSchema.parse(loaded);
289
294
  } catch (error) {
@@ -2035,8 +2040,8 @@ var import_promises9 = require("fs/promises");
2035
2040
  var import_node_fs2 = require("fs");
2036
2041
  var import_node_path12 = __toESM(require("path"), 1);
2037
2042
  var import_node_url = require("url");
2038
- var import_meta2 = {};
2039
- var moduleDir = typeof __dirname === "string" ? __dirname : import_node_path12.default.dirname((0, import_node_url.fileURLToPath)(import_meta2.url));
2043
+ var import_meta3 = {};
2044
+ var moduleDir = typeof __dirname === "string" ? __dirname : import_node_path12.default.dirname((0, import_node_url.fileURLToPath)(import_meta3.url));
2040
2045
  function scaffoldRoot() {
2041
2046
  const candidates = [
2042
2047
  import_node_path12.default.resolve(moduleDir, "../../scaffolds"),
@@ -2149,8 +2154,8 @@ var import_promises10 = require("fs/promises");
2149
2154
  var import_node_fs3 = require("fs");
2150
2155
  var import_node_path13 = __toESM(require("path"), 1);
2151
2156
  var import_node_url2 = require("url");
2152
- var import_meta3 = {};
2153
- var moduleDir2 = typeof __dirname === "string" ? __dirname : import_node_path13.default.dirname((0, import_node_url2.fileURLToPath)(import_meta3.url));
2157
+ var import_meta4 = {};
2158
+ var moduleDir2 = typeof __dirname === "string" ? __dirname : import_node_path13.default.dirname((0, import_node_url2.fileURLToPath)(import_meta4.url));
2154
2159
  function scaffoldRoot2() {
2155
2160
  const candidates = [
2156
2161
  import_node_path13.default.resolve(moduleDir2, "../../scaffolds"),
package/dist/index.d.cts CHANGED
@@ -2,7 +2,7 @@ import { C as CaatingaArtifacts, c as ContractArtifact, d as CaatingaErrorCodeVa
2
2
  export { e as CaatingaArtifactsSchema, b as CaatingaErrorCode, f as formatCaatingaError, t as toCaatingaError } from './artifact.schema-BH5K-IiZ.cjs';
3
3
  import { z } from 'zod';
4
4
 
5
- declare const CAATINGA_CORE_VERSION = "2.4.1";
5
+ declare const CAATINGA_CORE_VERSION: string;
6
6
 
7
7
  declare const ContractConfigSchema: z.ZodObject<{
8
8
  path: z.ZodString;
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { C as CaatingaArtifacts, c as ContractArtifact, d as CaatingaErrorCodeVa
2
2
  export { e as CaatingaArtifactsSchema, b as CaatingaErrorCode, f as formatCaatingaError, t as toCaatingaError } from './artifact.schema-BH5K-IiZ.js';
3
3
  import { z } from 'zod';
4
4
 
5
- declare const CAATINGA_CORE_VERSION = "2.4.1";
5
+ declare const CAATINGA_CORE_VERSION: string;
6
6
 
7
7
  declare const ContractConfigSchema: z.ZodObject<{
8
8
  path: z.ZodString;
package/dist/index.js CHANGED
@@ -106,7 +106,11 @@ function formatCause(cause) {
106
106
  }
107
107
 
108
108
  // src/version.ts
109
- var CAATINGA_CORE_VERSION = "2.4.1";
109
+ import { createRequire } from "module";
110
+ var require2 = createRequire(
111
+ typeof __filename === "string" ? __filename : import.meta.url
112
+ );
113
+ var CAATINGA_CORE_VERSION = require2("../package.json").version;
110
114
 
111
115
  // src/config/config.schema.ts
112
116
  import { z } from "zod";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@caatinga/core",
3
- "version": "2.4.2",
3
+ "version": "2.4.3",
4
4
  "description": "Core config, artifacts, command orchestration, and error primitives for Caatinga/Soroban toolkit",
5
5
  "keywords": [
6
6
  "stellar",