tfk-dsf-unwrap-contact
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -10,3 +10,4 @@ 'use strict' | ||
} | ||
var templatePath = path.resolve(filePath || 'lib/data/template.json') | ||
var temp = filePath || 'template' | ||
var templatePath = __dirname + '/data/' + temp + '.json' | ||
if (fs.existsSync(templatePath)) { | ||
@@ -13,0 +14,0 @@ var template = require(templatePath) |
{ | ||
"name": "tfk-dsf-unwrap-contact", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "Unwraps contact information from dsf result", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -105,3 +105,3 @@ [](https://travis-ci.org/telemark/tfk-dsf-unwrap-contact) | ||
data.templatePath = 'lib/data/skoleskyss.json' // To use another template | ||
data.templatePath = 'skoleskyss' // To use another template | ||
@@ -108,0 +108,0 @@ console.log(unwrapContact(data)) |
@@ -77,3 +77,3 @@ 'use strict' | ||
data.templatePath = 'lib/data/skoleskyss.json' | ||
data.templatePath = 'skoleskyssa' | ||
console.log(unwrapContact(data)) |
383
14569