From d5823d78cf5459e0f38037b5c7a75a410294c85f Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Tue, 7 Apr 2020 11:15:33 +0000 Subject: [PATCH] Remove unecessary bunyan, add back lodash --- api/content/routes.mjs | 6 +++--- package.json | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/api/content/routes.mjs b/api/content/routes.mjs index 21f613a..2217b44 100644 --- a/api/content/routes.mjs +++ b/api/content/routes.mjs @@ -1,4 +1,4 @@ -import template from 'lodash.template' +import _ from 'lodash' export const active = { } @@ -13,7 +13,7 @@ function getSocket(ctx, all) { * Display a specific graphic content */ export async function display(ctx, data) { - let compiled = template(data.graphic.settings.html) + let compiled = _.template(data.graphic.settings.html) let html = compiled(data.data) // let old = await Content.getSingle(data.graphic.name) @@ -68,7 +68,7 @@ function generateDisplayText(item) { // return `${item.data.text} - ${item.data.finished}` // } try { - return template(item.graphic.settings.main)(item.data) + return _.template(item.graphic.settings.main)(item.data) } catch (e) { return `Error creating display: ${e.message}` } diff --git a/package.json b/package.json index 041a197..631eb6a 100644 --- a/package.json +++ b/package.json @@ -34,10 +34,9 @@ }, "homepage": "https://github.com/nfp-projects/caspar-sup#readme", "dependencies": { - "bunyan": "^1.8.12", "bunyan-lite": "^1.0.1", "casparcg-connection": "4.9.0", - "lodash.template": "^4.5.0", + "lodash": "^4.5.0", "lowdb": "^1.0.0", "nconf": "^0.9.1", "node-static": "^0.7.11",