diff --git a/index.js b/index.js index a03a746..d65fd59 100644 --- a/index.js +++ b/index.js @@ -1,14 +1,14 @@ 'use strict' -var path = require('path') -var templates = require('./templates/templates.json') +const path = require('path') +const templates = require('./templates/templates.json') -function getTemplatePath (id) { +module.exports = function getTemplatePath (id) { if (!id) { throw new Error('Missing required input: template id') } - var doc = templates[id] + const doc = templates[id] if (!doc) { throw new Error('Template not found') @@ -16,5 +16,3 @@ function getTemplatePath (id) { return path.join(__dirname, 'templates', doc) } } - -module.exports = getTemplatePath diff --git a/package.json b/package.json index cebd4b4..e3e475a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "tfk-saksbehandling-elev-skoleskyss-templates", - "version": "1.0.4", + "version": "1.0.5", "description": "Templates for the tfk-saksbehandling-elev-skoleskyss ecosystem", "license": "MIT", "author": {