avancement planning
This commit is contained in:
+8
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user