Comparing version 1.2.5 to 1.2.6
15
index.js
@@ -47,8 +47,13 @@ #!/usr/bin/env node | ||
var p = path.dirname(file) + '/' + 'event.json' | ||
var _event = JSON.parse(fs.readFileSync(p, 'utf-8')) | ||
var key = _event.value.frame.testData.metadata.find(function(r) { return r.key === '!instrument.serial'}) | ||
var _time = _event.value.frame.testData.metadata.find(function(r) { return r.key === '!tablet.dateTime'}).value | ||
var _time = 'timeNotFound' | ||
try { | ||
var _event = JSON.parse(fs.readFileSync(p, 'utf-8')) | ||
var key = _event.value.frame.testData.metadata.find(function(r) { return r.key === '!instrument.serial'}) | ||
_time = _event.value.frame.testData.metadata.find(function(r) { return r.key === '!tablet.dateTime'}).value | ||
if (key) { | ||
instrumentName = key.value | ||
if (key) { | ||
instrumentName = key.value | ||
} | ||
} catch(e) { | ||
} | ||
@@ -55,0 +60,0 @@ |
{ | ||
"name": "flat-spe", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
2437
55