Project format updates
This commit is contained in:
@@ -19,6 +19,9 @@ export function parseProjectManifest(value) {
|
||||
throw new TypeError(`Invalid project ${key}`);
|
||||
}
|
||||
}
|
||||
if (value.archived !== undefined && typeof value.archived !== 'boolean') {
|
||||
throw new TypeError('Invalid project archive state');
|
||||
}
|
||||
// Return a copy preserving fields belonging to newer consumers of this version.
|
||||
return structuredClone(value);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user