@things-factory/figure-library 10.1.298 → 10.1.300

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.
@@ -20,7 +20,7 @@ export * from './source/source-client';
20
20
  export * from './source/source-install';
21
21
  export * from './source/figure-source-resolver';
22
22
  export * from './source/capability-push';
23
- export declare const entities: (typeof FigureTypeMapEntry | typeof FigureLibraryRelease)[];
23
+ export declare const entities: (typeof FigureLibraryRelease | typeof FigureTypeMapEntry)[];
24
24
  export declare const schema: {
25
- resolverClasses: (typeof FigureSourceResolver | typeof FigureLibraryResolver)[];
25
+ resolverClasses: (typeof FigureLibraryResolver | typeof FigureSourceResolver)[];
26
26
  };
@@ -7,6 +7,7 @@ export interface BlueprintsAnswer {
7
7
  type: string;
8
8
  ref: string;
9
9
  asset: unknown;
10
+ jointsChecked: boolean;
10
11
  }[];
11
12
  refused: {
12
13
  type: string;
@@ -5,6 +5,7 @@ exports.blueprintsOf = blueprintsOf;
5
5
  const figure_model_1 = require("@hatiolab/figure-model");
6
6
  const shell_1 = require("@things-factory/shell");
7
7
  const inspection_1 = require("./inspection");
8
+ const library_files_1 = require("./library-files");
8
9
  const type_map_1 = require("./type-map");
9
10
  exports.FIGURE_BLUEPRINTS_MAX = 500;
10
11
  /**
@@ -49,7 +50,8 @@ async function blueprintsOf(tx, domain, types, speak, files) {
49
50
  refuse(type, new shell_1.Refusal('figure-format-unsupported', { type, ref: line.release.ref }, '{ref} cannot be read here.'));
50
51
  continue;
51
52
  }
52
- answer.items.push({ type, ref: line.release.ref, asset });
53
+ const jointsChecked = (0, library_files_1.sha256Of)(Buffer.from(line.release.source, 'utf8')) === line.release.contentHash;
54
+ answer.items.push({ type, ref: line.release.ref, asset, jointsChecked });
53
55
  }
54
56
  return answer;
55
57
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@things-factory/figure-library",
3
- "version": "10.1.298",
3
+ "version": "10.1.300",
4
4
  "main": "dist-server/index.js",
5
5
  "browser": "dist-client/index.js",
6
6
  "files": [
@@ -69,5 +69,5 @@
69
69
  "koa-router": "^7.4.0",
70
70
  "lit": "^3.1.2"
71
71
  },
72
- "gitHead": "5b5dce33c891a02896ef3a9cb3974abefc3f53d6"
72
+ "gitHead": "1d8d05b52b9ae030bd4b74a3852b9e9d64f39e6e"
73
73
  }