Socket
Socket
Sign inDemoInstall

dependents-editor-backend

Package Overview
Dependencies
109
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.16.0 to 1.16.1

16

lib/jumpToDefinition.js

@@ -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);

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc