From 2d0e9b9f67034fc1f486057423de621824e89f55 Mon Sep 17 00:00:00 2001 From: Lynn Smeria Date: Sun, 11 Nov 2018 11:34:25 +0100 Subject: [PATCH] Store all tags under the `all` key --- src/tags.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tags.js b/src/tags.js index 4141561..9678e26 100644 --- a/src/tags.js +++ b/src/tags.js @@ -27,6 +27,11 @@ module.exports = { }, {} ); + // Create a single tag object from the transformed tag data + metaData.all = Object.keys(metaData.transformed).reduce( + (all, key) => _.assign(all, metaData.transformed[key]), + {} + ); return metaData; },