blob: b2998f2471c72ffe4245a996c1e89bd59b7b8ad6 [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
module.exports = normalize;
// TODO: Update once the API returns the correct data structures.
// map old data format to a new one and return a bundle state object.
function normalize(old) {
var data = JSON.parse(old.Data);
return {
uuid: old.Link,
files: data.files
};
}