@fulmenhq/tsfulmen 0.2.4 → 0.2.6

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.d.ts CHANGED
@@ -12,6 +12,6 @@ import './types-DdoeE7F5.js';
12
12
  * Provides ergonomic access to Crucible SSOT assets and core utilities
13
13
  * for TypeScript/Node.js applications in the FulmenHQ ecosystem.
14
14
  */
15
- declare const VERSION = "0.2.4";
15
+ declare const VERSION = "0.2.6";
16
16
 
17
17
  export { VERSION };
package/dist/index.js CHANGED
@@ -6,8 +6,8 @@ import { dirname, join, relative, extname, basename } from 'path';
6
6
  import { fileURLToPath } from 'url';
7
7
  import glob from 'fast-glob';
8
8
  import Ajv from 'ajv';
9
- import Ajv2019 from 'ajv/dist/2019';
10
- import Ajv2020 from 'ajv/dist/2020';
9
+ import Ajv2019 from 'ajv/dist/2019.js';
10
+ import Ajv2020 from 'ajv/dist/2020.js';
11
11
  import AjvDraft04 from 'ajv-draft-04';
12
12
  import { pipeline, Readable } from 'stream';
13
13
  import picomatch from 'picomatch';
@@ -366,8 +366,18 @@ async function isGoneatAvailable(goneatPath) {
366
366
  }
367
367
  return new Promise((resolve) => {
368
368
  const proc = spawn(pathToTest, ["version"], { stdio: "ignore" });
369
- proc.on("close", (code) => resolve(code === 0));
370
- proc.on("error", () => resolve(false));
369
+ const timeout = setTimeout(() => {
370
+ proc.kill();
371
+ resolve(false);
372
+ }, 5e3);
373
+ proc.on("close", (code) => {
374
+ clearTimeout(timeout);
375
+ resolve(code === 0);
376
+ });
377
+ proc.on("error", () => {
378
+ clearTimeout(timeout);
379
+ resolve(false);
380
+ });
371
381
  });
372
382
  }
373
383
  async function runGoneatValidation(schemaPath, dataPath, goneatPath) {
@@ -8359,7 +8369,7 @@ async function scanZip(archive, options) {
8359
8369
  var FULPACK_VERSION = "1.0.0";
8360
8370
 
8361
8371
  // src/index.ts
8362
- var VERSION2 = "0.2.4";
8372
+ var VERSION2 = "0.2.6";
8363
8373
 
8364
8374
  export { APP_IDENTITY_DIR, APP_IDENTITY_ENV_VAR, APP_IDENTITY_FILENAME, APP_IDENTITY_SCHEMA_ID, AppIdentityError, ArchiveFormat, DocScribeError, DocScribeParseError, DocScribeUnsupportedFormatError, ERROR_CODES, EntryType, FULPACK_VERSION, FulpackOperationError, MAX_ANCESTOR_SEARCH_DEPTH, Operation, VERSION2 as VERSION, __internal, buildEnvVar, buildRuntimeInfo, checkDecompressionBomb, clearEmbeddedIdentity, clearIdentityCache, create, createFulpackError, detectFormat2 as detectFormat, extract, extractHeaders, extractMetadata, getBinaryName, getCachedIdentity, getConfigIdentifiers, getConfigName, getEmbeddedIdentity, getEnvPrefix, getEnvVar, getTelemetryNamespace, getVendor, hasEmbeddedIdentity, hasPathTraversal, info, inspectDocument, isAbsolutePath, loadIdentity, normalizeInput, parseFrontmatter, registerEmbeddedIdentity, scan, splitDocuments, stripFrontmatter, validatePath, verify };
8365
8375
  //# sourceMappingURL=index.js.map