@nervur.org/floor 0.37.10 → 0.37.12

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 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 IN_LOOK = (path) => path === "DESIGN.md" || path === "versions.json" || path.startsWith("components/") || path.startsWith("words/");
781
- var designData = (files) => Object.entries(files).filter(([path]) => !IN_LOOK(path)).toSorted(([one], [other]) => one < other ? -1 : Number(one > other));
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))]);