@c4a/extract 0.5.36-beta.1 → 0.5.38

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.
@@ -13528,6 +13528,7 @@ var generateSymbolDiff = (current, previous) => {
13528
13528
  };
13529
13529
 
13530
13530
  // src/codeSnapshot.ts
13531
+ var CODE_SNAPSHOT_META_SCHEMA_VERSION = "code.snapshot.meta.v2";
13531
13532
  var sha256 = (value) => `sha256:${contentHash(value)}`;
13532
13533
  var FALLBACK_VERSION_LABEL = "0.0.1";
13533
13534
  var stableStringify = (value) => {
@@ -13591,7 +13592,7 @@ var commonCommit = (rows) => {
13591
13592
  var metaText = (manifest, source2, rows) => {
13592
13593
  const digestByModule = new Map(rows.digests.map((row) => [row.module_path, row]));
13593
13594
  const meta = {
13594
- schema_version: "1.0",
13595
+ schema_version: CODE_SNAPSHOT_META_SCHEMA_VERSION,
13595
13596
  source_id: manifest.source_id,
13596
13597
  aspect: "code",
13597
13598
  commit: commonCommit(rows),
package/index.js CHANGED
@@ -15982,6 +15982,7 @@ var runRepositoryExtraction = async (input) => {
15982
15982
  return { repoPath, results, moduleErrors };
15983
15983
  };
15984
15984
  // src/codeSnapshot.ts
15985
+ var CODE_SNAPSHOT_META_SCHEMA_VERSION = "code.snapshot.meta.v2";
15985
15986
  var sha256 = (value) => `sha256:${contentHash(value)}`;
15986
15987
  var FALLBACK_VERSION_LABEL = "0.0.1";
15987
15988
  var stableStringify = (value) => {
@@ -16045,7 +16046,7 @@ var commonCommit = (rows) => {
16045
16046
  var metaText = (manifest, source2, rows) => {
16046
16047
  const digestByModule = new Map(rows.digests.map((row) => [row.module_path, row]));
16047
16048
  const meta = {
16048
- schema_version: "1.0",
16049
+ schema_version: CODE_SNAPSHOT_META_SCHEMA_VERSION,
16049
16050
  source_id: manifest.source_id,
16050
16051
  aspect: "code",
16051
16052
  commit: commonCommit(rows),
@@ -16606,5 +16607,6 @@ export {
16606
16607
  buildCodeSnapshot,
16607
16608
  SCAN_EXCLUDED_DIRS,
16608
16609
  PACKAGE_JSON,
16609
- ExtractionPluginRegistry
16610
+ ExtractionPluginRegistry,
16611
+ CODE_SNAPSHOT_META_SCHEMA_VERSION
16610
16612
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4a/extract",
3
- "version": "0.5.36-beta.1",
3
+ "version": "0.5.38",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "c4a-extract-code": "./bin/c4a-extract-code.js"