mbs-importer-jps
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -68,4 +68,5 @@ "use strict"; | ||
let parser = new xml2js_1.default.Parser(); | ||
if (fs_1.default.existsSync(`${this.importPath}${fileName}`)) { | ||
let data = fs_1.default.readFileSync(`${this.importPath}${fileName}`); | ||
const importFile = `${this.importPath}${fileName}`; | ||
if (fs_1.default.existsSync(importFile)) { | ||
let data = fs_1.default.readFileSync(importFile); | ||
if (data) { | ||
@@ -212,3 +213,3 @@ parser.parseString(data, (err, result) => { | ||
else { | ||
resolve(0); | ||
reject({ message: `${importFile} does not exist` }); | ||
} | ||
@@ -215,0 +216,0 @@ }); |
{ | ||
"name": "mbs-importer-jps", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "A patient management web application", | ||
@@ -5,0 +5,0 @@ "main": "dist/MBSXMLImporter.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31509
335