avancement planning

This commit is contained in:
2026-05-26 11:58:39 +02:00
parent 619a2b240a
commit 150b97cd2e
4892 changed files with 99214 additions and 429382 deletions
+8
View File
@@ -12,6 +12,10 @@ const utils_1 = require("./utils");
//
// This class is used for Timestamp and Snapshot metadata.
class MetaFile {
version;
length;
hashes;
unrecognizedFields;
constructor(opts) {
if (opts.version <= 0) {
throw new error_1.ValueError('Metafile version must be at least 1');
@@ -94,6 +98,10 @@ exports.MetaFile = MetaFile;
//
// This class is used for Target metadata.
class TargetFile {
length;
path;
hashes;
unrecognizedFields;
constructor(opts) {
validateLength(opts.length);
this.length = opts.length;