Remove unecessary bunyan, add back lodash

dev
Jonatan Nilsson 2020-04-07 11:15:33 +00:00
parent 02c5195d9c
commit d5823d78cf
2 changed files with 4 additions and 5 deletions

View File

@ -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}`
}

View File

@ -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",