@nervur.org/floor 0.37.10 → 0.37.11
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/design.js +2 -2
- package/evidence.js +243 -425
- package/index.js +8 -8
- package/package.json +1 -1
- package/types/faculties/repo/kit.d.ts +2 -0
- package/types/faculties/repo/scanning.d.ts +1 -1
- package/types/faculties/repos/kit.d.ts +1 -0
package/design.js
CHANGED
|
@@ -777,8 +777,8 @@ var PUBLISHER = /^[a-z][a-z0-9]*(?:[.-][a-z0-9]+)*$/u;
|
|
|
777
777
|
var VERSION = /^(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)$/u;
|
|
778
778
|
var MODULE = /^components\/(.+\.(?:ts|js))$/u;
|
|
779
779
|
var TEST = /\.test\.(?:ts|js)$/u;
|
|
780
|
-
var
|
|
781
|
-
var designData = (files) => Object.entries(files).filter(([path]) =>
|
|
780
|
+
var IS_DATA = (path) => path !== "DESIGN.md" && path !== "versions.json" && !path.startsWith("components/") && !path.startsWith("words/") && !path.split("/").some((name) => name.startsWith("."));
|
|
781
|
+
var designData = (files) => Object.entries(files).filter(([path]) => IS_DATA(path)).toSorted(([one], [other]) => one < other ? -1 : Number(one > other));
|
|
782
782
|
var shaOf = (bytes) => createHash("sha256").update(bytes).digest("hex");
|
|
783
783
|
var designAssets = (files) => {
|
|
784
784
|
const assets = designData(files).map(([path, file]) => [path, shaOf(canonical(file))]);
|