dependents-editor-backend
Advanced tools
Comparing version 1.16.0 to 1.16.1
@@ -12,3 +12,3 @@ var debug = require('./debug'); | ||
if (clickPosition.length < 2) { | ||
throw new Error('click position should be of the format row,col'); | ||
throw new Error('Click position should be of the format row,col'); | ||
} | ||
@@ -24,4 +24,11 @@ | ||
var walker = new Walker(); | ||
var ast = walker.parse(fs.readFileSync(filename, 'utf8')); | ||
var ast; | ||
try { | ||
ast = walker.parse(fs.readFileSync(filename, 'utf8')); | ||
} catch (e) { | ||
debug('could not read ' + filename); | ||
throw new Error('Could not read the file: ' + filename); | ||
} | ||
debug('finding the clicked node path'); | ||
@@ -31,2 +38,7 @@ | ||
if (!clickedNode) { | ||
debug('could not find the clicked node'); | ||
return ''; | ||
} | ||
debug('clickedNode type: ' + clickedNode.type); | ||
@@ -33,0 +45,0 @@ debug('clicked node: ', clickedNode); |
{ | ||
"name": "dependents-editor-backend", | ||
"version": "1.16.0", | ||
"version": "1.16.1", | ||
"description": "The brains behind Dependents editor plugins", | ||
@@ -5,0 +5,0 @@ "main": "lib/cli.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
21110
515