Rename mod hash field to sha1

The Factorio Mod Portal uses and provides SHA1 hashes of mods, so it
makes sense to align the ModPack and ModInfo structures to sha1 by
renaming the genericly named hash property to sha1.
This commit is contained in:
Hornwitser committed 2022-09-24 21:43:07 +02:00
1 parent bddde30be4
commit 9b4ca86650
9 files changed
+21 -22

No files matched your search

+2 -2
View File
@@ -27,7 +27,7 @@ describe("lib/data/ModPack", function() {
check(new ModPack({ factorio_version: "2.0" }));
check(new ModPack({ mods: [
{ name: "subspace_storage", version: "1.99.8" },
{ name: "clusterio_lib", version: "0.1.2", hash: "sha1:012345abcd" },
{ name: "clusterio_lib", version: "0.1.2", sha1: "012345abcd" },
]}));
check(new ModPack({ settings: {
"startup": {
@@ -47,7 +47,7 @@ describe("lib/data/ModPack", function() {
factorio_version: "2.0",
mods: [
{ name: "subspace_storage", version: "1.99.8" },
{ name: "clusterio_lib", version: "0.1.2", hash: "sha1:012345abcd" },
{ name: "clusterio_lib", version: "0.1.2", sha1: "012345abcd" },
],
settings: {
"startup": {