@aikdna/kdna-core 0.7.0 → 0.7.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikdna/kdna-core",
3
- "version": "0.7.0",
3
+ "version": "0.7.2",
4
4
  "description": "KDNA core library — pure logic for loading, validating, linting, and rendering KDNA domain cognition packages. Zero Node.js dependencies.",
5
5
  "type": "commonjs",
6
6
  "main": "src/index.js",
@@ -173,13 +173,20 @@ function manifestForDigest(manifest) {
173
173
  delete copy.container_sha256;
174
174
  delete copy.content_digest;
175
175
  delete copy._source;
176
+ if (copy.authoring && typeof copy.authoring === 'object') {
177
+ const auth = { ...copy.authoring };
178
+ delete auth.content_digest;
179
+ copy.authoring = auth;
180
+ }
176
181
  return copy;
177
182
  }
178
183
 
179
184
  function buildContentDigest(asset) {
180
185
  const parts = [];
186
+ const excluded = new Set(['.DS_Store', 'signature.json', 'build-receipt.json']);
181
187
  for (const entryName of [...asset.entries.keys()].sort()) {
182
- if (entryName === '.DS_Store' || entryName === 'signature.json') continue;
188
+ if (excluded.has(entryName)) continue;
189
+ if (entryName.startsWith('reports/')) continue;
183
190
  const entryBuf = asset.readEntry(entryName);
184
191
  let digestBuf = entryBuf;
185
192
  if (JSON_ENTRY_RE.test(entryName)) {